{"version":3,"file":"portal-aece0eab34be0811bef5a02cffc837ab.js","names":["define","_exports","_rest","_environment","_emberInflector","_service","_string","_class","_descriptor","_descriptor2","_initializerDefineProperty","e","i","r","l","Object","defineProperty","enumerable","configurable","writable","value","initializer","call","_defineProperty","t","Symbol","toPrimitive","TypeError","String","Number","_toPrimitive","_toPropertyKey","_applyDecoratedDescriptor","n","a","keys","forEach","slice","reverse","reduce","default","pathForType","type","pluralize","dasherize","constructor","args","super","this","host","urls","api","apiV2Path","access_token","session","data","authenticated","headers","Authorization","createRecord","store","snapshot","serialize","includeId","key","undefined","record","url","buildURL","modelName","ajax","updateRecord","id","saveBulk","records","serializedRecords","map","JSON","stringify","contentType","then","response","res","index","modelClass","modelFor","pendingRecord","mergedData","assign","serializerFor","normalize","_id","isNew","set","push","_internalModel","_recordData","_attributes","send","deleteBulk","peekRecord","deleteRecord","pendingRecordId","isDeleted","unloadRecord","prototype","inject","_jsonApi","_errors","_string2","irregular","concurrencyHandler","maxConcurrency","runningCount","queue","enqueue","asyncTask","Promise","resolve","reject","async","result","error","dequeue","length","shift","nextTask","isAuthenticated","_withRequiredMeta","query","required","requiredMetaFields","fields","split","trim","filter","Boolean","Set","join","buildQuery","options","shouldReloadAll","shouldBackgroundReloadRecord","handleResponse","status","ConnectionError","invalidate","catch","arguments","chunkArray","array","size","Array","from","Math","ceil","_","findMany","ids","snapshots","chunkSize","chunkCallbackSize","requests","chunk","and","field","op","all","acc","concat","included","simple","operatorMapping","$eq","$ne","$in","$nin","$lt","$gt","$lte","$gte","$like","$ilike","_filter","entries","isArray","operator","operand","mappedOperator","Error","findRecord","adapterOptions","URL","meta","searchParams","toString","_apiV2Adapter","EntityProductAdapter","name","ProjectProductAdapter","TaskProductAdapter","_application","_emberPowerCalendarMoment","_emberResolver","_emberLoadInitializers","_emberPowerCalendar","registerDateLibrary","App","modulePrefix","podModulePrefix","dependencies","services","hostRouter","_base","_jquery","restore","authenticate","accessToken","userId","transition","user","method","dataType","attemptedTransition","authenticator","expires_in","token_type","attributes","_rsvp","_oauth","extend","_utils","_runloop","_object","_array","_oauth2PasswordGrant","router","serverTokenEndpoint","apiV1Path","serverTokenRevocationEndpoint","refreshAccessTokens","identification","password","scope","grant_type","get","scopesString","makeArray","isEmpty","makeRequest","run","xhr","transitionTo","success","cancel","_refreshTokenTimeout","apply","A","tokenType","token","token_type_hint","succeed","_oidcConfig","waitForRedirect","startRedirect","_resolve","timer","setTimeout","clearTimeout","_bindOidcEvents","userManager","events","addUserLoaded","existingBpUser","trigger","bypassRedirect","addUserUnloaded","_isInvalidating","addAccessTokenExpiring","navigator","locks","request","ifAvailable","lock","currentUser","getUser","signinSilent","_buildSessionData","oidcUser","bpUser","buildaPrice","getMeFromIdentityId","profile","sub","window","location","search","includes","signinRedirectCallback","signinRedirect","expired","_data","logoutComplete","signoutRedirect","_forgetUser","removeUser","BREAKPOINTS","mobileMax","tablet","desktop","jumbo","ultrawide","minWidth","px","maxWidth","mobile","_component","_activeTable","_templateFactory","__COLOCATED_TEMPLATE__","createTemplateFactory","block","moduleName","isStrictMode","setComponentTemplate","layout","tagName","classNames","classNameBindings","columns","sortable","computed","sortedBy","sortDir","columnCount","totalUnits","flexibleProportion","column","width","header","create","actions","sortBy","columnToSort","toSortBy","newDir","_component2","AllocationHierarchyComponent","maxPaths","allocations","primaryAllocation","isMultiple","needsTitle","firstPart","projectCount","path","middleParts","paths","lastPart","at","formattedPath","parts","separator","popupText","_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","warn","toggleVisible","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","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","canEditBill","code","description","allocation","purchaseOrderItem","glAccount","quantity","unitPrice","total","icon","totalSpan","sum","span","canManageBills","canApproveBills","isBillUnapproved","UNAPPROVED_STATUSES","bill","loadedBillItems","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","quickbooksLinked","approver","canSync","activePlatform","available","when","changeStatus","allocate","label","DRAFT","AWAITING_APPROVAL","ACCEPTED","PAID","HELD","hasRejection","resp","rejected","billResponses","billTypeResponseHandlerVisible","filterResponses","onBillTypeResponseHandlerCancel","onBillItemAllocatorClose","wasCancelled","BillItemAllocatorComponent","onOverrideGlAccount","overriddenGlAccount","selectedItems","stagedChanges","allItemsSelected","someItemsSelected","fullyAllocatedBills","bills","stagedState","task","allocationActions","billCount","billCountLabel","submitCount","submittableBills","submitAllocate","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","_submitBillsForApproval","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","GenericTreeItem","PAGE_SIZE","addChildren","effectiveValueType","classKind","activeItem","resource","loadChildren","child","_isPristine","selectableChildren","hasChildren","allChildrenLoaded","_indeterminate","selectable","hasChecked","hasUnchecked","checked","_checked","clearedUnloadedChildren","clearedChildrenTypes","costType","totalValue","directValue","remaining","detachedInvoiced","detachedNet","ownAllocation","link","_meta","invoiced","invoiceable","effectiveValue","hasNothingToBill","outstanding","bucket","valueLabel","currencyFormatter","totalValueContractType","contractType","timesheets","quote","badge","_badge","allocationDisabled","counts","unresolvedCosts","direct","badgeTitle","drop","nothingToBill","projectsSortString","projectsSortKeys","tasksSortString","tasksSortKeys","timesheetsSortString","timesheetsSortKeys","billItemsSortString","billItemsSortKeys","resolveLinkedProjectIds","loadProjectsFromEntity","formatCurrency","timesheet","glAccountFilter","projectLinks","allocationDate","allocationDateIso","originalAllocationValue","linkValue","linkedProjectIds","tries","loadMoreTask","loadMore","invoiceItemChangeset","allocatorWarning","invoiceItem","firstItem","onSave","getSelectedItems","clearedChildren","invoiceItemTotalsContractType","linkedProjectIdsKnown","projectsFilter","loadProjects","tasksFilter","loadTasks","hasCostsToShow","fullyLinked","partiallyLinked","billsCategory","loadBillsFromProject","hasTimesheetsValue","hasBillsValue","timesheetsChecked","timesheetsIndeterminate","timesheetsCategory","loadTimesheetsFromTask","billItemsChecked","billItemsIndeterminate","loadBillsFromTask","timesheetsFilter","loadTimesheets","detached","loadDetachedTimesheetLinks","billsFilter","loadBills","loadDetachedBillItemLinks","fetchAllocation","totalsByProjectIdRequest","projectLinksByProjectIdRequest","getInvoiceItemTotals","taskId","timesheetId","billItemId","ignoreInvoiceItem","totalsByProjectId","projectLinksByProjectId","loadParentTasksFromProject","taskIds","totalsByTaskIdRequest","taskLinksByTaskIdRequest","totalsByTaskId","taskLinksByTaskId","loadChildTasksOrCostsIndexFromTasks","timesheetIds","totalsByTimesheetIdRequest","timesheetLinksByTimesheetIdRequest","totalsByTimesheetId","timesheetLinksByTimesheetId","firstName","lastName","nodeField","costNodeField","links","groupDetachedLinks","isOwn","withinAllocationWindow","net","cost","detachedCost","detachedCostLinkItem","worker","workerFirstName","workerLastName","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","allocationValueMatchesSubtotal","hasAllocationValueMismatch","itemSubtotal","useOriginalAllocationValue","isAllocationValueChanged","isCreditNote","invoiceType","allocationMisMatchValue","tooMuch","warningText","onUnitPriceChange","editDisabled","saveItem","numberFormat","minutes","displayMinutes","str","getItems","onChangeSalesGlAccount","taxRate","taxRateIsPristine","onSelectContainer","existingIndex","onCheckboxClick","useAllocationValue","onChangeAllocationDate","onChangeContractType","onChangeAllocationType","round2dp","overInvoicedTotals","bySource","isSource","fromEntries","own","valueOf","pageKey","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","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","assert","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","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","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","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","timesheetsForWorker","selectedTimesheets","day","currentChargeOutRate","chargeOutRate","costRate","existingEntry","groupedTimesheets","labourInvoicesTotal","labourInvoices","inv","selectedTotalPrice","clearLogoSelection","setOption","resourceType","resourceId","eventData","getEvents","hasNextEventPage","onClickUserName","workerId","onArgsChange","sortDateCreatedColumn","historyEventsTableHeader","historyEventsTableContent","formatDate","dateCreated","personName","RichTextEditorComponent","editorHeight","injectQuillAssets","Quill","script","src","rootURL","onerror","head","setupEditor","quill","theme","scrollingContainer","toolbar","align","innerHTML","textChangeListener","blurListener","onBlur","_searchSelect","updateKeys","k","getDisplayName","didRender","clearInputOnFocus","_keys","setSelectedRow","sendAction","clearValue","_item","displayName","onLoad","lastSuccessful","valueString","modelKeyValue","noDataQueryValue","initialSearchTerm","showNoDataRouteAction","showNoDataRouteWithResults","noDataRoute","showNoDataAction","showNoDataActionWithResults","noDataAction","initList","toggleShowPopUp","hadSearchTerm","showPopUp","lastElement","runNoDataAction","removeSelectedItem","selectedValue","toggleCollapsed","mobileMenu","closeMenu","closeMobileMenu","orgSelectorOpen","displayWords","words","columnLength","_sortableList","property","sortedContent","li","isLinkedInOtherStages","allStageLinkedTasks","currentStagePayment","onProgressTaskUpdate","percentage","completionPercentage","existingCompletionPercentage","defaultCompletionPercentage","directTask","finishedTask","isDirect","isCompleted","progress","reset","selectTaskOnChildren","completionPercentageHasChanged","selectTask","newIsSelected","TaskContainer","isEveryChildSelected","checkChildren","isSomeSelected","stagePayment","latestStagePaymentTasks","largestLinkTaskToStagePayment","spt","activeChildren","currentStageLink","progressVersionValues","getProgressVersionValues","groupStageLinkedTasks","obj1","currentStageLinkedTasks","obj2","progressValue","pv","taskContainers","saveStagePaymentTasks","getStagePaymentTasks","initTaskContainers","addBreakdownLine","monthValue","ytdValue","targetPercentage","personResponsible","targetDate","removeBreakdownLine","toggleBreakdownVisibility","purgeEmptyBreakdownLines","notMapped","computedName","editInvoice","expandedByDefault","setExpanded","pageTitle","activePage","uploadPage","assignPage","mapItems","onLoadTakeoff","assignCrumbStack","mapCrumbStack","onMappingComplete","onFileClear","onAssignCancel","takeoffFile","onAssignComplete","mapPage","_mathjs","_dec7","_dec8","_dec9","_dec0","_dec1","_dec10","_dec11","_dec12","_dec13","_dec14","_dec15","_dec16","_dec17","_dec18","_dec19","_dec20","_dec21","_dec22","_dec23","_dec24","_dec25","_dec26","_dec27","_dec28","_dec29","_dec30","_dec31","_dec32","_dec33","_dec34","_dec35","_dec36","_dec37","_dec38","_dec39","_dec40","_dec41","_dec42","_descriptor26","_descriptor27","_descriptor28","num","sig","evaluate","eq","parsePercentage","original","calculateQuoteValue","profitType","TakeoffItem","computedItemTotal","labourHoursRatio","labourHoursTotal","labourRatio","labourTotal","materialsRatio","materialsTotal","subcontractorsRatio","subcontractorsTotal","sumsRatio","sumsTotal","valueTypes","translations","isLabourHours","valueType","computedTotal","computedTotalRemaining","computedTotalUsed","computedTotalUsedRemaining","fileHasProfitMargin","isFinite","valueTypeExplainerMessage","canBeAssigned","contingency","valueInputKeys","generalInfoMessages","formattedTotal","generalErrorMessages","effectiveProfitMargin","margins","labour","budget","materials","subcontractors","sums","effectiveLabourMargin","effectiveMaterialsMargin","effectiveSubcontractorsMargin","effectiveSumsMargin","manHoursBudget","labourBudget","materialsBudget","subcontractorsBudget","sumsBudget","totalBudget","manHoursQuote","labourQuote","materialsQuote","subcontractorsQuote","sumsQuote","totalQuote","scrollToNextItem","collapsed","_initTakeoffItem","_extractAllocationTypeFromColumn","_column","scores","convertTaskTypeToEnum","taskType","enumMap","plant","milestone","internal","general","hasLabourHoursQuantity","contingencyPercentage","contingencyCurrency","stage","finalLabourHoursTotal","finalLabourTotal","finalMaterialsTotal","finalSubcontractorsTotal","finalSumsTotal","currentSumsRatio","onAllFigureTypeClick","invalidRowMessage","invalidRowIndexes","totalManHoursBudget","totalLabourBudget","totalMaterialsBudget","totalSubcontractorsBudget","totalSumsBudget","totalManHoursQuote","totalLabourQuote","totalMaterialsQuote","totalSubcontractorsQuote","totalSumsQuote","taskOptions","groupedTasks","takeoffItem","emptyTaskOptionsKey","loadProfitMargins","removeItem","rowNumber","onAllValueTypeClick","onAllAcceptItem","onAcceptItem","canEdit","onNameInputClick","internalId","itemValidator","onNameInputKeypress","MapItem","financials","taskMapItems","groupedTakeoffItems","parentTask","taskGroup","topMapItems","childTasks","childTaskTypes","childMapItem","uniqueMapItemTaskTypes","parentMapItem","newItem","taskTemplate","templateMapItem","addingTaskFromTemplate","loadItems","mapItem","childItem","_tasks","_getTasks","_initTakeoffItems","continue","getColumnsFrom2dArray","ignoreRegex","winners","bestRating","bestMatches","isCurrency","bestTypeMatched","breadcrumbString","generateBreadcrumb","taskNameTree","addTask","showProject","maxStringLength","maxLength","localTaskNameTree","layers","lastElementLength","frontElementsLength","estimiateAverageStringLength","shortestString","displayFunction","layerMapper","bool","display","layer","childrenDepth","depthArray","canManageTaskProgress","setItemProgress","setForecastValue","latestVersionProgress","onProgressRangeInputChange","onProgressInputUpdate","hideInactiveTimesheetTasks","excludedTasks","saveNewTaskTemplateItem","_taskTemplates","TaskTemplateItemContainer","_isDeleted","childItems","templates","taskTemplates","initItems","itemTemplates","parentItem","itemTemplate","newParentItem","defaultTaskTemplates","defaultTemplate","newTaskTemplateItems","taskTemplateItems","selectedTaskTemplate","addTaskTemplateItemToList","taskTemplateId","updateTaskTemplate","unloadAll","fetchOptions","onSelectTaskTemplate","initTaskTemplates","deleteSelectedTemplate","saveSelectedTaskTemplate","isDefaultTemplate","canDelete","createNewTemplate","newItemContainer","onCopyExistingTasks","createTaskTemplateItems","taskList","parentItemContainer","parentTasks","isTaskSelectorOpen","closeTaskSelector","onSelectTask","onAddItem","setIsTaskScheduling","isSchedulingEnabled","saveNewItem","isEveryChildSchedulingEnabled","isSomeChildSchedulingEnabled","_isSchedulingEnabled","newTasks","responseText","initProject","firstProject","templateOptions","fetchTemplateOptions","toTree","selectProject","saveAndImportTasks","selectTaskTemplate","addTasksFromTemplate","addItems","showNote","initShowNote","note","onTimesheetDelete","deleteTimesheet","newTask","setTask","toggleShowNote","dropdown","closeTimer","closeLater","isUsingAdminMode","settingsRouteIsActive","canSeeDashboardButton","allowedModules","canSeeModuleButton","_toElsewhere","UsageBar","notch","isAtLimit","barBgClass","segments","ValueChangeIndicatorComponent","useColor","increaseIsGood","positiveIcon","negativeIcon","_labourCostCalculatorFixtures","WorkerCostCalculator","selectedCalculator","defaultLabourCostCalculator","_labourCostCalculators","selectOrCreateDefault","workerCost","calculatedCost","payRate","extraCostPercentage","_workerCost","entityDefault","extrasRate","labourCostCalculators","newCalculator","createNewLabourCostCalculatorForRegion","labourCostCalculator","labourCostCalculatorItems","nzlLabourCostCalculator","nzlLabourCostCalculatorItems","ausLabourCostCalculator","ausLabourCostCalculatorItems","defaultLabourCostCalculatorItems","calculator","cancelEditing","toggleCalculatorProp","prop","deleteItem","addCalculator","clonedCalculator","workingHoursPerDay","workingDaysPerWeek","clonedItems","enabled","isSystem","setWorkerCost","costCalculatorUsed","calculatorVisible","onSetWorkerCost","_profitMargin","WorkerContainer","hasActiveAllocation","calculatePercentage","w","workerContainers","validateContent","wc","backdateChangeSet","chargeOutRates","portalApi","authPost","canApplyChargeOutRate","initWorkerProjectAllocations","saveAndApply","clearAllocation","setDefaultEffectiveMargin","calculatedValue","calculateValue","createAllocation","initBackdateChangeset","backdateMap","_controller","_default","entityAttributes","userAttributes","announcement","entityAttributeIds","userAttributeIds","requiredChargebeePlanIds","requiredChargebeePlans","excludedChargebeePlanIds","excludedChargebeePlans","validFrom","validUntil","chargebeePlanOptions","announcementChangeset","sortedChargebeePlans","basePath","_entityAttributes","_userAttributes","_requiredChargebeePlans","_excludedChargebeePlans","handleMessageChange","hasBuildaPriceFeatures","BUILDA_PRICE_PRESETS","hasFinancialPortalFeatures","FINANCIAL_PORTAL_PRESETS","hasEntityManagerFeatures","ENTITY_MANAGER_PRESETS","hasEntityUserFeatures","ENTITY_USER_PRESETS","setBuildaPriceFeatures","attributesToAdd","setFinancialPortalFeatures","setEntityManagerFeatures","setEntityUserFeatures","pageNumber","announcements","announcementsTableHeader","announcementsTableData","todaysDate","isCurrentlyVisible","onClickAnnouncement","hour","minute","hour12","locale","onChangePage","createNewAnnouncement","generateAdminBillingReport","siteId","site","isSameOrBefore","isSameOrAfter","_emailValidator","_platform","userValidationMap","phoneNumber","userChangeSet","newUserId","inviteUser","featuresChangeset","canUseBuildaPrice","canUseFinancialReporting","manageAttribute","openInviteUserModal","updateCompanyFeatures","brands","brand","BRANDING","entityBrandEnum","entityChangeset","buildaPricePermissionsCount","generalFeaturesCount","schedulingFeaturesCount","allocationsFeaturesCount","projectsFeaturesCount","reportsFeaturesCount","FinancialPortalPermissionsCount","showBuildaPriceFeatures","_showBuildaPriceFeatures","showFinancialPortalFeatures","_showFinancialPortalFeatures","noFeatures","clearAllFeatures","changeSetData","setAllFeatures","allFeatures","hasAllFeatures","canUseDashboards","canUseFileStorage","canUseHealthAndSafety","canUseClientPortal","canUseIPS","canUsePlaceMakers","canUseCarters","canUseSupport","canUseGeofencing","showGeneralFeatures","_showGeneralFeatures","canUseProjectFinancials","canUseProjectProgress","canUseCsvTaskFileUploader","canUseProducts","canUseEstimates","canUseStagePayments","showProjectFeatures","_showProjectFeatures","canUseWIPReport","canUseForecastReport","canUseProfitMarginsReport","canUseLabourHoursReport","canUseBudgetReport","canUseQuoteReport","canUseCostReport","canUseChargeupReport","canUsePositionReport","canUseInvoicingReport","canUseClientReport","showReportFeatures","_showReportFeatures","canUseTimesheets","canUseCrystalPayroll","canUseSmartPayroll","canUseKeypay","canUseNotes","canUseBills","canUseStatements","canUsePurchaseOrders","canUseInvoicing","showAllocationFeatures","_showAllocationsFeatures","canUseScheduling","showSchedulingFeatures","_showSchedulingFeatures","parentEntityOptions","goNewEntity","entityTableHeader","entityTableData","paginationData","onClickEntityName","cbPlanId","allEntities","searchExp","RegExp","offset","licenseeValidationMap","licenseeName","licenseeChangeset","customers","userList","usersCurrentPage","hasNextUsersPage","parentId","partnerName","customerIds","callback","app","appURL","partnerId","registerPartnerAjax","showCreateLicenseeModal","isFirstPageFetch","userFilter","fetchUsers","unclaimedEntities","entityIsPartner","licensees","customerNamesByLicensee","pid","licensee","customersList","onClickLicenseeName","setUser","includesClaims","newCustomersToAdd","partner","showAddNewCustomerModal","activeUser","selectedUser","sendPartnerInviteAjax","showAddNewLicenseeModal","removeCustomerFromLicensee","usersTableHeader","usersTableData","removeLicenseeUser","entityIsClaimed","parterEntityAttribute","handleWindowMessage","APP_ADDRESS","SERVER_REGISTRATION_ENDPOINT","SERVER_RESEND_EMAIL","SERVER_CHANGE_EMAIL","appAddress","newEmailIsValid","showNewEmailValidation","newEmail","registrationData","showChangeEmailModal","anyInvalid","showValidation","confirmEmailCode","cbHostedPageId","accepts","registrationComplete","customData","registrationError","passwordInvalid","passwordCheckInvalid","passwordCheck","userExists","openEmailChangeModal","closeEmailChangeModal","canUseLegacyBills","canUsePayroll","canUseReportBuilder","canUseInvoices","canUseDocuments","documentsSection","incomingSection","outgoingSection","topSeparator","canUseReportProjectPage","projectReportsSections","companyReportsSections","_download","_documents","makePaths","getTaskIds","matchedAttachments","matchedTasks","DocumentData","downloadAttachments","downloadUrl","documents","findHrefs","contents","zipBlob","getZipBlob","download","addAttachments","uploadModalVisible","archiveDescription","XMLHttpRequest","responseType","dashboardReport","matchedProjects","documentPath","attachmentResults","_csv","_placemakers","_xero","_carters","_mitre","_bunnings","_autoMap","quickbooks","queryParams","unallocatedOnly","filterByDate","searchText","filterByStatus","filterBySearch","startMoment","endMoment","isAfter","fieldValue","jsFilterByDate","jsEndDate","savedDate","jsStartDate","invoiceResponses","invoiceTypeResponseHandlerVisible","doNotWarnForUnmappedInvoice","allInvoicesSelected","showBadgesColumn","selectedInvoices","groupedInvoices","groupsMap","condensedView","setCondensedOnInit","isXeroLoading","isQuickbooksLoading","isAllocating","isAllocatingAndAccepting","isAllocatingAcceptingAndSendingToXero","invoiceDeleteConfirmModalVisible","unmappedInvoiceWarningModalVisible","unmappedInvoicesToConfirm","parsers","xero","carters","mitre","bunnings","importedInvoices","hasWriteLevel","selectedInvoiceItems","isSecondaryAllocating","_commitSearch","transitionToBill","onSearchInput","setDateRange","autoMapSelected","invoiceItems","successes","promises","autoMap","sendSelectedInvoicesToXero","unmappedPolicy","draftCount","be","sortedInvoices","sortXeroInvoicesForSending","unmappedInvoices","unsent","validResponses","sendBills","makeSendInvoicesToXeroOutcomeMessage","sendSelectedInvoicesToQuickbooks","sortQuickbooksInvoicesForSending","onInvoiceTypeResponseHandlerCancel","acceptSelectedInvoices","invoicesNotValidMessage","checkInvoiceIsValid","hasUnmapped","confirmInvoiceWarnings","acceptAndSaveInvoice","_postFilterBillsOnClient","archiveSelectedInvoices","archiveAndSaveInvoice","deleteSelectedInvoices","handleImportInvoices","existingInvoices","existingInvoice","importInvoices","newInvoices","it","allocateSelected","allocateAndSaveInvoiceItems","allocateAndAcceptSelected","allocateAcceptAndSendToXeroSelected","xeroMessage","updateXeroAccounts","getAccounts","created","removed","handleNewAccounts","handleUpdatedAccounts","handleRemovedAccounts","updateQuickbooksAccounts","handleNewQuickbooksAccounts","handleUpdatedQuickbooksAccounts","handleRemovedQuickbooksAccounts","toggleInvoicesSelected","changedInvoices","statusFilter","toRemove","_clearInvoiceItemsAllocation","_allocateInvoiceItemsToProject","_allocateInvoiceItemsToTask","sent","previouslySent","previouslyUnsent","prevSentCount","prevUnsentCount","makeSendInvoicesToQuickbooksOutcomeMessage","allDirectives","directive","originalStatus","uncheckInvoices","newAccounts","pushObjects","existingAccounts","existingRecord","reload","isAccepting","dirtyRels","deletedItems","isDueDateInvalid","isIssueDateInvalid","entityXeroCompanyId","references","issuerGroupedInvoiceItems","thisInvoiceId","obj","existingInvoiceItems","names","uniqueItems","nextInvoice","previous","issuers","allSelected","itemsCount","selectedCount","invoiceIsValid","setInvoiceIssuer","paymentTermSupplier","attachmentToBeDeleted","downloadAttachment","viewInvoiceInXero","xeroDeeplinkPath","viewBillInQuickbooks","quickbooksDeeplinkPath","setItemXeroAccount","setItemQuickbooksAccount","sendToXero","acceptedCreditNoteMessage","sendToQuickBooks","acceptInvoiceAndSendToXero","confirmUnmappedItems","acceptInvoice","acceptInvoiceAndSendToQuickbooks","nextStep","toggleSelectItem","invoiceWasNew","unmappedItems","invalidInvoiceMessage","saveInvoice","addObject","numberOfSaves","checkForNewSupplier","newSupplier","updateNewSupplier","_handleError","saves","updateSearchTerm","onFromDateChange","onToDateChange","humanReadableStatusPill","humanReadableBillTypePill","humanReadableAllocationTypePill","STATEMENTS_URL","statementReconciliationUrl","refreshIframeSrc","iframeSrc","buildIframeUrl","origin","handleEmbedAuthExpired","expires_at","canSubmitDocuments","TimesheetProjectMeta","TimesheetDayMeta","acceptingTimesheets","allGroupsSelected","selectedTimesheetStatus","filteredTimesheets","searchStrings","_timesheetNotes","_timesheetStatuses","selectedStatus","timesheetNotes","notes","buildKeyFromValues","timesheetStatuses","statuses","projectMetas","metas","sheet","existingMeta","dayMetas","projectMeta","existingDayMeta","timesheetNote","dayMeta","existingDay","Day","buildMetas","anySelected","nSelected","showForemanControls","toggleGroupSelected","wasSelected","jm","toggleGroupExpanded","wasExpanded","isExpanded","toggleGroupsSelected","wasAllSelected","acceptSelectedTimesheets","selectedDayMetas","_acceptTimesheets","_lockDay","acceptAndLockTimesheet","undoAcceptAndLockTimesheet","acceptTimesheet","undoAcceptSelectedTimesheets","undoAcceptTimesheet","dayLocked","totalTime","canBeForeman","isSelf","allTimesheetsAreDeleted","hasTasksToSelect","timesheetsAreAltered","isAccepted","allAccepted","orderedDayMetas","_timesheets","_selectedTasks","selectedWorker","selectedDate","timesheetsByProject","filteredProjectMetas","workerIsSelf","foremanFor","allProjects","canCurrentlyBeForeman","remainingProjects","usedIds","canAlwaysLogForWorker","setWorker","setNextProject","projectPromise","didGiveReason","_save","triggerAccept","didEdit","saveNote","allTimesheets","saveTimesheetStatuses","saveTimesheets","timesheetWasDeleted","newTimesheets","newTimesheetStatuses","_csvBuilder","_paginationCallback","completedInvoicesSearchTerm","completedInvoicesPage","completedInvoices","invoiceFilter","referencedInvoice","creditNote","createCreditNoteFromInvoice","creditNoteNumber","validateInvoiceNumber","validateInvoiceType","validateToContact","fromDate","invoicesInDateRange","buyerDetails","address","exportedItemsData","downloadCSV","showDownloadCsvModal","contactFilterModel","setFilterContact","clearFilterContact","invoiceOptions","nextInvoiceNumber","invoicePrefix","invoiceNumberIconName","toContactIconName","issueDateIconName","dateCreatedIconName","statusIconName","jsExportFromDate","jsExportToDate","columnName","setReferencedInvoice","invoiceChangeSet","setToContact","onChangeInvoiceType","typeOrEvent","selectedType","creditNotePrefix","nextCreditNoteNumber","currentInvoiceNumber","openNewInvoiceForm","invoiceValidator","invoiceValidationMap","isUnique","_validateInvoiceNumber","didCancel","setExportDateRange","clearDateRange","onUploadInvoiceCSV","_entityInvoiceOption","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","confirmExport","actionName","confirmExportSkipLocking","cancelConfirmExport","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","toggleSection","resetPageOverrides","profitKey","profitTypeKey","subtotalKey","profit","HTML_TO_PDF_SERVICE_URL","htmlToPdfService","isDownloading","htmlContent","outerHTML","includeMargins","Accept","blob","updateProductList","isEditingProduct","adapterFor","selectProductIds","isDeletingProducts","suppliersFilter","suppliersPageSize","deleteProducts","onClickProductName","selectedProductId","selectedProductIds","showFilters","productData","addressSuggestions","projectList","updateProjectList","projectChangeset","newProjectData","projectReference","openAndSave","closeNewProjectForm","openNewProjectForm","canManageProjects","projectModel","suggestion","latitude","longitude","filteredProjects","_pricing","merchant","newEstimateData","merchantList","pricing","getMerchantList","cdeptname","estimateChangeset","pricingMerchantId","pricingMerchantName","createPrice","newEstimate","estimates","onEstimateRowClick","PortalPricingError","editPrice","editingEstimateData","pricingJobId","estimateId","duplicatePrice","duplicateEstimateData","attachToProject","duplicatedEstimate","unlinkedEstimates","deletePrice","deletingEstimateData","estimate","importTemplateData","getImportStatus","canImport","getTemplates","merchantId","selectedUnlinkedEstimates","destroyImportUnlinkedEstimatesData","selectedTemplates","selectedTemplatesString","addTemplates","selectedTemplateIds","importMaterialsData","getPreloadedQuotes","quotes","selectedQuote","base64File","fileToBase64","importMaterialsFromFile","jobFile","jobFileName","jobFileType","importMaterialsFromQuote","quoteId","destroyImportMaterialsModal","createTasksFromEstimate","estimateForGenerateTasks","groupLabourAndMaterialBySubheading","groupSubcontractorsBySubheading","groupMiscByHeading","groupMiscBySubheading","groupOverheadBySubheading","groupOverheadByHeading","closeGenerateTasks","filteredEstimates","supportedFileFormats","openEditEstimateForm","closeDeleteModal","openDeleteModal","quoteNumber","readAsDataURL","showUnlinkedEstimatesDialog","groupMiscByItems","groupOverheadByItems","commit","commitBudget","commitQuote","commitProgress","commitScheduling","loadBudget","creatingBudgetVersion","loadQuote","creatingQuoteVersion","isLoadingBudget","createBudgetVersion","isLoadingQuote","createQuoteVersion","canManageBudgetVersions","canManageQuoteVersions","canManageProject","tabsArray","_client","canViewQuotesAttributes","canViewProgressAttributes","canViewFileStorageAttributes","canViewBudgetsAttributes","projectAttributes","taskAttributes","client","utas","uta","pa","ta","attributesToRemove","canViewBudgetFinancialReports","canViewBudgetReportsAttributes","canViewBudgetLabourHourReports","canViewBudgetLabourHourReportsAttributes","canViewChargeupReports","canViewChargeupReportsAttributes","canViewCostFinancialReports","canViewCostReportsAttributes","canViewCostLabourHourReports","canViewCostLabourHourReportsAttributes","canViewProgressReports","canViewProgressReportsAttributes","canViewQuoteReports","canViewQuoteReportsAttributes","canViewSchedulingReports","canViewSchedulingReportsAttributes","canViewTasks","canViewTasksAttributes","canViewInvoicingReports","canViewInvoicingReportsAttributes","canViewClientReports","canViewClientReportsAttributes","originalIds","_content","newIds","toAdd","handleAttributesForClients","permissionsChangeset","taskVisibilityOptions","canViewReports","allowedReports","projectPermissionsCount","projectPermissionsVisible","_projectPermissionsVisible","canSeeTaskVisibilityChecks","schedulingPermissionsCount","schedulingPermissionsVisible","_schedulingPermissionsVisible","reportsPermissionsCount","reportsPermissionsVisible","_reportsPermissionsVisible","_attributesToRemove","ar","existingAttributes","findAll","matchingExistingAttributes","ea","addToProjectAttributes","clientToAddToProject","clients","isAddingClientToProject","filteredClients","projectClients","unassignedClients","handleAttributesForSubcontractor","subcontractorToAddToProject","isAddingSubcontractorToProject","filteredSubcontractors","projectSubcontractors","unassignedSubcontractors","userIsYou","_user","_subcontractor","_subcontractor2","canManageBudgets","canManageBudgetsAttributes","canManageEstimates","canManageEstimatesAttributes","canManageProductsAttributes","canManageFileStorageAttributes","canManageProjectsAttributes","canManageQuotes","canManageQuotesAttributes","canManageSchedulingReports","canManageSchedulingReportsAttributes","canManageTasks","canManageTasksAttributes","canManageTimesheets","canManageTimesheetsAttributes","canViewBudgets","canViewProgress","canManageProgress","canManageProgressAttributes","canViewProducts","canViewProductsAttributes","canViewQuotes","canCreateHealthAndSafety","canCreateHealthAndSafetyAttributes","canManageHealthAndSafety","canManageHealthAndSafetyAttributes","entityCanViewBudgetReports","entityCanViewCostReports","entityCanViewChargeupReports","entityCanViewProgressReports","entityCanViewQuoteReports","entityCanViewBills","entityCanManageBills","entityCanManageTimesheets","entityCanViewTimesheets","entityCanViewBudgetLabourHourReports","entityCanViewCostLabourHourReports","entityCanViewInvoicingReports","allocationsPermissionsCount","allocationsPermissionsVisible","_allocationsPermissionsVisible","healthAndSafetyPermissionsCount","healthAndSafetyPermissionsVisible","_healthAndSafetyPermissionsVisible","userIsEntityAdmin","includesClaimsAboutEntity","canViewTimesheetsAttributes","canViewBillsAttributes","canManageBillsAttributes","entityCanManageProjects","entityCanViewTasks","entityCanManageTasks","entityCanViewBudgets","entityCanViewProgress","entityCanManageProgress","entityCanManageBudgets","entityCanViewQuotes","entityCanManageQuotes","entityCanViewProducts","entityCanManageProducts","entityCanViewFileStorage","entityCanManageFileStorage","entityCanViewSchedulingReports","entityCanManageSchedulingReports","entityCanManageEstimates","entityCanCreateHealthAndSafety","entityCanManageHealthAndSafety","handleAttributesForUser","userToAddToProject","isAddingUserToProject","filteredUsers","projectUsers","unassignedUsers","_user2","canViewAccessReports","canViewAccessReportsAttributes","canViewInvoices","canViewInvoicesAttributes","canManageInvoicesAttributes","canApproveInvoicesAttributes","canViewStagePayments","canViewStagePaymentsAttributes","canManageStagePayments","canManageStagePaymentsAttributes","canViewPurchaseOrders","canViewPurchaseOrdersAttributes","canManagePurchaseOrdersAttributes","canApprovePurchaseOrdersAttributes","handleAttributes","Access","entityCanViewAccessReports","entityCanViewInvoices","entityCanViewStagePayments","entityCanManageInvoices","entityCanManageStagePayments","entityCanApproveInvoices","entityCanViewPurchaseOrders","entityCanManagePurchaseOrders","entityCanApprovePurchaseOrders","_workers","handleWorkerProjectAttributes","workerToAddToProject","workerAttributes","isAddingWorkerToProject","projectWorkers","unassignedWorkers","workersToAddToProject","_workersToAddToProject","workersToRemoveFromProject","canManageWorkers","projectAttributesToAdd","_projectAttributesToRemove","projectAttributesToRemove","existingProjectAttributes","_worker2","canViewTaskAttributes","includesClaimsAboutProject","workerHealthAndSafetyAttributes","manageableProjectList","progressList","updateDraftProgressPosition","canCompleteTasks","makeTasks","isComplete","commitProject","showCommitProgressModal","saveDraftProgress","commitProgressVersion","numberOfChanges","countChanges","isDifferentFromLastVersion","canSeeCreateVersionButton","canSeeSaveDraftButton","findCanManageTaskProgress","pl","showTaskControls","latestVersion","currentProgressVersion","isDraft","tc","getTrackingCategoryOptions","storeTrackingOptions","xeroTrackingOptions","isDeletingProject","isArchivingProject","profitMarginChangeset","canManageProfitMargin","saveProfitMargin","clearAddressSuggestions","googleMapAddressFinder","loadProjectProfitMargin","projectClientsString","purchasesGlAccountIsOverridden","purchasesGlAccount","salesGlAccountIsOverridden","salesGlAccount","togglePurchasesGlAccountOverride","currentValue","defaultPurchasesGlAccount","toggleSalesGlAccountOverride","defaultSalesGlAccount","rad","setGoogleMapAddress","onClickMap","_descriptor29","_descriptor30","_descriptor31","_descriptor32","_descriptor33","stageNumber","isInteger","retention","newQuestion","currentChecklist","remainingQuoteValue","useValueFromTasks","allStages","quoteVersionValues","allStagesLinkedTasks","loadDataForEffectivePercentage","usedQuote","totalQuoteValue","linksByTask","effectivePercentage","calculateEffectivePercentage","currentTaskQuote","qvv","stagesCount","stagePayments","sortByDirection","stagePaymentsValues","numberOfStages","showCreateStagesModal","showNameEditor","showValueEditor","showDateEditor","invoiceLinks","selectedStages","joinedLinks","showBulkDeleteStagesModal","fixedValue","bulkActionsStageValue","showBulkActionsModal","_computedRemainingQuoteValue","stagePaymentOption","showProjectLevelContractTermsModal","downloadStagePaymentsPDF","includeTasks","includeCheckListItems","closeDownloadOptions","pageIsLoading","stagePaymentOptions","tableIsLoading","openNameEditor","openDateEditor","openValueEditor","selectedStagesValue","stagePaymentTask","showTaskSelectorModal","openChecklist","currentStageLinkedQuestions","showChecklistModal","onSelectAllStages","getSortIcon","payment","stageStatus","currentStageInvoices","completedTaskIds","pvv","completedQuestions","hasDueDate","hasTasks","hasQuestions","dueDateCondition","tasksCondition","questionsCondition","allConditionsMet","isReadyToBeClaimed","taskTooltip","checklistTooltip","badgeValue","badgeClass","popOverActions","primary","secondary","toggleStageStatus","claimAndInvoiceStage","constraintItems","deleteIndividualStage","sectionName","_col","onSelectStage","_bulkActionsStageValue","remainingQuote","remainingQuoteValueInContextWithStages","distributeRemainingQuoteAcrossStages","stagePaymentValidationMap","saveCurrentStage","preventNegative","showDownloadOptions","stagesFilter","quoteVersionValueFilter","linkTaskToStagePaymentsFilter","linkedTasks","stageLinks","allocationPercentage","tasksParents","currentTask","currentHierarchy","commonParent","stageId","_index","taskName","childrenLength","addTaskToList","firstTaskName","reloadTasks","newTaskList","getTasksFromItems","addTasksFromFile","_project","loadTaskChanges","newTaskContainers","_taskList","newTaskContainer","parentTaskId","parentTc","findParentTc","refresh","generatePathsFromTask","currentPercentages","newVal","oldVal","_changes","_oldVal","manHours","budgetChangeset","updateBudgetData","quoteChangeset","quoteData","draftBudget","updateQuoteData","hasDraftBudgetChanges","draftBudgetChange","hasDraftQuoteChanges","draftQuoteChange","hasBothDraftBudgetAndQuoteChanges","hasBudget","totalDraftBudgetManHours","totalDraftBudgetLabour","totalDraftBudgetMaterials","totalDraftBudgetSubcontractors","totalDraftBudgetSums","canManageProjectBudgetAndQuote","canManageProjectBudget","canManageProjectQuote","canManageBudget","canManageQuote","canViewBudget","canViewQuote","totalDraftBudgetCurrency","draftBudgetLabour","draftBudgetMaterials","draftBudgetSubcontractors","draftBudgetSums","totalDraftChildrenBudgetCurrency","childrenDraftBudgetLabour","childrenDraftBudgetMaterials","childrenDraftBudgetSubcontractors","childrenDraftBudgetSums","totalTotalDraftBudgetCurrency","totalDraftQuoteCurrency","draftQuoteLabour","draftQuoteMaterials","draftQuoteSubcontractors","draftQuoteSums","totalDraftChildrenQuoteCurrency","childrenDraftQuoteLabour","childrenDraftQuoteMaterials","childrenDraftQuoteSubcontractors","childrenDraftQuoteSums","totalTotalDraftQuoteCurrency","totalDraftQuoteLabour","totalDraftQuoteMaterials","totalDraftQuoteSubcontractors","totalDraftQuoteSums","totalProductCurrency","totalAmount","totalProducts","setMaterialBudgetFromProducts","budgetModel","openUpdateBudgetForm","budgetValueChanged","lineTotal","childrenDraftBudget","hasQuote","totalDraftQuoteManHours","openUpdateQuoteForm","calculateInitialQuoteValues","calculateInitialProfitPercentages","quoteValidationMap","validatePercentages","profitMarginChanged","quoteModel","expectedProfitType","childrenDraftQuote","quoteValueChanged","draftQuote","defaultProfitMargin","defaultPercentageValues","canManageTask","_client2","projectCanViewBudgetReports","projectCanViewCostReports","projectCanViewChargeupReports","projectCanViewProgressReports","projectCanViewQuoteReports","projectCanViewBudgetLabourHourReports","projectCanViewCostLabourHourReports","projectCanViewInvoicingReports","projectCanViewClientReports","taskPermissionsCount","taskPermissionsVisible","_taskPermissionsVisible","_parentTaskIds","getTaskId","projectCanViewTasks","includesClaimsAboutTask","projectCanViewBudgets","projectCanViewQuotes","projectCanViewProgress","projectCanViewFileStorage","projectCanViewSchedulingReports","addToTaskAttributes","handleAttributesForClient","clientToAddToTask","isAddingClientToTask","taskClients","subcontractorToAddToTask","isAddingSubcontractorToTask","taskSubcontractors","_subcontractor3","projectCanManageTimesheets","projectCanManageTasks","projectCanManageBudgets","projectCanManageProgress","projectCanManageQuotes","projectCanViewProducts","projectCanManageProducts","projectCanManageFileStorage","projectCanManageSchedulingReports","userToAddToTask","isAddingUserToTask","taskUsers","_user3","handleWorkerTaskAttributes","workerToAddToTask","workerTaskAttributes","workerProjectAttributes","isAddingWorkerToTask","taskWorkers","_workerToAddToTask","workerToRemoveFromTask","taskAttributesToAdd","_taskAttributesToRemove","taskAttributesToRemove","onChangeProductQuantity","dependencyTransferDestinationTask","taskToDelete","isDeletingTask","isDependencyTransferModalOpen","taskChangeset","loadTaskProfitMargin","contractTypeIsOverridden","taskHasDependencies","messages","subtaskNumber","availableDependencyTransferDestinationTasks","taskProject","selectDependencyTransferDestination","destinationTask","closeDependencyTransferModal","humanReadableContractType","effectiveContractType","toggleContractTypeOverride","taskModel","reportsDownload","pdfExportTargetId","pdfExportHideClass","landscape","scale","downloadAndSavePdf","saveResource","forecastTable","elements","_selectedDate","excludedProjectIds","_excludedProjectIds","_status","controllerDate","_controllerDate","excludedProjects","_excludedProjects","controllerStatus","_controllerStatus","hasFilters","removeFilter","filterStatus","onDateChange","csvOptions","reportElements","invoiceTable","tableName","csvExportOptions","updateSelectedDate","_csvOptions","elementType","isExportDisabled","toggleCsvOption","optionIndex","closeCSVExport","entityLevelReport","showDownloadButton","tbody","noteReport","selectedWorkers","getWorkers","selectedProjects","getProjects","setFilterByDate","dateRangeSelectorEndDate","dateRangeSelectorStartDate","removeAllProjectFilters","removeAllWorkerFilters","profitMarginsTable","wipReportTable","hasValueProjects","balanceDate","projectsData","attentionSafetyLogoSrc","ATTENTION_SAFETY","logo","budgetTable","projectPath","chargeupReport","quoteTable","projectLevelReport","taskLevelReport","o","costTable","showAllocationTypeFilter","allocationTypeLabel","setCostType","_filterByDate","labourHoursTable","updateStartDateInput","refreshReport","currentSelectedTaskIds","_gantt","_ganttLocaleZhCn","ganttChart","sync","stm","resetQueue","disable","enable","doAutoLoad","subjectEntityId","_this","canManageUsersAndWorkers","canViewUsersAndWorkers","canUseProgress","hidden","showAvatars","editor","picker","showCircle","taskMenu","cut","copy","paste","indent","outdent","showSetProgressRedirect","onItem","taskRecord","language","LocaleManager","applyLocale","DateHelper","ProjectLines","Gantt","smoothZoom","visibleDate","scrollTaskIntoViewOnCellClick","animate","highlight","autoLoad","trackProjectSettings","listeners","loadStart","ganttIsLoading","loadFail","loadCanceled","autoRecord","recordingstop","redoCount","undoCount","restoringstop","queueReset","resetUndoRedoQueuesAfterLoad","silenceInitialCommit","autoCalculatePercentDoneForParentTasks","transport","mode","credentials","referrerPolicy","fillTicks","ganttFillTicksEnabled","subGridConfigs","locked","ganttTableCollapsed","ganttSubGridConfigsEnabled","normal","subGridCollapse","syncSubGridSetting","subGridExpand","showTaskColorPickers","features","cellEdit","addNewAtEnd","dependencyEdit","ganttDependenciesEnabled","ganttLabelsEnabled","criticalPaths","ganttCriticalPathsEnabled","nonWorkingTime","ganttNonWorkingTimeEnabled","columnLines","ganttColumnLinesEnabled","rollups","ganttRollupsEnabled","progressLine","ganttProgressLineEnabled","parentArea","ganttParentAreaEnabled","timeRanges","showCurrentTimeLine","cls","projectLines","percentBar","allowResize","rowReorder","pdfExport","exportDialog","orientationField","rowsRangeField","scheduleRangeField","exportServer","ganttExportServer","clientURL","translateURLsToAbsolute","sendAsBinary","taskEdit","generalTab","percentDone","effort","resourcesTab","advancedTab","constraintDateField","showImportTasksButton","projectsById","selected_projects","projectIsSetting","onSetProjects","onSyncGantt","ganttChartIsVisible","manageableProjects","canUseImportAndManage","_ganttFillTicksEnabled","_ganttSubGridConfigsEnabled","subGrids","_ganttTableCollapsed","_ganttDependenciesEnabled","_ganttLabelsEnabled","_ganttCriticalPathsEnabled","_ganttNonWorkingTimeEnabled","_ganttColumnLinesEnabled","_ganttRollupsEnabled","_ganttProgressLineEnabled","_ganttParentAreaEnabled","toggleSetting","subGrid","onZoomInClick","zoomIn","onZoomOutClick","zoomOut","onCollapseAllClick","expandAll","onUndo","canUndo","undo","onRedo","canRedo","redo","onExpandAllClick","collapseAll","onShiftPreviousClick","shiftPrevious","onShiftNextClick","shiftNext","onZoomToFitClick","zoomToFit","leftMargin","rightMargin","onGoToTodayClick","onSearchChange","searchFilterRegex","searchValue","nbrDecimals","downloadPDF","showExportDialog","onTaskImportModalClose","reloadProject","initializeGanttChart","taskImportModalVisible","hasChargebeeSubscription","openChargebee","buildaPriceLogoSrc","BUILDA_PRICE","_nest","nestedAccounts","debitCreditMatchesParent","childAccounts","addLine","lastAccount","highestIndex","newAccount","isHeading","createAccount","cancelDelete","doDelete","parentAccount","remainingChildren","profitAndLossData","balanceSheetData","otherDataData","setAccountProperties","queuedSave","toggleDebitCredit","_dashboard","_editRecord","firstClosedPeriodLabel","firstClosedPeriodExplanation","openAllPeriods","setFirstClosedPeriod","firstClosedPeriod","firstClosedMonth","firstClosedYear","years","currentYear","months","_membership","propertyToToggle","noEditGroups","tableContent","branch","branchId","isInGroup","groupMembers","existingMember","canAccessGroup","accessItems","existingAccess","access","addNewGroup","deleteGroup","cancelDeleteGroup","confirmDeleteGroup","reason","saveGroups","saveLinks","saveAll","hasOtherData","otherDataAccounts","balanceCalculator","calcBalances","addValue","application","importController","editedMaps","stepName","multipleFiles","visibleSystems","selectedSystem","importSystem","entitySystem","switchSystem","getBranch","isConfiguring","unusedMaps","extBals","extBal","accountList","imp","balances","colspan","_getAccountDepth","importMaps","newMaps","externalId","mapRecord","importBalances","systemKey","previousSystemKey","newBalances","oldBalances","combineBalances","oldBals","newBals","newBalExtIds","oldBal","onEditMap","toggleEditing","toggleClass","currentId","oldMaps","oldMap","allMaps","mapsToSave","uniq","manBals","saveImport","saveMaps","currentStep","transitionToOnSave","transitionToOnDelete","_sortAccounts","monthVisible","ytdVisible","focusToggle","targets","breakdown","sourceValues","targetValue","actualValue","isBalanceTarget","isKpiTarget","showYtd","hasBreakdown","showBreakdown","monthTarget","computedValue","monthActual","monthDifference","computedDifference","monthArrowClasses","computedArrow","ytdTarget","ytdActual","ytdDifference","ytdArrowClasses","accountTargets","balanceTargets","untargetedAccounts","untargeted","kpiTargets","untargetedKPIs","checkingEmpty","arrayOfResults","addTarget","savedTarget","removeTarget","targetRecord","emptyLines","field1","field2","value1","value2","metricsKey","targetedKey","targeted","_generic","dataKeyPrefix","accountSettings","hideChildrenKey","canSeeBreakdown","colSpan","orderedEntities","initOrderedEntities","accountsSortedByEntity","applySetting","setting","hide","cloneDeep","sortByEntity","pageAsCSV","downloadSheet","existingSetting","togglePrintableTrue","groupNumber","shiftFarLeft","scopedEntity","otherEntities","hideChildren","csvBuilder","generateMetaDataRows","lastYearVisible","percentageVisible","profitAndLossTableVisible","selectedGroupIds","selectedGroups","selectedEntityIds","newUserData","financialsTableColspan","createNewUser","isItmPLInvite","createUserAjax","selectEntity","selectGroup","setProfitAndLossTableVisible","boolean","toggleYtdVisible","toggleMonthVisible","createRows","recurse","percentSales","percentParent","percentages","totalTitle","getPercentValue","repeat","monthPrev","ytdPrev","getSelectedItemName","entityNames","percentSalesHeadings","pAndLHeadingRow","pAndLContent","expensesHeadingRow","expensesContent","generateDataRows","interval","dateRange","age","durationOptions","intervalOptions","applyAccountSettings","intervalCount","linkToDetail","kpisSortedByEntity","groupId","currentStats","stats","chartPeriod","selectedPeriodData","periodDate","noData","watchchecked","goToModule","mod","outsideLink","slug","selectedDisplayOption","displayOptions","readyToDelete","deleting","showInvalid","referenceDirectives","openReferenceDirectives","closedReferenceDirectives","accountDirectives","openAccountDirectives","closedAccountDirectives","unusedAccounts","usedCodes","duplicates","duplicatesFound","isDuplicate","diplicatesPresent","directives","addDirective","kind","newDirective","unshiftObject","deleteDirective","showSyncIcon","isLinkedToActiveAccountingPlatform","disableForm","canEditGlAccounts","handleAccountsUpdated","handleAccountsRemoved","selectedAccountIds","isDeletingAccounts","onSelectAllAccounts","onClickGlAccountName","onSelectAccount","addNewGlAccount","loadedAccounts","validateEntityContent","businessNumber","companyLogo","lastLogo","updatedEntity","businessNumberLabel","taxNumberLabel","autoClear","toggleAdditionalLabourMargin","updateLogo","entityModel","previewImage","clearLogo","updateContacts","isContactLinkedToAccountingPlatform","onChangeSyncWithAccountingPlatform","createContact","aliasName","aliasNameInput","supplierChangeset","currentAliases","showAddAliasModal","isDeletingSupplier","aliasesTableData","removeAlias","aliasesTableHeader","canEditSupplier","saveSupplier","deleteSupplier","deleteSupplierDisabledTitle","isLinkedToResources","filteredAliases","closeAddAliasModal","duplicateSuppliers","getDuplicateSuppliers","mergeOptions","needDeleteSuppliers","selectedSupplierIds","isDeletingSuppliers","needDeleteXeroSuppliers","updateSupplierList","mergeDuplicateSuppliers","actionData","optionsIndex","mergeIndex","updateIds","selectableSuppliers","supplierTableHeader","supplierHeader","onSelectAllSuppliers","supplierTableData","isLinkedToAccountingPlatform","selectionDisabledTitle","supplierData","onClickSupplierName","viewContactLabel","onClickViewAccountingPlatform","contactPerson","contactNumber","onSelectSupplier","onDeletingSuppliers","xeroContactId","viewContactUrl","openMergeDuplicateSuppliersDialog","onMergeDuplicateSuppliers","onCheckingDuplicateSuppliers","closeDuplicateSupplierModal","hasDuplicateSuppliers","goNewSupplier","_ipsConnection","setEntityFeatures","getUsage","connect","stores","selectedItmStores","requestIntegrationAjax","itmSuppliers","statusText","xeroCompanyId","companyId","xeroCompanyName","companyName","shortCode","allowedXeroIntegration","quickbooksUrl","xeroConnection","connection","ipsConnectionValidator","eaccountsInvoiceIntegration","allowed","requestableItmStores","requestedItmStores","addItmStoreRequest","contactSupport","helpCenter","helpCenterActive","openHelpCenter","cancelItmStoreRequest","reconnectITmStoreRequest","inviteUserAjax","destroyAttribute","userChangeset","canManageUser","loginAs","entityAttributesToAdd","entityAttributesToRemove","workersToAdd","isCompanyAdministrator","administratorAttributes","canManageEverything","managerAttributes","canViewBills","canViewTimesheets","canViewProjects","canViewProjectsAttributes","canManageWorkersAttributes","canViewWorkers","canViewWorkersAttributes","canViewPayrollReports","canViewPayrollReportsAttributes","canEstimate","canManageEstimateSettings","canManageEstimateSettingsAttributes","canUseReportBuilderReport","canUseReportBuilderReportAttributes","canManageIntegrations","canManageIntegrationsAttributes","handleEntityAttributes","handleWorkers","workerCount","includesClaimsAboutWorker","canManageNotes","canViewNotes","settingsPermissionsCount","settingsPermissionsVisible","_settingsPermissionsVisible","canEditUser","canManageUserPermissions","_entityAttributesToRemove","existingEntityAttributes","existingWorkerAttributes","canApproveBillsAttributes","canViewUsers","canViewUsersAttributes","canManageUsersAttributes","canViewFinancialReporting","canViewFinancialReportingAttributes","canManageFinancialReporting","canManageFinancialReportingAttributes","permissionsDescription","financialReportingPermissionsCount","financialReportingPermissionsVisible","_financialReportingPermissionsVisible","authCode","clipboard","writeText","_getDefaultLanguage","languages","workerChangeset","permissionChangeset","confirmMessage","canDeleteWorker","backdateChargeOutRateChangeSet","backdateCostRateChangeSet","validateChargeOutRateContent","validateCostRateContent","numberOfTimesheetsUpdated","costRates","getEmployees","accountingPlatformEmployees","getEarningRates","xeroEarningsRates","canUseWorkerType","canUsePayRate","canUseCostRate","canUseWorkerCostCalculator","canUseChargeOutRate","canUseBackdateChargeOutRate","canUseBackdateCostRate","workerTypes","setDefaultChargeOutRate","initBackdateChargeOutRateChangeset","backdateChargeOutRateMap","initBackdateCostRateChangeset","backdateCostRateMap","copyAuthCode","copiedAuthCode","validateUserContent","addOrRemoveHAndSPerm","userCanManageHealthAndSafety","setLocale","currentPassword","oldPassword","newPassword","confirmPassword","changePassword","closePasswordModal","passwordModalVisible","terms","initUserCanManageHealthAndSafety","hasManage","hasCreate","resetPassword","signOut","tokenExpired","resetPasswordForm","passwordConfirmation","clearAll","handleRequestPasswordReset","_dataAdapter","time","hhmmss","second","compact","notation","EUR","USD","NZD","CNY","AUD","GBP","_and","_helper","_regexp","appVersion","version","APP","versionOnly","hideSha","shaOnly","hideVersion","showExtended","versionExtendedRegExp","versionRegExp","shaRegExp","_assign","param","camelCaseWords","word","_camelize","camelize","_cancelAll","_capitalize","capitalize","_changesetGet","_changesetSet","changesetSet","_changeset","_collectionToArray","chunks","_classify","classify","convertToTitleCase","txt","charAt","_dasherize","dateAgo","thatMoment","fromNow","_element","ellipsisTextCharacters","maxCharacters","truncatedText","ellipsisTextWords","maxWords","truncatedWords","truncatedString","_emberPowerCalendarDayClasses","_emberPowerSelectIsEqual","_emberPowerSelectIsGroup","_emberPowerSelectIsSelectedPresent","_util","EnsureSafeComponentHelper","_eq","compute","excludesSomeFeatureFlags","fileSizeToString","bytes","si","dp","thresh","_formatDate","_formatMessage","NaN","DASH","isPercentage","MINUS_SIGN","MIN_SAFE_INTEGER","MAX_SAFE_INTEGER","formatAs","rawNumber","standardizeInput","finalize","calcPlaces","rounded","factor","padded","pointIndex","pad","formatNegativeSign","len","addCommas","currencySymbol","symbol","addCurrencySymbol","applyDecoration","flags","raw","parsedInput","roundsToZero","isNegative","_formatRelative","os","hasKeyboard","mainModifier","_formatTime","getFileIcon","gz","rar","zip","_gt","_gte","_humanize","humanize","_ifKey","_ignoreChildren","_inc","inc","_isActive","_isAfter","_isArray","_isBefore","_isBetween","_isEmpty","_isEqual","isHash","_isSameOrAfter","_isSameOrBefore","_isSame","_lowercase","lowercase","_lt","_lte","math","operand1","operand2","parseOperand","_media","_momentAdd","_momentCalendar","_momentDiff","_momentDuration","_momentFormat","_momentFromNow","_momentFrom","_momentSubtract","_momentToDate","_momentToNow","_momentTo","_notEq","_not","_now","fromCharCode","charCodeAt","_onKey","_or","ordinalFor","lastDigit","_pageTitle","fetchPages","accumulatedResults","updatedResults","_perform","_pipe","pipe","_pluralize","_powerCalendarFormatDate","_preventDefault","effective","_range","_replaceWith","_rootUrl","EPSILON","round6dp","_routeParams","_singularize","sortKey","categoryKey","other","_stopPropagation","_t","_titleize","titleize","_toggleAction","_toggle","_transitionTo","_trim","_truncate","truncate","_underscore","underscore","_unix","_uppercase","uppercase","_urlFor","_utc","_w","_xor","addLicense","am5LicenseKey","_initializerFactory","_deprecationFilter","installDeprecationFilter","_getRfc232TestContext","_startMirage","config","makeServer","register","instantiate","env","addonConfig","FastBoot","userDeclaredEnabled","defaultEnabled","usingInDev","usingProxy","usingInTest","_defaultEnabled","_shouldUseMirage","startMirage","__container__","_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","_emberCliMirageAutostart","USER_ATTRIBUTES","ENTITY_ATTRIBUTES","_getWithFilter","_v2GetWithFilter","_v2Resources","_auth","_reports","_adHocReport","_ganttChart","_buildapriceEditPrice","_buildapriceDuplicatePrice","_buildapriceCreatePrice","_buildapriceGetTemplate","_buildapriceAddTemplates","_buildapriceGetQuotes","_buildapriceImportMaterials","_buildapriceGetImportStatus","_buildapriceEntities","_buildapriceCreateTasksFromEstimate","_buildapriceImportEstimate","_staticContent","_ips","_modelNames","_miragejs","_fixtureSets","_figures","_emberCliMirage","urlPrefix","timing","fixtureSets","defineAll","post","patch","del","monthEnd","schema","requested","rankable","mean","best","rankings","rank","outOf","requestedTaskIds","metricsFor","COST_MATERIALS","COST_SUBCONTRACTORS","invoiceLabour","timesheetLabour","TIMESHEET_COST","ossApiRoot","crolename","ganttDataResponder","ganttSyncResponder","passthrough","ipsListResponder","ipsUsageResponder","ipsUpdateResponder","stagesValue","pricingHost","pricingSections","defaultdays","defaulthours","ALLOCATION_TYPES","COST_TYPES","invoiceableBlock","shares","ratioOf","QUOTE_LABOUR","QUOTE_TOTAL","QUOTE_SUBCONTRACTORS","QUOTE_MATERIALS","INVOICEABLE_TOTAL","INVOICED_TOTAL","SEARCH_PRODUCTS","filterValuesFor","qp","needle","numeric","systemAnnouncements","v2ResourceResponder","part","createServer","discoverEmberDataModels","_random","_vocabulary","LABOUR_RATE","EMPTY","baseFor","deriveMetrics","asOf","addBases","metricsForTasks","resetFigures","memo","SERIES","SCALARS","TRADE_OVERLAP","KEYS","bases","base","orderedTasks","where","byIndex","stageFor","TASK_STAGES","taskBase","siblings","curated","PROJECTS","rng","seededRandom","between","completion","projectProfile","now","clamp","completionAt","sibling","stages","totalWeight","weight","before","fixedPrice","quoteTotal","budgetTotal","rampStart","efficiency","runOut","markup","recognised","invoicedShare","share","mix","actual","forecastBudget","chargeup","forecastChargeup","money","labourHoursBudget","labourHoursActual","labourActual","labourHoursForecastBudget","labourForecastBudget","labourTimesheetCost","labourInvoiceCost","build","memoized","projectBase","entityBase","timesheetBase","view","billItemBase","ratio","numerator","denominator","costTotal","chargeupTotal","forecastQuote","wip","forecastLabour","forecastCost","materialsActual","subcontractorsActual","budgetUsed","forecastGrossProfit","wipPosition","grossProfit","BUDGET_TOTAL","BUDGET_LABOUR","BUDGET_MATERIALS","BUDGET_SUBCONTRACTORS","BUDGET_SUMS","BUDGET_TOTAL_USED","BUDGET_LABOUR_USED","BUDGET_MATERIALS_USED","BUDGET_SUBCONTRACTORS_USED","COST_TOTAL","COST_LABOUR","PROJECT_TASKS_COST_TOTAL","QUOTE_SUMS","QUOTE_TOTAL_USED","QUOTE_LABOUR_USED","labourChargeup","QUOTE_MATERIALS_USED","materialsChargeup","QUOTE_SUBCONTRACTORS_USED","subcontractorsChargeup","FIXED_PRICE_QUOTE_TOTAL","CHARGEUP_TOTAL","CHARGEUP_LABOUR","CHARGEUP_MATERIALS","CHARGEUP_SUBCONTRACTORS","FORECAST_BUDGET","FORECAST_COST","FORECAST_LABOUR","FORECAST_MATERIALS","materialsForecastBudget","FORECAST_SUBCONTRACTORS","subcontractorsForecastBudget","FORECAST_CHARGEUP","FORECAST_QUOTE","COST_PLUS_FORECAST_QUOTE","FORECAST_QUOTE_NOT_INVOICED","FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE","INVOICED_LABOUR","INVOICED_MATERIALS","INVOICED_SUBCONTRACTORS","INVOICEABLE_TOTAL_REMAINING","INVOICEABLE_CURRENTLY_TOTAL","INVOICE_ITEM_VALUE","BILL_ITEM_VALUE","PROGRESS_TOTAL","FINANCIAL_PROGRESS_TOTAL","REMAINING_BUDGET","REMAINING_QUOTE","REMAINING_MANHOURS","VARIANCE_BUDGET","VARIANCE_QUOTE","VARIANCE_MANHOURS","GROSS_PROFIT","GROSS_PROFIT_MARGIN","BUDGET_MANHOURS","BUDGET_MANHOURS_USED","COST_MANHOURS","FORECAST_MANHOURS_TOTAL","TIMESHEET_DURATION","WORKERS_AVG_COST","WORKERS","WIP_ASSET","WIP_LIABILITY","WIP_POSITION","WIP_BUDGET_FORECAST_USED","WIP_CURRENT_GROSS_PROFIT","WIP_FORECAST_GROSS_PROFIT","WIP_GROSS_PROFIT_MARGIN","supplierInvoicePdf","objects","PAGE_WIDTH","offsets","startxref","pdfDocument","billTo","ops","RULE","bold","taxNumber","bankAccount","invoiceLayout","btoa","AVERAGE_GLYPH","ascii","whole","cents","intBetween","pick","seed","h","imul","shuffle","out","_attributeNames","_pdf","SESSION_STORAGE_KEY","ADMIN","authenticateDemoUser","localStorage","server","tradingSince","monthsAgo","yearsAgo","ENTITY","dateModified","selfSignUp","infoVerified","flag","deprecated","seedPermissions","nextOfKin","EMERGENCY_CONTACTS","isContractor","emergencyContactNameOne","emergencyContactRelationshipOne","relationship","emergencyContactPhoneNumberOne","emergencyContactNameTwo","emergencyContactRelationshipTwo","emergencyContactPhoneNumberTwo","SUPPLIERS","eaccountsSupplierCode","paymentTermType","paymentTermDay","salesPaymentTermType","salesPaymentTermDay","seedGlAccounts","PRODUCTS","productLibraryIdentifier","seedProductLibrary","sites","BUILD_DAYS","daysAgo","remainingDays","completionDate","daysAhead","contactAddress","geofencingEnabled","stageIndex","pricingUsage","stageComplete","versionNumber","DAY","workingDay","finish","seedScheduling","lines","seedInvoices","lastComplete","started","materialLines","subcontractLines","twentiethOfNextMonth","eaccountsFileName","isAutoMapped","unitTaxAmount","seedBillAttachment","seedBills","placed","order","seedPurchaseOrders","seedTaskProducts","seedProject","running","MAX_LINES","getDay","onSite","splitDay","DAY_MINUTES","isoDate","TIMESHEET_NOTES","reported","actionStatus","seedTimesheets","seen","seedWorkerAllocations","hasAcceptedTerms","canAccessPortal","MIN_LINE_MINUTES","taskCount","durations","most","least","ORDER_QUANTITIES","works","SUBCONTRACT_WORKS","work","registeredName","billingAddress","readableDate","MONTHS","moved","setDate","setMonth","due","siteVisits","midnight","startOfToday","visits","visit","entry","exit","actorName","entryTime","exitTime","accessLogViews","billItemViews","billId","billName","invoiceItemViews","linkInvoiceItemToProjects","invoiceItemId","occupancyViews","timesheetNoteViews","noteType","m3","metre","pack","box","roll","_faker","Factory","faker","lorem","sentence","inverted","datatype","recent","int","helpers","arrayElement","storageFilePath","commerce","productName","alphanumeric","casing","float","fractionDigits","company","supplierDebtorAccountCode","supplierDebtorAccountName","afterCreate","labourDiff","manHoursDiff","materialsDiff","subcontractorsDiff","sumsDiff","eaccountsLink","consolidation","bunningsData","identityProviders","itmCustomReports","includesProfitAndLoss","includesBalanceSheet","includesOtherData","externalBalances","manualBalances","invoiceFooterNotes","creditNoteFooterNotes","internet","senderName","calculation","introLine","strategies","accountCode","branchCode","connectionName","adminRoleName","changeType","forecastManHours","actualManHours","commitNumber","past","job","isSubAccount","pricingTab","adminNote","editNote","hashed_password","mustResetPassword","adminFeatures","lastLoginDate","defaultInvoiceStatus","defaultCreditNoteStatus","defaultTimesheetStatus","earningsType","rateType","typeOfUnits","ratePerUnit","multipleOfOrdinaryEarningsRate","fixedAmount","currentRecord","xeroPayrollCalendarPeriodStartDate","xeroPayrollCalendarPeriodEndDate","xeroPayrollCalendarType","dateOfBirth","trackingOptionName","sets","mirage","_views","requestBody","subjects","subject","resources","resolveSubject","metricsSubject","groupType","separateValues","calculate","compile","searchEnabled","buildElement","FORMATS","SYNTHETIC","DEFAULT_SORT_KEYS","compiled","rowsById","recursiveKey","roots","foreignKey","compileInto","newLayer","case","classesFor","modelKeys","identifier","pairs","valueOverride","propertyValue","relationshipValue","oneBasedPath","includedInInvoice","warned","warnUnknown","resolveCell","foreign","readKey","formatOf","humanEnums","first","humanEnum","related","linkInvoiceItemToBillItems","linkInvoiceItemToTimesheets","resourceFilter","resourceName","synthetic","letter","collection","collectionFor","candidate","sortRecords","condition","$exists","gt","gte","lt","lte","bound","asTime","comparable","matchesCondition","readField","Response","isWorkerPseudoUser","authCodeResponder","passwordResponder","targetEstimate","requestHeaders","supplierNames","builderName","quoteVersion","optionDescription","requestedIds","CALENDARS","isoDay","earliestStart","hoursPerDay","HOURS_PER_DAY","daysPerWeek","DAYS_PER_WEEK","daysPerMonth","DAYS_PER_MONTH","calendars","ganttTasks","ganttDependencies","ganttResources","assignments","ganttAssignments","intervals","recurrentStartDate","recurrentEndDate","isWorking","SCHEDULED_STATUSES","NBSP","scheduledTasks","taskWindow","schedulingChanges","schedulingVersionValues","completedDate","addDays","constraintType","constraintDate","lag","fromTask","toTask","eventColor","assignment","starts","_resolveModelKey","modelKey","foreignKeys","fks","paramPattern","constraint","ipsConnections","isConnected","_i","parseBody","buildSeries","lastPeriod","organisation","includeMonth","includeYTD","buildPeriods","schemaName","buildMetrics","toCollectionName","singularize","parseFilterParams","segment","test","filterObj","hasFilter","clause","isCondition","cond","expected","likePattern","ilikePattern","testCondition","andMatches","orMatches","handler","requestedPage","paginate","toResource","opOf","_seed","log","timeEnd","JSONAPISerializer","alwaysIncludeLinkageData","keyForAttribute","keyForRelationship","_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","toBase64","humanType","BaseAttachmentsModel","_filename","_extension","_fileType","_size","previewHref","_BaseModel","relationName","serialized","relationships","_baseAttachmentModel","glAccountLabel","canSeeProject","canSeeTask","handleTask","allocationPath","purchaseOrderMatchingStatus","hasError","hasWarning","billedQuantity","quantityInOtherBills","quantityOrdered","quantityDelivered","unitPriceMatches","typeLabel","activeItems","xeroInvoiceId","xeroCreditNoteId","quickbooksBillId","quickbooksCreditNoteId","xeroDeeplinkUrl","accountingPackageUrl","newIsValid","VALID_STATUSES","VALID_ALLOCATION_TYPES","hasDuplicate","isAcceptedButNotSyncedToAccountingPlatform","valuesArray","findChangeForTask","createChangeForTask","deleteChangeForTask","hasValidPurchasePaymentTerm","getPurchaseDisplayPaymentTermType","purchaseDisplayPaymentTerm","hasValidSalesPaymentTerm","getSalesDisplayPaymentTermType","salesDisplayPaymentTerm","quickbooksContactId","quickbooksVendorId","profitMarginRef","loadStagePaymentOptions","loadCompanyLogo","activeProjectTasks","activeProjects","attachmentIds","allProjectAttachments","gstValue","entityLinkedAttributes","includesSomeClaims","checks","excludesSomeClaims","excludesClaims","xeroAccountId","quickbooksAccountId","viewGlAccountUrl","searchField","lowerValue","xeroDeepLinkPath","displayAge","displayStatus","annualWorkingDays","systemItems","otherItems","_descriptor34","_descriptor35","_descriptor36","loads","loadAttachments","activeChildrenAttachments","activeTimesheetTasks","activeParentTasks","currentBudgetVersion","currentQuoteVersion","draftBudgetChangeSet","draftQuoteChangeSet","effectiveXerSalesGlAccount","draftTaskChangeSet","draftProgressChangeSet","draftSchedulingChangeSet","createAndSaveDraftTaskChangeSet","createAndSaveDraftBudgetChangeSet","createAndSaveDraftQuoteChangeSet","_Class","pathArray","deliveryStatus","deliveryStatusLabel","loadTask","loadCurrentProfitMargin","loadProducts","parentRef","parentProfitMarginRef","projectRef","taskProducts","allActiveChildrenArray","draftProgressChange","currentProgressChange","currentBudgetValue","currentQuoteValue","budgetManHours","budgetLabour","budgetMaterials","budgetSubcontractors","budgetSums","hasDirectBudget","hasTaskChildrenBudget","hasDirectProducts","hasProducts","hasTaskChildrenProducts","hasDirectAttachments","hasTaskChildrenAttachments","hasDirectQuote","hasTaskChildrenQuote","allChildrenAttachments","activeTaskChildrenProducts","quoteManHours","quoteLabour","quoteMaterials","quoteSubcontractors","quoteSums","_parents","parents","getParents","draftBudgetManHours","childrenDraftBudgetManHours","totalDraftBudget","draftQuoteManHours","totalDraftQuote","getDefaultValues","getDefaultPurchasesGlAccount","getDefaultSalesGlAccount","effectiveXeroSalesGlAccount","getDefaultContractType","_updateTask","diffs","hasRetried","isMissingTaskChangeSet","isMissingBudgetChangeSet","isMissingQuoteChangeSet","_updateBudget","_updateQuote","rejectedResult","moveDependenciesToTaskId","descendantTasksToUnload","deleteTaskMetadata","unloadTasks","tasksToUnload","taskToUnload","childTasksToUnload","nextDiffs","_destroy","taskChangeSet","budgetChangeSet","quoteChangeSet","schedulingChangeSet","parentTaskMargin","parentTaskGlAccount","parentTaskContractType","valueInHours","payTotal","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","_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","_timeline","controllerName","templateName","_timesheet","_loadingRouteFrom","reloadApp","rollbackUnsavedChanges","localName","sectionRoute","parentRoute","isLeavingSection","_modelFactoryCache","updateHelpCenter","setLabels","onRouteWillChange","isAborted","activate","_onRouteWillChange","deactivate","showHelpCenter","doNotThrowErrorOnNoData","loadedReport","pmConnection","getAdHocReport","getPmConnection","_class3","_initFromData","_createFile","projectLinkModel","taskLinkModel","_name","ua","activeProject","ap","entityLoaded","getAttachments","getOpenProjects","getActiveTasks","loadModel","openProjects","controllerFor","getEntityFile","project_id","projectAttachments","documentIndexPath","getFile","getProject","taskAttachments","currentLevelTasks","task_id","getTask","maxNumberOfBills","billQuery","invoicesQuery","_invoices","xeroAccounts","quickbooksAccounts","invoiceAdded","parentModel","getOwner","billsController","getKey","existingInvoiceKeys","suppliersWithPaymentTermsHash","lastParams","resetController","isExiting","invoice_id","addTimesheetNote","addTimesheets","addTimesheetStatuses","removeTimesheet","_scrollRoute","dateIsValid","workerExists","dateQuery","newNote","afterModel","workerEntity","invoicePage","getInvoices","getInvoiceOptions","newlyCreatedInvoice","_proxy","currentInvoice","validateTotalPrice","hasExistedValue","hasNewValue","getInvoice","getInvoiceItems","createInvoiceChangeSet","getInvoicePermissions","getRelatedInvoices","isPOChangeSetDirty","itemsWithDirtyAttributes","payrollPath","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","latestVersionForecastManHours","currentDraftForecastManHours","currentDraftProgress","_progress","childrenForecastManHours","childrenForecastedProgress","totalProgress","hasMissingCosts","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","createProjectChangeset","createProfitMarginChangeset","loadGlAccounts","loadXeroTrackingOptions","_sortBy","sortMap","normalizedKey","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","getProjectsData","occupancyFilter","getReport","getProjectTasks","canUseProjectBudgetReport","linkToStartDate","linkToEndDate","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","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","periodOptions","loadEntityGroups","loadKpiMeta","loadKPIs","_getKPIs","loadStats","_getStats","kpiMeta","resolvedEntity","_getCached","_cache","_getDirectives","merchantAccounts","refreshDirectives","chart_of_account_id","glAccountId","getGlAccount","getGlAccounts","loadEntityProfitMargin","loadPurchaseOrderOptions","loadInvoiceOptions","loadEntityStagePaymentOptions","validateEmail","supplierValidationMap","contact_id","supplierId","getSupplier","getSupplierChangeset","getFirstDuplicateSuppliers","jobList","ownTakeoff","materialProduct","materialRate","dataDictionary","flatRateResource","subcontractorRate","crTools","miscTemplate","sumsSettings","labourFactor","pendingList","overheadTemplates","workgangPositions","workgangs","subcontractorList","organization","staff","menu","trade","messaging","reminders","subheader","quoteUploader","PAGES","isUnknown","requestedSupplierIds","ipsConnection","defaultEntityFeatures","getFeaturePermissionsChangeset","entityAttributesChangeSet","getItmSuppliers","getIpsConnection","featurePermissionsChangeset","validateFirstName","validateLastName","userValidator","getUserChangeset","userEntityAttributesFilter","validateIsCompanyAdministrator","validateCanManageEverything","validateWorkers","usersWorkers","validatePhoneNumber","validatePayRate","validateChargeOutRate","validateCostRate","validateIsContractor","validateSmartPayrollEmployeeCode","validateSmartPayrollEmployeeDepartmentCode","xeroEmployee","validateXeroEmployee","xeroEarningsRate","validateXeroEarningsRate","validateEmergencyContactNameOne","validateEmergencyContactRelationshipOne","validateEmergencyContactPhoneNumberOne","validateEmergencyContactNameTwo","validateEmergencyContactRelationshipTwo","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","_payload","normalizedResponse","resourceMeta","includedMeta","_apiV2Serializer","EntityProductSerializer","ProjectProductSerializer","TaskProductSerializer","_ensureRegistered","AccountingPlatforms","updateXeroSuppliers","createXeroContact","req","glAccountVisibleFields","invoiceItemTaxVisibleFields","glAccountsSearchField","quickbooksInvoiceId","updateHasNextPage","lastLoadArgs","firstPage","_loadBills","migrateToBuildaPrice","identityUserId","authPatch","authGetExcel","authGetBlob","authPostHtml","projectQuoteTotals","projectBudgetTotals","projectProgressTotals","projectCostTotals","updateSystemAnnouncements","submitFilesToIPS","authPostForm","cacheName","cachePath","cbCustomerId","currentEntityAttributes","subscriptionChanging","portalSession","getChargebeePortalSession","instance","Chargebee","setPortalSession","createChargebeePortal","handleClose","subscriptionChanged","handleSubscriptionChange","hostedPage","openCheckout","subscriptionIsChanging","subscriptionChangedMoment","waitTime","attempts","latestEntityAttributes","xor","_cookies","_htmlJsConfirm","_notifications","_emberElsewhere","_period","helpCenterInitialized","activateHelpCenter","initializeHelpCenter","zEmbed","zE","frameElement","cssText","getElementsByTagName","parentNode","insertBefore","contentWindow","domain","_l","zendeskHost","zEQueue","identify","setHelpCenterSuggestions","_intl","deleteTitle","deleteMessage","confirmingDelete","_resolveConfirmation","confirmDelete","dismissDelete","attachmentToFile","binary","File","submitError","refusedUsage","ipsUsage","getIpsContactInfo","updateIpsContactEmail","_keyboard","mediaMatchesDidChange","consumeMediaService","_metrics","toggleMenu","_configUtils","computedFromConfig","hasEmberTether","hasLiquidWormhole","hasLiquidTether","destinationElementId","getDestinationElementIdFromConfig","onRouteDidChange","_onRouteDidChange","pre","moduleRoutes","bannedRoutes","usableRoutes","thisRoute","routeBreadcrumbs","currentModule","FINANCIALS","STEP","BUILDA_PRICE_PROMO","APB","TPB","STEP_UP","ITM","check","entityCanUseCrystalPayroll","entityCanUseKeypay","entityCanUsePartner","entityCanUseOldPricing","entityIsParent","entityCanUseStrategies","entityIsItm","entityIsItmParent","entityCanUseFinancialReporting","entityCanUseBuildaPrice","entityCanUseCarters","entityCanUseIPS","entityCanUseBills","entityCanUseStatements","entityCanUsePlaceMakers","entityCanUseSmartPayroll","entityCanUseItmInvoiceIntegration","entityCanUsePurchaseOrders","entityCanUseInvoices","entityCanUseStagePayments","entityCanUseDashboards","entityCanUseEstimates","entityCanUseNotes","entityCanUseClientReports","entityCanUseProjectFinancials","entityCanUseForecastReport","entityCanUseProfitMarginsReport","entityCanUseLabourHoursReport","entityCanUseBudgetReport","entityCanUseQuoteReport","entityCanUsePositionReport","entityCanUseCostReport","entityCanUseChargeupReport","entityCanUseWipReport","entityCanUseScheduling","entityCanUseTimesheets","entityCanUseFileStorage","entityCanUseProducts","entityCanUseProjectProgress","entityCanUseCsvTaskFileUploader","entityCanUseHealthAndSafety","entityCanUseClientPortal","entityCanUseGeofencing","entityHasSubcontractorPackage","entityIsCalStudent","entityHasSupport","isAPBCustomer","workerPseudoUser","userIsWorker","userIsAdmin","userIsPartner","userIsEntityMember","userCanViewEntity","userHasPricingRole","userIsClient","canUsePartner","canUseOldPricing","canUseStrategies","hasAccessToPortal","modelId","canUseWorkerJobAllocation","_canUseEntityProgressReports","_canUseEntityChargeupReports","canManageTaskBudgets","canManageTaskQuotes","canUseTaskBudgets","canUseTaskQuotes","canUseQuoteVersions","canUseBudgetVersions","canManageProgressVersions","canSeeProjects","hasWorker","wa","reportBuilderDeprecationDate","entityCreatedDate","canUseProjectProgressReports","_canUseProjectProgressReports","canUseProjectQuoteReports","_canUseEntityQuoteReports","_canUseProjectQuoteReports","canUseProjectBudgetReports","_canUseEntityBudgetReports","_canUseProjectBudgetReports","canUseProjectCostReports","_canUseEntityCostReports","_canUseProjectCostReports","canUseProjectTasks","_canUseEntityTasks","_canUseProjectTasks","_canUseEntityProjects","_canUseEntityBudgetLabourHourReports","_canUseEntityCostLabourHourReports","_canUseEntityInvoicingReports","_canUseEntityClientReports","_canUseProjectBudgetLabourHourReports","_canUseProjectCostLabourHourReports","_canUseProjectChargeupReports","_canUseProjectInvoicingReports","canUseEntityWIPReport","canUseEntityBudgetReports","canUseEntityQuoteReports","canUseEntityProgressReports","canUseEntityCostReports","canUseEntityInvoicingReports","canUseProjectWIPReport","canUseProjectQuoteReport","canUseEntityChargeupReports","canUseEntityTasks","canUseProjectChargeupReports","canUseTaskQuoteReports","canUseTaskChargeupReports","canUseProjectCostReport","canUseEntityTimesheets","canUseEntityBills","canUseProjectTimesheets","canUseProjectBills","canUseTaskCostReports","canUseTaskTimesheets","canUseTaskBills","canUseTaskTasks","canUseTaskBudgetReports","canUseEntityClientReports","canUseProjectInvoicingReports","canUseProjectClientReports","projectTaskIds","attributeIdsByTask","attributeIds","taskHasClientReports","taskHasQuoteReports","taskHasProgressReports","taskHasChargeupReports","taskHasInvoicingReports","canUseTaskProgressReports","canUseTaskInvoicingReports","canUseTaskClientReports","canUseEntityForecastReport","canUseProjectForecastReport","canUseEntityProfitMarginReport","canUseEntityLabourHourReport","canUseProjectProfitMarginReport","canUseProfitMarginReport","_canUSeEntityTasks","canUseProjectChargeupReport","canUseEntityPositionReport","canUseDashboardReport","useProjectProgressReports","canUseProjectPositionReport","canUseProjectLabourHourReport","canUseProjectCostLabourHourReports","canUseProjectBudgetLabourHourReports","canUseEntityInvoicingReport","canUseEntityProjects","canUseLabourHourReport","canManagePayroll","legacyBillsDeprecationDate","canManageEstimatesSettings","canUseUsers","canManageSubcontractors","canUseSubcontractors","canUseWorkers","canManageSuppliers","canUseSuppliers","canUseXeroIntegration","canUseQuickbooksIntegration","canSeeNewBuildaPriceMigrationButton","canUseItmInvoiceIntegration","canUseDocumentsPage","groupedProjectAttributes","groupedTaskAttributes","attachmentAttributes","canUseAttachments","aa","canUseProgressPage","tasksCanViewProjectProgress","canViewProjectProgress","taskCanViewTasks","taskCanViewProjectProgress","canUseProject","canUseIntegrations","_resource","canUseFPDashboard","canUseFPKpis","canUseFPItmCustomerPAndL","canUseFPProfitAndLoss","canUseFPBalanceSheet","canUseFPOtherData","canUseFPPersonalData","canUseFPDataAvailability","canUseFPImportManager","canUseFPStrategies","canUseFPReportingPeriod","canUseFPChartOfAccounts","canUseFPKpisConfig","canUseFPGroups","userCanNotEditFPGroups","userCanSeeFPBreakdown","canUseProjectCopy","showProxy","defaultClearDuration","setupAutoClear","isBpNotification","NZL","AUS","USA","GBR","OSService","matchMedia","newProject","DEFAULT_PDF_OPTIONS","generatePdf","hideClass","originalElement","cloneNode","transverseParents","transverseChildren","nodeName","imageData","toDataURL","img","replaceChild","cssRules","styleSheet","styleSheets","cssRule","CSSStyleRule","hasClassName","selectorText","titleElement","innerText","whiteSpace","firstChild","cssHtml","compressedReadableStream","Blob","stream","pipeThrough","CompressionStream","compressedResponse","bodyBlob","generateAndDownloadPdf","_entityId","isInitialized","syncPriceBookNowAjax","disconnectAjax","clientId","authPath","pmAuthAddress","response_type","redirect_uri","encodeState","nonce","handlePmError","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","syncCreditNote","_fileName","generateReportDataForCSV","formatValue","dataRows","processRows","csvRow","dataRow","footRows","generateCSVBlob","isDestroyingOrDestroyed","bpLicenseeParentEntityId","_initEntity","_initEntities","_initUser","loadedWorker","momentLocal","loadedUser","entitiesPromise","isUsingLoginAs","originalUserData","toggleAdminMode","authResponse","authenticatedData","_session","handleAuthentication","routeAfterAuthentication","_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","_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","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","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","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","oldLink","findParam","routeDescription","paramName","fileError","contentError","noun","ordinal","lineNo","buildAccountName","validateHeaders","accountNumber","accountName","accountLevel","currentHeader","extractValue","linesRemoved","rest","debit","credit","extractAccountCode","extractAccountName","isDebit","lastIndexOf","pages","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","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","reportedResourcesSummary","replacement","illegal","control","reserved","windowsReserved","nonAsciiChars","term","opKey","buildRow","periodLength","compare","aSystem","bSystem","categoryComparison","compareTwoStrings","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","validateDueDate","presence","validateInclusion","validateFormat","metaName","rawConfig","getAttribute","exports","runningTests","require"],"sources":["vendor/ember-cli/app-prefix.js","portal/adapters/api-v2-adapter.js","portal/adapters/application.js","portal/adapters/entity-product.js","portal/adapters/errors.js","portal/adapters/project-product.js","portal/adapters/task-product.js","portal/app.js","portal/authenticators/embed.js","portal/authenticators/login-as.js","portal/authenticators/oauth2.js","portal/authenticators/oidc.js","portal/authenticators/push-session.js","portal/breakpoints.js","portal/components/active-table.js","portal/components/admin-mode.js","portal/components/allocation-hierarchy.js","portal/components/allocation-selector.js","portal/components/allocation-selector/bread-crumb.js","portal/components/attachment-dropdown-list.js","portal/components/attachment-dropdown.js","portal/components/attachment-dropdown/item.js","portal/components/attachment-manager.js","portal/components/attachment-preview.js","portal/components/attachment-settings-modal.js","portal/components/attachment-table.js","portal/components/attachment-upload-modal.js","portal/components/attachments-popover.js","portal/components/auto-mapping/directive-pm.js","portal/components/basic-dropdown-content.js","portal/components/basic-dropdown-trigger.js","portal/components/basic-dropdown-wormhole.js","portal/components/basic-dropdown.js","portal/components/basic-importer.js","portal/components/bill-editor.js","portal/components/bill-item-allocator.js","portal/components/bill-item-summary.js","portal/components/bill-type-response-handler.js","portal/components/bills-table.js","portal/components/bills-table/th.js","portal/components/bills-uploader.js","portal/components/c3-chart.js","portal/components/calculation-breakdown.js","portal/components/charts/data-table.js","portal/components/charts/gauge-chart.js","portal/components/charts/line-chart.js","portal/components/charts/pie-chart.js","portal/components/checklist.js","portal/components/coa-editor-line.js","portal/components/coa-editor.js","portal/components/combo-box.js","portal/components/combo-button.js","portal/components/confirm-delete.js","portal/components/content-tabs.js","portal/components/content-tabs/tab.js","portal/components/context-menu.js","portal/components/context-menu/menu.js","portal/components/dashboard-item.js","portal/components/dashboard-item/card.js","portal/components/dashboard-item/icon.js","portal/components/dashboard-item/module.js","portal/components/dashboard/config-modal.js","portal/components/dashboard/draggable-module.js","portal/components/dashboard/module-rows.js","portal/components/data-withheld-notice.js","portal/components/date-input.js","portal/components/date-range-selector.js","portal/components/documents-table.js","portal/components/drag-and-drop-container.js","portal/components/drag-sort-list.js","portal/components/drag-sort-list/children.js","portal/components/drag-sort-list/drag-handle.js","portal/components/drag-sort-list/draggable.js","portal/components/drag-sort-list/separator.js","portal/components/draggable-task.js","portal/components/dropdown-button.js","portal/components/duration-input.js","portal/components/education-promotion-button.js","portal/components/ember-modal-dialog-positioned-container.js","portal/components/ember-modal-dialog/-basic-dialog.js","portal/components/ember-modal-dialog/-in-place-dialog.js","portal/components/ember-modal-dialog/-liquid-dialog.js","portal/components/ember-modal-dialog/-liquid-tether-dialog.js","portal/components/ember-modal-dialog/-tether-dialog.js","portal/components/ember-modal-dialog/overlay.js","portal/components/ember-wormhole.js","portal/components/entity-selector.js","portal/components/entity-table-contents.js","portal/components/estimate/item.js","portal/components/fa-icon.js","portal/components/file-field.js","portal/components/file-importer.js","portal/components/file-inputs/csv.js","portal/components/file-inputs/general.js","portal/components/file-inputs/text.js","portal/components/file-type-icon.js","portal/components/filter-pill.js","portal/components/financial-data-importer.js","portal/components/financial-data-table.js","portal/components/financials-table-section.js","portal/components/format-duration-with-unit.js","portal/components/formatted-input.js","portal/components/from-elsewhere.js","portal/components/gl-importers/api.js","portal/components/gl-importers/banklink.js","portal/components/gl-importers/eaccounts.js","portal/components/gl-importers/empower.js","portal/components/gl-importers/frameworks.js","portal/components/gl-importers/gj-gardner.js","portal/components/gl-importers/itm-manual.js","portal/components/gl-importers/maxim.js","portal/components/gl-importers/myob-ao.js","portal/components/gl-importers/myob.js","portal/components/gl-importers/prostix.js","portal/components/gl-importers/rees.js","portal/components/gl-importers/xero-api.js","portal/components/gl-importers/xero-csv.js","portal/components/google-map.js","portal/components/grouping-selector.js","portal/components/groups-redacted-notice.js","portal/components/icon-button.js","portal/components/indeterminate-checkbox.js","portal/components/infinity-scroll.js","portal/components/info-popup.js","portal/components/info-wrapper.js","portal/components/integration-icon.js","portal/components/invoice-item-editor-modal.js","portal/components/invoice-item-table-pm.js","portal/components/invoice-type-response-handler.js","portal/components/invoices-uploader.js","portal/components/ips-uploader.js","portal/components/ips-usage.js","portal/components/ips-usage/alert.js","portal/components/ips-usage/upgrade.js","portal/components/item-selector.js","portal/components/item-selector/bread-crumb.js","portal/components/itm-financial-table-section.js","portal/components/label-indicator.js","portal/components/label-popup.js","portal/components/lazy-each.js","portal/components/link-to-external.js","portal/components/loading-button.js","portal/components/loading-icon.js","portal/components/logged-in-as.js","portal/components/mapping/draggable-map.js","portal/components/mapping/map-list.js","portal/components/mapping/map-status.js","portal/components/markdown-to-html.js","portal/components/metric-breakdown.js","portal/components/mobile-side-bar.js","portal/components/mobile-side-menu.js","portal/components/mobile-title-bar.js","portal/components/mobile-title-bar/avatar.js","portal/components/mobile-title-bar/avatar/avatar-link.js","portal/components/mobile-title-bar/back-button.js","portal/components/mobile-title-bar/burger-button.js","portal/components/mobile-title-bar/page-title.js","portal/components/modal-dialog.js","portal/components/module-navigation/admin.js","portal/components/module-navigation/dashboard.js","portal/components/module-navigation/financials.js","portal/components/module-navigation/module-dashboard.js","portal/components/module-navigation/operations/incoming.js","portal/components/module-navigation/operations/outgoing.js","portal/components/module-navigation/pricing.js","portal/components/module-navigation/project.js","portal/components/module-navigation/projects.js","portal/components/module-navigation/reports.js","portal/components/module-navigation/reports/company-reports.js","portal/components/module-navigation/reports/project.js","portal/components/module-navigation/scheduling.js","portal/components/module-navigation/settings.js","portal/components/month-picker.js","portal/components/multi-item-selector-paginated.js","portal/components/multi-item-selector.js","portal/components/multi-task-selector-input.js","portal/components/multi-task-selector.js","portal/components/multiple-from-elsewhere.js","portal/components/multiselect-checkboxes.js","portal/components/nested-task-card.js","portal/components/nested-task-card/add-task.js","portal/components/new-combo-box.js","portal/components/new-supplier-prompt.js","portal/components/notification-container.js","portal/components/notification-message.js","portal/components/overlaid-dropdown.js","portal/components/page-filters.js","portal/components/page-filters/item.js","portal/components/page-filters/pill.js","portal/components/page-header.js","portal/components/page-title-breadcrumbs.js","portal/components/pagination-table.js","portal/components/pdf-export-timesheet-row.js","portal/components/people-table.js","portal/components/personal-financial-table-section.js","portal/components/pm-integration-settings.js","portal/components/pop-hover-over.js","portal/components/pop-hover-over/content.js","portal/components/pop-over.js","portal/components/pop-over/content.js","portal/components/pop-up.js","portal/components/pop-up/content.js","portal/components/power-calendar-multiple.js","portal/components/power-calendar-multiple/days.js","portal/components/power-calendar-range.js","portal/components/power-calendar-range/days.js","portal/components/power-calendar.js","portal/components/power-calendar/days.js","portal/components/power-calendar/nav.js","portal/components/power-select-after-options-button.js","portal/components/power-select-multiple.js","portal/components/power-select-multiple/input.js","portal/components/power-select-multiple/trigger.js","portal/components/power-select.js","portal/components/power-select/before-options.js","portal/components/power-select/input.js","portal/components/power-select/label.js","portal/components/power-select/no-matches-message.js","portal/components/power-select/options.js","portal/components/power-select/placeholder.js","portal/components/power-select/power-select-group.js","portal/components/power-select/search-message.js","portal/components/power-select/trigger.js","portal/components/pricing-page.js","portal/components/pricing-quote-uploader.js","portal/components/product-editor.js","portal/components/product-selector.js","portal/components/products-uploader.js","portal/components/profit-margin-form.js","portal/components/project-card.js","portal/components/project-change-set-description.js","portal/components/project-selector.js","portal/components/ptl-form.js","portal/components/ptl-input.js","portal/components/purchase-order-item-creator.js","portal/components/purchase-order-item-selector.js","portal/components/radio-button.js","portal/components/radio-slider.js","portal/components/referral-promotion-button.js","portal/components/report-builder-pm/invoice-type-table.js","portal/components/report-builder-pm/manual-type-table.js","portal/components/report-builder-pm/timesheet-type-table.js","portal/components/report-engine-element-container.js","portal/components/report-engine-element.js","portal/components/report-engine-element/big-text.js","portal/components/report-engine-element/card.js","portal/components/report-engine-element/gauge.js","portal/components/report-engine-element/note-timeline.js","portal/components/report-engine-element/pie.js","portal/components/report-engine-element/projects-table.js","portal/components/report-engine-element/table.js","portal/components/report-engine-element/table/row.js","portal/components/report-engine-element/value.js","portal/components/report-engine-element/value/value.js","portal/components/report-exporter-pm.js","portal/components/resource-history.js","portal/components/rich-text-editor.js","portal/components/search-select.js","portal/components/search-select/item.js","portal/components/search-selector.js","portal/components/select-input.js","portal/components/select-input/option.js","portal/components/sidebar.js","portal/components/sidebar/back-button.js","portal/components/sidebar/entity-selector.js","portal/components/sidebar/item.js","portal/components/sidebar/section.js","portal/components/sidebar/title.js","portal/components/skeleton-screens/table.js","portal/components/sortable-list.js","portal/components/stage-payment-task-selector-row.js","portal/components/stage-payment-task-selector.js","portal/components/sticky-top.js","portal/components/strategies-table.js","portal/components/supplier-invoices-pm/invoice-item.js","portal/components/supplier-invoices-pm/invoice-row.js","portal/components/supplier-invoices-pm/invoice.js","portal/components/takeoff-uploader-modal.js","portal/components/takeoff-uploader-modal/assign.js","portal/components/takeoff-uploader-modal/item-row.js","portal/components/takeoff-uploader-modal/item-row/add-item.js","portal/components/takeoff-uploader-modal/map.js","portal/components/takeoff-uploader-modal/upload.js","portal/components/task-breadcrumbs.js","portal/components/task-detail-badge.js","portal/components/task-progress-position-row.js","portal/components/task-selector.js","portal/components/task-selector/bread-crumb.js","portal/components/task-template-item-row.js","portal/components/task-template-item-row/add-item.js","portal/components/task-template-modal.js","portal/components/task-transfer-selector.js","portal/components/task-type-badge.js","portal/components/timeline-task-import-item-row.js","portal/components/timeline-task-import-item-row/add-item.js","portal/components/timeline-task-import-modal.js","portal/components/timesheet-line-pm.js","portal/components/timesheets-table-pm.js","portal/components/title-bar-tabs.js","portal/components/title-bar-tabs/tab.js","portal/components/title-bar.js","portal/components/to-elsewhere.js","portal/components/usage-bar.js","portal/components/value-change-indicator.js","portal/components/worker-cost-calculator.js","portal/components/worker-project-allocation-modal.js","portal/controllers/admin.js","portal/controllers/admin/announcements.js","portal/controllers/admin/announcements/announcement.js","portal/controllers/admin/announcements/index.js","portal/controllers/admin/billing-report.js","portal/controllers/admin/entities.js","portal/controllers/admin/entities/entity.js","portal/controllers/admin/entities/index.js","portal/controllers/admin/licensees/index.js","portal/controllers/admin/licensees/licensee.js","portal/controllers/application.js","portal/controllers/complete-registration-cb.js","portal/controllers/entity-loading.js","portal/controllers/entity.js","portal/controllers/entity/builda-price.js","portal/controllers/entity/builda-price/company/documents/project-file/task-file.js","portal/controllers/entity/builda-price/dashboard.js","portal/controllers/entity/builda-price/dashboard/index.js","portal/controllers/entity/builda-price/operations/documents/index.js","portal/controllers/entity/builda-price/operations/documents/project-file/index.js","portal/controllers/entity/builda-price/operations/documents/project-file/task-file.js","portal/controllers/entity/builda-price/operations/incoming/bills-legacy.js","portal/controllers/entity/builda-price/operations/incoming/bills-legacy/bill.js","portal/controllers/entity/builda-price/operations/incoming/bills.js","portal/controllers/entity/builda-price/operations/incoming/statements.js","portal/controllers/entity/builda-price/operations/incoming/timesheets.js","portal/controllers/entity/builda-price/operations/incoming/timesheets/timesheet.js","portal/controllers/entity/builda-price/operations/outgoing/invoices/index.js","portal/controllers/entity/builda-price/operations/outgoing/invoices/invoice.js","portal/controllers/entity/builda-price/operations/outgoing/payroll.js","portal/controllers/entity/builda-price/operations/outgoing/purchase-orders/index.js","portal/controllers/entity/builda-price/operations/outgoing/purchase-orders/purchase-order.js","portal/controllers/entity/builda-price/operations/outgoing/report-builder/csv.js","portal/controllers/entity/builda-price/operations/outgoing/report-builder/excel.js","portal/controllers/entity/builda-price/operations/outgoing/report-builder/index.js","portal/controllers/entity/builda-price/operations/outgoing/report-builder/pdf.js","portal/controllers/entity/builda-price/operations/products.js","portal/controllers/entity/builda-price/projects.js","portal/controllers/entity/builda-price/projects/index.js","portal/controllers/entity/builda-price/projects/project/documents.js","portal/controllers/entity/builda-price/projects/project/estimates.js","portal/controllers/entity/builda-price/projects/project/estimates/index.js","portal/controllers/entity/builda-price/projects/project/financials.js","portal/controllers/entity/builda-price/projects/project/health-and-safety.js","portal/controllers/entity/builda-price/projects/project/people.js","portal/controllers/entity/builda-price/projects/project/people/clients/client.js","portal/controllers/entity/builda-price/projects/project/people/clients/index.js","portal/controllers/entity/builda-price/projects/project/people/subcontractors/index.js","portal/controllers/entity/builda-price/projects/project/people/subcontractors/subcontractor.js","portal/controllers/entity/builda-price/projects/project/people/users/index.js","portal/controllers/entity/builda-price/projects/project/people/users/user.js","portal/controllers/entity/builda-price/projects/project/people/workers/index.js","portal/controllers/entity/builda-price/projects/project/people/workers/worker.js","portal/controllers/entity/builda-price/projects/project/products.js","portal/controllers/entity/builda-price/projects/project/progress.js","portal/controllers/entity/builda-price/projects/project/settings.js","portal/controllers/entity/builda-price/projects/project/stage-payments.js","portal/controllers/entity/builda-price/projects/project/tasks.js","portal/controllers/entity/builda-price/projects/project/tasks/index.js","portal/controllers/entity/builda-price/projects/project/tasks/task.js","portal/controllers/entity/builda-price/projects/project/tasks/task/documents.js","portal/controllers/entity/builda-price/projects/project/tasks/task/financials.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/clients/client.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/clients/index.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/subcontractors/index.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/users/index.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/users/user.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/workers/index.js","portal/controllers/entity/builda-price/projects/project/tasks/task/people/workers/worker.js","portal/controllers/entity/builda-price/projects/project/tasks/task/products.js","portal/controllers/entity/builda-price/projects/project/tasks/task/settings.js","portal/controllers/entity/builda-price/reports/company/forecast-breakdown.js","portal/controllers/entity/builda-price/reports/company/invoicing.js","portal/controllers/entity/builda-price/reports/company/labour-hours.js","portal/controllers/entity/builda-price/reports/company/notes.js","portal/controllers/entity/builda-price/reports/company/position.js","portal/controllers/entity/builda-price/reports/company/profit-margins.js","portal/controllers/entity/builda-price/reports/company/wip.js","portal/controllers/entity/builda-price/reports/projects/index.js","portal/controllers/entity/builda-price/reports/projects/project.js","portal/controllers/entity/builda-price/reports/projects/project/access.js","portal/controllers/entity/builda-price/reports/projects/project/budget/index.js","portal/controllers/entity/builda-price/reports/projects/project/budget/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/chargeup/index.js","portal/controllers/entity/builda-price/reports/projects/project/chargeup/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/cost-to-complete/index.js","portal/controllers/entity/builda-price/reports/projects/project/cost-to-complete/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/cost.js","portal/controllers/entity/builda-price/reports/projects/project/forecast-breakdown/index.js","portal/controllers/entity/builda-price/reports/projects/project/forecast-breakdown/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/invoicing/index.js","portal/controllers/entity/builda-price/reports/projects/project/invoicing/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/labour-hours/index.js","portal/controllers/entity/builda-price/reports/projects/project/labour-hours/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/notes.js","portal/controllers/entity/builda-price/reports/projects/project/position/index.js","portal/controllers/entity/builda-price/reports/projects/project/position/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/profit-margins/index.js","portal/controllers/entity/builda-price/reports/projects/project/profit-margins/task/index.js","portal/controllers/entity/builda-price/reports/projects/project/quote/index.js","portal/controllers/entity/builda-price/reports/projects/project/quote/task/index.js","portal/controllers/entity/builda-price/scheduling.js","portal/controllers/entity/builda-price/scheduling/timeline.js","portal/controllers/entity/disabled.js","portal/controllers/entity/financials.js","portal/controllers/entity/financials/chart-of-accounts.js","portal/controllers/entity/financials/dashboard-loading.js","portal/controllers/entity/financials/dashboard.js","portal/controllers/entity/financials/general.js","portal/controllers/entity/financials/groups/access.js","portal/controllers/entity/financials/groups/membership.js","portal/controllers/entity/financials/groups/order.js","portal/controllers/entity/financials/import.js","portal/controllers/entity/financials/import/data.js","portal/controllers/entity/financials/import/start.js","portal/controllers/entity/financials/kpis.js","portal/controllers/entity/financials/kpis/kpi.js","portal/controllers/entity/financials/planning/strategies.js","portal/controllers/entity/financials/reports/general-ledger/balance-sheet.js","portal/controllers/entity/financials/reports/general-ledger/generic.js","portal/controllers/entity/financials/reports/general-ledger/itm-profit-and-loss.js","portal/controllers/entity/financials/reports/general-ledger/other-data.js","portal/controllers/entity/financials/reports/general-ledger/personal-data.js","portal/controllers/entity/financials/reports/general-ledger/profit-and-loss.js","portal/controllers/entity/financials/reports/kpis/index.js","portal/controllers/entity/financials/reports/kpis/kpi.js","portal/controllers/entity/index.js","portal/controllers/entity/module-dashboard.js","portal/controllers/entity/settings/auto-mapping.js","portal/controllers/entity/settings/chart-of-accounts/chart-of-account.js","portal/controllers/entity/settings/chart-of-accounts/index.js","portal/controllers/entity/settings/company.js","portal/controllers/entity/settings/contacts/contact.js","portal/controllers/entity/settings/contacts/index.js","portal/controllers/entity/settings/gl-accounts.js","portal/controllers/entity/settings/integrations.js","portal/controllers/entity/settings/people.js","portal/controllers/entity/settings/people/clients/client.js","portal/controllers/entity/settings/people/clients/index.js","portal/controllers/entity/settings/people/subcontractors/index.js","portal/controllers/entity/settings/people/subcontractors/subcontractor.js","portal/controllers/entity/settings/people/users/index.js","portal/controllers/entity/settings/people/users/user.js","portal/controllers/entity/settings/people/workers/index.js","portal/controllers/entity/settings/people/workers/worker.js","portal/controllers/entity/settings/profile.js","portal/controllers/entity/settings/suppliers.js","portal/controllers/initiate-password-reset.js","portal/controllers/no-access.js","portal/controllers/reset-password.js","portal/controllers/terms-of-service.js","portal/data-adapter.js","portal/formats.js","portal/helpers/-base.js","portal/helpers/and.js","portal/helpers/app-version.js","portal/helpers/assign.js","portal/helpers/bool.js","portal/helpers/camel-case-words.js","portal/helpers/camelize.js","portal/helpers/cancel-all.js","portal/helpers/capitalize.js","portal/helpers/changeset-get.js","portal/helpers/changeset-set.js","portal/helpers/changeset.js","portal/helpers/chunk-callback.js","portal/helpers/classify.js","portal/helpers/convert-to-title-case.js","portal/helpers/dasherize.js","portal/helpers/date-ago.js","portal/helpers/element.js","portal/helpers/ellipsis-characters.js","portal/helpers/ellipsis-words.js","portal/helpers/ember-power-calendar-day-classes.js","portal/helpers/ember-power-select-is-equal.js","portal/helpers/ember-power-select-is-group.js","portal/helpers/ember-power-select-is-selected-present.js","portal/helpers/ensure-safe-component.js","portal/helpers/eq.js","portal/helpers/excludes-feature-flags.js","portal/helpers/excludes-some-feature-flags.js","portal/helpers/file-size-to-string.js","portal/helpers/format-date.js","portal/helpers/format-duration.js","portal/helpers/format-message.js","portal/helpers/format-number.js","portal/helpers/format-relative.js","portal/helpers/format-shortcut.js","portal/helpers/format-time.js","portal/helpers/get-file-icon.js","portal/helpers/gt.js","portal/helpers/gte.js","portal/helpers/html-safe.js","portal/helpers/humanize.js","portal/helpers/if-key.js","portal/helpers/ignore-children.js","portal/helpers/inc.js","portal/helpers/includes-feature-flags.js","portal/helpers/includes-some-feature-flags.js","portal/helpers/includes.js","portal/helpers/is-active.js","portal/helpers/is-after.js","portal/helpers/is-array.js","portal/helpers/is-before.js","portal/helpers/is-between.js","portal/helpers/is-empty.js","portal/helpers/is-equal.js","portal/helpers/is-hash.js","portal/helpers/is-same-or-after.js","portal/helpers/is-same-or-before.js","portal/helpers/is-same.js","portal/helpers/lowercase.js","portal/helpers/lt.js","portal/helpers/lte.js","portal/helpers/map-get.js","portal/helpers/math.js","portal/helpers/media.js","portal/helpers/moment-add.js","portal/helpers/moment-calendar.js","portal/helpers/moment-diff.js","portal/helpers/moment-duration.js","portal/helpers/moment-format.js","portal/helpers/moment-from-now.js","portal/helpers/moment-from.js","portal/helpers/moment-subtract.js","portal/helpers/moment-to-date.js","portal/helpers/moment-to-now.js","portal/helpers/moment-to.js","portal/helpers/moment.js","portal/helpers/not-eq.js","portal/helpers/not.js","portal/helpers/now.js","portal/helpers/number-format.js","portal/helpers/number-to-char.js","portal/helpers/object-at.js","portal/helpers/on-key.js","portal/helpers/or.js","portal/helpers/ordinal-for.js","portal/helpers/page-title.js","portal/helpers/pagination-callback.js","portal/helpers/perform.js","portal/helpers/pipe.js","portal/helpers/pluralize.js","portal/helpers/power-calendar-format-date.js","portal/helpers/prevent-default.js","portal/helpers/profit-type-label.js","portal/helpers/project-status-label.js","portal/helpers/range.js","portal/helpers/replace-with.js","portal/helpers/root-url.js","portal/helpers/round-number.js","portal/helpers/route-params.js","portal/helpers/singularize.js","portal/helpers/sort-accounts.js","portal/helpers/stop-propagation.js","portal/helpers/t.js","portal/helpers/task.js","portal/helpers/timesheet-status-label.js","portal/helpers/titleize.js","portal/helpers/toggle-action.js","portal/helpers/toggle.js","portal/helpers/transition-to.js","portal/helpers/trim.js","portal/helpers/truncate.js","portal/helpers/underscore.js","portal/helpers/unix.js","portal/helpers/uppercase.js","portal/helpers/url-for.js","portal/helpers/utc.js","portal/helpers/w.js","portal/helpers/xor.js","portal/initializers/am5.js","portal/initializers/app-version.js","portal/initializers/deprecation-handler.js","portal/initializers/ember-cli-mirage.js","portal/initializers/ember-data-data-adapter.js","portal/initializers/ember-data.js","portal/initializers/ember-responsive-breakpoints.js","portal/initializers/ember-simple-auth.js","portal/initializers/engines.js","portal/initializers/init-domain.js","portal/initializers/mobile-drag-drop.js","portal/initializers/new-relic.js","portal/initializers/responsive.js","portal/initializers/restore-array-extensions.js","portal/initializers/update-check-842bcfc2e55bff3468d9b7cc2cb618ef.js","portal/initializers/urls.js","portal/instance-initializers/add-modals-container.js","portal/instance-initializers/ember-cli-mirage-autostart.js","portal/metrics-adapters/base.js","portal/mirage/attribute-names.js","portal/mirage/config.js","portal/mirage/demo/figures.js","portal/mirage/demo/pdf.js","portal/mirage/demo/random.js","portal/mirage/demo/seed.js","portal/mirage/demo/views.js","portal/mirage/demo/vocabulary.js","portal/mirage/factories/account-map.js","portal/mirage/factories/account.js","portal/mirage/factories/attachment-attribute.js","portal/mirage/factories/attachment-project-attribute.js","portal/mirage/factories/attachment.js","portal/mirage/factories/bill-item.js","portal/mirage/factories/bill.js","portal/mirage/factories/budget-change-set.js","portal/mirage/factories/budget-change.js","portal/mirage/factories/budget-version-value.js","portal/mirage/factories/budget-version.js","portal/mirage/factories/contact.js","portal/mirage/factories/dashboard-module.js","portal/mirage/factories/eaccounts-invoice-integration.js","portal/mirage/factories/entity-attribute.js","portal/mirage/factories/entity-group.js","portal/mirage/factories/entity-product.js","portal/mirage/factories/entity.js","portal/mirage/factories/estimate.js","portal/mirage/factories/financial-option.js","portal/mirage/factories/gl-account.js","portal/mirage/factories/import.js","portal/mirage/factories/invoice-attachment.js","portal/mirage/factories/invoice-auto-map-directive.js","portal/mirage/factories/invoice-item.js","portal/mirage/factories/invoice-option.js","portal/mirage/factories/invoice.js","portal/mirage/factories/ips-document.js","portal/mirage/factories/itm-supplier.js","portal/mirage/factories/kpi.js","portal/mirage/factories/labour-cost-calculator-item.js","portal/mirage/factories/labour-cost-calculator.js","portal/mirage/factories/pm-connection.js","portal/mirage/factories/pricing-connection.js","portal/mirage/factories/pricing-role.js","portal/mirage/factories/profit-margin.js","portal/mirage/factories/progress-change-set.js","portal/mirage/factories/progress-change.js","portal/mirage/factories/progress-version-value.js","portal/mirage/factories/progress-version.js","portal/mirage/factories/project-attachment-attribute.js","portal/mirage/factories/project-attribute.js","portal/mirage/factories/project-commit.js","portal/mirage/factories/project-product.js","portal/mirage/factories/project.js","portal/mirage/factories/purchase-order-item.js","portal/mirage/factories/purchase-order-option.js","portal/mirage/factories/purchase-order.js","portal/mirage/factories/question.js","portal/mirage/factories/quote-change-set.js","portal/mirage/factories/quote-change.js","portal/mirage/factories/quote-version-value.js","portal/mirage/factories/quote-version.js","portal/mirage/factories/report-export-option.js","portal/mirage/factories/resource-event.js","portal/mirage/factories/scheduling-change-set.js","portal/mirage/factories/scheduling-change.js","portal/mirage/factories/scheduling-version-value.js","portal/mirage/factories/scheduling-version.js","portal/mirage/factories/stage-payment.js","portal/mirage/factories/supplier-debtor-account.js","portal/mirage/factories/target.js","portal/mirage/factories/task-change-set.js","portal/mirage/factories/task-change.js","portal/mirage/factories/task-product.js","portal/mirage/factories/task-template-item.js","portal/mirage/factories/task-template.js","portal/mirage/factories/task.js","portal/mirage/factories/timesheet-note.js","portal/mirage/factories/timesheet-status.js","portal/mirage/factories/timesheet.js","portal/mirage/factories/user-attachment-attribute.js","portal/mirage/factories/user-attribute.js","portal/mirage/factories/user-entity-attribute.js","portal/mirage/factories/user-project-attribute.js","portal/mirage/factories/user-task-attribute.js","portal/mirage/factories/user-worker-attribute.js","portal/mirage/factories/user.js","portal/mirage/factories/worker-attribute.js","portal/mirage/factories/worker-entity-attribute.js","portal/mirage/factories/worker-job-allocation.js","portal/mirage/factories/worker-project-attribute.js","portal/mirage/factories/worker-task-attribute.js","portal/mirage/factories/worker.js","portal/mirage/factories/xero-connection.js","portal/mirage/factories/xero-earnings-rate.js","portal/mirage/factories/xero-employee.js","portal/mirage/factories/xero-tracking-option.js","portal/mirage/fixture-sets.js","portal/mirage/model-names.js","portal/mirage/responders/ad-hoc-report.js","portal/mirage/responders/auth.js","portal/mirage/responders/buildaprice-add-templates.js","portal/mirage/responders/buildaprice-create-price.js","portal/mirage/responders/buildaprice-create-tasks-from-estimate.js","portal/mirage/responders/buildaprice-duplicate-price.js","portal/mirage/responders/buildaprice-edit-price.js","portal/mirage/responders/buildaprice-entities.js","portal/mirage/responders/buildaprice-get-import-status.js","portal/mirage/responders/buildaprice-get-quotes.js","portal/mirage/responders/buildaprice-get-template.js","portal/mirage/responders/buildaprice-import-estimate.js","portal/mirage/responders/buildaprice-import-materials.js","portal/mirage/responders/gantt-chart.js","portal/mirage/responders/get-with-filter.js","portal/mirage/responders/ips.js","portal/mirage/responders/reports.js","portal/mirage/responders/resolve-model-key.js","portal/mirage/responders/static-content.js","portal/mirage/responders/v2-get-with-filter.js","portal/mirage/responders/v2-resources.js","portal/mirage/scenarios/default.js","portal/mirage/serializers/application.js","portal/mixins/edit-record.js","portal/mixins/menu-route.js","portal/mixins/scroll-route.js","portal/models/account-map.js","portal/models/account.js","portal/models/attachment-attribute.js","portal/models/attachment-project-attribute.js","portal/models/attachment.js","portal/models/base-attachment-model.js","portal/models/base-model.js","portal/models/bill-attachment.js","portal/models/bill-item.js","portal/models/bill.js","portal/models/budget-change-set.js","portal/models/budget-change.js","portal/models/budget-version-value.js","portal/models/budget-version.js","portal/models/contact.js","portal/models/dashboard-module.js","portal/models/eaccounts-invoice-integration.js","portal/models/entity-attribute.js","portal/models/entity-group.js","portal/models/entity-invoice-option.js","portal/models/entity-product.js","portal/models/entity.js","portal/models/estimate.js","portal/models/financial-option.js","portal/models/gl-account.js","portal/models/import.js","portal/models/index.js","portal/models/invoice-attachment.js","portal/models/invoice-auto-map-directive.js","portal/models/invoice-invoice-option.js","portal/models/invoice-item.js","portal/models/invoice.js","portal/models/ips-connection.js","portal/models/ips-document.js","portal/models/itm-supplier.js","portal/models/kpi.js","portal/models/labour-cost-calculator-item.js","portal/models/labour-cost-calculator.js","portal/models/link-attachment-to-entity.js","portal/models/link-attachment-to-project.js","portal/models/link-attachment-to-purchase-order.js","portal/models/link-attachment-to-task.js","portal/models/link-dashboard-module-account.js","portal/models/link-dashboard-module-entity-group.js","portal/models/link-dashboard-module-entity.js","portal/models/link-dashboard-module-kpi.js","portal/models/link-entity-group-can-be-accessed-by.js","portal/models/link-entity-group-member.js","portal/models/link-entity-to-entity-attribute.js","portal/models/link-invoice-item-to-bill-item.js","portal/models/link-invoice-item-to-project.js","portal/models/link-invoice-item-to-task.js","portal/models/link-invoice-item-to-timesheet.js","portal/models/link-task-to-stage-payment.js","portal/models/link-user-to-entity-group.js","portal/models/link-user-to-pricing-role.js","portal/models/pm-connection.js","portal/models/pricing-connection.js","portal/models/pricing-role.js","portal/models/profit-margin.js","portal/models/progress-change-set.js","portal/models/progress-change.js","portal/models/progress-version-value.js","portal/models/progress-version.js","portal/models/project-commit.js","portal/models/project-product.js","portal/models/project.js","portal/models/purchase-order-item.js","portal/models/purchase-order-option.js","portal/models/purchase-order.js","portal/models/quickbooks-employee.js","portal/models/quickbooks-oauth2-connection.js","portal/models/quote-change-set.js","portal/models/quote-change.js","portal/models/quote-version-value.js","portal/models/quote-version.js","portal/models/report-export-option.js","portal/models/resource-event.js","portal/models/scheduling-change-set.js","portal/models/scheduling-change.js","portal/models/scheduling-version-value.js","portal/models/scheduling-version.js","portal/models/stage-payment-option.js","portal/models/stage-payment-question.js","portal/models/stage-payment.js","portal/models/supplier-debtor-account.js","portal/models/system-announcement.js","portal/models/target.js","portal/models/task-change-set.js","portal/models/task-change.js","portal/models/task-product.js","portal/models/task-template-item.js","portal/models/task-template.js","portal/models/task.js","portal/models/timesheet-note.js","portal/models/timesheet-status.js","portal/models/timesheet.js","portal/models/user-attachment-attribute.js","portal/models/user-attribute.js","portal/models/user-entity-attribute.js","portal/models/user-project-attribute.js","portal/models/user-task-attribute.js","portal/models/user-worker-attribute.js","portal/models/user.js","portal/models/worker-attribute.js","portal/models/worker-entity-attribute.js","portal/models/worker-job-allocation.js","portal/models/worker-project-attribute.js","portal/models/worker-task-attribute.js","portal/models/worker.js","portal/models/xero-connection.js","portal/models/xero-earnings-rate.js","portal/models/xero-employee.js","portal/models/xero-tracking-option.js","portal/modifiers/basic-dropdown-trigger.js","portal/modifiers/bootstrap-tooltip.js","portal/modifiers/did-insert.js","portal/modifiers/did-update.js","portal/modifiers/on-key.js","portal/modifiers/style.js","portal/modifiers/will-destroy.js","portal/resolver.js","portal/router.js","portal/routes/admin.js","portal/routes/admin/announcements/announcement.js","portal/routes/admin/announcements/index.js","portal/routes/admin/billing-report.js","portal/routes/admin/demo-entity.js","portal/routes/admin/entities/entity.js","portal/routes/admin/entities/index.js","portal/routes/admin/index.js","portal/routes/admin/licensees/index.js","portal/routes/admin/licensees/licensee.js","portal/routes/application.js","portal/routes/basic.js","portal/routes/complete-pm-auth.js","portal/routes/complete-registration-cb.js","portal/routes/embed.js","portal/routes/embed/documents.js","portal/routes/embed/documents/index.js","portal/routes/embed/documents/project-file.js","portal/routes/embed/documents/project-file/index.js","portal/routes/embed/documents/project-file/task-file.js","portal/routes/embed/error.js","portal/routes/embed/labour-hours.js","portal/routes/embed/notes.js","portal/routes/embed/position.js","portal/routes/embed/profit-margins.js","portal/routes/embed/scheduling.js","portal/routes/embed/timesheets.js","portal/routes/embed/timesheets/timesheet.js","portal/routes/entity-loading.js","portal/routes/entity.js","portal/routes/entity/builda-price.js","portal/routes/entity/builda-price/dashboard/index.js","portal/routes/entity/builda-price/index.js","portal/routes/entity/builda-price/operations/documents.js","portal/routes/entity/builda-price/operations/documents/index.js","portal/routes/entity/builda-price/operations/documents/project-file.js","portal/routes/entity/builda-price/operations/documents/project-file/index.js","portal/routes/entity/builda-price/operations/documents/project-file/task-file.js","portal/routes/entity/builda-price/operations/incoming/bills-legacy.js","portal/routes/entity/builda-price/operations/incoming/bills-legacy/bill.js","portal/routes/entity/builda-price/operations/incoming/bills.js","portal/routes/entity/builda-price/operations/incoming/bills/bill.js","portal/routes/entity/builda-price/operations/incoming/index.js","portal/routes/entity/builda-price/operations/incoming/invoices/index.js","portal/routes/entity/builda-price/operations/incoming/invoices/invoice.js","portal/routes/entity/builda-price/operations/incoming/statements.js","portal/routes/entity/builda-price/operations/incoming/timesheets.js","portal/routes/entity/builda-price/operations/incoming/timesheets/index.js","portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet-loading.js","portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet.js","portal/routes/entity/builda-price/operations/index.js","portal/routes/entity/builda-price/operations/outgoing/index.js","portal/routes/entity/builda-price/operations/outgoing/invoices/index.js","portal/routes/entity/builda-price/operations/outgoing/invoices/invoice.js","portal/routes/entity/builda-price/operations/outgoing/payroll.js","portal/routes/entity/builda-price/operations/outgoing/purchase-orders.js","portal/routes/entity/builda-price/operations/outgoing/purchase-orders/index.js","portal/routes/entity/builda-price/operations/outgoing/purchase-orders/purchase-order.js","portal/routes/entity/builda-price/operations/outgoing/report-builder/csv.js","portal/routes/entity/builda-price/operations/outgoing/report-builder/excel.js","portal/routes/entity/builda-price/operations/outgoing/report-builder/index.js","portal/routes/entity/builda-price/operations/outgoing/report-builder/pdf.js","portal/routes/entity/builda-price/operations/products.js","portal/routes/entity/builda-price/projects.js","portal/routes/entity/builda-price/projects/index.js","portal/routes/entity/builda-price/projects/project.js","portal/routes/entity/builda-price/projects/project/documents.js","portal/routes/entity/builda-price/projects/project/estimates/estimate.js","portal/routes/entity/builda-price/projects/project/estimates/index.js","portal/routes/entity/builda-price/projects/project/financials.js","portal/routes/entity/builda-price/projects/project/health-and-safety.js","portal/routes/entity/builda-price/projects/project/index.js","portal/routes/entity/builda-price/projects/project/people.js","portal/routes/entity/builda-price/projects/project/people/clients/client.js","portal/routes/entity/builda-price/projects/project/people/clients/index.js","portal/routes/entity/builda-price/projects/project/people/index.js","portal/routes/entity/builda-price/projects/project/people/subcontractors/index.js","portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor.js","portal/routes/entity/builda-price/projects/project/people/users/index.js","portal/routes/entity/builda-price/projects/project/people/users/user.js","portal/routes/entity/builda-price/projects/project/people/workers/index.js","portal/routes/entity/builda-price/projects/project/people/workers/worker.js","portal/routes/entity/builda-price/projects/project/prices.js","portal/routes/entity/builda-price/projects/project/products.js","portal/routes/entity/builda-price/projects/project/progress.js","portal/routes/entity/builda-price/projects/project/settings.js","portal/routes/entity/builda-price/projects/project/stage-payments.js","portal/routes/entity/builda-price/projects/project/tasks/index.js","portal/routes/entity/builda-price/projects/project/tasks/task.js","portal/routes/entity/builda-price/projects/project/tasks/task/documents.js","portal/routes/entity/builda-price/projects/project/tasks/task/financials.js","portal/routes/entity/builda-price/projects/project/tasks/task/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/client.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/users/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/users/user.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/workers/index.js","portal/routes/entity/builda-price/projects/project/tasks/task/people/workers/worker.js","portal/routes/entity/builda-price/projects/project/tasks/task/products.js","portal/routes/entity/builda-price/projects/project/tasks/task/settings.js","portal/routes/entity/builda-price/reports/company/forecast-breakdown.js","portal/routes/entity/builda-price/reports/company/invoicing.js","portal/routes/entity/builda-price/reports/company/labour-hours.js","portal/routes/entity/builda-price/reports/company/notes.js","portal/routes/entity/builda-price/reports/company/position.js","portal/routes/entity/builda-price/reports/company/profit-margins.js","portal/routes/entity/builda-price/reports/company/wip.js","portal/routes/entity/builda-price/reports/index.js","portal/routes/entity/builda-price/reports/projects/index.js","portal/routes/entity/builda-price/reports/projects/project.js","portal/routes/entity/builda-price/reports/projects/project/access.js","portal/routes/entity/builda-price/reports/projects/project/budget/index.js","portal/routes/entity/builda-price/reports/projects/project/budget/task.js","portal/routes/entity/builda-price/reports/projects/project/budget/task/index.js","portal/routes/entity/builda-price/reports/projects/project/chargeup/index.js","portal/routes/entity/builda-price/reports/projects/project/chargeup/task.js","portal/routes/entity/builda-price/reports/projects/project/chargeup/task/index.js","portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/index.js","portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/task.js","portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/task/index.js","portal/routes/entity/builda-price/reports/projects/project/cost.js","portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/index.js","portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/task.js","portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/task/index.js","portal/routes/entity/builda-price/reports/projects/project/index.js","portal/routes/entity/builda-price/reports/projects/project/invoicing/index.js","portal/routes/entity/builda-price/reports/projects/project/invoicing/task.js","portal/routes/entity/builda-price/reports/projects/project/invoicing/task/index.js","portal/routes/entity/builda-price/reports/projects/project/labour-hours/index.js","portal/routes/entity/builda-price/reports/projects/project/labour-hours/task.js","portal/routes/entity/builda-price/reports/projects/project/labour-hours/task/index.js","portal/routes/entity/builda-price/reports/projects/project/notes.js","portal/routes/entity/builda-price/reports/projects/project/position/index.js","portal/routes/entity/builda-price/reports/projects/project/position/task.js","portal/routes/entity/builda-price/reports/projects/project/position/task/index.js","portal/routes/entity/builda-price/reports/projects/project/profit-margins/index.js","portal/routes/entity/builda-price/reports/projects/project/profit-margins/task.js","portal/routes/entity/builda-price/reports/projects/project/profit-margins/task/index.js","portal/routes/entity/builda-price/reports/projects/project/quote/index.js","portal/routes/entity/builda-price/reports/projects/project/quote/task.js","portal/routes/entity/builda-price/reports/projects/project/quote/task/index.js","portal/routes/entity/builda-price/scheduling.js","portal/routes/entity/builda-price/scheduling/index.js","portal/routes/entity/builda-price/scheduling/timeline.js","portal/routes/entity/disabled.js","portal/routes/entity/financials.js","portal/routes/entity/financials/chart-of-accounts.js","portal/routes/entity/financials/dashboard-loading.js","portal/routes/entity/financials/dashboard.js","portal/routes/entity/financials/general.js","portal/routes/entity/financials/groups.js","portal/routes/entity/financials/groups/access.js","portal/routes/entity/financials/groups/index.js","portal/routes/entity/financials/groups/membership.js","portal/routes/entity/financials/groups/order.js","portal/routes/entity/financials/import.js","portal/routes/entity/financials/import/data.js","portal/routes/entity/financials/import/done.js","portal/routes/entity/financials/import/index.js","portal/routes/entity/financials/import/start.js","portal/routes/entity/financials/index.js","portal/routes/entity/financials/kpis.js","portal/routes/entity/financials/kpis/index.js","portal/routes/entity/financials/kpis/kpi.js","portal/routes/entity/financials/planning/strategies.js","portal/routes/entity/financials/reports/general-ledger/balance-sheet.js","portal/routes/entity/financials/reports/general-ledger/base.js","portal/routes/entity/financials/reports/general-ledger/itm-profit-and-loss.js","portal/routes/entity/financials/reports/general-ledger/other-data.js","portal/routes/entity/financials/reports/general-ledger/personal-data.js","portal/routes/entity/financials/reports/general-ledger/profit-and-loss.js","portal/routes/entity/financials/reports/imports.js","portal/routes/entity/financials/reports/index.js","portal/routes/entity/financials/reports/kpis/index.js","portal/routes/entity/financials/reports/kpis/kpi.js","portal/routes/entity/index.js","portal/routes/entity/module-dashboard.js","portal/routes/entity/settings/auto-mapping.js","portal/routes/entity/settings/chart-of-accounts/chart-of-account.js","portal/routes/entity/settings/chart-of-accounts/index.js","portal/routes/entity/settings/company.js","portal/routes/entity/settings/contacts/contact.js","portal/routes/entity/settings/contacts/index.js","portal/routes/entity/settings/estimates/embedded-page.js","portal/routes/entity/settings/index.js","portal/routes/entity/settings/integrations.js","portal/routes/entity/settings/people/clients/client.js","portal/routes/entity/settings/people/clients/index.js","portal/routes/entity/settings/people/index.js","portal/routes/entity/settings/people/subcontractors/index.js","portal/routes/entity/settings/people/subcontractors/subcontractor.js","portal/routes/entity/settings/people/users/index.js","portal/routes/entity/settings/people/users/user.js","portal/routes/entity/settings/people/workers/index.js","portal/routes/entity/settings/people/workers/worker.js","portal/routes/entity/settings/profile.js","portal/routes/error.js","portal/routes/index.js","portal/routes/initiate-password-reset.js","portal/routes/loading.js","portal/routes/login-redirect.js","portal/routes/login.js","portal/routes/logout-redirect.js","portal/routes/no-access.js","portal/routes/reset-password.js","portal/routes/terms-of-service.js","portal/serializers/api-v2-serializer.js","portal/serializers/application.js","portal/serializers/entity-product.js","portal/serializers/project-product.js","portal/serializers/task-product.js","portal/services/-ensure-registered.js","portal/services/accounting-platform.js","portal/services/bills-data.js","portal/services/builda-price.js","portal/services/cache.js","portal/services/chargebee.js","portal/services/cookies.js","portal/services/dialog.js","portal/services/ember-elsewhere.js","portal/services/engine-data.js","portal/services/financial-portal-period-selector.js","portal/services/help-center.js","portal/services/intl.js","portal/services/invoiced-costs.js","portal/services/ips.js","portal/services/keyboard.js","portal/services/media-events.js","portal/services/media.js","portal/services/metrics.js","portal/services/mobile-menu.js","portal/services/modal-dialog.js","portal/services/modules.js","portal/services/moment.js","portal/services/new-feature-flags.js","portal/services/notifications.js","portal/services/number-format.js","portal/services/os.js","portal/services/oss-engine-data.js","portal/services/page-title.js","portal/services/pdf-export.js","portal/services/placemakers.js","portal/services/platform.js","portal/services/portal-api-v2.js","portal/services/portal-api.js","portal/services/power-calendar.js","portal/services/pricing.js","portal/services/quickbooks.js","portal/services/reports-download.js","portal/services/session-data.js","portal/services/session.js","portal/services/store.js","portal/services/system-announcements.js","portal/services/xero-integration.js","portal/session-stores/application.js","portal/storages/settings.js","portal/templates/admin-loading.js","portal/templates/admin.js","portal/templates/admin/announcements.js","portal/templates/admin/announcements/announcement.js","portal/templates/admin/announcements/index.js","portal/templates/admin/billing-report.js","portal/templates/admin/demo-entity.js","portal/templates/admin/entities.js","portal/templates/admin/entities/entity.js","portal/templates/admin/entities/index.js","portal/templates/admin/licensees.js","portal/templates/admin/licensees/index.js","portal/templates/admin/licensees/licensee.js","portal/templates/application.js","portal/templates/complete-pm-auth.js","portal/templates/complete-registration-cb.js","portal/templates/embed.js","portal/templates/embed/error.js","portal/templates/entity-access-denied.js","portal/templates/entity.js","portal/templates/entity/builda-price.js","portal/templates/entity/builda-price/dashboard.js","portal/templates/entity/builda-price/dashboard/index.js","portal/templates/entity/builda-price/operations.js","portal/templates/entity/builda-price/operations/communications.js","portal/templates/entity/builda-price/operations/documents.js","portal/templates/entity/builda-price/operations/documents/index.js","portal/templates/entity/builda-price/operations/documents/project-file.js","portal/templates/entity/builda-price/operations/documents/project-file/index.js","portal/templates/entity/builda-price/operations/documents/project-file/task-file.js","portal/templates/entity/builda-price/operations/incoming.js","portal/templates/entity/builda-price/operations/incoming/bills-legacy-loading.js","portal/templates/entity/builda-price/operations/incoming/bills-legacy.js","portal/templates/entity/builda-price/operations/incoming/bills-legacy/bill.js","portal/templates/entity/builda-price/operations/incoming/bills.js","portal/templates/entity/builda-price/operations/incoming/bills/bill.js","portal/templates/entity/builda-price/operations/incoming/statements.js","portal/templates/entity/builda-price/operations/incoming/timesheets-loading.js","portal/templates/entity/builda-price/operations/incoming/timesheets.js","portal/templates/entity/builda-price/operations/incoming/timesheets/timesheet.js","portal/templates/entity/builda-price/operations/outgoing.js","portal/templates/entity/builda-price/operations/outgoing/invoices/index.js","portal/templates/entity/builda-price/operations/outgoing/invoices/invoice.js","portal/templates/entity/builda-price/operations/outgoing/payroll-loading.js","portal/templates/entity/builda-price/operations/outgoing/payroll.js","portal/templates/entity/builda-price/operations/outgoing/purchase-orders/index.js","portal/templates/entity/builda-price/operations/outgoing/purchase-orders/purchase-order.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/csv.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/excel.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/index-loading.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/index.js","portal/templates/entity/builda-price/operations/outgoing/report-builder/pdf.js","portal/templates/entity/builda-price/operations/products.js","portal/templates/entity/builda-price/projects.js","portal/templates/entity/builda-price/projects/index.js","portal/templates/entity/builda-price/projects/project.js","portal/templates/entity/builda-price/projects/project/documents.js","portal/templates/entity/builda-price/projects/project/estimate.js","portal/templates/entity/builda-price/projects/project/estimates/estimate-loading.js","portal/templates/entity/builda-price/projects/project/estimates/estimate.js","portal/templates/entity/builda-price/projects/project/estimates/index.js","portal/templates/entity/builda-price/projects/project/financials.js","portal/templates/entity/builda-price/projects/project/health-and-safety.js","portal/templates/entity/builda-price/projects/project/health-and-safety/index-loading.js","portal/templates/entity/builda-price/projects/project/health-and-safety/index.js","portal/templates/entity/builda-price/projects/project/people.js","portal/templates/entity/builda-price/projects/project/people/clients.js","portal/templates/entity/builda-price/projects/project/people/clients/client.js","portal/templates/entity/builda-price/projects/project/people/clients/index.js","portal/templates/entity/builda-price/projects/project/people/subcontractors.js","portal/templates/entity/builda-price/projects/project/people/subcontractors/index.js","portal/templates/entity/builda-price/projects/project/people/subcontractors/subcontractor.js","portal/templates/entity/builda-price/projects/project/people/users.js","portal/templates/entity/builda-price/projects/project/people/users/index.js","portal/templates/entity/builda-price/projects/project/people/users/user.js","portal/templates/entity/builda-price/projects/project/people/workers.js","portal/templates/entity/builda-price/projects/project/people/workers/index.js","portal/templates/entity/builda-price/projects/project/people/workers/worker.js","portal/templates/entity/builda-price/projects/project/products.js","portal/templates/entity/builda-price/projects/project/progress.js","portal/templates/entity/builda-price/projects/project/settings.js","portal/templates/entity/builda-price/projects/project/stage-payments.js","portal/templates/entity/builda-price/projects/project/tasks.js","portal/templates/entity/builda-price/projects/project/tasks/index.js","portal/templates/entity/builda-price/projects/project/tasks/task.js","portal/templates/entity/builda-price/projects/project/tasks/task/documents.js","portal/templates/entity/builda-price/projects/project/tasks/task/financials.js","portal/templates/entity/builda-price/projects/project/tasks/task/people.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/clients.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/client.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/index.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/index.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/users.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/users/index.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/users/user.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/workers.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/index.js","portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/worker.js","portal/templates/entity/builda-price/projects/project/tasks/task/products.js","portal/templates/entity/builda-price/projects/project/tasks/task/settings.js","portal/templates/entity/builda-price/reports.js","portal/templates/entity/builda-price/reports/company.js","portal/templates/entity/builda-price/reports/company/forecast-breakdown.js","portal/templates/entity/builda-price/reports/company/invoicing.js","portal/templates/entity/builda-price/reports/company/labour-hours.js","portal/templates/entity/builda-price/reports/company/notes.js","portal/templates/entity/builda-price/reports/company/position.js","portal/templates/entity/builda-price/reports/company/profit-margins.js","portal/templates/entity/builda-price/reports/company/wip.js","portal/templates/entity/builda-price/reports/projects.js","portal/templates/entity/builda-price/reports/projects/index.js","portal/templates/entity/builda-price/reports/projects/project.js","portal/templates/entity/builda-price/reports/projects/project/access.js","portal/templates/entity/builda-price/reports/projects/project/budget/index.js","portal/templates/entity/builda-price/reports/projects/project/budget/task/index.js","portal/templates/entity/builda-price/reports/projects/project/chargeup/index.js","portal/templates/entity/builda-price/reports/projects/project/chargeup/task/index.js","portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/index.js","portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/task/index.js","portal/templates/entity/builda-price/reports/projects/project/cost.js","portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/index.js","portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/task/index.js","portal/templates/entity/builda-price/reports/projects/project/invoicing/index.js","portal/templates/entity/builda-price/reports/projects/project/invoicing/task/index.js","portal/templates/entity/builda-price/reports/projects/project/labour-hours/index.js","portal/templates/entity/builda-price/reports/projects/project/labour-hours/task/index.js","portal/templates/entity/builda-price/reports/projects/project/notes.js","portal/templates/entity/builda-price/reports/projects/project/position/index.js","portal/templates/entity/builda-price/reports/projects/project/position/task/index.js","portal/templates/entity/builda-price/reports/projects/project/profit-margins/index.js","portal/templates/entity/builda-price/reports/projects/project/profit-margins/task/index.js","portal/templates/entity/builda-price/reports/projects/project/quote/index.js","portal/templates/entity/builda-price/reports/projects/project/quote/task/index.js","portal/templates/entity/builda-price/scheduling.js","portal/templates/entity/builda-price/scheduling/timeline.js","portal/templates/entity/disabled.js","portal/templates/entity/financials-loading.js","portal/templates/entity/financials.js","portal/templates/entity/financials/chart-of-accounts-loading.js","portal/templates/entity/financials/chart-of-accounts.js","portal/templates/entity/financials/dashboard.js","portal/templates/entity/financials/general-loading.js","portal/templates/entity/financials/general.js","portal/templates/entity/financials/groups-loading.js","portal/templates/entity/financials/groups.js","portal/templates/entity/financials/groups/membership-and-access.js","portal/templates/entity/financials/groups/order.js","portal/templates/entity/financials/import.js","portal/templates/entity/financials/import/data.js","portal/templates/entity/financials/import/done.js","portal/templates/entity/financials/import/index.js","portal/templates/entity/financials/import/start.js","portal/templates/entity/financials/kpis-loading.js","portal/templates/entity/financials/kpis.js","portal/templates/entity/financials/kpis/kpi.js","portal/templates/entity/financials/planning/strategies.js","portal/templates/entity/financials/reports.js","portal/templates/entity/financials/reports/general-ledger/balance-sheet-loading.js","portal/templates/entity/financials/reports/general-ledger/balance-sheet.js","portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss-loading.js","portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss.js","portal/templates/entity/financials/reports/general-ledger/other-data-loading.js","portal/templates/entity/financials/reports/general-ledger/other-data.js","portal/templates/entity/financials/reports/general-ledger/personal-data-loading.js","portal/templates/entity/financials/reports/general-ledger/personal-data.js","portal/templates/entity/financials/reports/general-ledger/profit-and-loss-loading.js","portal/templates/entity/financials/reports/general-ledger/profit-and-loss.js","portal/templates/entity/financials/reports/imports-loading.js","portal/templates/entity/financials/reports/imports.js","portal/templates/entity/financials/reports/kpis-loading.js","portal/templates/entity/financials/reports/kpis.js","portal/templates/entity/financials/reports/kpis/index.js","portal/templates/entity/financials/reports/kpis/kpi.js","portal/templates/entity/module-dashboard.js","portal/templates/entity/settings.js","portal/templates/entity/settings/auto-mapping-loading.js","portal/templates/entity/settings/auto-mapping.js","portal/templates/entity/settings/chart-of-accounts.js","portal/templates/entity/settings/chart-of-accounts/chart-of-account.js","portal/templates/entity/settings/chart-of-accounts/index.js","portal/templates/entity/settings/company-loading.js","portal/templates/entity/settings/company.js","portal/templates/entity/settings/contacts.js","portal/templates/entity/settings/contacts/contact.js","portal/templates/entity/settings/contacts/index.js","portal/templates/entity/settings/estimates/embedded-page.js","portal/templates/entity/settings/integrations.js","portal/templates/entity/settings/people.js","portal/templates/entity/settings/people/clients.js","portal/templates/entity/settings/people/clients/client.js","portal/templates/entity/settings/people/clients/index.js","portal/templates/entity/settings/people/subcontractors.js","portal/templates/entity/settings/people/subcontractors/index.js","portal/templates/entity/settings/people/subcontractors/subcontractor.js","portal/templates/entity/settings/people/users.js","portal/templates/entity/settings/people/users/index.js","portal/templates/entity/settings/people/users/user.js","portal/templates/entity/settings/people/workers.js","portal/templates/entity/settings/people/workers/index.js","portal/templates/entity/settings/people/workers/worker.js","portal/templates/entity/settings/profile.js","portal/templates/error.js","portal/templates/initiate-password-reset.js","portal/templates/loading.js","portal/templates/login.js","portal/templates/logout-redirect.js","portal/templates/no-access.js","portal/templates/not-found.js","portal/templates/project.js","portal/templates/project/no-site.js","portal/templates/project/site.js","portal/templates/project/site/dashboard.js","portal/templates/project/site/details.js","portal/templates/project/site/hazards.js","portal/templates/project/site/hazards/board.js","portal/templates/project/site/hazards/selection.js","portal/templates/project/site/index.js","portal/templates/project/site/ppe.js","portal/templates/project/site/reports/index.js","portal/templates/project/site/reports/report.js","portal/templates/project/site/setup.js","portal/templates/project/site/setup/notifiable.js","portal/templates/project/site/setup/summary.js","portal/templates/project/site/signin.js","portal/templates/reports.js","portal/templates/reset-password.js","portal/templates/site.js","portal/templates/terms-of-service.js","portal/test-support/helpers.js","portal/transforms/array.js","portal/transforms/boolean.js","portal/transforms/date.js","portal/transforms/number.js","portal/transforms/string.js","portal/transitions.js","portal/utils/am5-bp-theme.js","portal/utils/auto-map.js","portal/utils/balance-calculator.js","portal/utils/bill-parsers/bunnings.js","portal/utils/bill-parsers/carters-type-1.js","portal/utils/bill-parsers/carters-type-2.js","portal/utils/bill-parsers/carters-type-3.js","portal/utils/bill-parsers/carters-type-4.js","portal/utils/bill-parsers/carters.js","portal/utils/bill-parsers/csv.js","portal/utils/bill-parsers/itm.js","portal/utils/bill-parsers/mitre.js","portal/utils/bill-parsers/placemakers.js","portal/utils/bill-parsers/xero.js","portal/utils/bunnings-bill-csv-normalizer.js","portal/utils/calc-map-balance.js","portal/utils/collection-to-array.js","portal/utils/computed.js","portal/utils/crystal-csv-generator.js","portal/utils/csv-builder.js","portal/utils/deprecation-filter.js","portal/utils/download.js","portal/utils/duration-input.js","portal/utils/email-validator.js","portal/utils/extract-number.js","portal/utils/favicon-title.js","portal/utils/find-date.js","portal/utils/find-param.js","portal/utils/get-default-language.js","portal/utils/gl-import-parsers/banklink.js","portal/utils/gl-import-parsers/empower.js","portal/utils/gl-import-parsers/frameworks.js","portal/utils/gl-import-parsers/gj-gardner.js","portal/utils/gl-import-parsers/itm-manual.js","portal/utils/gl-import-parsers/maxim.js","portal/utils/gl-import-parsers/myob-ao.js","portal/utils/gl-import-parsers/myob.js","portal/utils/gl-import-parsers/new-xero-parser.js","portal/utils/gl-import-parsers/old-xero-parser.js","portal/utils/gl-import-parsers/prostix.js","portal/utils/gl-import-parsers/rees.js","portal/utils/gl-import-parsers/xero-csv.js","portal/utils/intl/missing-message.js","portal/utils/labour-cost-calculator-fixtures.js","portal/utils/loading-route-from.js","portal/utils/make-temp-id.js","portal/utils/multi-selectable-tree-item.js","portal/utils/nest.js","portal/utils/network-errors.js","portal/utils/oidc-config.js","portal/utils/parse-currency-string.js","portal/utils/path-resolver.js","portal/utils/placemakers-bill-csv-normalizer.js","portal/utils/platform.js","portal/utils/profit-margin.js","portal/utils/report-builder-attachments-bundle.js","portal/utils/report-builder-mark-as-reported.js","portal/utils/report-builder.js","portal/utils/sanitize-filename.js","portal/utils/search-filter.js","portal/utils/search-term-escape.js","portal/utils/smart-payroll-csv-generator.js","portal/utils/sort-accounts.js","portal/utils/sort-by-account-code.js","portal/utils/string-similarity.js","portal/utils/sums.js","portal/utils/task-templates.js","portal/utils/titleize.js","portal/utils/tree-item.js","portal/validators/bill-item.js","portal/validators/bill.js","portal/validators/ips-connection.js","vendor/ember-cli/app-config.js","vendor/ember-cli/app-boot.js"],"sourcesContent":["'use strict';\n\n\n","define(\"portal/adapters/api-v2-adapter\", [\"exports\", \"@ember-data/adapter/rest\", \"portal/config/environment\", \"ember-inflector\", \"@ember/service\", \"@ember/string\"], function (_exports, _rest, _environment, _emberInflector, _service, _string) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/adapter/rest\",0,\"portal/config/environment\",0,\"ember-inflector\",0,\"@ember/service\",0,\"@ember/string\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let ApiV2Adapter = _exports.default = (_class = class ApiV2Adapter extends _rest.default {\n    pathForType(type) {\n      // eslint-disable-next-line ember/no-string-prototype-extensions\n      return (0, _emberInflector.pluralize)((0, _string.dasherize)(type));\n    }\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"host\", void 0);\n      _defineProperty(this, \"headers\", void 0);\n      this.host = _environment.default.urls.api + _environment.default.urls.apiV2Path + '/resources';\n      const access_token = this.session.data.authenticated.access_token;\n      this.headers = {\n        Authorization: `Bearer ${access_token}`\n      };\n    }\n    createRecord(store, type, snapshot) {\n      const data = this.serialize(snapshot, {\n        includeId: true\n      });\n      for (const key of Object.keys(data)) {\n        if (snapshot.record[key] === undefined) delete data[key];\n      }\n      let url = this.buildURL(type.modelName, null, snapshot, 'createRecord');\n      return this.ajax(url, 'POST', {\n        data\n      });\n    }\n    updateRecord(store, type, snapshot) {\n      const data = this.serialize(snapshot, {\n        includeId: true\n      });\n      for (const key of Object.keys(data)) {\n        if (snapshot.record[key] === undefined) delete data[key];\n      }\n      let id = snapshot.id;\n      let url = this.buildURL(type.modelName, id, snapshot, 'updateRecord');\n      return this.ajax(url, 'PUT', {\n        data\n      });\n    }\n    async saveBulk(type, records) {\n      const url = this.buildURL(type, null, records, 'saveBulk');\n      const serializedRecords = records.map(record => this.serialize(record, {\n        includeId: true\n      }));\n      return this.ajax(url, 'PUT', {\n        data: JSON.stringify(serializedRecords),\n        contentType: 'application/json; charset=utf-8'\n      }).then(response => {\n        response.forEach((res, index) => {\n          const modelClass = this.store.modelFor(type);\n          const pendingRecord = records[index];\n          const mergedData = Object.assign({}, this.serialize(pendingRecord, {\n            includeId: true\n          }), res);\n          const data = this.store.serializerFor(type).normalize(modelClass, {\n            id: res._id,\n            ...mergedData\n          });\n          if (pendingRecord.isNew) {\n            pendingRecord.set('id', res._id);\n          }\n          this.store.push(data);\n          pendingRecord._internalModel._recordData._attributes = {};\n          pendingRecord.send('pushedData');\n        });\n      });\n    }\n    async deleteBulk(type, records) {\n      const url = this.buildURL(type, null, records, 'deleteBulk');\n\n      // mark records as deleted in store before sending to backend\n      records.forEach(record => this.store.peekRecord(type, record).deleteRecord());\n      return this.ajax(url, 'DELETE', {\n        data: JSON.stringify(records),\n        contentType: 'application/json; charset=utf-8'\n      }).then(response => {\n        response.forEach((res, index) => {\n          const pendingRecordId = records[index];\n          const pendingRecord = this.store.peekRecord(type, pendingRecordId);\n          if (pendingRecord.isDeleted && pendingRecord.id === res.id) pendingRecord.unloadRecord();\n        });\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/adapters/application\", [\"exports\", \"@ember-data/adapter/json-api\", \"portal/config/environment\", \"@ember/service\", \"portal/adapters/errors\", \"@ember/string\", \"@ember-data/request-utils/string\"], function (_exports, _jsonApi, _environment, _service, _errors, _string, _string2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/adapter/json-api\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"portal/adapters/errors\",0,\"@ember/string\",0,\"@ember-data/request-utils/string\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  (0, _string2.irregular)('link-entity-group-can-be-accessed-by', 'link-entity-group-can-be-accessed-bys');\n  class ConcurrencyHandler {\n    constructor(maxConcurrency) {\n      this.maxConcurrency = maxConcurrency;\n      this.runningCount = 0;\n      this.queue = [];\n    }\n    enqueue(asyncTask) {\n      return new Promise((resolve, reject) => {\n        const taskWrapper = async () => {\n          this.runningCount++;\n          try {\n            const result = await asyncTask();\n            resolve(result);\n          } catch (error) {\n            reject(error);\n          } finally {\n            this.runningCount--;\n            this.dequeue();\n          }\n        };\n        this.queue.push(taskWrapper);\n        if (this.runningCount < this.maxConcurrency) {\n          this.dequeue();\n        }\n      });\n    }\n    dequeue() {\n      if (this.queue.length > 0 && this.runningCount < this.maxConcurrency) {\n        const nextTask = this.queue.shift();\n        nextTask();\n      }\n    }\n  }\n  const concurrencyHandler = new ConcurrencyHandler(10);\n  let ApiV2JSONAdapter = _exports.default = (_class = class ApiV2JSONAdapter extends _jsonApi.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"coalesceFindRequests\", true);\n      this.host = _environment.default.urls.api + _environment.default.urls.apiV2Path + '/json-api';\n    }\n    get headers() {\n      let headers = {\n        'Content-Type': 'application/json'\n      };\n      if (this.session.isAuthenticated) {\n        headers.Authorization = `Bearer ${this.session.data.authenticated.access_token}`;\n      }\n      return headers;\n    }\n    pathForType(type) {\n      return (0, _string2.pluralize)((0, _string.dasherize)(type));\n    }\n\n    // _meta fields the model declares as `static requiredMetaFields`\n    _withRequiredMeta(modelName, query = {}) {\n      const required = this.store.modelFor(modelName)?.requiredMetaFields;\n      if (!required?.length) return query;\n      const type = this.pathForType(modelName);\n\n      // union, so a call site asking for extra meta keeps both\n      const keys = [...(query.fields?.[type]?.split(',') ?? []), ...required.map(key => `_meta.${key}`)].map(key => key.trim()).filter(Boolean);\n      return {\n        ...query,\n        fields: {\n          ...query.fields,\n          [type]: [...new Set(keys)].join(',')\n        }\n      };\n    }\n\n    // findRecord and findAll both build their params here\n    buildQuery(snapshot) {\n      return this._withRequiredMeta(snapshot.modelName, super.buildQuery(snapshot) ?? {});\n    }\n\n    // Limit the max number of concurrent requests to prevent dos\n    async ajax(url, type, options) {\n      return concurrencyHandler.enqueue(() => super.ajax(url, type, options));\n    }\n    shouldReloadAll() {\n      return true;\n    }\n    shouldBackgroundReloadRecord() {\n      return true;\n    }\n    handleResponse(status) {\n      if (status === 0) {\n        return new _errors.ConnectionError();\n      } else if (status === 401) {\n        this.session.invalidate().catch(() => {});\n      }\n      return super.handleResponse(...arguments);\n    }\n    chunkArray(array, size) {\n      return Array.from({\n        length: Math.ceil(array.length / size)\n      }, (_, i) => array.slice(i * size, i * size + size));\n    }\n\n    // when we \"coalesceFindRequests = true\", it groups all get by id of similar resource requests into find many request\n    // for new json api v2, filter has to be below format\n    async findMany(store, type, ids, snapshots) {\n      const chunkSize = _environment.default.chunkCallbackSize;\n      const chunks = this.chunkArray(ids, chunkSize);\n      const requests = chunks.map(chunk => {\n        const url = this.buildURL(type.modelName, chunk, snapshots, 'findMany');\n        return this.ajax(url, 'GET', {\n          data: this._withRequiredMeta(type.modelName, {\n            filter: {\n              and: [{\n                field: '_id',\n                // TODO change this to id\n                op: 'IN',\n                value: chunk\n              }]\n            }\n          })\n        });\n      });\n\n      // TODO this can be done better\n      const responses = await Promise.all(requests);\n      const merged = responses.reduce((acc, response) => {\n        if (response.data) {\n          acc.data = acc.data.concat(response.data);\n        }\n        if (response.included) {\n          acc.included = (acc.included || []).concat(response.included || []);\n        }\n        return acc;\n      }, {\n        data: []\n      });\n      return merged;\n    }\n    query(store, type, query) {\n      if (query.filter?.simple) {\n        const operatorMapping = {\n          $eq: 'EQ',\n          $ne: 'NE',\n          $in: 'IN',\n          $nin: 'NIN',\n          $lt: 'LT',\n          $gt: 'GT',\n          $lte: 'LE',\n          $gte: 'GE',\n          $like: 'LIKE',\n          $ilike: 'ILIKE'\n        };\n        const _filter = {\n          and: []\n        };\n        for (const [key, value] of Object.entries(query.filter.simple)) {\n          if (value && typeof value === 'object' && !Array.isArray(value)) {\n            for (const [operator, operand] of Object.entries(value)) {\n              const mappedOperator = operatorMapping[operator];\n              if (!mappedOperator) {\n                throw new Error(`Invalid operator: ${operator}`);\n              }\n              if ((operator === '$in' || operator === '$nin') && !Array.isArray(operand)) {\n                throw new Error(`Operand for ${operator} must be an array.`);\n              }\n              _filter.and.push({\n                field: key,\n                op: mappedOperator,\n                value: operand\n              });\n            }\n          } else {\n            _filter.and.push({\n              field: key,\n              op: 'EQ',\n              value: value\n            });\n          }\n        }\n        query.filter = _filter;\n      }\n      return super.query(store, type, this._withRequiredMeta(type.modelName, query));\n    }\n    findRecord(store, type, id, snapshot) {\n      let url = this.buildURL(type.modelName, id, snapshot, 'findRecord');\n\n      // usage example\n      //  adapterOptions: {\n      //      fields: {\n      //        meta: 'canDelete',\n      //      }\n      //    }\n\n      let query = this.buildQuery(snapshot) || {};\n      const {\n        fields\n      } = snapshot.adapterOptions || {};\n\n      // http://jsonapi.org/format/#fetching-sparse-fieldsets\n      if (fields && !Array.isArray(fields) && typeof fields === 'object') {\n        for (const [key, value] of Object.entries(fields)) {\n          query[`fields[${key}]`] = value;\n        }\n      }\n      return this.ajax(url, 'GET', {\n        data: query\n      });\n    }\n    deleteRecord(store, type, snapshot) {\n      const url = new URL(this.buildURL(type.modelName, snapshot.id, snapshot, 'deleteRecord'));\n      const {\n        meta\n      } = snapshot.adapterOptions || {};\n      for (const [key, value] of Object.entries(meta || {})) {\n        url.searchParams.set(`meta[${key}]`, value);\n      }\n      return this.ajax(url.toString(), 'DELETE');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/adapters/entity-product\", [\"exports\", \"portal/adapters/api-v2-adapter\"], function (_exports, _apiV2Adapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/adapters/api-v2-adapter\"eaimeta@70e063a35619d71f\n  class EntityProductAdapter extends _apiV2Adapter.default {}\n  _exports.default = EntityProductAdapter;\n});","define(\"portal/adapters/errors\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.ConnectionError = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  class ConnectionError extends Error {\n    constructor() {\n      super('The server could not be reached');\n      this.name = 'ConnectionError';\n    }\n  }\n  _exports.ConnectionError = ConnectionError;\n});","define(\"portal/adapters/project-product\", [\"exports\", \"portal/adapters/api-v2-adapter\"], function (_exports, _apiV2Adapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/adapters/api-v2-adapter\"eaimeta@70e063a35619d71f\n  class ProjectProductAdapter extends _apiV2Adapter.default {}\n  _exports.default = ProjectProductAdapter;\n});","define(\"portal/adapters/task-product\", [\"exports\", \"portal/adapters/api-v2-adapter\"], function (_exports, _apiV2Adapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/adapters/api-v2-adapter\"eaimeta@70e063a35619d71f\n  class TaskProductAdapter extends _apiV2Adapter.default {}\n  _exports.default = TaskProductAdapter;\n});","define(\"portal/app\", [\"exports\", \"@ember/application\", \"ember-power-calendar-moment\", \"ember-resolver\", \"ember-load-initializers\", \"ember-power-calendar\", \"portal/config/environment\"], function (_exports, _application, _emberPowerCalendarMoment, _emberResolver, _emberLoadInitializers, _emberPowerCalendar, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/application\",0,\"ember-power-calendar-moment\",0,\"ember-resolver\",0,\"ember-load-initializers\",0,\"ember-power-calendar\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  (0, _emberPowerCalendar.registerDateLibrary)(_emberPowerCalendarMoment.default);\n\n  //export default class App extends Application {\n  //  modulePrefix = config.modulePrefix;\n  //  podModulePrefix = config.podModulePrefix;\n  //  Resolver = Resolver;\n  //}\n  //\n  //loadInitializers(App, config.modulePrefix);\n\n  class App extends _application.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"modulePrefix\", _environment.default.modulePrefix);\n      _defineProperty(this, \"podModulePrefix\", _environment.default.podModulePrefix);\n      _defineProperty(this, \"Resolver\", _emberResolver.default);\n      _defineProperty(this, \"engines\", {\n        'builda-price-client-addon': {\n          dependencies: {\n            services: ['dialog', 'engineData', {\n              hostRouter: 'router'\n            }, 'session']\n          }\n        },\n        'oss-portal-addon': {\n          dependencies: {\n            services: ['ossEngineData', {\n              hostRouter: 'router'\n            }, 'dialog', 'notifications', 'session']\n          }\n        }\n      });\n    }\n  }\n  _exports.default = App;\n  (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n});","define(\"portal/authenticators/embed\", [\"exports\", \"ember-simple-auth/authenticators/base\", \"portal/config/environment\", \"@ember/service\", \"jquery\"], function (_exports, _base, _environment, _service, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-simple-auth/authenticators/base\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"jquery\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EmbedAuthenticator = _exports.default = (_class = class EmbedAuthenticator extends _base.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n    }\n    restore(data) {\n      return data;\n    }\n    async authenticate(accessToken = '', userId = '', transition) {\n      const user = await new Promise((resolve, reject) => _jquery.default.ajax({\n        url: `${_environment.default.urls.api}${_environment.default.urls.apiV2Path}/json-api/users/${userId}`,\n        method: 'GET',\n        headers: {\n          Authorization: `Bearer ${accessToken}`\n        },\n        dataType: 'json',\n        contentType: 'application/json'\n      }).then(resolve, reject));\n\n      // https://ember-simple-auth.com/api/classes/ApplicationRouteMixin.html\n      // this causes ember simple auth to retry the transition after the authentication\n      // without this, it would hit the index route and route to the main application\n      this.session.attemptedTransition = transition;\n      return {\n        access_token: accessToken,\n        authenticator: 'authenticator:embed',\n        expires_in: 10800,\n        // not known\n        token_type: 'bearer',\n        user: {\n          id: user.data.id,\n          ...user.data.attributes\n        }\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/authenticators/login-as\", [\"exports\", \"rsvp\", \"portal/authenticators/oauth2\"], function (_exports, _rsvp, _oauth) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"rsvp\",0,\"portal/authenticators/oauth2\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _oauth.default.extend({\n    authenticate(data) {\n      return _rsvp.default.resolve(data);\n    }\n  });\n});","define(\"portal/authenticators/oauth2\", [\"exports\", \"rsvp\", \"@ember/utils\", \"@ember/runloop\", \"@ember/object\", \"@ember/service\", \"jquery\", \"@ember/array\", \"ember-simple-auth/authenticators/oauth2-password-grant\", \"portal/config/environment\"], function (_exports, _rsvp, _utils, _runloop, _object, _service, _jquery, _array, _oauth2PasswordGrant, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"rsvp\",0,\"@ember/utils\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"@ember/service\",0,\"jquery\",0,\"@ember/array\",0,\"ember-simple-auth/authenticators/oauth2-password-grant\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _oauth2PasswordGrant.default.extend({\n    router: (0, _service.inject)(),\n    serverTokenEndpoint: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth',\n    serverTokenRevocationEndpoint: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth/logout',\n    refreshAccessTokens: false,\n    authenticate(identification, password, scope = []) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        const data = {\n          grant_type: 'password',\n          identification,\n          password\n        };\n        const serverTokenEndpoint = (0, _object.get)(this, 'serverTokenEndpoint');\n        const scopesString = (0, _array.makeArray)(scope).join(' ');\n        if (!(0, _utils.isEmpty)(scopesString)) {\n          (0, _object.set)(data, 'scope', scopesString);\n        }\n        this.makeRequest(serverTokenEndpoint, data).then(response => (0, _runloop.run)(() => resolve(response)), xhr => (0, _runloop.run)(() => reject(xhr)));\n      });\n    },\n    // Overriden to prevent session timeouts\n    restore(data) {\n      if ((0, _utils.isEmpty)(data['access_token'])) {\n        return _rsvp.default.reject();\n      } else {\n        return _rsvp.default.resolve(data);\n      }\n    },\n    invalidate(data) {\n      // this is automatically called on a 401\n      // the first thing we do is go into the loading route\n      // nothing is waiting for this promise to resolve and the application\n      // keeps trying to load while invalidated\n      // doing this puts us in a safe place to wait for the invalidate to finish\n      this.router.transitionTo('loading');\n\n      // This is mostly taken from the oath2-password-grant source code, see:\n      // https://github.com/simplabs/ember-simple-auth/blob/1.2.0/addon/authenticators/oauth2-password-grant.js#L257\n      // Deviations from the original source are annotated.\n      const serverTokenRevocationEndpoint = this.get('serverTokenRevocationEndpoint');\n      function success(resolve) {\n        (0, _runloop.cancel)(this._refreshTokenTimeout);\n        delete this._refreshTokenTimeout;\n        resolve();\n      }\n      return new _rsvp.default.Promise(resolve => {\n        if ((0, _utils.isEmpty)(serverTokenRevocationEndpoint)) {\n          success.apply(this, [resolve]);\n        } else {\n          const requests = [];\n\n          // Added original user's token to the list of tokens to invalidate.\n          (0, _array.A)(['access_token', 'refresh_token', 'originalUserData.access_token']).forEach(tokenType => {\n            // Switched to get syntax in order to support a path as well as a key.\n            const token = (0, _object.get)(data, tokenType);\n            if (!(0, _utils.isEmpty)(token)) {\n              requests.push(this.makeRequest(serverTokenRevocationEndpoint, {\n                token_type_hint: tokenType,\n                token\n              }));\n            }\n          });\n          const succeed = () => {\n            success.apply(this, [resolve]);\n          };\n          _rsvp.default.all(requests).then(succeed, succeed);\n        }\n      });\n    },\n    makeRequest(url, data) {\n      return _jquery.default.ajax({\n        url,\n        type: 'POST',\n        data: JSON.stringify(data),\n        dataType: 'json',\n        contentType: 'application/json'\n      });\n    }\n  });\n});","define(\"portal/authenticators/oidc\", [\"exports\", \"ember-simple-auth/authenticators/base\", \"@ember/service\", \"portal/utils/oidc-config\"], function (_exports, _base, _service, _oidcConfig) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-simple-auth/authenticators/base\",0,\"@ember/service\",0,\"portal/utils/oidc-config\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const REDIRECT_TIMEOUT = 15000;\n\n  // basically race the IDP to make sure we don't get stuck (it'll redirect us, so this will die)\n  function waitForRedirect(startRedirect) {\n    return new Promise((_resolve, reject) => {\n      const timer = setTimeout(() => reject(new Error('Timed out waiting for the identity server')), REDIRECT_TIMEOUT);\n      Promise.resolve().then(startRedirect).catch(error => {\n        clearTimeout(timer);\n        reject(error);\n      });\n    });\n  }\n  let OidcAuthenticator = _exports.default = (_class = class OidcAuthenticator extends _base.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _defineProperty(this, \"_isInvalidating\", false);\n      this._bindOidcEvents();\n    }\n    _bindOidcEvents() {\n      _oidcConfig.userManager.events.addUserLoaded(async user => {\n        if (!this.session.isAuthenticated) {\n          // this is a fresh cross tab login so run the full auth method\n          await this.session.authenticate('authenticator:oidc', {\n            bypassRedirect: true,\n            user\n          });\n        } else {\n          // background token refresh - update the session data\n          const existingBpUser = this.session.data.authenticated.user;\n          this.trigger('sessionDataUpdated', {\n            ...user,\n            user: existingBpUser\n          });\n        }\n      });\n      _oidcConfig.userManager.events.addUserUnloaded(() => {\n        if (this.session.isAuthenticated && !this._isInvalidating) {\n          this.session.invalidate();\n        }\n      });\n      _oidcConfig.userManager.events.addAccessTokenExpiring(() => {\n        navigator.locks.request('oidc-client-refresh', {\n          ifAvailable: true\n        }, async lock => {\n          //  if we can't get the lock a faster tab is getting the token\n          if (!lock) return;\n          try {\n            // we got a lock but check if another tab has already refreshed\n            const currentUser = await _oidcConfig.userManager.getUser();\n            if (currentUser && currentUser.expires_in > 60) {\n              return;\n            }\n\n            // token is actually expiring - refresh it\n            await _oidcConfig.userManager.signinSilent();\n          } catch (error) {\n            await this.session.invalidate();\n          }\n        });\n      });\n    }\n    async _buildSessionData(oidcUser) {\n      if (!oidcUser) throw new Error('No OIDC user provided');\n      const bpUser = await this.buildaPrice.getMeFromIdentityId(oidcUser.access_token, oidcUser.profile.sub);\n      return {\n        ...oidcUser,\n        user: bpUser\n      };\n    }\n    async authenticate(options = {}) {\n      if (options.bypassRedirect) {\n        return this._buildSessionData(options.user);\n      }\n\n      // returning from the IDP login screen\n      if (window.location.search.includes('code=')) {\n        const oidcUser = await _oidcConfig.userManager.signinRedirectCallback();\n        return this._buildSessionData(oidcUser);\n      }\n      return waitForRedirect(() => _oidcConfig.userManager.signinRedirect());\n    }\n    async restore(data) {\n      const oidcUser = await _oidcConfig.userManager.getUser();\n      if (!oidcUser || oidcUser.expired) {\n        throw new Error('Session is missing or expired');\n      }\n\n      // if we already have the user, use it...\n      if (data && data.user) {\n        return {\n          ...oidcUser,\n          user: data.user\n        };\n      }\n\n      // ...otherwise we need to load it\n      return this._buildSessionData(oidcUser);\n    }\n\n    // make sure this never rejects otherwise users could get stuck with a broken sesssion\n    async invalidate(_data, options = {}) {\n      this._isInvalidating = true;\n      try {\n        // if returning from the IDP logout screen, just let ESA clear local state\n        if (options.logoutComplete) return;\n\n        // manual logout initiated by the user\n        const oidcUser = await _oidcConfig.userManager.getUser().catch(() => null);\n        if (oidcUser) {\n          try {\n            await waitForRedirect(() => _oidcConfig.userManager.signoutRedirect());\n          } catch (_) {\n            // the IDP never took us, so log out locally rather than hang\n            await this._forgetUser();\n          }\n          return;\n        }\n\n        // if we don't have a session, dump the user manager state\n        await this._forgetUser();\n      } finally {\n        this._isInvalidating = false;\n      }\n    }\n    async _forgetUser() {\n      try {\n        await _oidcConfig.userManager.removeUser();\n      } catch (_) {\n        // absorb the error so we can still clear the ESA session\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/authenticators/push-session\", [\"exports\", \"rsvp\", \"portal/authenticators/oauth2\"], function (_exports, _rsvp, _oauth) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"rsvp\",0,\"portal/authenticators/oauth2\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _oauth.default.extend({\n    authenticate: _rsvp.default.resolve\n  });\n});","define(\"portal/breakpoints\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.BREAKPOINTS = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * the portal's breakpoint scale, declared for the ember-responsive `media`\n   * service. this is what backs `this.media.isDesktop` in js and\n   * `{{media 'isDesktop'}}` in templates.\n   *\n   * keep in sync with app/styles/_breakpoints.scss, which declares the same scale\n   * for scss and also configures bootstrap's $grid-breakpoints -- so `lg` and\n   * `isDesktop` switch at the same width. tests/unit/breakpoints-test.js fails if\n   * the two drift apart.\n   *\n   * only the numbers in BREAKPOINTS are hand-written; the media queries are derived\n   * from them. that matters for `tablet`, whose upper bound is `desktop - 1`: it was\n   * previously a hardcoded 991px, so moving `desktop` on its own would have opened a\n   * band of widths matching no breakpoint at all.\n   */\n\n  const BREAKPOINTS = _exports.BREAKPOINTS = {\n    mobileMax: 767,\n    tablet: 768,\n    desktop: 1200,\n    jumbo: 1550,\n    ultrawide: 1920\n  };\n  const minWidth = px => `(min-width: ${px}px)`;\n  const maxWidth = px => `(max-width: ${px}px)`;\n\n  // mobile / tablet / desktop are mutually exclusive and between them cover every\n  // width. jumbo and ultrawide are subsets of desktop, matching the `*-up` scss\n  // mixins; nothing consumes `isUltrawide` yet, but it is declared so this file and\n  // the scss scale stay a line-for-line match.\n  var _default = _exports.default = {\n    mobile: maxWidth(BREAKPOINTS.mobileMax),\n    tablet: `${minWidth(BREAKPOINTS.tablet)} and ${maxWidth(BREAKPOINTS.desktop - 1)}`,\n    desktop: minWidth(BREAKPOINTS.desktop),\n    jumbo: minWidth(BREAKPOINTS.jumbo),\n    ultrawide: minWidth(BREAKPOINTS.ultrawide)\n  };\n});","define(\"portal/components/active-table\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/components/active-table\", \"@ember/template-factory\"], function (_exports, _component, _object, _activeTable, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"portal/components/active-table\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <thead>\n    <tr>\n      {{#each this.headers as |header|}}\n        <th\n          width={{header.width}}\n          class='{{if header.sorted \"data-table__sorted-column-header\"}}\n            {{if header.ascending \"data-table__sorted-column-header--ascending\"}}'\n        >\n          {{#if header.key}}\n            <a {{action 'sortBy' header}} class='link'>\n              <span>{{header.name}}</span>\n            </a>\n          {{else}}\n            {{header.name}}\n          {{/if}}\n        </th>\n      {{/each}}\n    </tr>\n  </thead>\n  \n  <tbody>\n    {{yield}}\n  </tbody>\n  */\n  {\n    \"id\": \"Kqok1v0p\",\n    \"block\": \"[[[10,\\\"thead\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"headers\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[10,\\\"th\\\"],[15,\\\"width\\\",[30,1,[\\\"width\\\"]]],[15,0,[29,[[52,[30,1,[\\\"sorted\\\"]],\\\"data-table__sorted-column-header\\\"],\\\"\\\\n          \\\",[52,[30,1,[\\\"ascending\\\"]],\\\"data-table__sorted-column-header--ascending\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"key\\\"]],[[[1,\\\"          \\\"],[11,3],[24,0,\\\"link\\\"],[4,[38,7],[[30,0],\\\"sortBy\\\",[30,1]],null],[12],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13]],[\\\"header\\\",\\\"&default\\\"],false,[\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"if\\\",\\\"a\\\",\\\"action\\\",\\\"span\\\",\\\"tbody\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/active-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _activeTable.default,\n    tagName: 'table',\n    classNames: ['active-table', 'data-table'],\n    classNameBindings: ['sortable'],\n    data: [],\n    columns: [],\n    sortable: true,\n    headers: (0, _object.computed)('columns', 'sortedBy.0', function () {\n      const [sortedBy, sortDir] = (0, _object.get)(this, 'sortedBy.0').split(':');\n      const columns = (0, _object.get)(this, 'columns');\n      const columnCount = (0, _object.get)(columns, 'length');\n      const headers = [];\n      let totalUnits = 0;\n      let flexibleProportion = 1;\n      columns.forEach(column => {\n        if (column.width) {\n          totalUnits += column.width;\n        } else {\n          flexibleProportion -= 1 / columnCount;\n        }\n      });\n      columns.forEach(column => {\n        const header = _object.default.create({\n          name: column.name,\n          key: column.key\n        });\n        if (column.width && typeof column.width === 'number') {\n          (0, _object.set)(header, 'width', column.width / totalUnits * flexibleProportion * 100 + '%');\n        } else if (column.width && typeof column.width === 'string') {\n          (0, _object.set)(header, 'width', column.width);\n        } else {\n          (0, _object.set)(header, 'width', 1 / columnCount * 100 + '%');\n        }\n\n        // If the content is sorted by this column\n        if (sortedBy === (0, _object.get)(header, 'key')) {\n          (0, _object.set)(header, 'sorted', true);\n          (0, _object.set)(header, 'ascending', sortDir !== 'desc');\n        }\n        headers.push(header);\n      });\n      return headers;\n    }),\n    actions: {\n      sortBy: function (columnToSort) {\n        const toSortBy = (0, _object.get)(columnToSort, 'key');\n        const [sortedBy, sortDir] = (0, _object.get)(this, 'sortedBy.0').split(':');\n        if (sortedBy === toSortBy) {\n          // set sort order\n          const newDir = sortDir === 'desc' ? 'asc' : 'desc';\n          (0, _object.set)(this, 'sortedBy', [sortedBy + ':' + newDir]);\n\n          // nofity column\n          (0, _object.set)(columnToSort, 'sorted', true);\n          (0, _object.set)(columnToSort, 'ascending', newDir === 'asc');\n        } else {\n          // set sort order\n          (0, _object.set)(this, 'sortedBy', [toSortBy + ':asc']);\n\n          // set column meta\n          (0, _object.get)(this, 'headers').forEach(column => (0, _object.set)(column, 'sorted', false));\n          (0, _object.set)(columnToSort, 'sorted', true);\n          (0, _object.set)(columnToSort, 'ascending', true);\n        }\n      }\n    }\n  }));\n});","define(\"portal/components/admin-mode\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='logged-in-as'>\n    <div class='logged-in-as__marquee'>\n      <div class='marquee'>\n        <p>\n          You're in admin mode\n          <FaIcon @icon='exclamation-circle' style='margin-left: 5px' />\n        </p>\n      </div>\n    </div>\n    <button\n      class='logged-in-as__return text-button'\n      type='button'\n      {{on 'click' this.sessionData.toggleAdminMode}}\n    >\n      Return\n      <FaIcon @icon='sign-out-alt' style='margin-left: 5px' />\n    </button>\n  </div>\n  */\n  {\n    \"id\": \"t08KA0i8\",\n    \"block\": \"[[[10,0],[14,0,\\\"logged-in-as\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"logged-in-as__marquee\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"marquee\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        You're in admin mode\\\\n        \\\"],[8,[39,2],[[24,5,\\\"margin-left: 5px\\\"]],[[\\\"@icon\\\"],[\\\"exclamation-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"logged-in-as__return text-button\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"sessionData\\\",\\\"toggleAdminMode\\\"]]],null],[12],[1,\\\"\\\\n    Return\\\\n    \\\"],[8,[39,2],[[24,5,\\\"margin-left: 5px\\\"]],[[\\\"@icon\\\"],[\\\"sign-out-alt\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"p\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/admin-mode.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/allocation-hierarchy\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.firstPart}}\n    {{#if this.popupText}}\n      <LabelPopup @text={{this.popupText}}>\n        {{this.formattedPath}}\n      </LabelPopup>\n    {{else}}\n      {{this.formattedPath}}\n    {{/if}}\n  {{else}}\n    &mdash;\n  {{/if}}\n  */\n  {\n    \"id\": \"qLj7ZztT\",\n    \"block\": \"[[[41,[30,0,[\\\"firstPart\\\"]],[[[41,[30,0,[\\\"popupText\\\"]],[[[1,\\\"    \\\"],[8,[39,1],null,[[\\\"@text\\\"],[[30,0,[\\\"popupText\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"formattedPath\\\"]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[1,[30,0,[\\\"formattedPath\\\"]]],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"  —\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"label-popup\\\"]]\",\n    \"moduleName\": \"portal/components/allocation-hierarchy.hbs\",\n    \"isStrictMode\": false\n  });\n  class AllocationHierarchyComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"separator\", ' › ');\n    }\n    get maxPaths() {\n      return this.args.maxPaths ?? 3;\n    }\n    get allocations() {\n      return this.args.allocations ?? [];\n    }\n    get primaryAllocation() {\n      return this.allocations[0] ?? [];\n    }\n    get isMultiple() {\n      return this.allocations.length > 1;\n    }\n    get isEmpty() {\n      return this.allocations.length === 0;\n    }\n    get needsTitle() {\n      return this.isMultiple || this.primaryAllocation.length > this.maxPaths;\n    }\n    get firstPart() {\n      if (this.isEmpty) return undefined;\n      if (this.isMultiple) {\n        // several paths under one project show that project, not a count\n        const projectCount = new Set(this.allocations.map(path => path[0])).size;\n        return projectCount > 1 ? `${projectCount} projects` : this.primaryAllocation[0];\n      }\n      return this.primaryAllocation[0];\n    }\n    get middleParts() {\n      if (this.isMultiple || this.primaryAllocation.length <= 2) {\n        return undefined;\n      }\n      const paths = this.primaryAllocation.slice(1, -1);\n      if (paths.length > this.maxPaths - 2) {\n        return ['...'];\n      }\n      return paths;\n    }\n    get lastPart() {\n      if (this.isMultiple || this.primaryAllocation.length < 2) {\n        return undefined;\n      }\n      return this.primaryAllocation.at(-1);\n    }\n    get formattedPath() {\n      if (!this.firstPart) return undefined;\n      const parts = [this.firstPart];\n      if (this.middleParts) {\n        parts.push(...this.middleParts);\n      }\n      if (this.lastPart) {\n        parts.push(this.lastPart);\n      }\n      return parts.join(this.separator);\n    }\n    get popupText() {\n      if (this.isEmpty || !this.needsTitle) return undefined;\n      return this.allocations.map(path => path.join(this.separator)).join('\\n');\n    }\n  }\n  _exports.default = AllocationHierarchyComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AllocationHierarchyComponent);\n});","define(\"portal/components/allocation-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"portal/utils/tree-item\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _treeItem, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/utils/tree-item\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @onClose={{@onCancel}}\n    @containerClass='bg-white border rounded'\n  >\n    <div class='d-flex bg-light border-bottom'>\n      <h2 class='h2 m-3'>\n        {{#if (gt this.numberOfInvoices 1)}}\n          {{t\n            'components.allocation-selector.allocatingItemsInXBills'\n            number=this.numberOfInvoices\n            item=(pluralize @items.length 'Item')\n          }}\n        {{else}}\n          {{t\n            'components.allocation-selector.allocatingItems'\n            item=(pluralize @items.length 'Item')\n          }}\n        {{/if}}\n      </h2>\n    </div>\n  \n    <div class='allocation-selector__list border-bottom'>\n      <ItemSelector\n        @items={{this.items}}\n        @selectedItem={{this.selectedItem}}\n        @onChange={{fn (mut this.selectedItem)}}\n        @nameKey='name'\n        @homeText={{t 'common.Projects'}}\n        @noItemsMessage={{t 'common.No tasks or projects'}}\n        @searchPlaceholder={{t 'common.Search for a task or project'}}\n        @noSearchItemsMessage={{t 'common.No tasks or projects found'}}\n      />\n    </div>\n  \n    {{#if @xeroIntegration.ready}}\n      <div\n        class='d-flex p-3 border-bottom'\n        data-test-overriding-account-content-div\n      >\n        <label class='p-2'>\n          <InfoPopup\n            @text={{if\n              this.isOverridingXeroAccount\n              (t\n                'components.allocation-selector.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault'\n              )\n              (t\n                'components.allocation-selector.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount'\n              )\n            }}\n          />\n          &nbsp;&nbsp;{{t 'common.Xero account'}}:\n        </label>\n        {{#unless this.isOverridingXeroAccount}}\n          <div class='p-2'>\n            {{#if this.selectedItem.item.effectivePurchasesGlAccount}}\n              {{this.selectedItem.item.effectivePurchasesGlAccount.code}}\n              -\n              {{this.selectedItem.item.effectivePurchasesGlAccount.name}}\n            {{else}}\n              {{t 'components.allocation-selector.No default account'}}\n            {{/if}}\n          </div>\n        {{else}}\n          <PowerSelect\n            style='width: 300px;'\n            @options={{@xeroAccounts}}\n            @selected={{this.xeroAccountOverride}}\n            @onChange={{fn (mut this.xeroAccountOverride)}}\n            @disabled={{@isXeroFetching}}\n            @searchEnabled={{true}}\n            @searchField='searchField'\n            @placeholder={{t 'shared.bill.000 - Account'}}\n            @allowClear={{true}}\n            @afterOptionsComponent={{component\n              'power-select-after-options-button'\n              onClick=@onUpdateXeroAccounts\n              icon='sync'\n              text=(t 'shared.bill.Click to update Xero accounts')\n              isLoading=@isXeroFetching\n              loadingText=(t 'shared.bill.Loading Xero accounts')\n            }}\n            as |option|\n          >\n            {{option.code}}\n            -\n            {{option.name}}\n          </PowerSelect>\n        {{/unless}}\n  \n        <button\n          class='btn btn-link'\n          type='button'\n          data-test-overriding-account-button\n          {{on 'click' this.toggleIsOverridingXeroAccount}}\n        >\n          {{#if this.isOverridingXeroAccount}}\n            {{t 'components.allocation-selector.Overriding account'}}\n            <FaIcon @icon='times' />\n          {{else}}\n            {{t 'components.allocation-selector.Override account'}}\n          {{/if}}\n        </button>\n      </div>\n    {{/if}}\n  \n    {{#if @quickbooksIntegration.ready}}\n      <div\n        class='d-flex p-3 border-bottom'\n        data-test-overriding-account-content-div\n      >\n        <label class='p-2'>\n          <InfoPopup\n            @text={{if\n              this.isOverridingQuickbooksAccount\n              (t\n                'components.allocation-selector.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault'\n              )\n              (t\n                'components.allocation-selector.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount'\n              )\n            }}\n          />\n          &nbsp;&nbsp;{{'QuickBooks Account'}}:\n        </label>\n        {{#unless this.isOverridingQuickbooksAccount}}\n          <div class='p-2'>\n            {{#if this.selectedItem.item.effectivePurchasesGlAccount}}\n              {{this.selectedItem.item.effectivePurchasesGlAccount.name}}\n            {{else}}\n              {{t 'components.allocation-selector.No default account'}}\n            {{/if}}\n          </div>\n        {{else}}\n          <PowerSelect\n            style='width: 300px;'\n            @options={{@quickbooksAccounts}}\n            @selected={{this.quickbooksAccountOverride}}\n            @onChange={{fn (mut this.quickbooksAccountOverride)}}\n            @disabled={{@isQuickbooksFetching}}\n            @keys='name'\n            @searchEnabled={{true}}\n            @placeholder={{t 'shared.bill.000 - Account'}}\n            @allowClear={{true}}\n            @afterOptionsComponent={{component\n              'power-select-after-options-button'\n              onClick=@onUpdateQuickbooksAccounts\n              icon='sync'\n              text='Click to update QuickBooks accounts'\n              isLoading=@isQuickbooksFetching\n              loadingText='Loading QuickBooks accounts'\n            }}\n            as |option|\n          >\n            {{option.name}}\n          </PowerSelect>\n        {{/unless}}\n  \n        <button\n          class='btn btn-link'\n          type='button'\n          data-test-overriding-account-button\n          {{on 'click' this.toggleIsOverridingQuickbooksAccount}}\n        >\n          {{#if this.isOverridingQuickbooksAccount}}\n            {{t 'components.allocation-selector.Overriding account'}}\n            <FaIcon @icon='times' />\n          {{else}}\n            {{t 'components.allocation-selector.Override account'}}\n          {{/if}}\n        </button>\n      </div>\n    {{/if}}\n  \n    <div class='d-flex p-3 bg-light'>\n      <div class='flex-grow-1'>\n        <button\n          class='btn btn-secondary text-white'\n          type='button'\n          disabled={{@isAllocating}}\n          {{on 'click' (fn (mut this.selectedItem) null)}}\n        >{{t 'components.allocation-selector.Clear allocation'}}</button>\n      </div>\n  \n      <button\n        class='btn btn-secondary text-white me-2'\n        type='button'\n        {{on 'click' @onCancel}}\n      >{{t 'common.Cancel'}}</button>\n  \n      <DropdownButton\n        @buttonText={{t\n          'components.allocation-selector.allocatingItems'\n          item=(pluralize @items.length 'item')\n        }}\n        @onPrimaryClick={{(fn\n          @onAllocateSelected\n          this.selectedItem.item\n          (or this.xeroAccountOverride this.quickbooksAccountOverride)\n        )}}\n        @disabled={{@isAllocating}}\n      >\n        {{#unless @isAllocating}}\n          <div\n            role='button'\n            class='dropdown-item'\n            {{on\n              'click'\n              (fn\n                @onAllocateAndAcceptSelected\n                this.selectedItem.item\n                this.xeroAccountOverride\n              )\n            }}\n            data-test-accept-allocation-and-accept-button\n          >{{t 'common.Allocate'}}\n            &amp;\n            {{t 'components.allocation-selector.accept'}}</div>\n          {{#if @xeroIntegration.ready}}\n            <div\n              role='button'\n              class='dropdown-item'\n              {{on\n                'click'\n                (fn\n                  @onAllocateAcceptAndSendToXeroSelected\n                  this.selectedItem.item\n                  this.xeroAccountOverride\n                )\n              }}\n              data-test-accept-allocation-send-xero-button\n            >{{t 'common.Allocate'}},\n              {{t 'components.allocation-selector.accept'}}\n              &amp;\n              {{t 'components.allocation-selector.send to Xero'}}</div>\n          {{/if}}\n        {{else}}\n          <div\n            class='dropdown-item text-center'\n            data-test-accept-allocation-loading-button\n          >\n            <LoadingIcon @type='spinner' />\n          </div>\n        {{/unless}}\n      </DropdownButton>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"0aUvzoKO\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[true,[30,1],\\\"bg-white border rounded\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex bg-light border-bottom\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 m-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,0,[\\\"numberOfInvoices\\\"]],1],null],[[[1,\\\"        \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.allocatingItemsInXBills\\\"],[[\\\"number\\\",\\\"item\\\"],[[30,0,[\\\"numberOfInvoices\\\"]],[28,[37,6],[[30,2,[\\\"length\\\"]],\\\"Item\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.allocatingItems\\\"],[[\\\"item\\\"],[[28,[37,6],[[30,2,[\\\"length\\\"]],\\\"Item\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"allocation-selector__list border-bottom\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@items\\\",\\\"@selectedItem\\\",\\\"@onChange\\\",\\\"@nameKey\\\",\\\"@homeText\\\",\\\"@noItemsMessage\\\",\\\"@searchPlaceholder\\\",\\\"@noSearchItemsMessage\\\"],[[30,0,[\\\"items\\\"]],[30,0,[\\\"selectedItem\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"selectedItem\\\"]]],null]],null],\\\"name\\\",[28,[37,5],[\\\"common.Projects\\\"],null],[28,[37,5],[\\\"common.No tasks or projects\\\"],null],[28,[37,5],[\\\"common.Search for a task or project\\\"],null],[28,[37,5],[\\\"common.No tasks or projects found\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,3,[\\\"ready\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex p-3 border-bottom\\\"],[14,\\\"data-test-overriding-account-content-div\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"p-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@text\\\"],[[52,[30,0,[\\\"isOverridingXeroAccount\\\"]],[28,[37,5],[\\\"components.allocation-selector.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault\\\"],null],[28,[37,5],[\\\"components.allocation-selector.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"common.Xero account\\\"],null]],[1,\\\":\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isOverridingXeroAccount\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"p-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\"]],[[[1,\\\"            \\\"],[1,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"code\\\"]]],[1,\\\"\\\\n            -\\\\n            \\\"],[1,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.No default account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,13],[[24,5,\\\"width: 300px;\\\"]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@disabled\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\",\\\"@afterOptionsComponent\\\"],[[30,4],[30,0,[\\\"xeroAccountOverride\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"xeroAccountOverride\\\"]]],null]],null],[30,5],true,\\\"searchField\\\",[28,[37,5],[\\\"shared.bill.000 - Account\\\"],null],true,[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[30,6],\\\"sync\\\",[28,[37,5],[\\\"shared.bill.Click to update Xero accounts\\\"],null],[30,5],[28,[37,5],[\\\"shared.bill.Loading Xero accounts\\\"],null]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,7,[\\\"code\\\"]]],[1,\\\"\\\\n          -\\\\n          \\\"],[1,[30,7,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[7]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[24,\\\"data-test-overriding-account-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"toggleIsOverridingXeroAccount\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isOverridingXeroAccount\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.Overriding account\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,17],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.Override account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,8,[\\\"ready\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex p-3 border-bottom\\\"],[14,\\\"data-test-overriding-account-content-div\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"p-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@text\\\"],[[52,[30,0,[\\\"isOverridingQuickbooksAccount\\\"]],[28,[37,5],[\\\"components.allocation-selector.youAreNowTemporarilyOverridingTheXeroAccountTheAccountSelectedWillBeSetOnYourItemsRegardlessOfTheDefault\\\"],null],[28,[37,5],[\\\"components.allocation-selector.thisIsTheXeroAccountWhichWillBeAppliedToYourSelectedItemsTheAccountWillBeInheritedFromTheProjectOrTaskDefaultYouCanChooseToTemporarilyOverrideTheAccount\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[1,\\\"QuickBooks Account\\\"],[1,\\\":\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isOverridingQuickbooksAccount\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"p-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\"]],[[[1,\\\"            \\\"],[1,[30,0,[\\\"selectedItem\\\",\\\"item\\\",\\\"effectivePurchasesGlAccount\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.No default account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,13],[[24,5,\\\"width: 300px;\\\"]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@disabled\\\",\\\"@keys\\\",\\\"@searchEnabled\\\",\\\"@placeholder\\\",\\\"@allowClear\\\",\\\"@afterOptionsComponent\\\"],[[30,9],[30,0,[\\\"quickbooksAccountOverride\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"quickbooksAccountOverride\\\"]]],null]],null],[30,10],\\\"name\\\",true,[28,[37,5],[\\\"shared.bill.000 - Account\\\"],null],true,[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[30,11],\\\"sync\\\",\\\"Click to update QuickBooks accounts\\\",[30,10],\\\"Loading QuickBooks accounts\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,12,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[12]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[24,\\\"data-test-overriding-account-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"toggleIsOverridingQuickbooksAccount\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isOverridingQuickbooksAccount\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.Overriding account\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,17],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.Override account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex p-3 bg-light\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,13]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"selectedItem\\\"]]],null],null],null]],null],[12],[1,[28,[35,5],[\\\"components.allocation-selector.Clear allocation\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white me-2\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,18],null,[[\\\"@buttonText\\\",\\\"@onPrimaryClick\\\",\\\"@disabled\\\"],[[28,[37,5],[\\\"components.allocation-selector.allocatingItems\\\"],[[\\\"item\\\"],[[28,[37,6],[[30,2,[\\\"length\\\"]],\\\"item\\\"],null]]]],[28,[37,8],[[30,14],[30,0,[\\\"selectedItem\\\",\\\"item\\\"]],[28,[37,19],[[30,0,[\\\"xeroAccountOverride\\\"]],[30,0,[\\\"quickbooksAccountOverride\\\"]]],null]],null],[30,13]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,13]],[[[1,\\\"        \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"dropdown-item\\\"],[24,\\\"data-test-accept-allocation-and-accept-button\\\",\\\"\\\"],[4,[38,16],[\\\"click\\\",[28,[37,8],[[30,15],[30,0,[\\\"selectedItem\\\",\\\"item\\\"]],[30,0,[\\\"xeroAccountOverride\\\"]]],null]],null],[12],[1,[28,[35,5],[\\\"common.Allocate\\\"],null]],[1,\\\"\\\\n          &\\\\n          \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.accept\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"ready\\\"]],[[[1,\\\"          \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"dropdown-item\\\"],[24,\\\"data-test-accept-allocation-send-xero-button\\\",\\\"\\\"],[4,[38,16],[\\\"click\\\",[28,[37,8],[[30,16],[30,0,[\\\"selectedItem\\\",\\\"item\\\"]],[30,0,[\\\"xeroAccountOverride\\\"]]],null]],null],[12],[1,[28,[35,5],[\\\"common.Allocate\\\"],null]],[1,\\\",\\\\n            \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.accept\\\"],null]],[1,\\\"\\\\n            &\\\\n            \\\"],[1,[28,[35,5],[\\\"components.allocation-selector.send to Xero\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"dropdown-item text-center\\\"],[14,\\\"data-test-accept-allocation-loading-button\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,20],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onCancel\\\",\\\"@items\\\",\\\"@xeroIntegration\\\",\\\"@xeroAccounts\\\",\\\"@isXeroFetching\\\",\\\"@onUpdateXeroAccounts\\\",\\\"option\\\",\\\"@quickbooksIntegration\\\",\\\"@quickbooksAccounts\\\",\\\"@isQuickbooksFetching\\\",\\\"@onUpdateQuickbooksAccounts\\\",\\\"option\\\",\\\"@isAllocating\\\",\\\"@onAllocateSelected\\\",\\\"@onAllocateAndAcceptSelected\\\",\\\"@onAllocateAcceptAndSendToXeroSelected\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h2\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"pluralize\\\",\\\"item-selector\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"info-popup\\\",\\\"unless\\\",\\\"power-select\\\",\\\"component\\\",\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"dropdown-button\\\",\\\"or\\\",\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/components/allocation-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"isOverridingXeroAccount\", _descriptor, this);\n      _initializerDefineProperty(this, \"isOverridingQuickbooksAccount\", _descriptor2, this);\n      _initializerDefineProperty(this, \"xeroAccountOverride\", _descriptor3, this);\n      _initializerDefineProperty(this, \"quickbooksAccountOverride\", _descriptor4, this);\n      _initializerDefineProperty(this, \"items\", _descriptor5, this);\n      _initializerDefineProperty(this, \"selectedItem\", _descriptor6, this);\n      this.items = _treeItem.default.constructItemTreeFromProjectAndTasks(this.args.tasks, this.args.projects);\n\n      // if all the items have exactly the same map automatically set the selected item\n      const tasks = new Set(this.args.items.map(item => item.belongsTo('task').value()).filter(t => t));\n      const projects = new Set(this.args.items.map(item => item.belongsTo('project').value()).filter(t => t));\n      // if we have more than one unique map we can't do anything\n      if (projects.size + tasks.size > 1) return;\n      if (projects.size === 1) {\n        // projects are always top level\n        this.selectedItem = this.items.find(i => i.item === projects.values().next().value);\n      }\n      if (tasks.size === 1) {\n        this.selectedItem = _treeItem.default.findItemInTree(this.items, tasks.values().next().value);\n      }\n    }\n    get numberOfInvoices() {\n      return this.args.items.mapBy('bill').uniqBy('id').length;\n    }\n    toggleIsOverridingXeroAccount() {\n      this.isOverridingXeroAccount = !this.isOverridingXeroAccount;\n      // we set this to null so our callbacks can be called with the override\n      this.xeroAccountOverride = null;\n    }\n    toggleIsOverridingQuickbooksAccount() {\n      this.isOverridingQuickbooksAccount = !this.isOverridingQuickbooksAccount;\n      // we set this to null so our callbacks can be called with the override\n      this.quickbooksAccountOverride = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isOverridingXeroAccount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isOverridingQuickbooksAccount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"xeroAccountOverride\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"quickbooksAccountOverride\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"items\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"selectedItem\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleIsOverridingXeroAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleIsOverridingXeroAccount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleIsOverridingQuickbooksAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleIsOverridingQuickbooksAccount\"), _class.prototype), _class));\n});","define(\"portal/components/allocation-selector/bread-crumb\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @isSelected}}\n    <span class='text-primary fw-bolder' data-test-allocation-selector-path>\n      {{yield}}\n    </span>\n  {{else}}\n    <span\n      role='button'\n      class='text-primary text-decoration-underline'\n      {{on 'click' @onClick}}\n      data-test-allocation-selector-path\n    >\n      {{yield}}\n    </span>\n    <FaIcon @icon={{or @icon 'chevron-right'}} class='mx-2' />\n  {{/if}}\n  */\n  {\n    \"id\": \"wT0nWY5w\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[10,1],[14,0,\\\"text-primary fw-bolder\\\"],[14,\\\"data-test-allocation-selector-path\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[18,4,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-primary text-decoration-underline\\\"],[24,\\\"data-test-allocation-selector-path\\\",\\\"\\\"],[4,[38,3],[\\\"click\\\",[30,2]],null],[12],[1,\\\"\\\\n    \\\"],[18,4,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"mx-2\\\"]],[[\\\"@icon\\\"],[[28,[37,5],[[30,3],\\\"chevron-right\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@isSelected\\\",\\\"@onClick\\\",\\\"@icon\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"span\\\",\\\"yield\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"or\\\"]]\",\n    \"moduleName\": \"portal/components/allocation-selector/bread-crumb.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/attachment-dropdown-list\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PopOver @direction='bottom-left' as |po|>\n    <button\n      type='button'\n      class={{or @buttonClass 'btn btn-secondary text-white'}}\n    >\n      {{this.buttonText}}\n      &nbsp;&nbsp;<FaIcon @icon='paperclip' />\n    </button>\n    <po.Content>\n      {{#each @attachments as |attachment|}}\n        <div class='d-flex me-1'>\n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-6 m-1'\n            {{on 'click' (fn @onDownloadAttachment attachment)}}\n          >\n            <div class='d-flex align-items-center'>\n              <FileTypeIcon @mime={{attachment.fileType}} />\n              <span class='ms-2'>\n                {{ellipsis-characters attachment.filename 30}}\n              </span>\n            </div>\n          </button>\n          <button\n            type='button'\n            class='text-button'\n            {{on 'click' (fn @onDeleteAttachment attachment)}}\n          >\n            <FaIcon @icon='times' class='me-2' />\n          </button>\n        </div>\n      {{else}}\n        <div class='text-nowrap fs-6 text-center m-1'>\n          {{t 'shared.bill.No attachments'}}\n        </div>\n      {{/each}}\n  \n      {{#if @isDragAndDropVisible}}\n        <div class='d-flex justify-content-center'>\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            style='min-width: 180px;'\n            {{on 'click' (fn (mut this.isAttachmentModalVisible) true)}}\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t\n              'components.attachment-dropdown-list.Add attachments'\n            }}\n          </button>\n        </div>\n      {{/if}}\n    </po.Content>\n  </PopOver>\n  \n  <AttachmentUploadModal\n    @visible={{this.isAttachmentModalVisible}}\n    @parent={{@parent}}\n    @onUploadComplete={{this.onAttachmentsUploadComplete}}\n    @isDragAndDropVisible={{@isDragAndDropVisible}}\n  />\n  */\n  {\n    \"id\": \"dNIHDMkz\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@direction\\\"],[\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,\\\"button\\\"],[15,0,[28,[37,2],[[30,2],\\\"btn btn-secondary text-white\\\"],null]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"buttonText\\\"]]],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@icon\\\"],[\\\"paperclip\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,3]],null]],null],null,[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex me-1\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-6 m-1\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[30,5],[30,4]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@mime\\\"],[[30,4,[\\\"fileType\\\"]]]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"ms-2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,11],[[30,4,[\\\"filename\\\"]],30],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[30,6],[30,4]],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,3],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"text-nowrap fs-6 text-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,12],[\\\"shared.bill.No attachments\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,5,\\\"min-width: 180px;\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[28,[37,14],[[30,0,[\\\"isAttachmentModalVisible\\\"]]],null],true],null]],null],[12],[8,[39,3],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,12],[\\\"components.attachment-dropdown-list.Add attachments\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[8,[39,15],null,[[\\\"@visible\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"isAttachmentModalVisible\\\"]],[30,8],[30,0,[\\\"onAttachmentsUploadComplete\\\"]],[30,7]]],null]],[\\\"po\\\",\\\"@buttonClass\\\",\\\"@attachments\\\",\\\"attachment\\\",\\\"@onDownloadAttachment\\\",\\\"@onDeleteAttachment\\\",\\\"@isDragAndDropVisible\\\",\\\"@parent\\\"],false,[\\\"pop-over\\\",\\\"button\\\",\\\"or\\\",\\\"fa-icon\\\",\\\"each\\\",\\\"-track-array\\\",\\\"div\\\",\\\"on\\\",\\\"fn\\\",\\\"file-type-icon\\\",\\\"span\\\",\\\"ellipsis-characters\\\",\\\"t\\\",\\\"if\\\",\\\"mut\\\",\\\"attachment-upload-modal\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-dropdown-list.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"isAttachmentModalVisible\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get buttonText() {\n      const attachment = this.args.attachments.length === 1 ? this.intl.t('shared.bill.attachment') : this.intl.t('shared.bill.attachments');\n      return this.args.attachments.length ? `${this.args.attachments.length} ${attachment}` : this.intl.t('shared.bill.No attachments');\n    }\n    onAttachmentsUploadComplete({\n      error,\n      validationErrors,\n      attachments\n    }) {\n      this.args.onUploadComplete({\n        error,\n        validationErrors,\n        attachments\n      });\n      this.isAttachmentModalVisible = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isAttachmentModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onAttachmentsUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAttachmentsUploadComplete\"), _class.prototype), _class));\n});","define(\"portal/components/attachment-dropdown\", [\"exports\", \"@ember/component\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <OverlaidDropdown\n    @buttonText={{this.buttonText}}\n    @buttonIcon={{or this.buttonIcon 'paperclip'}}\n    @align={{or this.align 'right'}}\n    @buttonClasses={{or this.buttonClasses 'button'}}\n  ><div\n      class='attachment-dropdown__item-container'\n    >{{yield}}</div></OverlaidDropdown>\n  */\n  {\n    \"id\": \"2tSjms9o\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@buttonText\\\",\\\"@buttonIcon\\\",\\\"@align\\\",\\\"@buttonClasses\\\"],[[30,0,[\\\"buttonText\\\"]],[28,[37,1],[[30,0,[\\\"buttonIcon\\\"]],\\\"paperclip\\\"],null],[28,[37,1],[[30,0,[\\\"align\\\"]],\\\"right\\\"],null],[28,[37,1],[[30,0,[\\\"buttonClasses\\\"]],\\\"button\\\"],null]]],[[\\\"default\\\"],[[[[10,0],[14,0,\\\"attachment-dropdown__item-container\\\"],[12],[18,1,null],[13]],[]]]]]],[\\\"&default\\\"],false,[\\\"overlaid-dropdown\\\",\\\"or\\\",\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-dropdown.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"numberOfAttachments\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get buttonText() {\n      const attachment = this.numberOfAttachments === 1 ? this.intl.t('shared.bill.attachment') : this.intl.t('shared.bill.attachments');\n      return this.numberOfAttachments ? `${this.numberOfAttachments} ${attachment}` : this.intl.t('shared.bill.No attachments');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"numberOfAttachments\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/attachment-dropdown/item\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _object, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='attachment-dropdown__item'\n    {{on 'mouseleave' (fn (mut this.deleteConfirm) false)}}\n  >\n    {{#if this.onDownload}}\n      <div\n        class='attachment-dropdown__item-download-container'\n        title={{this.filename}}\n        {{on 'click' this.onDownload}}\n      >\n        <div class='attachment-dropdown__item-file-icon'>\n          <FileTypeIcon @mime={{this.mime}} />\n        </div>\n        <div class='attachment-dropdown__item-file-name'>\n          {{this.filename}}\n        </div>\n      </div>\n    {{/if}}\n    {{#if this.onDelete}}\n      <div class='attachment-dropdown__item-file-delete-button'>\n        {{#if this.isDeleting}}\n          <LoadingIcon @type='spinner' />\n        {{else}}\n          {{#if this.deleteConfirm}}\n            <button\n              type='button'\n              class='text-button text-button--delete'\n              {{on 'click' this._onDelete}}\n            >{{t 'common.Confirm'}} <FaIcon @icon='trash' /></button>\n          {{else}}\n            <button\n              type='button'\n              class='text-button'\n              {{on 'click' (fn (mut this.deleteConfirm) true)}}\n            >{{t 'common.Delete'}} <FaIcon @icon='trash' /></button>\n          {{/if}}\n        {{/if}}\n      </div>\n    {{/if}}\n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"/+fbXtaJ\",\n    \"block\": \"[[[11,0],[24,0,\\\"attachment-dropdown__item\\\"],[4,[38,1],[\\\"mouseleave\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"deleteConfirm\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onDownload\\\"]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"attachment-dropdown__item-download-container\\\"],[16,\\\"title\\\",[30,0,[\\\"filename\\\"]]],[4,[38,1],[\\\"click\\\",[30,0,[\\\"onDownload\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"attachment-dropdown__item-file-icon\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@mime\\\"],[[30,0,[\\\"mime\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"attachment-dropdown__item-file-name\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"filename\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"onDelete\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"attachment-dropdown__item-file-delete-button\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeleting\\\"]],[[[1,\\\"        \\\"],[8,[39,6],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"deleteConfirm\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"_onDelete\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Confirm\\\"],null]],[1,\\\" \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"deleteConfirm\\\"]]],null],true],null]],null],[12],[1,[28,[35,8],[\\\"common.Delete\\\"],null]],[1,\\\" \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[18,1,null],[1,\\\"\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"div\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"if\\\",\\\"file-type-icon\\\",\\\"loading-icon\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-dropdown/item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tagName\", '');\n      _initializerDefineProperty(this, \"isDeleting\", _descriptor, this);\n      _initializerDefineProperty(this, \"deleteConfirm\", _descriptor2, this);\n    }\n    async _onDelete() {\n      try {\n        this.isDeleting = true;\n        await this.onDelete();\n      } finally {\n        this.isDeleting = false;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isDeleting\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"deleteConfirm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"_onDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onDelete\"), _class.prototype), _class));\n});","define(\"portal/components/attachment-manager\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/array\", \"@ember/object\", \"@ember/debug\", \"@glimmer/tracking\", \"portal/models/attachment\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _service, _array, _object, _debug, _tracking, _attachment, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _class2, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/array\",0,\"@ember/object\",0,\"@ember/object\",0,\"@ember/debug\",0,\"@glimmer/tracking\",0,\"portal/models/attachment\",0,\"portal/config/environment\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.visible}}\n    <ModalDialog\n      @onClose={{fn (mut this.visible) false}}\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @containerClass='block-module'\n    >\n      <div\n        id='attachment-manager__drop-zone'\n        {{on 'drop' this.onDropZoneDrop}}\n        {{on 'dragover' this.onDropZoneDragOver}}\n      >\n        {{#if this.fileContainers.length}}\n          <div class='attachment-manager__file-table-container'>\n            <table class='attachment-manager__file-table'>\n              <tbody>\n                {{#each this.fileContainers as |fc|}}\n                  <tr data-test-attachment-manager-attachment-row={{fc.hash}}>\n                    <td\n                      class='attachment-manager__file-table-file-name-cell'\n                    ><FileTypeIcon\n                        @mime={{fc.file.type}}\n                      />&nbsp;&nbsp;{{fc.file.name}}</td>\n                    <td class='attachment-manager__file-table-icon-cell'>\n                      {{#if fc.saved}}\n                        <span\n                          class='attachment-manager__file-table-icon-cell--success'\n                          data-test-attachment-manager-saved-message={{fc.hash}}\n                        >\n                          <InfoPopup\n                            @text={{t\n                              'components.attachment-manager.Attachment has been saved'\n                            }}\n                            @iconName='check'\n                            @align='right'\n                          />\n                        </span>\n                      {{/if}}\n                      {{#if fc.isInvalid}}\n                        <span\n                          class='attachment-manager__file-table-icon-cell--info'\n                          data-test-attachment-manager-invalid-message={{fc.hash}}\n                        >\n                          <InfoPopup\n                            @text={{fc.invalidMessage}}\n                            @iconName='exclamation-circle'\n                            @align='right'\n                          />\n                        </span>\n                      {{/if}}\n                      {{#if fc.hasErrored}}\n                        <span\n                          class='attachment-manager__file-table-icon-cell--error'\n                          data-test-attachment-manager-error-message={{fc.hash}}\n                        >\n                          <InfoPopup\n                            @text={{fc.errorMessage}}\n                            @iconName='exclamation-triangle'\n                            @align='right'\n                          />\n                        </span>\n                      {{/if}}\n                    </td>\n                    <td class='attachment-manager__file-table-icon-cell'>\n                      {{#if fc.isSaving}}\n                        <LoadingIcon @type='spinner' />\n                      {{else}}\n                        <button\n                          class='text-button'\n                          type='button'\n                          {{on 'click' (fn this.unstageFile fc)}}\n                          disabled={{this.isSaving}}\n                          data-test-attachment-manager-delete-container={{fc.hash}}\n                        ><FaIcon @icon='times' /></button>\n                      {{/if}}\n                    </td>\n                  </tr>\n                {{/each}}\n              </tbody>\n            </table>\n          </div>\n        {{/if}}\n  \n        <div class='attachment-manager__drop-zone-button'>\n          {{t 'shared.bill.Drag files here or'}}&nbsp;\n          <button\n            class='button button--add'\n            data-test-attachment-manager-browse-button=''\n            type='button'\n            {{on 'click' this.onManualUploadClick}}\n          >{{t 'shared.bill.Browse files'}}</button>\n        </div>\n      </div>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @class='float-end button'\n          @isLoading={{this.isSaving}}\n          @action={{this.completeUpload}}\n          @buttonText={{t 'common.Upload files'}}\n          data-test-attachment-manager-upload-files\n        />\n        <button\n          class='button button--plain'\n          disabled={{this.isSaving}}\n          type='button'\n          {{on 'click' this.close}}\n        >{{t 'common.Close'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"kkRFVoiu\",\n    \"block\": \"[[[41,[30,0,[\\\"visible\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[28,[37,2],[[28,[37,3],[[30,0,[\\\"visible\\\"]]],null],false],null],true,\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,1,\\\"attachment-manager__drop-zone\\\"],[4,[38,5],[\\\"drop\\\",[30,0,[\\\"onDropZoneDrop\\\"]]],null],[4,[38,5],[\\\"dragover\\\",[30,0,[\\\"onDropZoneDragOver\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"fileContainers\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"attachment-manager__file-table-container\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"attachment-manager__file-table\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"fileContainers\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[15,\\\"data-test-attachment-manager-attachment-row\\\",[30,1,[\\\"hash\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"attachment-manager__file-table-file-name-cell\\\"],[12],[8,[39,12],null,[[\\\"@mime\\\"],[[30,1,[\\\"file\\\",\\\"type\\\"]]]],null],[1,\\\"  \\\"],[1,[30,1,[\\\"file\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"attachment-manager__file-table-icon-cell\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"saved\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"attachment-manager__file-table-icon-cell--success\\\"],[15,\\\"data-test-attachment-manager-saved-message\\\",[30,1,[\\\"hash\\\"]]],[12],[1,\\\"\\\\n                        \\\"],[8,[39,14],null,[[\\\"@text\\\",\\\"@iconName\\\",\\\"@align\\\"],[[28,[37,15],[\\\"components.attachment-manager.Attachment has been saved\\\"],null],\\\"check\\\",\\\"right\\\"]],null],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"isInvalid\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"attachment-manager__file-table-icon-cell--info\\\"],[15,\\\"data-test-attachment-manager-invalid-message\\\",[30,1,[\\\"hash\\\"]]],[12],[1,\\\"\\\\n                        \\\"],[8,[39,14],null,[[\\\"@text\\\",\\\"@iconName\\\",\\\"@align\\\"],[[30,1,[\\\"invalidMessage\\\"]],\\\"exclamation-circle\\\",\\\"right\\\"]],null],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"hasErrored\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"attachment-manager__file-table-icon-cell--error\\\"],[15,\\\"data-test-attachment-manager-error-message\\\",[30,1,[\\\"hash\\\"]]],[12],[1,\\\"\\\\n                        \\\"],[8,[39,14],null,[[\\\"@text\\\",\\\"@iconName\\\",\\\"@align\\\"],[[30,1,[\\\"errorMessage\\\"]],\\\"exclamation-triangle\\\",\\\"right\\\"]],null],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"attachment-manager__file-table-icon-cell\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isSaving\\\"]],[[[1,\\\"                      \\\"],[8,[39,16],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[16,\\\"data-test-attachment-manager-delete-container\\\",[30,1,[\\\"hash\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"unstageFile\\\"]],[30,1]],null]],null],[12],[8,[39,18],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"attachment-manager__drop-zone-button\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,15],[\\\"shared.bill.Drag files here or\\\"],null]],[1,\\\" \\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[24,\\\"data-test-attachment-manager-browse-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"onManualUploadClick\\\"]]],null],[12],[1,[28,[35,15],[\\\"shared.bill.Browse files\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,20],[[24,\\\"data-test-attachment-manager-upload-files\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button\\\",[30,0,[\\\"isSaving\\\"]],[30,0,[\\\"completeUpload\\\"]],[28,[37,15],[\\\"common.Upload files\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"close\\\"]]],null],[12],[1,[28,[35,15],[\\\"common.Close\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"fc\\\"],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"on\\\",\\\"table\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"td\\\",\\\"file-type-icon\\\",\\\"span\\\",\\\"info-popup\\\",\\\"t\\\",\\\"loading-icon\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"footer\\\",\\\"loading-button\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-manager.hbs\",\n    \"isStrictMode\": false\n  });\n  let FileContainer = (_class = class FileContainer extends _object.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"file\", _descriptor, this);\n      _initializerDefineProperty(this, \"hash\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isSaving\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isInvalid\", _descriptor4, this);\n      _initializerDefineProperty(this, \"hasErrored\", _descriptor5, this);\n      _initializerDefineProperty(this, \"saved\", _descriptor6, this);\n      _initializerDefineProperty(this, \"invalidMessage\", _descriptor7, this);\n      _initializerDefineProperty(this, \"errorMessage\", _descriptor8, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"file\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hash\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isSaving\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isInvalid\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"hasErrored\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"saved\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"invalidMessage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"errorMessage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor9, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor0, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor1, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor10, this);\n      _initializerDefineProperty(this, \"acceptedMimeTypes\", _descriptor11, this);\n      _initializerDefineProperty(this, \"visible\", _descriptor12, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor13, this);\n      _initializerDefineProperty(this, \"fileContainers\", _descriptor14, this);\n    }\n    init() {\n      super.init(...arguments);\n      (true && (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      (true && (0, _debug.warn)('You must supply a `onUploadComplete` function prop', this.onUploadComplete && typeof this.onUploadComplete === 'function', {\n        id: 'attachment-manager.no-upload-complete-prop'\n      }));\n    }\n    get isSaving() {\n      return this.fileContainers.some(fc => fc.isSaving);\n    }\n    get existingAttachmentHashes() {\n      return this.attachments.map(att => att.hash);\n    }\n    get existingFileContainerHashes() {\n      return this.fileContainers.map(fc => fc.hash);\n    }\n    onDropZoneDragOver(event) {\n      // this function runs hundreds of times keep it fast\n      event.preventDefault();\n    }\n    async onDropZoneDrop(event) {\n      event.preventDefault();\n      let filesArray = [...event.dataTransfer.files];\n      // remove directories and not accepted file types\n      filesArray = filesArray.filter(file => this.isValidType(file));\n      // populate the hash for each file\n      let forUpload = await Promise.all(filesArray.map(async file => ({\n        file,\n        hash: await this.getFileHash(file)\n      })));\n      // discard duplicate files\n      forUpload = forUpload.filter(file => !this.fileAlreadyStaged(file.hash));\n      this.stageFiles(forUpload);\n    }\n    async onManualFileUpload(event) {\n      const filesArray = [...event.target.files];\n      // populate the hash for each file\n      let forUpload = await Promise.all(filesArray.map(async file => ({\n        file,\n        hash: await this.getFileHash(file)\n      })));\n      // discard duplicate files\n      forUpload = forUpload.filter(file => !this.fileAlreadyStaged(file.hash));\n      this.stageFiles(forUpload);\n    }\n    onManualUploadClick(event) {\n      if (event.target.files) {\n        // This is a testing override, since a file picker is hard to use in a test environment,\n        // the file refs are tacked on to the click event instead.\n        const fakeEvent = {\n          preventDefault: () => null,\n          dataTransfer: {\n            files: event.target.files\n          }\n        };\n        this.onDropZoneDrop(fakeEvent);\n        return;\n      }\n      const input = document.createElement('input');\n      input.type = 'file';\n      input.accept = this.acceptedMimeTypes.join(', ');\n      input.multiple = true;\n      input.onchange = this.onManualFileUpload;\n      input.click();\n    }\n    unstageFile(dfc) {\n      this.fileContainers.removeObject(dfc);\n    }\n    async stageFiles(files) {\n      files.forEach(({\n        file,\n        hash\n      }) => {\n        const fc = {\n          file,\n          hash\n        };\n        if (this.fileIsTooLarge(file.size)) {\n          fc.isInvalid = true;\n          fc.invalidMessage = this.intl.t('components.attachment-manager.fileIsLargerThan20MBAndWillNotBeUploaded');\n        } else if (this.filePreviouslyAttached(hash)) {\n          fc.isInvalid = true;\n          fc.invalidMessage = this.intl.t('components.attachment-manager.thisFileIsAlreadyAttachedAndWillNotBeUploaded');\n        }\n        return this.fileContainers.pushObject(FileContainer.create(fc));\n      });\n    }\n    async completeUpload() {\n      try {\n        const invalidFiles = this.fileContainers.filter(fc => fc.isInvalid);\n        const containersToSave = this.fileContainers.filter(fc => !fc.isInvalid && !fc.saved);\n        const attachmentResources = await Promise.all(containersToSave.map(fc => this.createAttachmentRecord(fc)));\n        const saved = attachmentResources.filter(r => !r.isNew);\n        this.onUploadComplete({\n          numberInvalid: invalidFiles.length,\n          numberOfFailures: containersToSave.length - saved.length,\n          savedRecords: saved.filter(r => !r.isNew)\n        });\n        if (saved.length === containersToSave.length) this.close();\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error\n        });\n      }\n    }\n    close() {\n      this.fileContainers = (0, _array.A)([]);\n      this.toggleVisible();\n    }\n    async createAttachmentRecord(fc) {\n      fc.isSaving = true;\n      let attachmentRecord;\n      try {\n        attachmentRecord = await _attachment.default.fromFileInput(fc.file, this.store, this.sessionData.entity);\n        await attachmentRecord.save({\n          adapterOptions: {\n            meta: {\n              data: attachmentRecord.data\n            }\n          }\n        });\n        fc.saved = true;\n      } catch (error) {\n        fc.hasErrored = true;\n        fc.errorMessage = this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments');\n        this.notifications.error({\n          error,\n          message: this.intl.t('components.attachment-manager.Error saving attachment')\n        });\n      } finally {\n        fc.isSaving = false;\n        return attachmentRecord;\n      }\n    }\n    isValidType(file) {\n      // directories and files without types are not allowed\n      if (!file.type) return false;\n      // No mime types specified means allow all types\n      if (!this.acceptedMimeTypes) return true;\n      return this.acceptedMimeTypes.some(acceptedMime => (0, _attachment.isMimeSame)(acceptedMime, file.type));\n    }\n    async getFileHash(file) {\n      const buffer = await file.arrayBuffer();\n      let hash;\n      if (crypto?.subtle?.digest || _environment.default.environment !== 'test') {\n        const hashBuffer = await crypto.subtle.digest('SHA-1', buffer);\n        const hashArray = Array.from(new Uint8Array(hashBuffer));\n        hash = hashArray.map(b => b.toString(16).padStart(2, '0')).join('');\n      } else {\n        hash = window.fileHashes[file.name];\n      }\n      return hash;\n    }\n    fileIsTooLarge(size) {\n      // 30MB is current server limit\n      // Base64 encoding increases size by ~33% https://developer.mozilla.org/en-US/docs/Glossary/Base64\n      return size > 2e7; // 20MB\n    }\n    filePreviouslyAttached(hash) {\n      return this.existingAttachmentHashes.includes(hash);\n    }\n    fileAlreadyStaged(hash) {\n      return this.existingFileContainerHashes.includes(hash);\n    }\n  }, _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"acceptedMimeTypes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"visible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"fileContainers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onDropZoneDragOver\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDropZoneDragOver\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onDropZoneDrop\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDropZoneDrop\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onManualFileUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onManualFileUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onManualUploadClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onManualUploadClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unstageFile\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"unstageFile\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"completeUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"completeUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"close\"), _class2.prototype), _class2));\n});","define(\"portal/components/attachment-preview\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isPdf}}\n    <iframe\n      class='w-100 h-100 flex-grow-1 border-0'\n      title={{@attachment.filename}}\n      src={{@attachment.previewHref}}\n    >\n    </iframe>\n  {{else if this.isImage}}\n    <div\n      class='w-100 h-100 flex-grow-1 border rounded d-flex align-items-center justify-content-center overflow-auto'\n    >\n      <img\n        class='mw-100 mh-100 object-fit-contain'\n        alt={{@attachment.filename}}\n        src={{@attachment.previewHref}}\n      />\n    </div>\n  {{else}}\n    <div\n      class='d-flex flex-column align-items-center justify-content-center border rounded flex-grow-1'\n    >\n      <div>{{t 'components.bill-editor.Can not preview this file'}}</div>\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"/LNCdOgV\",\n    \"block\": \"[[[41,[30,0,[\\\"isPdf\\\"]],[[[1,\\\"  \\\"],[10,\\\"iframe\\\"],[14,0,\\\"w-100 h-100 flex-grow-1 border-0\\\"],[15,\\\"title\\\",[30,1,[\\\"filename\\\"]]],[15,\\\"src\\\",[30,1,[\\\"previewHref\\\"]]],[12],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isImage\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"w-100 h-100 flex-grow-1 border rounded d-flex align-items-center justify-content-center overflow-auto\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"img\\\"],[14,0,\\\"mw-100 mh-100 object-fit-contain\\\"],[15,\\\"alt\\\",[30,1,[\\\"filename\\\"]]],[15,\\\"src\\\",[30,1,[\\\"previewHref\\\"]]],[12],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex flex-column align-items-center justify-content-center border rounded flex-grow-1\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[12],[1,[28,[35,4],[\\\"components.bill-editor.Can not preview this file\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[\\\"@attachment\\\"],false,[\\\"if\\\",\\\"iframe\\\",\\\"div\\\",\\\"img\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-preview.hbs\",\n    \"isStrictMode\": false\n  });\n  class AttachmentPreviewComponent extends _component2.default {\n    get fileType() {\n      return this.args.attachment?.fileType;\n    }\n    get isPdf() {\n      return this.fileType === 'application/pdf';\n    }\n    get isImage() {\n      return this.fileType?.startsWith('image/');\n    }\n  }\n  _exports.default = AttachmentPreviewComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AttachmentPreviewComponent);\n});","define(\"portal/components/attachment-settings-modal\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"@glimmer/tracking\", \"@ember/service\", \"lodash\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _tracking, _service, _lodash, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"lodash\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @onClose={{@onCloseAction}}\n    @overlayClass='modal'\n    @containerClass='block-module attachment-settings-modal__container'\n  >\n    {{#if this.initChangeset.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <form data-test-new-project-form>\n        <header>\n          <h3 class='text-truncate'>{{@attachment.filename}}</h3>\n        </header>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Name'}}\n          @key='filename'\n          @model={{this.attachmentChangeSet}}\n          disabled={{not this.isEditable}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Description'}}\n          @key='description'\n          @model={{this.attachmentChangeSet}}\n          disabled={{not this.isEditable}}\n        />\n  \n        {{#if this.canManageUsers}}\n          <PtlInput\n            @type='powerSelectMultiple'\n            @label={{t 'common.Shared with'}}\n            @key='users'\n            @optionKeys={{array 'fullName'}}\n            @searchField='name'\n            @options={{@users}}\n            @model={{this.permissionChangeSet}}\n            @forceValidationVisible={{gt this.saveAttachment.performCount 0}}\n            @disabled={{this.saveAttachment.isRunning}}\n          />\n          {{#if this.showClientVisibleButton}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'components.attachment-settings-modal.Visible to project clients'\n              }}\n              @key='clientsCanViewFileStorage'\n              @model={{this.permissionChangeSet}}\n              disabled={{this.saveAttachment.isRunning}}\n            />\n          {{/if}}\n        {{/if}}\n  \n        <footer class='block-module__footer'>\n          {{#if this.isEditable}}\n            <button\n              class='btn btn-link text-danger text-decoration-underline'\n              type='button'\n              disabled={{or\n                this.saveAttachment.isRunning\n                this.onDeletingAttachment.isRunning\n              }}\n              {{on 'click' (perform this.onDeletingAttachment)}}\n            >\n              {{#if this.onDeletingAttachment.isRunning}}\n                &nbsp;&nbsp;{{t 'common.Deleting'}}…\n              {{else}}\n                {{t 'common.Delete attachment'}}\n              {{/if}}\n            </button>\n          {{/if}}\n          <div class='float-end d-flex align-items-center'>\n            <button\n              type='button'\n              class='btn btn-secondary text-white ms-2'\n              data-test-new-project-close-button\n              disabled={{or\n                this.saveAttachment.isRunning\n                this.onDeletingAttachment.isRunning\n              }}\n              {{on 'click' @onCloseAction}}\n            >{{if\n                this.isEditable\n                (t 'common.Cancel')\n                (t 'common.Close')\n              }}</button>\n            {{#if this.isEditable}}\n              <button\n                type='button'\n                class='btn btn-primary ms-2'\n                disabled={{or\n                  this.saveAttachment.isRunning\n                  this.onDeletingAttachment.isRunning\n                }}\n                {{on 'click' (perform this.saveAttachment)}}\n              >\n                {{#if this.saveAttachment.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n                {{else}}\n                  {{t 'common.Save'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </div>\n        </footer>\n      </form>\n    {{/if}}\n  </ModalDialog>\n  */\n  {\n    \"id\": \"FuBUqjBY\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[true,[30,1],\\\"modal\\\",\\\"block-module attachment-settings-modal__container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"initChangeset\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"form\\\"],[14,\\\"data-test-new-project-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"text-truncate\\\"],[12],[1,[30,2,[\\\"filename\\\"]]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"text\\\",[28,[37,8],[\\\"common.Name\\\"],null],\\\"filename\\\",[30,0,[\\\"attachmentChangeSet\\\"]]]],null],[1,\\\"\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"text\\\",[28,[37,8],[\\\"common.Description\\\"],null],\\\"description\\\",[30,0,[\\\"attachmentChangeSet\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageUsers\\\"]],[[[1,\\\"        \\\"],[8,[39,6],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@searchField\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[\\\"powerSelectMultiple\\\",[28,[37,8],[\\\"common.Shared with\\\"],null],\\\"users\\\",[28,[37,9],[\\\"fullName\\\"],null],\\\"name\\\",[30,3],[30,0,[\\\"permissionChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"saveAttachment\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showClientVisibleButton\\\"]],[[[1,\\\"          \\\"],[8,[39,6],[[16,\\\"disabled\\\",[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,8],[\\\"components.attachment-settings-modal.Visible to project clients\\\"],null],\\\"clientsCanViewFileStorage\\\",[30,0,[\\\"permissionChangeSet\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeletingAttachment\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"onDeletingAttachment\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onDeletingAttachment\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Delete attachment\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-project-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeletingAttachment\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,1]],null],[12],[1,[52,[30,0,[\\\"isEditable\\\"]],[28,[37,8],[\\\"common.Cancel\\\"],null],[28,[37,8],[\\\"common.Close\\\"],null]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeletingAttachment\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"saveAttachment\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveAttachment\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,8],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]]]],[\\\"@onCloseAction\\\",\\\"@attachment\\\",\\\"@users\\\"],false,[\\\"modal-dialog\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"form\\\",\\\"header\\\",\\\"h3\\\",\\\"ptl-input\\\",\\\"not\\\",\\\"t\\\",\\\"array\\\",\\\"gt\\\",\\\"footer\\\",\\\"button\\\",\\\"or\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-settings-modal.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"attachmentChangeSet\", _descriptor, this);\n      _initializerDefineProperty(this, \"permissionChangeSet\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor5, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _defineProperty(this, \"validateName\", newValue => {\n        const filename = newValue;\n        return filename && filename.length > 0 || this.intl.t('validation.Please provide a file name');\n      });\n      _defineProperty(this, \"taskValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'filename':\n            return this.validateName(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"validationMap\", {\n        name: this.validateName\n      });\n      _defineProperty(this, \"userAttachmentPermission\", ['canViewFileStorage']);\n      _defineProperty(this, \"attachmentProjectPermission\", ['clientsCanViewFileStorage']);\n      _defineProperty(this, \"initChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.canManageUsers) {\n            yield Promise.all([this.getUserPermissionSet.perform(), this.getAttachmentPermissionSet.perform()]);\n            yield this.initPermissionChangeset.perform();\n          }\n          this.attachmentChangeSet = (0, _emberChangeset.Changeset)(this.args.attachment, this.taskValidator, this.validationMap);\n        }\n      }), null, \"initChangeset\", null));\n      _defineProperty(this, \"getUserPermissionSet\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.simpleQuery('user-attribute', {\n            _id: {\n              $in: this.userAttachmentPermission\n            }\n          });\n          return attributes.toArray().reduce((acc, a) => ({\n            ...acc,\n            [a.id]: a\n          }), {});\n        }\n      }), null, \"getUserPermissionSet\", null));\n      _defineProperty(this, \"getAttachmentPermissionSet\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.simpleQuery('attachment-attribute', {\n            _id: {\n              $in: this.attachmentProjectPermission\n            }\n          });\n          return attributes.toArray().reduce((acc, a) => ({\n            ...acc,\n            [a.id]: a\n          }), {});\n        }\n      }), null, \"getAttachmentPermissionSet\", null));\n      _defineProperty(this, \"initPermissionChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.getExistUserPermissions.perform();\n          const users = this.getExistUserPermissions.last.value.map(at => at.belongsTo('user').value());\n          yield this.getExistCanViewFilePermission.perform();\n          this.permissionChangeSet = (0, _emberChangeset.Changeset)({\n            users,\n            clientsCanViewFileStorage: this.getExistCanViewFilePermission.last.value.length > 0\n          });\n        }\n      }), null, \"initPermissionChangeset\", null));\n      _defineProperty(this, \"getExistUserPermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.simpleQuery('user-attachment-attribute', {\n            entity: this.sessionData.entity.id,\n            attachment: this.args.attachment.id\n          }, {\n            include: 'user'\n          });\n          return attributes;\n        }\n      }), null, \"getExistUserPermissions\", null));\n      _defineProperty(this, \"getExistCanViewFilePermission\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.simpleQuery('attachment-project-attribute', {\n            attachment: this.args.attachment.id,\n            attribute: this.getAttachmentPermissionSet.last.value.clientsCanViewFileStorage.id\n          });\n          return attributes;\n        }\n      }), null, \"getExistCanViewFilePermission\", null));\n      _defineProperty(this, \"saveAttachment\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.attachmentChangeSet.validate();\n          if (this.attachmentChangeSet.isInvalid) return;\n          try {\n            yield this.attachmentChangeSet.save();\n            if (this.canManageUsers) {\n              yield Promise.all([this.saveUserAttachmentPermission.perform(), this.saveClientCanViewAttachmentPermission.perform()]);\n            }\n            this.notifications.success(this.intl.t('components.attachment-settings-modal.Successfully saved attachment settings'));\n            this.args.onCloseAction();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.attachment-settings-modal.somethingWentWrongWhileSavingAttachmentSettings'),\n              error\n            });\n          }\n        }\n      }), null, \"saveAttachment\", null));\n      _defineProperty(this, \"saveClientCanViewAttachmentPermission\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          // make sure current state saved.\n          this.permissionChangeSet.execute();\n          yield this.getExistCanViewFilePermission.perform();\n          // get the up to date value\n          const existCanViewFilePermission = this.getExistCanViewFilePermission.last.value;\n          const originalState = existCanViewFilePermission.length > 0;\n          const currentState = this.permissionChangeSet.clientsCanViewFileStorage;\n          if (originalState !== currentState) {\n            if (currentState) {\n              yield this.store.createRecord('attachment-project-attribute', {\n                entity: this.args.attachment.belongsTo('entity').value(),\n                attachment: this.args.attachment,\n                project: this.args.project,\n                attribute: this.getAttachmentPermissionSet.last.value.clientsCanViewFileStorage\n              }).save();\n            } else {\n              yield existCanViewFilePermission.map(attr => attr.destroyRecord());\n            }\n          }\n        }\n      }), null, \"saveClientCanViewAttachmentPermission\", null));\n      _defineProperty(this, \"onDeletingAttachment\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!confirm(this.intl.t('components.attachment-settings-modal.Do you want to delete this attachment'))) return;\n          const linkAttachmentsToParent = this.args.parent.hasMany('attachments').value();\n          const linkRecord = linkAttachmentsToParent.find(item => item.belongsTo('attachment').id() === this.args.attachment.id);\n\n          // first we need to delete the link record\n          yield linkRecord.destroyRecord();\n\n          //after delete actual attachment record\n          yield this.args.attachment.destroyRecord();\n          this.args.onCloseAction(true);\n        }\n      }), null, \"onDeletingAttachment\", null));\n      _defineProperty(this, \"saveUserAttachmentPermission\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const originalAttributes = this.getExistUserPermissions.last.value;\n          const originalSelectedUsers = originalAttributes.map(at => at.belongsTo('user').value());\n          const selectedUsers = this.permissionChangeSet.users;\n          const removeUsers = _lodash.default.difference(originalSelectedUsers, selectedUsers);\n          let attrToRemove = [];\n          if (removeUsers.length) {\n            attrToRemove = originalAttributes.filter(oa => removeUsers.includes(oa.belongsTo('user').value()));\n          }\n          const addUsers = _lodash.default.difference(selectedUsers, originalSelectedUsers);\n          let attrToAdd = [];\n          if (addUsers.length) {\n            attrToAdd = addUsers.map(u => this.store.createRecord('user-attachment-attribute', {\n              user: u,\n              attachment: this.args.attachment,\n              entity: this.args.attachment.belongsTo('entity').value(),\n              attribute: this.getUserPermissionSet.last.value.canViewFileStorage\n            }));\n          }\n          yield Promise.all([attrToRemove.map(attr => attr.destroyRecord()), attrToAdd.map(attr => attr.save())]);\n        }\n      }), null, \"saveUserAttachmentPermission\", null));\n      this.initChangeset.perform();\n    }\n    get showClientVisibleButton() {\n      return !this.args.attachment.hasMany('entities').ids().length;\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.parent, 'canManageFileStorage');\n    }\n    get canManageUsers() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.parent, 'canManageUsers');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"attachmentChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"permissionChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/attachment-table\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='d-flex flex-column'>\n    {{#each @attachments as |attachment|}}\n      <div class='d-flex align-items-center attachment-table__attachment-row'>\n        <div class='d-flex flex-grow-1 align-items-center'>\n          <div class='me-3'>\n            <FileTypeIcon @mime={{attachment.fileType}} @size='2x' />\n          </div>\n  \n          <div class='d-flex flex-column align-items-start'>\n            <button\n              type='button'\n              class='fs-5 btn btn-link m-0 p-0'\n              {{on 'click' (fn this.setAttachmentToUpdate attachment)}}\n            >{{attachment.filename}}</button>\n            <div class='text-dark fs-6'>\n              {{attachment.description}}\n            </div>\n            <div class='text-muted fs-6'>\n              {{date-ago attachment.dateCreated}},\n              {{file-size-to-string attachment.size true}}\n            </div>\n          </div>\n        </div>\n  \n        <div class='d-flex align-items-center'>\n          <a\n            target='_blank'\n            href={{attachment.href}}\n            rel='noopener noreferrer'\n            class='btn btn-link'\n          ><FaIcon @icon='download' @size='md' /></a>\n        </div>\n      </div>\n    {{else}}\n      <p class='text-center'>\n        {{t 'common.No documents'}}\n      </p>\n    {{/each}}\n  </div>\n  \n  {{#if this.attachmentToUpdate}}\n    <AttachmentSettingsModal\n      @parent={{@parent}}\n      @project={{@project}}\n      @attachment={{this.attachmentToUpdate}}\n      @users={{@users}}\n      @onCloseAction={{fn (mut this.attachmentToUpdate) null}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"Vsg9dAVP\",\n    \"block\": \"[[[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,1]],null]],null],null,[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex align-items-center attachment-table__attachment-row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"me-3\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,3],null,[[\\\"@mime\\\",\\\"@size\\\"],[[30,2,[\\\"fileType\\\"]],\\\"2x\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-column align-items-start\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"fs-5 btn btn-link m-0 p-0\\\"],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"setAttachmentToUpdate\\\"]],[30,2]],null]],null],[12],[1,[30,2,[\\\"filename\\\"]]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-dark fs-6\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,2,[\\\"description\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-muted fs-6\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[[30,2,[\\\"dateCreated\\\"]]],null]],[1,\\\",\\\\n            \\\"],[1,[28,[35,8],[[30,2,[\\\"size\\\"]],true],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,3],[14,\\\"target\\\",\\\"_blank\\\"],[15,6,[30,2,[\\\"href\\\"]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,0,\\\"btn btn-link\\\"],[12],[8,[39,10],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"download\\\",\\\"md\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,12],[\\\"common.No documents\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"attachmentToUpdate\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@parent\\\",\\\"@project\\\",\\\"@attachment\\\",\\\"@users\\\",\\\"@onCloseAction\\\"],[[30,3],[30,4],[30,0,[\\\"attachmentToUpdate\\\"]],[30,5],[28,[37,6],[[28,[37,15],[[30,0,[\\\"attachmentToUpdate\\\"]]],null],null],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@attachments\\\",\\\"attachment\\\",\\\"@parent\\\",\\\"@project\\\",\\\"@users\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"file-type-icon\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"date-ago\\\",\\\"file-size-to-string\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"p\\\",\\\"t\\\",\\\"if\\\",\\\"attachment-settings-modal\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attachmentToDelete\", _descriptor, this);\n      _initializerDefineProperty(this, \"attachmentToUpdate\", _descriptor2, this);\n    }\n    setAttachmentToUpdate(attachment, event) {\n      event.preventDefault();\n      this.attachmentToUpdate = attachment;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"attachmentToDelete\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"attachmentToUpdate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setAttachmentToUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setAttachmentToUpdate\"), _class.prototype), _class));\n});","define(\"portal/components/attachment-upload-modal\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @visible}}\n    <ModalDialog\n      @onClose={{fn (mut @visible) false}}\n      @translucentOverlay='true'\n      @overlayClass='modal'\n      @containerClass='block-module'\n    >\n      <div class='card width--large'>\n        <DragAndDropContainer\n          @parent={{@parent}}\n          @onUploadComplete={{@onUploadComplete}}\n          @isDragAndDropVisible={{@isDragAndDropVisible}}\n        />\n      </div>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if @onUploadComplete.isRunning}}\n            <button\n              type='button'\n              class='btn btn-secondary text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.uploading'}}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{@onUploadComplete.isRunning}}\n              {{on 'click' (fn (mut @visible) false)}}\n            >\n              {{t 'common.Cancel'}}\n            </button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"CbvDEYih\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[28,[37,2],[[28,[37,3],[[30,1]],null],false],null],\\\"true\\\",\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card width--large\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,2],[30,3],[30,4]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,9],[\\\"common.uploading\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,3,[\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,2],[[28,[37,3],[[30,1]],null],false],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@visible\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"drag-and-drop-container\\\",\\\"footer\\\",\\\"button\\\",\\\"span\\\",\\\"t\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/attachment-upload-modal.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/attachments-popover\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PopOver\n    @direction={{this.direction}}\n    @fixed={{true}}\n    @disableBlur={{true}}\n    @disabled={{@disabled}}\n    class={{if this.forceVisible 'pop-over__container--force-visible'}}\n    {{on 'click' this.open}}\n    {{did-insert this.setupListeners}}\n    {{will-destroy this.teardownListeners}}\n    ...attributes\n    as |po|\n  >\n    <button\n      type='button'\n      class='btn btn-secondary text-white text-nowrap d-inline-flex align-items-center justify-content-between gap-2'\n      disabled={{@disabled}}\n    >\n      <span class='d-inline-flex align-items-center gap-2 text-nowrap'>\n        <FaIcon @icon='file-alt' />\n        <span>{{this.buttonText}}</span>\n      </span>\n      <FaIcon @icon='caret-down' />\n    </button>\n  \n    <po.Content class='p-0'>\n      <div class='d-flex flex-column gap-3 p-3' style='max-width: 90vw;'>\n        <div class='fs-6 fw-semibold'>{{t\n            'components.attachments-popover.Attach files'\n          }}</div>\n  \n        <DragAndDropContainer\n          @onUploadComplete={{@onUploadComplete}}\n          @isDragAndDropVisible={{true}}\n        />\n  \n        <div class='list-group overflow-auto' style='max-height: 20rem;'>\n          {{#each this.attachments as |attachment|}}\n            <div\n              class='list-group-item d-flex align-items-center gap-3 px-3 py-3'\n            >\n              <div\n                class='d-flex align-items-center gap-3 flex-grow-1 overflow-hidden'\n              >\n                <div\n                  class='d-flex justify-content-center flex-shrink-0'\n                  style='width: 1.5rem;'\n                >\n                  <FileTypeIcon @mime={{attachment.fileType}} @size='lg' />\n                </div>\n  \n                <div class='flex-grow-1 overflow-hidden'>\n                  <div\n                    class='d-block text-truncate fw-semibold'\n                    title={{attachment.filename}}\n                  >\n                    {{ellipsis-characters attachment.filename 30}}\n                  </div>\n                  <div class='small text-muted'>\n                    {{if\n                      (or attachment.size (eq attachment.size 0))\n                      (file-size-to-string attachment.size true)\n                      (t 'components.attachments-popover.File size unavailable')\n                    }}\n                  </div>\n                </div>\n              </div>\n  \n              <div class='d-flex align-items-center gap-3 flex-shrink-0'>\n                <button\n                  type='button'\n                  class='btn btn-link text-decoration-none fw-semibold p-0 text-nowrap'\n                  {{on 'click' (fn @onViewAttachment attachment)}}\n                >\n                  {{t 'common.View'}}\n                </button>\n  \n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-none p-0 lh-1'\n                  aria-label={{t 'common.Delete attachment'}}\n                  {{on 'click' (fn @onDeleteAttachment attachment)}}\n                >\n                  <FaIcon @icon='trash' />\n                </button>\n              </div>\n            </div>\n          {{else}}\n            <div class='list-group-item py-4 text-center text-muted'>\n              {{t 'components.attachments-popover.No attachments'}}\n            </div>\n          {{/each}}\n        </div>\n      </div>\n    </po.Content>\n  </PopOver>\n  */\n  {\n    \"id\": \"KQj3LmbV\",\n    \"block\": \"[[[8,[39,0],[[16,0,[52,[30,0,[\\\"forceVisible\\\"]],\\\"pop-over__container--force-visible\\\"]],[17,1],[4,[38,2],[\\\"click\\\",[30,0,[\\\"open\\\"]]],null],[4,[38,3],[[30,0,[\\\"setupListeners\\\"]]],null],[4,[38,4],[[30,0,[\\\"teardownListeners\\\"]]],null]],[[\\\"@direction\\\",\\\"@fixed\\\",\\\"@disableBlur\\\",\\\"@disabled\\\"],[[30,0,[\\\"direction\\\"]],true,true,[30,2]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white text-nowrap d-inline-flex align-items-center justify-content-between gap-2\\\"],[15,\\\"disabled\\\",[30,2]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"d-inline-flex align-items-center gap-2 text-nowrap\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"file-alt\\\"]],null],[1,\\\"\\\\n      \\\"],[10,1],[12],[1,[30,0,[\\\"buttonText\\\"]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,3,[\\\"Content\\\"]],[[24,0,\\\"p-0\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-column gap-3 p-3\\\"],[14,5,\\\"max-width: 90vw;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"fs-6 fw-semibold\\\"],[12],[1,[28,[35,9],[\\\"components.attachments-popover.Attach files\\\"],null]],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,10],null,[[\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,4],true]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"list-group overflow-auto\\\"],[14,5,\\\"max-height: 20rem;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[30,0,[\\\"attachments\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[14,0,\\\"list-group-item d-flex align-items-center gap-3 px-3 py-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 flex-grow-1 overflow-hidden\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"d-flex justify-content-center flex-shrink-0\\\"],[14,5,\\\"width: 1.5rem;\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,13],null,[[\\\"@mime\\\",\\\"@size\\\"],[[30,5,[\\\"fileType\\\"]],\\\"lg\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"flex-grow-1 overflow-hidden\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"d-block text-truncate fw-semibold\\\"],[15,\\\"title\\\",[30,5,[\\\"filename\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,5,[\\\"filename\\\"]],30],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"small text-muted\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[52,[28,[37,15],[[30,5,[\\\"size\\\"]],[28,[37,16],[[30,5,[\\\"size\\\"]],0],null]],null],[28,[37,17],[[30,5,[\\\"size\\\"]],true],null],[28,[37,9],[\\\"components.attachments-popover.File size unavailable\\\"],null]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 flex-shrink-0\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-none fw-semibold p-0 text-nowrap\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,18],[[30,6],[30,5]],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,9],[\\\"common.View\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-none p-0 lh-1\\\"],[16,\\\"aria-label\\\",[28,[37,9],[\\\"common.Delete attachment\\\"],null]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,18],[[30,7],[30,5]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"list-group-item py-4 text-center text-muted\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"components.attachments-popover.No attachments\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[3]]]]]],[\\\"&attrs\\\",\\\"@disabled\\\",\\\"po\\\",\\\"@onUploadComplete\\\",\\\"attachment\\\",\\\"@onViewAttachment\\\",\\\"@onDeleteAttachment\\\"],false,[\\\"pop-over\\\",\\\"if\\\",\\\"on\\\",\\\"did-insert\\\",\\\"will-destroy\\\",\\\"button\\\",\\\"span\\\",\\\"fa-icon\\\",\\\"div\\\",\\\"t\\\",\\\"drag-and-drop-container\\\",\\\"each\\\",\\\"-track-array\\\",\\\"file-type-icon\\\",\\\"ellipsis-characters\\\",\\\"or\\\",\\\"eq\\\",\\\"file-size-to-string\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"portal/components/attachments-popover.hbs\",\n    \"isStrictMode\": false\n  });\n  let AttachmentsPopoverComponent = _exports.default = (_class = class AttachmentsPopoverComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"media\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isDraggingFiles\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isOpen\", _descriptor4, this);\n      _defineProperty(this, \"element\", null);\n      _defineProperty(this, \"dragHandler\", null);\n      _defineProperty(this, \"dragEndHandler\", null);\n      _defineProperty(this, \"clickHandler\", null);\n    }\n    get attachments() {\n      return this.args.attachments || [];\n    }\n    get buttonText() {\n      return this.args.buttonText || `${this.intl.t('common.Attachments')} (${this.attachments.length})`;\n    }\n    get direction() {\n      if (this.media.isDesktop) {\n        return 'bottom-left';\n      } else {\n        return 'bottom-right';\n      }\n    }\n    get forceVisible() {\n      return this.isOpen || this.isDraggingFiles;\n    }\n    open() {\n      this.isOpen = true;\n    }\n    setupListeners(element) {\n      this.element = element;\n      this.dragHandler = event => {\n        if (event.dataTransfer?.types?.includes('Files')) {\n          this.isDraggingFiles = true;\n          this.isOpen = true;\n        }\n      };\n      this.dragEndHandler = () => {\n        this.isDraggingFiles = false;\n      };\n      this.clickHandler = event => {\n        if (!this.element.contains(event.target)) {\n          this.isOpen = false;\n        }\n      };\n      window.addEventListener('dragenter', this.dragHandler);\n      window.addEventListener('dragover', this.dragHandler);\n      window.addEventListener('drop', this.dragEndHandler);\n      window.addEventListener('dragend', this.dragEndHandler);\n      window.addEventListener('mousedown', this.clickHandler);\n    }\n    teardownListeners() {\n      window.removeEventListener('dragenter', this.dragHandler);\n      window.removeEventListener('dragover', this.dragHandler);\n      window.removeEventListener('drop', this.dragEndHandler);\n      window.removeEventListener('dragend', this.dragEndHandler);\n      window.removeEventListener('mousedown', this.clickHandler);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"media\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isDraggingFiles\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"open\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"open\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupListeners\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setupListeners\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"teardownListeners\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"teardownListeners\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AttachmentsPopoverComponent);\n});","define(\"portal/components/auto-mapping/directive-pm\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{!\n    This component is a template sentence with two inputs.\n    The second input could be a select box, if the directive is account based,\n    or a text input, if the directive is a reference based.\n  }}\n  \n  <div\n    class='directive__segment directive__segment--left'\n    data-test-sentence-fragment=''\n  >\n    {{t 'components.auto-mapping.directive-pm.Auto map bills to the project'}}\n  </div>\n  \n  <SelectInput\n    @class={{concat\n      'select-box directive__segment directive__segment--left'\n      (unless this.directive.project.id ' invalid')\n    }}\n    @value={{this.directive.project.id}}\n    @action={{action 'switchProject'}}\n    data-test-project-select={{if this.directive.isNew 'new' this.directive.id}}\n    as |si|\n  >\n    <si.option @value={{null}}>{{t 'common.Select a project'}}</si.option>\n  \n    {{#each this.projectOptions as |project|}}\n      <si.option @value={{project.id}}>{{project.name}}</si.option>\n    {{/each}}\n  </SelectInput>\n  \n  {{#if (eq this.directive.kind 'account')}}\n    <div\n      class='directive__segment directive__segment--left'\n      data-test-sentence-fragment=''\n    >\n      {{t\n        'components.auto-mapping.directive-pm.whenTheyAreBilledToTheMerchantAccount'\n      }}\n    </div>\n  \n    <SelectInput\n      @class={{concat\n        'select-box directive__segment directive__segment--left'\n        (unless this.directive.value ' invalid')\n      }}\n      @value={{this.directive.value}}\n      @action={{fn (mut this.directive.value)}}\n      data-test-account-select={{if this.directive.isNew 'new' this.directive.id}}\n      as |si|\n    >\n      <si.option>{{t\n          'components.auto-mapping.directive-pm.Select an account'\n        }}</si.option>\n  \n      {{#each this.accountOptions as |account|}}\n        <si.option\n          @value={{account.code}}\n          data-test-account-option={{this.directive.id}}\n        >\n          {{account.name}}&nbsp;({{account.supplier.name}})\n        </si.option>\n      {{/each}}\n    </SelectInput>\n  \n  {{else if (eq this.directive.kind 'reference')}}\n  \n    <div\n      class='directive__segment directive__segment--left'\n      data-test-sentence-fragment=''\n    >\n      {{t\n        'components.auto-mapping.directive-pm.whenTheBillsPurchaseOrderFieldIs'\n      }}\n    </div>\n  \n    <Input\n      @value={{this.directive.value}}\n      class={{concat\n        'text-input directive__segment directive__segment--left'\n        (unless this.directive.value ' invalid')\n      }}\n      data-test-reference={{if this.directive.isNew 'new' this.directive.id}}\n    />\n  \n  {{else}}\n  \n    <div data-test-error-message=''>\n      {{t 'components.auto-mapping.directive-pm.Something went wrong'}}\n    </div>\n  {{/if}}\n  \n  <button\n    class='button button--delete directive__segment'\n    data-test-delete=''\n    type='button'\n    {{action this.delete}}\n  ><FaIcon @icon='trash' /></button>\n  */\n  {\n    \"id\": \"eWTJiSZy\",\n    \"block\": \"[[[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"directive__segment directive__segment--left\\\"],[14,\\\"data-test-sentence-fragment\\\",\\\"\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,1],[\\\"components.auto-mapping.directive-pm.Auto map bills to the project\\\"],null]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[8,[39,2],[[16,\\\"data-test-project-select\\\",[52,[30,0,[\\\"directive\\\",\\\"isNew\\\"]],\\\"new\\\",[30,0,[\\\"directive\\\",\\\"id\\\"]]]]],[[\\\"@class\\\",\\\"@value\\\",\\\"@action\\\"],[[28,[37,4],[\\\"select-box directive__segment directive__segment--left\\\",[52,[51,[30,0,[\\\"directive\\\",\\\"project\\\",\\\"id\\\"]]],\\\" invalid\\\"]],null],[30,0,[\\\"directive\\\",\\\"project\\\",\\\"id\\\"]],[28,[37,6],[[30,0],\\\"switchProject\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[null]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Select a project\\\"],null]]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"projectOptions\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[30,2,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null]],[1]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"directive\\\",\\\"kind\\\"]],\\\"account\\\"],null],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"directive__segment directive__segment--left\\\"],[14,\\\"data-test-sentence-fragment\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,1],[\\\"components.auto-mapping.directive-pm.whenTheyAreBilledToTheMerchantAccount\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],[[16,\\\"data-test-account-select\\\",[52,[30,0,[\\\"directive\\\",\\\"isNew\\\"]],\\\"new\\\",[30,0,[\\\"directive\\\",\\\"id\\\"]]]]],[[\\\"@class\\\",\\\"@value\\\",\\\"@action\\\"],[[28,[37,4],[\\\"select-box directive__segment directive__segment--left\\\",[52,[51,[30,0,[\\\"directive\\\",\\\"value\\\"]]],\\\" invalid\\\"]],null],[30,0,[\\\"directive\\\",\\\"value\\\"]],[28,[37,10],[[28,[37,11],[[30,0,[\\\"directive\\\",\\\"value\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"option\\\"]],null,null,[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"components.auto-mapping.directive-pm.Select an account\\\"],null]]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"accountOptions\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[8,[30,3,[\\\"option\\\"]],[[16,\\\"data-test-account-option\\\",[30,0,[\\\"directive\\\",\\\"id\\\"]]]],[[\\\"@value\\\"],[[30,4,[\\\"code\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\" (\\\"],[1,[30,4,[\\\"supplier\\\",\\\"name\\\"]]],[1,\\\")\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"  \\\"]],[3]]]]],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[28,[37,9],[[30,0,[\\\"directive\\\",\\\"kind\\\"]],\\\"reference\\\"],null],[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"directive__segment directive__segment--left\\\"],[14,\\\"data-test-sentence-fragment\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,1],[\\\"components.auto-mapping.directive-pm.whenTheBillsPurchaseOrderFieldIs\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,12],[[16,0,[28,[37,4],[\\\"text-input directive__segment directive__segment--left\\\",[52,[51,[30,0,[\\\"directive\\\",\\\"value\\\"]]],\\\" invalid\\\"]],null]],[16,\\\"data-test-reference\\\",[52,[30,0,[\\\"directive\\\",\\\"isNew\\\"]],\\\"new\\\",[30,0,[\\\"directive\\\",\\\"id\\\"]]]]],[[\\\"@value\\\"],[[30,0,[\\\"directive\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"\\\\n  \\\"],[10,0],[14,\\\"data-test-error-message\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,1],[\\\"components.auto-mapping.directive-pm.Something went wrong\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"\\\\n\\\"],[11,\\\"button\\\"],[24,0,\\\"button button--delete directive__segment\\\"],[24,\\\"data-test-delete\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],[30,0,[\\\"delete\\\"]]],null],[12],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13]],[\\\"si\\\",\\\"project\\\",\\\"si\\\",\\\"account\\\"],false,[\\\"div\\\",\\\"t\\\",\\\"select-input\\\",\\\"if\\\",\\\"concat\\\",\\\"unless\\\",\\\"action\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"fn\\\",\\\"mut\\\",\\\"input\\\",\\\"button\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/auto-mapping/directive-pm.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['directive'],\n    /**\n     * Makes sure that the selected project is included in the list.\n     * It may not have been passed in as an option if it was not open.\n     * @type {Project[]}\n     */\n    projectOptions: (0, _object.computed)('directive.project', 'projects.[]', function () {\n      const selectedProject = (0, _object.get)(this, 'directive').safeBelongsToValue('project');\n      const passedInProjects = (0, _object.get)(this, 'projects').toArray();\n      if (passedInProjects.mapBy('id').includes(selectedProject ? (0, _object.get)(selectedProject, 'id') : null)) {\n        return [...passedInProjects];\n      } else {\n        return [selectedProject, ...passedInProjects];\n      }\n    }),\n    // Include all the unused accounts, as well as the account currently used by this directive.\n    accountOptions: (0, _object.computed)('allAccounts', 'directive.value', 'unusedAccounts.[]', function () {\n      const unused = (0, _object.get)(this, 'unusedAccounts');\n      const currentCode = (0, _object.get)(this, 'directive.value');\n\n      // Filtering the complete list preserves order, as opposed to adding the current account to the unused list.\n      return (0, _object.get)(this, 'allAccounts').filter(a => (0, _object.get)(a, 'code') === currentCode || unused.includes(a));\n    }),\n    actions: {\n      switchProject(projectId) {\n        const project = ((0, _object.get)(this, 'projects') === undefined ? [] : (0, _object.get)(this, 'projects')).find(j => (0, _object.get)(j, 'id') === projectId);\n\n        // No project being set is akin to the directive not existing, it is therefore not a valid state to enter.\n        if (project == null) return;\n        (0, _object.set)(this, 'directive.project', project);\n      }\n    }\n  }));\n});","define(\"portal/components/basic-dropdown-content\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown-content\"], function (_exports, _basicDropdownContent) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDropdownContent.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-basic-dropdown/components/basic-dropdown-content\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/basic-dropdown-trigger\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown-trigger\"], function (_exports, _basicDropdownTrigger) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDropdownTrigger.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-basic-dropdown/components/basic-dropdown-trigger\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/basic-dropdown-wormhole\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown-wormhole\"], function (_exports, _basicDropdownWormhole) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDropdownWormhole.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-basic-dropdown/components/basic-dropdown-wormhole\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/basic-dropdown\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown\"], function (_exports, _basicDropdown) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDropdown.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-basic-dropdown/components/basic-dropdown\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/basic-importer\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object/computed\", \"@ember/object\", \"@ember/utils\"], function (_exports, _component, _service, _computed, _object, _utils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"@ember/object\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _component.default.extend({\n    notifications: (0, _service.inject)(),\n    // Override this\n    parser: null,\n    hasSelectedFile: (0, _computed.notEmpty)('importData'),\n    hasNotSelectedFile: (0, _computed.not)('hasSelectedFile'),\n    hasImported: false,\n    actions: {\n      import(importData) {\n        const parser = (0, _object.get)(this, 'parser');\n        const csvParsingErrors = (0, _object.get)(importData, 'errors').rejectBy('type', 'Delimiter');\n        const oldError = (0, _object.get)(this, 'error');\n        if (!parser) {\n          throw new Error('No report parser provided. You should import this component and extend it, overriding the parser field');\n        }\n        if (oldError) {\n          (0, _object.get)(this, 'notifications').clear(oldError);\n        }\n        if (csvParsingErrors.length) {\n          this.send('parsingError', ['Bad CSV']);\n          return;\n        }\n\n        // Parse the response\n        const report = parser((0, _object.get)(importData, 'data'));\n        const reportParsingErrors = report.errors;\n        if (!(0, _utils.isEmpty)(reportParsingErrors)) {\n          this.send('parsingError', reportParsingErrors);\n          return;\n        }\n        this.import(report);\n        (0, _object.set)(this, 'hasImported', true);\n        (0, _object.set)(this, 'importData', null);\n      },\n      parsingError(errors) {\n        const msg = errors[0] || \"The file you selected didn't have the structure we were expecting. Please check the guides and try again.\";\n        const error = (0, _object.get)(this, 'notifications').error(msg);\n        (0, _object.set)(this, 'error', error);\n      }\n    }\n  });\n});","define(\"portal/components/bill-editor\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-concurrency\", \"@ember/object\", \"@ember/service\", \"ember-changeset\", \"@glimmer/tracking\", \"ember-changeset-validations\", \"portal/validators/bill\", \"portal/validators/bill-item\", \"portal/utils/search-filter\", \"@ember/runloop\", \"portal/utils/search-term-escape\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberConcurrency, _object, _service, _emberChangeset, _tracking, _emberChangesetValidations, _bill, _billItem, _searchFilter, _runloop, _searchTermEscape, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"ember-changeset-validations\",0,\"portal/validators/bill\",0,\"portal/validators/bill-item\",0,\"portal/utils/search-filter\",0,\"@ember/runloop\",0,\"portal/utils/search-term-escape\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! the trigger has to sit outside the branches below - the loading state\n    unmounts the editor, so a bill change landing while it is up would be missed }}\n  <div hidden {{did-update (perform this.resetChangeset @bill)}}></div>\n  \n  {{#if this.resetChangeset.isRunning}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div\n      class='d-flex flex-wrap p-2 border-bottom position-sticky bg-white z-1'\n      style='top: 0;'\n    >\n      <h2 class='flex-grow-1 m-0 my-2 d-flex align-items-center'>\n        {{@bill.typeLabel}}\n        {{@bill.billNumber}}\n        <span\n          class='badge ms-1 fs-7\n            {{if (eq @bill.status \"DRAFT\") \"bg-secondary\"}}\n            {{if (eq @bill.status \"AWAITING_APPROVAL\") \"bg-warning text-dark\"}}\n            {{if (eq @bill.status \"ACCEPTED\") \"bg-info\"}}\n            {{if (eq @bill.status \"HELD\") \"bg-warning text-dark\"}}\n            {{if (eq @bill.status \"PAID\") \"bg-success\"}}\n            {{if (eq @bill.status \"ARCHIVED\") \"bg-secondary\"}}\n            '\n        >\n          {{@bill.statusLabel}}\n        </span>\n        {{#if @bill.hasDuplicate}}\n          <button\n            type='button'\n            class='btn btn-link p-0 ms-1 text-decoration-none'\n            title={{t 'components.bill-editor.View duplicate bills'}}\n            {{on 'click' this.viewDuplicateBills}}\n          >\n            <span class='badge fs-7 bg-danger'>\n              {{t 'common.Duplicate'}}\n              <FaIcon @icon='external-link-alt' />\n            </span>\n          </button>\n        {{/if}}\n      </h2>\n  \n      <div class='d-flex align-items-center gap-2 ms-auto'>\n        {{#if @bill.accountingPackageUrl}}\n          <a\n            href={{@bill.accountingPackageUrl}}\n            target='_blank'\n            rel='noopener noreferrer'\n            class='btn btn-link text-primary text-decoration-underline m-1'\n          >\n            {{t\n              'components.bill-editor.viewInLabel'\n              label=this.accountingPlatform.label\n            }}\n            <FaIcon class='ms-1' @icon='external-link-alt' />\n          </a>\n        {{/if}}\n  \n        <AttachmentsPopover\n          @attachments={{this.allAttachments}}\n          @disabled={{not this.canManageBills}}\n          @onViewAttachment={{this.viewAttachment}}\n          @onUploadComplete={{this.attachmentsUploadComplete}}\n          @onDeleteAttachment={{this.deleteAttachment}}\n        />\n  \n        <div class='d-flex'>\n          {{#if\n            (and\n              this.billActions.primaryAction\n              (not this.billActions.secondaryActions.length)\n            )\n          }}\n            <button\n              type='button'\n              class='btn btn-primary text-white m-1'\n              disabled={{or this.isLoading this.isActionsRunning}}\n              {{on\n                'click'\n                (perform\n                  this.billActions.primaryAction.action\n                  this.billActions.primaryAction.targetStatus\n                )\n              }}\n            >\n              {{#if this.isActionsRunning}}\n                {{t 'common.Syncing'}}&hellip;\n              {{else}}\n                {{this.billActions.primaryAction.name}}\n              {{/if}}\n            </button>\n          {{else if\n            (and\n              this.billActions.primaryAction\n              this.billActions.secondaryActions.length\n            )\n          }}\n            <div class='m-1'>\n              <DropdownButton\n                @onPrimaryClick={{perform\n                  this.billActions.primaryAction.action\n                  this.billActions.primaryAction.targetStatus\n                  this.billActions.primaryAction.syncToAccountingPackage\n                }}\n                @buttonText={{if\n                  this.isActionsRunning\n                  (t 'common.Saving')\n                  this.billActions.primaryAction.name\n                }}\n                @disabled={{or this.isLoading this.isActionsRunning}}\n              >\n                {{#each this.billActions.secondaryActions as |action|}}\n                  <button\n                    type='button'\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (perform\n                        action.action\n                        action.targetStatus\n                        action.syncToAccountingPackage\n                      )\n                    }}\n                    disabled={{action.action.isRunning}}\n                  >\n                    {{#if action.action.isRunning}}\n                      {{t 'common.Updating'}}&hellip;\n                    {{else}}\n                      {{action.name}}\n                    {{/if}}\n                  </button>\n                {{/each}}\n              </DropdownButton>\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='d-flex align-items-center gap-1'>\n          {{#unless @bill.isNew}}\n            <IconButton\n              @size='md'\n              @icon='arrow-up'\n              {{on 'click' this.previousBill}}\n              {{on-key 'ArrowUp' this.triggerPreviousBill}}\n              title={{format-shortcut\n                'ArrowUp'\n                (t 'components.bill-editor.Previous bill')\n              }}\n            />\n            <IconButton\n              @size='md'\n              @icon='arrow-down'\n              {{on 'click' this.nextBill}}\n              {{on-key 'ArrowDown' this.triggerNextBill}}\n              title={{format-shortcut\n                'ArrowDown'\n                (t 'components.bill-editor.Next bill')\n              }}\n            />\n          {{/unless}}\n  \n          <LinkTo\n            @route='entity.builda-price.operations.incoming.bills'\n            class='d-flex'\n          >\n            <IconButton\n              @size='md'\n              @icon='times'\n              {{on-key 'Escape' this.triggerClose}}\n              title={{format-shortcut\n                'Esc'\n                (t 'components.bill-editor.Back to list')\n              }}\n            />\n          </LinkTo>\n        </div>\n      </div>\n    </div>\n  \n    <form class='p-3'>\n      <div class='d-flex'>\n        <div class='col mb-3'>\n          <label class='mb-1'>\n            {{t 'common.Issuer'}}\n            <sup class='text-danger'>*</sup>\n          </label>\n          <SearchSelector\n            @onSelect={{this.setIssuerContact}}\n            @onLoad={{this.loadContacts}}\n            @noDataMessage={{t 'common.Create a contact'}}\n            @noDataAction={{this.createIssuerContact}}\n            @showNoDataActionWithResults={{true}}\n            @initialSearchTerm={{@bill.issuer}}\n            @placeholder={{@bill.issuer}}\n            @key='issuerContact'\n            @optionKeys={{array 'name'}}\n            @model={{this.billForm}}\n            @disabled={{or (not this.canEditBill) 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.canEditBill) 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.canEditBill) 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.canEditBill) 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.canEditBill) 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.canEditBill) this.save.isRunning}}\n          @forceValidationVisible={{true}}\n        />\n  \n        <div class='col position-relative'>\n          <NewComboBox\n            class='col mb-0'\n            @isLoading={{or\n              this.onSearchPurchaseOrders.isRunning\n              this.loadMorePurchaseOrders.isRunning\n            }}\n            @list={{this.purchaseOrders}}\n            @noDataMessage={{t 'shared.purchase-order.No purchase orders'}}\n            @onSelect={{this.setPurchaseOrder}}\n            @onSearch={{this.onSearchPurchaseOrders}}\n            @debounce={{this.debounceTime}}\n            @label={{t 'common.Purchase order'}}\n            @key='reference'\n            @optionKeys={{array 'purchaseOrderNumber'}}\n            @model={{this.billForm}}\n            @inputContainerClass='mb-1'\n            @hasNextPage={{this.hasNextPurchaseOrderPage}}\n            @onLoadMore={{this.loadMorePurchaseOrders}}\n            @disabled={{or (not this.canEditBill) 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.canEditBill}}\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.canEditBill) 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.canEditBill) 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.canEditBill)\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.canEditBill) 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.canEditBill) 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.canEditBill) this.save.isRunning}}\n            {{on 'click' (fn (mut this.showBillDeleteConfirmModal) true)}}\n          >\n            {{#if this.save.isRunning}}\n              {{t 'common.Deleting'}}\n              &hellip;\n            {{else}}\n              {{t 'common.Delete'}}\n            {{/if}}\n          </button>\n  \n        {{/unless}}\n        <button\n          type='button'\n          class='btn btn-primary ms-auto'\n          disabled={{or\n            (not this.canManageBills)\n            this.save.isRunning\n            (not this.hasUnsavedChanges)\n          }}\n          {{on-key 'cmd+s' this.triggerSave}}\n          title={{format-shortcut 'cmd+s' 'Save'}}\n          {{on 'click' this.triggerSave}}\n        >\n          {{#if this.save.isRunning}}\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;{{t\n              'common.Saving'\n            }}…\n          {{else}}\n            {{t 'common.Save'}}\n          {{/if}}\n        </button>\n      </div>\n    </div>\n  \n    {{#unless @bill.isNew}}\n      <div\n        class='d-flex align-items-center p-3 border mx-3 mt-3'\n        role='button'\n        {{on 'click' (fn (mut this.showBillHistory) (not this.showBillHistory))}}\n      >\n        <h4 class='m-0'>\n          {{t 'components.bill-editor.Bill history'}}\n        </h4>\n        <h4 class='m-0 ms-auto'>\n          <FaIcon\n            @icon={{if this.showBillHistory 'chevron-down' 'chevron-right'}}\n          />\n        </h4>\n      </div>\n      {{#if this.showBillHistory}}\n        <div class='px-3'>\n          <ResourceHistory @resourceId={{@bill.id}} />\n        </div>\n      {{/if}}\n    {{/unless}}\n  \n  {{/if}}\n  <ConfirmDelete\n    @visible={{this.showBillDeleteConfirmModal}}\n    @title={{(t 'common.Delete bill')}}\n    @messages={{(t 'components.bill-editor.Do you want to delete this bill')}}\n    @deleteButtonText={{(t 'common.Delete bill')}}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{(perform this.deleteBill)}}\n    @onCancel={{fn (mut this.showBillDeleteConfirmModal) false}}\n  >\n    <p>{{t 'shared.estimate.This action cannot be undone'}}</p>\n  </ConfirmDelete>\n  \n  {{#if this.billTypeChangeConfirmation}}\n    <ModalDialog\n      @onClose={{fn this.handleBillTypeChange false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t 'components.bill-editor.Change bill type'}}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p>\n          {{t\n            'components.bill-editor.yourUpdatedSubtotalIsSignExistingBillTypePluralShouldBeExistingSignDoYouWantToChangeThisDocumentToABillType'\n            sign=this.billTypeChangeConfirmation.sign\n            existingBillTypePlural=this.billTypeChangeConfirmation.existingBillTypePural\n            existingSign=this.billTypeChangeConfirmation.existingSign\n            billType=this.billTypeChangeConfirmation.billType\n          }}\n        </p>\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <button\n          class='btn btn-secondary text-white ms-2'\n          type='button'\n          {{on 'click' (fn this.handleBillTypeChange false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          class='btn btn-primary ms-2'\n          type='button'\n          {{on 'click' (fn this.handleBillTypeChange true)}}\n        >\n          {{t 'common.Confirm'}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.billTypeResponseHandlerVisible}}\n    <BillTypeResponseHandler\n      @responses={{this.billResponses}}\n      @onCancel={{this.onBillTypeResponseHandlerCancel}}\n    />\n  {{/if}}\n  \n  {{#if this.allocating}}\n    <BillItemAllocator\n      @bills={{array @bill}}\n      @onClose={{this.onBillItemAllocatorClose}}\n      @billStatus={{@billStatus}}\n    />\n  {{/if}}\n  \n  {{#if this.attachmentsVisible}}\n    <div class='bill-attachment-overlay-pane p-3 d-flex flex-column'>\n      <div class='d-flex align-items-center mb-2'>\n        <IconButton\n          @icon='times'\n          {{on 'click' (fn (mut this.attachmentsVisible) false)}}\n        />\n  \n        <p class='m-0 fw-bold fs-6 ms-3'>\n          {{ellipsis-characters this.activeAttachment.filename 30}}\n        </p>\n  \n        {{#if this.activeAttachment}}\n          <a\n            rel='noopener noreferrer'\n            href={{this.activeAttachment.href}}\n            target='_blank'\n            class='ms-auto'\n          >\n            <FaIcon @icon='download' />\n            {{t 'common.Download'}}\n          </a>\n        {{/if}}\n      </div>\n  \n      {{#if this.activeAttachment}}\n        <AttachmentPreview @attachment={{this.activeAttachment}} />\n      {{/if}}\n  \n      {{#if (gt this.allAttachments.length 1)}}\n        <div class='d-flex pt-2 align-items-center justify-content-end'>\n          <IconButton\n            @size='sm'\n            @icon='arrow-left'\n            {{on 'click' this.previousAttachment}}\n          />\n  \n          <span class='m-1'>\n            {{math this.attachmentIndex '+' 1}}\n            /\n            {{this.allAttachments.length}}\n          </span>\n  \n          <IconButton\n            @size='sm'\n            @icon='arrow-right'\n            {{on 'click' this.nextAttachment}}\n          />\n        </div>\n      {{/if}}\n    </div>\n  {{/if}}\n  \n  {{#if this.setContactAliasModalVisible}}\n    <ModalDialog\n      @onClose={{fn (mut this.setContactAliasModalVisible) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n    >\n      <div class='modal-body'>\n        <p class='m-0'>\n          {{t\n            'components.bill-editor.doYouAlsoWantToAddAliasAsAnAliasOfYourContact'\n            alias=@bill.issuer\n            contact=this.billForm.issuerContact.name\n          }}\n        </p>\n      </div>\n      <footer class='modal-footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.saveContactAlias.isRunning}}\n            {{on 'click' (fn (mut this.setContactAliasModalVisible) false)}}\n          >{{t 'common.No'}}</button>\n          <button\n            class='btn btn-primary text-white ms-2'\n            type='button'\n            disabled={{this.saveContactAlias.isRunning}}\n            {{on 'click' (perform this.saveContactAlias)}}\n          >\n            {{#if this.saveContactAlias.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Saving'}}\n            {{else}}\n              {{t 'components.bill-editor.Add alias'}}\n            {{/if}}\n          </button>\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"NfQzAr5d\",\n    \"block\": \"[[[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,1],[[28,[37,2],[[30,0,[\\\"resetChangeset\\\"]],[30,1]],null]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"resetChangeset\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[8,[39,4],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex flex-wrap p-2 border-bottom position-sticky bg-white z-1\\\"],[14,5,\\\"top: 0;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,1,[\\\"typeLabel\\\"]]],[1,\\\"\\\\n      \\\"],[1,[30,1,[\\\"billNumber\\\"]]],[1,\\\"\\\\n      \\\"],[10,1],[15,0,[29,[\\\"badge ms-1 fs-7\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"ACCEPTED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"HELD\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"PAID\\\"],null],\\\"bg-success\\\"],\\\"\\\\n          \\\",[52,[28,[37,7],[[30,1,[\\\"status\\\"]],\\\"ARCHIVED\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n          \\\"]]],[12],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"statusLabel\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"hasDuplicate\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0 ms-1 text-decoration-none\\\"],[16,\\\"title\\\",[28,[37,9],[\\\"components.bill-editor.View duplicate bills\\\"],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"viewDuplicateBills\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"badge fs-7 bg-danger\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Duplicate\\\"],null]],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-2 ms-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"accountingPackageUrl\\\"]],[[[1,\\\"        \\\"],[10,3],[15,6,[30,1,[\\\"accountingPackageUrl\\\"]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,0,\\\"btn btn-link text-primary text-decoration-underline m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"components.bill-editor.viewInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n          \\\"],[8,[39,11],[[24,0,\\\"ms-1\\\"]],[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@attachments\\\",\\\"@disabled\\\",\\\"@onViewAttachment\\\",\\\"@onUploadComplete\\\",\\\"@onDeleteAttachment\\\"],[[30,0,[\\\"allAttachments\\\"]],[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"viewAttachment\\\"]],[30,0,[\\\"attachmentsUploadComplete\\\"]],[30,0,[\\\"deleteAttachment\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\"]],[28,[37,14],[[30,0,[\\\"billActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white m-1\\\"],[16,\\\"disabled\\\",[28,[37,16],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isActionsRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,9],[\\\"common.Syncing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,15],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\"]],[30,0,[\\\"billActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,17],null,[[\\\"@onPrimaryClick\\\",\\\"@buttonText\\\",\\\"@disabled\\\"],[[28,[37,2],[[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]],[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"syncToAccountingPackage\\\"]]],null],[52,[30,0,[\\\"isActionsRunning\\\"]],[28,[37,9],[\\\"common.Saving\\\"],null],[30,0,[\\\"billActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[28,[37,16],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"billActions\\\",\\\"secondaryActions\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,2,[\\\"action\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,2],[[30,2,[\\\"action\\\"]],[30,2,[\\\"targetStatus\\\"]],[30,2,[\\\"syncToAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"action\\\",\\\"isRunning\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,9],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]],null]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"isNew\\\"]]],[[[1,\\\"          \\\"],[8,[39,21],[[16,\\\"title\\\",[28,[37,22],[\\\"ArrowUp\\\",[28,[37,9],[\\\"components.bill-editor.Previous bill\\\"],null]],null]],[4,[38,10],[\\\"click\\\",[30,0,[\\\"previousBill\\\"]]],null],[4,[38,23],[\\\"ArrowUp\\\",[30,0,[\\\"triggerPreviousBill\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"md\\\",\\\"arrow-up\\\"]],null],[1,\\\"\\\\n          \\\"],[8,[39,21],[[16,\\\"title\\\",[28,[37,22],[\\\"ArrowDown\\\",[28,[37,9],[\\\"components.bill-editor.Next bill\\\"],null]],null]],[4,[38,10],[\\\"click\\\",[30,0,[\\\"nextBill\\\"]]],null],[4,[38,23],[\\\"ArrowDown\\\",[30,0,[\\\"triggerNextBill\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"md\\\",\\\"arrow-down\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,24],[[24,0,\\\"d-flex\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.operations.incoming.bills\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,21],[[16,\\\"title\\\",[28,[37,22],[\\\"Esc\\\",[28,[37,9],[\\\"components.bill-editor.Back to list\\\"],null]],null]],[4,[38,23],[\\\"Escape\\\",[30,0,[\\\"triggerClose\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"md\\\",\\\"times\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"form\\\"],[14,0,\\\"p-3\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Issuer\\\"],null]],[1,\\\"\\\\n          \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,28],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@noDataAction\\\",\\\"@showNoDataActionWithResults\\\",\\\"@initialSearchTerm\\\",\\\"@placeholder\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setIssuerContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,9],[\\\"common.Create a contact\\\"],null],[30,0,[\\\"createIssuerContact\\\"]],true,[30,1,[\\\"issuer\\\"]],[30,1,[\\\"issuer\\\"]],\\\"issuerContact\\\",[28,[37,29],[\\\"name\\\"],null],[30,0,[\\\"billForm\\\"]],[28,[37,16],[[28,[37,14],[[30,0,[\\\"canEditBill\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billForm\\\",\\\"issuerContact\\\"]],[[[1,\\\"          \\\"],[8,[39,24],[[24,0,\\\"link ps-1\\\"],[24,\\\"target\\\",\\\"_blank\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.contacts.contact\\\",[30,0,[\\\"billForm\\\",\\\"issuerContact\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            View contact\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"col mx-3 mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canEditBill\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@model\\\",\\\"@options\\\",\\\"@selectNoBlankOption\\\",\\\"@forceValidationVisible\\\"],[\\\"mb-0\\\",\\\"select\\\",[28,[37,9],[\\\"common.Allocation type\\\"],null],\\\"allocationType\\\",true,[30,0,[\\\"billForm\\\"]],[28,[37,29],[[28,[37,31],null,[[\\\"value\\\",\\\"label\\\"],[\\\"MATERIALS\\\",[28,[37,9],[\\\"common.Materials\\\"],null]]]],[28,[37,31],null,[[\\\"value\\\",\\\"label\\\"],[\\\"SUBCONTRACTORS\\\",[28,[37,9],[\\\"common.Subcontractors\\\"],null]]]],[28,[37,31],null,[[\\\"value\\\",\\\"label\\\"],[\\\"LABOUR\\\",[28,[37,9],[\\\"common.Labour\\\"],null]]]]],null],true,true]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasDifferentAllocationType\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0 text-primary\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canEditBill\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"setDefaultAllocationType\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"components.bill-editor.Set as default allocation type\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canEditBill\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"col mb-3\\\",\\\"text\\\",[28,[37,9],[\\\"common.Number\\\"],null],\\\"billNumber\\\",[30,0,[\\\"billForm\\\"]],true,true]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canEditBill\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"col mb-1\\\",\\\"date\\\",[28,[37,9],[\\\"common.Issue date\\\"],null],\\\"issueDate\\\",[30,0,[\\\"billForm\\\"]],true,true]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canEditBill\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"col mb-1 mx-3\\\",\\\"date\\\",[28,[37,9],[\\\"common.Due date\\\"],null],\\\"dueDate\\\",[30,0,[\\\"billForm\\\"]],[28,[37,14],[[28,[37,7],[[30,0,[\\\"billForm\\\",\\\"billType\\\"]],\\\"CREDIT_NOTE\\\"],null]],null],true]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"col position-relative\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,32],[[24,0,\\\"col mb-0\\\"]],[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@inputContainerClass\\\",\\\"@hasNextPage\\\",\\\"@onLoadMore\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[28,[37,16],[[30,0,[\\\"onSearchPurchaseOrders\\\",\\\"isRunning\\\"]],[30,0,[\\\"loadMorePurchaseOrders\\\",\\\"isRunning\\\"]]],null],[30,0,[\\\"purchaseOrders\\\"]],[28,[37,9],[\\\"shared.purchase-order.No purchase orders\\\"],null],[30,0,[\\\"setPurchaseOrder\\\"]],[30,0,[\\\"onSearchPurchaseOrders\\\"]],[30,0,[\\\"debounceTime\\\"]],[28,[37,9],[\\\"common.Purchase order\\\"],null],\\\"reference\\\",[28,[37,29],[\\\"purchaseOrderNumber\\\"],null],[30,0,[\\\"billForm\\\"]],\\\"mb-1\\\",[30,0,[\\\"hasNextPurchaseOrderPage\\\"]],[30,0,[\\\"loadMorePurchaseOrders\\\"]],[28,[37,16],[[28,[37,14],[[30,0,[\\\"canEditBill\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billForm\\\",\\\"purchaseOrder\\\",\\\"id\\\"]],[[[1,\\\"          \\\"],[8,[39,24],[[24,0,\\\"link ps-1 position-absolute mt-1\\\"],[24,5,\\\"bottom: -3px;\\\"],[24,\\\"target\\\",\\\"_blank\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order\\\",[30,0,[\\\"billForm\\\",\\\"purchaseOrder\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            View purchase order\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,5,\\\"max-height:60px;\\\"]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"col-8 mb-3\\\",\\\"textarea\\\",[28,[37,9],[\\\"common.Notes\\\"],null],\\\"notes\\\",[30,0,[\\\"billForm\\\"]],true]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canEditBill\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"pb-2 d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,0,[\\\"allBillItemsSelected\\\"]],[30,0,[\\\"someBillItemsSelected\\\"]]],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"deleteSelectedBillItemForms\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"ms-auto btn btn-success text-white\\\"],[16,\\\"title\\\",[28,[37,22],[\\\"cmd+i\\\",[28,[37,9],[\\\"common.Add new item\\\"],null]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"addNewBillItem\\\"]]],null],[4,[38,23],[\\\"cmd+i\\\",[30,0,[\\\"addNewBillItem\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Add new item\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm align-middle w-100\\\"],[14,1,\\\"bill-items-table\\\"],[14,5,\\\"table-layout: fixed;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"select\\\"]],[[[1,\\\"            \\\"],[11,\\\"th\\\"],[16,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"select\\\"]]],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-center px-1\\\"],[24,5,\\\"width: 32px;\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"toggleSelectAll\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[1,\\\"              \\\"],[10,\\\"input\\\"],[14,0,\\\"pe-none\\\"],[15,\\\"checked\\\",[30,0,[\\\"allBillItemsSelected\\\"]]],[15,\\\"disabled\\\",[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],[15,\\\"indeterminate\\\",[30,0,[\\\"someBillItemsSelected\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"code\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Code\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"description\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Description\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"allocation\\\"]],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"allocation\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,9],[\\\"common.Allocation\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"columnSpans\\\",\\\"purchaseOrderItem\\\"]],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"purchaseOrderItem\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,9],[\\\"components.bill-editor.PO item\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"columnSpans\\\",\\\"glAccount\\\"]],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"glAccount\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,9],[\\\"common.GL account\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"quantity\\\"]]],[14,0,\\\"text-end text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Qty\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"unitPrice\\\"]]],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Unit price\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"total\\\"]]],[14,0,\\\"text-end text-nowrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,9],[\\\"common.Total\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"icon\\\"]],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"icon\\\"]]],[12],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"filteredBillItemForms\\\",\\\"length\\\"]],[[[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"filteredBillItemForms\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"select\\\"]],[[[1,\\\"                \\\"],[11,\\\"td\\\"],[16,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"select\\\"]]],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-center px-1\\\"],[24,5,\\\"width: 32px;\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[30,0,[\\\"toggleSelected\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[10,\\\"input\\\"],[14,0,\\\"pe-none\\\"],[15,\\\"disabled\\\",[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],[15,\\\"checked\\\",[28,[37,41],[[30,0,[\\\"selectedBillItemForms\\\"]],[30,3]],null]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"code\\\"]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,30],[[24,5,\\\"width: 65px\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canEditBill\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\"],[\\\"m-0\\\",\\\"text\\\",\\\"productCode\\\",[30,3],true,[28,[30,0,[\\\"validateBothDescriptionAndProductCode\\\"]],[[30,3]],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"description\\\"]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canEditBill\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\"],[\\\"m-0\\\",\\\"text\\\",\\\"description\\\",[30,3],true,[28,[30,0,[\\\"validateBothDescriptionAndProductCode\\\"]],[[30,3]],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"allocation\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"allocation\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[8,[39,42],null,[[\\\"@allocations\\\"],[[30,3,[\\\"allocations\\\"]]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"columnSpans\\\",\\\"purchaseOrderItem\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"purchaseOrderItem\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"d-flex align-items-center w-100\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"flex-grow-1 me-1\\\"],[14,5,\\\"min-width: 0;\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,28],[[24,0,\\\"w-100\\\"]],[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[28,[37,40],[[30,0,[\\\"setBillItemPurchaseOrderItem\\\"]],[30,3]],null],[30,0,[\\\"loadPurchaseOrderItems\\\"]],[28,[37,9],[\\\"components.bill-editor.No purchase order items\\\"],null],\\\"purchaseOrderItem\\\",[28,[37,29],[\\\"sku\\\",\\\"description\\\"],null],[30,3],[28,[37,16],[[28,[37,14],[[30,0,[\\\"canEditBill\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null],true]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"purchaseOrderMatchingStatus\\\"]],[[[1,\\\"                      \\\"],[8,[39,43],[[16,0,[29,[[30,3,[\\\"purchaseOrderMatchingStatus\\\",\\\"class\\\"]],\\\" ms-1\\\"]]]],[[\\\"@text\\\",\\\"@iconName\\\"],[[30,3,[\\\"purchaseOrderMatchingStatus\\\",\\\"title\\\"]],\\\"exclamation-circle\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"columnSpans\\\",\\\"glAccount\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"glAccount\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"fs-6\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,3,[\\\"glAccountLabel\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"quantity\\\"]]],[14,0,\\\"text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,30],[[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canEditBill\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,5,\\\"width: 50px\\\"]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"number\\\",\\\"quantity\\\",[30,3],true]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"unitPrice\\\"]]],[14,0,\\\"text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,30],[[24,5,\\\"width: 60px\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canEditBill\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"currency\\\",\\\"unitPrice\\\",[30,3],true]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"total\\\"]]],[14,0,\\\"text-end text-nowrap\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,44],[[28,[37,45],[[28,[37,16],[[30,3,[\\\"quantity\\\"]],0],null],\\\"*\\\",[28,[37,16],[[30,3,[\\\"unitPrice\\\"]],0],null]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnSpans\\\",\\\"icon\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"icon\\\"]]],[14,0,\\\"text-center px-1\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,46],null,[[\\\"@item\\\"],[[30,3]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null]],[]],[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnSpans\\\",\\\"totalSpan\\\"]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,9],[\\\"components.bill-editor.No bill items\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex flex-column border-top p-3 position-sticky bg-white\\\"],[14,5,\\\"bottom: 0; z-index: 5;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"m-0 ms-auto mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,9],[\\\"common.Total\\\"],null]],[1,\\\"\\\\n      \\\"],[1,[28,[35,44],[[30,0,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-between\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"isNew\\\"]]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline ps-0\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canEditBill\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[28,[37,47],[[30,0,[\\\"showBillDeleteConfirmModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"save\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"common.Deleting\\\"],null]],[1,\\\"\\\\n            …\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[28,[37,16],[[28,[37,14],[[30,0,[\\\"canManageBills\\\"]]],null],[30,0,[\\\"save\\\",\\\"isRunning\\\"]],[28,[37,14],[[30,0,[\\\"hasUnsavedChanges\\\"]]],null]],null]],[16,\\\"title\\\",[28,[37,22],[\\\"cmd+s\\\",\\\"Save\\\"],null]],[24,4,\\\"button\\\"],[4,[38,23],[\\\"cmd+s\\\",[30,0,[\\\"triggerSave\\\"]]],null],[4,[38,10],[\\\"click\\\",[30,0,[\\\"triggerSave\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"save\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\" \\\"],[1,[28,[35,9],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,9],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,1,[\\\"isNew\\\"]]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"d-flex align-items-center p-3 border mx-3 mt-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[28,[37,47],[[30,0,[\\\"showBillHistory\\\"]]],null],[28,[37,14],[[30,0,[\\\"showBillHistory\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"components.bill-editor.Bill history\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showBillHistory\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBillHistory\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,49],null,[[\\\"@resourceId\\\"],[[30,1,[\\\"id\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"]],[]]],[8,[39,50],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"showBillDeleteConfirmModal\\\"]],[28,[37,9],[\\\"common.Delete bill\\\"],null],[28,[37,9],[\\\"components.bill-editor.Do you want to delete this bill\\\"],null],[28,[37,9],[\\\"common.Delete bill\\\"],null],[28,[37,9],[\\\"common.Deleting\\\"],null],[28,[37,2],[[30,0,[\\\"deleteBill\\\"]]],null],[28,[37,40],[[28,[37,47],[[30,0,[\\\"showBillDeleteConfirmModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,2],[12],[1,[28,[35,9],[\\\"shared.estimate.This action cannot be undone\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"billTypeChangeConfirmation\\\"]],[[[1,\\\"  \\\"],[8,[39,52],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,40],[[30,0,[\\\"handleBillTypeChange\\\"]],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"components.bill-editor.Change bill type\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"components.bill-editor.yourUpdatedSubtotalIsSignExistingBillTypePluralShouldBeExistingSignDoYouWantToChangeThisDocumentToABillType\\\"],[[\\\"sign\\\",\\\"existingBillTypePlural\\\",\\\"existingSign\\\",\\\"billType\\\"],[[30,0,[\\\"billTypeChangeConfirmation\\\",\\\"sign\\\"]],[30,0,[\\\"billTypeChangeConfirmation\\\",\\\"existingBillTypePural\\\"]],[30,0,[\\\"billTypeChangeConfirmation\\\",\\\"existingSign\\\"]],[30,0,[\\\"billTypeChangeConfirmation\\\",\\\"billType\\\"]]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[30,0,[\\\"handleBillTypeChange\\\"]],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[30,0,[\\\"handleBillTypeChange\\\"]],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"common.Confirm\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billTypeResponseHandlerVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,54],null,[[\\\"@responses\\\",\\\"@onCancel\\\"],[[30,0,[\\\"billResponses\\\"]],[30,0,[\\\"onBillTypeResponseHandlerCancel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocating\\\"]],[[[1,\\\"  \\\"],[8,[39,55],null,[[\\\"@bills\\\",\\\"@onClose\\\",\\\"@billStatus\\\"],[[28,[37,29],[[30,1]],null],[30,0,[\\\"onBillItemAllocatorClose\\\"]],[30,4]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"attachmentsVisible\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"bill-attachment-overlay-pane p-3 d-flex flex-column\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,21],[[4,[38,10],[\\\"click\\\",[28,[37,40],[[28,[37,47],[[30,0,[\\\"attachmentsVisible\\\"]]],null],false],null]],null]],[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,2],[14,0,\\\"m-0 fw-bold fs-6 ms-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,56],[[30,0,[\\\"activeAttachment\\\",\\\"filename\\\"]],30],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"activeAttachment\\\"]],[[[1,\\\"        \\\"],[10,3],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[15,6,[30,0,[\\\"activeAttachment\\\",\\\"href\\\"]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"activeAttachment\\\"]],[[[1,\\\"      \\\"],[8,[39,57],null,[[\\\"@attachment\\\"],[[30,0,[\\\"activeAttachment\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,58],[[30,0,[\\\"allAttachments\\\",\\\"length\\\"]],1],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex pt-2 align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,21],[[4,[38,10],[\\\"click\\\",[30,0,[\\\"previousAttachment\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"sm\\\",\\\"arrow-left\\\"]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,45],[[30,0,[\\\"attachmentIndex\\\"]],\\\"+\\\",1],null]],[1,\\\"\\\\n          /\\\\n          \\\"],[1,[30,0,[\\\"allAttachments\\\",\\\"length\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,21],[[4,[38,10],[\\\"click\\\",[30,0,[\\\"nextAttachment\\\"]]],null]],[[\\\"@size\\\",\\\"@icon\\\"],[\\\"sm\\\",\\\"arrow-right\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"setContactAliasModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,52],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\"],[[28,[37,40],[[28,[37,47],[[30,0,[\\\"setContactAliasModalVisible\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true,\\\"modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"components.bill-editor.doYouAlsoWantToAddAliasAsAnAliasOfYourContact\\\"],[[\\\"alias\\\",\\\"contact\\\"],[[30,1,[\\\"issuer\\\"]],[30,0,[\\\"billForm\\\",\\\"issuerContact\\\",\\\"name\\\"]]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveContactAlias\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,40],[[28,[37,47],[[30,0,[\\\"setContactAliasModalVisible\\\"]]],null],false],null]],null],[12],[1,[28,[35,9],[\\\"common.No\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveContactAlias\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"saveContactAlias\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveContactAlias\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,9],[\\\"common.Saving\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"components.bill-editor.Add alias\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@bill\\\",\\\"action\\\",\\\"item\\\",\\\"@billStatus\\\"],false,[\\\"div\\\",\\\"did-update\\\",\\\"perform\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"h2\\\",\\\"span\\\",\\\"eq\\\",\\\"button\\\",\\\"t\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"a\\\",\\\"attachments-popover\\\",\\\"not\\\",\\\"and\\\",\\\"or\\\",\\\"dropdown-button\\\",\\\"each\\\",\\\"-track-array\\\",\\\"unless\\\",\\\"icon-button\\\",\\\"format-shortcut\\\",\\\"on-key\\\",\\\"link-to\\\",\\\"form\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"ptl-input\\\",\\\"hash\\\",\\\"new-combo-box\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"input\\\",\\\"tbody\\\",\\\"td\\\",\\\"fn\\\",\\\"includes\\\",\\\"allocation-hierarchy\\\",\\\"info-popup\\\",\\\"number-format\\\",\\\"math\\\",\\\"bill-item-summary\\\",\\\"mut\\\",\\\"h4\\\",\\\"resource-history\\\",\\\"confirm-delete\\\",\\\"p\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"bill-type-response-handler\\\",\\\"bill-item-allocator\\\",\\\"ellipsis-characters\\\",\\\"attachment-preview\\\",\\\"gt\\\",\\\"footer\\\"]]\",\n    \"moduleName\": \"portal/components/bill-editor.hbs\",\n    \"isStrictMode\": false\n  });\n  const deleteKey = '_deleteMe';\n  let BillEditorComponent = _exports.default = (_class = class BillEditorComponent extends _component2.default {\n    get condensedMode() {\n      return !this.media.isDesktop;\n    }\n    get columnSpans() {\n      const hasPurchaseOrder = Boolean(this.billForm?.get('purchaseOrder'));\n      const spans = {\n        select: this.canEditBill ? 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 canApproveBills() {\n      return this.newFeatureFlags.includesFeatureFlags('canApproveBills');\n    }\n    get isBillUnapproved() {\n      return _bill.UNAPPROVED_STATUSES.includes(this.args.bill.status);\n    }\n    get canEditBill() {\n      return this.canManageBills && (this.canApproveBills || this.isBillUnapproved);\n    }\n    get loadedBillItems() {\n      return this.args.bill.safeHasManyToValue('items')?.toArray() || [];\n    }\n    get hasNextPurchaseOrderPage() {\n      const current = this.purchaseOrdersPage?.currentPage ?? 1;\n      const total = this.purchaseOrdersPage?.totalPages ?? 1;\n      return current < total;\n    }\n    get isActionsRunning() {\n      return this.billActions.secondaryActions.some(action => action.action.isRunning) || this.billActions.primaryAction?.action.isRunning;\n    }\n    get activeAttachment() {\n      return this.allAttachments[this.attachmentIndex];\n    }\n    get allAttachments() {\n      return this.args.bill.myAttachments || [];\n    }\n    sortBillItems(billItems) {\n      return billItems.sort((a, b) => {\n        const sortIndexDiff = (a.get('sortIndex') || 0) - (b.get('sortIndex') || 0);\n        if (sortIndexDiff !== 0) return sortIndexDiff;\n        return new Date(a.get('dateCreated')).getTime() - new Date(b.get('dateCreated')).getTime();\n      });\n    }\n    get filteredBillItemForms() {\n      return this.billItemForms.filter(form => !form.get(deleteKey));\n    }\n    get allBillItemsSelected() {\n      if (this.billItemForms.length === 0) return false;\n      return this.billItemForms.length === this.selectedBillItemForms.length;\n    }\n    get someBillItemsSelected() {\n      if (this.allBillItemsSelected) return false;\n      return this.selectedBillItemForms.length > 0;\n    }\n    get totalPrice() {\n      return this.filteredBillItemForms.reduce((total, bif) => total += (bif.get('quantity') || 0) * (bif.get('unitPrice') || 0), 0);\n    }\n    get hasUnsavedChanges() {\n      return this.billForm.isDirty || this.billItemForms.some(form => form.isDirty || form.get(deleteKey) || form.get('data.isNew'));\n    }\n    get isBillFormValid() {\n      return this.billForm?.isValid && this.isTotalPriceValid && this.billItemForms.every(form => {\n        if (form.get(deleteKey)) return true;\n        return form.isValid;\n      });\n    }\n    get isBillFormPristine() {\n      return this.billForm?.isPristine && this.billItemForms.every(form => {\n        if (form.get(deleteKey)) return true;\n        return form.isPristine;\n      });\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"session\", _descriptor5, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _initializerDefineProperty(this, \"billsData\", _descriptor8, this);\n      _initializerDefineProperty(this, \"invoicedCosts\", _descriptor9, this);\n      _initializerDefineProperty(this, \"media\", _descriptor0, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor1, this);\n      _initializerDefineProperty(this, \"billForm\", _descriptor10, this);\n      _initializerDefineProperty(this, \"billItemForms\", _descriptor11, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor12, this);\n      _initializerDefineProperty(this, \"attachmentIndex\", _descriptor13, this);\n      _initializerDefineProperty(this, \"attachmentsVisible\", _descriptor14, this);\n      _initializerDefineProperty(this, \"allocating\", _descriptor15, this);\n      _defineProperty(this, \"contacts\", []);\n      _defineProperty(this, \"contactsPage\", undefined);\n      _defineProperty(this, \"contactsSearchTerm\", undefined);\n      _initializerDefineProperty(this, \"purchaseOrders\", _descriptor16, this);\n      _initializerDefineProperty(this, \"purchaseOrdersPage\", _descriptor17, this);\n      _defineProperty(this, \"purchaseOrderSearchTerm\", undefined);\n      _initializerDefineProperty(this, \"purchaseOrderItems\", _descriptor18, this);\n      _initializerDefineProperty(this, \"purchaseOrderItemsPage\", _descriptor19, this);\n      _defineProperty(this, \"purchaseOrderItemSearchTerm\", undefined);\n      _initializerDefineProperty(this, \"showBillDeleteConfirmModal\", _descriptor20, this);\n      _initializerDefineProperty(this, \"billTypeChangeConfirmation\", _descriptor21, this);\n      _initializerDefineProperty(this, \"billResponses\", _descriptor22, this);\n      _initializerDefineProperty(this, \"billTypeResponseHandlerVisible\", _descriptor23, this);\n      _initializerDefineProperty(this, \"setContactAliasModalVisible\", _descriptor24, this);\n      _initializerDefineProperty(this, \"selectedBillItemForms\", _descriptor25, this);\n      _defineProperty(this, \"isHandlingTransition\", false);\n      _defineProperty(this, \"resetChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.isHandlingTransition) return;\n          this.selectedBillItemForms = [];\n          const billValidations = (0, _bill.default)(this.intl);\n          this.billForm = new _emberChangeset.Changeset(this.args.bill, (0, _emberChangesetValidations.default)(billValidations), billValidations);\n          const sortedItems = this.sortBillItems(this.loadedBillItems);\n          const billItemValidations = (0, _billItem.default)(this.intl);\n          this.billItemForms = sortedItems.map(item => new _emberChangeset.Changeset(item, (0, _emberChangesetValidations.default)(billItemValidations), billItemValidations));\n\n          // pending (unsaved) attachments belong to the previous bill - drop them\n          this.attachments = [];\n          const hasAttachments = this.allAttachments.length > 0;\n          this.attachmentsVisible = hasAttachments && !this.condensedMode;\n          this.attachmentIndex = 0;\n          if (!this.args.bill.isNew) {\n            (0, _runloop.next)(this, async () => {\n              await this.validateBillForm();\n            });\n          }\n\n          // hold the loading state so swapping to the next bill is noticeable\n          yield (0, _emberConcurrency.timeout)(300);\n        }\n      }), {\n        restartable: true\n      }, \"resetChangeset\", null));\n      _defineProperty(this, \"loadContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            let effectiveSearchTerm;\n            if (searchTerm === undefined) {\n              if (this.billForm.get('issuerContact')) {\n                effectiveSearchTerm = '';\n              } else {\n                effectiveSearchTerm = this.billForm.get('issuer');\n              }\n            } else {\n              effectiveSearchTerm = searchTerm.trim();\n            }\n            if (effectiveSearchTerm !== this.contactsSearchTerm) {\n              this.contactsPage = undefined;\n              this.contacts = [];\n              this.contactsSearchTerm = effectiveSearchTerm;\n            }\n            const contactFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (effectiveSearchTerm?.length) {\n              contactFilter.and.push((0, _searchFilter.default)(['name'], effectiveSearchTerm));\n            }\n            const nextPageNumber = (this.contactsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('contact', {\n              filter: contactFilter,\n              sort: 'name',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.contactsPage = nextPage.meta;\n            this.contacts = [...this.contacts, ...nextPage.toArray()];\n            return this.contacts;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.somethingWentWrongLoadingMoreContacts'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadContacts\", null));\n      _defineProperty(this, \"onSearchPurchaseOrders\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          this.clearPurchaseOrderIfReferenceChanged(searchTerm);\n          this.billForm.set('reference', searchTerm);\n          yield this.loadPurchaseOrders(searchTerm);\n        }\n      }), {\n        restartable: true\n      }, \"onSearchPurchaseOrders\", null));\n      _defineProperty(this, \"loadMorePurchaseOrders\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.loadPurchaseOrders(this.purchaseOrderSearchTerm);\n        }\n      }), null, \"loadMorePurchaseOrders\", null));\n      _defineProperty(this, \"loadPurchaseOrderItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            const purchaseOrder = this.billForm.get('purchaseOrder');\n            if (!purchaseOrder) {\n              this.resetPurchaseOrderItems();\n              return [];\n            }\n            const effectiveSearchTerm = searchTerm?.trim?.();\n            if (effectiveSearchTerm !== this.purchaseOrderItemSearchTerm) {\n              this.resetPurchaseOrderItems();\n            }\n            if (this.purchaseOrderItemsPage?.currentPage >= this.purchaseOrderItemsPage?.totalPages) {\n              return this.purchaseOrderItems;\n            }\n            const purchaseOrderItemFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'purchaseOrder',\n                op: 'EQ',\n                value: purchaseOrder.id\n              }]\n            };\n            if (effectiveSearchTerm?.length) {\n              purchaseOrderItemFilter.and.push((0, _searchFilter.default)(['sku', 'description'], effectiveSearchTerm));\n            }\n            const nextPageNumber = (this.purchaseOrderItemsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('purchase-order-item', {\n              filter: purchaseOrderItemFilter,\n              sort: 'sortIndex',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.purchaseOrderItemsPage = nextPage.meta;\n            this.purchaseOrderItems = [...this.purchaseOrderItems, ...nextPage.toArray()];\n            return this.purchaseOrderItems;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.somethingWentWrongLoadingPurchaseOrderItems'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadPurchaseOrderItems\", null));\n      _defineProperty(this, \"saveContactAlias\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const contact = this.billForm.get('issuerContact');\n            if (!contact || !this.args.bill.issuer) return;\n            contact.aliases.push(this.args.bill.issuer);\n            // save the contact to persist the alias\n            yield contact.save();\n            this.setContactAliasModalVisible = false;\n            this.notifications.success({\n              message: this.intl.t('components.bill-editor.Contact alias saved successfully')\n            });\n            yield this.billsData.reloadBills.perform();\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('components.bill-editor.somethingWentWrongWhileSavingTheContactAlias')\n            });\n          }\n        }\n      }), null, \"saveContactAlias\", null));\n      _defineProperty(this, \"save\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (syncToAccountingPackage = false) {\n          try {\n            const wasNew = this.args.bill.isNew;\n            const originalIssuerContactId = this.args.bill.belongsTo('issuerContact').id() || null;\n            if (!wasNew) {\n              yield this.confirmBillTypeMatchesTotal();\n            }\n            if (!(yield this.validateBillForm({\n              showWarning: true\n            }))) return false;\n            const selectedIssuerContactId = this.billForm.get('issuerContact')?.id || null;\n            const issuerContactAdded = !wasNew && !originalIssuerContactId && selectedIssuerContactId;\n            const issuerContact = this.billForm.get('issuerContact');\n            const purchaseOrder = this.billForm.get('purchaseOrder');\n            this.billForm.rollbackProperty('issuerContact');\n            this.billForm.rollbackProperty('purchaseOrder');\n            this.args.bill.issuerContact = issuerContact?.content || issuerContact || null;\n            this.args.bill.purchaseOrder = purchaseOrder?.content || purchaseOrder || null;\n            yield this.billForm.save();\n            if (wasNew) {\n              yield Promise.all(this.attachments.filter(attachment => attachment.isNew).map(attachment => attachment.save()));\n            }\n            let sortIndex = 0;\n            const itemPromises = this.billItemForms.map(form => {\n              if (form.get(deleteKey)) {\n                return form.get('data').destroyRecord();\n              } else {\n                const billItem = form.get('data');\n                const purchaseOrderItem = form.get('purchaseOrderItem');\n                form.rollbackProperty('purchaseOrderItem');\n                billItem.purchaseOrderItem = purchaseOrderItem?.content || purchaseOrderItem || null;\n                form.set('sortIndex', sortIndex++);\n                return form.save();\n              }\n            });\n            yield Promise.all(itemPromises);\n            const formsToDelete = this.billItemForms.filter(f => f.get(deleteKey));\n            this.billItemForms.removeObjects(formsToDelete);\n            this.notifications.success(this.intl.t('components.bill-editor.Bill successfully saved'));\n            if (wasNew) {\n              this.billsData.addBill(this.args.bill);\n              this.router.transitionTo('entity.builda-price.operations.incoming.bills.bill', this.args.bill.id);\n            } else if (issuerContactAdded) {\n              yield this.billsData.reloadBills.perform();\n            }\n            if (syncToAccountingPackage) {\n              const response = yield this.accountingPlatform.sendBill.perform(this.args.bill);\n              this.handleAccountingPackageResponse(response);\n            }\n            return true;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.There was an error while saving the bill'),\n              error\n            });\n            return false;\n          }\n        }\n      }), null, \"save\", \"drop\"));\n      _defineProperty(this, \"syncToAccountingPackage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!(yield this.validateBillForm())) return;\n          const response = yield this.accountingPlatform.sendBill.perform(this.args.bill);\n          this.handleAccountingPackageResponse(response);\n        }\n      }), null, \"syncToAccountingPackage\", null));\n      _defineProperty(this, \"allocate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!(yield this.validateBillForm())) return;\n          this.allocating = true;\n        }\n      }), null, \"allocate\", null));\n      _defineProperty(this, \"changeStatusWithoutValidations\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (targetStatus) {\n          try {\n            this.args.bill.set('status', targetStatus);\n            yield this.args.bill.save();\n            this.notifications.success(this.intl.t('components.bill-editor.Bill successfully saved'));\n            this.removeBillAndNavigateToNext(this.args.bill);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.Something went wrong changing status'),\n              error\n            });\n          }\n        }\n      }), null, \"changeStatusWithoutValidations\", null));\n      _defineProperty(this, \"changeStatus\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (targetStatus, syncToAccountingPackage = false) {\n          try {\n            if (!(yield this.validateBillForm())) return;\n            this.billForm.set('status', targetStatus);\n            const saved = yield this.save.perform(syncToAccountingPackage);\n            if (!saved) return;\n            this.removeBillAndNavigateToNext(this.args.bill);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.Something went wrong changing status'),\n              error\n            });\n          }\n        }\n      }), null, \"changeStatus\", null));\n      _defineProperty(this, \"deleteBill\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const bill = this.args.bill;\n            yield this.invoicedCosts.requestDelete.perform({\n              isInvoiced: bill.isInvoiced,\n              title: this.intl.t('services.invoiced-costs.Delete linked bill'),\n              message: this.intl.t('services.invoiced-costs.billMessage'),\n              deleteCb: async () => {\n                const nextBill = document.querySelector('[active-bill=\"\"]')?.nextElementSibling;\n                try {\n                  // Instead of directly deleting just mark it as delete, remove from service data and then delete bill\n                  await bill.deleteRecord();\n                  await this.billsData.removeBill(bill);\n                  await bill.save();\n                  if (nextBill) {\n                    nextBill.click();\n                  } else {\n                    this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n                  }\n                  this.notifications.success(this.intl.t('components.bill-editor.Successfully deleted bill'));\n                } finally {\n                  this.showBillDeleteConfirmModal = false;\n                }\n              }\n            });\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bill-editor.Something went wrong deleting bill'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteBill\", null));\n      this.router.on('routeWillChange', this.preventInternalNavigation);\n      window.addEventListener('beforeunload', this.preventBrowserClose);\n      this.resetChangeset.perform();\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.router.off('routeWillChange', this.preventInternalNavigation);\n      window.removeEventListener('beforeunload', this.preventBrowserClose);\n    }\n    viewDuplicateBills() {\n      const billNumber = this.args.bill.billNumber?.trim();\n      if (!billNumber) return;\n      const url = this.router.urlFor('entity.builda-price.operations.incoming.bills');\n      const query = new URLSearchParams({\n        search: billNumber,\n        status: ''\n      });\n      window.open(`${url}?${query}`, '_blank');\n    }\n    triggerClose() {\n      this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n    }\n    triggerSave(event) {\n      event.preventDefault();\n      this.save.perform();\n    }\n    triggerNextBill(event) {\n      event.preventDefault();\n      this.nextBill();\n    }\n    nextBill() {\n      // TODO this is gross but easier than using props\n      const current = document.querySelector('[active-bill=\"\"]');\n      if (current?.nextElementSibling) {\n        current.nextElementSibling.click();\n        return true;\n      }\n      return false;\n    }\n    triggerPreviousBill(event) {\n      event.preventDefault();\n      this.previousBill();\n    }\n    previousBill() {\n      // TODO this is gross but easier than using props\n      const current = document.querySelector('[active-bill=\"\"]');\n      if (current?.previousElementSibling) {\n        current.previousElementSibling.click();\n        return true;\n      }\n      return false;\n    }\n    removeBillAndNavigateToNext(bill) {\n      // anytime this is true you need to remove it from the list anyway\n      // no billStatus = ALL\n      const billOutsideFilter = this.args.billStatus && this.args.billStatus !== bill.status;\n\n      // only advance if the bill no longer exists in the list or the bill has moved to accepted\n      const shouldAutoAdvance = billOutsideFilter || bill.status === 'ACCEPTED';\n      if (shouldAutoAdvance) {\n        const hasNextBill = this.nextBill();\n        if (!hasNextBill) {\n          this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n        }\n      }\n      if (billOutsideFilter) {\n        this.billsData.removeBill(bill);\n      }\n    }\n    validateBothDescriptionAndProductCode(changeset) {\n      if (changeset.get('productCode') || changeset.get('description')) {\n        changeset.validate('productCode');\n        changeset.validate('description');\n      }\n    }\n    preventInternalNavigation(transition) {\n      if (this.isHandlingTransition) return;\n      if (this.hasUnsavedChanges) {\n        this.isHandlingTransition = true;\n        const confirmLeave = window.confirm(this.intl.t('components.bill-editor.youHaveUnsavedChangesToThisBillAreYouSureYouWantToLeave'));\n        if (!confirmLeave) {\n          transition.abort();\n        } else {\n          // unload safely all new records\n          this.billItemForms.forEach(form => {\n            const record = form.get('data');\n            if (record.isNew) {\n              record.unloadRecord();\n            } else {\n              record.rollbackAttributes();\n            }\n          });\n        }\n        (0, _runloop.next)(() => {\n          this.isHandlingTransition = false;\n        });\n      }\n    }\n    preventBrowserClose(event) {\n      if (this.hasUnsavedChanges) {\n        event.preventDefault();\n        event.returnValue = '';\n      }\n    }\n    nextAttachment() {\n      const attachmentCount = this.allAttachments.length;\n      if (!attachmentCount) return;\n      this.attachmentIndex = (this.attachmentIndex + 1) % attachmentCount;\n    }\n    previousAttachment() {\n      const attachmentCount = this.allAttachments.length;\n      if (!attachmentCount) return;\n      this.attachmentIndex = (this.attachmentIndex - 1 + attachmentCount) % attachmentCount;\n    }\n    viewAttachment(attachment) {\n      const attachmentIndex = this.allAttachments.findIndex(item => attachment.id && item.id === attachment.id || item.href === attachment.href);\n      if (attachmentIndex >= 0) {\n        this.attachmentIndex = attachmentIndex;\n      }\n      this.attachmentsVisible = true;\n    }\n    async attachmentsUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const newAttachments = attachments.map(attachment => {\n          return this.store.createRecord('bill-attachment', {\n            bill: this.args.bill,\n            entity: this.sessionData.entity,\n            data: attachment.data,\n            filename: attachment.filename,\n            fileType: attachment.fileType,\n            extension: attachment.extension,\n            size: attachment.fileSize\n          });\n        });\n        if (!this.args.bill.isNew) {\n          await Promise.all(newAttachments.map(attachment => attachment.save()));\n        }\n        this.attachments = [...this.attachments, ...newAttachments];\n        if (newAttachments.length) {\n          this.attachmentIndex = this.allAttachments.length - 1;\n        }\n        this.attachmentsVisible = this.allAttachments.length > 0;\n        validationErrors.forEach(error => this.notifications.error(error));\n      } catch (uploadError) {\n        this.notifications.error({\n          message: this.intl.t('components.bill-editor.somethingWentWrongWhileSavingAttachments'),\n          error: uploadError\n        });\n      }\n    }\n    async deleteAttachment(attachment) {\n      try {\n        const linkAttachmentsToBill = this.args.bill.hasMany('attachments').value();\n        const linkRecord = linkAttachmentsToBill?.find(item => attachment.id && item.id === attachment.id || item.attachmentInfo.href === attachment.href);\n        if (linkRecord?.isNew) {\n          linkRecord.unloadRecord();\n        } else {\n          await linkRecord?.destroyRecord();\n        }\n        this.attachments = this.attachments.filter(item => item.attachmentInfo.href !== attachment.href);\n        const attachmentsCount = this.allAttachments.length;\n        if (attachmentsCount === 0) {\n          this.attachmentsVisible = false;\n          this.attachmentIndex = 0;\n        } else if (this.attachmentIndex >= attachmentsCount) {\n          this.attachmentIndex = attachmentsCount - 1;\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('components.bill-editor.somethingWentWrongWhileDeletingTheAttachment'),\n          error: error\n        });\n      }\n    }\n    addNewBillItem() {\n      const billItemValidations = (0, _billItem.default)(this.intl);\n      this.billItemForms = [...this.billItemForms, new _emberChangeset.Changeset(this.store.createRecord('bill-item', {\n        bill: this.args.bill,\n        entity: this.sessionData.entity,\n        sortIndex: this.billItemForms.length\n      }), (0, _emberChangesetValidations.default)(billItemValidations), billItemValidations)];\n\n      // added settimeout to make sure last row is rendered and then focus into created row\n      setTimeout(() => {\n        const row = document.querySelector('#bill-items-table tbody tr:last-child');\n        const input = row?.querySelector('input[name=\"productCode\"]');\n        row?.scrollIntoView({\n          behavior: 'smooth',\n          block: 'center'\n        });\n        input?.focus({\n          preventScroll: true\n        });\n      }, 10);\n    }\n    toggleSelectAll() {\n      if (this.allBillItemsSelected) {\n        this.selectedBillItemForms = [];\n      } else {\n        this.selectedBillItemForms = this.billItemForms;\n      }\n    }\n    toggleSelected(item, e) {\n      e.stopPropagation();\n      e.preventDefault();\n      const i = this.selectedBillItemForms.indexOf(item);\n      if (i < 0) {\n        this.selectedBillItemForms = [...this.selectedBillItemForms, item];\n      } else {\n        this.selectedBillItemForms = this.selectedBillItemForms.toSpliced(i, 1);\n      }\n    }\n    deleteSelectedBillItemForms() {\n      for (const form of this.selectedBillItemForms) {\n        form.set(deleteKey, true);\n      }\n      this.billItemForms = [...this.billItemForms];\n      this.selectedBillItemForms = [];\n    }\n    async loadPurchaseOrders(searchTerm) {\n      try {\n        const effectiveSearchTerm = searchTerm?.trim?.();\n        if (effectiveSearchTerm !== this.purchaseOrderSearchTerm) {\n          this.purchaseOrdersPage = undefined;\n          this.purchaseOrders = [];\n          this.purchaseOrderSearchTerm = effectiveSearchTerm;\n        }\n        const purchaseOrderFilter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: this.sessionData.entity.id\n          }]\n        };\n        if (effectiveSearchTerm?.length) {\n          purchaseOrderFilter.and.push((0, _searchFilter.default)(['purchaseOrderNumber'], effectiveSearchTerm));\n        }\n        const nextPageNumber = (this.purchaseOrdersPage?.currentPage || 0) + 1;\n        const nextPage = await this.store.query('purchase-order', {\n          filter: purchaseOrderFilter,\n          sort: 'purchaseOrderNumber',\n          page: {\n            size: 10,\n            number: nextPageNumber\n          }\n        });\n        this.purchaseOrdersPage = nextPage.meta;\n        this.purchaseOrders = [...this.purchaseOrders, ...nextPage.toArray()];\n        return this.purchaseOrders;\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('components.bill-editor.somethingWentWrongLoadingMorePurchaseOrders'),\n          error\n        });\n      }\n    }\n    async setIssuerContact(contact) {\n      const hadContact = !!this.billForm.get('issuerContact');\n      const savedBillHasIssuerString = !!this.args.bill.issuer;\n      const contactNameMatches = contact && savedBillHasIssuerString && this.billForm.get('issuerContact.name') === this.args.bill.issuer;\n      if (savedBillHasIssuerString && !hadContact && !contactNameMatches) {\n        const results = await this.store.query('contact', {\n          filter: {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              or: [{\n                field: 'aliases',\n                op: 'CONTAINS_ILIKE',\n                value: `${(0, _searchTermEscape.searchTermEscape)(this.args.bill.issuer)}`\n              }, {\n                field: 'name',\n                op: 'EQ',\n                value: this.args.bill.issuer\n              }]\n            }]\n          },\n          pageSize: 1\n        });\n        if (!results?.toArray()?.length) {\n          this.setContactAliasModalVisible = true;\n        }\n      }\n      this.billForm.set('issuerContact', contact || null);\n      this.billForm.set('issuer', contact?.name || null);\n      if (contact?.defaultBillAllocationType && this.args.bill.isNew) {\n        this.billForm.set('allocationType', contact.defaultBillAllocationType);\n      }\n    }\n    async setDefaultAllocationType() {\n      const currentAllocationType = this.billForm.get('allocationType');\n      const contact = this.store.peekRecord('contact', this.billForm.get('issuerContact').id);\n      contact.set('defaultBillAllocationType', currentAllocationType);\n      await contact.save();\n    }\n    get hasDifferentAllocationType() {\n      if (!this.billForm.get('issuerContact')) return false;\n      const currentAllocationType = this.billForm.get('allocationType');\n      const originalAllocationType = this.billForm.get('issuerContact').defaultBillAllocationType;\n      return currentAllocationType !== originalAllocationType;\n    }\n    setPurchaseOrder(purchaseOrder) {\n      const existingPurchaseOrder = this.billForm.get('purchaseOrder');\n      this.billForm.set('purchaseOrder', purchaseOrder || null);\n      this.billForm.set('reference', purchaseOrder?.purchaseOrderNumber);\n      this.resetPurchaseOrderItems();\n      if (existingPurchaseOrder?.id !== purchaseOrder?.id) {\n        this.clearBillItemPurchaseOrderItems();\n      }\n    }\n    clearPurchaseOrderIfReferenceChanged(reference) {\n      const purchaseOrder = this.billForm.get('purchaseOrder');\n      if (purchaseOrder?.purchaseOrderNumber && purchaseOrder.purchaseOrderNumber !== reference?.trim?.()) {\n        this.billForm.set('purchaseOrder', null);\n        this.resetPurchaseOrderItems();\n        this.clearBillItemPurchaseOrderItems();\n      }\n    }\n    resetPurchaseOrderItems() {\n      this.purchaseOrderItemsPage = undefined;\n      this.purchaseOrderItems = [];\n      this.purchaseOrderItemSearchTerm = undefined;\n    }\n    clearBillItemPurchaseOrderItems() {\n      this.billItemForms.forEach(item => {\n        item.set('purchaseOrderItem', null);\n      });\n    }\n    setBillItemPurchaseOrderItem(item, purchaseOrderItem) {\n      item.set('purchaseOrderItem', purchaseOrderItem || null);\n    }\n    async createIssuerContact(name) {\n      const contactName = name?.trim?.();\n      if (!contactName) return;\n      try {\n        const contact = await this.store.createRecord('contact', {\n          entity: this.sessionData.entity,\n          name: contactName\n        }).save();\n        this.setIssuerContact(contact);\n        this.contacts = [contact, ...this.contacts];\n        this.notifications.success(this.intl.t('components.bill-editor.Contact created'));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('components.bill-editor.somethingWentWrongCreatingTheContact'),\n          error\n        });\n      }\n    }\n    async validateBillForm({\n      showWarning = false\n    } = {}) {\n      await this.billForm.validate();\n      let itemsInvalid = false;\n      for (const form of this.billItemForms) {\n        if (form.get(deleteKey)) {\n          continue;\n        }\n        await form.validate();\n        if (form.isInvalid) {\n          itemsInvalid = true;\n        }\n      }\n      if (!this.isTotalPriceValid) {\n        if (showWarning) {\n          this.notifications.warning(this.intl.t(this.billForm.get('billType') === 'CREDIT_NOTE' ? 'components.bill-editor.Total price must be less than zero' : 'components.bill-editor.Total price must be greater than zero'));\n        }\n        return false;\n      }\n      if (this.billForm.isInvalid || itemsInvalid || !this.billForm.get('issuerContact')) {\n        if (showWarning) {\n          this.notifications.warning(this.intl.t('components.bill-editor.You must complete the form'));\n        }\n        return false;\n      }\n      return true;\n    }\n    confirmBillTypeMatchesTotal() {\n      const suggestedBillType = this.suggestedBillType;\n      if (!suggestedBillType) return true;\n      return new Promise(resolve => {\n        const currentBillType = this.billForm?.get('billType');\n        this.billTypeChangeConfirmation = {\n          suggestedBillType,\n          billType: suggestedBillType === 'CREDIT_NOTE' ? this.intl.t('shared.bill.Credit note') : this.intl.t('common.Bill'),\n          sign: suggestedBillType === 'CREDIT_NOTE' ? this.intl.t('common.negative') : this.intl.t('common.positive'),\n          existingBillTypePural: currentBillType === 'CREDIT_NOTE' ? this.intl.t('common.Credit notes') : this.intl.t('common.Bills'),\n          existingSign: currentBillType === 'CREDIT_NOTE' ? this.intl.t('common.negative') : this.intl.t('common.positive'),\n          resolve\n        };\n      });\n    }\n    get suggestedBillType() {\n      if (this.args.bill.xeroLinked) return null;\n      const currentBillType = this.billForm?.get('billType');\n      if (currentBillType === 'BILL' && this.totalPrice < 0) {\n        return 'CREDIT_NOTE';\n      }\n      if (currentBillType === 'CREDIT_NOTE' && this.totalPrice > 0) {\n        return 'BILL';\n      }\n      return null;\n    }\n    handleBillTypeChange(confirmed) {\n      const confirmation = this.billTypeChangeConfirmation;\n      if (!confirmation) return;\n      if (confirmed) {\n        this.billForm.set('billType', confirmation.suggestedBillType);\n      }\n      confirmation.resolve(confirmed);\n      this.billTypeChangeConfirmation = null;\n    }\n    get isTotalPriceValid() {\n      return this.billForm?.get('billType') === 'CREDIT_NOTE' ? this.totalPrice < 0 : this.totalPrice > 0;\n    }\n    get billActions() {\n      const actions = {\n        primaryAction: undefined,\n        secondaryActions: []\n      };\n      const status = this.args.bill.status;\n\n      // Only allow \"Mark as Held\" when the bill form is invalid and the bill is not already held.\n      if (!this.isBillFormValid && status !== 'HELD' && !this.args.bill.isNew && (this.canApproveBills || this.isBillUnapproved)) {\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      if (!items.length || this.args.bill.isNew) return actions;\n      const {\n        fullyMapped,\n        xeroLinked,\n        quickbooksLinked\n      } = this.args.bill;\n      const approver = this.canApproveBills;\n      const canSync = Boolean(this.accountingPlatform.activePlatform);\n      // statuses where the bill is still being worked on before acceptance\n      const isOpen = ['DRAFT', 'AWAITING_APPROVAL'].includes(status);\n\n      // Every action the editor offers, in dropdown order, with when it applies.\n      const available = [{\n        id: 'accept',\n        when: approver && isOpen && fullyMapped,\n        name: this.intl.t('components.bill-editor.Mark as accepted'),\n        action: this.changeStatus,\n        targetStatus: 'ACCEPTED'\n      }, {\n        id: 'allocate',\n        when: isOpen || status === 'ACCEPTED',\n        name: this.intl.t('common.Allocate'),\n        action: this.allocate\n      }, {\n        id: 'submit',\n        when: status === 'DRAFT' && fullyMapped,\n        name: this.intl.t('components.bill-editor.Submit for approval'),\n        action: this.changeStatus,\n        targetStatus: 'AWAITING_APPROVAL'\n      }, {\n        id: 'sync',\n        when: canSync && ['ACCEPTED', 'PAID'].includes(status),\n        name: `${this.intl.t('components.bill-editor.Sync to')} ${this.accountingPlatform.label}`,\n        action: this.syncToAccountingPackage\n      }, {\n        id: 'paid',\n        when: approver && (isOpen || status === 'ACCEPTED'),\n        name: this.intl.t('components.bill-editor.Mark as paid'),\n        action: this.changeStatus,\n        targetStatus: 'PAID'\n      }, {\n        id: 'held',\n        when: isOpen,\n        name: this.intl.t('components.bill-editor.Mark as held'),\n        action: this.changeStatus,\n        targetStatus: 'HELD'\n      }, {\n        id: 'revertToApproval',\n        when: approver && status === 'ACCEPTED',\n        name: this.intl.t('components.bill-editor.Revert to awaiting approval'),\n        action: this.changeStatus,\n        targetStatus: 'AWAITING_APPROVAL'\n      }, {\n        id: 'revertToDraft',\n        when: ['AWAITING_APPROVAL', 'HELD'].includes(status) || approver && ['ACCEPTED', 'PAID'].includes(status),\n        name: this.intl.t('components.bill-editor.Revert to draft'),\n        action: this.changeStatusWithoutValidations,\n        targetStatus: 'DRAFT'\n      }].filter(action => action.when);\n\n      // The first of these that is available becomes the primary action.\n      const primaryPreference = {\n        DRAFT: ['accept', 'submit', 'allocate'],\n        AWAITING_APPROVAL: ['accept', 'allocate'],\n        ACCEPTED: xeroLinked || quickbooksLinked ? ['paid', 'sync', 'allocate'] : ['sync', 'paid', 'allocate'],\n        PAID: ['sync', 'revertToDraft'],\n        HELD: ['revertToDraft']\n      }[status] ?? [];\n      const primaryAction = primaryPreference.map(id => available.find(action => action.id === id)).find(Boolean);\n      if (!primaryAction) return actions;\n      return {\n        primaryAction,\n        secondaryActions: available.filter(action => action !== primaryAction)\n      };\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 && ['ACCEPTED', 'AWAITING_APPROVAL'].includes(this.args.bill.status) &&\n      // no billStatus = ALL, so the bill is still in the list\n      this.args.billStatus && this.args.billStatus !== this.args.bill.status) {\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, _descriptor15;\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      if (billCount > 0 && !this.newFeatureFlags.canApproveBills) {\n        const submitCount = this.submittableBills.length;\n        if (submitCount > 0) actions.push({\n          label: `${this.intl.t('components.bill-item-allocator.allocateSubmitForApproval')}${this.args.bills.length > 1 ? ` ${submitCount} ${this.intl.t('common.bills')}` : ''}`,\n          task: this.submitAllocate\n        });\n      } else if (billCount > 0) {\n        // accepting is only on offer once there's a bill with every item allocated\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\n    // fully allocated draft bills that can be escalated for approval\n    get submittableBills() {\n      return this.fullyAllocatedBills.filter(bill => bill.status === 'DRAFT');\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.submitAllocate.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, \"newFeatureFlags\", _descriptor8, this);\n      _initializerDefineProperty(this, \"mapSetFromComputeMap\", _descriptor9, this);\n      _initializerDefineProperty(this, \"items\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedItems\", _descriptor1, this);\n      _initializerDefineProperty(this, \"projectTree\", _descriptor10, this);\n      _initializerDefineProperty(this, \"selectedMap\", _descriptor11, this);\n      _initializerDefineProperty(this, \"stagedChanges\", _descriptor12, this);\n      // TODO search-selector containment block start\n      _initializerDefineProperty(this, \"overriddenGlAccount\", _descriptor13, this);\n      _initializerDefineProperty(this, \"glAccounts\", _descriptor14, this);\n      _initializerDefineProperty(this, \"glAccountsPage\", _descriptor15, 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            // the whole `_meta` is replaced, so ask for everything the bill shows\n            fields: {\n              bills: '_meta.isInvoiced,_meta.hasDuplicate,_meta.allocationPath,_meta.purchaseOrder'\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, \"_submitBillsForApproval\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const bills = [...this.submittableBills];\n          yield Promise.all(bills.map(async b => {\n            b.status = 'AWAITING_APPROVAL';\n            await b.save();\n            if (this.args.billStatus && this.args.billStatus !== b.status) {\n              this.billsData.removeBill(b);\n            }\n          }));\n        }\n      }), null, \"_submitBillsForApproval\", 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, \"submitAllocate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this._saveAllocations.perform();\n          yield this._submitBillsForApproval.perform();\n          this.notifications.success(this.intl.t('components.bill-item-allocator.Saved successfully'));\n          this.args.onClose();\n        }\n      }), null, \"submitAllocate\", 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, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"mapSetFromComputeMap\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"items\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"selectedItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"projectTree\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"selectedMap\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"stagedChanges\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Map();\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"overriddenGlAccount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"glAccounts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"glAccountsPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {\n        number: 0,\n        size: 10,\n        hasNextPage: undefined,\n        searchString: ''\n      };\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onOverrideGlAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onOverrideGlAccount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"computeMap\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"computeMap\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onMapChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onMapChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearSelectedAllocations\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clearSelectedAllocations\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelectAll\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelectAll\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelected\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelected\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillItemAllocatorComponent);\n});","define(\"portal/components/bill-item-summary\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! Aligned right because this sits in the last column of the table }}\n  <InfoPopup\n    @text={{this.summaryText}}\n    @iconName={{this.statusIcon}}\n    @align='right'\n    class={{this.statusClass}}\n    ...attributes\n  />\n  */\n  {\n    \"id\": \"iHYQpaI6\",\n    \"block\": \"[[[8,[39,0],[[16,0,[30,0,[\\\"statusClass\\\"]]],[17,1]],[[\\\"@text\\\",\\\"@iconName\\\",\\\"@align\\\"],[[30,0,[\\\"summaryText\\\"]],[30,0,[\\\"statusIcon\\\"]],\\\"right\\\"]],null]],[\\\"&attrs\\\"],false,[\\\"info-popup\\\"]]\",\n    \"moduleName\": \"portal/components/bill-item-summary.hbs\",\n    \"isStrictMode\": false\n  });\n  const PATH_SEPARATOR = ' › ';\n  const escapeHtml = value => String(value).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');\n  const toLineBreaks = value => escapeHtml(value).replaceAll('\\n', '<br>');\n  let BillItemSummaryComponent = _exports.default = (_class = class BillItemSummaryComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    // the underlying bill-item. everything shown here comes from server meta\n    // rather than the form, so it is read from the record\n    get record() {\n      return this.args.item?.get('data');\n    }\n    get allocationPaths() {\n      return (this.record?.allocations ?? []).filter(path => path?.length);\n    }\n\n    // mirrors the per item test used by bill.fullymapped\n    get isAllocated() {\n      const record = this.record;\n      return Boolean(record?.isMapped || record?.belongsTo('project').id() || record?.belongsTo('task').id() || this.allocationPaths.length);\n    }\n    get allocation() {\n      if (!this.allocationPaths.length) return null;\n      return this.allocationPaths.map(path => path.join(PATH_SEPARATOR)).join('\\n');\n    }\n    get glAccount() {\n      return this.record?.belongsTo('glAccount').value()?.label || null;\n    }\n\n    // only rows with something to show make it into the popup\n    get rows() {\n      return [{\n        label: this.intl.t('common.Allocation'),\n        value: this.allocation\n      }, {\n        label: this.intl.t('common.GL account'),\n        value: this.glAccount\n      }].filter(row => row.value);\n    }\n    get summaryText() {\n      return [`<strong>${escapeHtml(this.statusLabel)}</strong>`, ...this.rows.map(row => `${escapeHtml(row.label)}: ${toLineBreaks(row.value)}`)].join('<br>');\n    }\n    get statusLabel() {\n      return this.isAllocated ? this.intl.t('common.Allocated') : this.intl.t('common.Not allocated');\n    }\n    get statusIcon() {\n      return this.isAllocated ? 'check-circle' : 'exclamation-circle';\n    }\n    get statusClass() {\n      return this.isAllocated ? 'text-left text-success' : 'text-left text-danger';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillItemSummaryComponent);\n});","define(\"portal/components/bill-type-response-handler\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @onClose={{@onCancel}}\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @containerClass='block-module'\n  >\n    {{#if this.responseErrors.length}}\n      <p class='p'>{{t 'shared.bill.Some bills failed to send'}}</p>\n      <div class='bill-type-response-handler__table-container'>\n        <table class='bill-type-response-handler__table'>\n          <thead>\n            <tr>\n              <th>{{t 'shared.bill.Reason for failure'}}</th>\n            </tr>\n          </thead>\n          <tbody>\n            {{#each this.responseErrors as |error|}}\n              <tr data-test-bill-type-resource-handler-error>\n                <td>{{error}}</td>\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      </div>\n    {{/if}}\n  \n    {{#if this.attachmentErrors.length}}\n      <p class='p'>{{t 'shared.bill.Some attachments failed to send to Xero'}}</p>\n      <div class='bill-type-response-handler__table-container'>\n        <table class='bill-type-response-handler__table'>\n          <thead>\n            <tr>\n              <th>{{t 'shared.bill.Reason for failure'}}</th>\n            </tr>\n          </thead>\n          <tbody>\n            {{#each this.attachmentErrors as |error|}}\n              <tr data-test-bill-type-resource-handler-attachment-error>\n                <td>{{error.rejectedReason}}</td>\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      </div>\n    {{/if}}\n    <div class='block-module__footer'>\n      <button\n        class='button float-end'\n        data-test-bill-type-resource-handler-okay-button\n        type='button'\n        {{on 'click' @onCancel}}\n      >{{t 'common.Okay'}}</button>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"Ty6sLlrJ\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[30,1],true,\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"responseErrors\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Some bills failed to send\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"bill-type-response-handler__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"bill-type-response-handler__table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Reason for failure\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"responseErrors\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-bill-type-resource-handler-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,2]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"attachmentErrors\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Some attachments failed to send to Xero\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"bill-type-response-handler__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"bill-type-response-handler__table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Reason for failure\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"attachmentErrors\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-bill-type-resource-handler-attachment-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"rejectedReason\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,0],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button float-end\\\"],[24,\\\"data-test-bill-type-resource-handler-okay-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,3],[\\\"common.Okay\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onCancel\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"modal-dialog\\\",\\\"if\\\",\\\"p\\\",\\\"t\\\",\\\"div\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"button\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/bill-type-response-handler.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get responseErrors() {\n      return (this.args.responses ?? []).flat().filter(response => typeof response === 'string');\n    }\n    get attachmentErrors() {\n      const responses = (this.args.responses ?? []).reduce((attachments, response) => [...attachments, ...(response.attachments || [])], []);\n      const errors = responses.filter(response => response.rejected);\n      return errors;\n    }\n  });\n});","define(\"portal/components/bills-table\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.allocating}}\n    <BillItemAllocator\n      @bills={{this.selectedBills}}\n      @onClose={{this.closeAllocator}}\n      @billStatus={{@billStatus}}\n    />\n  {{/if}}\n  \n  <div\n    class='overflow-auto h-100'\n    {{did-update this.resetSelectionOnFilterChange this.filterString}}\n  >\n    <div\n      {{! TODO sticky-top bs class is overwritten by our deprecated component}}\n      class='d-flex align-items-center position-sticky bg-white z-1 p-3'\n      style='top: 0; height: 43px;'\n    >\n      {{#if this.someBillsSelected}}\n        <DropdownButton\n          data-test-bills-bulk-actions\n          @direction='bottom-right'\n          @btnClass='btn btn-sm btn-primary '\n          @buttonText={{t 'common.Allocate'}}\n          @onPrimaryClick={{fn (mut this.allocating) (not this.allocating)}}\n          @disabled={{or this.isLoading this.isActionsRunning}}\n        >\n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-5'\n            {{on 'click' (perform this.setSelectedBillsToHoldStatus)}}\n          >\n            {{t 'components.bills-table.Mark as held'}}\n          </button>\n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-5'\n            {{on 'click' (fn (mut this.showBillsDeleteConfirmModal) true)}}\n          >\n            {{t 'common.Delete'}}\n          </button>\n        </DropdownButton>\n      {{/if}}\n    </div>\n  \n    <table class='table position-relative align-middle'>\n      <thead class='position-sticky' style='top: 43px;'>\n        <tr>\n          <th colspan='1' />\n          {{#if this.showStatusColumn}}\n            <BillsTable::Th\n              colspan='1'\n              @sort={{@sort}}\n              @onOrderBy={{@onOrderBy}}\n              @key='status'\n              class='text-nowrap'\n            >\n              {{t 'common.Status'}}\n            </BillsTable::Th>\n          {{/if}}\n          <BillsTable::Th\n            colspan={{this.fromColumnSpan}}\n            @sort={{@sort}}\n            @onOrderBy={{@onOrderBy}}\n            @key='issuer'\n            class='text-nowrap'\n          >\n            {{t 'common.From'}}\n          </BillsTable::Th>\n          <BillsTable::Th\n            colspan={{this.numberColumnSpan}}\n            @sort={{@sort}}\n            @onOrderBy={{@onOrderBy}}\n            @key='billNumber'\n            class='text-nowrap'\n          >\n            {{t 'common.Number'}}\n          </BillsTable::Th>\n          {{#unless @condensed}}\n            <BillsTable::Th\n              colspan='1'\n              @sort={{@sort}}\n              @onOrderBy={{@onOrderBy}}\n              @key='reference'\n              class='text-nowrap'\n            >\n              {{t 'common.Purchase order'}}\n            </BillsTable::Th>\n            <BillsTable::Th\n              colspan='1'\n              @sort={{@sort}}\n              @onOrderBy={{@onOrderBy}}\n              @key='issueDate'\n              class='text-nowrap'\n            >\n              {{t 'common.Issue date'}}\n            </BillsTable::Th>\n            <BillsTable::Th\n              colspan='1'\n              @sort={{@sort}}\n              @onOrderBy={{@onOrderBy}}\n              @key='dueDate'\n              class='text-nowrap'\n            >\n              {{t 'common.Due date'}}\n            </BillsTable::Th>\n          {{/unless}}\n          <th colspan={{this.allocationColumnSpan}} class='text-nowrap'>\n            {{t 'common.Allocation'}}\n          </th>\n          <BillsTable::Th\n            colspan='1'\n            @sort={{@sort}}\n            @onOrderBy={{@onOrderBy}}\n            class='text-nowrap'\n            @key='subtotal'\n          >\n            {{t 'common.Total'}}\n          </BillsTable::Th>\n        </tr>\n      </thead>\n      <InfinityScroll\n        @onLoadMore={{(fn (perform this.loadMoreBills))}}\n        as |didInsert|\n      >\n        <tbody {{did-insert didInsert}}>\n          {{#each this.billsData.bills as |bill|}}\n            {{#let\n              (is-active\n                'entity.builda-price.operations.incoming.bills.bill' bill.id\n              )\n              as |active|\n            }}\n              <tr\n                class={{if active 'table-primary'}}\n                {{on 'click' (fn this.navigateToBill bill.id)}}\n                {{did-insert this.scrollActiveBill active}}\n                {{did-update this.scrollActiveBill active}}\n                role='button'\n                active-bill={{active}}\n                data-test-bill-row={{bill.id}}\n              >\n                {{! template-lint-disable no-nested-interactive }}\n                {{#if (includes-feature-flags 'canManageBills')}}\n                  {{#if bill.newIsValid}}\n                    <td\n                      colspan='1'\n                      role='button'\n                      class='{{if\n                          this.showCondensedStatusStripe\n                          (map-get this.billStatusStripeClasses bill.status)\n                        }}\n                        '\n                      {{on 'click' (fn this.toggleSelected bill)}}\n                    >\n                      <input\n                        class='pe-none'\n                        type='checkbox'\n                        checked={{includes this.selectedBills bill}}\n                      />\n                    </td>\n                  {{else}}\n                    <td\n                      colspan='1'\n                      class='{{if\n                          this.showCondensedStatusStripe\n                          (map-get this.billStatusStripeClasses bill.status)\n                        }}\n                        '\n                    />\n                  {{/if}}\n                {{/if}}\n                {{#if this.showStatusColumn}}\n                  <td colspan='1'>\n                    <span\n                      class='badge m-1 fs-7\n                        {{map-get this.billStatusBackgroundClasses bill.status}}\n                        {{if (eq bill.status \"HELD\") \"text-dark\"}}\n                        {{if (eq bill.status \"AWAITING_APPROVAL\") \"text-dark\"}}\n                        {{if (eq bill.status \"PAID\") \"text-dark\"}}\n                        '\n                    >\n                      {{bill.statusLabel}}\n                    </span>\n                  </td>\n                {{/if}}\n                <td\n                  colspan={{this.fromColumnSpan}}\n                  data-test-bill-issuer\n                >{{bill.issuer}}</td>\n                <td colspan={{this.numberColumnSpan}} data-test-bill-number>\n                  {{#if bill.billNumber}}\n                    {{bill.billNumber}}\n                    {{#if (eq bill.billType 'CREDIT_NOTE')}}\n                      <span class='badge m-1 fs-7 bg-info'>\n                        {{bill.typeLabel}}\n                      </span>\n                    {{/if}}\n                    {{#if bill.hasDuplicate}}\n                      <span class='badge m-1 fs-7 bg-danger'>\n                        {{t 'common.Duplicate'}}\n                      </span>\n                    {{/if}}\n                    {{#if bill.isAcceptedButNotSyncedToAccountingPlatform}}\n                      <span class='badge m-1 fs-7 bg-danger'>\n                        {{t 'components.bills-table.Not synced to'}}\n                        {{this.accountingPlatform.label}}\n                      </span>\n                    {{/if}}\n                  {{else}}\n                    &mdash;\n                  {{/if}}\n                </td>\n                {{#unless @condensed}}\n                  <td colspan='1'>\n                    {{#if bill.reference}}\n                      {{bill.reference}}\n                      {{#if (this.getPurchaseOrderMatchingStatus bill)}}\n                        <span\n                          class='badge m-1 fs-7\n                            {{this.getPurchaseOrderMatchingStatus bill}}'\n                        >\n                          <FaIcon @icon='shopping-cart' @size='sm' />\n                          &nbsp;PO\n                        </span>\n                      {{/if}}\n                    {{else}}\n                      &mdash;\n                    {{/if}}\n                  </td>\n                  <td colspan='1' class='text-nowrap'>\n                    {{#if bill.issueDate}}\n                      {{moment-format bill.issueDate (t 'date.shortWithWeekday')}}\n                    {{else}}\n                      &mdash;\n                    {{/if}}\n                  </td>\n                  <td colspan='1' class='text-nowrap'>\n                    {{#if bill.dueDate}}\n                      {{moment-format bill.dueDate (t 'date.shortWithWeekday')}}\n                    {{else}}\n                      &mdash;\n                    {{/if}}\n                  </td>\n                {{/unless}}\n                <td colspan={{this.allocationColumnSpan}}>\n                  <AllocationHierarchy @allocations={{bill.allocations}} />\n                </td>\n                <td colspan='1' class='text-nowrap'>\n                  {{number-format bill.subtotal style='currency' dashZero=true}}\n                </td>\n              </tr>\n            {{/let}}\n          {{else}}\n            <tr data-test-bills-empty>\n              <td class='text-center' colspan='12'>\n                {{t 'common.No bills'}}\n              </td>\n            </tr>\n          {{/each}}\n        </tbody>\n      </InfinityScroll>\n    </table>\n  </div>\n  \n  <ConfirmDelete\n    @visible={{this.showBillsDeleteConfirmModal}}\n    @title={{if\n      this.deleteConfirmText\n      (t 'common.Delete bills')\n      (t 'common.Delete bill')\n    }}\n    @messages={{this.deleteMessages}}\n    @confirmText={{this.deleteConfirmText}}\n    @deleteButtonText={{if\n      this.deleteConfirmText\n      (t 'common.Delete bills')\n      (t 'common.Delete bill')\n    }}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{(perform this.deleteSelectedBills)}}\n    @onCancel={{fn (mut this.showBillsDeleteConfirmModal) false}}\n  >\n    <p>{{t 'shared.estimate.This action cannot be undone'}}</p>\n  </ConfirmDelete>\n  */\n  {\n    \"id\": \"sqS/tXym\",\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\\\"]],\\\"AWAITING_APPROVAL\\\"],null],\\\"text-dark\\\"],\\\"\\\\n                      \\\",[52,[28,[37,32],[[30,6,[\\\"status\\\"]],\\\"PAID\\\"],null],\\\"text-dark\\\"],\\\"\\\\n                      \\\"]]],[12],[1,\\\"\\\\n                    \\\"],[1,[30,6,[\\\"statusLabel\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"fromColumnSpan\\\"]]],[14,\\\"data-test-bill-issuer\\\",\\\"\\\"],[12],[1,[30,6,[\\\"issuer\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"numberColumnSpan\\\"]]],[14,\\\"data-test-bill-number\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"billNumber\\\"]],[[[1,\\\"                  \\\"],[1,[30,6,[\\\"billNumber\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[[30,6,[\\\"billType\\\"]],\\\"CREDIT_NOTE\\\"],null],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"badge m-1 fs-7 bg-info\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,6,[\\\"typeLabel\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,6,[\\\"hasDuplicate\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"badge m-1 fs-7 bg-danger\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"common.Duplicate\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,6,[\\\"isAcceptedButNotSyncedToAccountingPlatform\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"badge m-1 fs-7 bg-danger\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"components.bills-table.Not synced to\\\"],null]],[1,\\\"\\\\n                      \\\"],[1,[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"                  —\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,4]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"reference\\\"]],[[[1,\\\"                    \\\"],[1,[30,6,[\\\"reference\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[30,0,[\\\"getPurchaseOrderMatchingStatus\\\"]],[[30,6]],null],[[[1,\\\"                      \\\"],[10,1],[15,0,[29,[\\\"badge m-1 fs-7\\\\n                          \\\",[28,[30,0,[\\\"getPurchaseOrderMatchingStatus\\\"]],[[30,6]],null]]]],[12],[1,\\\"\\\\n                        \\\"],[8,[39,33],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"shopping-cart\\\",\\\"sm\\\"]],null],[1,\\\"\\\\n                         PO\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"                    —\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"issueDate\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,34],[[30,6,[\\\"issueDate\\\"]],[28,[37,5],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    —\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"dueDate\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,34],[[30,6,[\\\"dueDate\\\"]],[28,[37,5],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    —\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"allocationColumnSpan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,35],null,[[\\\"@allocations\\\"],[[30,6,[\\\"allocations\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"1\\\"],[14,0,\\\"text-nowrap\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,36],[[30,6,[\\\"subtotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[7]]]],[6]],[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-bills-empty\\\",\\\"\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[14,\\\"colspan\\\",\\\"12\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,5],[\\\"common.No bills\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[5]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[8,[39,37],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@confirmText\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"showBillsDeleteConfirmModal\\\"]],[52,[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,5],[\\\"common.Delete bills\\\"],null],[28,[37,5],[\\\"common.Delete bill\\\"],null]],[30,0,[\\\"deleteMessages\\\"]],[30,0,[\\\"deleteConfirmText\\\"]],[52,[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,5],[\\\"common.Delete bills\\\"],null],[28,[37,5],[\\\"common.Delete bill\\\"],null]],[28,[37,5],[\\\"common.Deleting\\\"],null],[28,[37,12],[[30,0,[\\\"deleteSelectedBills\\\"]]],null],[28,[37,6],[[28,[37,7],[[30,0,[\\\"showBillsDeleteConfirmModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,2],[12],[1,[28,[35,5],[\\\"shared.estimate.This action cannot be undone\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@billStatus\\\",\\\"@sort\\\",\\\"@onOrderBy\\\",\\\"@condensed\\\",\\\"didInsert\\\",\\\"bill\\\",\\\"active\\\"],false,[\\\"if\\\",\\\"bill-item-allocator\\\",\\\"div\\\",\\\"did-update\\\",\\\"dropdown-button\\\",\\\"t\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"or\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"bills-table/th\\\",\\\"unless\\\",\\\"infinity-scroll\\\",\\\"tbody\\\",\\\"did-insert\\\",\\\"each\\\",\\\"-track-array\\\",\\\"let\\\",\\\"is-active\\\",\\\"includes-feature-flags\\\",\\\"td\\\",\\\"map-get\\\",\\\"input\\\",\\\"includes\\\",\\\"span\\\",\\\"eq\\\",\\\"fa-icon\\\",\\\"moment-format\\\",\\\"allocation-hierarchy\\\",\\\"number-format\\\",\\\"confirm-delete\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/bills-table.hbs\",\n    \"isStrictMode\": false\n  });\n  let BillsTableComponent = _exports.default = (_class = class BillsTableComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"invoicedCosts\", _descriptor5, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor6, this);\n      _initializerDefineProperty(this, \"billsData\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor8, this);\n      _initializerDefineProperty(this, \"allocating\", _descriptor9, this);\n      _initializerDefineProperty(this, \"showBillsDeleteConfirmModal\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedBills\", _descriptor1, this);\n      _initializerDefineProperty(this, \"originalFilter\", _descriptor10, this);\n      _defineProperty(this, \"loadMoreBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.billsData.loadMoreBills.perform(this.args.filter, this.args.fields, this.args.sort, this.args.pageSize);\n        }\n      }), null, \"loadMoreBills\", \"drop\"));\n      _defineProperty(this, \"deleteSelectedBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const hasOneBill = this.selectedBills.length === 1;\n          const isInvoiced = this.selectedBills.some(bill => bill.isInvoiced);\n          yield this.invoicedCosts.requestDelete.perform({\n            isInvoiced,\n            title: this.intl.t(hasOneBill ? 'services.invoiced-costs.Delete linked bill' : 'services.invoiced-costs.Delete linked bills'),\n            message: this.intl.t(hasOneBill ? 'services.invoiced-costs.billMessage' : 'services.invoiced-costs.billsMessage'),\n            deleteCb: async () => {\n              const bills = [...this.selectedBills];\n              const billIds = bills.map(bill => bill.id);\n              if (!bills.length) {\n                return this.notifications.info(this.intl.t('components.bills-table.youHaveNotSelectedAnyBillsToDelete'));\n              }\n              try {\n                await Promise.all(bills.map(async bill => {\n                  const items = bill.hasMany('items').value();\n\n                  // Instead of directly deleting just mark it as delete, remove from service data and then delete bill\n                  await bill.deleteRecord();\n                  await this.billsData.removeBill(bill);\n                  await bill.save();\n                  if (items) items.forEach(item => item.unloadRecord());\n                }));\n                this.selectedBills = [];\n                if (billIds.includes(this.router.currentRoute?.params?.bill_id)) {\n                  this.router.transitionTo('entity.builda-price.operations.incoming.bills');\n                }\n                this.notifications.success(this.intl.t('components.bills-table.Successfully deleted bills'));\n              } finally {\n                this.showBillsDeleteConfirmModal = false;\n              }\n            }\n          });\n        }\n      }), null, \"deleteSelectedBills\", \"drop\"));\n      _defineProperty(this, \"setSelectedBillsToHoldStatus\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.selectedBills.length) {\n            return this.notifications.info(this.intl.t('components.bills-table.You have not selected any bills'));\n          }\n          const targetStatus = 'HELD';\n          const bills = [...this.selectedBills];\n          const results = yield Promise.allSettled(bills.map(bill => {\n            bill.set('status', targetStatus);\n            return bill.save();\n          }));\n          const failedUpdates = results.filter(r => r.status === 'rejected');\n          if (failedUpdates.length) {\n            this.notifications.error(this.intl.t('components.bills-table.thereAreFailedTotalBillSFailedToUpdate', {\n              failed: failedUpdates.length,\n              total: this.selectedBills.length\n            }));\n          } else {\n            this.notifications.success(this.intl.t('components.bills-table.All bills updated successfully'));\n          }\n          if (this.hasStatusFilter) {\n            results.forEach((result, index) => {\n              if (result.status === 'fulfilled') {\n                this.billsData.removeBill(bills[index]);\n              }\n            });\n          }\n          this.selectedBills = this.selectedBills.filter(bill => this.billsData.bills.includes(bill));\n        }\n      }), null, \"setSelectedBillsToHoldStatus\", \"restartable\"));\n    }\n    get someBillsSelected() {\n      return this.selectedBills.length > 0;\n    }\n    get selectedBillItems() {\n      return this.selectedBills.map(bill => bill.hasMany('items').value()).flat();\n    }\n    get deleteConfirmText() {\n      if (this.selectedBills.length > 1) return this.intl.t('components.bills-table.deleteCountBills', {\n        count: this.selectedBills.length\n      });\n      return null;\n    }\n    scrollActiveBill(element, [active]) {\n      if (!active) return;\n      element.scrollIntoView({\n        block: 'nearest',\n        inline: 'nearest'\n      });\n    }\n    get deleteMessages() {\n      if (this.deleteConfirmText) return this.intl.t('components.bills-table.Do you want to delete these bills');\n      return this.intl.t('components.bill-editor.Do you want to delete this bill');\n    }\n    get showStatusColumn() {\n      return !this.args.condensed && !this.hasStatusFilter;\n    }\n    get hasStatusFilter() {\n      return this.args.filter?.and?.some(filter => filter.field === 'status');\n    }\n    get filterString() {\n      return JSON.stringify(this.args.filter);\n    }\n    get showCondensedStatusStripe() {\n      return this.args.condensed && !this.hasStatusFilter;\n    }\n    get fromColumnSpan() {\n      return this.args.condensed ? 4 : 1;\n    }\n    get numberColumnSpan() {\n      return this.args.condensed ? 2 : 1;\n    }\n    get allocationColumnSpan() {\n      if (this.args.condensed) return 4;\n      return this.showStatusColumn ? 4 : 5;\n    }\n    get billStatusBackgroundClasses() {\n      return new Map([['DRAFT', 'bg-secondary'], ['AWAITING_APPROVAL', 'bg-warning'], ['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'], ['AWAITING_APPROVAL', 'status-stripe-warning'], ['ACCEPTED', 'status-stripe-info'], ['HELD', 'status-stripe-warning'], ['PAID', 'status-stripe-success'], ['ARCHIVED', 'status-stripe-secondary']]);\n    }\n    navigateToBill(id) {\n      this.router.transitionTo('entity.builda-price.operations.incoming.bills.bill', id);\n    }\n    toggleSelected(bill, e) {\n      e.stopPropagation();\n      e.preventDefault();\n      const i = this.selectedBills.indexOf(bill);\n      if (i < 0) {\n        this.selectedBills = [...this.selectedBills, bill];\n      } else {\n        this.selectedBills = this.selectedBills.toSpliced(i, 1);\n      }\n    }\n    closeAllocator({\n      wasCancelled = false\n    } = {}) {\n      this.allocating = false;\n      if (!wasCancelled) {\n        this.selectedBills = [];\n      }\n    }\n    getPurchaseOrderMatchingStatus(bill) {\n      const purchaseOrderDetails = bill.purchaseOrderDetails;\n      if (!purchaseOrderDetails) return '';\n      const values = Object.values(purchaseOrderDetails);\n      if (values.includes(false) || values.includes('OVER')) {\n        return 'bg-danger';\n      }\n      if (values.includes('PARTIAL')) {\n        return 'bg-warning';\n      }\n      return 'bg-success';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"invoicedCosts\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"billsData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"allocating\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"showBillsDeleteConfirmModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"selectedBills\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"scrollActiveBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"scrollActiveBill\"), _class.prototype), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"originalFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"resetSelectionOnFilterChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"resetSelectionOnFilterChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"navigateToBill\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"navigateToBill\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSelected\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSelected\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeAllocator\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeAllocator\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillsTableComponent);\n});","define(\"portal/components/bills-table/th\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <th ...attributes role='button' {{on 'click' this.toggleOrderBy}}>\n    {{yield}}\n  \n    {{#if this.icon}}\n      <FaIcon @icon={{this.icon}} />\n    {{/if}}\n  </th>\n  */\n  {\n    \"id\": \"pr4BuFeB\",\n    \"block\": \"[[[11,\\\"th\\\"],[17,1],[24,\\\"role\\\",\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"toggleOrderBy\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"icon\\\"]],[[[1,\\\"    \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[30,0,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"th\\\",\\\"on\\\",\\\"yield\\\",\\\"if\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/bills-table/th.hbs\",\n    \"isStrictMode\": false\n  });\n  let BillsTableThComponent = _exports.default = (_class = class BillsTableThComponent extends _component2.default {\n    get direction() {\n      const state = this.args.sort;\n      if (!state?.endsWith(this.args.key)) return false;\n      if (state.startsWith('-')) return 'desc';else return 'asc';\n    }\n    get icon() {\n      switch (this.direction) {\n        case 'asc':\n          return 'caret-up';\n        case 'desc':\n          return 'caret-down';\n        default:\n          return undefined;\n      }\n    }\n    toggleOrderBy() {\n      let newValue;\n      switch (this.direction) {\n        case 'asc':\n          newValue = `-${this.args.key}`;\n          break;\n        case 'desc':\n          newValue = undefined;\n          break;\n        default:\n          newValue = `${this.args.key}`;\n          break;\n      }\n      this.args.onOrderBy(newValue);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"toggleOrderBy\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleOrderBy\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BillsTableThComponent);\n});","define(\"portal/components/bills-uploader\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"string-similarity\", \"csv-parse/browser/esm\", \"moment\", \"portal/utils/parse-currency-string\", \"portal/utils/search-filter\", \"portal/utils/placemakers-bill-csv-normalizer\", \"portal/utils/bunnings-bill-csv-normalizer\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _tracking, _service, _object, _stringSimilarity, _esm, _moment, _parseCurrencyString, _searchFilter, _placemakersBillCsvNormalizer, _bunningsBillCsvNormalizer, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _class2, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"string-similarity\",0,\"ember-concurrency\",0,\"csv-parse/browser/esm\",0,\"moment\",0,\"portal/utils/parse-currency-string\",0,\"portal/utils/search-filter\",0,\"portal/utils/placemakers-bill-csv-normalizer\",0,\"portal/utils/bunnings-bill-csv-normalizer\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @overlayClass='modal'\n    @translucentOverlay={{true}}\n    @onClose={{@onClose}}\n    @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n  >\n    <div class='modal-content' style='max-width: 95vw;'>\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t 'components.bills-uploader.Import bills'}}\n        </h5>\n      </div>\n  \n      <div class='modal-body overflow-auto'>\n        {{#if this.billFile}}\n          <div class='w-25'>\n            <label class='mb-1'>\n              {{t 'common.Contact'}}\n              <sup class='text-danger'>*</sup>\n            </label>\n            <SearchSelector\n              @onSelect={{this.setContact}}\n              @onLoad={{this.loadContacts}}\n              @noDataMessage={{t 'components.bills-uploader.No contacts'}}\n              @key='contact'\n              @optionKeys={{array 'name'}}\n              @model={{this.contactChangeSet}}\n              @forceValidationVisible={{gt this.uploadBills.performCount 0}}\n            />\n          </div>\n          <p>\n            {{t 'shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument'}}\n          </p>\n          <div class='table-responsive'>\n            <table class='table table-sm table-bordered'>\n              <thead>\n                <tr>\n                  {{#each this.billFile.columnTypes as |type index|}}\n                    <th class='text-center align-top'>\n                      <PtlInput\n                        style='min-width: 85px;'\n                        @type='select'\n                        @label={{number-to-char index}}\n                        {{! the key needs to be a string }}\n                        @key={{concat index}}\n                        @options={{this.billFile.columnTypeOptions}}\n                        @model={{this.billFile.columnTypeForm}}\n                        @selectNoBlankOption={{true}}\n                        @forceValidationVisible={{gt\n                          this.uploadBills.performCount\n                          0\n                        }}\n                      />\n                    </th>\n                  {{/each}}\n                </tr>\n              </thead>\n              <tbody>\n                {{#each this.billFile.sampleRows as |columns|}}\n                  <tr>\n                    {{#each columns as |column index|}}\n                      <td\n                        class='no-wrap text-truncate\n                          {{if\n                            (eq\n                              (get this.billFile.columnTypeForm index)\n                              \"do-not-import\"\n                            )\n                            \"opacity-25\"\n                          }}'\n                        style='max-width: 200px;'\n                        title={{column}}\n                      >\n                        {{column}}\n                      </td>\n                    {{/each}}\n                  </tr>\n                {{/each}}\n              </tbody>\n            </table>\n          </div>\n  \n          <div class='d-flex justify-content-end p-2'>\n            {{#if this.uploadBills.isRunning}}\n              <button\n                type='button'\n                class='btn btn-primary ms-2'\n                disabled={{true}}\n              >\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.uploading'}}…\n              </button>\n            {{else}}\n              <button\n                class='btn btn-secondary'\n                type='button'\n                {{on 'click' this.onClear}}\n              >\n                {{t 'shared.uploader.Upload a different file'}}\n              </button>\n            {{/if}}\n          </div>\n        {{else}}\n          <DragAndDropContainer\n            @onUploadComplete={{this.onUpload}}\n            @isDragAndDropVisible={{true}}\n          >\n            <p class='text-center'>\n              {{t\n                'components.bills-uploader.Upload your CSV file to generate bills'\n              }}\n            </p>\n            <a\n              class='btn btn-link align-self-center mb-3'\n              href='/assets/example-invoices-file-329566189a769091832b514177383e26.csv'\n              download='example-invoices-file-329566189a769091832b514177383e26.csv'\n            >\n              <FaIcon @icon='download' />&nbsp;&nbsp;\n              {{t 'shared.uploader.Download example file'}}\n            </a>\n          </DragAndDropContainer>\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.isLoading}}\n          {{on 'click' @onClose}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        {{#if this.billFile}}\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on 'click' (fn (perform this.uploadBills))}}\n            disabled={{or this.uploadBills.isRunning this.saveBills.isRunning}}\n          >\n            {{#if (or this.uploadBills.isRunning this.saveBills.isRunning)}}\n              {{t 'components.bills-uploader.Importing bills'}}&hellip;\n            {{else}}\n              {{t 'components.bills-uploader.Import bills'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </div>\n  </ModalDialog>\n  \n  {{#if this.invalidProductRowIndexes}}\n    <ModalDialog\n      @onClose={{fn (mut this.invalidProductRowIndexes) ''}}\n      @containerClass='card'\n      @translucentOverlay={{true}}\n    >\n      <div class='card-body'>\n        <p>\n          {{t\n            'components.bills-uploader.theFollowingRowsInYourFileAreInvalidAndWereNotUploaded'\n          }}\n        </p>\n        <p class='products-uploader__invalid-rows-confirm-modal-row-message'>\n          {{this.invalidProductRowIndexes}}\n        </p>\n      </div>\n      <div class='card-footer'>\n        <div class='pull-right d-flex align-items-center'>\n          <button\n            class='btn btn-primary me-2'\n            type='button'\n            {{on 'click' this.skipNoneDescriptionRowsAndUpload}}\n          >\n            {{t 'components.bills-uploader.Upload valid rows anyway'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-secondary'\n            {{on 'click' (fn (mut this.invalidProductRowIndexes) '')}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.importedBills.existing.length}}\n    <ModalDialog\n      @onClose={{fn (mut this.importedBills) false}}\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'shared.notification.xOutOfYBillsWereFoundToBeDuplicates'\n            duplicates=this.importedBills.existing.length\n            total=(math\n              this.importedBills.existing.length '+' this.importedBills.new.length\n            )\n          }}\n        </p>\n  \n        <div class='invoice-editor__import-modal__table-container'>\n          <table class='data-table data-table--stretched'>\n            <tr>\n              <th>{{t 'common.Supplier'}}</th>\n              <th>{{t 'common.Bill number'}}</th>\n              <th>{{t 'common.Reference'}}</th>\n            </tr>\n            {{#each this.importedBills.existing as |bill|}}\n              <tr>\n                <td>{{bill.issuer}}</td>\n                <td>{{bill.billNumber}}</td>\n                <td>{{bill.name}}</td>\n              </tr>\n            {{/each}}\n          </table>\n        </div>\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.importedBills) false)}}\n          disabled={{this.saveBills.isRunning}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n  \n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' this.importAllBills}}\n          disabled={{this.saveBills.isRunning}}\n        >\n          {{t 'common.Import all'}}\n        </button>\n  \n        {{#if this.importedBills.new.length}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on 'click' this.importNewBillsOnly}}\n            disabled={{this.saveBills.isRunning}}\n          >\n            {{t 'components.bills-uploader.Import only new bills'}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"Gix+ALkZ\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[30,1],\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-content\\\"],[14,5,\\\"max-width: 95vw;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Import bills\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body overflow-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billFile\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"w-25\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"common.Contact\\\"],null]],[1,\\\"\\\\n            \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,7],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,3],[\\\"components.bills-uploader.No contacts\\\"],null],\\\"contact\\\",[28,[37,8],[\\\"name\\\"],null],[30,0,[\\\"contactChangeSet\\\"]],[28,[37,9],[[30,0,[\\\"uploadBills\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"table-responsive\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm table-bordered\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"billFile\\\",\\\"columnTypes\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center align-top\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,17],[[24,5,\\\"min-width: 85px;\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@selectNoBlankOption\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,18],[[30,3]],null],[28,[37,19],[[30,3]],null],[30,0,[\\\"billFile\\\",\\\"columnTypeOptions\\\"]],[30,0,[\\\"billFile\\\",\\\"columnTypeForm\\\"]],true,[28,[37,9],[[30,0,[\\\"uploadBills\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"billFile\\\",\\\"sampleRows\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,4]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"no-wrap text-truncate\\\\n                        \\\",[52,[28,[37,22],[[28,[37,23],[[30,0,[\\\"billFile\\\",\\\"columnTypeForm\\\"]],[30,6]],null],\\\"do-not-import\\\"],null],\\\"opacity-25\\\"]]]],[14,5,\\\"max-width: 200px;\\\"],[15,\\\"title\\\",[30,5]],[12],[1,\\\"\\\\n                      \\\"],[1,[30,5]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex justify-content-end p-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"uploadBills\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.uploading\\\"],null]],[1,\\\"…\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"onClear\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,3],[\\\"shared.uploader.Upload a different file\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,27],null,[[\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"onUpload\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Upload your CSV file to generate bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,3],[14,0,\\\"btn btn-link align-self-center mb-3\\\"],[14,6,\\\"/assets/example-invoices-file-329566189a769091832b514177383e26.csv\\\"],[14,\\\"download\\\",\\\"example-invoices-file-329566189a769091832b514177383e26.csv\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"  \\\\n            \\\"],[1,[28,[35,3],[\\\"shared.uploader.Download example file\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billFile\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,30],[[30,0,[\\\"uploadBills\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[28,[37,31],[[28,[37,32],[[30,0,[\\\"uploadBills\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[[30,0,[\\\"uploadBills\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Importing bills\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Import bills\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invalidProductRowIndexes\\\"]],[[[1,\\\"  \\\"],[8,[39,0],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,31],[[28,[37,33],[[30,0,[\\\"invalidProductRowIndexes\\\"]]],null],\\\"\\\"],null],\\\"card\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.theFollowingRowsInYourFileAreInvalidAndWereNotUploaded\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"products-uploader__invalid-rows-confirm-modal-row-message\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"invalidProductRowIndexes\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pull-right d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"skipNoneDescriptionRowsAndUpload\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Upload valid rows anyway\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[28,[37,31],[[28,[37,33],[[30,0,[\\\"invalidProductRowIndexes\\\"]]],null],\\\"\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importedBills\\\",\\\"existing\\\",\\\"length\\\"]],[[[1,\\\"  \\\"],[8,[39,0],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[28,[37,31],[[28,[37,33],[[30,0,[\\\"importedBills\\\"]]],null],false],null],true,\\\"modal\\\",\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"shared.notification.xOutOfYBillsWereFoundToBeDuplicates\\\"],[[\\\"duplicates\\\",\\\"total\\\"],[[30,0,[\\\"importedBills\\\",\\\"existing\\\",\\\"length\\\"]],[28,[37,34],[[30,0,[\\\"importedBills\\\",\\\"existing\\\",\\\"length\\\"]],\\\"+\\\",[30,0,[\\\"importedBills\\\",\\\"new\\\",\\\"length\\\"]]],null]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__import-modal__table-container\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table data-table--stretched\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"common.Supplier\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"common.Bill number\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"importedBills\\\",\\\"existing\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,7,[\\\"issuer\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,7,[\\\"billNumber\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,7,[\\\"name\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[28,[37,31],[[28,[37,33],[[30,0,[\\\"importedBills\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"importAllBills\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"common.Import all\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"importedBills\\\",\\\"new\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBills\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"importNewBillsOnly\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"components.bills-uploader.Import only new bills\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@onClose\\\",\\\"type\\\",\\\"index\\\",\\\"columns\\\",\\\"column\\\",\\\"index\\\",\\\"bill\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h5\\\",\\\"t\\\",\\\"if\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"gt\\\",\\\"p\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"ptl-input\\\",\\\"number-to-char\\\",\\\"concat\\\",\\\"tbody\\\",\\\"td\\\",\\\"eq\\\",\\\"get\\\",\\\"button\\\",\\\"span\\\",\\\"on\\\",\\\"drag-and-drop-container\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"or\\\",\\\"fn\\\",\\\"perform\\\",\\\"mut\\\",\\\"math\\\"]]\",\n    \"moduleName\": \"portal/components/bills-uploader.hbs\",\n    \"isStrictMode\": false\n  });\n  const normalizeColumnValue = (value = '') => {\n    return value.toLowerCase().replace(/^\\uFEFF|^ï»¿/, '').trim();\n  };\n\n  // why this library kept this API when making a browser build is beyond me\n  const parseCsvFromBase64 = base64 => {\n    const records = [];\n    const parser = (0, _esm.parse)({\n      bom: true,\n      skip_empty_lines: true,\n      relax_column_count: true,\n      trim: true\n    });\n    parser.on('readable', () => {\n      let record;\n      while ((record = parser.read()) !== null) {\n        records.push(record);\n      }\n    });\n    const csvText = atob(base64);\n    parser.write(csvText);\n    parser.end();\n    return records;\n  };\n  class ParserError extends Error {}\n  const getValidationMessages = (errors = []) => {\n    return errors.flatMap(error => {\n      const validation = error?.validation ?? error?.value?.validation;\n      if (Array.isArray(validation)) return validation;\n      if (validation) return [validation];\n      return [];\n    }).filter(Boolean);\n  };\n  const TrimValue = value => String(value || '').trim();\n  let BillsFile = (_class = class BillsFile {\n    get sampleRows() {\n      if (!this.csv) return null;\n      return this.csv.slice(0, 10);\n    }\n    get columnsLength() {\n      return this.csv[0].length;\n    }\n    constructor(csv, intl) {\n      _defineProperty(this, \"columnTypeOptions\", void 0);\n      _initializerDefineProperty(this, \"columnTypes\", _descriptor, this);\n      _initializerDefineProperty(this, \"columnTypeForm\", _descriptor2, this);\n      _initializerDefineProperty(this, \"csv\", _descriptor3, this);\n      this.columnTypeOptions = [{\n        label: '—',\n        value: 'do-not-import',\n        matches: [],\n        type: undefined\n      }, {\n        label: intl.t('common.Invoice number'),\n        value: 'invoiceNumber',\n        matches: ['invoice number', 'invoice no', 'invoice reference', 'invoicenumber', 'document number'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Issue date'),\n        value: 'issueDate',\n        matches: ['issue date', 'issue', 'issued', 'date', 'created date', 'invoicedate', 'invoice date', 'document date'],\n        type: 'date'\n      }, {\n        label: intl.t('common.Due date'),\n        value: 'dueDate',\n        matches: ['due date', 'due', 'duedate', 'delivery date'],\n        type: 'date'\n      }, {\n        label: intl.t('common.Customer reference'),\n        value: 'reference',\n        matches: ['customer reference', 'reference', 'order reference', 'order number', 'your ref', 'your ref.', 'customer order number', 'contract number', 'job'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Code'),\n        value: 'code',\n        matches: ['sku', 'product code', 'item code', 'inventoryitemcode', 'inventory item code'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Description'),\n        value: 'description',\n        matches: ['description', 'item name', 'line', 'product title', 'product description'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Unit price'),\n        value: 'unitPrice',\n        matches: ['unit price', 'price', 'unit rate', 'unitamount', 'unit amount', 'unit price excluding gst', 'net', 'nett value'],\n        type: 'currency'\n      }, {\n        label: intl.t('common.Quantity'),\n        value: 'quantity',\n        matches: ['quantity', 'qty', 'qty ordered', 'qty supplied', 'quantity delivered', 'quantity ordered', 'quantity supplied'],\n        type: 'number'\n      }];\n      this.csv = csv;\n      this.columnTypes = this._findLikelyColumnTypes();\n      this.columnTypeForm = this._generateColumnTypeForm(intl);\n    }\n    _generateColumnTypeForm(intl) {\n      const validator = ({\n        key: _key,\n        newValue,\n        oldValue,\n        changes,\n        content\n      }) => {\n        const current = {\n          ...content,\n          ...changes\n        };\n        const values = Object.values(current);\n        const value = newValue || oldValue;\n        // you need at least one of each of these to progress\n        const requiredValues = ['invoiceNumber'];\n        if (\n        // if you have chosen not to import this column\n        value === 'do-not-import' &&\n        // and there are still required values left\n        requiredValues.some(rv => !values.includes(rv))) return 'Invoice number is required';\n\n        // no import is always valid\n        if (value === 'do-not-import') return true;\n\n        // you can't have duplicate selections\n        if (values.filter(v => v === value).length > 1) return intl.t('validation.You can only select this column once');\n        return true;\n      };\n      const data = {\n        save: () => {\n          for (let i = 0; i < this.columnsLength; i++) {\n            this.columnTypes[i] = this.columnTypeForm.get(String(i));\n          }\n        }\n      };\n      const validatorMap = {};\n      for (let i = 0; i < this.columnsLength; i++) {\n        data[i] = this.columnTypes[i];\n        validatorMap[i] = validator;\n      }\n      return (0, _emberChangeset.Changeset)(data, validator, validatorMap);\n    }\n    _findLikelyColumnTypes() {\n      // TODO if there isn't a header row, we could try and assume from the data type of the columns\n      const likenessThreshold = 0.8;\n      // for each column iterate over each column type to find the closest matching column type\n      const results = [];\n      for (let i = 0; i < this.columnsLength; i++) {\n        const header = normalizeColumnValue(this.csv[0]?.[i]);\n        const winners = this.columnTypeOptions.map(option => {\n          if (!option.matches.length || !header) return {\n            option,\n            rating: 0\n          };\n          const normalizedMatches = option.matches.map(normalizeColumnValue);\n          const score = (0, _stringSimilarity.findBestMatch)(header, normalizedMatches);\n          return {\n            option,\n            rating: score.bestMatch.rating || 0\n          };\n        });\n\n        // find best matching column type\n        const bestMatch = winners.sort((a, b) => b.rating - a.rating).shift();\n\n        // we now have the closest matching column type for this column\n        results.push(bestMatch?.rating >= likenessThreshold ? bestMatch.option.value : 'do-not-import');\n\n        // in the future we could also try evaluate the columns against the data type\n      }\n      return results;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"columnTypes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"columnTypeForm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"csv\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor7, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor8, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor9, this);\n      _defineProperty(this, \"contacts\", []);\n      _defineProperty(this, \"contactsPage\", void 0);\n      _defineProperty(this, \"contactsSearchTerm\", void 0);\n      _initializerDefineProperty(this, \"billFileItems\", _descriptor0, this);\n      _initializerDefineProperty(this, \"billFile\", _descriptor1, this);\n      _initializerDefineProperty(this, \"importedBills\", _descriptor10, this);\n      _initializerDefineProperty(this, \"invalidProductRowIndexes\", _descriptor11, this);\n      _initializerDefineProperty(this, \"contactChangeSet\", _descriptor12, this);\n      _defineProperty(this, \"contactValidator\", ({\n        key,\n        newValue\n      }) => {\n        if (key === 'contact') {\n          return Boolean(newValue) || this.intl.t('components.bills-uploader.Please provide a contact');\n        }\n      });\n      _defineProperty(this, \"parseCsvFromAttachment\", attachment => {\n        // TODO windows does some funky shit with MIME types\n\n        if (attachment.fileType !== 'text/csv') throw new ParserError(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n        const csv = parseCsvFromBase64(attachment.data);\n        return csv;\n      });\n      _defineProperty(this, \"loadContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.contactsSearchTerm) {\n              this.contactsPage = undefined;\n              this.contacts = [];\n              this.contactsSearchTerm = searchTerm;\n            }\n            const contactFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) contactFilter.and.push((0, _searchFilter.default)(['name'], searchTerm));\n            const nextPageNumber = (this.contactsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('contact', {\n              filter: contactFilter,\n              sort: 'name',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.contactsPage = nextPage.meta;\n            this.contacts = [...this.contacts, ...nextPage.toArray()];\n            return this.contacts;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bills-uploader.somethingWentWrongLoadingMoreContacts'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadContacts\", null));\n      _defineProperty(this, \"uploadBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (_e, skipNoneDescriptionRows = false) {\n          this.billFile.columnTypeForm.validate();\n\n          // this is not throwing error, so i have specify key\n          this.contactChangeSet.validate('contact');\n          if (this.billFile.columnTypeForm.isInvalid || this.contactChangeSet.isInvalid) {\n            const validationMessages = [...getValidationMessages(this.billFile.columnTypeForm.errors), ...getValidationMessages(this.contactChangeSet.errors)];\n            this.notifications.warning(validationMessages[0] || this.intl.t('shared.uploader.pleaseCompleteTheFormBeforeContinuing'));\n            return;\n          }\n          try {\n            yield this.billFile.columnTypeForm.save();\n            const billsMap = new Map();\n            const noDescriptionIndexes = [];\n            const contact = this.contactChangeSet.get('contact');\n            this.billFile.csv.forEach((columns, rowIndex) => {\n              // Skip the first row (headers)\n              if (rowIndex === 0) return;\n              const getColumn = label => {\n                const colIndex = this.billFile.columnTypes.findIndex(colType => colType === label);\n                return columns[colIndex]?.trim() || null;\n              };\n              const invoiceNumber = getColumn('invoiceNumber');\n              const reference = getColumn('reference');\n              const description = getColumn('description') || reference || invoiceNumber;\n              if (skipNoneDescriptionRows && !description) return;\n              if (!description) noDescriptionIndexes.push(rowIndex + 1);\n              const item = {\n                description,\n                productCode: getColumn('code'),\n                unitPrice: (0, _parseCurrencyString.default)(getColumn('unitPrice')),\n                quantity: parseFloat(getColumn('quantity')) || 1\n              };\n              if (Number(item.unitPrice) < 0) {\n                item.quantity = item.quantity * -1;\n                item.unitPrice = Math.abs(item.unitPrice);\n              }\n              const rawIssueDate = getColumn('issueDate');\n              const parsedIssueDate = rawIssueDate ? (0, _moment.default)(rawIssueDate, [_moment.default.ISO_8601, 'YYYY-MM-DD', 'DD/MM/YYYY', 'DD/MM/YY', 'D/M/YYYY', 'D/M/YY', 'DD-MM-YYYY', 'DD-MM-YY', 'D-M-YYYY', 'D-M-YY', 'MM/DD/YYYY', 'M/D/YYYY', 'MM/DD/YY', 'M/D/YY'], true) : null;\n              const issueDate = parsedIssueDate?.isValid() ? parsedIssueDate.toDate() : new Date();\n              const rawDueDate = getColumn('dueDate');\n              const parsedDueDate = rawDueDate ? (0, _moment.default)(rawDueDate, [_moment.default.ISO_8601, 'YYYY-MM-DD', 'DD/MM/YYYY', 'DD/MM/YY', 'D/M/YYYY', 'D/M/YY', 'DD-MM-YYYY', 'DD-MM-YY', 'D-M-YYYY', 'D-M-YY', 'MM/DD/YYYY', 'M/D/YYYY', 'MM/DD/YY', 'M/D/YY'], true) : null;\n              const dueDate = parsedDueDate?.isValid() ? parsedDueDate.toDate() : contact?.getBillDueDate(issueDate) || issueDate;\n              if (!billsMap.has(invoiceNumber)) {\n                billsMap.set(invoiceNumber, {\n                  billNumber: invoiceNumber,\n                  entity: this.sessionData.entity,\n                  status: 'DRAFT',\n                  allocationType: contact?.defaultBillAllocationType || 'MATERIALS',\n                  issuer: contact?.name,\n                  issuerContact: contact,\n                  reference,\n                  source: 'web:generic-csv',\n                  issueDate,\n                  dueDate,\n                  items: []\n                });\n              }\n              billsMap.get(invoiceNumber).items.push(item);\n            });\n            if (noDescriptionIndexes.length && !skipNoneDescriptionRows) {\n              this.invalidProductRowIndexes = `${noDescriptionIndexes.join(', ')}`;\n              this.notifications.warning(this.intl.t('components.bills-uploader.rowsAreMissingADescriptionAndWereNotUploaded', {\n                rows: this.invalidProductRowIndexes\n              }));\n              return;\n            }\n            const bills = Array.from(billsMap.values());\n            const importedBills = yield this.findExistingBills(bills);\n            if (importedBills.existing.length) {\n              this.importedBills = importedBills;\n              return;\n            }\n            yield this.saveBills.perform(bills);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bills-uploader.Something went wrong while saving bills'),\n              error\n            });\n          }\n        }\n      }), null, \"uploadBills\", null));\n      _defineProperty(this, \"saveBills\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (bills) {\n          try {\n            const failedBills = [];\n            yield Promise.all(bills.map(async billData => {\n              try {\n                const {\n                  items,\n                  ...billAttrs\n                } = billData;\n                const subtotal = items.reduce((total, item) => total + item.quantity * item.unitPrice, 0);\n                const bill = await this.store.createRecord('bill', {\n                  ...billAttrs,\n                  ...(subtotal < 0 && {\n                    billType: 'CREDIT_NOTE'\n                  }),\n                  entity: this.sessionData.entity\n                }).save();\n                await Promise.all(items.map(async item => {\n                  await this.store.createRecord('bill-item', {\n                    ...item,\n                    entity: this.sessionData.entity,\n                    bill\n                  }).save();\n                }));\n              } catch (error) {\n                failedBills.push({\n                  bill: billData,\n                  error\n                });\n              }\n            }));\n            if (this.args.onUploadBillsCSV) {\n              yield this.args.onUploadBillsCSV();\n            }\n            const total = bills.length;\n            const failed = failedBills.length;\n            const success = total - failed;\n            if (!success && failed) {\n              this.notifications.error({\n                message: this.intl.t('components.bills-uploader.uploadFailedForCountFiles', {\n                  count: failed\n                }),\n                error: failedBills[0]?.error\n              });\n              return;\n            }\n            this.importedBills = null;\n            this.notifications.success({\n              message: this.intl.t('components.bills-uploader.uploadSummarySuccessSucceededFailed', {\n                success,\n                failed\n              }),\n              clearDuration: 5000\n            });\n            this.args.onClose();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.bills-uploader.Something went wrong while saving bills'),\n              error\n            });\n          }\n        }\n      }), null, \"saveBills\", null));\n    }\n    setContact(value) {\n      this.contactChangeSet.set('contact', value);\n    }\n    onClear() {\n      this.billFile = null;\n      this.billFileItems = null;\n      this.importedBills = null;\n      this.invalidProductRowIndexes = '';\n    }\n    skipNoneDescriptionRowsAndUpload() {\n      this.invalidProductRowIndexes = '';\n      this.uploadBills.perform(undefined, true);\n    }\n    onUpload(e) {\n      try {\n        if (!e.attachments.length) {\n          this.notifications.warning(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n          return;\n        }\n        if (e.attachments.length > 1) this.notifications.warning(this.intl.t('shared.uploader.Please upload one file at a time'));\n        const attachment = e.attachments[0];\n        const parsedCsv = this.parseCsvFromAttachment(attachment);\n        let csv = parsedCsv;\n        if ((0, _placemakersBillCsvNormalizer.isPlaceMakersBillCsv)(csv)) csv = (0, _placemakersBillCsvNormalizer.default)(csv);else if ((0, _bunningsBillCsvNormalizer.isBunningsBillCsv)(csv)) csv = (0, _bunningsBillCsvNormalizer.default)(csv);\n        this.billFile = new BillsFile(csv, this.intl);\n      } catch (error) {\n        if (error instanceof ParserError) {\n          this.notifications.warning(error.message);\n          return;\n        }\n        this.notifications.error({\n          message: this.intl.t('shared.uploader.Something went wrong uploading the file'),\n          error\n        });\n      }\n    }\n    async findExistingBills(bills) {\n      const entityId = this.sessionData.entity.id;\n      const uniqueBillNumbers = Array.from(new Set((bills || []).map(bill => bill.billNumber).filter(Boolean)));\n      let existingBills = this.store.peekAll('bill').toArray().filter(bill => bill.belongsTo('entity').id() === entityId);\n      if (uniqueBillNumbers.length) {\n        try {\n          existingBills = await this.store.query('bill', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: entityId\n              }, {\n                field: 'billNumber',\n                op: 'IN',\n                value: uniqueBillNumbers\n              }]\n            },\n            sort: 'issuer',\n            fields: {\n              bills: '_meta.hasDuplicate'\n            }\n          }).then(res => res.toArray ? res.toArray() : res);\n        } catch (_e) {\n          // ignore and use anything already loaded in the store\n        }\n      }\n      return bills.reduce((grouped, bill) => {\n        const billNumber = TrimValue(bill.billNumber);\n        const issuer = TrimValue(bill.issuer);\n        const billIsExisting = existingBills.find(existingBill => TrimValue(existingBill.billNumber) === billNumber && TrimValue(existingBill.issuer) === issuer);\n        if (billIsExisting) grouped.existing.push(bill);else grouped.new.push(bill);\n        return grouped;\n      }, {\n        new: [],\n        existing: [],\n        bills\n      });\n    }\n    importNewBillsOnly() {\n      this.saveBills.perform(this.importedBills?.new || []);\n    }\n    importAllBills() {\n      this.saveBills.perform(this.importedBills?.bills || []);\n    }\n  }, _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"billFileItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"billFile\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"importedBills\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"invalidProductRowIndexes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"contactChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _emberChangeset.Changeset)({\n        contact: null\n      }, this.contactValidator.bind(this));\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setContact\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setContact\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClear\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClear\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"skipNoneDescriptionRowsAndUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"skipNoneDescriptionRowsAndUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"importNewBillsOnly\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"importNewBillsOnly\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"importAllBills\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"importAllBills\"), _class2.prototype), _class2));\n});","define(\"portal/components/c3-chart\", [\"exports\", \"ember-c3/components/c3-chart\"], function (_exports, _c3Chart) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _c3Chart.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-c3/components/c3-chart\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/calculation-breakdown\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ul class='steps'>\n    {{#each this.steps as |step|}}\n      {{#if (eq step.type 'operator')}}\n        <li class='operator'>{{step.char}}</li>\n      {{/if}}\n  \n      {{#if (eq step.type 'input')}}\n        <li class='input'>\n          <div class='name'>{{step.name}}</div>\n          {{#if (or this.result (eq this.result 0))}}\n            <div class='value'>\n              {{number-format step.value maximumFractionDigits=2 dashZero=false}}\n            </div>\n          {{/if}}\n        </li>\n      {{/if}}\n  \n      {{#if (eq step.type 'number')}}\n        <li class='number'>{{step.value}}</li>\n      {{/if}}\n    {{/each}}\n  \n    <li class='operator'>=</li>\n  \n    <li class='input'>\n      <div class='name'>{{t 'common.Result'}}</div>\n      {{#if (or this.result (eq this.result 0))}}\n        <div class='value'>\n          {{number-format\n            this.result\n            style=this.format\n            dashZero=true\n            maximumFractionDigits=2\n          }}\n        </div>\n      {{/if}}\n    </li>\n  </ul>\n  */\n  {\n    \"id\": \"EuvKld4J\",\n    \"block\": \"[[[10,\\\"ul\\\"],[14,0,\\\"steps\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,0,[\\\"steps\\\"]]],null]],null],null,[[[41,[28,[37,4],[[30,1,[\\\"type\\\"]],\\\"operator\\\"],null],[[[1,\\\"      \\\"],[10,\\\"li\\\"],[14,0,\\\"operator\\\"],[12],[1,[30,1,[\\\"char\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,1,[\\\"type\\\"]],\\\"input\\\"],null],[[[1,\\\"      \\\"],[10,\\\"li\\\"],[14,0,\\\"input\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"name\\\"],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"result\\\"]],[28,[37,4],[[30,0,[\\\"result\\\"]],0],null]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"value\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[[30,1,[\\\"value\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,false]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,1,[\\\"type\\\"]],\\\"number\\\"],null],[[[1,\\\"      \\\"],[10,\\\"li\\\"],[14,0,\\\"number\\\"],[12],[1,[30,1,[\\\"value\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]],null],[1,\\\"\\\\n  \\\"],[10,\\\"li\\\"],[14,0,\\\"operator\\\"],[12],[1,\\\"=\\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"li\\\"],[14,0,\\\"input\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"name\\\"],[12],[1,[28,[35,9],[\\\"common.Result\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"result\\\"]],[28,[37,4],[[30,0,[\\\"result\\\"]],0],null]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"value\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[[30,0,[\\\"result\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[[30,0,[\\\"format\\\"]],true,2]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"step\\\"],false,[\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"eq\\\",\\\"li\\\",\\\"div\\\",\\\"or\\\",\\\"number-format\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/calculation-breakdown.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['calculation-breakdown'],\n    steps: (0, _object.computed)('calc', 'data', 'inputs', function () {\n      const calc = (0, _object.get)(this, 'calc');\n      const inputs = (0, _object.get)(this, 'inputs') || {};\n      const steps = [];\n      if (!calc) {\n        return [];\n      }\n\n      /* eslint-disable quote-props */\n      const chars = {\n        'LEFT-BRACKET': '(',\n        'RIGHT-BRACKET': ')',\n        PLUS: '+',\n        MINUS: '\\u2212',\n        MULTIPLY: '\\u00D7',\n        DIV: '/'\n      };\n      /* eslint-enable quote-props */\n\n      calc.forEach(step => {\n        if (step.operator) {\n          steps.pushObject({\n            type: 'operator',\n            char: (0, _object.get)(chars, step.operator)\n          });\n        } else if (step.name) {\n          steps.pushObject({\n            type: 'input',\n            name: step.name,\n            value: (0, _object.get)(inputs, step.input)\n          });\n        } else if (step.number) {\n          steps.pushObject({\n            type: 'number',\n            value: (0, _object.get)(step, 'number')\n          });\n        }\n      });\n      return steps;\n    })\n  }));\n});","define(\"portal/components/charts/data-table\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/helpers/format-number\", \"moment\", \"@ember/template-factory\"], function (_exports, _component, _object, _formatNumber, _moment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"portal/helpers/format-number\",0,\"moment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.data as |row|}}\n    <tr>\n      <td>{{get row 0}}</td>\n      <td class='text-right'>{{get row 1}}</td>\n    </tr>\n  {{/each}}\n  */\n  {\n    \"id\": \"BPUPrTnc\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"data\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,4],[[30,1],0],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[[30,1],1],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null]],[\\\"row\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"td\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/components/charts/data-table.hbs\",\n    \"isStrictMode\": false\n  });\n\n  //import layout from '../../templates/components/charts/data-table';\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    // layout,\n\n    classNames: ['chart', 'chart--data-table', 'data-table'],\n    tagName: 'table',\n    data: (0, _object.computed)('metrics', 'period.{start,type}', function () {\n      const metrics = (0, _object.get)(this, 'metrics');\n      const date = (0, _moment.default)((0, _object.get)(this, 'period.start'), 'YYYY-MM').endOf('month').toDate();\n      const periodType = (0, _object.get)(this, 'period.type');\n      const table = [];\n      metrics.forEach(metric => {\n        const format = (0, _object.get)(metric, 'meta.format');\n        const series = (0, _object.get)(metric, 'series') || [];\n        const periods = (0, _object.get)(series.objectAt(0) || [], 'periods') || [];\n        const period = periods.find(p => p.date === date.toISOString());\n        let value = period ? (0, _object.get)(period, `periodTypes.${periodType}.value`) : null;\n        if (value != null) {\n          value = (0, _formatNumber.formatNumber)([format, value]);\n        } else if (typeof value === 'undefined') {\n          value = null; // null not undefined\n        }\n        table.push([(0, _object.get)(metric, 'meta.name'), value]);\n      });\n      return table;\n    })\n  }));\n});","define(\"portal/components/charts/gauge-chart\", [\"exports\", \"@ember/utils\", \"@ember/debug\", \"@ember/object\", \"ember-c3/components/c3-chart\", \"portal/helpers/format-number\"], function (_exports, _utils, _debug, _object, _c3Chart, _formatNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/debug\",0,\"@ember/object\",0,\"ember-c3/components/c3-chart\",0,\"portal/helpers/format-number\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _c3Chart.default.extend({\n    classNames: ['chart', 'chart--gauge'],\n    reverseColors: false,\n    min: 0,\n    max: 1,\n    label: '% of target',\n    data: (0, _object.computed)('metrics', 'period.type', 'target', function () {\n      const metrics = (0, _object.get)(this, 'metrics');\n      const target = (0, _object.get)(this, 'target');\n      const periodType = (0, _object.get)(this, 'period.type');\n      const columns = [];\n      if (!metrics || (0, _utils.isEmpty)(metrics)) {\n        (true && (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        (true && (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        (true && (0, _debug.warn)('No data provided to pie chart component.'));\n        return;\n      }\n      metrics.forEach(metric => {\n        let name = (0, _object.get)(metric, 'meta.name');\n        const value = (0, _object.get)(metric, `series.0.periods.0.periodTypes.${periodType}.value`) || 0;\n        if (markEmpty && !value) {\n          name += ' (no data)';\n        }\n        if (markNegative && value != null && value < 0) {\n          name += ' (negative)';\n        }\n        columns.push([name, value]);\n      });\n\n      // Sort by value\n      columns.sort((a, b) => b[1] - a[1]);\n      return {\n        type: 'pie',\n        columns\n      };\n    }),\n    size: {\n      height: 220\n    },\n    legend: {\n      position: 'right'\n    }\n  });\n});","define(\"portal/components/checklist\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _tracking, _service, _object, _emberChangeset, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content w-auto'\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{@onClose}}\n  >\n    <div class='modal-header'>\n      <h3 class='modal-title'>\n        {{t 'common.Checklist'}}\n      </h3>\n    </div>\n    <div class='modal-body' style='max-width: 768px'>\n      <p class='mt-0'>\n        {{t 'components.checklist.checklistExplanation'}}\n      </p>\n      <div class='bg-white border rounded checklist__container px-3'>\n        {{#each @checklist as |item|}}\n          <div class='d-flex align-items-center py-2'>\n            <label>\n              <Input\n                @type='checkbox'\n                class='form-check-input md-size-checkbox m-0'\n                disabled={{not @editable}}\n                @checked={{item.complete}}\n              />\n            </label>\n            <span\n              class='btn btn-link ms-3'\n              type='button'\n              {{on 'click' (fn this.editQuestion item)}}\n            >{{item.title}}</span>\n          </div>\n        {{else if (not @editable)}}\n          <div class='p-2'>{{t 'components.checklist.No checklist items'}}</div>\n        {{/each}}\n  \n        {{#if @editable}}\n          <div class='d-flex align-items-center py-2'>\n            <FaIcon @icon='plus' />\n            <Input\n              @type='text'\n              class='form-control ms-3 w-auto'\n              placeholder={{t 'common.Add'}}\n              @value={{this.newQuestionTitle}}\n              disabled={{not @editable}}\n              {{did-insert this.setFocus}}\n              {{on 'keypress' this.onChangeNewQuestionInput}}\n            />\n            {{#if this.newQuestionTitle.length}}\n              <button\n                type='button'\n                disabled={{not @editable}}\n                class='ms-2 text-light btn btn-secondary me-2'\n                {{on 'click' (perform this.addNewQuestion)}}\n              >{{t 'common.Add'}}</button>\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n    </div>\n    <div class='modal-footer text-right'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white text-nowrap m-1'\n        {{on 'click' @onClose}}\n      >\n        {{t 'common.Cancel'}}\n      </button>\n  \n      {{#if @editable}}\n        <button\n          type='button'\n          disabled={{this.isSaving}}\n          class='btn btn-primary text-nowrap m-1'\n          {{on 'click' (perform this.saveChecklist)}}\n        >\n          {{#if this.isSaving}}\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Saving'\n            }}&hellip;\n          {{else}}\n            {{t 'common.Save'}}\n          {{/if}}\n        </button>\n      {{/if}}\n    </div>\n  </ModalDialog>\n  \n  {{#if this.showEditQuestion}}\n    <ModalDialog\n      @containerClass='modal-content  w-auto'\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n    >\n      <div class='modal-body'>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Title'}}\n          @key='title'\n          @model={{this.question}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveQuestion.performCount 0}}\n          disabled={{or this.saveQuestion.isRunning (not @editable)}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Description'}}\n          @key='description'\n          @model={{this.question}}\n          @forceValidationVisible={{gt this.saveQuestion.performCount 0}}\n          disabled={{or this.saveQuestion.isRunning (not @editable)}}\n        />\n      </div>\n      <div\n        class='modal-footer d-flex align-items-center\n          {{if @editable \"justify-content-between\" \"justify-content-end\"}}'\n      >\n        {{#if @editable}}\n          <button\n            class='btn btn-link text-danger text-decoration-underline float-start'\n            type='button'\n            {{on 'click' (perform this.deleteQuestion)}}\n            disabled={{or\n              this.deleteQuestion.isRunning\n              this.saveQuestion.isRunning\n            }}\n          >\n            {{t 'common.Delete'}}\n          </button>\n        {{/if}}\n        <div>\n          <button\n            type='button'\n            class='btn btn-secondary text-white text-nowrap m-1'\n            {{on 'click' (fn (mut this.showEditQuestion) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          {{#if @editable}}\n            <button\n              type='button'\n              disabled={{or\n                this.deleteQuestion.isRunning\n                this.saveQuestion.isRunning\n              }}\n              class='btn btn-primary text-nowrap m-1'\n              {{on 'click' (perform this.saveQuestion)}}\n            >\n              {{#if this.saveQuestion.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"7KNJ7DpU\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",true,\\\"modal\\\",[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"common.Checklist\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-body\\\"],[14,5,\\\"max-width: 768px\\\"],[12],[1,\\\"\\\\n    \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"components.checklist.checklistExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"bg-white border rounded checklist__container px-3\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,2]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center py-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[24,0,\\\"form-check-input md-size-checkbox m-0\\\"],[16,\\\"disabled\\\",[28,[37,9],[[30,4]],null]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,3,[\\\"complete\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,1],[24,0,\\\"btn btn-link ms-3\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"editQuestion\\\"]],[30,3]],null]],null],[12],[1,[30,3,[\\\"title\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],[[[41,[28,[37,9],[[30,4]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"p-2\\\"],[12],[1,[28,[35,3],[\\\"components.checklist.No checklist items\\\"],null]],[13],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center py-2\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"\\\\n          \\\"],[8,[39,8],[[24,0,\\\"form-control ms-3 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,3],[\\\"common.Add\\\"],null]],[16,\\\"disabled\\\",[28,[37,9],[[30,4]],null]],[4,[38,15],[[30,0,[\\\"setFocus\\\"]]],null],[4,[38,11],[\\\"keypress\\\",[30,0,[\\\"onChangeNewQuestionInput\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"newQuestionTitle\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newQuestionTitle\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,9],[[30,4]],null]],[24,0,\\\"ms-2 text-light btn btn-secondary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"addNewQuestion\\\"]]],null]],null],[12],[1,[28,[35,3],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,4],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveChecklist\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isSaving\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,3],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showEditQuestion\\\"]],[[[1,\\\"  \\\"],[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\"],[\\\"modal-content  w-auto\\\",true,\\\"modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],[[16,\\\"disabled\\\",[28,[37,19],[[30,0,[\\\"saveQuestion\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,4]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,3],[\\\"common.Title\\\"],null],\\\"title\\\",[30,0,[\\\"question\\\"]],true,[28,[37,20],[[30,0,[\\\"saveQuestion\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,18],[[16,\\\"disabled\\\",[28,[37,19],[[30,0,[\\\"saveQuestion\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,4]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,3],[\\\"common.Description\\\"],null],\\\"description\\\",[30,0,[\\\"question\\\"]],[28,[37,20],[[30,0,[\\\"saveQuestion\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,0,[29,[\\\"modal-footer d-flex align-items-center\\\\n        \\\",[52,[30,4],\\\"justify-content-between\\\",\\\"justify-content-end\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,19],[[30,0,[\\\"deleteQuestion\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveQuestion\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"deleteQuestion\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[28,[37,21],[[30,0,[\\\"showEditQuestion\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,19],[[30,0,[\\\"deleteQuestion\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveQuestion\\\",\\\"isRunning\\\"]]],null]],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveQuestion\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveQuestion\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,3],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@onClose\\\",\\\"@checklist\\\",\\\"item\\\",\\\"@editable\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"label\\\",\\\"input\\\",\\\"not\\\",\\\"span\\\",\\\"on\\\",\\\"fn\\\",\\\"if\\\",\\\"fa-icon\\\",\\\"did-insert\\\",\\\"button\\\",\\\"perform\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"portal/components/checklist.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"showEditQuestion\", _descriptor6, this);\n      _initializerDefineProperty(this, \"question\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newQuestionTitle\", _descriptor8, this);\n      _defineProperty(this, \"validateTitle\", newValue => {\n        const title = newValue;\n        if (title.length > 255) {\n          return this.intl.t('validation.titleCannotBeLongerThan255Characters');\n        }\n        return title && title.length > 0 || this.intl.t('validation.Please provide a title');\n      });\n      _defineProperty(this, \"questionValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'title':\n            return this.validateTitle(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"validationMap\", {\n        title: this.validateTitle\n      });\n      _defineProperty(this, \"deleteQuestion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const questionId = this.question.get('id');\n          yield this.args.deleteQuestion.perform(questionId);\n          this.showEditQuestion = false;\n        }\n      }), null, \"deleteQuestion\", null));\n      _defineProperty(this, \"addNewQuestion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.args.addNewQuestion.perform(this.newQuestionTitle);\n          this.newQuestionTitle = '';\n        }\n      }), null, \"addNewQuestion\", null));\n      _defineProperty(this, \"saveQuestion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.question.validate();\n          if (!this.question.isValid) return;\n          yield this.question.save();\n          this.showEditQuestion = false;\n        }\n      }), null, \"saveQuestion\", null));\n      _defineProperty(this, \"saveChecklist\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield Promise.all(this.args.checklist.map(question => {\n              if (question.hasDirtyAttributes) {\n                return question.save();\n              }\n              return undefined;\n            }));\n            this.args.onClose();\n            this.notifications.success(this.intl.t('components.checklist.Successfully saved checklist'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.checklist.somethingWentWrongWhileSavingTheChecklist'),\n              error\n            });\n          }\n        }\n      }), null, \"saveChecklist\", null));\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.args.checklist.forEach(question => {\n        if (question.hasDirtyAttributes) {\n          question.rollbackAttributes();\n        }\n      });\n    }\n    editQuestion(question) {\n      this.question = (0, _emberChangeset.Changeset)(question, this.questionValidator, this.validationMap);\n      this.showEditQuestion = true;\n    }\n    get isSaving() {\n      return this.saveChecklist.isRunning;\n    }\n    setFocus(e) {\n      (0, _runloop.next)(() => {\n        e.focus();\n      });\n    }\n    onChangeNewQuestionInput(e) {\n      if (e.key === 'Enter' && e.target.value.length) {\n        this.addNewQuestion.perform();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"showEditQuestion\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"question\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"newQuestionTitle\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"editQuestion\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"editQuestion\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setFocus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setFocus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeNewQuestionInput\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeNewQuestionInput\"), _class.prototype), _class));\n});","define(\"portal/components/coa-editor-line\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/utils\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _object, _utils, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/utils\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='line'>\n    {{#if this.account.children.length}}\n      <button\n        class='float-start children text-button'\n        type='button'\n        {{action 'toggleHidingChildren'}}\n      >\n        <FaIcon @icon={{if this.hidingChildren 'caret-right' 'caret-down'}} />\n      </button>\n    {{/if}}\n  \n    <span class='label'><Input\n        placeholder='Account Name'\n        @value={{this.account.name}}\n        class='text-input'\n      /></span>\n  \n    <div class='controls'>\n      <button\n        class='text-button'\n        type='button'\n        {{action 'toggleIsEditingDescription'}}\n      >Description</button>\n      <SelectInput\n        @value={{this.account.debitCredit}}\n        @action={{fn (mut this.account.debitCredit)}}\n        @class='select-box'\n        as |si|\n      >\n        <si.option @value='CREDIT'>Cr</si.option>\n        <si.option @value='DEBIT'>Dr</si.option>\n      </SelectInput>\n  \n      <SelectInput\n        @value={{this.account.format}}\n        @action={{fn (mut this.account.format)}}\n        @class='select-box'\n        as |si|\n      >\n        <si.option @value='CURRENCY'>$</si.option>\n        <si.option @value='INTEGER'>Int</si.option>\n        <si.option @value='NUMBER'>#</si.option>\n        <si.option @value='PERCENTAGE'>%</si.option>\n      </SelectInput>\n  \n      <button\n        class='text-button text-button--delete'\n        type='button'\n        {{action 'deleteAccount' this.account}}\n      ><FaIcon @icon='trash' /></button>\n      <div class='handle'><FaIcon @icon='bars' /></div>\n      <button\n        class='addChild text-button'\n        type='button'\n        {{action 'createChildAccount' this.account}}\n      ><FaIcon @icon='plus' /></button>\n    </div>\n  \n    <div class='settings'>\n      <span class='drcr'>{{if\n          (eq this.account.debitCredit 'DEBIT')\n          'Dr'\n          'Cr'\n        }}</span>\n      <span class='format'>\n        {{if (eq this.account.format 'CURRENCY') '$'}}\n        {{if (eq this.account.format 'INTEGER') 'Int'}}\n        {{if (eq this.account.format 'NUMBER') '#'}}\n        {{if (eq this.account.format 'PERCENTAGE') '%'}}\n      </span>\n      {{! This is just to keep the spacing consistent }}\n      <button class='text-button text-button--delete' type='button'><FaIcon\n          @icon='trash'\n        /></button>\n      <div class='handle'><FaIcon @icon='bars' /></div>\n      <button class='addChild text-button' type='button'>\n        <FaIcon @icon='plus' /></button>\n    </div>\n  </div>\n  \n  {{#if this.account.children.length}}\n    {{#if this.hidingChildren}}{{else}}\n      <ol>\n        {{#each this.account.children as |childAccount|}}\n          <CoaEditorLine\n            @account={{childAccount}}\n            @deleteAccount={{action 'deleteAccount'}}\n            @createChildAccount={{action 'createChildAccount'}}\n          />\n        {{/each}}\n      </ol>\n    {{/if}}\n  {{/if}}\n  \n  {{#if this.isEditingDescription}}\n    <ModalDialog\n      @onClose={{action 'toggleIsEditingDescription'}}\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @containerClass='block-module'\n    >\n      <Textarea\n        @value={{this.account.description}}\n        class='account-description-editor'\n      />\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @class='float-end button button--spaced'\n          @isLoading={{this.isSavingDescription}}\n          @action={{action 'saveDescription'}}\n        >Save</LoadingButton>\n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action 'toggleIsEditingDescription'}}\n        >{{t 'common.Cancel'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"X13soPGj\",\n    \"block\": \"[[[10,0],[14,0,\\\"line\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"account\\\",\\\"children\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"float-start children text-button\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"toggleHidingChildren\\\"],null],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"hidingChildren\\\"]],\\\"caret-right\\\",\\\"caret-down\\\"]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,1],[14,0,\\\"label\\\"],[12],[8,[39,6],[[24,\\\"placeholder\\\",\\\"Account Name\\\"],[24,0,\\\"text-input\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"account\\\",\\\"name\\\"]]]],null],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"controls\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"toggleIsEditingDescription\\\"],null],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"account\\\",\\\"debitCredit\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"account\\\",\\\"debitCredit\\\"]]],null]],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CREDIT\\\"]],[[\\\"default\\\"],[[[[1,\\\"Cr\\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DEBIT\\\"]],[[\\\"default\\\"],[[[[1,\\\"Dr\\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[1]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,7],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"account\\\",\\\"format\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"account\\\",\\\"format\\\"]]],null]],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CURRENCY\\\"]],[[\\\"default\\\"],[[[[1,\\\"$\\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"INTEGER\\\"]],[[\\\"default\\\"],[[[[1,\\\"Int\\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"NUMBER\\\"]],[[\\\"default\\\"],[[[[1,\\\"#\\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"PERCENTAGE\\\"]],[[\\\"default\\\"],[[[[1,\\\"%\\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"deleteAccount\\\",[30,0,[\\\"account\\\"]]],null],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"handle\\\"],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"bars\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"addChild text-button\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"createChildAccount\\\",[30,0,[\\\"account\\\"]]],null],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"settings\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"drcr\\\"],[12],[1,[52,[28,[37,10],[[30,0,[\\\"account\\\",\\\"debitCredit\\\"]],\\\"DEBIT\\\"],null],\\\"Dr\\\",\\\"Cr\\\"]],[13],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"format\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[52,[28,[37,10],[[30,0,[\\\"account\\\",\\\"format\\\"]],\\\"CURRENCY\\\"],null],\\\"$\\\"]],[1,\\\"\\\\n      \\\"],[1,[52,[28,[37,10],[[30,0,[\\\"account\\\",\\\"format\\\"]],\\\"INTEGER\\\"],null],\\\"Int\\\"]],[1,\\\"\\\\n      \\\"],[1,[52,[28,[37,10],[[30,0,[\\\"account\\\",\\\"format\\\"]],\\\"NUMBER\\\"],null],\\\"#\\\"]],[1,\\\"\\\\n      \\\"],[1,[52,[28,[37,10],[[30,0,[\\\"account\\\",\\\"format\\\"]],\\\"PERCENTAGE\\\"],null],\\\"%\\\"]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"    \\\"],[10,\\\"button\\\"],[14,0,\\\"text-button text-button--delete\\\"],[14,4,\\\"button\\\"],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"handle\\\"],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"bars\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[10,\\\"button\\\"],[14,0,\\\"addChild text-button\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"account\\\",\\\"children\\\",\\\"length\\\"]],[[[1,\\\"  \\\"],[41,[30,0,[\\\"hidingChildren\\\"]],[[],[]],[[[1,\\\"\\\\n    \\\"],[10,\\\"ol\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"account\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@account\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[[30,3],[28,[37,3],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,3],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditingDescription\\\"]],[[[1,\\\"  \\\"],[8,[39,15],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[28,[37,3],[[30,0],\\\"toggleIsEditingDescription\\\"],null],true,\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,16],[[24,0,\\\"account-description-editor\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"account\\\",\\\"description\\\"]]]],null],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\"],[\\\"float-end button button--spaced\\\",[30,0,[\\\"isSavingDescription\\\"]],[28,[37,3],[[30,0],\\\"saveDescription\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"toggleIsEditingDescription\\\"],null],[12],[1,[28,[35,19],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"si\\\",\\\"childAccount\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"button\\\",\\\"action\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"input\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"eq\\\",\\\"ol\\\",\\\"each\\\",\\\"-track-array\\\",\\\"coa-editor-line\\\",\\\"modal-dialog\\\",\\\"textarea\\\",\\\"footer\\\",\\\"loading-button\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/coa-editor-line.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    notifications: (0, _service.inject)(),\n    hidingChildren: false,\n    tagName: 'li',\n    classNameBindings: ['account.children.length:heading'],\n    attributeBindings: ['id'],\n    id: (0, _object.computed)('account.tmpId', function () {\n      const tmpId = (0, _object.get)(this, 'account.tmpId');\n      return !(0, _utils.isEmpty)(tmpId) ? 'menuItem_' + tmpId : null;\n    }),\n    actions: {\n      deleteAccount(account) {\n        this.deleteAccount(account);\n      },\n      createChildAccount(account) {\n        this.createChildAccount(account);\n      },\n      toggleHidingChildren() {\n        this.toggleProperty('hidingChildren');\n      },\n      toggleIsEditingDescription() {\n        this.toggleProperty('isEditingDescription');\n      },\n      saveDescription() {\n        const account = (0, _object.get)(this, 'account');\n        const notifications = (0, _object.get)(this, 'notifications');\n        (0, _object.set)(this, 'isSavingDescription', true);\n        account.save().then(() => {\n          (0, _object.set)(this, 'isSavingDescription', false);\n          (0, _object.set)(this, 'isEditingDescription', false);\n          notifications.success('Account description was successfully saved.');\n        }, () => {\n          (0, _object.set)(this, 'isSavingDescription', false);\n          (0, _object.set)(this, 'isEditingDescription', false);\n          notifications.error(`Sorry, the account description failed to save.`);\n        });\n      }\n    }\n  }));\n});","define(\"portal/components/coa-editor\", [\"exports\", \"@ember/component\", \"jquery\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _jquery, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.nestedAccounts as |account|}}\n    <CoaEditorLine\n      @account={{account}}\n      @deleteAccount={{action 'deleteAccount'}}\n      @createChildAccount={{action 'createChildAccount'}}\n    />\n  {{else}}\n    <p class='ptl-placeholder'>This company has no accounts of this type.</p>\n  {{/each}}\n  */\n  {\n    \"id\": \"yJ4DF8us\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"nestedAccounts\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@account\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[[30,1],[28,[37,3],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,3],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"This company has no accounts of this type.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"account\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"coa-editor-line\\\",\\\"action\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/coa-editor.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'ol',\n    didInsertElement() {\n      this._super(...arguments);\n      (0, _jquery.default)(this.element).find('.line').hover(event => (0, _jquery.default)(event.target).addClass('hover'), event => (0, _jquery.default)(event.target).removeClass('hover'));\n      (0, _jquery.default)(this.element).nestedSortable({\n        handle: '.handle',\n        helper: 'clone',\n        items: 'li',\n        excludeRoot: true,\n        toleranceElement: '> div',\n        placeholder: 'dropzone',\n        update: this.updateList.bind(this)\n      });\n    },\n    updateList() {\n      var accounts = (0, _object.get)(this, 'accounts');\n      var nestingData = (0, _jquery.default)(this.element).nestedSortable('toArray');\n      accounts.beginPropertyChanges();\n      nestingData.forEach(line => {\n        var account = accounts.findBy('tmpId', line.item_id);\n        var parent = accounts.findBy('tmpId', line.parent_id);\n        if (account) {\n          (0, _object.set)(account, 'sortIndex', line.left);\n          (0, _object.set)(account, 'parent', parent);\n          var oldParent = (0, _object.get)(account, 'parent.tmpId');\n          if (oldParent !== (0, _object.get)(line, 'parent_id')) {\n            account.send('becomeDirty');\n          }\n        } else {\n          this.send('error', new Error(`Could not find account with id ${line.item_id}`));\n        }\n      });\n      nestingData.forEach(line => {\n        var account = accounts.findBy('tmpId', line.item_id);\n        var children = accounts.filterBy('parent.tmpId', line.item_id);\n        (0, _object.set)(account, 'isHeading', children.length > 0);\n      });\n      accounts.endPropertyChanges();\n    },\n    actions: {\n      deleteAccount(account) {\n        this.deleteAccount(account);\n      },\n      createChildAccount(account) {\n        this.createChildAccount(account);\n      }\n    }\n  }));\n});","define(\"portal/components/combo-box\", [\"exports\", \"@ember/component\", \"@ember/object\", \"jquery\", \"portal/components/combo-box\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _object, _jquery, _comboBox, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"jquery\",0,\"portal/components/combo-box\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{!-- {{input\n    class=(or @class 'text-input')\n    type='text'\n    value=@searchTerm\n    placeholder=(if\n      @finderVisible (or @searchPlaceholder 'Type to search…') @placeholder\n    )\n    keyDown=(action 'keyDown' bubbles=false)\n    keyUp=(action 'keyUp' bubbles=false)\n    click=(action 'setFinderVisible' true bubbles=false)\n    focusIn=(action 'setFinderVisible' true bubbles=false)\n    autocomplete='off'\n  }} --}}\n  \n  <Input\n    @type='text'\n    @value={{this.searchTerm}}\n    class={{or @class 'text-input'}}\n    placeholder={{if\n      this.finderVisible\n      (or @searchPlaceholder 'Type to search…')\n      @placeholder\n    }}\n    {{on 'keydown' (action 'keyDown' bubbles=false)}}\n    {{on 'keyup' (action 'keyUp' bubbles=false)}}\n    {{on 'click' (action 'setFinderVisible' true bubbles=false)}}\n    {{on 'focusin' (action 'setFinderVisible' true bubbles=false)}}\n    autocomplete='off'\n  />\n  \n  {{#if this.finderVisible}}\n    {{#unless @isLoading}}\n      {{#if this.filteredOptions.length}}\n        <div class='combo-box__drop-down'>\n          {{#each this.filteredOptions as |option index|}}\n            <div\n              class='combo-box__drop-down-row\n                {{if\n                  (eq index this.selectedRow)\n                  \"combo-box__drop-down-row--selected\"\n                }}\n                {{concat \"combo-box__drop-down-row--\" index}}'\n              onclick={{action 'setItem' index bubbles=false}}\n              onmouseover={{fn (mut this.selectedRow) index}}\n              onmouseout={{action 'unSetHighlight' index bubbles=false}}\n              data-test-combo-box-option={{index}}\n            >\n              {{or (get option @key) option}}\n            </div>\n          {{/each}}\n        </div>\n      {{else if (or @emptyText @emptyButtonAction)}}\n        <div class='combo-box__drop-down'>\n          <div class='combo-box__drop-down-row combo-box__drop-down-row--empty'>\n            {{#if @emptyText}}\n              <span class='text-button--spaced'>\n                {{@emptyText}}\n              </span>\n            {{/if}}\n  \n            {{#if @emptyButtonAction}}\n              <button\n                class='text-button text-button--spaced'\n                type='button'\n                {{action @emptyButtonAction bubbles=false}}\n              >\n                {{or @emptyButtonText 'Click to update'}}\n              </button>\n            {{/if}}\n          </div>\n        </div>\n      {{/if}}\n    {{else}}\n      <div class='combo-box__drop-down'>\n        <div class='combo-box__drop-down-row combo-box__drop-down-row--loading'>\n          <LoadingIcon @type='spinner' />\n        </div>\n      </div>\n    {{/unless}}\n  {{/if}}\n  */\n  {\n    \"id\": \"4p+zbZ2l\",\n    \"block\": \"[[[1,\\\"\\\\n\\\"],[8,[39,0],[[16,0,[28,[37,1],[[30,1],\\\"text-input\\\"],null]],[16,\\\"placeholder\\\",[52,[30,0,[\\\"finderVisible\\\"]],[28,[37,1],[[30,2],\\\"Type to search…\\\"],null],[30,3]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,3],[\\\"keydown\\\",[28,[37,4],[[30,0],\\\"keyDown\\\"],[[\\\"bubbles\\\"],[false]]]],null],[4,[38,3],[\\\"keyup\\\",[28,[37,4],[[30,0],\\\"keyUp\\\"],[[\\\"bubbles\\\"],[false]]]],null],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0],\\\"setFinderVisible\\\",true],[[\\\"bubbles\\\"],[false]]]],null],[4,[38,3],[\\\"focusin\\\",[28,[37,4],[[30,0],\\\"setFinderVisible\\\",true],[[\\\"bubbles\\\"],[false]]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchTerm\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"finderVisible\\\"]],[[[41,[51,[30,4]],[[[41,[30,0,[\\\"filteredOptions\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"combo-box__drop-down\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"filteredOptions\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,0],[15,0,[29,[\\\"combo-box__drop-down-row\\\\n              \\\",[52,[28,[37,9],[[30,6],[30,0,[\\\"selectedRow\\\"]]],null],\\\"combo-box__drop-down-row--selected\\\"],\\\"\\\\n              \\\",[28,[37,10],[\\\"combo-box__drop-down-row--\\\",[30,6]],null]]]],[15,\\\"onclick\\\",[28,[37,4],[[30,0],\\\"setItem\\\",[30,6]],[[\\\"bubbles\\\"],[false]]]],[15,\\\"onmouseover\\\",[28,[37,11],[[28,[37,12],[[30,0,[\\\"selectedRow\\\"]]],null],[30,6]],null]],[15,\\\"onmouseout\\\",[28,[37,4],[[30,0],\\\"unSetHighlight\\\",[30,6]],[[\\\"bubbles\\\"],[false]]]],[15,\\\"data-test-combo-box-option\\\",[30,6]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,1],[[28,[37,13],[[30,5],[30,7]],null],[30,5]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[[30,8],[30,9]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"combo-box__drop-down\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"combo-box__drop-down-row combo-box__drop-down-row--empty\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,8],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"text-button--spaced\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,8]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,9],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],[30,9]],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[[30,10],\\\"Click to update\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]],null]],[]]]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"combo-box__drop-down\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"combo-box__drop-down-row combo-box__drop-down-row--loading\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[\\\"@class\\\",\\\"@searchPlaceholder\\\",\\\"@placeholder\\\",\\\"@isLoading\\\",\\\"option\\\",\\\"index\\\",\\\"@key\\\",\\\"@emptyText\\\",\\\"@emptyButtonAction\\\",\\\"@emptyButtonText\\\"],false,[\\\"input\\\",\\\"or\\\",\\\"if\\\",\\\"on\\\",\\\"action\\\",\\\"unless\\\",\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"concat\\\",\\\"fn\\\",\\\"mut\\\",\\\"get\\\",\\\"span\\\",\\\"button\\\",\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/components/combo-box.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // to lower case\n  function tlc(string) {\n    return String(string).toLowerCase();\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _comboBox.default,\n    classNames: ['combo-box'],\n    finderVisible: false,\n    selectedRow: 0,\n    searchTerm: '',\n    // Things that need to happen once, when the element is created\n    didInsertElement() {\n      this._super(...arguments);\n      // capture click events and check if they are for our component\n      // if they are not, we can close the drop down\n      const element = (0, _object.get)(this, 'elementId');\n      (0, _jquery.default)(window).on('click', event => {\n        if ((0, _object.get)(this, 'finderVisible') && (0, _jquery.default)(`#${element}`).has(event.target).length === 0 && !(0, _jquery.default)(`#${element}`).is(event.target)) {\n          this.send('setFinderVisible', false);\n        }\n      });\n\n      // we need to set the value on the initial render\n      const activeValue = (0, _object.get)(this, 'activeDisplayName');\n      (0, _object.set)(this, 'searchTerm', activeValue);\n    },\n    // Things that need to happen once, when the element is destroyed\n    willDestroyElement() {\n      this._super(...arguments);\n      // remove our listener\n      (0, _jquery.default)(window).off('click');\n    },\n    // Things that need to happen every time the element is re-rendered\n    willRender() {\n      this._super(...arguments);\n      // We only want to set the value when the search is not being used and the value has changed\n      const finderNotVisible = !(0, _object.get)(this, 'finderVisible');\n      const activeValue = (0, _object.get)(this, 'activeDisplayName');\n      const searchTerm = (0, _object.get)(this, 'searchTerm');\n      if (finderNotVisible && activeValue !== searchTerm) {\n        (0, _object.set)(this, 'searchTerm', activeValue);\n      }\n    },\n    filteredOptions: (0, _object.computed)('key', 'options', 'searchTerm', function () {\n      const key = (0, _object.get)(this, 'key');\n      const searchTerm = (0, _object.get)(this, 'searchTerm');\n      const options = (0, _object.get)(this, 'options');\n      if (searchTerm) {\n        return options.filter(option => {\n          const searchableValue = typeof option === 'object' ? (0, _object.get)(option, key) : option;\n          return tlc(searchableValue).includes(tlc(searchTerm));\n        });\n      } else {\n        return options;\n      }\n    }),\n    activeDisplayName: (0, _object.computed)('key', 'options', 'value', function () {\n      const value = (0, _object.get)(this, 'value');\n      const key = (0, _object.get)(this, 'key');\n      if (typeof value !== 'object') {\n        // Verbatim if value is not an object\n        return value;\n      } else if (key && value) {\n        // value[key] if both key and value are truthy\n        return (0, _object.get)(value, key);\n      } else {\n        // Empty string if nothing else matches\n        return '';\n      }\n    }),\n    actions: {\n      setFinderVisible(visible) {\n        if ((0, _object.get)(this, 'finderVisible') !== visible && !this.isDestroyed && !this.isDestroying) (0, _object.set)(this, 'finderVisible', visible);\n      },\n      keyDown(event) {\n        const selectedRow = (0, _object.get)(this, 'selectedRow');\n        switch (event.keyCode) {\n          // down arrow\n          case 38:\n            this.send('setFinderVisible', true);\n            if (selectedRow > 0) {\n              const newSelectedRow = selectedRow - 1;\n              (0, _object.set)(this, 'selectedRow', newSelectedRow);\n              this.send('keepSelectedRowVisible', newSelectedRow);\n            }\n            break;\n          // up arrow\n          case 40:\n            this.send('setFinderVisible', true);\n            if (selectedRow + 1 < (0, _object.get)(this, 'filteredOptions.length')) {\n              const newSelectedRow = selectedRow + 1;\n              (0, _object.set)(this, 'selectedRow', newSelectedRow);\n              this.send('keepSelectedRowVisible', newSelectedRow);\n            }\n            break;\n          // enter\n          case 13:\n            if ((0, _object.get)(this, 'finderVisible')) this.send('setItem', selectedRow);\n            event.preventDefault();\n            break;\n          // tab\n          case 9:\n            this.send('setItem');\n            this.send('setFinderVisible', false);\n            break;\n          // escape\n          case 27:\n            this.send('setFinderVisible', false);\n            break;\n          // any other key\n          default:\n            (0, _object.set)(this, 'selectedRow', -1);\n            this.send('setItem', -1);\n            this.send('setFinderVisible', true);\n            break;\n        }\n      },\n      keyUp(event) {\n        if ([38, 40, 13, 9, 27].includes(event.keyCode)) return; // event has been handled\n\n        (0, _object.set)(this, 'selectedRow', -1);\n        this.send('setItem', -1);\n        this.send('setFinderVisible', true);\n      },\n      keepSelectedRowVisible(selectedRowIndex) {\n        const $row = (0, _jquery.default)(this.element).find('.combo-box__drop-down-row--' + selectedRowIndex);\n        const $container = (0, _jquery.default)(this.element).find('.combo-box__drop-down');\n        if ($row.position().top > $container.height()) {\n          $container.scrollTop($container.scrollTop() + $row.outerHeight());\n        } else if ($row.position().top < 0) {\n          $container.scrollTop($container.scrollTop() - $row.outerHeight());\n        }\n      },\n      unSetHighlight(index) {\n        if ((0, _object.get)(this, 'selectedRow') === index) (0, _object.set)(this, 'selectedRow', null);\n      },\n      setItem(index) {\n        (0, _runloop.next)(() => {\n          // when the index is negative, the new item value is in the searchTerm\n          const item = index >= 0 ? (0, _object.get)(this, 'filteredOptions').objectAt(index) : (0, _object.get)(this, 'searchTerm');\n          const key = (0, _object.get)(this, 'key');\n          if (typeof item === 'object') {\n            // this.args.onSet(key ? get(item, key) : item);\n            this.get('onSet')(key ? (0, _object.get)(item, key) : item);\n            // this.sendAction('onSet', key ? get(item, key) : item);\n          } else {\n            // this.args.onSet(item);\n            this.get('onSet')(item);\n            // this.sendAction('onSet', item);\n          }\n          if (index >= 0) this.send('setFinderVisible', false);\n        });\n      }\n    }\n  }));\n});","define(\"portal/components/combo-button\", [\"exports\", \"@ember/component\", \"portal/components/combo-button\", \"@ember/object/computed\", \"@ember/object\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _comboButton, _computed, _object, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"portal/components/combo-button\",0,\"@ember/object/computed\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='combo-button__container' tabindex='0'>\n    <div class='combo-button__button-container'>\n      <LoadingButton\n        @isLoading={{@isLoading}}\n        class={{concat\n          'combo-button__button-main '\n          (if @buttonClass @buttonClass)\n        }}\n        @action={{action 'onButtonClick'}}\n        @buttonText={{@buttonText}}\n      />\n  \n      <button\n        class='combo-button__button-side {{if @buttonClass @buttonClass}}'\n        disabled={{@isLoading}}\n        type='button'\n        {{action this.toggleProperty 'focused'}}\n      >\n        <FaIcon @icon='caret-down' />\n      </button>\n    </div>\n  \n    {{#if (has-block)}}\n      {{#if this.showDropdown}}\n        {{! template-lint-disable no-pointer-down-event-binding }}\n        <div\n          class='combo-button__overlaid-dropdown-container'\n          onmousedown={{action 'holdFocus'}}\n          ontouchstart={{action 'holdFocus'}}\n        >\n          {{#if this.title}}\n            <div\n              class='combo-button__overlaid-dropdown-title'\n            >{{this.title}}</div>\n          {{/if}}\n  \n          {{yield}}\n        </div>\n      {{/if}}\n    {{else}}\n      You provided no options! Use a regular button.\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"MM+bez+M\",\n    \"block\": \"[[[10,0],[14,0,\\\"combo-button__container\\\"],[14,\\\"tabindex\\\",\\\"0\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"combo-button__button-container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],[[16,0,[28,[37,2],[\\\"combo-button__button-main \\\",[52,[30,1],[30,1]]],null]]],[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[[30,2],[28,[37,4],[[30,0],\\\"onButtonClick\\\"],null],[30,3]]],null],[1,\\\"\\\\n\\\\n    \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"combo-button__button-side \\\",[52,[30,1],[30,1]]]]],[16,\\\"disabled\\\",[30,2]],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"focused\\\"],null],[12],[1,\\\"\\\\n      \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[48,[30,4]],[[[41,[30,0,[\\\"showDropdown\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"combo-button__overlaid-dropdown-container\\\"],[15,\\\"onmousedown\\\",[28,[37,4],[[30,0],\\\"holdFocus\\\"],null]],[15,\\\"ontouchstart\\\",[28,[37,4],[[30,0],\\\"holdFocus\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"title\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"combo-button__overlaid-dropdown-title\\\"],[12],[1,[30,0,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[18,4,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"    You provided no options! Use a regular button.\\\\n\\\"]],[]]],[13]],[\\\"@buttonClass\\\",\\\"@isLoading\\\",\\\"@buttonText\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"loading-button\\\",\\\"concat\\\",\\\"if\\\",\\\"action\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"has-block\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/combo-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _comboButton.default,\n    showDropdown: (0, _computed.or)('holdFocus', 'focused'),\n    focusOut() {\n      (0, _object.set)(this, 'focused', false);\n    },\n    actions: {\n      onButtonClick() {\n        (0, _object.set)(this, 'focused', false);\n        this.action();\n      },\n      /*\n       * Makes sure that the dropdown doesn't disappear if user clicks inside the dropdown.\n       * Holds the dropdown, waits for the blur event on the button, then focuses the button\n       * again and releases the hold so that the blur event can happen again.\n       */\n      holdFocus() {\n        // Keep dropdown visible\n        (0, _object.set)(this, 'holdFocus', true);\n        // Wait for blur event to occur\n        (0, _runloop.next)(() => {\n          // Set focused back to true\n          (0, _object.set)(this, 'focused', true);\n          // Release the hold on the dropdown being open\n          (0, _object.set)(this, 'holdFocus', false);\n        });\n      }\n    }\n  }));\n});","define(\"portal/components/confirm-delete\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @visible}}\n    <ModalDialog\n      @onClose={{perform this.onCancel}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n    >\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{@title}}\n        </h5>\n      </div>\n  \n      <div class='modal-body' data-test-confirm-delete-dialog>\n  \n        {{#if @messages.length}}\n          <div class='d-flex flex-column gap-2 mb-3'>\n            {{#each @messages as |message|}}\n              <p class='m-0'>{{message}}</p>\n            {{/each}}\n          </div>\n        {{/if}}\n        {{#if @confirmText}}\n          <label for='confirmDelete' class='mb-1'>\n            {{t\n              'common.toConfirmTypeConfirmTextInTheBoxBelow'\n              confirmText=@confirmText\n            }}:\n          </label>\n          <Input\n            id='confirmDelete'\n            @value={{this.confirmText}}\n            class='form-control'\n            @type='text'\n            autocomplete='off'\n            data-test-confirm-delete-confirm-text-input\n          />\n        {{/if}}\n  \n        {{yield}}\n      </div>\n      <footer class='modal-footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.onDelete.isRunning}}\n            {{on 'click' (perform this.onCancel)}}\n            data-test-confirm-delete-cancel-button\n          >{{t 'common.Cancel'}}</button>\n          <button\n            class='btn btn-danger text-white ms-2'\n            type='button'\n            data-test-confirm-delete-delete-button\n            disabled={{or (not this.allowDelete) this.onDelete.isRunning}}\n            {{on 'click' (perform this.onDelete)}}\n          >\n            {{#if this.onDelete.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{@deletingButtonText}}\n            {{else}}\n              {{@deleteButtonText}}\n            {{/if}}\n          </button>\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"UE1kdEnO\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\"],[[28,[37,2],[[30,0,[\\\"onCancel\\\"]]],null],\\\"modal-content w-auto\\\",true,\\\"modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,2]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[14,\\\"data-test-confirm-delete-dialog\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[30,3,[\\\"length\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-column gap-2 mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,3]],null]],null],null,[[[1,\\\"            \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,[30,4]],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,5],[[[1,\\\"        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"confirmDelete\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.toConfirmTypeConfirmTextInTheBoxBelow\\\"],[[\\\"confirmText\\\"],[[30,5]]]]],[1,\\\":\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,1,\\\"confirmDelete\\\"],[24,0,\\\"form-control\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[24,\\\"data-test-confirm-delete-confirm-text-input\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"confirmText\\\"]],\\\"text\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[18,8,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onDelete\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-confirm-delete-cancel-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"onCancel\\\"]]],null]],null],[12],[1,[28,[35,9],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[24,\\\"data-test-confirm-delete-delete-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,15],[[28,[37,16],[[30,0,[\\\"allowDelete\\\"]]],null],[30,0,[\\\"onDelete\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"onDelete\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onDelete\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[30,6]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[30,7]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"message\\\",\\\"@confirmText\\\",\\\"@deletingButtonText\\\",\\\"@deleteButtonText\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"perform\\\",\\\"div\\\",\\\"h5\\\",\\\"each\\\",\\\"-track-array\\\",\\\"p\\\",\\\"label\\\",\\\"t\\\",\\\"input\\\",\\\"yield\\\",\\\"footer\\\",\\\"button\\\",\\\"on\\\",\\\"or\\\",\\\"not\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/confirm-delete.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"confirmText\", _descriptor, this);\n      _defineProperty(this, \"onCancel\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.confirmText = '';\n          yield this.args.onCancel();\n        }\n      }), null, \"onCancel\", null));\n      _defineProperty(this, \"onDelete\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.args.onDelete();\n          } finally {\n            this.confirmText = '';\n          }\n        }\n      }), null, \"onDelete\", null));\n    }\n    get allowDelete() {\n      if (this.args.confirmText) return this.confirmText.toLowerCase().replace(/\\s/g, '') === this.args.confirmText.toLowerCase().replace(/\\s/g, '');\n      return true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"confirmText\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _class));\n});","define(\"portal/components/content-tabs\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1 d-flex align-items-center justify-content-start'>\n    {{#each @tabs as |tab|}}\n      <ContentTabs::Tab @tabName={{tab.name}} @route={{tab.route}} />\n    {{/each}}\n  </div>\n  {{yield}}\n  */\n  {\n    \"id\": \"tjo74Uni\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1 d-flex align-items-center justify-content-start\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,1]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@tabName\\\",\\\"@route\\\"],[[30,2,[\\\"name\\\"]],[30,2,[\\\"route\\\"]]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[13],[1,\\\"\\\\n\\\"],[18,3,null]],[\\\"@tabs\\\",\\\"tab\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"content-tabs/tab\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/content-tabs.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/content-tabs/tab\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LinkTo\n    @route={{@route}}\n    class='btn py-2 content-tab'\n    draggable={{false}}\n    data-test-content-tab-button\n  >\n    {{@tabName}}\n  </LinkTo>\n  */\n  {\n    \"id\": \"s1V9hxUG\",\n    \"block\": \"[[[8,[39,0],[[24,0,\\\"btn py-2 content-tab\\\"],[16,\\\"draggable\\\",false],[24,\\\"data-test-content-tab-button\\\",\\\"\\\"]],[[\\\"@route\\\"],[[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[1,[30,2]],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@route\\\",\\\"@tabName\\\"],false,[\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/components/content-tabs/tab.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/context-menu\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{yield\n    (hash\n      containerId=this.containerId\n      buttonId=this.buttonId\n      Menu=(component\n        'context-menu/menu'\n        targetPosition=this.targetPosition\n        direction=@direction\n        containerId=this.containerId\n      )\n    )\n  }}\n  */\n  {\n    \"id\": \"uxa6o8sw\",\n    \"block\": \"[[[18,2,[[28,[37,1],null,[[\\\"containerId\\\",\\\"buttonId\\\",\\\"Menu\\\"],[[30,0,[\\\"containerId\\\"]],[30,0,[\\\"buttonId\\\"]],[50,\\\"context-menu/menu\\\",0,null,[[\\\"targetPosition\\\",\\\"direction\\\",\\\"containerId\\\"],[[30,0,[\\\"targetPosition\\\"]],[30,1],[30,0,[\\\"containerId\\\"]]]]]]]]]]],[\\\"@direction\\\",\\\"&default\\\"],false,[\\\"yield\\\",\\\"hash\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"portal/components/context-menu.hbs\",\n    \"isStrictMode\": false\n  });\n  function getElement(id) {\n    return document.querySelector(`[context-menu=\"${id}\"]`);\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    clearTarget() {\n      this.longPressed = false;\n      this.targetPosition = null;\n    }\n    setTarget(x, y, withScroll = false) {\n      if (this.args.disabled) return;\n      this.targetPosition = {\n        x,\n        y,\n        withScroll\n      };\n    }\n    get menuVisible() {\n      return Boolean(this.targetPosition);\n    }\n    bindEvents() {\n      const container = getElement(this.containerId);\n      const button = getElement(this.buttonId);\n\n      // make sure the container is focusable\n      container.setAttribute('tabindex', '0');\n      this.containerContextMenuListener = this.onContainerContextMenu.bind(this);\n      container.addEventListener('contextmenu', this.containerContextMenuListener);\n      this.containerClickListener = this.onContainerClick.bind(this);\n      container.addEventListener('click', this.containerClickListener);\n      this.containerMouseDownListener = this.onContainerMouseDown.bind(this);\n      container.addEventListener('mousedown', this.containerMouseDownListener);\n      this.containerMouseUpListener = this.onContainerMouseUp.bind(this);\n      container.addEventListener('mouseup', this.containerMouseUpListener);\n      this.containerFocusOutListener = this.onContainerFocusOut.bind(this);\n      container.addEventListener('focusout', this.containerFocusOutListener);\n      if (button) {\n        this.buttonClickListener = this.onButtonClick.bind(this);\n        button.addEventListener('click', this.buttonClickListener);\n      }\n    }\n    removeEvents() {\n      const container = getElement(this.containerId);\n      const button = getElement(this.buttonId);\n      container.removeEventListener('contextmenu', this.containerContextMenuListener);\n      container.removeEventListener('click', this.containerClickListener);\n      container.removeEventListener('mousedown', this.containerMouseDownListener);\n      container.removeEventListener('mouseup', this.containerMouseUpListener);\n      container.removeEventListener('focusout', this.containerFocusOutListener);\n      if (button) {\n        button.removeEventListener('click', this.buttonClickListener);\n      }\n    }\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"containerId\", Math.random());\n      _defineProperty(this, \"buttonId\", Math.random());\n      _initializerDefineProperty(this, \"targetPosition\", _descriptor, this);\n      _initializerDefineProperty(this, \"longPressed\", _descriptor2, this);\n      _initializerDefineProperty(this, \"longPressTimeout\", _descriptor3, this);\n      _initializerDefineProperty(this, \"containerContextMenuListener\", _descriptor4, this);\n      _initializerDefineProperty(this, \"containerClickListener\", _descriptor5, this);\n      _initializerDefineProperty(this, \"containerMouseDownListener\", _descriptor6, this);\n      _initializerDefineProperty(this, \"containerMouseUpListener\", _descriptor7, this);\n      _initializerDefineProperty(this, \"containerFocusOutListener\", _descriptor8, this);\n      _initializerDefineProperty(this, \"buttonClickListener\", _descriptor9, this);\n      (0, _runloop.next)(() => {\n        this.bindEvents();\n      });\n    }\n\n    // TODO replace with when upgraded import { registerDestructor } from '@ember/destroyable';\n    willDestroyElement() {\n      this.removeEvents();\n      super.willDestroyElement(...arguments);\n    }\n    onContainerContextMenu(event) {\n      event.preventDefault();\n      event.stopPropagation();\n      if (this.menuVisible) {\n        this.clearTarget();\n        return;\n      }\n      this.setTarget(event.clientX, event.clientY);\n    }\n    onContainerClick(event) {\n      // if the menu is open, stop the click from propagating and close the menu\n      if (this.menuVisible) {\n        event.preventDefault();\n        event.stopPropagation();\n        if (!this.longPressed) {\n          this.clearTarget();\n        }\n        this.longPressed = false;\n      }\n    }\n    onContainerMouseDown(event) {\n      this.longPressTimeout = setTimeout(() => {\n        this.onContainerLongPress(event);\n      }, 1000);\n    }\n    onContainerMouseUp() {\n      clearTimeout(this.longPressTimeout);\n    }\n    onContainerLongPress(event) {\n      if (this.menuVisible) {\n        this.clearTarget();\n        return;\n      }\n      this.longPressed = true;\n      this.setTarget(event.clientX, event.clientY);\n    }\n    onButtonClick(event) {\n      event.preventDefault();\n      event.stopPropagation();\n      if (this.menuVisible) {\n        this.clearTarget();\n        return;\n      }\n      const button = getElement(this.buttonId);\n      const buttonRect = button.getBoundingClientRect();\n      const bottomRightX = buttonRect.right + window.scrollX;\n      const bottomRightY = buttonRect.bottom + window.scrollY;\n      this.setTarget(bottomRightX, bottomRightY, true);\n\n      // ensure container gets focused when clicking the button\n      const container = getElement(this.containerId);\n      container.focus();\n    }\n    onContainerFocusOut(event) {\n      (0, _runloop.next)(() => {\n        const container = getElement(this.containerId);\n        const button = getElement(this.buttonId);\n        if (container && container.contains(event.relatedTarget)) return;\n        if (button && button.contains(event.relatedTarget)) return;\n        this.clearTarget();\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"targetPosition\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"longPressed\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"longPressTimeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"containerContextMenuListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"containerClickListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"containerMouseDownListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"containerMouseUpListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"containerFocusOutListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"buttonClickListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class));\n});","define(\"portal/components/context-menu/menu\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _runloop, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @targetPosition}}\n    <div\n      {{did-insert this.positionMenuFixed @targetPosition}}\n      class='context-menu__menu-container position-fixed card shadow d-flex flex-column py-2'\n    >\n      {{yield}}\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"d6ZmaSaS\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"context-menu__menu-container position-fixed card shadow d-flex flex-column py-2\\\"],[4,[38,2],[[30,0,[\\\"positionMenuFixed\\\"]],[30,1]],null],[12],[1,\\\"\\\\n    \\\"],[18,2,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@targetPosition\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"div\\\",\\\"did-insert\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/context-menu/menu.hbs\",\n    \"isStrictMode\": false\n  });\n  function getElement(id) {\n    return document.querySelector(`[context-menu=\"${id}\"]`);\n  }\n  function px(number) {\n    return number + 'px';\n  }\n  function parsePx(pxValue) {\n    return pxValue ? parseInt(pxValue, 10) : 0;\n  }\n  function isVisible(width, height, {\n    top,\n    right,\n    bottom,\n    left\n  }) {\n    // check top\n    if (top !== undefined && (top < 0 || top + height > window.innerHeight)) {\n      return false;\n    }\n\n    // check right\n    if (right !== undefined && (right < 0 || right + width > window.innerWidth)) {\n      return false;\n    }\n\n    // check bottom\n    if (bottom !== undefined && (bottom < 0 || bottom + height > window.innerHeight)) {\n      return false;\n    }\n\n    // check left\n    if (left !== undefined && (left < 0 || left + width > window.innerWidth)) {\n      return false;\n    }\n    return true;\n  }\n  function findFirstScrollableParent(element) {\n    let parent = element.parentElement;\n    while (parent) {\n      // this handles all scroll styles i.e scroll: auto, scroll-y: auto\n      const overflowY = getComputedStyle(parent).getPropertyValue('overflow-y');\n      const hasScrollStyle = overflowY === 'auto' || overflowY === 'scroll';\n      if (hasScrollStyle) return parent;\n      parent = parent.parentElement;\n    }\n    return parent;\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"scrollParentScrollListener\", _descriptor, this);\n      _initializerDefineProperty(this, \"containerFocusOutListener\", _descriptor2, this);\n      _initializerDefineProperty(this, \"initialPosition\", _descriptor3, this);\n    }\n    onScroll(menuElement, parentElement) {\n      if (!this.initialPosition) {\n        const rect = menuElement.getBoundingClientRect();\n        const parentRect = parentElement.getBoundingClientRect();\n        this.initialPosition = {\n          top: rect.top - parentRect.top,\n          left: rect.left - parentRect.left\n        };\n      }\n      const parentRect = parentElement.getBoundingClientRect();\n      menuElement.style.top = px(parentRect.top + this.initialPosition.top - parentElement.scrollTop);\n      menuElement.style.left = px(parentRect.left + this.initialPosition.left - parentElement.scrollLeft);\n    }\n    onContainerFocusOut(scrollParent) {\n      scrollParent.removeEventListener('scroll', this.scrollParentScrollListener);\n    }\n    positionMenuFixed(menuElement, [targetPosition]) {\n      // don't give people direction options with the context menu\n      const direction = targetPosition.withScroll ? this.args.direction || 'bottom-right' : 'bottom-right';\n\n      // reset styles\n      this.initialPosition = null;\n      menuElement.style.removeProperty('top');\n      menuElement.style.removeProperty('right');\n      menuElement.style.removeProperty('bottom');\n      menuElement.style.removeProperty('left');\n      function positionMenuFixed(direction, originalDirection) {\n        const {\n          x,\n          y\n        } = targetPosition;\n        let checkedAllDirections = false;\n        if (!originalDirection) {\n          originalDirection = direction;\n        } else {\n          checkedAllDirections = direction === originalDirection;\n        }\n        const margin = 5;\n        const menuRect = menuElement.getBoundingClientRect();\n        const menuStyle = window.getComputedStyle(menuElement);\n        const menuOuterWidth = menuRect.width + parsePx(menuStyle.borderLeftWidth) + parsePx(menuStyle.paddingLeft) + parsePx(menuStyle.borderRightWidth) + parsePx(menuStyle.paddingRight);\n        const menuOuterHeight = menuRect.height + parsePx(menuStyle.borderTopWidth) + parsePx(menuStyle.paddingTop) + parsePx(menuStyle.borderBottomWidth) + parsePx(menuStyle.paddingBottom);\n        switch (direction) {\n          case 'top':\n            {\n              // position above the target, centered horizontally\n              const bottom = window.innerHeight - y + margin;\n              const left = x - menuOuterWidth / 2;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                bottom,\n                left\n              })) {\n                return positionMenuFixed('top-right', originalDirection);\n              }\n              menuElement.style.bottom = px(bottom);\n              menuElement.style.left = px(left);\n              break;\n            }\n          case 'top-right':\n            {\n              // position above the target, left edge aligned with target.x\n              const bottom = window.innerHeight - y;\n              const left = x + margin;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                bottom,\n                left\n              })) {\n                return positionMenuFixed('right', originalDirection);\n              }\n              menuElement.style.bottom = px(bottom);\n              menuElement.style.left = px(left);\n              break;\n            }\n          case 'right':\n            {\n              // position to the right of the target, centered vertically\n              const left = x + margin;\n              const top = y - menuRect.height / 2;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                left,\n                top\n              })) {\n                return positionMenuFixed('bottom-right', originalDirection);\n              }\n              menuElement.style.left = px(left);\n              menuElement.style.top = px(top);\n              break;\n            }\n          case 'bottom-right':\n            {\n              // position below the target, left edge aligned with target.x\n              const top = y;\n              const left = x + margin;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                top,\n                left\n              })) {\n                return positionMenuFixed('bottom', originalDirection);\n              }\n              menuElement.style.top = px(top);\n              menuElement.style.left = px(left);\n              break;\n            }\n          case 'bottom':\n            {\n              // position below the target, centered horizontally\n              const top = y + margin;\n              const left = x - menuOuterWidth / 2;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                top,\n                left\n              })) {\n                return positionMenuFixed('bottom-left', originalDirection);\n              }\n              menuElement.style.top = px(top);\n              menuElement.style.left = px(left);\n              break;\n            }\n          case 'bottom-left':\n            {\n              // position below the target, right edge aligned with target.x\n              const top = y;\n              const right = window.innerWidth - x + margin;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                top,\n                right\n              })) {\n                return positionMenuFixed('left', originalDirection);\n              }\n              menuElement.style.top = px(top);\n              menuElement.style.right = px(right);\n              break;\n            }\n          case 'left':\n            {\n              // position to the left of the target, centered vertically\n              const right = window.innerWidth - x + margin;\n              const top = y - menuRect.height / 2;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                right,\n                top\n              })) {\n                return positionMenuFixed('top-left', originalDirection);\n              }\n              menuElement.style.right = px(right);\n              menuElement.style.top = px(top);\n              break;\n            }\n          case 'top-left':\n            {\n              // position above the target, right edge aligned with target.x\n              const bottom = window.innerHeight - y;\n              const right = window.innerWidth - x + margin;\n              if (!checkedAllDirections && !isVisible(menuOuterWidth, menuOuterHeight, {\n                bottom,\n                right\n              })) {\n                return positionMenuFixed('top', originalDirection);\n              }\n              menuElement.style.bottom = px(bottom);\n              menuElement.style.right = px(right);\n              break;\n            }\n          default:\n            return positionMenuFixed('bottom-right');\n        }\n      }\n      positionMenuFixed(direction);\n\n      // bind our position to the scroll\n      if (targetPosition.withScroll) {\n        (0, _runloop.next)(() => {\n          const container = getElement(this.args.containerId);\n          const scrollParent = findFirstScrollableParent(menuElement);\n          this.scrollParentScrollListener = this.onScroll.bind(this, menuElement, scrollParent);\n          scrollParent.addEventListener('scroll', this.scrollParentScrollListener, {\n            passive: true\n          });\n          this.containerFocusOutListener = this.onContainerFocusOut.bind(this, scrollParent);\n          container.addEventListener('focusout', this.containerFocusOutListener);\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"scrollParentScrollListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"containerFocusOutListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"initialPosition\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"positionMenuFixed\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"positionMenuFixed\"), _class.prototype), _class));\n});","define(\"portal/components/dashboard-item\", [\"exports\", \"@ember/component\", \"@ember/service\"], function (_exports, _component, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/components/dashboard-item/card\", [\"exports\", \"@ember/component\", \"portal/components/dashboard-item\", \"@ember/template-factory\"], function (_exports, _component, _dashboardItem, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/dashboard-item\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.module.icon}}\n    <div class='dashboard-item-card__icon'>\n      <FaIcon @icon={{this.module.icon}} />\n    </div>\n  {{else if this.module.logo}}\n    <img src={{this.module.logo}} alt='Logo' class='dashboard-item-card__logo' />\n  {{/if}}\n  \n  <div class='dashboard-item-card__text'>\n    {{#if this.module.brand}}\n      <div class='dashboard-item-card__brand'>{{this.module.brand}}</div>\n    {{/if}}\n  \n    {{#if this.module.name}}\n      <div class='dashboard-item-card__title'>{{this.module.name}}</div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"xj9wqOaD\",\n    \"block\": \"[[[41,[30,0,[\\\"module\\\",\\\"icon\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"dashboard-item-card__icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[[30,0,[\\\"module\\\",\\\"icon\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"module\\\",\\\"logo\\\"]],[[[1,\\\"  \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[30,0,[\\\"module\\\",\\\"logo\\\"]]],[14,\\\"alt\\\",\\\"Logo\\\"],[14,0,\\\"dashboard-item-card__logo\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"dashboard-item-card__text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"brand\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-card__brand\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"brand\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"name\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-card__title\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[],false,[\\\"if\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"img\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard-item/card.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _dashboardItem.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"classNames\", ['dashboard-item-card__container']);\n    }\n  });\n});","define(\"portal/components/dashboard-item/icon\", [\"exports\", \"@ember/component\", \"portal/components/dashboard-item\", \"@ember/template-factory\"], function (_exports, _component, _dashboardItem, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/dashboard-item\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.module.icon}}\n    <div class='dashboard-item-icon__icon'>\n      <FaIcon @icon={{this.module.icon}} />\n    </div>\n  {{else if this.module.logo}}\n    <img src={{this.module.logo}} alt='Logo' class='dashboard-item-icon__logo' />\n  {{/if}}\n  \n  <div class='dashboard-item-icon__text'>\n    {{#if this.module.brand}}\n      <div class='dashboard-item-icon__brand'>{{this.module.brand}}</div>\n    {{/if}}\n  \n    {{#if this.module.name}}\n      <div class='dashboard-item-icon__title'>{{this.module.name}}</div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"gTjwCiTr\",\n    \"block\": \"[[[41,[30,0,[\\\"module\\\",\\\"icon\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"dashboard-item-icon__icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[[30,0,[\\\"module\\\",\\\"icon\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"module\\\",\\\"logo\\\"]],[[[1,\\\"  \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[30,0,[\\\"module\\\",\\\"logo\\\"]]],[14,\\\"alt\\\",\\\"Logo\\\"],[14,0,\\\"dashboard-item-icon__logo\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"dashboard-item-icon__text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"brand\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-icon__brand\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"brand\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"name\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-icon__title\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[],false,[\\\"if\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"img\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard-item/icon.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _dashboardItem.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"classNames\", ['dashboard-item-icon__container']);\n    }\n  });\n});","define(\"portal/components/dashboard-item/module\", [\"exports\", \"@ember/component\", \"portal/components/dashboard-item\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _dashboardItem, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/dashboard-item\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.module.badge}}\n    <div class='badge bg-info dashboard-item-module__badge'>\n      {{this.module.badge}}\n    </div>\n  {{/if}}\n  {{#if this.module.icon}}\n    <div class='dashboard-item-module__icon'>\n      <FaIcon @icon={{this.module.icon}} @size='2x' />\n    </div>\n  {{else if this.module.logo}}\n    <img\n      src={{this.module.logo}}\n      alt='Logo'\n      class='dashboard-item-module__logo'\n    />\n  {{/if}}\n  \n  <div class='dashboard-item-module__text'>\n    {{#if this.module.brand}}\n      <div class='dashboard-item-module__brand'>{{this.module.brand}}</div>\n    {{/if}}\n  \n    {{#if this.module.name}}\n      <div class='dashboard-item-module__title'>\n        {{#if this.active}}\n          {{this.module.name}}\n        {{else}}\n          {{ellipsis-characters this.module.name 20}}\n        {{/if}}\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"ydIjCLqd\",\n    \"block\": \"[[[41,[30,0,[\\\"module\\\",\\\"badge\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"badge bg-info dashboard-item-module__badge\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"module\\\",\\\"badge\\\"]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"module\\\",\\\"icon\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"dashboard-item-module__icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@icon\\\",\\\"@size\\\"],[[30,0,[\\\"module\\\",\\\"icon\\\"]],\\\"2x\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"module\\\",\\\"logo\\\"]],[[[1,\\\"  \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[30,0,[\\\"module\\\",\\\"logo\\\"]]],[14,\\\"alt\\\",\\\"Logo\\\"],[14,0,\\\"dashboard-item-module__logo\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"dashboard-item-module__text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"brand\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-module__brand\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"brand\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"name\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"dashboard-item-module__title\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"active\\\"]],[[[1,\\\"        \\\"],[1,[30,0,[\\\"module\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,4],[[30,0,[\\\"module\\\",\\\"name\\\"]],20],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[],false,[\\\"if\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"img\\\",\\\"ellipsis-characters\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard-item/module.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _dashboardItem.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"classNames\", ['dashboard-item-module__container']);\n      _defineProperty(this, \"active\", false);\n    }\n    mouseEnter() {\n      (0, _object.set)(this, 'active', true);\n    }\n    mouseLeave() {\n      (0, _object.set)(this, 'active', false);\n    }\n  });\n});","define(\"portal/components/dashboard/config-modal\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object/evented\", \"@ember/utils\", \"jquery\", \"@ember/object\", \"@ember/object/computed\", \"portal/models/account\", \"portal/models/kpi\", \"portal/models/entity\", \"portal/models/entity-group\", \"@ember/template-factory\"], function (_exports, _component, _service, _evented, _utils, _jquery, _object, _computed, _account, _kpi, _entity, _entityGroup, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object/evented\",0,\"@ember/utils\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/component\",0,\"portal/models/account\",0,\"portal/models/kpi\",0,\"portal/models/entity\",0,\"portal/models/entity-group\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{action 'back'}}\n    @containerClass='block-module dashboard-module-config'\n  >\n    <header class='block-module__header'>\n      <button\n        class='float-end button button--plain'\n        type='button'\n        {{action 'onClose'}}\n      ><FaIcon @icon='times' /></button>\n      <h1 class='h1'>Edit your module</h1>\n    </header>\n  \n    <div class='dashboard-module-config-steps'>\n  \n      <section class='active'>\n        <h3 class='h3 text-center'>Display settings</h3>\n  \n        <section class='config-modal__section'>\n          <label class='config-modal__section-heading' for='module-title'>Module\n            title</label>\n          <Input\n            class='text-input'\n            @value={{this.module.title}}\n            placeholder='Untitled'\n          />\n        </section>\n  \n        <section class='config-modal__section'>\n          <label class='config-modal__section-heading'>Module type</label>\n  \n          <div class='selector'>\n            <label>\n              <RadioButton\n                @class='radio-button'\n                @checked={{this.module.visualiser}}\n                @value='data-table'\n              />\n              Table\n            </label>\n            <label>\n              <RadioButton\n                @class='radio-button'\n                @checked={{this.module.visualiser}}\n                @value='line-chart'\n              />\n              Line chart\n            </label>\n            <label>\n              <RadioButton\n                @class='radio-button'\n                @checked={{this.module.visualiser}}\n                @value='pie-chart'\n              />\n              Pie chart\n            </label>\n          </div>\n        </section>\n  \n        <section class='config-modal__section'>\n          <label class='config-modal__section-heading'>Data period</label>\n  \n          <div class='selector'>\n            <label>\n              <RadioButton\n                @class='radio-button'\n                @checked={{this.module.periodType}}\n                @value='month'\n              />\n              Monthly\n            </label>\n            <label>\n              <RadioButton\n                @class='radio-button'\n                @checked={{this.module.periodType}}\n                @value='ytd'\n              />\n              Year to date\n            </label>\n          </div>\n        </section>\n      </section>\n  \n      <section>\n        <h3 class='h3 text-center'>Metrics</h3>\n  \n        <div class='selector'>\n          <h4 class='h4'>\n            <a class='tree-branch' {{action 'toggleTree' 'kpis'}}>\n              <FaIcon\n                @icon={{if this.treeExpansion.kpis 'caret-down' 'caret-right'}}\n              />\n              KPIs\n            </a>\n          </h4>\n          {{#if this.treeExpansion.kpis}}\n            {{#unless this.singleMetric}}\n              <Multiselect-checkboxes\n                @options={{this.data.kpis}}\n                @labelProperty='name'\n                @selection={{this.selectedKpis}}\n                @onchange={{action 'updateKpis'}}\n              />\n            {{else}}\n              {{#each this.data.kpis as |kpi|}}\n                <label>\n                  <RadioButton\n                    @class='radio-button'\n                    @name='metric'\n                    @checked={{this.selectedMetric}}\n                    @value={{kpi}}\n                  />\n                  {{kpi.name}}\n                </label>\n              {{else}}\n                <p class='ptl-placeholder'>No KPIs available</p>\n              {{/each}}\n            {{/unless}}\n          {{/if}}\n  \n          <h4 class='h4'>\n            <a class='tree-branch' {{action 'toggleTree' 'profitAndLoss'}}>\n              <FaIcon\n                @icon={{if\n                  this.treeExpansion.profitAndLoss\n                  'caret-down'\n                  'caret-right'\n                }}\n              />\n              Profit &amp; Loss\n            </a>\n          </h4>\n  \n          {{#if this.treeExpansion.profitAndLoss}}\n            {{#unless this.singleMetric}}\n              <Multiselect-checkboxes\n                @options={{this.accounts.profitAndLoss}}\n                @labelProperty='name'\n                @selection={{this.selectedAccounts}}\n                @onchange={{action 'updateAccounts'}}\n                as |account isSelected|\n              >\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <Input\n                    @type='checkbox'\n                    class='checkbox'\n                    @checked={{isSelected}}\n                  />\n                  {{account.name}}\n                </label>\n              </Multiselect-checkboxes>\n            {{else}}\n              {{#each this.accounts.profitAndLoss as |account|}}\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <RadioButton\n                    @class='radio-button'\n                    @name='metric'\n                    @checked={{this.selectedMetric}}\n                    @value={{account}}\n                  />\n                  {{account.name}}\n                </label>\n              {{else}}\n                <p class='ptl-placeholder'>No profit and loss accounts available</p>\n              {{/each}}\n            {{/unless}}\n          {{/if}}\n  \n          <h4 class='h4'>\n            <a class='tree-branch' {{action 'toggleTree' 'balanceSheet'}}>\n              <FaIcon\n                @icon={{if\n                  this.treeExpansion.balanceSheet\n                  'caret-down'\n                  'caret-right'\n                }}\n              />\n              Balance Sheet\n            </a>\n          </h4>\n  \n          {{#if this.treeExpansion.balanceSheet}}\n            {{#unless this.singleMetric}}\n              <Multiselect-checkboxes\n                @options={{this.accounts.balanceSheet}}\n                @labelProperty='name'\n                @selection={{this.selectedAccounts}}\n                @onchange={{action 'updateAccounts'}}\n                as |account isSelected|\n              >\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <Input @type='checkbox' @checked={{isSelected}} />\n                  {{account.name}}\n                </label>\n              </Multiselect-checkboxes>\n            {{else}}\n              {{#each this.accounts.balanceSheet as |account|}}\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <RadioButton\n                    @class='radio-button'\n                    @name='metric'\n                    @checked={{this.selectedMetric}}\n                    @value={{account}}\n                  />\n                  {{account.name}}\n                </label>\n              {{else}}\n                <p class='ptl-placeholder'>No balance sheet accounts available</p>\n              {{/each}}\n            {{/unless}}\n          {{/if}}\n  \n          <h4 class='h4'>\n            <a class='tree-branch' {{action 'toggleTree' 'otherData'}}>\n              <FaIcon\n                @icon={{if\n                  this.treeExpansion.otherData\n                  'caret-down'\n                  'caret-right'\n                }}\n              />\n              Other Data\n            </a>\n          </h4>\n  \n          {{#if this.treeExpansion.otherData}}\n            {{#unless this.singleMetric}}\n              <Multiselect-checkboxes\n                @options={{this.accounts.otherData}}\n                @labelProperty='name'\n                @selection={{this.selectedAccounts}}\n                @onchange={{action 'updateAccounts'}}\n                as |account isSelected|\n              >\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <Input @type='checkbox' @checked={{isSelected}} />\n                  {{account.name}}\n                </label>\n              </Multiselect-checkboxes>\n            {{else}}\n              {{#each this.accounts.otherData as |account|}}\n                <label\n                  class='depth-{{account.depth}}\n                    {{if account.isHeading \"heading\"}}'\n                >\n                  <RadioButton\n                    @name='metric'\n                    @checked={{this.selectedMetric}}\n                    @value={{account}}\n                  />\n                  {{account.name}}\n                </label>\n              {{else}}\n                <p class='ptl-placeholder'>No other data accounts available</p>\n              {{/each}}\n            {{/unless}}\n          {{/if}}\n        </div>\n      </section>\n  \n      <section>\n        <h3 class='h3 text-center'>Series</h3>\n  \n        <div class='selector'>\n          {{#if this.canAccessEntities}}\n            <h4 class='h4'>\n              <a class='tree-branch' {{action 'toggleTree' 'entities'}}>\n                <FaIcon\n                  @icon={{if\n                    this.treeExpansion.entities\n                    'caret-down'\n                    'caret-right'\n                  }}\n                />\n                Branches\n              </a>\n            </h4>\n            {{#if this.treeExpansion.entities}}\n              {{#if this.multipleSeries}}\n                <label class={{concat 'depth-' this.branch.depth}}>\n                  <Input\n                    @type='checkbox'\n                    @checked={{this.module.includeCurrentEntity}}\n                  />\n                  {{#if this.canAccessMultipleEntities}}\n                    Current branch<br />\n                    <span class='subtext'>The module will adapt to whichever\n                      branch you are currently viewing.</span>\n                  {{else}}\n                    {{this.sessionData.entity.name}}\n                  {{/if}}\n                </label>\n  \n                {{#if this.canAccessMultipleEntities}}\n                  <Multiselect-checkboxes\n                    tagName='div'\n                    @options={{this.data.entities}}\n                    @labelProperty='name'\n                    @selection={{this.selectedEntities}}\n                    @onchange={{action 'updateEntities'}}\n                  />\n                {{/if}}\n              {{else}}\n                <label class={{concat 'depth-' this.branch.depth}}>\n                  <RadioButton\n                    @name='metric'\n                    @checked={{this.selectedSeries}}\n                    @value='current'\n                  />\n                  {{#if this.canAccessMultipleEntities}}\n                    Current branch<br />\n                    <span class='subtext'>The module will adapt to whichever\n                      branch you are currently viewing.</span>\n                  {{else}}\n                    {{this.sessionData.entity.name}}\n                  {{/if}}\n                </label>\n                {{#if this.canAccessMultipleBranches}}\n                  data:\n                  {{this.data}}\n                  data.entities :\n                  {{this.data.entities}}\n                  {{#each this.data.entities as |entity|}}\n                    <label class={{concat 'depth-' entity.depth}}>\n                      <RadioButton\n                        @name='metric'\n                        @checked={{this.selectedSeries}}\n                        @value={{entity}}\n                      />\n                      {{entity.name}}\n                    </label>\n                  {{else}}\n                    <p class='ptl-placeholder'>No branches available</p>\n                  {{/each}}\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          {{/if}}\n  \n          {{#if this.canAccessEntityGroups}}\n            <h4 class='h4'>\n              <a class='tree-branch' {{action 'toggleTree' 'entityGroups'}}>\n                <FaIcon\n                  @icon={{if\n                    this.treeExpansion.entityGroups\n                    'caret-down'\n                    'caret-right'\n                  }}\n                />Groups\n              </a>\n            </h4>\n  \n            {{#if this.treeExpansion.entityGroups}}\n              {{#if this.multipleSeries}}\n                <Multiselect-checkboxes\n                  @options={{this.data.entityGroups}}\n                  @labelProperty='name'\n                  @selection={{this.selectedEntityGroups}}\n                  @onchange={{action 'updateEntityGroups'}}\n                />\n              {{else}}\n                {{#each this.data.entityGroups as |group|}}\n                  <label class={{concat 'depth-' group.depth}}>\n                    <RadioButton\n                      @name='metric'\n                      @checked={{this.selectedSeries}}\n                      @value={{group}}\n                    />\n                    {{group.name}}\n                  </label>\n                {{else}}\n                  <p class='ptl-placeholder'>No groups available</p>\n                {{/each}}\n              {{/if}}\n            {{/if}}\n          {{/if}}\n        </div>\n      </section>\n    </div>\n  \n    <footer class='block-module__footer'>\n      <button\n        class='text-button text-button--delete'\n        type='button'\n        {{action 'toggleIsDeleting'}}\n      >Delete module…</button>\n      <button\n        class='button button--spaced float-end'\n        type='button'\n        {{action 'advance'}}\n      >\n        {{#if this.isLastStep}}\n          Finish\n        {{else}}\n          Next &nbsp;\n          <FaIcon @icon='caret-right' />\n        {{/if}}</button>\n      <button\n        class='button button--spaced float-end'\n        disabled={{if this.isFirstStep 'disabled' null}}\n        type='button'\n        {{action 'back'}}\n      ><FaIcon @icon='caret-left' />&nbsp; Back</button>\n    </footer>\n  \n    {{#if this.isDeleting}}\n      <ModalDialog\n        @overlayClass='modal'\n        @translucentOverlay={{true}}\n        @containerClass='block-module'\n        @onClose={{action 'toggleIsDeleting'}}\n      >\n        <p>Are you sure you want to delete this module? This action cannot be\n          undone.</p>\n        <button\n          class='float-end button button--spaced button--delete'\n          type='button'\n          {{action 'delete'}}\n        >Delete</button>\n        <button\n          class='float-end button button--spaced button--plain'\n          type='button'\n          {{action 'toggleIsDeleting'}}\n        >{{t 'common.Cancel'}}</button>\n      </ModalDialog>\n    {{/if}}\n  </ModalDialog>\n  */\n  {\n    \"id\": \"ICXBPHVy\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[true,\\\"modal\\\",[28,[37,1],[[30,0],\\\"back\\\"],null],\\\"block-module dashboard-module-config\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"onClose\\\"],null],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Edit your module\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"dashboard-module-config-steps\\\"],[12],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"section\\\"],[14,0,\\\"active\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 text-center\\\"],[12],[1,\\\"Display settings\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"config-modal__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"config-modal__section-heading\\\"],[14,\\\"for\\\",\\\"module-title\\\"],[12],[1,\\\"Module\\\\n          title\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,0,\\\"text-input\\\"],[24,\\\"placeholder\\\",\\\"Untitled\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"module\\\",\\\"title\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"config-modal__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"config-modal__section-heading\\\"],[12],[1,\\\"Module type\\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"selector\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",[30,0,[\\\"module\\\",\\\"visualiser\\\"]],\\\"data-table\\\"]],null],[1,\\\"\\\\n            Table\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",[30,0,[\\\"module\\\",\\\"visualiser\\\"]],\\\"line-chart\\\"]],null],[1,\\\"\\\\n            Line chart\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",[30,0,[\\\"module\\\",\\\"visualiser\\\"]],\\\"pie-chart\\\"]],null],[1,\\\"\\\\n            Pie chart\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"config-modal__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"config-modal__section-heading\\\"],[12],[1,\\\"Data period\\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"selector\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",[30,0,[\\\"module\\\",\\\"periodType\\\"]],\\\"month\\\"]],null],[1,\\\"\\\\n            Monthly\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",[30,0,[\\\"module\\\",\\\"periodType\\\"]],\\\"ytd\\\"]],null],[1,\\\"\\\\n            Year to date\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 text-center\\\"],[12],[1,\\\"Metrics\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"selector\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"kpis\\\"],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"kpis\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"\\\\n            KPIs\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"kpis\\\"]],[[[41,[51,[30,0,[\\\"singleMetric\\\"]]],[[[1,\\\"            \\\"],[8,[39,16],null,[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"data\\\",\\\"kpis\\\"]],\\\"name\\\",[30,0,[\\\"selectedKpis\\\"]],[28,[37,1],[[30,0],\\\"updateKpis\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"data\\\",\\\"kpis\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",\\\"metric\\\",[30,0,[\\\"selectedMetric\\\"]],[30,1]]],null],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No KPIs available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"profitAndLoss\\\"],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"profitAndLoss\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"\\\\n            Profit & Loss\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"profitAndLoss\\\"]],[[[41,[51,[30,0,[\\\"singleMetric\\\"]]],[[[1,\\\"            \\\"],[8,[39,16],null,[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"accounts\\\",\\\"profitAndLoss\\\"]],\\\"name\\\",[30,0,[\\\"selectedAccounts\\\"]],[28,[37,1],[[30,0],\\\"updateAccounts\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,2,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,2,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],[[24,0,\\\"checkbox\\\"]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,3]]],null],[1,\\\"\\\\n                \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[2,3]]]]],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"accounts\\\",\\\"profitAndLoss\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,4,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,4,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",\\\"metric\\\",[30,0,[\\\"selectedMetric\\\"]],[30,4]]],null],[1,\\\"\\\\n                \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No profit and loss accounts available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"balanceSheet\\\"],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"balanceSheet\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"\\\\n            Balance Sheet\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"balanceSheet\\\"]],[[[41,[51,[30,0,[\\\"singleMetric\\\"]]],[[[1,\\\"            \\\"],[8,[39,16],null,[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"accounts\\\",\\\"balanceSheet\\\"]],\\\"name\\\",[30,0,[\\\"selectedAccounts\\\"]],[28,[37,1],[[30,0],\\\"updateAccounts\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,5,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,5,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,6]]],null],[1,\\\"\\\\n                \\\"],[1,[30,5,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[5,6]]]]],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"accounts\\\",\\\"balanceSheet\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,7,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,7,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"radio-button\\\",\\\"metric\\\",[30,0,[\\\"selectedMetric\\\"]],[30,7]]],null],[1,\\\"\\\\n                \\\"],[1,[30,7,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No balance sheet accounts available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"otherData\\\"],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"otherData\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"\\\\n            Other Data\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"otherData\\\"]],[[[41,[51,[30,0,[\\\"singleMetric\\\"]]],[[[1,\\\"            \\\"],[8,[39,16],null,[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"accounts\\\",\\\"otherData\\\"]],\\\"name\\\",[30,0,[\\\"selectedAccounts\\\"]],[28,[37,1],[[30,0],\\\"updateAccounts\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,8,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,8,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,9]]],null],[1,\\\"\\\\n                \\\"],[1,[30,8,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[8,9]]]]],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"accounts\\\",\\\"otherData\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"depth-\\\",[30,10,[\\\"depth\\\"]],\\\"\\\\n                  \\\",[52,[30,10,[\\\"isHeading\\\"]],\\\"heading\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"metric\\\",[30,0,[\\\"selectedMetric\\\"]],[30,10]]],null],[1,\\\"\\\\n                \\\"],[1,[30,10,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No other data accounts available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 text-center\\\"],[12],[1,\\\"Series\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"selector\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAccessEntities\\\"]],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n            \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"entities\\\"],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"entities\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"\\\\n              Branches\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"entities\\\"]],[[[41,[30,0,[\\\"multipleSeries\\\"]],[[[1,\\\"              \\\"],[10,\\\"label\\\"],[15,0,[28,[37,20],[\\\"depth-\\\",[30,0,[\\\"branch\\\",\\\"depth\\\"]]],null]],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"module\\\",\\\"includeCurrentEntity\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAccessMultipleEntities\\\"]],[[[1,\\\"                  Current branch\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"subtext\\\"],[12],[1,\\\"The module will adapt to whichever\\\\n                    branch you are currently viewing.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canAccessMultipleEntities\\\"]],[[[1,\\\"                \\\"],[8,[39,16],[[24,\\\"tagName\\\",\\\"div\\\"]],[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"data\\\",\\\"entities\\\"]],\\\"name\\\",[30,0,[\\\"selectedEntities\\\"]],[28,[37,1],[[30,0],\\\"updateEntities\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"              \\\"],[10,\\\"label\\\"],[15,0,[28,[37,20],[\\\"depth-\\\",[30,0,[\\\"branch\\\",\\\"depth\\\"]]],null]],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"metric\\\",[30,0,[\\\"selectedSeries\\\"]],\\\"current\\\"]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAccessMultipleEntities\\\"]],[[[1,\\\"                  Current branch\\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"subtext\\\"],[12],[1,\\\"The module will adapt to whichever\\\\n                    branch you are currently viewing.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAccessMultipleBranches\\\"]],[[[1,\\\"                data:\\\\n                \\\"],[1,[30,0,[\\\"data\\\"]]],[1,\\\"\\\\n                data.entities :\\\\n                \\\"],[1,[30,0,[\\\"data\\\",\\\"entities\\\"]]],[1,\\\"\\\\n\\\"],[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"data\\\",\\\"entities\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"label\\\"],[15,0,[28,[37,20],[\\\"depth-\\\",[30,11,[\\\"depth\\\"]]],null]],[12],[1,\\\"\\\\n                    \\\"],[8,[39,11],null,[[\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"metric\\\",[30,0,[\\\"selectedSeries\\\"]],[30,11]]],null],[1,\\\"\\\\n                    \\\"],[1,[30,11,[\\\"name\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],[[[1,\\\"                  \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No branches available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[]]]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAccessEntityGroups\\\"]],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n            \\\"],[11,3],[24,0,\\\"tree-branch\\\"],[4,[38,1],[[30,0],\\\"toggleTree\\\",\\\"entityGroups\\\"],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"treeExpansion\\\",\\\"entityGroups\\\"]],\\\"caret-down\\\",\\\"caret-right\\\"]]],null],[1,\\\"Groups\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"treeExpansion\\\",\\\"entityGroups\\\"]],[[[41,[30,0,[\\\"multipleSeries\\\"]],[[[1,\\\"              \\\"],[8,[39,16],null,[[\\\"@options\\\",\\\"@labelProperty\\\",\\\"@selection\\\",\\\"@onchange\\\"],[[30,0,[\\\"data\\\",\\\"entityGroups\\\"]],\\\"name\\\",[30,0,[\\\"selectedEntityGroups\\\"]],[28,[37,1],[[30,0],\\\"updateEntityGroups\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,18],[[28,[37,18],[[30,0,[\\\"data\\\",\\\"entityGroups\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"label\\\"],[15,0,[28,[37,20],[\\\"depth-\\\",[30,12,[\\\"depth\\\"]]],null]],[12],[1,\\\"\\\\n                  \\\"],[8,[39,11],null,[[\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\"],[\\\"metric\\\",[30,0,[\\\"selectedSeries\\\"]],[30,12]]],null],[1,\\\"\\\\n                  \\\"],[1,[30,12,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[12]],[[[1,\\\"                \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No groups available\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"toggleIsDeleting\\\"],null],[12],[1,\\\"Delete module…\\\"],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"advance\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLastStep\\\"]],[[[1,\\\"        Finish\\\\n\\\"]],[]],[[[1,\\\"        Next  \\\\n        \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"caret-right\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[16,\\\"disabled\\\",[52,[30,0,[\\\"isFirstStep\\\"]],\\\"disabled\\\",null]],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"back\\\"],null],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"caret-left\\\"]],null],[1,\\\"  Back\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeleting\\\"]],[[[1,\\\"    \\\"],[8,[39,0],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,1],[[30,0],\\\"toggleIsDeleting\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"Are you sure you want to delete this module? This action cannot be\\\\n        undone.\\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"delete\\\"],null],[12],[1,\\\"Delete\\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced button--plain\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],\\\"toggleIsDeleting\\\"],null],[12],[1,[28,[35,24],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]]]]],[\\\"kpi\\\",\\\"account\\\",\\\"isSelected\\\",\\\"account\\\",\\\"account\\\",\\\"isSelected\\\",\\\"account\\\",\\\"account\\\",\\\"isSelected\\\",\\\"account\\\",\\\"entity\\\",\\\"group\\\"],false,[\\\"modal-dialog\\\",\\\"action\\\",\\\"header\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"div\\\",\\\"section\\\",\\\"h3\\\",\\\"label\\\",\\\"input\\\",\\\"radio-button\\\",\\\"h4\\\",\\\"a\\\",\\\"if\\\",\\\"unless\\\",\\\"multiselect-checkboxes\\\",\\\"each\\\",\\\"-track-array\\\",\\\"p\\\",\\\"concat\\\",\\\"br\\\",\\\"span\\\",\\\"footer\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard/config-modal.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // This renders its own <ModalDialog> in the template, so it never needed to be\n  // one: it subclassed the addon's component and then nulled out the inherited\n  // layout. ember-modal-dialog 5 is a Glimmer component with no `.extend`, so\n  // the vestigial subclassing is dropped here. `tagName: ''` preserves the\n  // wrapper-less DOM the addon's `@tagName('')` used to give it.\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: '',\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    groups: [],\n    selectedKpis: [],\n    selectedAccounts: [],\n    selectedEntityGroups: [],\n    selectedEntities: [],\n    isMac: (0, _object.computed)(function () {\n      return window.navigator.platform.toLowerCase().indexOf('mac') > -1;\n    }),\n    canAccessEntities: true,\n    // todo\n\n    canAccessEntityGroups: (0, _object.computed)('sessionData.entity.parent.id', function () {\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const parenEntityFilter = {\n        and: []\n      };\n      if (parentEntity) {\n        parenEntityFilter.and.push({\n          field: 'parentEntity',\n          op: 'EQ',\n          value: parentEntity\n        });\n      }\n      return (0, _object.get)(this, 'store').query('entity-group', {\n        filter: parenEntityFilter\n      }).then(groups => {\n        return groups.length;\n      });\n    }),\n    canAccessMultipleEntities: (0, _object.computed)('session.data.authenticated.user.{readableEntities,role}', 'sessionData.entities', 'sessionData.entity.parent', function () {\n      const role = (0, _object.get)(this, 'session.data.authenticated.user.role');\n      const parent = (0, _object.get)(this, 'sessionData.entity.parent');\n      const entities = (0, _object.get)(this, 'sessionData.entities');\n      const readableForCurrentOrganisation = (entities || []).filterBy('parent', parent);\n      return role === 'admin' || readableForCurrentOrganisation.length > 1;\n    }),\n    treeExpansion: {\n      kpis: false,\n      profitAndLoss: false,\n      balanceSheet: false,\n      otherData: false,\n      entities: true,\n      entityGroups: true\n    },\n    step: 0,\n    isFirstStep: (0, _computed.equal)('step', 0),\n    isLastStep: (0, _computed.equal)('step', 2),\n    singleMetric: (0, _computed.equal)('module.visualiser', 'line-chart'),\n    multipleSeries: (0, _computed.equal)('module.visualiser', 'line-chart'),\n    correctMetricCount: (0, _object.observer)('singleMetric', function () {\n      const single = (0, _object.get)(this, 'singleMetric');\n      if (single) {\n        const module = (0, _object.get)(this, 'module');\n        const {\n          kpis,\n          accounts\n        } = module.getProperties('kpis', 'accounts');\n        if (!(0, _utils.isEmpty)(kpis)) {\n          module.setProperties({\n            kpis: [kpis.objectAt(0)],\n            accounts: []\n          });\n        } else if (!(0, _utils.isEmpty)(accounts)) {\n          (0, _object.set)(module, 'accounts', [accounts.objectAt(0)]);\n        }\n      }\n    }),\n    correctSeriesCount: (0, _object.observer)('singleSeries', function () {\n      const single = !(0, _object.get)(this, 'multipleSeries');\n      if (single) {\n        const module = (0, _object.get)(this, 'module');\n        const {\n          entities,\n          entityGroups\n        } = module.getProperties('entities', 'entityGroups');\n        if (entities.length) {\n          module.setProperties({\n            entities: [entities.objectAt(0)],\n            entityGroups: []\n          });\n        } else if (entityGroups.length) {\n          (0, _object.set)(module, 'entityGroups', [entityGroups.objectAt(0)]);\n        }\n      }\n    }),\n    accounts: {\n      profitAndLoss: [],\n      balanceSheet: [],\n      otherData: []\n    },\n    setSelectedKpis: (0, _evented.on)('init', function () {\n      const linkDashboardToKpis = (0, _object.get)(this, 'module.kpis') || [];\n      const kpiIds = linkDashboardToKpis.content.map(item => (0, _object.get)(item, 'kpi.id'));\n      const allKpisInStore = this.store.peekAll('kpi').filter(item => kpiIds.includes((0, _object.get)(item, 'id')));\n      (0, _object.set)(this, 'selectedKpis', allKpisInStore);\n    }),\n    setSelectedAccounts: (0, _evented.on)('init', function () {\n      const linkDashboardToAccounts = (0, _object.get)(this, 'module.accounts') || [];\n      const accountIds = linkDashboardToAccounts.content.map(item => (0, _object.get)(item, 'account.id'));\n      const allAccountsInStore = this.store.peekAll('account').filter(item => accountIds.includes((0, _object.get)(item, 'id')));\n      (0, _object.set)(this, 'selectedAccounts', allAccountsInStore);\n    }),\n    setSelectedEntityGroups: (0, _evented.on)('init', function () {\n      const linkDashboardToEntityGroups = (0, _object.get)(this, 'module.entityGroups') || [];\n      const entityGroupIds = linkDashboardToEntityGroups.content.map(item => (0, _object.get)(item, 'entityGroup.id'));\n      const allEntityGroupsInStore = this.store.peekAll('entity-group').filter(item => entityGroupIds.includes((0, _object.get)(item, 'id')));\n      (0, _object.set)(this, 'selectedEntityGroups', allEntityGroupsInStore);\n    }),\n    setSelectedEntities: (0, _evented.on)('init', function () {\n      const linkDashboardToEntities = (0, _object.get)(this, 'module.entities') || [];\n      const entityIds = linkDashboardToEntities.content.map(item => (0, _object.get)(item, 'entity.id'));\n      const allEntitiesInStore = this.store.peekAll('entity').filter(item => entityIds.includes((0, _object.get)(item, 'id')));\n      (0, _object.set)(this, 'selectedEntities', allEntitiesInStore);\n    }),\n    setAccounts: (0, _evented.on)('init', (0, _object.observer)('data.accounts.[]', function () {\n      const accounts = (0, _object.get)(this, 'data.accounts');\n      if (!accounts) {\n        return;\n      }\n\n      // Set account depths\n      accounts.forEach(account => {\n        (0, _object.set)(account, 'depth', (0, _object.computed)(() => {\n          let parent = (0, _object.get)(account, 'parent');\n          let depth = 0;\n          while ((0, _object.get)(parent, 'id') && depth <= 5) {\n            parent = (0, _object.get)(parent, 'parent');\n            depth += 1;\n          }\n          return depth;\n        }));\n        const data = {\n          profitAndLoss: accounts.filterBy('category', 'profit-and-loss').sortBy('sortIndex'),\n          balanceSheet: accounts.filterBy('category', 'balance-sheet').sortBy('sortIndex'),\n          otherData: accounts.filterBy('category', 'other-data').sortBy('sortIndex')\n        };\n        (0, _object.set)(this, 'accounts', data);\n      });\n    })),\n    selectedMetric: (0, _object.computed)('module.kpis', 'module.accounts', {\n      get() {\n        const linkDashboardKpis = (0, _object.get)(this, 'module.kpis') || [];\n        const kpiIds = linkDashboardKpis.content.map(item => (0, _object.get)(item, 'kpi.id'));\n        const kpis = this.store.peekAll('kpi').filter(item => kpiIds.includes((0, _object.get)(item, 'id')));\n        const linkDashBoardToAccounts = (0, _object.get)(this, 'module.accounts') || [];\n        const accountIds = linkDashBoardToAccounts.content.map(item => (0, _object.get)(item, 'account.id'));\n        const accounts = this.store.peekAll('account').filter(item => accountIds.includes((0, _object.get)(item, 'id')));\n        return (kpis || []).concat(accounts || [])[0];\n      },\n      set(key, value) {\n        const linkDashboardToKpis = (0, _object.get)(this, 'module.kpis') || [];\n        linkDashboardToKpis.content.map(item => item.deleteRecord());\n        const linkDashboardToAccounts = (0, _object.get)(this, 'module.accounts') || [];\n        linkDashboardToAccounts.content.map(item => item.deleteRecord());\n        if (value instanceof _kpi.default) {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-kpi', {\n            kpi: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        } else if (value instanceof _account.default) {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-account', {\n            account: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n        return value;\n      }\n    }),\n    selectedSeries: (0, _object.computed)('module.{entities,entityGroups,includeCurrentEntity}', {\n      get() {\n        let includeCurrentEntity = (0, _object.get)(this, 'module.includeCurrentEntity');\n        const linkDashboardToEntities = (0, _object.get)(this, 'module.entities') || [];\n        const entityIds = linkDashboardToEntities.content.map(item => (0, _object.get)(item, 'entity.id'));\n        const entities = this.store.peekAll('entity').filter(item => entityIds.includes((0, _object.get)(item, 'id')));\n        const linkDashboardToEntityGroups = (0, _object.get)(this, 'module.entityGroups') || [];\n        const entityGroupIds = linkDashboardToEntityGroups.content.map(item => (0, _object.get)(item, 'entityGroup.id'));\n        const entityGroups = this.store.peekAll('entity-group').filter(item => entityGroupIds.includes((0, _object.get)(item, 'id')));\n        return includeCurrentEntity ? 'current' : (entities || []).concat(entityGroups || [])[0];\n      },\n      set(key, value) {\n        let includeCurrentEntity = false;\n        const linkDashboardToEntities = (0, _object.get)(this, 'module.entities') || [];\n        linkDashboardToEntities.content.map(item => item.deleteRecord());\n        const linkDashboardToEntityGroups = (0, _object.get)(this, 'module.entityGroups') || [];\n        linkDashboardToEntityGroups.content.map(item => item.deleteRecord());\n        if (value === 'current') {\n          includeCurrentEntity = true;\n        } else if (value instanceof _entity.default) {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-entity', {\n            entity: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        } else if (value instanceof _entityGroup.default) {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-entity-group', {\n            entityGroup: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n        (0, _object.get)(this, 'module').setProperties({\n          includeCurrentEntity\n        });\n        return value;\n      }\n    }),\n    actions: {\n      advance() {\n        const step = (0, _object.get)(this, 'step');\n        if (step < 2) {\n          (0, _object.set)(this, 'step', step + 1);\n          (0, _jquery.default)('.ember-modal-dialog section.active').removeClass('active').next().addClass('active');\n        } else {\n          this.send('onClose');\n        }\n      },\n      back() {\n        const step = (0, _object.get)(this, 'step');\n        if (step > 0) {\n          (0, _object.set)(this, 'step', step - 1);\n          (0, _jquery.default)('.ember-modal-dialog section.active').removeClass('active').prev().addClass('active');\n        }\n      },\n      async onClose(withoutSaving) {\n        if (!withoutSaving) {\n          await (0, _object.get)(this, 'module').save();\n        }\n        const savePromises = [];\n        const models = ['link-dashboard-module-entity-group', 'link-dashboard-module-entity', 'link-dashboard-module-kpi', 'link-dashboard-module-account'];\n        models.forEach(model => {\n          (0, _object.get)(this, 'store').peekAll(model).forEach(item => {\n            if ((0, _object.get)(item, 'isNew') || (0, _object.get)(item, 'isDeleted')) {\n              savePromises.push(item.save());\n            }\n          });\n        });\n        await Promise.all(savePromises);\n        this.close();\n      },\n      updateEntityGroups(_newSelection, value, operation) {\n        if (operation === 'removed') {\n          const entityGroups = (0, _object.get)(this, 'module.entityGroups') || [];\n          const linkRecord = entityGroups.find(item => (0, _object.get)(item, 'entityGroup.id') === (0, _object.get)(value, 'id'));\n          if (linkRecord) {\n            linkRecord.deleteRecord();\n          }\n        } else if (operation === 'added') {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-entity-group', {\n            entityGroup: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n      },\n      updateEntities(_newSelection, value, operation) {\n        if (operation === 'removed') {\n          const entities = (0, _object.get)(this, 'module.entities') || [];\n          const linkRecord = entities.find(item => (0, _object.get)(item, 'entity.id') === (0, _object.get)(value, 'id'));\n          if (linkRecord) {\n            linkRecord.deleteRecord();\n          }\n        } else if (operation === 'added') {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-entity', {\n            entity: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n      },\n      updateKpis(_newSelection, value, operation) {\n        if (operation === 'removed') {\n          const kpis = (0, _object.get)(this, 'module.kpis') || [];\n          const linkRecord = kpis.find(item => (0, _object.get)(item, 'kpi.id') === (0, _object.get)(value, 'id'));\n          if (linkRecord) {\n            linkRecord.deleteRecord();\n          }\n        } else if (operation === 'added') {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-kpi', {\n            kpi: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n      },\n      updateAccounts(_newSelection, value, operation) {\n        if (operation === 'removed') {\n          const accounts = (0, _object.get)(this, 'module.accounts') || [];\n          const linkRecord = accounts.find(item => (0, _object.get)(item, 'account.id') === (0, _object.get)(value, 'id'));\n          if (linkRecord) {\n            linkRecord.deleteRecord();\n          }\n        } else if (operation === 'added') {\n          (0, _object.get)(this, 'store').createRecord('link-dashboard-module-account', {\n            account: value,\n            dashboardModule: (0, _object.get)(this, 'module')\n          });\n        }\n      },\n      toggleIsDeleting() {\n        this.toggleProperty('isDeleting');\n      },\n      delete() {\n        this.delete((0, _object.get)(this, 'module'));\n        this.send('onClose', true);\n      },\n      toggleTree(type) {\n        this.toggleProperty('treeExpansion.' + type);\n      }\n    }\n  }));\n});","define(\"portal/components/dashboard/draggable-module\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object\", \"@ember/object/evented\", \"rsvp\", \"@ember/utils\", \"@ember/array\", \"jquery\", \"moment\", \"portal/config/environment\", \"lodash\", \"@ember/template-factory\"], function (_exports, _component, _service, _object, _evented, _rsvp, _utils, _array, _jquery, _moment, _environment, _lodash, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/object/evented\",0,\"rsvp\",0,\"@ember/utils\",0,\"@ember/array\",0,\"jquery\",0,\"moment\",0,\"portal/config/environment\",0,\"lodash\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isEditing}}\n    <Dashboard::ConfigModal\n      @close={{action 'toggleIsEditing'}}\n      @delete={{action 'delete'}}\n      @translucentOverlay={{true}}\n      @module={{this.module}}\n      @data={{this.data}}\n    />\n  {{else}}\n    <header class='dashboard-module__header block-module__header'>\n      {{#if (media 'isDesktop')}}\n        <button\n          class='dashboard-module__edit-button'\n          type='button'\n          {{action 'toggleIsEditing'}}\n        ><FaIcon @icon='edit' /></button>\n      {{/if}}\n  \n      {{#if this.module.title}}\n        <h1 class='text-center tuck-for-controls'>{{this.module.title}}</h1>\n      {{else}}\n        <h1 class='text-center tuck-for-controls placeholder'>Untitled</h1>\n      {{/if}}\n    </header>\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' />\n    {{else}}\n      {{#if this.hasError}}\n        <div class='text-center error'>\n          <h2><FaIcon @icon='exclamation-circle' /></h2>\n          <h3>Error</h3>\n          <p>Sorry, the data for this module could not be loaded.</p>\n        </div>\n      {{else}}\n        {{#if this.metrics.length}}\n          {{#if this.hasData}}\n            {{component\n              (concat 'charts/' this.module.visualiser)\n              metrics=this.metrics\n              series=this.series\n              period=this.period\n              class=(if\n                (eq this.module.visualiser 'data-table') 'block-module__table'\n              )\n            }}\n          {{else}}\n            <div class='text-center error no-data'>\n              <h2><FaIcon @icon='exclamation-triangle' /></h2>\n              <h3>No data</h3>\n              <p>You could import data for\n                {{moment-format this.sessionData.period 'MMMM YYYY' 'YYYY-MM'}}\n                or configure this module to display different data.</p>\n            </div>\n          {{/if}}\n        {{else}}\n          <p class='text-center dashboard-module__explainer'>This module hasn’t\n            been configured yet.</p>\n          <p class='text-center'><button\n              class='text-button'\n              type='button'\n              {{action 'toggleIsEditing'}}\n            >Configure</button></p>\n        {{/if}}\n      {{/if}}\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"Jk7t942s\",\n    \"block\": \"[[[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@close\\\",\\\"@delete\\\",\\\"@translucentOverlay\\\",\\\"@module\\\",\\\"@data\\\"],[[28,[37,2],[[30,0],\\\"toggleIsEditing\\\"],null],[28,[37,2],[[30,0],\\\"delete\\\"],null],true,[30,0,[\\\"module\\\"]],[30,0,[\\\"data\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"header\\\"],[14,0,\\\"dashboard-module__header block-module__header\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"dashboard-module__edit-button\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"toggleIsEditing\\\"],null],[12],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"edit\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"module\\\",\\\"title\\\"]],[[[1,\\\"      \\\"],[10,\\\"h1\\\"],[14,0,\\\"text-center tuck-for-controls\\\"],[12],[1,[30,0,[\\\"module\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,\\\"h1\\\"],[14,0,\\\"text-center tuck-for-controls placeholder\\\"],[12],[1,\\\"Untitled\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,8],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"hasError\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"text-center error\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[12],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"exclamation-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Error\\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"Sorry, the data for this module could not be loaded.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"metrics\\\",\\\"length\\\"]],[[[41,[30,0,[\\\"hasData\\\"]],[[[1,\\\"          \\\"],[46,[28,[37,14],[\\\"charts/\\\",[30,0,[\\\"module\\\",\\\"visualiser\\\"]]],null],null,[[\\\"metrics\\\",\\\"series\\\",\\\"period\\\",\\\"class\\\"],[[30,0,[\\\"metrics\\\"]],[30,0,[\\\"series\\\"]],[30,0,[\\\"period\\\"]],[52,[28,[37,15],[[30,0,[\\\"module\\\",\\\"visualiser\\\"]],\\\"data-table\\\"],null],\\\"block-module__table\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"text-center error no-data\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h2\\\"],[12],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[13],[1,\\\"\\\\n            \\\"],[10,\\\"h3\\\"],[12],[1,\\\"No data\\\"],[13],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,\\\"You could import data for\\\\n              \\\"],[1,[28,[35,16],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],\\\"MMMM YYYY\\\",\\\"YYYY-MM\\\"],null]],[1,\\\"\\\\n              or configure this module to display different data.\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"text-center dashboard-module__explainer\\\"],[12],[1,\\\"This module hasn’t\\\\n          been configured yet.\\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"toggleIsEditing\\\"],null],[12],[1,\\\"Configure\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]]],[]]]],[],false,[\\\"if\\\",\\\"dashboard/config-modal\\\",\\\"action\\\",\\\"header\\\",\\\"media\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"h2\\\",\\\"h3\\\",\\\"p\\\",\\\"component\\\",\\\"concat\\\",\\\"eq\\\",\\\"moment-format\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard/draggable-module.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['dashboard-module', 'block-module'],\n    attributeBindings: ['module.tmpId:data-module-id'],\n    cache: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    isLoading: false,\n    isEditing: (0, _object.computed)('module.isNewModule', {\n      get() {\n        if ((0, _object.get)(this, 'module.isNewModule') === true) {\n          (0, _object.set)(this, 'module.isNewModule', false);\n          return true;\n        }\n        return false;\n      },\n      set(_key, value) {\n        return value;\n      }\n    }),\n    metrics: [],\n    series: [],\n    period: {},\n    updateMetrics: (0, _evented.on)('init', function () {\n      const visualiser = (0, _object.get)(this, 'module.visualiser');\n      (0, _object.set)(this, 'hasError', false);\n      (0, _object.set)(this, 'badConfig', false);\n      if (!visualiser) {\n        return;\n      }\n      const period = {\n        start: null,\n        end: (0, _object.get)(this, 'sessionData.period'),\n        type: (0, _object.get)(this, 'module.periodType') === 'ytd' ? 'ytd' : 'month'\n      };\n      if (visualiser === 'line-chart') {\n        (0, _object.set)(period, 'start', (0, _moment.default)((0, _object.get)(period, 'end'), 'YYYY-MM').subtract(11, 'months').format('YYYY-MM'));\n      } else {\n        (0, _object.set)(period, 'start', (0, _object.get)(period, 'end'));\n      }\n      (0, _object.set)(this, 'period', period);\n      const module = (0, _object.get)(this, 'module');\n      let linkDashboardModuleToAccounts = module.hasMany('accounts').value() || [];\n      let linkDashboardModuleToKpis = module.hasMany('kpis').value() || [];\n      let linkDashboardModuleToEntities = module.hasMany('entities').value() || [];\n      let linkDashboardModulesToEntityGroups = module.hasMany('entityGroups').value() || [];\n      const includeCurrent = (0, _object.get)(this, 'module.includeCurrentEntity');\n      let accounts = (linkDashboardModuleToAccounts || []).map(account => (0, _object.get)(account, 'account.id'));\n      let kpis = (linkDashboardModuleToKpis || []).map(item => (0, _object.get)(item, 'kpi.id'));\n      let entities = (linkDashboardModuleToEntities || []).map(item => (0, _object.get)(item, 'entity'));\n      let entityGroups = (linkDashboardModulesToEntityGroups || []).map(item => (0, _object.get)(item, 'entityGroup'));\n      const series = [...entities, ...entityGroups];\n      if (includeCurrent) {\n        series.unshift((0, _object.get)(this, 'sessionData.entity'));\n      }\n      (0, _object.set)(this, 'series', series);\n      if (includeCurrent) {\n        entities.push((0, _object.get)(this, 'sessionData.entity'));\n      }\n      if (!accounts.length && !kpis.length || !entities.length && !entityGroups.length) {\n        return;\n      }\n      (0, _object.set)(this, 'isLoading', true);\n      const entityIds = entities.map(entity => (0, _object.get)(entity, 'id')).filter(i => i);\n      const entityGroupIds = entityGroups.map(entityGroup => (0, _object.get)(entityGroup, 'id')).filter(i => i);\n      const loadBalances = this.getMetrics('balances', accounts, entityIds, entityGroupIds, period);\n      const loadKpiValues = this.getMetrics('kpis', kpis, entityIds, entityGroupIds, period);\n      return _rsvp.default.all([loadBalances, loadKpiValues]).then(data => {\n        // Make sure this module wasn't destroyed while its data was loading.\n        // This happens if you switch periods quickly.\n        if (this.isDestroying) {\n          return;\n        }\n        const metrics = data[0].concat(data[1]);\n        return this.setMetrics(metrics, entities.concat(entityGroups));\n      }).catch(err => {\n        // If there was a permissions error, attempt to fix it\n        if (err.status === 403 && err.responseJSON && err.responseJSON.errors[0].title === 'Group access denied.') {\n          this.attemptToCorrectPermissionsError(err);\n        } else {\n          (0, _object.set)(this, 'isLoading', false);\n          (0, _object.set)(this, 'hasError', true);\n        }\n      });\n    }),\n    setMetrics(metrics) {\n      const periodTypes = ['month', 'ytd'];\n      let hasData = false;\n      metrics.forEach(metric => {\n        if ((0, _utils.isEmpty)(metric.series)) {\n          return;\n        }\n        metric.series.forEach(entity => {\n          if ((0, _utils.isEmpty)(entity.periods)) {\n            return;\n          }\n          entity.periods.forEach(period => {\n            periodTypes.forEach(type => {\n              if (period.periodTypes[type] && period.periodTypes[type].value != null) {\n                hasData = true;\n              }\n            });\n          });\n        });\n      });\n      this.setProperties({\n        hasData,\n        metrics,\n        isLoading: false\n      });\n    },\n    getMetrics(type, metrics, entities, entityGroups, period) {\n      if (!metrics || !metrics.length) {\n        return _rsvp.default.resolve([]);\n      }\n      const url = `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/reports/${type}`;\n      const payload = {\n        entities,\n        entityGroups,\n        periodStart: period.start,\n        periodEnd: period.end,\n        periodTypes: [period.type],\n        metrics\n      };\n      const headers = {\n        Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n      };\n      const cacheKey = _lodash.default.merge(payload, {\n        type\n      });\n      const cached = (0, _object.get)(this, 'cache').lookup('reports', cacheKey);\n      if (cached) {\n        return cached;\n      }\n      return _jquery.default.ajax({\n        url,\n        data: JSON.stringify({\n          ...payload\n        }),\n        headers,\n        method: 'POST',\n        contentType: 'application/json'\n      }).then(res => {\n        (0, _object.get)(this, 'cache').store('reports', cacheKey, res.data);\n        return res.data;\n      });\n    },\n    attemptToCorrectPermissionsError(err) {\n      const error = err.responseJSON.errors[0];\n      const loadGroups = (0, _object.get)(this, 'module.entityGroups');\n      const disallowedGroups = error.detail.match(/: ([0-9a-f]{24})(?:, ([0-9a-f]{24}))?/).slice(1);\n      loadGroups.then(groups => {\n        if ((0, _array.isArray)(groups) && (0, _array.isArray)(disallowedGroups)) {\n          const startingLength = (0, _object.get)(this, 'module.entityGroups.length');\n          (0, _object.set)(this, 'module.entityGroups', groups.reject(group => {\n            return disallowedGroups.indexOf((0, _object.get)(group, 'id')) > -1;\n          }));\n          if ((0, _object.get)(this, 'module.entityGroups.length') < startingLength) {\n            (0, _object.get)(this, 'module').save().then(this.updateMetrics.bind(this)).catch(this.send.bind(this));\n          } else {\n            (0, _object.set)(this, 'isLoading', false);\n            (0, _object.set)(this, 'hasError', true);\n          }\n        }\n      });\n    },\n    actions: {\n      toggleIsEditing() {\n        const isEditing = this.toggleProperty('isEditing');\n        const isDestroying = (0, _object.get)(this, 'module.isDestroying');\n        if (!isEditing && !isDestroying) {\n          this.updateMetrics();\n        }\n      },\n      delete() {\n        this.delete((0, _object.get)(this, 'module'));\n      }\n    }\n  }));\n});","define(\"portal/components/dashboard/module-rows\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object/evented\", \"@ember/object\", \"jquery\", \"rsvp\", \"@ember/runloop\", \"portal/utils/make-temp-id\", \"@ember/template-factory\"], function (_exports, _component, _service, _evented, _object, _jquery, _rsvp, _runloop, _makeTempId, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object/evented\",0,\"@ember/object\",0,\"jquery\",0,\"rsvp\",0,\"@ember/runloop\",0,\"portal/utils/make-temp-id\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.rows as |row|}}\n    <section class='dashboard__row'>\n      {{#each row as |module|}}\n        <Dashboard::DraggableModule\n          @module={{module}}\n          @data={{this.data}}\n          @delete={{action 'deleteModule'}}\n        />\n      {{/each}}\n    </section>\n  {{else}}\n    <header class='spaced-header'>\n      <h2 class='text-center'>It looks like you don’t have any modules yet</h2>\n      <h3 class='text-center subtitle'>Click the button below to get started</h3>\n    </header>\n  {{/each}}\n  \n  {{#if (media 'isDesktop')}}\n    <p class='dashboard__actions'>\n      <button\n        class='button button--add'\n        type='button'\n        {{action 'createModule'}}\n      >Add new module</button>\n    </p>\n  {{/if}}\n  */\n  {\n    \"id\": \"4M1h7n6a\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"rows\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[10,\\\"section\\\"],[14,0,\\\"dashboard__row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,1]],null]],null],null,[[[1,\\\"      \\\"],[8,[39,3],null,[[\\\"@module\\\",\\\"@data\\\",\\\"@delete\\\"],[[30,2],[30,0,[\\\"data\\\"]],[28,[37,4],[[30,0],\\\"deleteModule\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],[[[1,\\\"  \\\"],[10,\\\"header\\\"],[14,0,\\\"spaced-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"It looks like you don’t have any modules yet\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"text-center subtitle\\\"],[12],[1,\\\"Click the button below to get started\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"dashboard__actions\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"createModule\\\"],null],[12],[1,\\\"Add new module\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"row\\\",\\\"module\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"section\\\",\\\"dashboard/draggable-module\\\",\\\"action\\\",\\\"header\\\",\\\"h2\\\",\\\"h3\\\",\\\"if\\\",\\\"media\\\",\\\"p\\\",\\\"button\\\"]]\",\n    \"moduleName\": \"portal/components/dashboard/module-rows.hbs\",\n    \"isStrictMode\": false\n  });\n  const ANIMATION_DURATION = 250;\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    store: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    media: (0, _service.inject)(),\n    rows: (0, _object.computed)('modules.[]', function () {\n      const modules = (0, _object.get)(this, 'modules');\n      const tree = [];\n      const spare = [];\n      modules.forEach(module => {\n        const x = (0, _object.get)(module, 'positionX');\n        const y = (0, _object.get)(module, 'positionY');\n        const tmpId = (0, _object.get)(module, 'id') || (0, _makeTempId.default)();\n        (0, _object.set)(module, 'tmpId', tmpId);\n        if (typeof x === 'number' && typeof y === 'number' && x >= 0 && y >= 0) {\n          if (!Array.isArray(tree[y])) {\n            tree[y] = [];\n          }\n          tree[y][x] = module;\n        } else {\n          spare.pushObject(module);\n        }\n      });\n      return tree;\n    }),\n    saveModulePositions() {\n      const modules = (0, _object.get)(this, 'modules');\n\n      // Hack to make the charts resize\n      const resizeEvent = document.createEvent('Event');\n      resizeEvent.initEvent('resize', true, true);\n      window.dispatchEvent(resizeEvent);\n      const $dashboardModules = (0, _jquery.default)('.dashboard-module');\n      $dashboardModules.addClass('dashboard-module--transitioning');\n      (0, _runloop.later)(() => $dashboardModules.removeClass('dashboard-module--transitioning'), ANIMATION_DURATION);\n      (0, _jquery.default)(this.element).children('section').each((y, section) => {\n        (0, _jquery.default)(section).children('.dashboard-module').each((x, module) => {\n          module = modules.findBy('tmpId', module.dataset.moduleId);\n          module.setProperties({\n            positionX: x,\n            positionY: y\n          });\n          if ((0, _object.get)(module, 'hasDirtyAttributes')) {\n            module.save();\n          }\n        });\n      });\n    },\n    checkRowCount($section) {\n      const sortable = $section.data('sortable');\n      sortable.options.group.put = $section.children().length < 3;\n      $section.data('sortable', sortable);\n    },\n    makeNewRowsSortable: (0, _evented.on)('didRender', function () {\n      const component = this;\n      if ((0, _object.get)(this, 'media.isDesktop')) {\n        (0, _jquery.default)('section').each(function () {\n          (0, _jquery.default)(this).nativeSortable({\n            handle: 'header',\n            animation: ANIMATION_DURATION,\n            group: {\n              name: 'dashboard',\n              put: (0, _jquery.default)(this).children().length < 3,\n              pull: true\n            },\n            onSort: () => component.saveModulePositions(),\n            onAdd: () => component.checkRowCount((0, _jquery.default)(this)),\n            onRemove: () => component.checkRowCount((0, _jquery.default)(this))\n          });\n        });\n      }\n    }),\n    actions: {\n      createModule() {\n        // If the user somehow manages to create two at once, don't\n        if ((0, _object.get)(this, 'isCreatingModule')) {\n          return;\n        }\n        const userId = (0, _object.get)(this, 'sessionData.user.id');\n        const getUser = (0, _object.get)(this, 'store').findRecord('user', userId);\n        const getEntity = (0, _object.get)(this, 'sessionData.entity.parent');\n        (0, _object.set)(this, 'isCreatingModule', true);\n        _rsvp.default.all([getUser, getEntity]).then(([user, entity]) => {\n          const module = (0, _object.get)(this, 'store').createRecord('dashboard-module', {\n            user,\n            entity,\n            positionX: 0,\n            positionY: (0, _object.get)(this, 'rows.length'),\n            periodType: 'month',\n            includeCurrentBranch: true\n          });\n          module.setProperties({\n            tmpId: (0, _makeTempId.default)(),\n            isNewModule: true\n          });\n          (0, _object.get)(this, 'modules').pushObject(module);\n        }).finally(() => {\n          (0, _object.set)(this, 'isCreatingModule', false);\n        });\n      },\n      deleteModule(module) {\n        module.destroyRecord().then(() => {\n          const modules = (0, _object.get)(this, 'modules');\n          const row = (0, _object.get)(module, 'positionY');\n          const col = (0, _object.get)(module, 'positionX');\n          const modulesToRight = modules.filter(m => (0, _object.get)(m, 'positionY') === row && (0, _object.get)(m, 'positionX') > col);\n          const saveModsToRight = modulesToRight.map(m => {\n            (0, _object.set)(m, 'positionX', (0, _object.get)(m, 'positionX') - 1);\n            return m.save();\n          });\n          return _rsvp.default.all(saveModsToRight).then(() => modules.removeObject(module));\n        });\n      }\n    }\n  }));\n});","define(\"portal/components/data-withheld-notice\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='notification-message'>\n    <div class='notification-message__icon'>\n      <FaIcon @icon='info' />\n    </div>\n  \n    <div class='notification-message__content'>\n      Your data is being withheld from group reports for this period\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"tBZ8/b17\",\n    \"block\": \"[[[10,0],[14,0,\\\"notification-message\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"notification-message__icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@icon\\\"],[\\\"info\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"notification-message__content\\\"],[12],[1,\\\"\\\\n    Your data is being withheld from group reports for this period\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/data-withheld-notice.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({}));\n});","define(\"portal/components/date-input\", [\"exports\", \"@ember/component\", \"@ember/runloop\", \"jquery\", \"moment\", \"@ember/object\", \"portal/components/date-input\", \"@ember/template-factory\"], function (_exports, _component, _runloop, _jquery, _moment, _object, _dateInput, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/runloop\",0,\"jquery\",0,\"moment\",0,\"@ember/object\",0,\"portal/components/date-input\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isActive}}\n    <Input\n      @type='date'\n      @value={{moment-format @date 'YYYY-MM-DD'}}\n      class='select-box-replacement select-box-replacement--stretched date-input__display select-box-replacement--date-input'\n      {{on 'keyup' (action 'handleDateInput')}}\n    />\n  \n    <DatePicker\n      @date={{@date}}\n      @select={{action 'selectAndDeactivate'}}\n      class='date-input__picker date-picker--stretched'\n    />\n  \n  {{else}}\n    <div\n      class='select-box-replacement select-box-replacement--stretched date-input__display'\n      onfocus={{action 'toggle'}}\n      tabindex='0'\n      {{action 'toggle'}}\n    >\n      {{if @date (moment-format @date @format) this.placeholder}}\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"HipDbn+b\",\n    \"block\": \"[[[41,[30,0,[\\\"isActive\\\"]],[[[1,\\\"  \\\"],[8,[39,1],[[24,0,\\\"select-box-replacement select-box-replacement--stretched date-input__display select-box-replacement--date-input\\\"],[4,[38,3],[\\\"keyup\\\",[28,[37,4],[[30,0],\\\"handleDateInput\\\"],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"date\\\",[28,[37,2],[[30,1],\\\"YYYY-MM-DD\\\"],null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,5],[[24,0,\\\"date-input__picker date-picker--stretched\\\"]],[[\\\"@date\\\",\\\"@select\\\"],[[30,1],[28,[37,4],[[30,0],\\\"selectAndDeactivate\\\"],null]]],null],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"select-box-replacement select-box-replacement--stretched date-input__display\\\"],[16,\\\"onfocus\\\",[28,[37,4],[[30,0],\\\"toggle\\\"],null]],[24,\\\"tabindex\\\",\\\"0\\\"],[4,[38,4],[[30,0],\\\"toggle\\\"],null],[12],[1,\\\"\\\\n    \\\"],[1,[52,[30,1],[28,[37,2],[[30,1],[30,2]],null],[30,0,[\\\"placeholder\\\"]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@date\\\",\\\"@format\\\"],false,[\\\"if\\\",\\\"input\\\",\\\"moment-format\\\",\\\"on\\\",\\\"action\\\",\\\"date-picker\\\",\\\"div\\\"]]\",\n    \"moduleName\": \"portal/components/date-input.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _dateInput.default,\n    placeholder: 'Please select a Date',\n    classNames: ['date-input'],\n    isActive: false,\n    format: 'dddd, D MMMM YYYY',\n    didInsertElement() {\n      this._super(...arguments);\n      const element = this.elementId;\n      (0, _jquery.default)(window).on('keydown keyup click blur', event => {\n        const {\n          target,\n          key\n        } = event;\n        const isTarget = (0, _jquery.default)(`#${element}`).is(target);\n        const hasTarget = (0, _jquery.default)(`#${element}`).has(target).length !== 0;\n        if (isTarget || hasTarget) {\n          if (['Enter', 'Escape'].includes(key)) {\n            (0, _object.set)(this, 'isActive', false);\n            event.preventDefault();\n          }\n        } else if (this.isActive) {\n          (0, _object.set)(this, 'isActive', false);\n        }\n      });\n    },\n    willDestroyElement() {\n      this._super(...arguments);\n      // remove our listener\n      (0, _jquery.default)(window).off('keydown keyup click blur');\n    },\n    focusDateInput: (0, _object.observer)('isActive', function () {\n      if (this.isActive) (0, _runloop.next)(() => this.element.querySelector('input').focus());\n    }),\n    actions: {\n      selectAndDeactivate(date) {\n        this.toggleProperty('isActive');\n        this.select(date);\n      },\n      handleDateInput(value) {\n        const date = (0, _moment.default)(value.target.value, 'YYYY-MM-DD').toDate();\n        if (date.getTime()) this.select(date);\n      },\n      toggle() {\n        this.toggleProperty('isActive');\n      }\n    }\n  }));\n});","define(\"portal/components/date-range-selector\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/runloop\", \"moment\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _object, _runloop, _moment, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"moment\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <OverlaidDropdown\n    @disabled={{this.disabled}}\n    @buttonText={{this.dateString}}\n    @buttonClasses='date-range-selector__button'\n    @buttonIcon='calendar'\n    data-test-date-range-selector\n    as |closeDropdown|\n  >\n    <div\n      class='date-range-selector__dropdown'\n      {{did-insert (action 'didOpen')}}\n      {{will-destroy (action 'willClose')}}\n    >\n      <PowerCalendarRange\n        class='date-range-selector__dropdown-section flex-md-row flex-column'\n        @center={{this.center}}\n        @maxRange={{if this.maxRange this.maxRange null}}\n        @selected={{this.selectedRange}}\n        @onCenterChange={{action (mut this.center) value='date'}}\n        @onSelect={{action (mut this.selectedRange) value='date'}}\n        as |calendar|\n      >\n        <div class='date-range-selector__quick-actions'>\n          <div class='date-range-selector__quick-actions-title'>\n            {{t 'common.Shortcuts'}}\n          </div>\n          <button\n            class='text-button'\n            data-test-this-week-button=''\n            type='button'\n            {{action 'thisWeek' calendar}}\n          >\n            {{t 'common.This week'}}\n          </button>\n          <button\n            class='text-button'\n            data-test-last-week-button=''\n            type='button'\n            {{action 'lastWeek' calendar}}\n          >\n            {{t 'common.Last week'}}\n          </button>\n          <button\n            class='text-button'\n            data-test-this-fortnight-button=''\n            type='button'\n            {{action 'thisFortnight' calendar}}\n          >\n            {{t 'common.This fortnight'}}\n          </button>\n          <button\n            class='text-button'\n            data-test-last-fortnight-button=''\n            type='button'\n            {{action 'lastFortnight' calendar}}\n          >\n            {{t 'common.Last fortnight'}}\n          </button>\n          <button\n            class='text-button'\n            data-test-this-month-button=''\n            type='button'\n            {{action 'thisMonth' calendar}}\n          >\n            {{t 'common.This month'}}\n          </button>\n          <button\n            class='text-button'\n            data-test-last-month-button=''\n            type='button'\n            {{action 'lastMonth' calendar}}\n          >\n            {{t 'common.Last month'}}\n          </button>\n        </div>\n        <div class='date-range-selector__calendar'>\n          <calendar.Nav />\n          <calendar.Days />\n        </div>\n      </PowerCalendarRange>\n      <div class='date-range-selector__dropdown-section'>\n        <div class='date-range-selector__footer'>\n          <button\n            class='button button--plain button--spaced float-end'\n            type='button'\n            {{action 'cancel' closeDropdown}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='button button--spaced float-end'\n            disabled={{not (and this.selectedRange.start this.selectedRange.end)}}\n            data-test-date-range-selector-apply-button=''\n            type='button'\n            {{action 'applyFilter' closeDropdown}}\n          >\n            {{t 'common.Apply'}}\n          </button>\n        </div>\n      </div>\n    </div>\n  </OverlaidDropdown>\n  */\n  {\n    \"id\": \"Wi0zwFhC\",\n    \"block\": \"[[[8,[39,0],[[24,\\\"data-test-date-range-selector\\\",\\\"\\\"]],[[\\\"@disabled\\\",\\\"@buttonText\\\",\\\"@buttonClasses\\\",\\\"@buttonIcon\\\"],[[30,0,[\\\"disabled\\\"]],[30,0,[\\\"dateString\\\"]],\\\"date-range-selector__button\\\",\\\"calendar\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[24,0,\\\"date-range-selector__dropdown\\\"],[4,[38,2],[[28,[37,3],[[30,0],\\\"didOpen\\\"],null]],null],[4,[38,4],[[28,[37,3],[[30,0],\\\"willClose\\\"],null]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],[[24,0,\\\"date-range-selector__dropdown-section flex-md-row flex-column\\\"]],[[\\\"@center\\\",\\\"@maxRange\\\",\\\"@selected\\\",\\\"@onCenterChange\\\",\\\"@onSelect\\\"],[[30,0,[\\\"center\\\"]],[52,[30,0,[\\\"maxRange\\\"]],[30,0,[\\\"maxRange\\\"]],null],[30,0,[\\\"selectedRange\\\"]],[28,[37,3],[[30,0],[28,[37,7],[[30,0,[\\\"center\\\"]]],null]],[[\\\"value\\\"],[\\\"date\\\"]]],[28,[37,3],[[30,0],[28,[37,7],[[30,0,[\\\"selectedRange\\\"]]],null]],[[\\\"value\\\"],[\\\"date\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"date-range-selector__quick-actions\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"date-range-selector__quick-actions-title\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Shortcuts\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-this-week-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"thisWeek\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.This week\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-last-week-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"lastWeek\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Last week\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-this-fortnight-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"thisFortnight\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.This fortnight\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-last-fortnight-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"lastFortnight\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Last fortnight\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-this-month-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"thisMonth\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.This month\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-last-month-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"lastMonth\\\",[30,2]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Last month\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"date-range-selector__calendar\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Nav\\\"]],null,null,null],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Days\\\"]],null,null,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"date-range-selector__dropdown-section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"date-range-selector__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced float-end\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"cancel\\\",[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[16,\\\"disabled\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"selectedRange\\\",\\\"start\\\"]],[30,0,[\\\"selectedRange\\\",\\\"end\\\"]]],null]],null]],[24,\\\"data-test-date-range-selector-apply-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[[30,0],\\\"applyFilter\\\",[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Apply\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"closeDropdown\\\",\\\"calendar\\\"],false,[\\\"overlaid-dropdown\\\",\\\"div\\\",\\\"did-insert\\\",\\\"action\\\",\\\"will-destroy\\\",\\\"power-calendar-range\\\",\\\"if\\\",\\\"mut\\\",\\\"t\\\",\\\"button\\\",\\\"not\\\",\\\"and\\\"]]\",\n    \"moduleName\": \"portal/components/date-range-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['date-range-selector'],\n    today: new Date(),\n    isOpen: false,\n    intl: (0, _service.inject)(),\n    didReceiveAttrs() {\n      this._super(...arguments);\n      this.setupAttrs();\n    },\n    setupAttrs() {\n      const {\n        startDate,\n        endDate\n      } = this;\n      const daysFromCenter = Math.round((0, _moment.default)(endDate).diff(startDate, 'days') / 2);\n      const center = (0, _moment.default)(startDate).add(daysFromCenter, 'days');\n      // PowerCalendar asserts on an invalid center, which breaks rendering app-wide.\n      (0, _object.set)(this, 'center', center.isValid() ? center : (0, _moment.default)(this.today));\n      (0, _object.set)(this, 'selectedRange', {\n        start: startDate,\n        end: endDate\n      });\n    },\n    dateString: (0, _object.computed)('endDate', 'isOpen', 'selectedRange.{end,start}', 'startDate', 'today', function () {\n      const isOpen = (0, _object.get)(this, 'isOpen');\n      const isPicking = !(0, _object.get)(this, 'selectedRange.end');\n      let startDate = isOpen ? (0, _object.get)(this, 'selectedRange.start') : (0, _object.get)(this, 'startDate');\n      let endDate = isOpen ? (0, _object.get)(this, 'selectedRange.end') : (0, _object.get)(this, 'endDate');\n      if (isOpen && isPicking) {\n        startDate = (0, _moment.default)(startDate);\n        return `${startDate.format((0, _object.get)(this, 'intl').t('date.shortWithWeekday'))}&nbsp;&nbsp;&mdash;`;\n      }\n      startDate = (0, _moment.default)(startDate);\n      endDate = (0, _moment.default)(endDate);\n      let dateString = '';\n      const isThisYear = startDate.isSame(this.today, 'year') && endDate.isSame(this.today, 'year');\n      const isSameYear = startDate.isSame(endDate, 'year');\n      if (isThisYear) {\n        dateString = `${startDate.format((0, _object.get)(this, 'intl').t('date.shortWeekdayMonth'))}&nbsp;&nbsp;&mdash;&nbsp;&nbsp;${endDate.format((0, _object.get)(this, 'intl').t('date.shortWeekdayMonth'))}`;\n      } else if (isSameYear) {\n        dateString = `${startDate.format((0, _object.get)(this, 'intl').t('date.shortWeekdayMonth'))}&nbsp;&nbsp;&mdash;&nbsp;&nbsp;${endDate.format((0, _object.get)(this, 'intl').t('date.shortWithWeekday'))}`;\n      } else {\n        dateString = `${startDate.format((0, _object.get)(this, 'intl').t('date.shortWithWeekday'))}&nbsp;&nbsp;&mdash;&nbsp;&nbsp;${endDate.format((0, _object.get)(this, 'intl').t('date.shortWithWeekday'))}`;\n      }\n      return dateString;\n    }),\n    actions: {\n      applyFilter(closeDropdown) {\n        const {\n          start,\n          end\n        } = (0, _object.get)(this, 'selectedRange');\n        if (!start || !end) return;\n\n        // If onApply has been provided, use it. Otherwise mutate the start and end values directly.\n        if (this.onApply && typeof this.onApply === 'function') {\n          this.onApply({\n            startDate: start,\n            endDate: end\n          });\n        } else {\n          (0, _object.set)(this, 'startDate', (0, _moment.default)(start));\n          (0, _object.set)(this, 'endDate', (0, _moment.default)(end));\n        }\n\n        // Close the box after filter is applied.\n        closeDropdown();\n      },\n      cancel(closeDropdown) {\n        this.setupAttrs();\n        closeDropdown();\n      },\n      thisWeek(calendar) {\n        const start = (0, _moment.default)(this.today).startOf('isoWeek');\n        const end = (0, _moment.default)(start).endOf('isoWeek');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      lastWeek(calendar) {\n        const start = (0, _moment.default)(this.today).subtract(1, 'weeks').startOf('isoWeek');\n        const end = (0, _moment.default)(start).endOf('isoWeek');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      thisFortnight(calendar) {\n        const end = (0, _moment.default)(this.today).endOf('isoWeek');\n        const start = (0, _moment.default)(end).subtract(13, 'days');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      lastFortnight(calendar) {\n        const end = (0, _moment.default)(this.today).endOf('isoWeek').subtract(14, 'days');\n        const start = (0, _moment.default)(end).subtract(13, 'days');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      thisMonth(calendar) {\n        const start = (0, _moment.default)(this.today).startOf('month');\n        const end = (0, _moment.default)(start).endOf('month');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      lastMonth(calendar) {\n        const start = (0, _moment.default)(this.today).subtract(1, 'months').startOf('month');\n        const end = (0, _moment.default)(start).endOf('month');\n        calendarSelect(calendar, {\n          start,\n          end\n        });\n      },\n      didOpen() {\n        (0, _object.set)(this, 'isOpen', true);\n      },\n      willClose() {\n        (0, _runloop.next)(() => {\n          if ((0, _object.get)(this, 'isDestroying') || (0, _object.get)(this, 'isDestroyed')) return;\n          (0, _object.set)(this, 'isOpen', false);\n          this.setupAttrs();\n        });\n      }\n    }\n  }));\n  function calendarSelect(calendar, range) {\n    const {\n      start,\n      end\n    } = range;\n    const center = (0, _moment.default)(start).add(end.diff(start, 'days'), 'days');\n    calendar.actions.changeCenter(center);\n    calendar.actions.select({\n      date: {\n        start,\n        end\n      }\n    });\n  }\n});","define(\"portal/components/documents-table\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <table\n    class='table table-bordered position-report__remove-border-bottom'\n    data-test-documents-table\n  >\n    <thead class='table-light'>\n      <tr>\n        <th>{{t 'common.Name'}}</th>\n        {{#if @searchString}}\n          <th class='text-right'>{{t 'common.Path'}}</th>\n        {{/if}}\n        <th class='text-left'>{{t 'common.Type'}}</th>\n        <th class='text-left d-none d-md-table-cell'>{{t\n            'common.Created date'\n          }}</th>\n        <th class='text-left d-none d-md-table-cell'>{{t 'common.Size'}}</th>\n        <th class='text-center'>{{t 'common.Action'}}</th>\n      </tr>\n    </thead>\n    {{#if @goToContainer.isRunning}}\n      <tbody>\n        <tr>\n          <td colspan='5' class='text-center'>\n            <LoadingIcon @type='ripple' @class='p-2' /></td>\n        </tr>\n      </tbody>\n    {{else}}\n      <tbody>\n        <LazyEach\n          @items={{this.filteredFiles}}\n          @automatic={{true}}\n          @initialNumberOfItemsVisible='30'\n          @increment='30'\n          @itemDisplayName={{t 'common.documents'}}\n          @emptyContent={{this.emptyContent}}\n          as |file identifier|\n        >\n          <tr class={{identifier}}>\n            <td>\n              {{#if (eq file.type 'project')}}\n                <div class='d-flex align-items-center'>\n                  <FaIcon class='me-1 flex-shrink-0' @icon='folder' @size='md' />\n                  <LinkTo\n                    @route={{file.route}}\n                    @model={{file.projectLinkModel}}\n                    class='fs-5 btn btn-link m-0 p-0 flex-grow-1 text-start text-break'\n                    data-test-documents-project-name\n                  >{{file.name}}\n                  </LinkTo>\n                </div>\n              {{else if (eq file.type 'task')}}\n                <div class='d-flex align-items-center'>\n                  <FaIcon class='me-1 flex-shrink-0' @icon='folder' @size='md' />\n                  <LinkTo\n                    @route={{file.route}}\n                    @models={{array file.projectLinkModel file.taskLinkModel}}\n                    class='fs-5 btn btn-link m-0 p-0 flex-grow-1 text-start text-break'\n                    data-test-documents-task-name\n                  >{{file.name}}</LinkTo>\n                </div>\n              {{else}}\n                <div class='d-flex align-items-center'>\n                  <FileTypeIcon\n                    class='me-1 flex-shrink-0'\n                    @mime={{file.type}}\n                    @size='md'\n                  />\n                  <button\n                    type='button'\n                    class='fs-5 btn m-0 p-0 btn-link flex-grow-1 text-start text-break'\n                    data-test-documents-attachment-name\n                    {{on 'click' (fn this.setAttachmentToUpdate file)}}\n                  >{{file.name}}</button>\n                </div>\n              {{/if}}\n            </td>\n            {{#if @searchString}}\n              <td\n                class='text-right'\n                data-test-documents-file-breadcrumbs\n              >{{file.breadcrumbs}}</td>\n            {{/if}}\n            <td\n              class='text-left'\n              data-test-documents-file-type\n            >{{file.humanType}}</td>\n            <td\n              class='text-left d-none d-md-table-cell'\n              data-test-documents-file-dateCreated\n            >\n              {{moment-format file.dateCreated (t 'date.shortWithWeekday')}}\n            </td>\n            <td\n              class='text-left d-none d-md-table-cell'\n              data-test-documents-file-size\n            >\n              {{#if file.size}}\n                {{file-size-to-string file.size true}}\n              {{else}}\n                &mdash;\n              {{/if}}\n            </td>\n            <td class='text-center'>\n              {{#if file.size}}\n                <button\n                  class='btn btn-link p-0 m-0'\n                  type='button'\n                  data-test-documents-file-download-btn\n                  {{on 'click' (fn @downloadAttachments file)}}\n                >\n                  <FaIcon @icon='download' @size='md' />\n                </button>\n              {{else}}\n                &mdash;\n              {{/if}}\n            </td>\n          </tr>\n        </LazyEach>\n      </tbody>\n    {{/if}}\n  </table>\n  \n  {{#if @uploadModalVisible}}\n    <ModalDialog\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @onClose={{fn (mut @uploadModalVisible) false}}\n      @containerClass='block-module attachment-settings-modal__container'\n    >\n      <div class='card'>\n        <DragAndDropContainer\n          @parent={{@parent}}\n          @onUploadComplete={{@onUploadComplete}}\n          @isDragAndDropVisible={{this.isDragAndDropVisible}}\n        />\n      </div>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            {{on 'click' (fn (mut @uploadModalVisible) false)}}\n            data-test-documents-upload-close-button\n          >{{t 'common.Close'}}</button>\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.currentFile}}\n    <AttachmentSettingsModal\n      @parent={{@parent}}\n      @project={{@project}}\n      @attachment={{this.currentFile.value}}\n      @users={{@users}}\n      @onCloseAction={{this.onClose}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"7p6HYodI\",\n    \"block\": \"[[[10,\\\"table\\\"],[14,0,\\\"table table-bordered position-report__remove-border-bottom\\\"],[14,\\\"data-test-documents-table\\\",\\\"\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"thead\\\"],[14,0,\\\"table-light\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Name\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\"        \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[\\\"common.Path\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-left\\\"],[12],[1,[28,[35,4],[\\\"common.Type\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-left d-none d-md-table-cell\\\"],[12],[1,[28,[35,4],[\\\"common.Created date\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-left d-none d-md-table-cell\\\"],[12],[1,[28,[35,4],[\\\"common.Size\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,[28,[35,4],[\\\"common.Action\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"p-2\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\",\\\"@emptyContent\\\"],[[30,0,[\\\"filteredFiles\\\"]],true,\\\"30\\\",\\\"30\\\",[28,[37,4],[\\\"common.documents\\\"],null],[30,0,[\\\"emptyContent\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[15,0,[30,4]],[12],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,3,[\\\"type\\\"]],\\\"project\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,12],[[24,0,\\\"me-1 flex-shrink-0\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"folder\\\",\\\"md\\\"]],null],[1,\\\"\\\\n                \\\"],[8,[39,13],[[24,0,\\\"fs-5 btn btn-link m-0 p-0 flex-grow-1 text-start text-break\\\"],[24,\\\"data-test-documents-project-name\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,3,[\\\"route\\\"]],[30,3,[\\\"projectLinkModel\\\"]]]],[[\\\"default\\\"],[[[[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,3,[\\\"type\\\"]],\\\"task\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,12],[[24,0,\\\"me-1 flex-shrink-0\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"folder\\\",\\\"md\\\"]],null],[1,\\\"\\\\n                \\\"],[8,[39,13],[[24,0,\\\"fs-5 btn btn-link m-0 p-0 flex-grow-1 text-start text-break\\\"],[24,\\\"data-test-documents-task-name\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@models\\\"],[[30,3,[\\\"route\\\"]],[28,[37,14],[[30,3,[\\\"projectLinkModel\\\"]],[30,3,[\\\"taskLinkModel\\\"]]],null]]],[[\\\"default\\\"],[[[[1,[30,3,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,15],[[24,0,\\\"me-1 flex-shrink-0\\\"]],[[\\\"@mime\\\",\\\"@size\\\"],[[30,3,[\\\"type\\\"]],\\\"md\\\"]],null],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"fs-5 btn m-0 p-0 btn-link flex-grow-1 text-start text-break\\\"],[24,\\\"data-test-documents-attachment-name\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"setAttachmentToUpdate\\\"]],[30,3]],null]],null],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[14,\\\"data-test-documents-file-breadcrumbs\\\",\\\"\\\"],[12],[1,[30,3,[\\\"breadcrumbs\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"td\\\"],[14,0,\\\"text-left\\\"],[14,\\\"data-test-documents-file-type\\\",\\\"\\\"],[12],[1,[30,3,[\\\"humanType\\\"]]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"text-left d-none d-md-table-cell\\\"],[14,\\\"data-test-documents-file-dateCreated\\\",\\\"\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,19],[[30,3,[\\\"dateCreated\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"text-left d-none d-md-table-cell\\\"],[14,\\\"data-test-documents-file-size\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"size\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,20],[[30,3,[\\\"size\\\"]],true],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"size\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0 m-0\\\"],[24,\\\"data-test-documents-file-download-btn\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,5],[30,3]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,12],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"download\\\",\\\"md\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[3,4]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,6],[[[1,\\\"  \\\"],[8,[39,21],null,[[\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[true,\\\"modal\\\",[28,[37,18],[[28,[37,22],[[30,6]],null],false],null],\\\"block-module attachment-settings-modal__container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,23],null,[[\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,7],[30,8],[30,0,[\\\"isDragAndDropVisible\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-documents-upload-close-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[28,[37,22],[[30,6]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Close\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"currentFile\\\"]],[[[1,\\\"  \\\"],[8,[39,25],null,[[\\\"@parent\\\",\\\"@project\\\",\\\"@attachment\\\",\\\"@users\\\",\\\"@onCloseAction\\\"],[[30,7],[30,9],[30,0,[\\\"currentFile\\\",\\\"value\\\"]],[30,10],[30,0,[\\\"onClose\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@searchString\\\",\\\"@goToContainer\\\",\\\"file\\\",\\\"identifier\\\",\\\"@downloadAttachments\\\",\\\"@uploadModalVisible\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@project\\\",\\\"@users\\\"],false,[\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"t\\\",\\\"if\\\",\\\"tbody\\\",\\\"td\\\",\\\"loading-icon\\\",\\\"lazy-each\\\",\\\"eq\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"link-to\\\",\\\"array\\\",\\\"file-type-icon\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"moment-format\\\",\\\"file-size-to-string\\\",\\\"modal-dialog\\\",\\\"mut\\\",\\\"drag-and-drop-container\\\",\\\"footer\\\",\\\"attachment-settings-modal\\\"]]\",\n    \"moduleName\": \"portal/components/documents-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"currentFile\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n    }\n    setAttachmentToUpdate(file, event) {\n      event.preventDefault();\n      this.currentFile = file;\n    }\n    get isDragAndDropVisible() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.parent, 'canManageFileStorage');\n    }\n    get emptyContent() {\n      const colspan = this.args.searchString ? 6 : 5;\n      return `<tr class='text-center'><td colspan='${colspan}'>No documents</td></tr>`;\n    }\n    onClose(isDelete) {\n      if (isDelete === true) this.args.tableData.removeAttachment(this.currentFile);\n      this.currentFile = null;\n    }\n    get filteredFiles() {\n      const visibleFiles = this.args.tableData.files.filter(f => f.isVisible);\n      return visibleFiles;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentFile\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"setAttachmentToUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setAttachmentToUpdate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClose\"), _class.prototype), _class));\n});","define(\"portal/components/drag-and-drop-container\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"portal/models/attachment\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _service, _object, _tracking, _attachment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/models/attachment\",0,\"portal/models/attachment\",0,\"ember-concurrency\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='p-3 {{if this.isDropHover \"drag-and-drop-hovered\"}} d-flex flex-column'\n    ...attributes\n    {{on 'dragleave' this.onDragLeave}}\n    {{on 'dragover' this.onDragOver}}\n    {{on 'drop' this.onDropZoneDrop}}\n  >\n    {{yield}}\n  \n    {{#if this.processAttachments.isRunning}}\n      <span class='align-self-center d-flex align-items-center m-2 fs-5'>\n        {{t 'common.Uploading files'}}\n        <FaIcon @icon='circle-notch' @spin={{true}} class='ms-2 text-primary' />\n      </span>\n    {{/if}}\n  \n    {{#if @isDragAndDropVisible}}\n      <div class='align-self-center d-flex align-items-center m-2'>\n        {{t 'shared.bill.Drag files here or'}}\n        <button\n          type='button'\n          class='btn btn-success text-white ms-2'\n          {{on 'click' this.onManualUploadClick}}\n        >\n          <FaIcon @icon='upload' />&nbsp;&nbsp;{{t 'shared.bill.Browse files'}}\n        </button>\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"/rA5HhdH\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"p-3 \\\",[52,[30,0,[\\\"isDropHover\\\"]],\\\"drag-and-drop-hovered\\\"],\\\" d-flex flex-column\\\"]]],[17,1],[4,[38,2],[\\\"dragleave\\\",[30,0,[\\\"onDragLeave\\\"]]],null],[4,[38,2],[\\\"dragover\\\",[30,0,[\\\"onDragOver\\\"]]],null],[4,[38,2],[\\\"drop\\\",[30,0,[\\\"onDropZoneDrop\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[18,3,null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"processAttachments\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"align-self-center d-flex align-items-center m-2 fs-5\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"common.Uploading files\\\"],null]],[1,\\\"\\\\n      \\\"],[8,[39,6],[[24,0,\\\"ms-2 text-primary\\\"]],[[\\\"@icon\\\",\\\"@spin\\\"],[\\\"circle-notch\\\",true]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"align-self-center d-flex align-items-center m-2\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"shared.bill.Drag files here or\\\"],null]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"onManualUploadClick\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"shared.bill.Browse files\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"&attrs\\\",\\\"@isDragAndDropVisible\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"yield\\\",\\\"span\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"button\\\"]]\",\n    \"moduleName\": \"portal/components/drag-and-drop-container.hbs\",\n    \"isStrictMode\": false\n  });\n  const acceptedMimeTypes = [..._attachment.shortcutsToMime.image, ..._attachment.shortcutsToMime.text, ..._attachment.shortcutsToMime.document, ..._attachment.shortcutsToMime.archive];\n  function fileIsTooLarge(size) {\n    // 30MB is current server limit\n    // Base64 encoding increases size by ~33% https://developer.mozilla.org/en-US/docs/Glossary/Base64\n    return size > 2e7; // 20MB\n  }\n  class FileContainer {\n    constructor({\n      file,\n      store,\n      entity,\n      intl\n    }) {\n      _defineProperty(this, \"file\", void 0);\n      _defineProperty(this, \"store\", void 0);\n      _defineProperty(this, \"entity\", void 0);\n      _defineProperty(this, \"intl\", void 0);\n      this.file = file;\n      this.store = store;\n      this.entity = entity;\n      this.intl = intl;\n    }\n    get validationError() {\n      // directories and files without types are not allowed\n      if (!this.file.type) return this.intl.t('validation.xIsNotAValidFile', {\n        fileName: this.file.name\n      });\n\n      // check the mime type\n      if (!acceptedMimeTypes.some(acceptedMime => (0, _attachment.isMimeSame)(acceptedMime, this.file.type))) return this.intl.t('validation.xIsNotAValidFile', {\n        fileName: this.file.name\n      });\n\n      // check if the file is too large\n      if (fileIsTooLarge(this.file.size)) return this.intl.t('validation.xIsLargerThan20mbAndWillNotBeUploaded', {\n        fileName: this.file.name\n      });\n      return false;\n    }\n    get isValid() {\n      return this.validationError === false;\n    }\n    async create() {\n      return _attachment.default.fromFileInput(this.file, this.store, this.entity);\n    }\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isDropHover\", _descriptor4, this);\n      _defineProperty(this, \"processAttachments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (files) {\n          let fileContainers = [];\n          try {\n            fileContainers = files.map(file => new FileContainer({\n              file,\n              store: this.store,\n              entity: this.sessionData.entity,\n              intl: this.intl\n            }));\n            const fileContainersForUpload = fileContainers.filter(fc => fc.isValid);\n            const invalidFiles = fileContainers.filter(fc => !fc.isValid);\n            const attachments = yield Promise.all(fileContainersForUpload.map(fc => fc.create()));\n            yield this.args.onUploadComplete({\n              error: undefined,\n              validationErrors: invalidFiles.map(fc => fc.validationError),\n              attachments\n            });\n          } catch (error) {\n            this.args.onUploadComplete({\n              error,\n              validationErrors: [this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments')],\n              attachments: []\n            });\n          }\n        }\n      }), null, \"processAttachments\", null));\n    }\n    onDragLeave(event) {\n      event.preventDefault();\n      this.isDropHover = false;\n    }\n    onDragOver(event) {\n      event.preventDefault();\n      this.isDropHover = true;\n    }\n    onDropZoneDrop(event) {\n      event.preventDefault();\n      let files = [...event.dataTransfer.files];\n      this.isDropHover = false;\n      this.processAttachments.perform(files);\n    }\n    onManualUploadClick() {\n      const input = document.createElement('input');\n      input.type = 'file';\n      input.accept = acceptedMimeTypes.join(', ');\n      input.multiple = true;\n      input.onchange = this.onManualFileUpload;\n      input.click();\n    }\n    onManualFileUpload(event) {\n      const files = [...event.target.files];\n      this.processAttachments.perform(files);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isDropHover\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onDragLeave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragLeave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragOver\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragOver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDropZoneDrop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDropZoneDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onManualUploadClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onManualUploadClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onManualFileUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onManualFileUpload\"), _class.prototype), _class));\n});","define(\"portal/components/drag-sort-list\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _class2, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <DragSortList::Children\n    ...attributes\n    @containers={{this.containers}}\n    @itemComponent={{@itemComponent}}\n    @sort={{this.sort}}\n    @setDraggedContainer={{this.setDraggedContainer}}\n    @draggedContainer={{this.draggedContainer}}\n    @eachKey={{this.eachKey}}\n    @disableDragging={{@disableDragging}}\n  />\n  */\n  {\n    \"id\": \"N1+FBMvt\",\n    \"block\": \"[[[8,[39,0],[[17,1]],[[\\\"@containers\\\",\\\"@itemComponent\\\",\\\"@sort\\\",\\\"@setDraggedContainer\\\",\\\"@draggedContainer\\\",\\\"@eachKey\\\",\\\"@disableDragging\\\"],[[30,0,[\\\"containers\\\"]],[30,2],[30,0,[\\\"sort\\\"]],[30,0,[\\\"setDraggedContainer\\\"]],[30,0,[\\\"draggedContainer\\\"]],[30,0,[\\\"eachKey\\\"]],[30,3]]],null]],[\\\"&attrs\\\",\\\"@itemComponent\\\",\\\"@disableDragging\\\"],false,[\\\"drag-sort-list/children\\\"]]\",\n    \"moduleName\": \"portal/components/drag-sort-list.hbs\",\n    \"isStrictMode\": false\n  });\n  let DragSortListComponent = _exports.default = (_class2 = class DragSortListComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"draggedContainer\", _descriptor5, this);\n    }\n    get eachKey() {\n      let key = 'item';\n      if (this.args.eachKey) key += '.' + this.args.eachKey;\n      return key;\n    }\n    get containers() {\n      return DSLContainer.buildContainers(this.args.list);\n    }\n    setDraggedContainer(container) {\n      this.draggedContainer = container;\n    }\n    sort(sourceId, targetId, sortAction) {\n      const onUpdate = this.args.onUpdate;\n      if (!onUpdate) return;\n      const newContainerList = DSLContainer.sort(this.containers, sourceId,\n      // these are \"dslIds\"\n      targetId,\n      // these are \"dslIds\"\n      sortAction // ['above', 'into', 'below']\n      );\n\n      // Map containers back to originals\n      const newList = DSLContainer.unwrap(newContainerList);\n      onUpdate(newList);\n    }\n  }, _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"draggedContainer\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setDraggedContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDraggedContainer\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sort\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sort\"), _class2.prototype), _class2);\n  function getElement(list, coordinates) {\n    if (coordinates.length === 1) return list[coordinates[0]];else return getElement(list[coordinates[0]].children, coordinates.slice(1));\n  }\n\n  /*\n  Turns a self similar, nested list in the form:\n  Item extends { ..., children: Item[] }\n  into another self similar list in the form:\n  DSLContainer: { ...extraProps, item: Item, children: DSLContainer[] }\n  This is to be able to pass around properties without exposing them\n  or mutating the items passed in.\n  */\n  let DSLContainer = (_class = class DSLContainer {\n    static sort(containerList, sourceId, targetId, sortAction) {\n      const newContainerList = DSLContainer.clone(containerList);\n      const sourceCoordinates = sourceId.split('.').map(c => Number.parseInt(c));\n      const targetCoordinates = targetId.split('.').map(c => Number.parseInt(c));\n      const sourceContainer = getElement(newContainerList, sourceCoordinates);\n      const targetContainer = getElement(newContainerList, targetCoordinates);\n\n      // Remove from old location\n      const sourceList = sourceContainer.parent?.children ?? newContainerList;\n      const sourceIndex = sourceCoordinates[sourceCoordinates.length - 1];\n      sourceList.splice(sourceIndex, 1);\n      if (['above', 'below'].includes(sortAction)) {\n        // Reassign parent pointer\n        sourceContainer.parent = targetContainer.parent;\n\n        // Insert into new location\n        const targetList = targetContainer.parent?.children ?? newContainerList;\n        let targetIndex = targetCoordinates[targetCoordinates.length - 1];\n\n        // if the element was removed from above the target in the same list\n        // we need to account for the removed element in the targetIndex\n        const isSameList = sourceList === targetList;\n        if (isSameList && targetIndex > sourceIndex) targetIndex--;\n        if (sortAction === 'below') targetIndex++; // If placing below target, add 1 to index\n\n        targetList.splice(targetIndex, 0, sourceContainer);\n      } else if (sortAction === 'into') {\n        // Reassign parent pointer\n        sourceContainer.parent = targetContainer;\n\n        // Insert into new location\n        targetContainer.children.splice(0, 0, sourceContainer);\n      } else {\n        throw new Error('Unknown sort action provided');\n      }\n      return newContainerList;\n    }\n    static unwrap(containers) {\n      // we are directly modifying the \"children\" array so we can return the newly sorted array\n      // we should encourage mutable data to be passed to this component\n      // directly modifying ember data isn't ideal\n      return containers.map(c => {\n        c.item.children = DSLContainer.unwrap(c.children);\n        return c.item;\n      });\n    }\n    static clone(containers, parent) {\n      return containers.map(c => {\n        const newContainer = {\n          ...c,\n          parent\n        };\n        newContainer.children = DSLContainer.clone(c.children, newContainer);\n        return newContainer;\n      });\n    }\n    static buildContainers(list) {\n      // It is wrapped to prevent anyone being tempted to pass in the parent, or\n      return DSLContainer._buildContainers(list);\n    }\n    static _buildContainers(list, parent, prefix = '') {\n      return list.map((item, index) => {\n        const container = new DSLContainer(item, prefix + index);\n        container.parent = parent;\n        if (item.children?.length) {\n          container.children = DSLContainer._buildContainers(item.children, container, prefix + index + '.');\n        }\n        return container;\n      });\n    }\n    constructor(item, id) {\n      _defineProperty(this, \"dslId\", void 0);\n      _defineProperty(this, \"item\", void 0);\n      _defineProperty(this, \"parent\", void 0);\n      _defineProperty(this, \"children\", []);\n      _initializerDefineProperty(this, \"isDragging\", _descriptor, this);\n      _initializerDefineProperty(this, \"isDroppingAbove\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isDroppingBelow\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isDroppingInto\", _descriptor4, this);\n      this.item = item;\n      this.dslId = id;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isDragging\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isDroppingAbove\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isDroppingBelow\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isDroppingInto\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DragSortListComponent);\n});","define(\"portal/components/drag-sort-list/children\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div ...attributes>\n    {{#each @containers key=@eachKey as |container|}}\n      {{component\n        @itemComponent\n        item=container.item\n        dsl=(hash\n          isDroppingAbove=container.isDroppingAbove\n          isDroppingInto=container.isDroppingInto\n          isDroppingBelow=container.isDroppingBelow\n          isDragging=(eq @draggedContainer.dslId container.dslId)\n          Separator=(component 'drag-sort-list/separator')\n          Draggable=(component\n            'drag-sort-list/draggable'\n            container=container\n            sort=@sort\n            setDraggedContainer=@setDraggedContainer\n            draggedContainer=@draggedContainer\n            disableDragging=@disableDragging\n          )\n          DragHandle=(component\n            'drag-sort-list/drag-handle'\n            container=container\n            setDraggedContainer=@setDraggedContainer\n            draggedContainer=@draggedContainer\n            disableDragging=@disableDragging\n          )\n          Children=(component\n            'drag-sort-list/children'\n            containers=container.children\n            itemComponent=@itemComponent\n            sort=@sort\n            setDraggedContainer=@setDraggedContainer\n            draggedContainer=@draggedContainer\n            eachKey=@eachKey\n            disableDragging=@disableDragging\n          )\n        )\n      }}\n    {{/each}}\n  </div>\n  */\n  {\n    \"id\": \"+Z71i6LR\",\n    \"block\": \"[[[11,0],[17,1],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,2]],null]],null],[30,3],[[[1,\\\"    \\\"],[46,[30,5],null,[[\\\"item\\\",\\\"dsl\\\"],[[30,4,[\\\"item\\\"]],[28,[37,4],null,[[\\\"isDroppingAbove\\\",\\\"isDroppingInto\\\",\\\"isDroppingBelow\\\",\\\"isDragging\\\",\\\"Separator\\\",\\\"Draggable\\\",\\\"DragHandle\\\",\\\"Children\\\"],[[30,4,[\\\"isDroppingAbove\\\"]],[30,4,[\\\"isDroppingInto\\\"]],[30,4,[\\\"isDroppingBelow\\\"]],[28,[37,5],[[30,6,[\\\"dslId\\\"]],[30,4,[\\\"dslId\\\"]]],null],[50,\\\"drag-sort-list/separator\\\",0,null,null],[50,\\\"drag-sort-list/draggable\\\",0,null,[[\\\"container\\\",\\\"sort\\\",\\\"setDraggedContainer\\\",\\\"draggedContainer\\\",\\\"disableDragging\\\"],[[30,4],[30,7],[30,8],[30,6],[30,9]]]],[50,\\\"drag-sort-list/drag-handle\\\",0,null,[[\\\"container\\\",\\\"setDraggedContainer\\\",\\\"draggedContainer\\\",\\\"disableDragging\\\"],[[30,4],[30,8],[30,6],[30,9]]]],[50,\\\"drag-sort-list/children\\\",0,null,[[\\\"containers\\\",\\\"itemComponent\\\",\\\"sort\\\",\\\"setDraggedContainer\\\",\\\"draggedContainer\\\",\\\"eachKey\\\",\\\"disableDragging\\\"],[[30,4,[\\\"children\\\"]],[30,5],[30,7],[30,8],[30,6],[30,3],[30,9]]]]]]]]],null],[1,\\\"\\\\n\\\"]],[4]],null],[13]],[\\\"&attrs\\\",\\\"@containers\\\",\\\"@eachKey\\\",\\\"container\\\",\\\"@itemComponent\\\",\\\"@draggedContainer\\\",\\\"@sort\\\",\\\"@setDraggedContainer\\\",\\\"@disableDragging\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"component\\\",\\\"hash\\\",\\\"eq\\\"]]\",\n    \"moduleName\": \"portal/components/drag-sort-list/children.hbs\",\n    \"isStrictMode\": false\n  });\n  class DragSortListChildrenComponent extends _component2.default {}\n  _exports.default = DragSortListChildrenComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DragSortListChildrenComponent);\n});","define(\"portal/components/drag-sort-list/drag-handle\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! template-lint-disable no-invalid-interactive }}\n  {{! template-lint-disable no-pointer-down-event-binding }}\n  <div\n    class={{this.cursorClass}}\n    {{on 'mousedown' (fn (mut @container.isDragging) true)}}\n    {{on 'mouseup' (fn (mut @container.isDragging) false)}}\n    {{on 'touchstart' (fn (mut @container.isDragging) true)}}\n    {{on 'touchend' (fn (mut @container.isDragging) false)}}\n    ...attributes\n  >{{yield}}</div>\n  */\n  {\n    \"id\": \"jR2x78p8\",\n    \"block\": \"[[[11,0],[16,0,[30,0,[\\\"cursorClass\\\"]]],[17,1],[4,[38,1],[\\\"mousedown\\\",[28,[37,2],[[28,[37,3],[[30,2,[\\\"isDragging\\\"]]],null],true],null]],null],[4,[38,1],[\\\"mouseup\\\",[28,[37,2],[[28,[37,3],[[30,2,[\\\"isDragging\\\"]]],null],false],null]],null],[4,[38,1],[\\\"touchstart\\\",[28,[37,2],[[28,[37,3],[[30,2,[\\\"isDragging\\\"]]],null],true],null]],null],[4,[38,1],[\\\"touchend\\\",[28,[37,2],[[28,[37,3],[[30,2,[\\\"isDragging\\\"]]],null],false],null]],null],[12],[18,3,null],[13]],[\\\"&attrs\\\",\\\"@container\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/drag-sort-list/drag-handle.hbs\",\n    \"isStrictMode\": false\n  });\n  class DragSortListDragHandleComponent extends _component2.default {\n    get cursorClass() {\n      if (this.args.disableDragging) return null;\n      if (this.args.container.isDragging) {\n        return 'grabbing-cursor';\n      }\n      return 'grab-cursor';\n    }\n  }\n  _exports.default = DragSortListDragHandleComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DragSortListDragHandleComponent);\n});","define(\"portal/components/drag-sort-list/draggable\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    draggable={{if @disableDragging false @container.isDragging}}\n    {{on 'dragstart' this.onDragStart}}\n    {{on 'dragenter' this.onDragEnter}}\n    {{on 'dragover' this.onDragOver}}\n    {{on 'dragleave' this.onDragLeave}}\n    {{on 'drop' this.onDrop}}\n    {{on 'dragend' this.onDragEnd}}\n    ...attributes\n  >{{yield}}</div>\n  */\n  {\n    \"id\": \"j6Dc3wl7\",\n    \"block\": \"[[[11,0],[16,\\\"draggable\\\",[52,[30,1],false,[30,2,[\\\"isDragging\\\"]]]],[17,3],[4,[38,2],[\\\"dragstart\\\",[30,0,[\\\"onDragStart\\\"]]],null],[4,[38,2],[\\\"dragenter\\\",[30,0,[\\\"onDragEnter\\\"]]],null],[4,[38,2],[\\\"dragover\\\",[30,0,[\\\"onDragOver\\\"]]],null],[4,[38,2],[\\\"dragleave\\\",[30,0,[\\\"onDragLeave\\\"]]],null],[4,[38,2],[\\\"drop\\\",[30,0,[\\\"onDrop\\\"]]],null],[4,[38,2],[\\\"dragend\\\",[30,0,[\\\"onDragEnd\\\"]]],null],[12],[18,4,null],[13]],[\\\"@disableDragging\\\",\\\"@container\\\",\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/drag-sort-list/draggable.hbs\",\n    \"isStrictMode\": false\n  });\n  let DragSortListDraggableComponent = _exports.default = (_class = class DragSortListDraggableComponent extends _component2.default {\n    // you cannot become a child of yourself\n    // this relies on the path-ish type ids (dslId) to check if the currently dragged\n    // item can be dropped onto this item\n    // e.g:\n    // \"0\" is dragged onto \"0.0\"\n    // result: not droppable because the dragged item is the parent of the dropped item\n    //         you can not become a child of yourself\n    // \"0\" is dragged onto \"0\"\n    // result: not droppable because you can not drop onto yourself\n    // \"0\" is dragged onto \"1\"\n    // result: droppable because there is no relationship between them\n    get isDraggingOntoSelf() {\n      if (!this.args.draggedContainer) return false;\n      return this.args.container.dslId === this.args.draggedContainer.dslId;\n    }\n    get isDraggingInsideSelf() {\n      if (!this.args.draggedContainer) return false;\n      return this.args.draggedContainer.dslId !== this.args.container.dslId && this.args.container.dslId.startsWith(this.args.draggedContainer.dslId);\n    }\n    onDragStart(event) {\n      event.dataTransfer.setData('text/plain', this.args.container.dslId);\n      event.stopPropagation();\n      this.args.setDraggedContainer(this.args.container);\n    }\n    onDragEnter(event) {\n      event.preventDefault();\n    }\n    onDragOver(event) {\n      if (this.isDraggingInsideSelf) {\n        event.stopPropagation();\n        event.preventDefault();\n        return;\n      }\n      const cursorYPos = event.originalEvent ? event.originalEvent.pageY : event.pageY;\n      const elementTop = event.currentTarget.getBoundingClientRect().top + document.documentElement.scrollTop;\n      const elementHeight = event.currentTarget.offsetHeight;\n\n      // note: comments assume element is 45px tall\n      // basically the pixel position of cursor from the top of the element (0px is on the top, 45px is the bottom)\n      const heightOffset = cursorYPos - elementTop;\n      const third = 1 / 3;\n      // 0px until 14px\n      const inTopThird = heightOffset < elementHeight * third;\n      // 31px until 45px\n      const inBottomThird = heightOffset > elementHeight * (third * 2);\n      // 15px until 30px\n      const inMiddleThird = !inTopThird && !inBottomThird;\n      if (this.args.container.isDroppingAbove !== inTopThird) this.args.container.isDroppingAbove = inTopThird;\n      const isDroppingInto = this.isDraggingOntoSelf ? false : inMiddleThird;\n      if (this.args.container.isDroppingInto !== isDroppingInto) this.args.container.isDroppingInto = isDroppingInto;\n      if (this.args.container.isDroppingBelow !== inBottomThird) this.args.container.isDroppingBelow = inBottomThird;\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    onDrop(event) {\n      event.stopPropagation();\n      this.args.container.isDragging = false;\n      const sourceId = event.dataTransfer.getData('text/plain');\n      const targetId = this.args.container.dslId;\n      // sorting is required when the dragged element is not equal to the drop target\n      // e.g the element has not been dropped onto itself\n      const sortingRequired = sourceId !== targetId;\n      if (sortingRequired) {\n        let direction;\n        if (this.args.container.isDroppingAbove) direction = 'above';\n        if (this.args.container.isDroppingInto) direction = 'into';\n        if (this.args.container.isDroppingBelow) direction = 'below';\n        this.args.sort(sourceId, targetId, direction);\n      }\n      this.args.container.isDroppingAbove = false;\n      this.args.container.isDroppingInto = false;\n      this.args.container.isDroppingBelow = false;\n    }\n    onDragLeave() {\n      this.args.container.isDroppingAbove = false;\n      this.args.container.isDroppingInto = false;\n      this.args.container.isDroppingBelow = false;\n    }\n    onDragEnd() {\n      this.args.container.isDragging = false;\n      this.args.setDraggedContainer(undefined);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"onDragStart\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragStart\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragEnter\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragEnter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragOver\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragOver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDrop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragLeave\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragLeave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDragEnd\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDragEnd\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DragSortListDraggableComponent);\n});","define(\"portal/components/drag-sort-list/separator\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='dsl-separator'></div>\n  */\n  {\n    \"id\": \"vpmGMpmy\",\n    \"block\": \"[[[10,0],[14,0,\\\"dsl-separator\\\"],[12],[13]],[],false,[\\\"div\\\"]]\",\n    \"moduleName\": \"portal/components/drag-sort-list/separator.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // eslint-disable-next-line ember/no-empty-glimmer-component-classes\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/draggable-task\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    \n  */\n  {\n    \"id\": \"PdluFg5Z\",\n    \"block\": \"[[],[],false,[]]\",\n    \"moduleName\": \"portal/components/draggable-task.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/dropdown-button\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='d-flex' ...attributes>\n    {{#if @route}}\n      <LinkTo\n        @route={{@route}}\n        @model={{@model}}\n        class='{{or @btnClass \"btn btn-primary\"}}\n          rounded-0 rounded-start text-white'\n      >\n        {{#if @icon}}<FaIcon @icon={{@icon}} />&nbsp;&nbsp;{{/if}}{{@buttonText}}\n      </LinkTo>\n    {{else}}\n      <button\n        type='button'\n        class='{{or @btnClass \"btn btn-primary\"}}\n          rounded-0 rounded-start text-white'\n        {{on 'click' @onPrimaryClick}}\n        disabled={{@disabled}}\n        data-test-dropdown-button-primary-button={{@buttonText}}\n      >\n        {{#if @icon}}<FaIcon @icon={{@icon}} />&nbsp;&nbsp;{{/if}}{{@buttonText}}\n      </button>\n    {{/if}}\n  \n    <PopOver\n      @fixed={{@popOverFixed}}\n      @direction={{or @direction 'bottom-left'}}\n      as |po|\n    >\n      <button\n        type='button'\n        class='{{or @btnClass \"btn btn-primary\"}}\n          dropdown-button__divider rounded-0 rounded-end text-white'\n        disabled={{@disabled}}\n        data-test-dropdown-button-dropdown-button={{@buttonText}}\n      >\n        <FaIcon @icon='caret-down' />\n      </button>\n      <po.Content>\n        {{yield}}\n      </po.Content>\n    </PopOver>\n  </div>\n  */\n  {\n    \"id\": \"slxDqnHX\",\n    \"block\": \"[[[11,0],[24,0,\\\"d-flex\\\"],[17,1],[12],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\"    \\\"],[8,[39,2],[[16,0,[29,[[28,[37,3],[[30,3],\\\"btn btn-primary\\\"],null],\\\"\\\\n        rounded-0 rounded-start text-white\\\"]]]],[[\\\"@route\\\",\\\"@model\\\"],[[30,2],[30,4]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[41,[30,5],[[[8,[39,4],null,[[\\\"@icon\\\"],[[30,5]]],null],[1,\\\"  \\\"]],[]],null],[1,[30,6]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[11,\\\"button\\\"],[16,0,[29,[[28,[37,3],[[30,3],\\\"btn btn-primary\\\"],null],\\\"\\\\n        rounded-0 rounded-start text-white\\\"]]],[16,\\\"disabled\\\",[30,7]],[16,\\\"data-test-dropdown-button-primary-button\\\",[30,6]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,8]],null],[12],[1,\\\"\\\\n      \\\"],[41,[30,5],[[[8,[39,4],null,[[\\\"@icon\\\"],[[30,5]]],null],[1,\\\"  \\\"]],[]],null],[1,[30,6]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[8,[39,7],null,[[\\\"@fixed\\\",\\\"@direction\\\"],[[30,9],[28,[37,3],[[30,10],\\\"bottom-left\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"button\\\"],[15,0,[29,[[28,[37,3],[[30,3],\\\"btn btn-primary\\\"],null],\\\"\\\\n        dropdown-button__divider rounded-0 rounded-end text-white\\\"]]],[15,\\\"disabled\\\",[30,7]],[15,\\\"data-test-dropdown-button-dropdown-button\\\",[30,6]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[30,11,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[18,12,null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[11]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@route\\\",\\\"@btnClass\\\",\\\"@model\\\",\\\"@icon\\\",\\\"@buttonText\\\",\\\"@disabled\\\",\\\"@onPrimaryClick\\\",\\\"@popOverFixed\\\",\\\"@direction\\\",\\\"po\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"link-to\\\",\\\"or\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"on\\\",\\\"pop-over\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/dropdown-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/duration-input\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"portal/utils/duration-input\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _durationInput, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/utils/duration-input\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <input\n    value={{this.value}}\n    placeholder={{or @placeholder '0:00'}}\n    {{on 'focus' this.handleFocus}}\n    {{on 'blur' this.handleBlur}}\n    disabled={{@disabled}}\n    class={{@class}}\n    type='text'\n    ...attributes\n  />\n  */\n  {\n    \"id\": \"CMvFX7/b\",\n    \"block\": \"[[[11,\\\"input\\\"],[16,2,[30,0,[\\\"value\\\"]]],[16,\\\"placeholder\\\",[28,[37,1],[[30,1],\\\"0:00\\\"],null]],[16,\\\"disabled\\\",[30,2]],[16,0,[30,3]],[24,4,\\\"text\\\"],[17,4],[4,[38,2],[\\\"focus\\\",[30,0,[\\\"handleFocus\\\"]]],null],[4,[38,2],[\\\"blur\\\",[30,0,[\\\"handleBlur\\\"]]],null],[12],[13]],[\\\"@placeholder\\\",\\\"@disabled\\\",\\\"@class\\\",\\\"&attrs\\\"],false,[\\\"input\\\",\\\"or\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/duration-input.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"value\", _descriptor, this);\n      this.value = (0, _durationInput.formatDuration)([this.args.duration ?? 0]);\n    }\n    handleFocus(event) {\n      if (this.args.selectOnFocus) {\n        requestAnimationFrame(() => {\n          event.target.select();\n        });\n      }\n    }\n    handleBlur(event) {\n      const rawValue = event.target.value;\n      const duration = (0, _durationInput.parseDuration)(rawValue);\n      this.value = (0, _durationInput.formatDuration)([duration]);\n      if (this.args.onDurationChange) {\n        this.args.onDurationChange(duration);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"value\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"handleFocus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleFocus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleBlur\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleBlur\"), _class.prototype), _class));\n});","define(\"portal/components/education-promotion-button\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (and (includes-feature-flags 'entityIsCalStudent') this.couponCode)}}\n    <a\n      href='https://au.buildaprice.app/plans'\n      target='_blank'\n      rel='noopener noreferrer'\n      class='btn btn-info p-3 rounded-4 animate-flip-down text-white text-center fs-5'\n      data-test-button\n      ...attributes\n    >\n      {{t\n        'components.education-promotion-button.promotionMessage'\n        couponCode=this.couponCode\n      }}\n    </a>\n  {{/if}}\n  */\n  {\n    \"id\": \"gJ+mO3FJ\",\n    \"block\": \"[[[41,[28,[37,1],[[28,[37,2],[\\\"entityIsCalStudent\\\"],null],[30,0,[\\\"couponCode\\\"]]],null],[[[1,\\\"  \\\"],[11,3],[24,6,\\\"https://au.buildaprice.app/plans\\\"],[24,\\\"target\\\",\\\"_blank\\\"],[24,\\\"rel\\\",\\\"noopener noreferrer\\\"],[24,0,\\\"btn btn-info p-3 rounded-4 animate-flip-down text-white text-center fs-5\\\"],[24,\\\"data-test-button\\\",\\\"\\\"],[17,1],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,4],[\\\"components.education-promotion-button.promotionMessage\\\"],[[\\\"couponCode\\\"],[[30,0,[\\\"couponCode\\\"]]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"&attrs\\\"],false,[\\\"if\\\",\\\"and\\\",\\\"includes-feature-flags\\\",\\\"a\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/education-promotion-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n    get couponCode() {\n      return this.sessionData.entity?.calEducationCouponCode;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/ember-modal-dialog-positioned-container\", [\"exports\", \"ember-modal-dialog/components/positioned-container\"], function (_exports, _positionedContainer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _positionedContainer.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/positioned-container\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/-basic-dialog\", [\"exports\", \"ember-modal-dialog/components/basic-dialog\"], function (_exports, _basicDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDialog.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/basic-dialog\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/-in-place-dialog\", [\"exports\", \"ember-modal-dialog/components/in-place-dialog\"], function (_exports, _inPlaceDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _inPlaceDialog.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/in-place-dialog\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/-liquid-dialog\", [\"exports\", \"ember-modal-dialog/components/liquid-dialog\"], function (_exports, _liquidDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _liquidDialog.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/liquid-dialog\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/-liquid-tether-dialog\", [\"exports\", \"ember-modal-dialog/components/liquid-tether-dialog\"], function (_exports, _liquidTetherDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _liquidTetherDialog.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/liquid-tether-dialog\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/-tether-dialog\", [\"exports\", \"ember-modal-dialog/components/tether-dialog\"], function (_exports, _tetherDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _tetherDialog.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/tether-dialog\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-modal-dialog/overlay\", [\"exports\", \"ember-modal-dialog/components/overlay\"], function (_exports, _overlay) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _overlay.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/components/overlay\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/ember-wormhole\", [\"exports\", \"ember-wormhole/components/ember-wormhole\"], function (_exports, _emberWormhole) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberWormhole.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-wormhole/components/ember-wormhole\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/entity-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @containerClass='modal-content w-auto'\n    @overlayClass='modal'\n    @onClose={{@onClose}}\n  >\n    <div class='modal-body d-flex flex-column align-items-start overflow-hidden'>\n      <Input\n        class='mb-3 form-control'\n        aria-label={{t 'common.Find company by name'}}\n        @type='text'\n        placeholder={{t 'common.Find company by name'}}\n        autofocus={{true}}\n        @value={{this.searchString}}\n        {{did-insert this.focus}}\n      />\n  \n      <div class='overflow-auto w-100 d-flex flex-column'>\n        <LazyEach\n          @items={{this.filteredEntities}}\n          @automatic={{true}}\n          @initialNumberOfItemsVisible='20'\n          @increment='20'\n          @itemDisplayName={{t 'common.companies'}}\n          @emptyText={{t 'common.No companies'}}\n          as |entity id|\n        >\n          <span class='mb-2 {{id}}'>\n            <button\n              type='button'\n              class='btn btn-link px-0 py-1'\n              {{on 'click' (fn this.changeEntity entity.id)}}\n            >\n              {{entity.name}}\n            </button>\n  \n            {{#if entity.parent.name}}\n              <span class='badge bg-secondary text-white'>\n                {{entity.parent.name}}\n              </span>\n            {{/if}}\n          </span>\n        </LazyEach>\n      </div>\n    </div>\n  \n    <footer class='modal-footer'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white ms-2'\n        {{on 'click' @onClose}}\n      >{{t 'common.Cancel'}}</button>\n    </footer>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"slwH942l\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[true,\\\"modal-content w-auto\\\",\\\"modal\\\",[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-body d-flex flex-column align-items-start overflow-hidden\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],[[24,0,\\\"mb-3 form-control\\\"],[16,\\\"aria-label\\\",[28,[37,3],[\\\"common.Find company by name\\\"],null]],[16,\\\"placeholder\\\",[28,[37,3],[\\\"common.Find company by name\\\"],null]],[16,\\\"autofocus\\\",true],[4,[38,4],[[30,0,[\\\"focus\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"overflow-auto w-100 d-flex flex-column\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\",\\\"@emptyText\\\"],[[30,0,[\\\"filteredEntities\\\"]],true,\\\"20\\\",\\\"20\\\",[28,[37,3],[\\\"common.companies\\\"],null],[28,[37,3],[\\\"common.No companies\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,1],[15,0,[29,[\\\"mb-2 \\\",[30,3]]]],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link px-0 py-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"changeEntity\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,2,[\\\"parent\\\",\\\"name\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"badge bg-secondary text-white\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,2,[\\\"parent\\\",\\\"name\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[2,3]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"footer\\\"],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onClose\\\",\\\"entity\\\",\\\"id\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"input\\\",\\\"t\\\",\\\"did-insert\\\",\\\"lazy-each\\\",\\\"span\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"if\\\",\\\"footer\\\"]]\",\n    \"moduleName\": \"portal/components/entity-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor2, this);\n      _defineProperty(this, \"hasParentColumn\", false);\n      _defineProperty(this, \"entities\", []);\n      const parentNames = new Set();\n      this.entities = this.sessionData.allowedEntities.sort((a, b) => {\n        parentNames.add(a.belongsTo('parent').value()?.name);\n        const aString = (a.belongsTo('parent').value()?.name || '') + a.name;\n        const bString = (b.belongsTo('parent').value()?.name || '') + b.name;\n        return aString.localeCompare(bString);\n      });\n      this.hasParentColumn = parentNames.size > 1;\n    }\n    get filteredEntities() {\n      if (!this.searchString) return this.entities;\n      const searchString = this.searchString.replace(/\\s/g, '').toLowerCase();\n      const filteredEntities = this.entities.filter(e => {\n        const matchString = String((e.belongsTo('parent').value()?.name || '') + e.name).replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString);\n      });\n      return filteredEntities;\n    }\n    changeEntity(entityId) {\n      this.sessionData.changeEntity(entityId);\n      this.args.onClose();\n    }\n    focus(element) {\n      (0, _runloop.next)(() => element.focus());\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"changeEntity\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeEntity\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"focus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"focus\"), _class.prototype), _class));\n});","define(\"portal/components/entity-table-contents\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{entity-list model=this.model}}\n  */\n  {\n    \"id\": \"wNGDAS+/\",\n    \"block\": \"[[[1,[28,[35,0],null,[[\\\"model\\\"],[[30,0,[\\\"model\\\"]]]]]]],[],false,[\\\"entity-list\\\"]]\",\n    \"moduleName\": \"portal/components/entity-table-contents.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/estimate/item\", [\"exports\", \"@ember/component\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _component, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"open\", _descriptor, this);\n    }\n    setProjectedRemaining(item, hours) {\n      const costCenter = item.belongsTo('costCenter').value();\n      const manHoursProjectedTotal = hours + costCenter.manHoursActual;\n      item.manHoursProjectedTotal = manHoursProjectedTotal || 0;\n    }\n    setProjectedRemainingTotal(item, hours) {\n      const costCenter = item.belongsTo('costCenter').value();\n      const manHoursProjectedTotal = costCenter.manHoursActual > hours ? costCenter.manHoursActual : hours;\n      item.manHoursProjectedTotal = manHoursProjectedTotal || 0;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"open\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setProjectedRemaining\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setProjectedRemaining\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setProjectedRemainingTotal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setProjectedRemainingTotal\"), _class2.prototype), _class2);\n});","define(\"portal/components/fa-icon\", [\"exports\", \"@fortawesome/ember-fontawesome/components/fa-icon\"], function (_exports, _faIcon) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _faIcon.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@fortawesome/ember-fontawesome/components/fa-icon\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/file-field\", [\"exports\", \"@ember/utils\", \"@ember/object/evented\", \"@ember/component\"], function (_exports, _utils, _evented, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/object/evented\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _component.default.extend(_evented.default, {\n    tagName: 'input',\n    classNames: ['d-none'],\n    type: 'file',\n    attributeBindings: ['name', 'disabled', 'form', 'type', 'accept', 'autofocus', 'required', 'multiple'],\n    multiple: false,\n    change(event) {\n      const input = event.target;\n      if (!(0, _utils.isEmpty)(input.files)) {\n        this.trigger('filesDidChange', input.files);\n      }\n    }\n  });\n});","define(\"portal/components/file-importer\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/components/basic-importer\", \"@ember/template-factory\"], function (_exports, _component, _object, _basicImporter, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/components/basic-importer\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{yield}}\n  \n  {{component\n    this.baseParserComponent\n    file=this.importData\n    class='file-input-button__input'\n    accept='.csv,.txt'\n    data-test-bill-input=this.parser.name\n  }}\n  */\n  {\n    \"id\": \"evUW1U+L\",\n    \"block\": \"[[[18,1,null],[1,\\\"\\\\n\\\\n\\\"],[46,[30,0,[\\\"baseParserComponent\\\"]],null,[[\\\"file\\\",\\\"class\\\",\\\"accept\\\",\\\"data-test-bill-input\\\"],[[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\",[30,0,[\\\"parser\\\",\\\"name\\\"]]]],null]],[\\\"&default\\\"],false,[\\\"yield\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"portal/components/file-importer.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    tagName: 'label',\n    parser: null,\n    baseParser: 'csv',\n    accept: '.csv,.txt,.CSV,.TXT',\n    baseParserComponent: (0, _object.computed)('baseParser', function () {\n      return 'file-inputs/' + (0, _object.get)(this, 'baseParser');\n    }),\n    importObserver: (0, _object.observer)('importData', function () {\n      const importData = (0, _object.get)(this, 'importData');\n      if (importData) {\n        this.send('import', importData);\n      }\n    }),\n    actions: {\n      importing() {\n        (0, _object.set)(this, 'importing', true);\n      }\n    }\n  }));\n});","define(\"portal/components/file-inputs/csv\", [\"exports\", \"@ember/utils\", \"@ember/object\", \"@ember/runloop\", \"ember\", \"portal/components/file-field\"], function (_exports, _utils, _object, _runloop, _ember, _fileField) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"ember\",0,\"portal/components/file-field\"eaimeta@70e063a35619d71f\n  /* global Papa */\n  var _default = _exports.default = _fileField.default.extend({\n    attributeBindings: ['accept'],\n    change(event) {\n      const files = (0, _object.get)(event, 'target.files');\n      if ((0, _utils.isEmpty)(files) || files[0] == null) {\n        (0, _object.set)(this, 'file', null);\n        event.target.value = '';\n        return;\n      }\n      const reader = new FileReader();\n      reader.addEventListener('loadend', () => {\n        const sanitizedText = reader.result.replace(/[\\r\\n]+/g, '\\n');\n        Papa.parse(sanitizedText, {\n          skipEmptyLines: true,\n          newline: '\\n',\n          complete: results => (0, _runloop.run)(() => (0, _object.set)(this, 'file', results))\n        });\n      });\n      reader.readAsText(files[0]);\n      if (!_ember.default.testing) {\n        event.target.value = '';\n      }\n    }\n  });\n});","define(\"portal/components/file-inputs/general\", [\"exports\", \"portal/components/file-field\"], function (_exports, _fileField) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/file-field\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _fileField.default.extend();\n});","define(\"portal/components/file-inputs/text\", [\"exports\", \"@ember/utils\", \"@ember/object\", \"ember\", \"portal/components/file-field\"], function (_exports, _utils, _object, _ember, _fileField) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/object\",0,\"ember\",0,\"portal/components/file-field\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _fileField.default.extend({\n    attributeBindings: ['accept'],\n    change(event) {\n      /*\n      TODO There is currently no modules friendly approach to this.\n      Apparently its being worked on but I can't find where.\n      It should be reviseted at a later date.\n      */\n      const files = (0, _object.get)(event, _ember.default.testing ? 'testFiles' : 'target.files');\n      const reader = new FileReader();\n      reader.onload = () => (0, _object.set)(this, 'file', reader.result);\n      if (!(0, _utils.isEmpty)(files)) {\n        reader.readAsText(files[0]);\n      }\n    }\n  });\n});","define(\"portal/components/file-type-icon\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/models/attachment\", \"@ember/template-factory\"], function (_exports, _component, _object, _attachment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"portal/models/attachment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <FaIcon @icon={{this.icon}} @size={{this.defaultSize}} ...attributes />\n  */\n  {\n    \"id\": \"tUVr4JUI\",\n    \"block\": \"[[[8,[39,0],[[17,1]],[[\\\"@icon\\\",\\\"@size\\\"],[[30,0,[\\\"icon\\\"]],[30,0,[\\\"defaultSize\\\"]]]],null]],[\\\"&attrs\\\"],false,[\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/file-type-icon.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _object.computed)('mime'), _class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tagName\", '');\n    }\n    testMimes(testMimes) {\n      return testMimes.some(tm => (0, _attachment.isMimeSame)(tm, this.mime));\n    }\n    get icon() {\n      // eslint-disable-line complexity\n      const {\n        csv,\n        doc,\n        docx,\n        pdf,\n        ppt,\n        pptx,\n        rtf,\n        xls,\n        xlsx\n      } = _attachment.extensionToMime;\n      const {\n        audio,\n        image,\n        video,\n        text,\n        document,\n        archive\n      } = _attachment.shortcutsToMime;\n      let icon = 'file';\n      if (!this.mime) {\n        icon = 'file';\n      } else if (this.testMimes([csv, xls, xlsx])) {\n        icon = 'file-excel';\n      } else if (this.testMimes([pdf])) {\n        icon = 'file-pdf';\n      } else if (this.testMimes([doc, docx, rtf])) {\n        icon = 'file-word';\n      } else if (this.testMimes([ppt, pptx])) {\n        icon = 'file-powerpoint';\n      } else if (this.testMimes(audio)) {\n        icon = 'file-audio';\n      } else if (this.testMimes(image)) {\n        icon = 'file-image';\n      } else if (this.testMimes(video)) {\n        icon = 'file-video';\n      } else if (this.testMimes(text)) {\n        icon = 'file-text';\n      } else if (this.testMimes(document)) {\n        icon = 'file-text';\n      } else if (this.testMimes(archive)) {\n        icon = 'file-archive';\n      }\n      return icon;\n    }\n    get defaultSize() {\n      return this.size || 'lg';\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"icon\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"icon\"), _class.prototype), _class));\n});","define(\"portal/components/filter-pill\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    role='button'\n    class='px-2 py-1 fw-bold rounded bg-info text-white m-1 fs-7 text-nowrap'\n    ...attributes\n  >\n    {{yield}}&nbsp;&nbsp;<FaIcon @icon='times' @size='sm' />\n  </div>\n  */\n  {\n    \"id\": \"KPKbuQxC\",\n    \"block\": \"[[[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"px-2 py-1 fw-bold rounded bg-info text-white m-1 fs-7 text-nowrap\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"times\\\",\\\"sm\\\"]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/filter-pill.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/financial-data-importer\", [\"exports\", \"@ember/component\", \"@ember/object/evented\", \"@ember/utils\", \"@ember/object\", \"jquery\", \"@ember/object/computed\", \"@ember/template-factory\"], function (_exports, _component, _evented, _utils, _object, _jquery, _computed, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object/evented\",0,\"@ember/utils\",0,\"@ember/object\",0,\"jquery\",0,\"@ember/object/computed\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless this.hasImported}}\n    <section>\n      {{#if this.selectedSystem}}\n        {{component\n          this.optionsTemplate\n          branch=this.branch\n          organisation=this.organisation\n          periodTo=this.period\n          maps=this.maps\n          hasImported=this.hasImported\n          import=(action 'import')\n          remap=this.remap\n        }}\n  \n        {{#if this.canChangeSystem}}\n          <p class='text-center subtext'>\n            <a {{action 'setSelectedSystemValue' null}} class='link'>\n              Import from another system…</a></p>\n        {{/if}}\n      {{else}}\n        <p>To begin an automatic import, please first select which accounting\n          package you use. If your accounting package is not listed, please\n          contact support.</p>\n        <SelectInput\n          @id='import-system'\n          @value={{this.selectedSystem}}\n          @action={{action 'setSelectedSystemValue'}}\n          @class='select-box'\n          as |si|\n        >\n          <si.option>Please select a package…</si.option>\n          {{#each this.systems as |system|}}\n            <si.option @value={{system.key}}>{{system.label}}</si.option>\n          {{/each}}\n        </SelectInput>\n      {{/if}}\n    </section>\n  \n    {{#if this.hasBackgroundImports}}\n      <section class='map-list-section'>\n        <Mapping::MapList\n          @system={{this.selectedSystem}}\n          @maps={{this.maps}}\n          @importData={{this.importData}}\n          @remap={{action 'remap'}}\n          @invertMap={{action 'invertMap'}}\n        >\n          <p class='ptl-placeholder'>If you had any accounts in eAccounts that\n            needed to be mapped to accounts in the master general ledger, they\n            would be shown here.</p>\n        </Mapping::MapList>\n      </section>\n    {{/if}}\n  \n    <footer class='block-module__footer block-module__footer--centered'>\n      <button\n        class='button button--secondary'\n        type='button'\n        {{action 'advance'}}\n      >Skip</button>\n      <LoadingButton\n        @action={{action 'save'}}\n        @class='button'\n        @isLoading={{this.isImporting}}\n      >Save &amp; Continue</LoadingButton>\n    </footer>\n  {{else}}\n    <section>\n      <h3>Unmapped accounts</h3>\n      <p>These are the accounts we found in the file you imported. Click and drag\n        these accounts onto the links (<FaIcon @icon='link' />) column to the left\n        to make connections. Your connections will be saved, so your next import\n        will be much quicker.</p>\n    </section>\n  \n    <section class='map-list-section'>\n      <Mapping::MapList\n        @canInvertValues={{false}}\n        @system={{this.selectedSystem}}\n        @maps={{this.maps}}\n        @remap={{action 'remap'}}\n        @invertMap={{action 'invertMap'}}\n      >\n        <p class='ptl-placeholder'>\n          If you had any accounts in your system that needed to be mapped to\n          accounts in the master general ledger, they would be shown here.\n        </p>\n      </Mapping::MapList>\n    </section>\n  \n    <footer class='block-module__footer block-module__footer--centered'>\n      <p class='subtext'>\n        <a {{action 'resetImport'}} class='link'>\n          {{if\n            this.selectedSystem.multipleFiles\n            'Import an additional file…'\n            'Import a different file…'\n          }}\n        </a>\n      </p>\n      <button\n        class='button button--secondary'\n        type='button'\n        {{action 'advance'}}\n      >Skip</button>\n      <LoadingButton\n        @action={{action 'save'}}\n        @class='button'\n        @isLoading={{this.isImporting}}\n      >Save &amp; Continue</LoadingButton>\n    </footer>\n  {{/unless}}\n  */\n  {\n    \"id\": \"2N3VK6EG\",\n    \"block\": \"[[[41,[51,[30,0,[\\\"hasImported\\\"]]],[[[1,\\\"  \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedSystem\\\"]],[[[1,\\\"      \\\"],[46,[30,0,[\\\"optionsTemplate\\\"]],null,[[\\\"branch\\\",\\\"organisation\\\",\\\"periodTo\\\",\\\"maps\\\",\\\"hasImported\\\",\\\"import\\\",\\\"remap\\\"],[[30,0,[\\\"branch\\\"]],[30,0,[\\\"organisation\\\"]],[30,0,[\\\"period\\\"]],[30,0,[\\\"maps\\\"]],[30,0,[\\\"hasImported\\\"]],[28,[37,4],[[30,0],\\\"import\\\"],null],[30,0,[\\\"remap\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canChangeSystem\\\"]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"text-center subtext\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"link\\\"],[4,[38,4],[[30,0],\\\"setSelectedSystemValue\\\",null],null],[12],[1,\\\"\\\\n            Import from another system…\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"      \\\"],[10,2],[12],[1,\\\"To begin an automatic import, please first select which accounting\\\\n        package you use. If your accounting package is not listed, please\\\\n        contact support.\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],null,[[\\\"@id\\\",\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[\\\"import-system\\\",[30,0,[\\\"selectedSystem\\\"]],[28,[37,4],[[30,0],\\\"setSelectedSystemValue\\\"],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"option\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"Please select a package…\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"systems\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,2,[\\\"key\\\"]]]],[[\\\"default\\\"],[[[[1,[30,2,[\\\"label\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"      \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"hasBackgroundImports\\\"]],[[[1,\\\"    \\\"],[10,\\\"section\\\"],[14,0,\\\"map-list-section\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@system\\\",\\\"@maps\\\",\\\"@importData\\\",\\\"@remap\\\",\\\"@invertMap\\\"],[[30,0,[\\\"selectedSystem\\\"]],[30,0,[\\\"maps\\\"]],[30,0,[\\\"importData\\\"]],[28,[37,4],[[30,0],\\\"remap\\\"],null],[28,[37,4],[[30,0],\\\"invertMap\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"If you had any accounts in eAccounts that\\\\n          needed to be mapped to accounts in the master general ledger, they\\\\n          would be shown here.\\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer block-module__footer--centered\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--secondary\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"advance\\\"],null],[12],[1,\\\"Skip\\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,13],null,[[\\\"@action\\\",\\\"@class\\\",\\\"@isLoading\\\"],[[28,[37,4],[[30,0],\\\"save\\\"],null],\\\"button\\\",[30,0,[\\\"isImporting\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Save & Continue\\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Unmapped accounts\\\"],[13],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"These are the accounts we found in the file you imported. Click and drag\\\\n      these accounts onto the links (\\\"],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"link\\\"]],null],[1,\\\") column to the left\\\\n      to make connections. Your connections will be saved, so your next import\\\\n      will be much quicker.\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"map-list-section\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,10],null,[[\\\"@canInvertValues\\\",\\\"@system\\\",\\\"@maps\\\",\\\"@remap\\\",\\\"@invertMap\\\"],[false,[30,0,[\\\"selectedSystem\\\"]],[30,0,[\\\"maps\\\"]],[28,[37,4],[[30,0],\\\"remap\\\"],null],[28,[37,4],[[30,0],\\\"invertMap\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"\\\\n        If you had any accounts in your system that needed to be mapped to\\\\n        accounts in the master general ledger, they would be shown here.\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer block-module__footer--centered\\\"],[12],[1,\\\"\\\\n    \\\"],[10,2],[14,0,\\\"subtext\\\"],[12],[1,\\\"\\\\n      \\\"],[11,3],[24,0,\\\"link\\\"],[4,[38,4],[[30,0],\\\"resetImport\\\"],null],[12],[1,\\\"\\\\n        \\\"],[1,[52,[30,0,[\\\"selectedSystem\\\",\\\"multipleFiles\\\"]],\\\"Import an additional file…\\\",\\\"Import a different file…\\\"]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--secondary\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"advance\\\"],null],[12],[1,\\\"Skip\\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,13],null,[[\\\"@action\\\",\\\"@class\\\",\\\"@isLoading\\\"],[[28,[37,4],[[30,0],\\\"save\\\"],null],\\\"button\\\",[30,0,[\\\"isImporting\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Save & Continue\\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"si\\\",\\\"system\\\"],false,[\\\"unless\\\",\\\"section\\\",\\\"if\\\",\\\"component\\\",\\\"action\\\",\\\"p\\\",\\\"a\\\",\\\"select-input\\\",\\\"each\\\",\\\"-track-array\\\",\\\"mapping/map-list\\\",\\\"footer\\\",\\\"button\\\",\\\"loading-button\\\",\\\"h3\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/financial-data-importer.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'aside',\n    classNames: ['controls'],\n    hasImported: false,\n    hasBackgroundImports: (0, _computed.equal)('selectedSystem', 'eaccounts'),\n    canMap: (0, _computed.or)('hasImported', 'hasBackgroundImports'),\n    setHasImported: (0, _evented.on)('init', function () {\n      (0, _object.set)(this, 'hasImported', (0, _object.get)(this, 'importData.externalBalances.length') > 0);\n    }),\n    // For some reason, notEmpty doesn't work but the observer does\n    // hasSelectedSystem: computed.notEmpty('selectedSystem'),\n    selectedSystemDidChange: (0, _evented.on)('init', (0, _object.observer)('selectedSystem', function () {\n      (0, _object.set)(this, 'hasSelectedSystem', !(0, _utils.isEmpty)((0, _object.get)(this, 'selectedSystem')));\n    })),\n    didInsertElement() {\n      this._super(...arguments);\n      if ((0, _jquery.default)('html').hasClass('ie-11')) {\n        (0, _jquery.default)(this.element).height((0, _jquery.default)(window).height() - 40);\n      }\n    },\n    willDestroyElement() {\n      this._super(...arguments);\n    },\n    optionsTemplate: (0, _object.computed)('selectedSystem.key', function () {\n      var system = (0, _object.get)(this, 'selectedSystem.key');\n      if (system) {\n        return 'gl-importers/' + system;\n      } else {\n        return null;\n      }\n    }),\n    unmapped: (0, _computed.filter)('maps.@each.account', function (map) {\n      return (0, _utils.isEmpty)((0, _object.get)(map, 'account.id'));\n    }),\n    actions: {\n      resetImport() {\n        (0, _object.set)(this, 'hasImported', false);\n      },\n      import() {\n        (0, _object.set)(this, 'hasImported', true);\n        this.import(...arguments);\n      },\n      remap() {\n        this.remap(...arguments);\n      },\n      // Inversions shouldn't bubble form here\n      invertMap() {},\n      // eslint-disable-line no-empty-function\n\n      save() {\n        this.save(...arguments);\n      },\n      advance() {\n        this.advance(...arguments);\n      },\n      setSelectedSystemValue(value) {\n        const matchedSystem = this.systems.find(sys => sys.key === value);\n        this.selectSystem(matchedSystem ? matchedSystem.key : null);\n      }\n    }\n  }));\n});","define(\"portal/components/financial-data-table\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <thead>\n    <tr>\n      <th>Account name</th>\n      <th width='120px'>Amount</th>\n      <th width='35px'><FaIcon @icon='link' /></th>\n    </tr>\n  </thead>\n  <tbody>\n    {{#each this.accountList as |line|}}\n      {{#if line.isHeading}}\n  \n        <tr>\n          <td class='depth-{{line.depth}} heading' colspan='4'>\n            {{line.name}}\n  \n            {{#if line.description}}\n              <span class='float-end'>\n                <InfoPopup @text={{line.description}} />\n              </span>\n            {{/if}}\n          </td>\n        </tr>\n  \n      {{else}}\n  \n        <tr>\n          <td class='depth-{{line.depth}} financial-data-table__account-name'>\n            <a\n              class='link data-table__cell-cover'\n              {{action 'toggleConfigPane' line}}\n            >{{line.name}}</a>\n  \n            {{#if line.description}}\n              <span class='float-end'>\n                <InfoPopup @text={{line.description}} />\n              </span>\n            {{/if}}\n          </td>\n          <td>\n            <FormattedInput\n              @format={{line.format}}\n              @formatterOptions={{hash currencySymbol=''}}\n              @number={{line.balance.value}}\n              @update={{action 'manualUpdate' line}}\n              @class='data-table__cell-cover text-input text-right'\n            />\n          </td>\n          <Mapping::MapStatus\n            @system={{this.selectedSystem}}\n            @account={{line}}\n            @maps={{line.balance.maps}}\n            @isManual={{line.balance.isManual}}\n            @makeAuto={{action 'revertToAuto'}}\n            @toggle={{this.toggleConfigPane}}\n            @remap={{this.remap}}\n          />\n        </tr>\n  \n        <tr data-account-id={{line.id}} class='config-pane closed'>\n          <td colspan='4'>\n            <Mapping::MapList\n              @system={{this.selectedSystem}}\n              @account={{line}}\n              @maps={{line.balance.maps}}\n              @importData={{this.importData.externalBalances}}\n              @remap={{action this.remap}}\n              @invertMap={{action this.invertMap}}\n            />\n          </td>\n        </tr>\n  \n      {{/if}}\n    {{/each}}\n  </tbody>\n  */\n  {\n    \"id\": \"cNB3z1S7\",\n    \"block\": \"[[[10,\\\"thead\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Account name\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"120px\\\"],[12],[1,\\\"Amount\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"35px\\\"],[12],[8,[39,3],null,[[\\\"@icon\\\"],[\\\"link\\\"]],null],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"accountList\\\"]]],null]],null],null,[[[41,[30,1,[\\\"isHeading\\\"]],[[[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"depth-\\\",[30,1,[\\\"depth\\\"]],\\\" heading\\\"]]],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"description\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,10],null,[[\\\"@text\\\"],[[30,1,[\\\"description\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"depth-\\\",[30,1,[\\\"depth\\\"]],\\\" financial-data-table__account-name\\\"]]],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"link data-table__cell-cover\\\"],[4,[38,12],[[30,0],\\\"toggleConfigPane\\\",[30,1]],null],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"description\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,10],null,[[\\\"@text\\\"],[[30,1,[\\\"description\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,13],null,[[\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@update\\\",\\\"@class\\\"],[[30,1,[\\\"format\\\"]],[28,[37,14],null,[[\\\"currencySymbol\\\"],[\\\"\\\"]]],[30,1,[\\\"balance\\\",\\\"value\\\"]],[28,[37,12],[[30,0],\\\"manualUpdate\\\",[30,1]],null],\\\"data-table__cell-cover text-input text-right\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@system\\\",\\\"@account\\\",\\\"@maps\\\",\\\"@isManual\\\",\\\"@makeAuto\\\",\\\"@toggle\\\",\\\"@remap\\\"],[[30,0,[\\\"selectedSystem\\\"]],[30,1],[30,1,[\\\"balance\\\",\\\"maps\\\"]],[30,1,[\\\"balance\\\",\\\"isManual\\\"]],[28,[37,12],[[30,0],\\\"revertToAuto\\\"],null],[30,0,[\\\"toggleConfigPane\\\"]],[30,0,[\\\"remap\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"tr\\\"],[15,\\\"data-account-id\\\",[30,1,[\\\"id\\\"]]],[14,0,\\\"config-pane closed\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@system\\\",\\\"@account\\\",\\\"@maps\\\",\\\"@importData\\\",\\\"@remap\\\",\\\"@invertMap\\\"],[[30,0,[\\\"selectedSystem\\\"]],[30,1],[30,1,[\\\"balance\\\",\\\"maps\\\"]],[30,0,[\\\"importData\\\",\\\"externalBalances\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"remap\\\"]]],null],[28,[37,12],[[30,0],[30,0,[\\\"invertMap\\\"]]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]]],[1]],null],[13]],[\\\"line\\\"],false,[\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"fa-icon\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"td\\\",\\\"span\\\",\\\"info-popup\\\",\\\"a\\\",\\\"action\\\",\\\"formatted-input\\\",\\\"hash\\\",\\\"mapping/map-status\\\",\\\"mapping/map-list\\\"]]\",\n    \"moduleName\": \"portal/components/financial-data-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    sessionData: (0, _service.inject)(),\n    tagName: 'table',\n    classNames: ['data-table', 'financial-data-table'],\n    actions: {\n      manualUpdate(line, value) {\n        // If an input is changed to blank (as opposed to 0) then it is no longer manual.\n        if (value == null) return this.send('revertToAuto', line);\n        const account = (0, _object.get)(line, 'id');\n        const balance = (0, _object.get)(line, 'balance.manualBalance');\n        if (balance) {\n          (0, _object.set)(balance, 'value', value);\n        } else {\n          (0, _object.set)(line, 'balance.manualBalance', _object.default.create({\n            account,\n            value\n          }));\n        }\n      },\n      revertToAuto(line) {\n        (0, _object.set)(line, 'balance.manualBalance', null);\n      },\n      toggleConfigPane() {\n        this.toggleConfigPane(...arguments);\n      }\n    }\n  }));\n});","define(\"portal/components/financials-table-section\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.accounts as |account|}}\n    <tr class='{{if (or this.doNotPrint (not account.print)) \"do-not-print\"}}'>\n      <td\n        class='financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-{{account.depth}}'\n      >\n        {{#if (and this.filterHeaders account.children)}}\n          <a\n            class='financials-table__print-toggle link do-not-print'\n            {{action 'toggleFilter' account}}\n          >\n            <FaIcon @icon={{if account.print 'eye' 'eye-slash'}} />\n          </a>\n        {{/if}}\n  \n        {{#if account.children}}\n          <a\n            class='financials-table__section-expansion-toggle link'\n            {{action 'toggleShowChildren' account}}\n          >\n            <FaIcon\n              @icon={{if account.hideChildren 'angle-right' 'angle-down'}}\n            />{{~! ~}}\n            {{#if\n              (and\n                account.parent\n                (not (eq account.debitCredit this.parent.debitCredit))\n              )\n            }}\n              <span class='debitCredit debitCredit--debit'><InfoPopup\n                  @text={{concat\n                    account.name\n                    ' subtracts from '\n                    this.parent.name\n                  }}\n                  @iconName='minus'\n                /></span>\n            {{/if}}\n            {{account.name}}\n          </a>\n        {{else}}\n          <FaIcon @icon='angle-right' class='invisible' />{{~! ~}}\n          {{! Just to fill the space }}\n          {{#if\n            (and\n              account.parent\n              (not (eq account.debitCredit this.parent.debitCredit))\n            )\n          }}\n            <span class='debitCredit debitCredit--debit'><InfoPopup\n                @text={{concat account.name ' subtracts from ' this.parent.name}}\n                @iconName='minus'\n              /></span>\n          {{/if}}\n          {{account.name}}\n        {{/if}}\n  \n        {{#if account.description}}\n          <span\n            class='financials-table__inspectable-cell__account-description'\n          ><InfoPopup @text={{account.description}} @class='description' /></span>\n        {{/if}}\n      </td>\n  \n      {{! If we can't see all of the children and the total row, show just the totals here instead. }}\n      {{#if account.hideChildren}}\n        {{#each account.data as |value index|}}\n          {{#if this.showMonth}}\n            {{#if (and (not-eq index 0) this.canSeeBreakdown)}}\n              <td\n                {{action 'toggleShowBreakdown' account index 'month'}}\n                colspan={{if (and this.showYTD (not account.periodic)) '2' '1'}}\n                class='financials-table__inspectable-cell text-right\n                  {{if (lt value.month 0) \"financials-table__negative-value\"}}'\n              >\n                {{number-format\n                  value.month\n                  maximumFractionDigits=0\n                  dashZero=true\n                }}\n              </td>\n            {{else}}\n              <td\n                colspan={{if (and this.showYTD (not account.periodic)) '2' '1'}}\n                class='text-right\n                  {{if (lt value.month 0) \"financials-table__negative-value\"}}'\n              >\n                {{number-format\n                  value.month\n                  maximumFractionDigits=0\n                  dashZero=true\n                }}\n              </td>\n            {{/if}}\n          {{/if}}\n  \n          {{#if (and this.showYTD account.periodic)}}\n            {{#if (and (not-eq index 0) this.canSeeBreakdown)}}\n              <td\n                {{action 'toggleShowBreakdown' account index 'ytd'}}\n                class='financials-table__inspectable-cell text-right\n                  {{if (lt value.ytd 0) \"financials-table__negative-value\"}}'\n              >\n                {{number-format value.ytd maximumFractionDigits=0 dashZero=true}}\n              </td>\n            {{else}}\n              <td\n                class='text-right\n                  {{if (lt value.ytd 0) \"financials-table__negative-value\"}}'\n              >\n                {{number-format value.ytd maximumFractionDigits=0 dashZero=true}}\n              </td>\n            {{/if}}\n          {{/if}}\n  \n          {{! Add an empty cell if there is no data to be shown, just to stop the table breaking. }}\n          {{#if (not (or this.showMonth this.showYTD))}}\n            <td></td>\n          {{/if}}\n        {{/each}}\n      {{else}}\n        <td colspan={{this.columnCount}}></td>\n      {{/if}}\n    </tr>\n  \n    {{#if (and account.children (not account.hideChildren))}}\n      <FinancialsTableSection\n        @canSeeBreakdown={{this.canSeeBreakdown}}\n        @toggleShowChildren={{action 'toggleShowChildren'}}\n        @toggleShowBreakdown={{action 'toggleShowBreakdown'}}\n        @accounts={{account.children}}\n        @parent={{account}}\n        @showMonth={{this.showMonth}}\n        @showYTD={{this.showYTD}}\n        @filterHeaders={{this.filterHeaders}}\n        @doNotPrint={{not account.print}}\n        @hasGroups={{this.hasGroups}}\n      />\n  \n      <tr class='data-table__total-row {{unless account.print \"do-not-print\"}}'>\n        <td\n          class='financials-table__indented-cell financials-table__indented-cell--depth-{{account.depth}}'\n        >\n          <FaIcon @icon='angle-right' class='invisible' />\n          {{#if this.hasGroups}}\n            {{!Add a star to the end of the name to denote that it requires explanation}}\n            {{account.name}}*\n          {{else}}\n            Total\n            {{account.name}}\n          {{/if}}\n        </td>\n  \n        {{#each account.data as |value|}}\n          {{#if this.showMonth}}\n            <td\n              colspan={{if (and this.showYTD (not account.periodic)) '2' '1'}}\n              class='text-right\n                {{if (lt value.month 0) \"financials-table__negative-value\"}}'\n            >\n              {{number-format value.month maximumFractionDigits=0 dashZero=true}}\n            </td>\n          {{/if}}\n  \n          {{#if (and this.showYTD account.periodic)}}\n            <td\n              class='text-right\n                {{if (lt value.month 0) \"financials-table__negative-value\"}}'\n            >\n              {{number-format value.ytd maximumFractionDigits=0 dashZero=true}}\n            </td>\n          {{/if}}\n  \n          {{! Add an empty cell if there is no data to be shown, just to stop the table breaking. }}\n          {{#if (not (or this.showMonth this.showYTD))}}\n            <td></td>\n          {{/if}}\n        {{/each}}\n      </tr>\n    {{/if}}\n  {{/each}}\n  \n  {{#if this.totalsRow}}\n    <tr class='data-table__total-row {{unless this.totals.print \"do-not-print\"}}'>\n      <td\n        class='financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-0'\n      >\n        {{#if this.filterHeaders}}\n          <a\n            class='financials-table__print-toggle do-not-print'\n            {{action 'toggleFilter' this.totals}}\n          >\n            <FaIcon @icon={{if this.totals.print 'eye' 'eye-slash'}} />\n          </a>\n        {{/if}}\n        {{this.totalsRow}}\n      </td>\n  \n      {{#each this.totals as |total|}}\n        {{#if (and this.showMonth (not-eq total.month null))}}\n          <td\n            class='text-right\n              {{if (lt total.month 0) \"financials-table__negative-value\"}}'\n          >\n            {{number-format total.month maximumFractionDigits=0 dashZero=true}}\n          </td>\n        {{/if}}\n  \n        {{#if (and this.showYTD (not-eq total.ytd null))}}\n          <td\n            class='text-right\n              {{if (lt total.ytd 0) \"financials-table__negative-value\"}}\n              '\n          >\n            {{number-format total.ytd maximumFractionDigits=0 dashZero=true}}\n          </td>\n        {{/if}}\n  \n        {{#if (and this.showMonth (not-eq total.continuous null))}}\n          <td\n            class='text-right\n              {{if (lt total.continuous 0) \"financials-table__negative-value\"}}'\n          >\n            {{number-format\n              total.continuous\n              maximumFractionDigits=0\n              dashZero=true\n            }}\n          </td>\n        {{/if}}\n  \n        {{! Add an empty cell if there is no data to be shown, just to stop the table breaking. }}\n        {{#if (not (or this.showMonth this.showYTD))}}\n          <td></td>\n        {{/if}}\n      {{/each}}\n    </tr>\n  {{/if}}\n  */\n  {\n    \"id\": \"NvHaoju2\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"accounts\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[15,0,[29,[[52,[28,[37,4],[[30,0,[\\\"doNotPrint\\\"]],[28,[37,5],[[30,1,[\\\"print\\\"]]],null]],null],\\\"do-not-print\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-\\\",[30,1,[\\\"depth\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"filterHeaders\\\"]],[30,1,[\\\"children\\\"]]],null],[[[1,\\\"        \\\"],[11,3],[24,0,\\\"financials-table__print-toggle link do-not-print\\\"],[4,[38,9],[[30,0],\\\"toggleFilter\\\",[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[52,[30,1,[\\\"print\\\"]],\\\"eye\\\",\\\"eye-slash\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"children\\\"]],[[[1,\\\"        \\\"],[11,3],[24,0,\\\"financials-table__section-expansion-toggle link\\\"],[4,[38,9],[[30,0],\\\"toggleShowChildren\\\",[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[52,[30,1,[\\\"hideChildren\\\"]],\\\"angle-right\\\",\\\"angle-down\\\"]]],null],[41,[28,[37,7],[[30,1,[\\\"parent\\\"]],[28,[37,5],[[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],[30,0,[\\\"parent\\\",\\\"debitCredit\\\"]]],null]],null]],null],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[8,[39,13],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,14],[[30,1,[\\\"name\\\"]],\\\" subtracts from \\\",[30,0,[\\\"parent\\\",\\\"name\\\"]]],null],\\\"minus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,10],[[24,0,\\\"invisible\\\"]],[[\\\"@icon\\\"],[\\\"angle-right\\\"]],null],[41,[28,[37,7],[[30,1,[\\\"parent\\\"]],[28,[37,5],[[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],[30,0,[\\\"parent\\\",\\\"debitCredit\\\"]]],null]],null]],null],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[8,[39,13],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,14],[[30,1,[\\\"name\\\"]],\\\" subtracts from \\\",[30,0,[\\\"parent\\\",\\\"name\\\"]]],null],\\\"minus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"description\\\"]],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"financials-table__inspectable-cell__account-description\\\"],[12],[8,[39,13],null,[[\\\"@text\\\",\\\"@class\\\"],[[30,1,[\\\"description\\\"]],\\\"description\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"hideChildren\\\"]],[[[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"data\\\"]]],null]],null],null,[[[41,[30,0,[\\\"showMonth\\\"]],[[[41,[28,[37,7],[[28,[37,15],[[30,3],0],null],[30,0,[\\\"canSeeBreakdown\\\"]]],null],[[[1,\\\"            \\\"],[11,\\\"td\\\"],[16,\\\"colspan\\\",[52,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[28,[37,5],[[30,1,[\\\"periodic\\\"]]],null]],null],\\\"2\\\",\\\"1\\\"]],[16,0,[29,[\\\"financials-table__inspectable-cell text-right\\\\n                \\\",[52,[28,[37,16],[[30,2,[\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[4,[38,9],[[30,0],\\\"toggleShowBreakdown\\\",[30,1],[30,3],\\\"month\\\"],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,17],[[30,2,[\\\"month\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[52,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[28,[37,5],[[30,1,[\\\"periodic\\\"]]],null]],null],\\\"2\\\",\\\"1\\\"]],[15,0,[29,[\\\"text-right\\\\n                \\\",[52,[28,[37,16],[[30,2,[\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,17],[[30,2,[\\\"month\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[30,1,[\\\"periodic\\\"]]],null],[[[41,[28,[37,7],[[28,[37,15],[[30,3],0],null],[30,0,[\\\"canSeeBreakdown\\\"]]],null],[[[1,\\\"            \\\"],[11,\\\"td\\\"],[16,0,[29,[\\\"financials-table__inspectable-cell text-right\\\\n                \\\",[52,[28,[37,16],[[30,2,[\\\"ytd\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[4,[38,9],[[30,0],\\\"toggleShowBreakdown\\\",[30,1],[30,3],\\\"ytd\\\"],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,17],[[30,2,[\\\"ytd\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                \\\",[52,[28,[37,16],[[30,2,[\\\"ytd\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,17],[[30,2,[\\\"ytd\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[28,[37,4],[[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]]],null]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[2,3]],null]],[]],[[[1,\\\"      \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnCount\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,7],[[30,1,[\\\"children\\\"]],[28,[37,5],[[30,1,[\\\"hideChildren\\\"]]],null]],null],[[[1,\\\"    \\\"],[8,[39,18],null,[[\\\"@canSeeBreakdown\\\",\\\"@toggleShowChildren\\\",\\\"@toggleShowBreakdown\\\",\\\"@accounts\\\",\\\"@parent\\\",\\\"@showMonth\\\",\\\"@showYTD\\\",\\\"@filterHeaders\\\",\\\"@doNotPrint\\\",\\\"@hasGroups\\\"],[[30,0,[\\\"canSeeBreakdown\\\"]],[28,[37,9],[[30,0],\\\"toggleShowChildren\\\"],null],[28,[37,9],[[30,0],\\\"toggleShowBreakdown\\\"],null],[30,1,[\\\"children\\\"]],[30,1],[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]],[30,0,[\\\"filterHeaders\\\"]],[28,[37,5],[[30,1,[\\\"print\\\"]]],null],[30,0,[\\\"hasGroups\\\"]]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"tr\\\"],[15,0,[29,[\\\"data-table__total-row \\\",[52,[51,[30,1,[\\\"print\\\"]]],\\\"do-not-print\\\"]]]],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"financials-table__indented-cell financials-table__indented-cell--depth-\\\",[30,1,[\\\"depth\\\"]]]]],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,0,\\\"invisible\\\"]],[[\\\"@icon\\\"],[\\\"angle-right\\\"]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasGroups\\\"]],[[[1,\\\"          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"*\\\\n\\\"]],[]],[[[1,\\\"          Total\\\\n          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"data\\\"]]],null]],null],null,[[[41,[30,0,[\\\"showMonth\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[52,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[28,[37,5],[[30,1,[\\\"periodic\\\"]]],null]],null],\\\"2\\\",\\\"1\\\"]],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,16],[[30,4,[\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[30,4,[\\\"month\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[30,1,[\\\"periodic\\\"]]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,16],[[30,4,[\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[30,4,[\\\"ytd\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[28,[37,4],[[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]]],null]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"totalsRow\\\"]],[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[15,0,[29,[\\\"data-table__total-row \\\",[52,[51,[30,0,[\\\"totals\\\",\\\"print\\\"]]],\\\"do-not-print\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,0,\\\"financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"filterHeaders\\\"]],[[[1,\\\"        \\\"],[11,3],[24,0,\\\"financials-table__print-toggle do-not-print\\\"],[4,[38,9],[[30,0],\\\"toggleFilter\\\",[30,0,[\\\"totals\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"totals\\\",\\\"print\\\"]],\\\"eye\\\",\\\"eye-slash\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[1,[30,0,[\\\"totalsRow\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"totals\\\"]]],null]],null],null,[[[41,[28,[37,7],[[30,0,[\\\"showMonth\\\"]],[28,[37,15],[[30,5,[\\\"month\\\"]],null],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,16],[[30,5,[\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,5,[\\\"month\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[28,[37,15],[[30,5,[\\\"ytd\\\"]],null],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,16],[[30,5,[\\\"ytd\\\"]],0],null],\\\"financials-table__negative-value\\\"],\\\"\\\\n            \\\"]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,5,[\\\"ytd\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showMonth\\\"]],[28,[37,15],[[30,5,[\\\"continuous\\\"]],null],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,16],[[30,5,[\\\"continuous\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,5,[\\\"continuous\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[28,[37,4],[[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]]],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[5]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"account\\\",\\\"value\\\",\\\"index\\\",\\\"value\\\",\\\"total\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"if\\\",\\\"or\\\",\\\"not\\\",\\\"td\\\",\\\"and\\\",\\\"a\\\",\\\"action\\\",\\\"fa-icon\\\",\\\"eq\\\",\\\"span\\\",\\\"info-popup\\\",\\\"concat\\\",\\\"not-eq\\\",\\\"lt\\\",\\\"number-format\\\",\\\"financials-table-section\\\",\\\"unless\\\"]]\",\n    \"moduleName\": \"portal/components/financials-table-section.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: '',\n    columnCount: (0, _object.computed)('accounts.0.data.length', 'accounts.@each.data', 'showMonth', 'showYTD', function () {\n      const colsPerGroup = (0, _object.get)(this, 'showMonth') + (0, _object.get)(this, 'showYTD'); // boolean addition\n      return (0, _object.get)(this, 'accounts.0.data.length') * colsPerGroup;\n    }),\n    totals: (0, _object.computed)('accounts.@each.data', 'totalsRow', function () {\n      const accounts = (0, _object.get)(this, 'accounts');\n      const totals = [];\n\n      // If the user doesn't want a totals row, don't bother computing it\n      if (!(0, _object.get)(this, 'totalsRow')) {\n        return;\n      }\n      accounts.forEach(account => {\n        // The sum of the P+L is Cr - Dr. The sum of the BS is Dr - Cr. We need to invert\n        // the values of BS accounts to get the correct totals.\n        const plBs = (0, _object.get)(account, 'category') === 'balance-sheet' ? -1 : 1;\n        (0, _object.get)(account, 'data').forEach((value, i) => {\n          const drCr = (0, _object.get)(account, 'debitCredit') === 'DEBIT' ? -1 : 1;\n          if (!totals[i]) {\n            totals[i] = {\n              month: null,\n              ytd: null,\n              continuous: null\n            };\n          }\n          if ((0, _object.get)(account, 'periodic')) {\n            totals[i].month = totals[i].month || 0;\n            totals[i].month += value.month * drCr * plBs || 0;\n            totals[i].ytd = totals[i].ytd || 0;\n            totals[i].ytd += value.ytd * drCr * plBs || 0;\n          } else {\n            totals[i].continuous = totals[i].continuous || 0;\n            totals[i].continuous += value.month * drCr * plBs || 0;\n          }\n          (0, _object.set)(totals, 'print', true);\n        });\n      });\n      return totals;\n    }),\n    actions: {\n      toggleShowChildren(account) {\n        this.toggleShowChildren(account);\n      },\n      toggleShowBreakdown(...args) {\n        this.toggleShowBreakdown(...args);\n      },\n      toggleFilter(account) {\n        (0, _object.set)(account, 'print', !(0, _object.get)(account, 'print'));\n      }\n    }\n  }));\n});","define(\"portal/components/format-duration-with-unit\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"portal/utils/duration-input\", \"@ember/template-factory\"], function (_exports, _component, _component2, _durationInput, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"portal/utils/duration-input\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <span data-test-format-duration-with-unit>\n    {{this.valueWithUnit}}\n  </span>\n  */\n  {\n    \"id\": \"L4/YhYEz\",\n    \"block\": \"[[[10,1],[14,\\\"data-test-format-duration-with-unit\\\",\\\"\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[30,0,[\\\"valueWithUnit\\\"]]],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/format-duration-with-unit.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get value() {\n      return this.args.value || 0;\n    }\n    get valueWithUnit() {\n      var suffix = this.args.suffix || '';\n      var prefix = this.args.prefix || '';\n      return this.value ? `${prefix}${(0, _durationInput.formatDuration)([this.value])}${suffix}` : this.args.emptyPlaceholder;\n    }\n  });\n});","define(\"portal/components/formatted-input\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"portal/helpers/format-number\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _formatNumber, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/helpers/format-number\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Input\n    @type='text'\n    disabled={{@disabled}}\n    class='{{@class}}\n      formatted-input\n      {{this.formatClassName}}\n      {{if this.doWarnForZero \"formatted-input--zero\"}}\n      {{if this.wasUpdated \"formatted-input--updated\"}}'\n    @value={{this.currencyValue}}\n    {{on 'focusin' this.handleFocusIn}}\n    {{on 'focusout' this.handleFocusOut}}\n    {{on 'input' this.handleInput}}\n    ...attributes\n  />\n  */\n  {\n    \"id\": \"3oTgj74t\",\n    \"block\": \"[[[8,[39,0],[[16,\\\"disabled\\\",[30,1]],[16,0,[29,[[30,2],\\\"\\\\n    formatted-input\\\\n    \\\",[30,0,[\\\"formatClassName\\\"]],\\\"\\\\n    \\\",[52,[30,0,[\\\"doWarnForZero\\\"]],\\\"formatted-input--zero\\\"],\\\"\\\\n    \\\",[52,[30,0,[\\\"wasUpdated\\\"]],\\\"formatted-input--updated\\\"]]]],[17,3],[4,[38,2],[\\\"focusin\\\",[30,0,[\\\"handleFocusIn\\\"]]],null],[4,[38,2],[\\\"focusout\\\",[30,0,[\\\"handleFocusOut\\\"]]],null],[4,[38,2],[\\\"input\\\",[30,0,[\\\"handleInput\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"currencyValue\\\"]]]],null]],[\\\"@disabled\\\",\\\"@class\\\",\\\"&attrs\\\"],false,[\\\"input\\\",\\\"if\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/formatted-input.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    get currencyValue() {\n      const {\n        number,\n        formatterOptions\n      } = this.args;\n      if (!this.isUpdating) return this.formatter(number, formatterOptions);\n      return this.value;\n    }\n    set currencyValue(val) {\n      this.value = val;\n      return this.value;\n    }\n    get format() {\n      return this.args.format ?? 'number';\n    }\n    get formatter() {\n      return (value, options) => (0, _formatNumber.formatNumber)([this.format, value], options);\n    }\n    get parser() {\n      return this.args.parser ?? _formatNumber.parseNumber;\n    }\n    get editRawValue() {\n      return ['number', 'currency'].includes(this.format.toLowerCase());\n    }\n    get formatClassName() {\n      return `formatted-input--${this.format.toLowerCase()}`;\n    }\n    get isZero() {\n      return this.args.number === 0;\n    }\n    get doWarnForZero() {\n      return this.args.warnOnZero && this.isZero;\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"wasUpdated\", _descriptor, this);\n      _initializerDefineProperty(this, \"value\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isUpdating\", _descriptor3, this);\n      this.displayFormattedValue();\n    }\n    handleInput(event) {\n      this.value = event.target.value;\n    }\n    displayFormattedValue() {\n      const {\n        number,\n        formatterOptions\n      } = this.args;\n      (0, _runloop.next)(() => {\n        if (!this.isDestroying) {\n          this.value = this.formatter(number, formatterOptions);\n        }\n      });\n    }\n    handleFocusIn(event) {\n      this.isUpdating = true;\n      if (this.editRawValue) {\n        this.value = this.args.number;\n      }\n      if (this.editRawValue || this.args.selectOnFocus) {\n        (0, _runloop.next)(() => {\n          const input = event.target;\n          input.select();\n        });\n      }\n    }\n    handleFocusOut() {\n      let value = this.value;\n      if (this.format === 'percentage' && !String(value).includes('%') && !Number.isNaN(Number(value))) {\n        value = value / 100;\n      }\n      const current = this.args.number;\n      const parsed = this.parser(value, this.args.parserOptions);\n      const number = isNaN(parsed) ? this.args.defaultValue : parsed;\n      if (number === current) {\n        this.displayFormattedValue();\n      } else if (typeof this.args.update === 'function') {\n        this.args.update(number);\n      } else {\n        this.value = this.formatter(number, this.args.formatterOptions);\n      }\n      this.wasUpdated = true;\n      this.isUpdating = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"wasUpdated\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"value\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isUpdating\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"handleInput\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleInput\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"displayFormattedValue\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"displayFormattedValue\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleFocusIn\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleFocusIn\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleFocusOut\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleFocusOut\"), _class.prototype), _class));\n});","define(\"portal/components/from-elsewhere\", [\"exports\", \"ember-elsewhere/components/from-elsewhere\"], function (_exports, _fromElsewhere) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _fromElsewhere.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-elsewhere/components/from-elsewhere\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/gl-importers/api\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>\n    Connected Applications will upload data into the financial portal\n    automatically.\n  </p>\n  */\n  {\n    \"id\": \"vLpGMut9\",\n    \"block\": \"[[[10,2],[12],[1,\\\"\\\\n  Connected Applications will upload data into the financial portal\\\\n  automatically.\\\\n\\\"],[13]],[],false,[\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/api.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // for this stack to work you need to extend ember component, not glimmer\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component.default {});\n});","define(\"portal/components/gl-importers/banklink\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/banklink\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _banklink, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/banklink\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from BankLink, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"1lVlj5wF\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from BankLink, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/banklink.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _banklink.default\n  }));\n});","define(\"portal/components/gl-importers/eaccounts\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>As an eAccounts user, you don’t have to worry about manual imports. All of\n    your data is automatically imported and updated for you each night.</p>\n  */\n  {\n    \"id\": \"UwmlXasn\",\n    \"block\": \"[[[10,2],[12],[1,\\\"As an eAccounts user, you don’t have to worry about manual imports. All of\\\\n  your data is automatically imported and updated for you each night.\\\"],[13]],[],false,[\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/eaccounts.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend());\n});","define(\"portal/components/gl-importers/empower\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/empower\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _empower, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/empower\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from Empower, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"CPwRen/R\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from Empower, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/empower.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _empower.default\n  }));\n});","define(\"portal/components/gl-importers/frameworks\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/frameworks\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _frameworks, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/frameworks\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from Frameworks, please export your data in CSV format and upload\n    it here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"fM9gs4gA\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from Frameworks, please export your data in CSV format and upload\\\\n  it here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/frameworks.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _frameworks.default\n  }));\n});","define(\"portal/components/gl-importers/gj-gardner\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/gj-gardner\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _gjGardner, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/gj-gardner\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='d-flex align-items-center justify-content-center'>\n    <p>Please select a P+L or Balance Sheet report to import.</p>\n  \n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"guiBvNvF\",\n    \"block\": \"[[[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"Please select a P+L or Balance Sheet report to import.\\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"p\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/gj-gardner.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _gjGardner.default\n  }));\n});","define(\"portal/components/gl-importers/itm-manual\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/itm-manual\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _itmManual, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/itm-manual\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from ITM Manual, please export your data in CSV format and upload\n    it here.</p>\n  \n  <div class='text-center d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >\n      Import\n    </button>\n  </div>\n  */\n  {\n    \"id\": \"KxvsQhU/\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from ITM Manual, please export your data in CSV format and upload\\\\n  it here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"text-center d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"\\\\n    Import\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/itm-manual.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _itmManual.default\n  }));\n});","define(\"portal/components/gl-importers/maxim\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/maxim\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _maxim, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/maxim\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from Maxim, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"lT+Bc8Hw\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from Maxim, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/maxim.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _maxim.default\n  }));\n});","define(\"portal/components/gl-importers/myob-ao\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/myob-ao\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _myobAo, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/myob-ao\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from MYOB AO, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"0ZnVvfW0\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from MYOB AO, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/myob-ao.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _myobAo.default\n  }));\n});","define(\"portal/components/gl-importers/myob\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/myob\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _myob, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/myob\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from MYOB, please export a General Ledger Summary in CSV format and\n    upload it here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"vm2q6+03\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from MYOB, please export a General Ledger Summary in CSV format and\\\\n  upload it here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/myob.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _myob.default\n  }));\n});","define(\"portal/components/gl-importers/prostix\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/prostix\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _prostix, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/prostix\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from ProStix, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"ZeSSC3yf\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from ProStix, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/prostix.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _prostix.default\n  }));\n});","define(\"portal/components/gl-importers/rees\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/service\", \"@ember/object\", \"portal/utils/gl-import-parsers/rees\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _computed, _service, _object, _rees, _jquery, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"portal/utils/gl-import-parsers/rees\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from Rees, please export a Statement of Financial Position (report\n    7.11.6) in CSV or text format and upload it here.</p>\n  <p>If your report includes data relating to multiple businesses, you will be\n    able to filter it down to just the codes that you need after importing.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Text\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add button--spaced'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"IwWbsLeq\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from Rees, please export a Statement of Financial Position (report\\\\n  7.11.6) in CSV or text format and upload it here.\\\"],[13],[1,\\\"\\\\n\\\"],[10,2],[12],[1,\\\"If your report includes data relating to multiple businesses, you will be\\\\n  able to filter it down to just the codes that you need after importing.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add button--spaced\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/text\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/rees.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    notifications: (0, _service.inject)(),\n    hasSelectedFile: (0, _computed.notEmpty)('importData'),\n    hasNotSelectedFile: (0, _computed.not)('hasSelectedFile'),\n    hasImported: false,\n    actions: {\n      import(importData) {\n        const oldError = (0, _object.get)(this, 'error');\n        if (oldError) {\n          (0, _object.get)(this, 'notifications').clear(oldError);\n        }\n\n        // Parse the response\n        const report = (0, _rees.default)(importData);\n        if ((0, _object.get)(report, 'errors.length')) {\n          this.send('parsingError', report);\n          return;\n        }\n\n        // All is well, import\n        this.import(report);\n        (0, _object.set)(this, 'hasImported', true);\n        const $fileInput = (0, _jquery.default)(this.element).find('input[type=file]');\n        const $fileInputClone = $fileInput.val('').clone(true);\n        $fileInput.replaceWith($fileInputClone);\n        (0, _object.set)(this, 'importData', null);\n      },\n      parsingError: function () {\n        const error = (0, _object.get)(this, 'notifications').error(\"The file you selected didn't have the structure we were expecting. Please check the guides and try again.\");\n        (0, _object.set)(this, 'error', error);\n      }\n    }\n  }));\n});","define(\"portal/components/gl-importers/xero-api\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/component\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.xeroIntegration.ready}}\n    <p>\n      Xero balance data is automatically brought in regularly. You can also choose\n      to bring it in yourself by clicking the import button.\n    </p>\n    <button\n      type='button'\n      class='btn btn-primary'\n      disabled={{this.getXeroBalances.isRunning}}\n      {{on 'click' (perform this.getXeroBalances)}}\n    >\n      {{#if this.getXeroBalances.isRunning}}\n        Importing&hellip;\n      {{else}}\n        Import balances from Xero\n      {{/if}}\n    </button>\n  {{else}}\n    To import balances using Xero, first\n    <LinkTo @route='entity.settings.integrations'>connect your Xero account</LinkTo>.\n  {{/if}}\n  */\n  {\n    \"id\": \"NNOxMJSz\",\n    \"block\": \"[[[41,[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"\\\\n    Xero balance data is automatically brought in regularly. You can also choose\\\\n    to bring it in yourself by clicking the import button.\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"getXeroBalances\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"getXeroBalances\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"getXeroBalances\\\",\\\"isRunning\\\"]],[[[1,\\\"      Importing…\\\\n\\\"]],[]],[[[1,\\\"      Import balances from Xero\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  To import balances using Xero, first\\\\n  \\\"],[8,[39,5],null,[[\\\"@route\\\"],[\\\"entity.settings.integrations\\\"]],[[\\\"default\\\"],[[[[1,\\\"connect your Xero account\\\"]],[]]]]],[1,\\\".\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"p\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/xero-api.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // for this stack to work you need to extend ember component, not glimmer\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor3, this);\n      _initializerDefineProperty(this, \"financialPortalPeriodSelector\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"getXeroBalances\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.xeroIntegration.getXeroBalances({\n              entityId: this.sessionData.entity.id,\n              period: this.financialPortalPeriodSelector.period\n            });\n            yield Promise.all([this.store.simpleQuery('account-map', {\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('import', {\n              entity: this.sessionData.entity.id,\n              date: this.financialPortalPeriodSelector.date.toISOString()\n            })]);\n\n            // don't ever do this again\n            (0, _object.set)(this, 'hasImported', true);\n            (0, _object.set)(this, 'importData', null);\n            this.notifications.success('Imported balances from Xero');\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: 'Something went wrong getting balances'\n            });\n          }\n        }\n      }), null, \"getXeroBalances\", null));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"financialPortalPeriodSelector\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/gl-importers/xero-csv\", [\"exports\", \"@ember/component\", \"portal/components/basic-importer\", \"portal/utils/gl-import-parsers/xero-csv\", \"@ember/template-factory\"], function (_exports, _component, _basicImporter, _xeroCsv, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/components/basic-importer\",0,\"portal/utils/gl-import-parsers/xero-csv\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>To import from Xero, please export your data in CSV format and upload it\n    here.</p>\n  \n  <div class='d-flex align-items-center justify-content-center'>\n    <label\n      for='input-button'\n      class='file-input-button button button--secondary button--spaced'\n    >\n      Choose file…\n    </label>\n    <FileInputs::Csv\n      @id='input-button'\n      @file={{this.importData}}\n      @class='file-input-button__input'\n      @accept='.csv,.txt'\n    />\n  \n    <button\n      class='button button--add'\n      disabled={{this.hasNotSelectedFile}}\n      type='button'\n      {{action 'import' this.importData}}\n    >Import</button>\n  </div>\n  */\n  {\n    \"id\": \"x1T2zC+l\",\n    \"block\": \"[[[10,2],[12],[1,\\\"To import from Xero, please export your data in CSV format and upload it\\\\n  here.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"input-button\\\"],[14,0,\\\"file-input-button button button--secondary button--spaced\\\"],[12],[1,\\\"\\\\n    Choose file…\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,3],null,[[\\\"@id\\\",\\\"@file\\\",\\\"@class\\\",\\\"@accept\\\"],[\\\"input-button\\\",[30,0,[\\\"importData\\\"]],\\\"file-input-button__input\\\",\\\".csv,.txt\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasNotSelectedFile\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],\\\"import\\\",[30,0,[\\\"importData\\\"]]],null],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"file-inputs/csv\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/gl-importers/xero-csv.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _basicImporter.default.extend({\n    parser: _xeroCsv.default\n  }));\n});","define(\"portal/components/google-map\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='google-map' ...attributes>\n    {{#if (has-block)}}\n      <div\n        class='google-map__control google-map__control--pending'\n        {{did-insert this.registerControl 'TOP_LEFT'}}\n      >\n        {{yield}}\n      </div>\n    {{/if}}\n  \n    <div\n      class='google-map-container'\n      style='width: 100%; height: 400px;'\n      {{did-insert this.setupMap}}\n      {{did-update this.updateMap @lat @lng @radius}}\n    >\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"Hc1fI6li\",\n    \"block\": \"[[[11,0],[24,0,\\\"google-map\\\"],[17,1],[12],[1,\\\"\\\\n\\\"],[41,[48,[30,5]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"google-map__control google-map__control--pending\\\"],[4,[38,3],[[30,0,[\\\"registerControl\\\"]],\\\"TOP_LEFT\\\"],null],[12],[1,\\\"\\\\n      \\\"],[18,5,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[11,0],[24,0,\\\"google-map-container\\\"],[24,5,\\\"width: 100%; height: 400px;\\\"],[4,[38,3],[[30,0,[\\\"setupMap\\\"]]],null],[4,[38,5],[[30,0,[\\\"updateMap\\\"]],[30,2],[30,3],[30,4]],null],[12],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@lat\\\",\\\"@lng\\\",\\\"@radius\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"has-block\\\",\\\"did-insert\\\",\\\"yield\\\",\\\"did-update\\\"]]\",\n    \"moduleName\": \"portal/components/google-map.hbs\",\n    \"isStrictMode\": false\n  });\n  /* global google */\n  let GoogleMapComponent = _exports.default = (_class = class GoogleMapComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"map\", null);\n      _defineProperty(this, \"marker\", null);\n      _defineProperty(this, \"circle\", null);\n      _defineProperty(this, \"mapListeners\", []);\n      _defineProperty(this, \"isProgrammaticUpdate\", false);\n      _defineProperty(this, \"pendingControls\", []);\n      _defineProperty(this, \"controlObservers\", []);\n    }\n    registerControl(element, position) {\n      this.pendingControls.push({\n        element,\n        position\n      });\n      this.attachControls();\n    }\n    attachControls() {\n      if (!this.map || !this.pendingControls.length) return;\n      const pending = this.pendingControls;\n      this.pendingControls = [];\n      pending.forEach(({\n        element,\n        position\n      }) => {\n        const wrapper = element.parentElement;\n        this.map.controls[google.maps.ControlPosition[position]].push(element);\n        const observer = new MutationObserver(() => {\n          if (element.parentElement === wrapper) return;\n          element.classList.remove('google-map__control--pending');\n          observer.disconnect();\n        });\n        observer.observe(wrapper, {\n          childList: true\n        });\n        this.controlObservers.push(observer);\n      });\n    }\n    disconnectControlObservers() {\n      this.controlObservers.forEach(observer => observer.disconnect());\n      this.controlObservers = [];\n    }\n    setupMap(element) {\n      if (typeof google === 'undefined') return;\n      const lat = this.args.lat ?? 0;\n      const lng = this.args.lng ?? 0;\n      const radius = this.args.radius ?? 0;\n      const minRadius = this.args.minRadius ?? 100;\n      const maxRadius = this.args.maxRadius ?? 250;\n      const hasLocation = this.args.lat != null && this.args.lng != null;\n      const position = {\n        lat,\n        lng\n      };\n      this.map = new google.maps.Map(element, {\n        center: position,\n        zoom: hasLocation ? 18 : 2,\n        clickableIcons: false,\n        mapTypeId: google.maps.MapTypeId.HYBRID,\n        mapId: _environment.default.googleMaps?.mapId,\n        mapTypeControl: true,\n        // the search control owns the top left corner\n        mapTypeControlOptions: {\n          position: google.maps.ControlPosition.TOP_RIGHT\n        }\n      });\n      this.attachControls();\n      const clickListener = this.map.addListener('click', event => {\n        this.handleMapClick(event);\n      });\n      this.mapListeners.push(clickListener);\n      this.marker = new google.maps.marker.AdvancedMarkerElement({\n        position: position,\n        map: hasLocation ? this.map : null\n      });\n      this.circle = new google.maps.Circle({\n        strokeColor: '#FF0000',\n        strokeOpacity: 0.8,\n        strokeWeight: 2,\n        fillColor: '#FF0000',\n        fillOpacity: 0.35,\n        map: hasLocation && radius > 0 ? this.map : null,\n        center: position,\n        radius: radius,\n        clickable: false,\n        editable: true\n      });\n\n      // radius listener\n      const radiusListener = this.circle.addListener('radius_changed', () => {\n        if (this.isProgrammaticUpdate) return;\n        let newRadius = Math.round(this.circle.getRadius()); // round to int\n        let isClamped = false;\n        if (newRadius < minRadius) {\n          newRadius = minRadius;\n          isClamped = true;\n        } else if (newRadius > maxRadius) {\n          newRadius = maxRadius;\n          isClamped = true;\n        }\n        if (isClamped) {\n          this.isProgrammaticUpdate = true;\n          this.circle.setRadius(newRadius);\n          this.isProgrammaticUpdate = false;\n        }\n        if (this.args.onRadiusChange) {\n          this.args.onRadiusChange(newRadius);\n        }\n      });\n      this.mapListeners.push(radiusListener);\n\n      // center listener\n      const centerListener = this.circle.addListener('center_changed', () => {\n        if (this.isProgrammaticUpdate) return;\n        const newCenter = this.circle.getCenter();\n        if (this.args.onClick) {\n          this.args.onClick(newCenter.lat(), newCenter.lng());\n        }\n      });\n      this.mapListeners.push(centerListener);\n    }\n    handleMapClick(event) {\n      const newLat = event.latLng.lat();\n      const newLng = event.latLng.lng();\n      if (this.args.onClick) {\n        this.args.onClick(newLat, newLng);\n      }\n    }\n    updateMap() {\n      if (!this.map) return;\n      const hasLocation = this.args.lat != null && this.args.lng != null;\n      const lat = this.args.lat ?? 0;\n      const lng = this.args.lng ?? 0;\n      const radius = this.args.radius ?? 0;\n      const position = {\n        lat,\n        lng\n      };\n      if (hasLocation) {\n        // 1. move map view\n        this.map.panTo(position);\n\n        // 2. move marker\n        this.marker.position = position;\n        this.marker.map = this.map;\n\n        // 3. update circle center\n        const currentCenter = this.circle.getCenter();\n        const latDiff = Math.abs(currentCenter.lat() - lat);\n        const lngDiff = Math.abs(currentCenter.lng() - lng);\n        if (latDiff > 0.000001 || lngDiff > 0.000001) {\n          this.isProgrammaticUpdate = true;\n          this.circle.setCenter(position);\n          this.isProgrammaticUpdate = false;\n        }\n\n        // 4. update circle radius\n        const currentMapRadius = this.circle.getRadius();\n        if (Math.abs(currentMapRadius - radius) > 0.1) {\n          this.circle.setRadius(radius);\n        }\n\n        // 5. visibility and dynamic zoom\n        if (radius > 0) {\n          this.circle.setMap(this.map);\n          this.fitMapToCircle(); // dynamic zoom adjustment //\n        } else {\n          this.circle.setMap(null);\n          this.map.setZoom(18); // fallback zoom if no radius //\n        }\n      } else {\n        this.marker.map = null;\n        this.circle.setMap(null);\n      }\n    }\n    fitMapToCircle() {\n      if (!this.map || !this.circle || !this.circle.getMap()) return;\n      const bounds = this.circle.getBounds();\n      if (bounds) {\n        this.map.fitBounds(bounds);\n      }\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.disconnectControlObservers();\n      this.mapListeners.forEach(listener => {\n        google.maps.event.removeListener(listener);\n      });\n      this.mapListeners = [];\n      if (this.map) {\n        this.marker.map = null;\n        this.circle.setMap(null);\n        this.map = null;\n      }\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"registerControl\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"registerControl\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupMap\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setupMap\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateMap\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateMap\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, GoogleMapComponent);\n});","define(\"portal/components/grouping-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.getAxes = getAxes;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{yield this.gs}}\n  */\n  {\n    \"id\": \"Ktb51HvO\",\n    \"block\": \"[[[18,1,[[30,0,[\\\"gs\\\"]]]]],[\\\"&default\\\"],false,[\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/grouping-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  class GroupingSelectorComponent extends _component2.default {\n    get gs() {\n      return {\n        axes: getAxes(this.args.groups ?? [], this.args.value ?? [], this.args.onChange)\n      };\n    }\n  }\n\n  /**\n   * @param {{ key: string }[]} groups All properties will be passed through\n   * @param {string[]} value To match groups[].key\n   * @param {(newValue: string[]) => void} onChange To match groups[].key\n   * @returns {\n   *   value: null | string,\n   *   update: (depth: number) => void,\n   *   options: { key: string, isSelected: boolean }[]\n   * }\n   */\n  _exports.default = GroupingSelectorComponent;\n  function getAxes(groups, value, onChange) {\n    const axes = [];\n    const noneOption = {\n      key: '__none__',\n      name: 'None'\n    };\n    const update = level => updatedValue => {\n      if (!onChange || value[level] === updatedValue) return;\n      onChange([...value.slice(0, level), ...(updatedValue === '__none__' ? [] : [updatedValue])]);\n    };\n    const getOptions = (remainingGroups, key) => [noneOption, ...groups].map(opt => ({\n      ...opt,\n      isSelected: opt.key === key\n    }));\n    let depth = 0;\n    do {\n      if (!value[depth]) {\n        axes.push({\n          value: null,\n          update: update(depth),\n          options: getOptions(groups, null)\n        });\n        groups = [];\n      } else {\n        const key = value[depth];\n        axes.push({\n          value: key,\n          update: update(depth),\n          options: getOptions(groups, key)\n        });\n        groups = groups.filter(g => g.key !== key);\n      }\n      depth++;\n    } while (groups.length > 0);\n    return axes;\n  }\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, GroupingSelectorComponent);\n});","define(\"portal/components/groups-redacted-notice\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='notification-message'>\n    <div class='notification-message__icon'>\n      <FaIcon @icon='info' />\n    </div>\n  \n    <div class='notification-message__content'>\n      Group data has not yet been released for this period\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"g06We6pA\",\n    \"block\": \"[[[10,0],[14,0,\\\"notification-message\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"notification-message__icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],null,[[\\\"@icon\\\"],[\\\"info\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"notification-message__content\\\"],[12],[1,\\\"\\\\n    Group data has not yet been released for this period\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/groups-redacted-notice.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/icon-button\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div role='button' class='icon-button {{this.sizeClass}}' ...attributes>\n    <FaIcon @icon={{@icon}} />\n  </div>\n  */\n  {\n    \"id\": \"qCMknlbF\",\n    \"block\": \"[[[11,0],[24,\\\"role\\\",\\\"button\\\"],[16,0,[29,[\\\"icon-button \\\",[30,0,[\\\"sizeClass\\\"]]]]],[17,1],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@icon\\\"],[[30,2]]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@icon\\\"],false,[\\\"div\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/icon-button.hbs\",\n    \"isStrictMode\": false\n  });\n  class IconButtonComponent extends _component2.default {\n    get sizeClass() {\n      const validSizes = ['xs', 'sm', 'md', 'lg', 'xl', '2xl'];\n      if (this.args.size && validSizes.includes(this.args.size)) {\n        return `icon-button--${this.args.size}`;\n      }\n      return 'icon-button--md';\n    }\n  }\n  _exports.default = IconButtonComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, IconButtonComponent);\n});","define(\"portal/components/indeterminate-checkbox\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Input\n    @type='checkbox'\n    class='form-check-input {{@class}}'\n    @checked={{@checked}}\n    ...attributes\n    {{on 'click' this.onClick}}\n    {{did-update this.onChangeIndeterminate @indeterminate}}\n    {{did-insert this.onChangeIndeterminate}}\n  />\n  */\n  {\n    \"id\": \"1rJ5toB/\",\n    \"block\": \"[[[8,[39,0],[[16,0,[29,[\\\"form-check-input \\\",[30,1]]]],[17,2],[4,[38,1],[\\\"click\\\",[30,0,[\\\"onClick\\\"]]],null],[4,[38,2],[[30,0,[\\\"onChangeIndeterminate\\\"]],[30,4]],null],[4,[38,3],[[30,0,[\\\"onChangeIndeterminate\\\"]]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,3]]],null]],[\\\"@class\\\",\\\"&attrs\\\",\\\"@checked\\\",\\\"@indeterminate\\\"],false,[\\\"input\\\",\\\"on\\\",\\\"did-update\\\",\\\"did-insert\\\"]]\",\n    \"moduleName\": \"portal/components/indeterminate-checkbox.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class extends _component2.default {\n    onChangeIndeterminate(element) {\n      element.indeterminate = this.args.indeterminate;\n    }\n    onClick(event) {\n      if (this.args.onChange) this.args.onChange(event);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"onChangeIndeterminate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeIndeterminate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype), _class));\n});","define(\"portal/components/infinity-scroll\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{yield this.didInsert}}\n  */\n  {\n    \"id\": \"+pD1FRch\",\n    \"block\": \"[[[18,1,[[30,0,[\\\"didInsert\\\"]]]]],[\\\"&default\\\"],false,[\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/infinity-scroll.hbs\",\n    \"isStrictMode\": false\n  });\n  const DEFAULT_BUFFER = 35;\n  function findFirstScrollableParent(el) {\n    let parent = el;\n    while (parent) {\n      // this handles all scroll styles i.e scroll: auto, scroll-y: auto\n      const overflowY = window.getComputedStyle(parent).getPropertyValue('overflow-y');\n      const hasScrollStyle = overflowY === 'auto' || overflowY === 'scroll';\n      if (hasScrollStyle) return parent;\n      parent = parent.parentElement;\n    }\n    return undefined;\n  }\n  function isNearScrollBottom(el, buffer = DEFAULT_BUFFER) {\n    if (el.scrollTop + el.clientHeight >= el.scrollHeight - buffer) {\n      return true;\n    }\n    return false;\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"scrollableParent\", void 0);\n      _defineProperty(this, \"onScrollEventListener\", void 0);\n      _defineProperty(this, \"lastTriggerPosition\", 0);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      if (this.onScrollEventListener) {\n        this.scrollableParent.removeEventListener('scroll', this.onScrollEventListener);\n      }\n    }\n    onScroll(element) {\n      return () => {\n        if (!isNearScrollBottom(element, this.args.buffer)) return;\n        const currentPosition = element.scrollTop + element.clientHeight;\n        const positionDiff = Math.abs(this.lastTriggerPosition - currentPosition);\n\n        // if we are within the margin of the last trigger, don't trigger again\n        if (positionDiff <= (this.args.buffer || DEFAULT_BUFFER)) return;\n        this.args.onLoadMore();\n        this.lastTriggerPosition = currentPosition;\n      };\n    }\n    didInsert(element) {\n      const scrollableParent = findFirstScrollableParent(element);\n      if (!scrollableParent) return;\n      this.scrollableParent = scrollableParent;\n      this.maybeLoadOnInsert();\n      this.onScrollEventListener = this.onScroll(scrollableParent).bind(this);\n      scrollableParent.addEventListener('scroll', this.onScrollEventListener);\n    }\n    async maybeLoadOnInsert() {\n      if (!this.scrollableParent) return;\n\n      // record initial scroll height\n      let prevHeight = this.scrollableParent.scrollHeight;\n      let max = 10;\n      let i = 0;\n      while (max > i) {\n        i++;\n        // if content overflows container, stop loading\n        if (prevHeight > this.scrollableParent.clientHeight) break;\n        // load more items\n        try {\n          await this.args.onLoadMore();\n        } catch (_) {\n          // I don't mind if it drops\n        }\n        // wait for next frame\n        await new Promise(resolve => requestAnimationFrame(resolve));\n        // get updated scroll height\n        const newHeight = this.scrollableParent.scrollHeight;\n        // if no new items loaded, stop\n        if (newHeight === prevHeight) break;\n        // update for next iteration\n        prevHeight = newHeight;\n      }\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _class));\n});","define(\"portal/components/info-popup\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='info-popup' ...attributes>\n    <FaIcon\n      @icon={{or @iconName 'info-circle'}}\n      @prefix={{or @iconPrefix 'fas'}}\n      class='info-popup__icon'\n    />\n  \n    <div\n      class='info-popup__text\n        {{if\n          (eq @align \"right\")\n          \"info-popup__text--right\"\n          \"info-popup__text--left\"\n        }}'\n    >\n      {{html-safe @text}}\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"BLYXQAm/\",\n    \"block\": \"[[[11,0],[24,0,\\\"info-popup\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"info-popup__icon\\\"]],[[\\\"@icon\\\",\\\"@prefix\\\"],[[28,[37,2],[[30,2],\\\"info-circle\\\"],null],[28,[37,2],[[30,3],\\\"fas\\\"],null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[15,0,[29,[\\\"info-popup__text\\\\n      \\\",[52,[28,[37,4],[[30,4],\\\"right\\\"],null],\\\"info-popup__text--right\\\",\\\"info-popup__text--left\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,5],[[30,5]],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@iconName\\\",\\\"@iconPrefix\\\",\\\"@align\\\",\\\"@text\\\"],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"or\\\",\\\"if\\\",\\\"eq\\\",\\\"html-safe\\\"]]\",\n    \"moduleName\": \"portal/components/info-popup.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/info-wrapper\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='info-wrapper'>\n    {{yield}}\n  \n    <div class='info-wrapper__text'>\n      {{this.text}}\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"fUfg2oz4\",\n    \"block\": \"[[[10,0],[14,0,\\\"info-wrapper\\\"],[12],[1,\\\"\\\\n  \\\"],[18,1,null],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"info-wrapper__text\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"text\\\"]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/info-wrapper.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: ''\n  }));\n});","define(\"portal/components/integration-icon\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.icon}}\n    {{#if (eq this.icon 'cloud-sync')}}\n      <FaIcon\n        @icon='cloud'\n        @title={{this.title}}\n        class='integration-icon__cloud-sync-cloud'\n      />\n      <FaIcon\n        @icon='sync-alt'\n        @title={{this.title}}\n        class='integration-icon__cloud-sync-refresh'\n      />\n    {{else}}\n      <FaIcon @icon={{this.icon}} @title={{this.title}} />\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"bVIQ3dt7\",\n    \"block\": \"[[[41,[30,0,[\\\"icon\\\"]],[[[41,[28,[37,1],[[30,0,[\\\"icon\\\"]],\\\"cloud-sync\\\"],null],[[[1,\\\"    \\\"],[8,[39,2],[[24,0,\\\"integration-icon__cloud-sync-cloud\\\"]],[[\\\"@icon\\\",\\\"@title\\\"],[\\\"cloud\\\",[30,0,[\\\"title\\\"]]]],null],[1,\\\"\\\\n    \\\"],[8,[39,2],[[24,0,\\\"integration-icon__cloud-sync-refresh\\\"]],[[\\\"@icon\\\",\\\"@title\\\"],[\\\"sync-alt\\\",[30,0,[\\\"title\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@icon\\\",\\\"@title\\\"],[[30,0,[\\\"icon\\\"]],[30,0,[\\\"title\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[],false,[\\\"if\\\",\\\"eq\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/integration-icon.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['integration-icon'],\n    classNameBindings: ['small:integration-icon--small'],\n    icon: (0, _object.computed)('synced', 'exported', 'imported', 'autoMapped', function () {\n      const synced = (0, _object.get)(this, 'synced');\n      const exported = (0, _object.get)(this, 'exported');\n      const imported = (0, _object.get)(this, 'imported');\n      const autoMapped = (0, _object.get)(this, 'autoMapped');\n      if (autoMapped) return 'magic';\n      if (synced || exported && imported) {\n        return 'cloud-sync';\n      } else if (exported) {\n        return 'cloud-upload-alt';\n      } else if (imported) {\n        return 'cloud-download-alt';\n      } else {\n        return false;\n      }\n    })\n  }));\n});","define(\"portal/components/invoice-item-editor-modal\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"moment\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/array\", \"@ember/runloop\", \"portal/helpers/round-number\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _moment, _object, _tracking, _service, _array, _runloop, _roundNumber, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.GenericTreeItem = 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          {{! a new item opens with nothing selected, so the warning waits until\n              there is a reason to show it: a save was attempted, more than one\n              project is selected, or the allocation was changed and left empty }}\n          {{#let\n            (and\n              (or\n                (gt this.saveItem.performCount 0)\n                (gt this.checkedProjectCount 1)\n                this.isAllocationValueChanged\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.allocationValueMatchesSubtotal\n                  this.editDisabled\n                }}\n                {{on 'click' this.useAllocationValue}}\n              >\n                {{#if this.allocationValueMatchesSubtotal}}\n                  <i>\n                    {{t\n                      'components.invoice-item-editor-modal.allocationValueMatches'\n                    }}\n                  </i>\n                {{else 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              {{! an item priced at nil is a real value, not a blank }}\n              @formatterOptions={{hash dashZero=false}}\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                @formatterOptions={{hash dashZero=false}}\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\": \"7Lw0RUP/\",\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],[30,0,[\\\"isAllocationValueChanged\\\"]]],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,[\\\"allocationValueMatchesSubtotal\\\"]],[30,0,[\\\"editDisabled\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"useAllocationValue\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationValueMatchesSubtotal\\\"]],[[[1,\\\"                \\\"],[10,\\\"i\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,7],[\\\"components.invoice-item-editor-modal.allocationValueMatches\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,23],[[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\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",[30,6],\\\"currency\\\",[28,[37,25],null,[[\\\"dashZero\\\"],[false]]],[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,26],[[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,26],[[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,26],[[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\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",[30,6],\\\"currency\\\",[28,[37,25],null,[[\\\"dashZero\\\"],[false]]],[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\\\",\\\"i\\\",\\\"not-eq\\\",\\\"formatted-input\\\",\\\"hash\\\",\\\"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  // how far the allocation may sit from the price before it is worth saying so.\n  // the split across costs is proportional, so a few cents either way is rounding\n  // rather than a mistake\n  const TOLERANCE_VALUE = 0.05;\n  // whether the two are the same money. anything larger would change the price on\n  // screen, so the offer to apply it still has something to do\n  const SAME_TO_THE_CENT = 0.005;\n  // a deleted cost whose allocations net off to less than a cent has nothing left\n  // to correct. the api treats a net link total that small as nothing to allocate\n  // on for the same reason\n  const NOTHING_LEFT_OWING = 0.01;\n  let GenericTreeItem = _exports.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\n    /**\n     * the children a selection reaches.\n     *\n     * a row with nothing to bill is not part of the allocation, so ticking a node\n     * has to leave it alone, and it must not hold the node back from reading as\n     * fully ticked. one that is already ticked is never empty, so a row that was\n     * selected before still answers for itself\n     */\n    get selectableChildren() {\n      return this.children.filter(child => !child.isEmpty);\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      const selectable = this.selectableChildren;\n      if (selectable.length > 0) {\n        let hasChecked = false;\n        let hasUnchecked = false;\n        for (const child of selectable) {\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      const selectable = this.selectableChildren;\n      if (selectable.length > 0) {\n        selectable.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      const selectable = this.selectableChildren;\n      if (selectable.length > 0) {\n        return selectable.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      return this.remaining('total');\n    }\n    get directValue() {\n      return this.remaining('direct');\n    }\n\n    /**\n     * what this row is worth.\n     *\n     * a saved allocation that has not been touched reads as the value it was\n     * invoiced for, because that is what the invoice billed. touching it moves\n     * the row onto live values, where what is left billable at the node is shown\n     * with this item's own allocation added back so it stays pickable\n     */\n    remaining(scope) {\n      // a saved allocation against a cost that has gone reads as what it billed.\n      // touched, it reads the way a live row does: what is left owing on the cost\n      // once every allocation against it is netted off, with this item's own\n      // allocation added back. the cost carries no charge out, so what is left\n      // owing is the net negated\n      if (this.detachedInvoiced !== undefined) return this.isPristine ? this.detachedInvoiced : this.detachedInvoiced - this.detachedNet;\n      const ownAllocation = this.link ? this.link._meta.values[scope][this.costType].invoiced : 0;\n      if (this.isPristine && this.link) return ownAllocation;\n\n      // the totals have not arrived, so there is nothing to say what this is\n      // worth. master answered zero here and so does this: an allocation on its\n      // own is not an answer to what is left to bill\n      if (!this.value) return 0;\n      return this.value[scope][this.costType][this.component.allocationType].invoiceable + ownAllocation;\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\n    /**\n     * whether there is anything here worth picking.\n     *\n     * nothing to bill and nothing to put right, so a node with no costs on it, a\n     * section whose costs have all been invoiced, and an invoiced cost itself all\n     * read the same. a credit and a charge that cancel out do not: each is still\n     * a cost with something to do, which is what the count is for and why the\n     * value on its own can't say.\n     *\n     * the value keeps this item's own allocation, so a row it has already ticked\n     * stays pickable and can be unticked. an api that sends no count leaves every\n     * row alone\n     */\n    get isEmpty() {\n      // a row that has been ticked stays the user's to untick. one it was ticked\n      // by mistake is cleared as it is built, not here, because asking whether it\n      // is ticked is how this tells them apart\n      if (this.checked || this.indeterminate) return false;\n      return this.hasNothingToBill;\n    }\n\n    /** the same question, before a tick has been put against it */\n    get hasNothingToBill() {\n      const outstanding = this.bucket?.outstanding;\n      if (outstanding === undefined) return false;\n      return outstanding === 0 && Math.abs(this.effectiveValue) < NOTHING_LEFT_OWING;\n    }\n\n    /** the totals behind the figure this row is showing */\n    get bucket() {\n      // the scope is asked for second: a row built before the tree is navigable\n      // has no totals, and reading the active item that early is what breaks\n      if (!this.value) return undefined;\n      const scope = this.effectiveValueType;\n      if (!scope) return undefined;\n      return this.value[scope][this.costType][this.component.allocationType];\n    }\n\n    /**\n     * what the row is worth, or why it is worth nothing.\n     *\n     * zero reads the same whether everything here has been invoiced or there is\n     * nothing here to bill in the first place, and the two call for different\n     * things: one is done with, the other is waiting on a cost or a quote\n     */\n    get valueLabel() {\n      if (!this.isEmpty) return this.currencyFormatter(this.effectiveValue);\n      return this.component.intl.t(this.bucket.count > 0 ? 'components.invoice-item-editor-modal.fullyInvoiced' : 'components.invoice-item-editor-modal.nothingToBill');\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\n    /**\n     * how many costs under here were invoiced and are no longer on the node.\n     *\n     * finding one otherwise means opening every task and cost section beneath\n     * this row until it turns up, so the count is carried the whole way down: the\n     * project says how many are somewhere underneath, the task narrows it, the\n     * Bills or Timesheets section says which of the two, and the cost row itself\n     * is the one being looked for.\n     *\n     * it counts costs rather than links, so one that has been put right on a\n     * later invoice stops being counted and the trail goes with it\n     */\n    get badge() {\n      // a cost row is the thing being looked for rather than a place to look, so\n      // it says what happened to it instead of counting itself\n      if (this._badge !== undefined) return this._badge;\n\n      // the count is only ever a way in to a cost this item could take up, so\n      // there is nothing to point at when the allocation is being viewed\n      if (this.component.allocationDisabled) return undefined;\n      const counts = this.value?.unresolvedCosts;\n\n      // a category only holds what sits on the node itself, so it reports the\n      // direct count for its own kind of cost rather than the whole subtree\n      const count = this.classKind === 'CATEGORY' ? counts?.direct?.[this.costType] ?? 0 : counts?.total?.total ?? 0;\n      return count ? String(count) : undefined;\n    }\n\n    /** the count needs saying in words, the label already says it */\n    get badgeTitle() {\n      if (this._badge !== undefined) return undefined;\n      const count = Number(this.badge);\n      return count ? this.component.intl.t('components.invoice-item-editor-modal.unresolvedCosts', {\n        count\n      }) : undefined;\n    }\n    get item() {\n      return {\n        name: this.name,\n        value: this.valueLabel\n      };\n    }\n    constructor({\n      checked,\n      classKind,\n      component,\n      costType,\n      currencyFormatter,\n      detachedInvoiced,\n      detachedNet,\n      indeterminate,\n      isPristine = true,\n      link,\n      loadChildren,\n      name,\n      page,\n      resource,\n      value,\n      badge\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      /** what this item invoiced against a cost that is no longer at this node */\n      _defineProperty(this, \"detachedInvoiced\", void 0);\n      /** every allocation against that cost, netted off */\n      _defineProperty(this, \"detachedNet\", 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      _defineProperty(this, \"_badge\", 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._badge = badge;\n      this.component = component;\n      this.costType = costType;\n      this.currencyFormatter = currencyFormatter;\n      this.detachedInvoiced = detachedInvoiced;\n      this.detachedNet = detachedNet;\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\n      // a row is built carrying whatever the node above it was set to, which is\n      // how a cascade reaches children that load later. one with nothing to bill\n      // is no part of the allocation and does not take that tick.\n      //\n      // a row holding an allocation of its own keeps its tick whatever is left to\n      // bill, because the allocation is what the invoice charged rather than what\n      // is still owing, and it can come to nothing: a fixed price line over a\n      // project with no quote holds a link worth zero, and dropping its tick\n      // loses the only sign of where the line was billed\n      const nothingToBill = !this.link && this.hasNothingToBill;\n      this._checked = Boolean(checked) && !nothingToBill;\n      this._indeterminate = Boolean(indeterminate) && !nothingToBill;\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      // the selector starts paging as soon as it renders, before the links this\n      // item already holds have been looked up. a project it is allocated to that\n      // is not open only appears because of those ids, so a page fetched without\n      // them leaves it out, and paging on never goes back for it. anything loading\n      // projects waits here first\n      _defineProperty(this, \"resolveLinkedProjectIds\", void 0);\n      _defineProperty(this, \"linkedProjectIdsKnown\", new Promise(resolve => {\n        this.resolveLinkedProjectIds = resolve;\n      }));\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          let projectLinks, glAccounts;\n          try {\n            [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          } catch (error) {\n            // the project list waits on these ids, so it must not wait on a lookup\n            // that is never coming back\n            this.resolveLinkedProjectIds();\n            throw error;\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\n          // the list can load now the filter is complete\n          this.resolveLinkedProjectIds();\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\n          // see linkedProjectIdsKnown: the filter is not complete until the item's\n          // own allocations are known\n          yield this.linkedProjectIdsKnown;\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            // the node's own totals, whether or not this item is linked here. the\n            // link meta counts what this item could link, which is none of a cost\n            // another item over invoiced, so gating on it closed the section over the\n            // very rows the count above it is pointing at\n            if (this.hasCostsToShow(container.value?.direct.bills.all)) {\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            // see the project loader above: the node's totals say what is here, the\n            // link meta only what this item holds\n            const hasTimesheetsValue = this.hasCostsToShow(container.value?.direct.timesheets.all);\n            const hasBillsValue = this.hasCostsToShow(container.value?.direct.bills.all);\n            if (hasTimesheetsValue) {\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 (hasBillsValue) {\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\n          // only on the first page, so they aren't added again as more costs load\n          const detached = container.page['timesheet'].number === 1 ? yield this.loadDetachedTimesheetLinks.perform(container) : [];\n          container.addChildren([...detached, ...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\n          // only on the first page, so they aren't added again as more costs load\n          const detached = container.page['bill-item'].number === 1 ? yield this.loadDetachedBillItemLinks.perform(container, 'allocatedProject') : [];\n          container.addChildren([...detached, ...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\n          // only on the first page, so they aren't added again as more costs load\n          const detached = container.page['bill-item'].number === 1 ? yield this.loadDetachedBillItemLinks.perform(container, 'allocatedTask') : [];\n          container.addChildren([...detached, ...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            // so the missing cost count says what would be owing without this\n            // item, which holds still while its allocation is being changed\n            ignoreInvoiceItem: this.args.item.id\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            // so the missing cost count says what would be owing without this\n            // item, which holds still while its allocation is being changed\n            ignoreInvoiceItem: this.args.item.id\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            // so the missing cost count says what would be owing without this\n            // item, which holds still while its allocation is being changed\n            ignoreInvoiceItem: this.args.item.id\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      /**\n       * links on this invoice item whose cost is no longer at the node it was\n       * invoiced against, because it was deleted or moved somewhere else.\n       *\n       * the cost queries look for the cost where it is now, so they return nothing\n       * here and the allocation would drop out of the tree. the link records the\n       * node it was invoiced against, so it is loaded here and put back in the same\n       * place with the value it was invoiced for. that value has no charge out\n       * behind it any more, so the node reads as over invoiced.\n       *\n       * a moved cost also keeps its own row where it is now, so it shows in both\n       * places: over invoiced here, invoiceable there\n       */\n      _defineProperty(this, \"loadDetachedBillItemLinks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (container, nodeField) {\n          // where the cost sits now, in the same terms as the node it was allocated\n          // against. allocatedTask pairs with the bill item's task, allocatedProject\n          // with its project\n          const costNodeField = nodeField === 'allocatedProject' ? 'billItem.project' : 'billItem.task';\n\n          // every detached link at the node, whichever invoice item holds it. scoping\n          // to this item would hide the very costs it exists to let you correct, and\n          // grouping them by cost is what nets an item's own correction against the\n          // allocation it corrects\n          const and = [{\n            field: nodeField,\n            op: 'EQ',\n            value: container.resource.id\n          }, {\n            // the cost is not here any more. it is null when the cost was\n            // deleted, and when it moved to the other kind of node, because a\n            // task cost carries no project and a project cost carries no task\n            or: [{\n              field: costNodeField,\n              op: 'IS_NULL',\n              value: null\n            }, {\n              field: costNodeField,\n              op: 'NE',\n              value: container.resource.id\n            }]\n          }];\n          const links = yield this.store.query('link-invoice-item-to-bill-item', {\n            filter: {\n              and\n            },\n            params: {\n              allocationDate: this.allocationDateIso\n            },\n            include: 'billItem.bill',\n            fields: {\n              'link-invoice-item-to-bill-items': '_meta,detachedCost,value'\n            }\n          });\n          return this.groupDetachedLinks(links)\n          // an allocation this item holds stays whatever the window says, the same\n          // as the counts, which leave this item's own links out of the reckoning\n          .filter(({\n            link,\n            isOwn\n          }) => isOwn || this.withinAllocationWindow(link, 'bills')).map(({\n            link,\n            invoiced,\n            isOwn,\n            net\n          }) => {\n            // a deleted cost is described by the copy taken as it went, a moved one\n            // is still there to be read\n            const billItem = link.belongsTo('billItem').value();\n            const bill = billItem?.belongsTo('bill').value();\n            const cost = billItem ? {\n              issuer: bill?.issuer,\n              billNumber: bill?.billNumber,\n              description: billItem.description\n            } : link.detachedCost || {};\n            const name = [cost.issuer, cost.billNumber ? cost.billNumber + ':' : undefined, cost.description].filter(Boolean).join(' ');\n            return this.detachedCostLinkItem(container, link, name, 'bill-item', {\n              source: 'bills',\n              invoiced,\n              isOwn,\n              net\n            });\n          });\n        }\n      }), null, \"loadDetachedBillItemLinks\", null));\n      /** the timesheet equivalent of loadDetachedBillItemLinks */\n      _defineProperty(this, \"loadDetachedTimesheetLinks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (container) {\n          // every detached link at the node, the same as the bill item loader above\n          const and = [{\n            field: 'allocatedTask',\n            op: 'EQ',\n            value: container.resource.id\n          }, {\n            or: [{\n              field: 'timesheet.task',\n              op: 'IS_NULL',\n              value: null\n            }, {\n              field: 'timesheet.task',\n              op: 'NE',\n              value: container.resource.id\n            }]\n          }];\n          const links = yield this.store.query('link-invoice-item-to-timesheet', {\n            filter: {\n              and\n            },\n            params: {\n              allocationDate: this.allocationDateIso\n            },\n            include: 'timesheet.worker',\n            fields: {\n              'link-invoice-item-to-timesheets': '_meta,detachedCost,value'\n            }\n          });\n          return this.groupDetachedLinks(links).filter(({\n            link,\n            isOwn\n          }) => isOwn || this.withinAllocationWindow(link, 'timesheets')).map(({\n            link,\n            invoiced,\n            isOwn,\n            net\n          }) => {\n            const timesheet = link.belongsTo('timesheet').value();\n            const worker = timesheet?.belongsTo('worker').value();\n            const cost = timesheet ? {\n              workerFirstName: worker?.firstName,\n              workerLastName: worker?.lastName,\n              duration: timesheet.duration,\n              date: timesheet.date\n            } : link.detachedCost || {};\n            const name = [cost.workerFirstName, cost.workerLastName ? cost.workerLastName + ':' : undefined, this.formatDuration(cost.duration || 0), cost.date ? 'on' : undefined, cost.date ? (0, _moment.default)(cost.date).format(this.intl.t('date.longWithoutWeekday')) : undefined].filter(Boolean).join(' ');\n            return this.detachedCostLinkItem(container, link, name, 'timesheet', {\n              source: 'timesheets',\n              invoiced,\n              isOwn,\n              net\n            });\n          });\n        }\n      }), null, \"loadDetachedTimesheetLinks\", 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            // so the missing cost count says what would be owing without this\n            // item, which holds still while its allocation is being changed\n            ignoreInvoiceItem: this.args.item.id\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      // a credit note's subtotal is negative, and it needs allocating just as\n      // much as an invoice does. only a nil item is exempt\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\n    /**\n     * the price already accounts for exactly what is selected.\n     *\n     * offering to fill it in again is noise, and the figure in that offer reads\n     * as a second, contradictory number next to the unit price: on a credit note\n     * the allocation is negative while the unit price that produces it is\n     * positive, carrying its sign on the quantity\n     */\n    get allocationValueMatchesSubtotal() {\n      const allocationValue = this.selectedAllocationValue.value;\n      if (!allocationValue) return false;\n\n      // to the cent, not to the tolerance the warning uses. sharing that put the\n      // price a few cents out of reach: the offer to apply the allocation read as\n      // already applied and could not be taken\n      return Math.abs(allocationValue - this.subtotal) <= SAME_TO_THE_CENT;\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 isCreditNote() {\n      return this.args.item.safeBelongsToValue('invoice')?.invoiceType === 'CREDIT_NOTE';\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\n      // a credit note runs the other way, so the same difference means the\n      // opposite thing: more than the allocation is less credit, not more charge\n      const tooMuch = this.isCreditNote ? diff < 0 : diff > 0;\n      const options = {\n        value: formatted\n      };\n      const warningText = this.isCreditNote ? tooMuch ? this.intl.t('components.invoice-item-editor-modal.overCreditingWarningText', options) : this.intl.t('components.invoice-item-editor-modal.underCreditingWarningText', options) : tooMuch ? this.intl.t('components.invoice-item-editor-modal.overInvoicingWarningText', options) : this.intl.t('components.invoice-item-editor-modal.underInvoicingWarningText', options);\n      return {\n        value: diff,\n        formatted: this.formatCurrency(diff),\n        warningText\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    /**\n     * is there anything to show under this node for a cost type?\n     *\n     * `total` is the charge out of the costs sitting there now, so it is zero once\n     * they have been deleted or moved away. the invoiced value stays behind at the\n     * node it was invoiced against, and is what makes the node read as over\n     * invoiced, so it has to count. without it there is no way to drill in and\n     * see which costs went missing\n     */\n    hasCostsToShow(totals) {\n      // the count is what says a section has rows, so costs that net off to zero\n      // still open. older apis don't send it, and fall back to the value: a node\n      // that was over credited reads negative and is still worth opening\n      if (totals?.count !== undefined) return totals.count > 0;\n      return totals?.total > 0 || (totals?.invoiced ?? 0) !== 0;\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    /**\n     * totals for a cost that is no longer there.\n     *\n     * the charge out went with it, so `total` is zero and the invoiced value has\n     * nothing behind it, which makes `invoiceable` the negative of what was\n     * invoiced. that is the billable remaining the allocator column shows, and\n     * the amount a correcting invoice has to take up\n     */\n    overInvoicedTotals(source, allocation, invoiced) {\n      const amount = () => ({\n        total: 0,\n        invoiced,\n        invoiceable: -invoiced\n      });\n      const zero = () => ({\n        total: 0,\n        invoiced: 0,\n        invoiceable: 0\n      });\n      const bySource = isSource => Object.fromEntries(['materials', 'subcontractors', 'labour', 'sums', 'all'].map(key => [key, isSource && (key === 'all' || key === allocation) ? amount() : zero()]));\n      const scope = () => ({\n        quote: bySource(false),\n        bills: bySource(source === 'bills'),\n        timesheets: bySource(source === 'timesheets'),\n        total: bySource(true)\n      });\n      return {\n        direct: scope(),\n        total: scope()\n      };\n    }\n\n    /**\n     * one row per deleted cost, not per link.\n     *\n     * a later invoice item that corrects an over invoice writes its own link\n     * against the same deleted cost, pointing at the one it corrects. both are\n     * links at the node, so they group by that pointer and their invoiced values\n     * net off. a cost that has been corrected reads as nothing left owing\n     */\n    groupDetachedLinks(links) {\n      const groups = new Map();\n      for (const link of links) {\n        const key = link.belongsTo('correctsLink').id() ?? link.id;\n        const group = groups.get(key);\n        if (group) group.push(link);else groups.set(key, [link]);\n      }\n      const rows = [...groups.entries()].map(([key, group]) => {\n        const own = group.find(l => l.belongsTo('invoiceItem').id() === this.args.item.id);\n        const valueOf = l => l._meta?.values?.total?.total?.invoiced ?? Number(l.value);\n        const net = group.reduce((sum, l) => sum + valueOf(l), 0);\n        return {\n          // this item's own link when it has one, so unticking clears it. the\n          // original otherwise, so ticking takes it up\n          link: own ?? group.find(l => l.id === key) ?? group[0],\n          isOwn: Boolean(own),\n          // what this item put against the cost when it holds an allocation, so\n          // reopening shows the allocation it was saved with rather than the\n          // nothing that is left once its own correction is netted off. every\n          // allocation against it otherwise, which is what is left to take up\n          invoiced: own ? valueOf(own) : net,\n          // every allocation against the cost, whoever holds it. a row being\n          // authored is worth what is left owing on the cost, not what this item\n          // happens to hold\n          net\n        };\n      });\n\n      // a cost that has been corrected in full is done with. it is only here to\n      // be put right, so once there is nothing left owing on it there is nothing\n      // to show. this item's own rows stay either way, so unticking one still\n      // clears the allocation it holds\n      return rows.filter(({\n        isOwn,\n        invoiced\n      }) => isOwn || Math.abs(invoiced) >= NOTHING_LEFT_OWING);\n    }\n\n    /**\n     * whether the window the allocator is asking through reaches a cost that has\n     * left the node.\n     *\n     * the links are not held to the date the costs are, so without this a cost\n     * dated after the cut off is named at the node it was invoiced against while\n     * the counts that lead there leave it out. a deleted cost is judged by the\n     * copy taken as it went, which is the only date left on it; one that moved is\n     * still there to be read. either without a date cannot be judged, so it stays\n     */\n    withinAllocationWindow(link, source) {\n      if (!this.allocationDateIso) return true;\n      const snapshot = link.detachedCost || {};\n      let on;\n      if (source === 'timesheets') {\n        const timesheet = link.belongsTo('timesheet').value();\n        on = timesheet ? timesheet.date : snapshot.date;\n      } else {\n        const billItem = link.belongsTo('billItem').value();\n        on = billItem ? billItem.belongsTo('bill').value()?.issueDate : snapshot.issueDate;\n      }\n      if (!on) return true;\n      return new Date(on) <= new Date(this.allocationDateIso);\n    }\n\n    /**\n     * a tree item for a link whose cost is no longer at the node it was invoiced\n     * against.\n     *\n     * the link stands in for the cost, so unchecking it sends the link's own id\n     * to the api and clears the allocation. a deleted cost has no id left to be\n     * named by, and a moved one is already spoken for by its row at the node it\n     * moved to\n     */\n    detachedCostLinkItem(container, link, name, pageKey, {\n      source,\n      invoiced,\n      isOwn,\n      net\n    }) {\n      const allocation = source === 'timesheets' ? 'labour' : (link.allocationType || '').toLowerCase();\n      return new GenericTreeItem({\n        component: this,\n        resource: link,\n        classKind: 'RESOURCE',\n        loadChildren: undefined,\n        // no children\n        page: {\n          [pageKey]: {\n            number: 1,\n            size: PAGE_SIZE,\n            hasNextPage: undefined\n          }\n        },\n        name,\n        costType: 'total',\n        // the row is the cost, not one item's link to it, so it reads as what is\n        // left billable on it once every allocation against it is netted off\n        link: undefined,\n        // except where this item is the one that billed it: untouched, the row\n        // reads as the value this invoice charged for it\n        detachedInvoiced: isOwn ? invoiced : undefined,\n        detachedNet: net,\n        value: this.overInvoicedTotals(source, allocation, invoiced),\n        // what became of the cost, rather than a count of itself. the counts on\n        // the nodes above are the way in, and they point at every detached cost\n        // this line did not bill, so a row that says nothing is a trail that\n        // stops short. a cost this item never billed is labelled only so it can\n        // be taken up, so viewing drops the label along with the trail\n        badge: isOwn || !this.allocationDisabled ? this.intl.t(link.detachedCost ? 'components.invoice-item-editor-modal.costDeleted' : 'components.invoice-item-editor-modal.costMoved') : undefined,\n        currencyFormatter: this.formatCurrency.bind(this),\n        // this item already allocates it, so it shows as selected. a saved\n        // allocation being viewed shows what it billed and nothing else, so a\n        // container that happens to be ticked does not take up a cost this item\n        // never had. once the container has been touched the row follows it, the\n        // same as a live cost row, and a mixed container says nothing about a row\n        // it does not hold\n        checked: isOwn || !container.isPristine && !container.indeterminate && container.checked,\n        indeterminate: false,\n        isPristine: container.isPristine\n      });\n    }\n  }, _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"glAccounts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceItemChangeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"taxRateIsPristine\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"linkedProjectIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"originalAllocationValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"isUnitPriceChanged\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"isAllocationValueChanged\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"isSyncingAllocationValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onUnitPriceChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUnitPriceChange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeSalesGlAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeSalesGlAccount\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectContainer\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onCheckboxClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onCheckboxClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeAllocationDate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeAllocationDate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeContractType\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeContractType\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeAllocationType\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeAllocationType\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"useAllocationValue\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"useAllocationValue\"), _class2.prototype), _class2));\n});","define(\"portal/components/invoice-item-table-pm\", [\"exports\", \"@ember/component\", \"@ember/runloop\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _runloop, _jquery, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/runloop\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! Table head }}\n  <thead>\n    <tr>\n      {{#if this.isEditing}}\n        {{! In editing mode, show code and description separately }}\n        <th class='invoice-editor__table-small-cell'>{{t\n            'shared.report-builder.Product code'\n          }}</th>\n        <th>{{t 'common.Description'}}</th>\n      {{else}}\n        {{! In non editing mode, show the code and description together and include the allocation }}\n        <th>{{t 'common.Item'}}</th>\n        <th>{{t 'common.Allocated'}}</th>\n      {{/if}}\n  \n      {{#if (and this.xeroIntegration.ready (not this.invoice.isNew))}}\n        <th class='invoice-editor__table-small-cell'>{{t\n            'common.Xero account'\n          }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>\n      {{else if (and this.quickbooksIntegration.ready (not this.invoice.isNew))}}\n        <th class='invoice-editor__table-small-cell'>\n          {{t 'components.invoice-item-table-pm.QuickBooks account'}}\n          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>\n      {{/if}}\n      <th class='invoice-editor__table-small-cell'>{{t 'common.Quantity'}}</th>\n      <th class='invoice-editor__table-small-cell'>{{t 'common.Unit cost'}}</th>\n      <th class='invoice-editor__table-small-cell'>{{t 'common.Total cost'}}</th>\n      {{#if (and (not this.isEditing) this.invoice.items.length)}}\n        {{! Don't show allocation selection checkboxes if the page is in editing mode }}\n        <th\n          class='invoice-editor__table-small-cell'\n          onclick={{action this.toggleSelectAll}}\n          data-test-select-all-trigger=''\n        >\n          <Input @type='checkbox' @checked={{this.allSelected}} />\n        </th>\n      {{/if}}\n  \n      {{#if (and this.isEditing (gt this.invoice.activeItems.length 1))}}\n        <th class='invoice-editor__table-small-cell'>{{t 'common.Delete'}}</th>\n      {{/if}}\n    </tr>\n  </thead>\n  \n  {{! Items in table body }}\n  <tbody>\n    {{#each this.invoice.sortedItems as |item index|}}\n      {{#unless item.isDeleted}}\n        <tr\n          class={{unless this.isEditing 'invoice-editor__table-row--hover'}}\n          onclick={{unless this.isEditing (action this.toggleSelectItem item)}}\n        >\n          {{#if this.isEditing}}\n            {{! In editing mode, show code and description separately }}\n            <td class='invoice-editor__table-small-cell'>\n              <Input\n                class={{concat\n                  'text-input data-table__cell-cover invoice-item-table--autofocus'\n                  (unless (or item.productCode item.description) ' invalid')\n                }}\n                @value={{item.productCode}}\n                title={{item.productCode}}\n                placeholder={{t 'shared.report-builder.Product code'}}\n                data-test-item-product-code-input={{index}}\n                autofocus='true'\n              />\n            </td>\n  \n            <td>\n              <ComboBox\n                @class={{unless (or item.description item.productCode) 'invalid'}}\n                @key='description'\n                @value={{item.description}}\n                @options={{this.names}}\n                @onSet={{fn (mut item.description)}}\n                @placeholder={{t 'shared.task.Product description'}}\n                data-test-item-name-input={{index}}\n              />\n            </td>\n          {{else}}\n            {{! In non editing mode, show the code and description together and include the allocation }}\n            <td\n              class='invoice-editor__table-big-cell'\n              title={{concat\n                (if this.productCode (concat item.productCode ' — '))\n                item.description\n              }}\n            >\n              {{if\n                item.productCode\n                (concat item.productCode ' — ')\n              }}{{item.description}}\n            </td>\n  \n            <td\n              class='invoice-editor__table-big-cell'\n              title='{{item.assignment}}'\n            >\n              {{item.assignment}}\n            </td>\n          {{/if}}\n  \n          {{#if (and this.xeroIntegration.ready (not this.invoice.isNew))}}\n            <td>\n              {{#if this.isEditing}}\n                <PowerSelect\n                  @options={{this.xeroAccounts}}\n                  @selected={{item.glAccount}}\n                  @onChange={{action this.setItemXeroAccount item}}\n                  @disabled={{this.xeroFetching}}\n                  @searchEnabled={{true}}\n                  @searchField='name'\n                  @placeholder={{t 'shared.bill.000 - Account'}}\n                  @allowClear={{true}}\n                  @loadingMessage={{t 'shared.bill.Loading Xero accounts'}}\n                  @noMatchesMessage={{t\n                    'components.invoice-item-table-pm.No Xero accounts found'\n                  }}\n                  @afterOptionsComponent={{component\n                    'power-select-after-options-button'\n                    onClick=this.updateXeroAccounts\n                    icon='sync'\n                    text=(t 'shared.bill.Click to update Xero accounts')\n                    isLoading=this.xeroFetching\n                    loadingText=(t 'shared.bill.Loading Xero accounts')\n                  }}\n                  as |option|\n                >\n                  {{option.code}}\n                  -\n                  {{option.name}}\n                </PowerSelect>\n              {{else}}\n                {{if\n                  item.glAccount\n                  (concat item.glAccount.code ' - ' item.glAccount.name)\n                  '–'\n                }}\n              {{/if}}\n            </td>\n          {{else if\n            (and this.quickbooksIntegration.ready (not this.invoice.isNew))\n          }}\n            <td>\n              {{#if this.isEditing}}\n                <PowerSelect\n                  @options={{this.quickbooksAccounts}}\n                  @selected={{item.glAccount}}\n                  @onChange={{action this.setItemQuickbooksAccount item}}\n                  @disabled={{this.quickbooksFetching}}\n                  @searchEnabled={{true}}\n                  @searchField='name'\n                  @placeholder={{t 'shared.bill.000 - Account'}}\n                  @allowClear={{true}}\n                  @loadingMessage='Loading QuickBooks accounts'\n                  @noMatchesMessage='No QuickBooks accounts found'\n                  @afterOptionsComponent={{component\n                    'power-select-after-options-button'\n                    onClick=this.updateQuickbooksAccounts\n                    icon='sync'\n                    text='Click to update QuickBooks accounts'\n                    isLoading=this.quickbooksFetching\n                    loadingText='Loading QuickBooks accounts'\n                  }}\n                  as |option|\n                >\n                  {{option.name}}\n                </PowerSelect>\n              {{else}}\n                {{if item.glAccount item.glAccount.name '–'}}\n              {{/if}}\n            </td>\n          {{/if}}\n  \n          <td class='text-right'>\n            {{! Item Quantity }}\n            {{#if this.isEditing}}\n              <Input\n                class={{concat\n                  'text-input text-right data-table__cell-cover'\n                  (unless (or item.quantity (eq item.quantity 0)) ' invalid')\n                }}\n                @type='number'\n                @value={{item.quantity}}\n                placeholder='0'\n                data-test-item-quantity-input={{index}}\n              />\n            {{else}}\n              {{item.quantity}}\n            {{/if}}\n          </td>\n  \n          <td class='text-right'>\n            {{! Item Unit Price }}\n            {{#if this.isEditing}}\n              <FormattedInput\n                @class={{concat\n                  'text-input text-right data-table__cell-cover invoice-item-table--new-line-item-action'\n                  (unless (or item.unitPrice (eq item.unitPrice 0)) ' invalid')\n                }}\n                @format='currency'\n                @formatterOptions={{hash dashZero=false}}\n                @number={{item.unitPrice}}\n                @placeholder='$0.00'\n                data-test-item-unit-price-input={{index}}\n                @update={{fn (mut item.unitPrice)}}\n              />\n            {{else}}\n              {{! an item priced at nil is a real value, not a blank }}\n              {{number-format item.unitPrice style='currency' dashZero=false}}\n            {{/if}}\n          </td>\n  \n          <td class='text-right'>\n            {{! Item total price }}\n            {{number-format item.totalPrice style='currency' dashZero=false}}\n          </td>\n  \n          {{#if (and (not this.isEditing) this.invoice.items.length)}}\n            {{! Item selection checkbox }}\n            <td>\n              <Input @type='checkbox' @checked={{get this.isSelected index}} />\n            </td>\n          {{/if}}\n  \n          {{#if (and this.isEditing (gt this.invoice.activeItems.length 1))}}\n            <td class='text-center'>\n              <button\n                class='text-button text-button--delete'\n                onClick={{action this.deleteItem item}}\n                data-test-delete-item-button='index'\n                type='button'\n              >\n                <FaIcon @icon='trash' />\n              </button>\n            </td>\n          {{/if}}\n        </tr>\n      {{/unless}}\n    {{else}}\n      <tr><td colspan='6'>{{t\n            'components.invoice-item-table-pm.No items to show'\n          }}</td></tr>\n    {{/each}}\n  </tbody>\n  */\n  {\n    \"id\": \"WT38Sb2b\",\n    \"block\": \"[[[10,\\\"thead\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"      \\\"],[10,\\\"th\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[12],[1,[28,[35,4],[\\\"shared.report-builder.Product code\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Description\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Item\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Allocated\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[28,[37,6],[[30,0,[\\\"invoice\\\",\\\"isNew\\\"]]],null]],null],[[[1,\\\"      \\\"],[10,\\\"th\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[12],[1,[28,[35,4],[\\\"common.Xero account\\\"],null]],[1,\\\"         \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,5],[[30,0,[\\\"quickbooksIntegration\\\",\\\"ready\\\"]],[28,[37,6],[[30,0,[\\\"invoice\\\",\\\"isNew\\\"]]],null]],null],[[[1,\\\"      \\\"],[10,\\\"th\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"components.invoice-item-table-pm.QuickBooks account\\\"],null]],[1,\\\"\\\\n                 \\\"],[13],[1,\\\"\\\\n    \\\"]],[]],null]],[]]],[1,\\\"    \\\"],[10,\\\"th\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[12],[1,[28,[35,4],[\\\"common.Quantity\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[12],[1,[28,[35,4],[\\\"common.Unit cost\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[12],[1,[28,[35,4],[\\\"common.Total cost\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[28,[37,6],[[30,0,[\\\"isEditing\\\"]]],null],[30,0,[\\\"invoice\\\",\\\"items\\\",\\\"length\\\"]]],null],[[[1,\\\"      \\\"],[10,\\\"th\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[15,\\\"onclick\\\",[28,[37,7],[[30,0],[30,0,[\\\"toggleSelectAll\\\"]]],null]],[14,\\\"data-test-select-all-trigger\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"allSelected\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"isEditing\\\"]],[28,[37,9],[[30,0,[\\\"invoice\\\",\\\"activeItems\\\",\\\"length\\\"]],1],null]],null],[[[1,\\\"      \\\"],[10,\\\"th\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[12],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[30,0,[\\\"invoice\\\",\\\"sortedItems\\\"]]],null]],null],null,[[[41,[51,[30,1,[\\\"isDeleted\\\"]]],[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[15,0,[52,[51,[30,0,[\\\"isEditing\\\"]]],\\\"invoice-editor__table-row--hover\\\"]],[15,\\\"onclick\\\",[52,[51,[30,0,[\\\"isEditing\\\"]]],[28,[37,7],[[30,0],[30,0,[\\\"toggleSelectItem\\\"]],[30,1]],null]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[14,0,\\\"invoice-editor__table-small-cell\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[16,0,[28,[37,15],[\\\"text-input data-table__cell-cover invoice-item-table--autofocus\\\",[52,[51,[28,[37,16],[[30,1,[\\\"productCode\\\"]],[30,1,[\\\"description\\\"]]],null]],\\\" invalid\\\"]],null]],[16,\\\"title\\\",[30,1,[\\\"productCode\\\"]]],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.report-builder.Product code\\\"],null]],[16,\\\"data-test-item-product-code-input\\\",[30,2]],[24,\\\"autofocus\\\",\\\"true\\\"]],[[\\\"@value\\\"],[[30,1,[\\\"productCode\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,17],[[16,\\\"data-test-item-name-input\\\",[30,2]]],[[\\\"@class\\\",\\\"@key\\\",\\\"@value\\\",\\\"@options\\\",\\\"@onSet\\\",\\\"@placeholder\\\"],[[52,[51,[28,[37,16],[[30,1,[\\\"description\\\"]],[30,1,[\\\"productCode\\\"]]],null]],\\\"invalid\\\"],\\\"description\\\",[30,1,[\\\"description\\\"]],[30,0,[\\\"names\\\"]],[28,[37,18],[[28,[37,19],[[30,1,[\\\"description\\\"]]],null]],null],[28,[37,4],[\\\"shared.task.Product description\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[14,0,\\\"invoice-editor__table-big-cell\\\"],[15,\\\"title\\\",[28,[37,15],[[52,[30,0,[\\\"productCode\\\"]],[28,[37,15],[[30,1,[\\\"productCode\\\"]],\\\" — \\\"],null]],[30,1,[\\\"description\\\"]]],null]],[12],[1,\\\"\\\\n            \\\"],[1,[52,[30,1,[\\\"productCode\\\"]],[28,[37,15],[[30,1,[\\\"productCode\\\"]],\\\" — \\\"],null]]],[1,[30,1,[\\\"description\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"td\\\"],[14,0,\\\"invoice-editor__table-big-cell\\\"],[15,\\\"title\\\",[29,[[30,1,[\\\"assignment\\\"]]]]],[12],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"assignment\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[28,[37,6],[[30,0,[\\\"invoice\\\",\\\"isNew\\\"]]],null]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"              \\\"],[8,[39,20],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@disabled\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\",\\\"@loadingMessage\\\",\\\"@noMatchesMessage\\\",\\\"@afterOptionsComponent\\\"],[[30,0,[\\\"xeroAccounts\\\"]],[30,1,[\\\"glAccount\\\"]],[28,[37,7],[[30,0],[30,0,[\\\"setItemXeroAccount\\\"]],[30,1]],null],[30,0,[\\\"xeroFetching\\\"]],true,\\\"name\\\",[28,[37,4],[\\\"shared.bill.000 - Account\\\"],null],true,[28,[37,4],[\\\"shared.bill.Loading Xero accounts\\\"],null],[28,[37,4],[\\\"components.invoice-item-table-pm.No Xero accounts found\\\"],null],[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[30,0,[\\\"updateXeroAccounts\\\"]],\\\"sync\\\",[28,[37,4],[\\\"shared.bill.Click to update Xero accounts\\\"],null],[30,0,[\\\"xeroFetching\\\"]],[28,[37,4],[\\\"shared.bill.Loading Xero accounts\\\"],null]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[30,3,[\\\"code\\\"]]],[1,\\\"\\\\n                -\\\\n                \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,1,[\\\"glAccount\\\"]],[28,[37,15],[[30,1,[\\\"glAccount\\\",\\\"code\\\"]],\\\" - \\\",[30,1,[\\\"glAccount\\\",\\\"name\\\"]]],null],\\\"–\\\"]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,5],[[30,0,[\\\"quickbooksIntegration\\\",\\\"ready\\\"]],[28,[37,6],[[30,0,[\\\"invoice\\\",\\\"isNew\\\"]]],null]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"              \\\"],[8,[39,20],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@disabled\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\",\\\"@loadingMessage\\\",\\\"@noMatchesMessage\\\",\\\"@afterOptionsComponent\\\"],[[30,0,[\\\"quickbooksAccounts\\\"]],[30,1,[\\\"glAccount\\\"]],[28,[37,7],[[30,0],[30,0,[\\\"setItemQuickbooksAccount\\\"]],[30,1]],null],[30,0,[\\\"quickbooksFetching\\\"]],true,\\\"name\\\",[28,[37,4],[\\\"shared.bill.000 - Account\\\"],null],true,\\\"Loading QuickBooks accounts\\\",\\\"No QuickBooks accounts found\\\",[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[30,0,[\\\"updateQuickbooksAccounts\\\"]],\\\"sync\\\",\\\"Click to update QuickBooks accounts\\\",[30,0,[\\\"quickbooksFetching\\\"]],\\\"Loading QuickBooks accounts\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"]],[4]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,1,[\\\"glAccount\\\"]],[30,1,[\\\"glAccount\\\",\\\"name\\\"]],\\\"–\\\"]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]],null]],[]]],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"            \\\"],[8,[39,8],[[16,0,[28,[37,15],[\\\"text-input text-right data-table__cell-cover\\\",[52,[51,[28,[37,16],[[30,1,[\\\"quantity\\\"]],[28,[37,22],[[30,1,[\\\"quantity\\\"]],0],null]],null]],\\\" invalid\\\"]],null]],[24,\\\"placeholder\\\",\\\"0\\\"],[16,\\\"data-test-item-quantity-input\\\",[30,2]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"number\\\",[30,1,[\\\"quantity\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[30,1,[\\\"quantity\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"            \\\"],[8,[39,23],[[16,\\\"data-test-item-unit-price-input\\\",[30,2]]],[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@placeholder\\\",\\\"@update\\\"],[[28,[37,15],[\\\"text-input text-right data-table__cell-cover invoice-item-table--new-line-item-action\\\",[52,[51,[28,[37,16],[[30,1,[\\\"unitPrice\\\"]],[28,[37,22],[[30,1,[\\\"unitPrice\\\"]],0],null]],null]],\\\" invalid\\\"]],null],\\\"currency\\\",[28,[37,24],null,[[\\\"dashZero\\\"],[false]]],[30,1,[\\\"unitPrice\\\"]],\\\"$0.00\\\",[28,[37,18],[[28,[37,19],[[30,1,[\\\"unitPrice\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,25],[[30,1,[\\\"unitPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[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\\\",false]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,5],[[28,[37,6],[[30,0,[\\\"isEditing\\\"]]],null],[30,0,[\\\"invoice\\\",\\\"items\\\",\\\"length\\\"]]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,26],[[30,0,[\\\"isSelected\\\"]],[30,2]],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"isEditing\\\"]],[28,[37,9],[[30,0,[\\\"invoice\\\",\\\"activeItems\\\",\\\"length\\\"]],1],null]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"button\\\"],[14,0,\\\"text-button text-button--delete\\\"],[15,\\\"onClick\\\",[28,[37,7],[[30,0],[30,0,[\\\"deleteItem\\\"]],[30,1]],null]],[14,\\\"data-test-delete-item-button\\\",\\\"index\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,28],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1,2]],[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"6\\\"],[12],[1,[28,[35,4],[\\\"components.invoice-item-table-pm.No items to show\\\"],null]],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"item\\\",\\\"index\\\",\\\"option\\\",\\\"option\\\"],false,[\\\"thead\\\",\\\"tr\\\",\\\"if\\\",\\\"th\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"action\\\",\\\"input\\\",\\\"gt\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"unless\\\",\\\"td\\\",\\\"concat\\\",\\\"or\\\",\\\"combo-box\\\",\\\"fn\\\",\\\"mut\\\",\\\"power-select\\\",\\\"component\\\",\\\"eq\\\",\\\"formatted-input\\\",\\\"hash\\\",\\\"number-format\\\",\\\"get\\\",\\\"button\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/invoice-item-table-pm.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'table',\n    classNames: ['invoice-editor__table'],\n    keyDown(event) {\n      const {\n        key,\n        target\n      } = event;\n      if ((0, _jquery.default)(target).is('.invoice-item-table--new-line-item-action:last')) {\n        switch (key) {\n          case 'Tab':\n            this.addItem();\n            (0, _runloop.next)(() => (0, _jquery.default)('.invoice-item-table--autofocus:last').focus());\n            break;\n          default:\n            break;\n        }\n      }\n    }\n  }));\n});","define(\"portal/components/invoice-type-response-handler\", [\"exports\", \"@ember/component\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @onClose={{this.onCancel}}\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @containerClass='block-module'\n  >\n    {{#if @responses.length}}\n      <p class='p'>{{t 'shared.bill.Some bills failed to send'}}</p>\n      <div class='invoice-type-response-handler__table-container'>\n        <table class='invoice-type-response-handler__table'>\n          <thead>\n            <tr>\n              <th>{{t 'shared.bill.Reason for failure'}}</th>\n            </tr>\n          </thead>\n          <tbody>\n            {{#each @responses as |error|}}\n              <tr data-test-bill-type-resource-handler-error>\n                <td>{{error}}</td>\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      </div>\n    {{/if}}\n  \n    {{#if this.attachmentErrors.length}}\n      <p class='p'>{{t 'shared.bill.Some attachments failed to send to Xero'}}</p>\n      <div class='invoice-type-response-handler__table-container'>\n        <table class='invoice-type-response-handler__table'>\n          <thead>\n            <tr>\n              <th>{{t 'shared.bill.Reason for failure'}}</th>\n            </tr>\n          </thead>\n          <tbody>\n            {{#each this.attachmentErrors as |error|}}\n              <tr data-test-bill-type-resource-handler-attachment-error>\n                <td>{{error.rejectedReason}}</td>\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      </div>\n    {{/if}}\n    <div class='block-module__footer'>\n      <button\n        class='button float-end'\n        data-test-bill-type-resource-handler-okay-button\n        type='button'\n        {{on 'click' this.onCancel}}\n      >{{t 'common.Okay'}}</button>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"biOh3pjl\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[30,0,[\\\"onCancel\\\"]],true,\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"length\\\"]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Some bills failed to send\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"invoice-type-response-handler__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"invoice-type-response-handler__table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Reason for failure\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,1]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-bill-type-resource-handler-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,2]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"attachmentErrors\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Some attachments failed to send to Xero\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"invoice-type-response-handler__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"invoice-type-response-handler__table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"shared.bill.Reason for failure\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"attachmentErrors\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-bill-type-resource-handler-attachment-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"rejectedReason\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,0],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button float-end\\\"],[24,\\\"data-test-bill-type-resource-handler-okay-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,0,[\\\"onCancel\\\"]]],null],[12],[1,[28,[35,3],[\\\"common.Okay\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@responses\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"modal-dialog\\\",\\\"if\\\",\\\"p\\\",\\\"t\\\",\\\"div\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"button\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/invoice-type-response-handler.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"responses\", _descriptor, this);\n    }\n    get attachmentErrors() {\n      const responses = this.responses.reduce((attachments, response) => [...attachments, ...(response.attachments || [])], []);\n      const errors = responses.filter(response => response.rejected);\n      return errors;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"responses\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _class));\n});","define(\"portal/components/invoices-uploader\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"string-similarity\", \"csv-parse/browser/esm\", \"portal/utils/parse-currency-string\", \"portal/utils/search-filter\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _tracking, _service, _object, _stringSimilarity, _esm, _parseCurrencyString, _searchFilter, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _class2, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"string-similarity\",0,\"ember-concurrency\",0,\"csv-parse/browser/esm\",0,\"portal/utils/parse-currency-string\",0,\"portal/utils/search-filter\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @overlayClass='modal'\n    @translucentOverlay={{true}}\n    @onClose={{@onClose}}\n    @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n  >\n    <div class='modal-content' style='max-width: 95vw;'>\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t 'components.invoices-uploader.Import invoices'}}\n        </h5>\n      </div>\n  \n      <div class='modal-body overflow-auto'>\n        {{#if this.invoiceFile}}\n          <div class='w-25'>\n            <label class='mb-1'>\n              {{t 'common.Project'}}\n              <sup class='text-danger'>*</sup>\n            </label>\n            <SearchSelector\n              @onSelect={{this.setProject}}\n              @onLoad={{this.loadProjects}}\n              @noDataMessage={{t 'common.No projects'}}\n              @key='project'\n              @optionKeys={{array 'name'}}\n              @model={{this.projectChangeSet}}\n              @forceValidationVisible={{gt this.uploadInvoices.performCount 0}}\n            />\n          </div>\n          <p>\n            {{t 'shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument'}}\n          </p>\n          <div class='table-responsive'>\n            <table class='table table-sm table-bordered'>\n              <thead>\n                <tr>\n                  {{#each this.invoiceFile.columnTypes as |type index|}}\n                    <th class='text-center align-top'>\n                      <PtlInput\n                        style='min-width: 85px;'\n                        @type='select'\n                        @label={{number-to-char index}}\n                        {{! the key needs to be a string }}\n                        @key={{concat index}}\n                        @options={{this.invoiceFile.columnTypeOptions}}\n                        @model={{this.invoiceFile.columnTypeForm}}\n                        @selectNoBlankOption={{true}}\n                        @forceValidationVisible={{gt\n                          this.continue.performCount\n                          0\n                        }}\n                      />\n                    </th>\n                  {{/each}}\n                </tr>\n              </thead>\n              <tbody>\n                {{#each this.invoiceFile.sampleRows as |columns|}}\n                  <tr>\n                    {{#each columns as |column index|}}\n                      <td\n                        class='no-wrap text-truncate\n                          {{if\n                            (eq\n                              (get this.invoiceFile.columnTypeForm index)\n                              \"do-not-import\"\n                            )\n                            \"opacity-25\"\n                          }}'\n                        style='max-width: 200px;'\n                        title={{column}}\n                      >\n                        {{column}}\n                      </td>\n                    {{/each}}\n                  </tr>\n                {{/each}}\n              </tbody>\n            </table>\n          </div>\n  \n          <div class='d-flex justify-content-end p-2'>\n            {{#if this.uploadInvoices.isRunning}}\n              <button\n                type='button'\n                class='btn btn-primary ms-2'\n                disabled={{true}}\n              >\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.uploading'}}…\n              </button>\n            {{else}}\n              <button\n                class='btn btn-secondary'\n                type='button'\n                {{on 'click' this.onClear}}\n              >\n                {{t 'shared.uploader.Upload a different file'}}\n              </button>\n            {{/if}}\n          </div>\n        {{else}}\n          <DragAndDropContainer\n            @onUploadComplete={{this.onUpload}}\n            @isDragAndDropVisible={{true}}\n          >\n            <p class='text-center'>\n              {{t 'components.invoices-uploader.uploadInvoiceModalBody'}}\n            </p>\n            <a\n              class='btn btn-link align-self-center mb-3'\n              href='/assets/example-invoices-file-329566189a769091832b514177383e26.csv'\n              download='example-invoices-file-329566189a769091832b514177383e26.csv'\n            >\n              <FaIcon @icon='download' />&nbsp;&nbsp;\n              {{t 'shared.uploader.Download example file'}}\n            </a>\n          </DragAndDropContainer>\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.isLoading}}\n          {{on 'click' @onClose}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        {{#if this.invoiceFile}}\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on 'click' (fn (perform this.uploadInvoices))}}\n            disabled={{this.uploadInvoices.isRunning}}\n          >\n            {{#if this.uploadInvoices.isRunning}}\n              {{t 'components.invoices-uploader.Importing invoices'}}&hellip;\n            {{else}}\n              {{t 'components.invoices-uploader.Import invoices'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"oUEZ4DkH\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[30,1],\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-content\\\"],[14,5,\\\"max-width: 95vw;\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.invoices-uploader.Import invoices\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body overflow-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceFile\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"w-25\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n            \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,7],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setProject\\\"]],[30,0,[\\\"loadProjects\\\"]],[28,[37,3],[\\\"common.No projects\\\"],null],\\\"project\\\",[28,[37,8],[\\\"name\\\"],null],[30,0,[\\\"projectChangeSet\\\"]],[28,[37,9],[[30,0,[\\\"uploadInvoices\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"table-responsive\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm table-bordered\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"invoiceFile\\\",\\\"columnTypes\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center align-top\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,17],[[24,5,\\\"min-width: 85px;\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@selectNoBlankOption\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,18],[[30,3]],null],[28,[37,19],[[30,3]],null],[30,0,[\\\"invoiceFile\\\",\\\"columnTypeOptions\\\"]],[30,0,[\\\"invoiceFile\\\",\\\"columnTypeForm\\\"]],true,[28,[37,9],[[30,0,[\\\"continue\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"invoiceFile\\\",\\\"sampleRows\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,4]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"no-wrap text-truncate\\\\n                        \\\",[52,[28,[37,22],[[28,[37,23],[[30,0,[\\\"invoiceFile\\\",\\\"columnTypeForm\\\"]],[30,6]],null],\\\"do-not-import\\\"],null],\\\"opacity-25\\\"]]]],[14,5,\\\"max-width: 200px;\\\"],[15,\\\"title\\\",[30,5]],[12],[1,\\\"\\\\n                      \\\"],[1,[30,5]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex justify-content-end p-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"uploadInvoices\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.uploading\\\"],null]],[1,\\\"…\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,0,[\\\"onClear\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,3],[\\\"shared.uploader.Upload a different file\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,27],null,[[\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"onUpload\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"components.invoices-uploader.uploadInvoiceModalBody\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,3],[14,0,\\\"btn btn-link align-self-center mb-3\\\"],[14,6,\\\"/assets/example-invoices-file-329566189a769091832b514177383e26.csv\\\"],[14,\\\"download\\\",\\\"example-invoices-file-329566189a769091832b514177383e26.csv\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"  \\\\n            \\\"],[1,[28,[35,3],[\\\"shared.uploader.Download example file\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceFile\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"uploadInvoices\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,26],[\\\"click\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"uploadInvoices\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"uploadInvoices\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"components.invoices-uploader.Importing invoices\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"components.invoices-uploader.Import invoices\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onClose\\\",\\\"type\\\",\\\"index\\\",\\\"columns\\\",\\\"column\\\",\\\"index\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h5\\\",\\\"t\\\",\\\"if\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"gt\\\",\\\"p\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"ptl-input\\\",\\\"number-to-char\\\",\\\"concat\\\",\\\"tbody\\\",\\\"td\\\",\\\"eq\\\",\\\"get\\\",\\\"button\\\",\\\"span\\\",\\\"on\\\",\\\"drag-and-drop-container\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"fn\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/components/invoices-uploader.hbs\",\n    \"isStrictMode\": false\n  });\n  const getColumnsFrom2dArray = (arr, col) => {\n    return arr.map(r => r[col]);\n  };\n\n  // why this library kept this API when making a browser build is beyond me\n  const parseCsvFromBase64 = base64 => {\n    const records = [];\n    const parser = (0, _esm.parse)({\n      bom: true,\n      skip_empty_lines: true,\n      trim: true\n    });\n    parser.on('readable', () => {\n      let record;\n      while ((record = parser.read()) !== null) {\n        records.push(record);\n      }\n    });\n    const csvText = atob(base64);\n    parser.write(csvText);\n    parser.end();\n    return records;\n  };\n  class ParserError extends Error {}\n  let InvoiceFile = (_class = class InvoiceFile {\n    get sampleRows() {\n      if (!this.csv) return null;\n      return this.csv.slice(0, 10);\n    }\n    get columnsLength() {\n      return this.csv[0].length;\n    }\n    constructor(csv, intl) {\n      _defineProperty(this, \"columnTypeOptions\", void 0);\n      _initializerDefineProperty(this, \"columnTypes\", _descriptor, this);\n      _initializerDefineProperty(this, \"columnTypeForm\", _descriptor2, this);\n      _initializerDefineProperty(this, \"csv\", _descriptor3, this);\n      this.columnTypeOptions = [{\n        label: '—',\n        value: 'do-not-import',\n        matches: [],\n        type: undefined\n      }, {\n        label: intl.t('common.Invoice number'),\n        value: 'invoiceNumber',\n        matches: ['invoice number', 'invoice no'],\n        type: 'string'\n      }, {\n        label: intl.t('common.To'),\n        value: 'to',\n        matches: ['to', 'recipient'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Issue date'),\n        value: 'issueDate',\n        matches: ['issue date', 'issue', 'issued', 'date'],\n        type: 'date'\n      }, {\n        label: intl.t('common.Due date'),\n        value: 'dueDate',\n        matches: ['due date', 'due'],\n        type: 'date'\n      }, {\n        label: intl.t('common.Description'),\n        value: 'description',\n        matches: ['description', 'item name', 'line'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Unit price'),\n        value: 'unitPrice',\n        matches: ['unit price', 'price'],\n        type: 'currency'\n      }, {\n        label: intl.t('common.Quantity'),\n        value: 'quantity',\n        matches: ['quantity', 'qty'],\n        type: 'number'\n      }, {\n        label: intl.t('common.Tax rate'),\n        value: 'tax',\n        matches: ['tax', 'gst', 'tax rate'],\n        type: 'currency'\n      }];\n      this.csv = csv;\n      this.columnTypes = this._findLikelyColumnTypes();\n      this.columnTypeForm = this._generateColumnTypeForm(intl);\n    }\n    _generateColumnTypeForm(intl) {\n      const validator = ({\n        key: _key,\n        newValue,\n        oldValue,\n        changes,\n        content\n      }) => {\n        const current = {\n          ...content,\n          ...changes\n        };\n        const values = Object.values(current);\n        const value = newValue || oldValue;\n        // you need at least one of each of these to progress\n        const requiredValues = ['invoiceNumber'];\n        if (\n        // if you have chosen not to import this column\n        value === 'do-not-import' &&\n        // and there are still required values left\n        requiredValues.some(rv => !values.includes(rv))) return intl.t('components.invoices-uploader.Invoice number is required');\n\n        // no import is always valid\n        if (value === 'do-not-import') return true;\n\n        // you can't have duplicate selections\n        if (values.filter(v => v === value).length > 1) return intl.t('validation.You can only select this column once');\n        return true;\n      };\n      const data = {\n        save: () => {\n          for (let i = 0; i < this.columnsLength; i++) {\n            this.columnTypes[i] = this.columnTypeForm.get(String(i));\n          }\n        }\n      };\n      const validatorMap = {};\n      for (let i = 0; i < this.columnsLength; i++) {\n        data[i] = this.columnTypes[i];\n        validatorMap[i] = validator;\n      }\n      return (0, _emberChangeset.Changeset)(data, validator, validatorMap);\n    }\n    _findLikelyColumnTypes() {\n      // TODO if there isn't a header row, we could try and assume from the data type of the columns\n      const likenessThreshold = 0.8;\n      // for each column iterate over each column type to find the closest matching column type\n      const results = [];\n      for (let i = 0; i < this.columnsLength; i++) {\n        const winners = this.columnTypeOptions.map(option => {\n          // get the entire column from the sample rows\n          const columns = getColumnsFrom2dArray(this.sampleRows, i).map(s => s.toLowerCase().trim());\n          // test the likeness of the columns against the matching strings\n          const scores = option.matches.map(m => (0, _stringSimilarity.findBestMatch)(m, columns));\n          // check if the best match is better than the threshold\n          const winner = scores.find(score => score.bestMatch.rating >= likenessThreshold);\n          return {\n            option,\n            rating: winner?.bestMatch?.rating || 0\n          };\n        });\n\n        // find best matching column type\n        const bestMatch = winners.sort((a, b) => b.rating - a.rating).shift();\n\n        // we now have the closest matching column type for this column\n        results.push(bestMatch.option.value);\n\n        // in the future we could also try evaluate the columns against the data type\n      }\n      return results;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"columnTypes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"columnTypeForm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"csv\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor7, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor8, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor9, this);\n      _defineProperty(this, \"projects\", []);\n      _defineProperty(this, \"projectsPage\", void 0);\n      _defineProperty(this, \"projectsSearchTerm\", void 0);\n      _initializerDefineProperty(this, \"invoiceFileItems\", _descriptor0, this);\n      _initializerDefineProperty(this, \"invoiceFile\", _descriptor1, this);\n      _initializerDefineProperty(this, \"projectChangeSet\", _descriptor10, this);\n      _defineProperty(this, \"projectValidator\", ({\n        key,\n        newValue\n      }) => {\n        if (key === 'project') {\n          return Boolean(newValue) || this.intl.t('validation.Please provide a project');\n        }\n      });\n      _defineProperty(this, \"parseCsvFromAttachment\", attachment => {\n        // TODO windows does some funky shit with MIME types\n\n        if (attachment.fileType !== 'text/csv') throw new ParserError(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n        const csv = parseCsvFromBase64(attachment.data);\n        return csv;\n      });\n      _defineProperty(this, \"loadProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.projectsSearchTerm) {\n              this.projectsPage = undefined;\n              this.projects = [];\n              this.projectsSearchTerm = searchTerm;\n            }\n            const projectFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'status',\n                op: 'IN',\n                value: ['OPEN', 'HELD']\n              }]\n            };\n            if (searchTerm?.length) projectFilter.and.push((0, _searchFilter.default)(['name'], searchTerm));\n            const nextPageNumber = (this.projectsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('project', {\n              filter: projectFilter,\n              sort: 'name',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.projectsPage = nextPage.meta;\n            this.projects = [...this.projects, ...nextPage.toArray()];\n            return this.projects;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.invoices-uploader.somethingWentWrongLoadingMoreProjects'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadProjects\", null));\n      _defineProperty(this, \"uploadInvoices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (_e, skipNoneDescriptionRows = false) {\n          this.invoiceFile.columnTypeForm.validate();\n\n          // this is not throwing error, so i have specify key\n          this.projectChangeSet.validate('project');\n          if (this.invoiceFile.columnTypeForm.isInvalid || this.projectChangeSet.isInvalid) {\n            this.notifications.warning(this.intl.t('shared.uploader.pleaseCompleteTheFormBeforeContinuing'));\n            return;\n          }\n          try {\n            yield this.invoiceFile.columnTypeForm.save();\n            const invoicesMap = new Map();\n            const noDescriptionIndexes = [];\n            this.invoiceFile.csv.forEach((columns, rowIndex) => {\n              // Skip the first row (headers)\n              if (rowIndex === 0) return;\n              const getColumn = label => {\n                const colIndex = this.invoiceFile.columnTypes.findIndex(colType => colType === label);\n                return columns[colIndex]?.trim() || null;\n              };\n              const description = getColumn('description');\n              if (skipNoneDescriptionRows && !description) return;\n              if (!description) noDescriptionIndexes.push(rowIndex + 1);\n              const invoiceNumber = getColumn('invoiceNumber');\n              const item = {\n                description,\n                unitPrice: (0, _parseCurrencyString.default)(getColumn('unitPrice')),\n                quantity: parseFloat(getColumn('quantity')) || 1,\n                tax: getColumn('tax')\n              };\n              if (!invoicesMap.has(invoiceNumber)) {\n                invoicesMap.set(invoiceNumber, {\n                  invoiceNumber,\n                  entity: this.sessionData.entity.id,\n                  status: 'DRAFT',\n                  from: getColumn('from'),\n                  to: getColumn('to'),\n                  // TODO this must parse and validate the date\n                  issueDate: getColumn('issueDate'),\n                  dueDate: getColumn('dueDate'),\n                  items: []\n                });\n              }\n              invoicesMap.get(invoiceNumber).items.push(item);\n            });\n            if (noDescriptionIndexes.length && !skipNoneDescriptionRows) {\n              this.invalidProductRowIndexes = `${noDescriptionIndexes.join(', ')}`;\n              return;\n            }\n            const invoices = Array.from(invoicesMap.values());\n            const nonUniqueInvoices = [];\n            const failedInvoices = [];\n            const contactNames = [...new Set(invoices.map(item => item.to).filter(Boolean))];\n            const contacts = yield this.store.query('contact', {\n              filter: {\n                and: [{\n                  field: 'entity',\n                  op: 'EQ',\n                  value: this.sessionData.entity.id\n                }, {\n                  field: 'name',\n                  op: 'IN',\n                  value: contactNames\n                }]\n              }\n            }).then(r => r.toArray());\n            yield Promise.all(invoices.map(async invoice => {\n              try {\n                let toContact = typeof invoice.to === 'string' ? contacts.find(c => c.name.toLowerCase() === invoice.to.toLowerCase()) : null;\n                if (!toContact && invoice.to) {\n                  toContact = this.store.createRecord('contact', {\n                    name: invoice.to,\n                    entity: this.sessionData.entity\n                  });\n                }\n                const savedInvoice = await this.store.createRecord('invoice', {\n                  entity: this.sessionData.entity,\n                  invoiceNumber: invoice.invoiceNumber,\n                  status: invoice.status,\n                  issueDate: invoice.issueDate,\n                  dueDate: invoice.dueDate,\n                  toContact\n                }).save();\n                const allocations = [];\n                allocations.push({\n                  type: 'project',\n                  id: this.projectChangeSet.get('project').id,\n                  allocation: 'all',\n                  checked: true,\n                  indeterminate: false\n                });\n                await Promise.all(invoice.items.map(async (item, index) => {\n                  await this.store.createRecord('invoice-item', {\n                    description: item.description,\n                    unitPrice: item.unitPrice,\n                    quantity: item.quantity,\n                    entity: this.sessionData.entity,\n                    taxRate: item.tax || this.sessionData.entity.gst,\n                    sortIndex: index,\n                    invoice: savedInvoice\n                  }).save({\n                    adapterOptions: {\n                      meta: {\n                        allocations\n                      }\n                    }\n                  });\n                }));\n              } catch (error) {\n                failedInvoices.push({\n                  invoice,\n                  error\n                });\n              }\n            }));\n            yield this.args.onUploadInvoices();\n            const total = invoices.length;\n            const failed = nonUniqueInvoices.length + failedInvoices.length;\n            const success = total - failed;\n            this.notifications.success({\n              message: `Upload summary: ${success} succeeded, ${failed} failed`,\n              clearDuration: 5000\n            });\n            this.args.onClose();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.invoices-uploader.somethingWentWrongWhileSavingInvoices'),\n              error\n            });\n          }\n        }\n      }), null, \"uploadInvoices\", null));\n    }\n    setProject(value) {\n      this.projectChangeSet.set('project', value);\n    }\n    onClear() {\n      this.invoiceFile = null;\n      this.invoiceFileItems = null;\n    }\n    onUpload(e) {\n      try {\n        if (!e.attachments.length) {\n          this.notifications.warning(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n          return;\n        }\n        if (e.attachments.length > 1) this.notifications.warning(this.intl.t('shared.uploader.Please upload one file at a time'));\n        const attachment = e.attachments[0];\n        const csv = this.parseCsvFromAttachment(attachment);\n        this.invoiceFile = new InvoiceFile(csv, this.intl);\n      } catch (error) {\n        if (error instanceof ParserError) {\n          this.notifications.warning(error.message);\n          return;\n        }\n        this.notifications.error({\n          message: this.intl.t('shared.uploader.Something went wrong uploading the file'),\n          error\n        });\n      }\n    }\n  }, _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceFileItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceFile\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"projectChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _emberChangeset.Changeset)({\n        project: null\n      }, this.projectValidator.bind(this));\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setProject\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setProject\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClear\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClear\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUpload\"), _class2.prototype), _class2));\n});","define(\"portal/components/ips-uploader\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @onClose={{@onClose}}\n    @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n    @overlayClass='modal'\n    @translucentOverlay={{true}}\n  >\n    <div class='modal-header'>\n      <h3 class='modal-title'>\n        {{t 'common.Upload files'}}\n      </h3>\n    </div>\n  \n    <div class='modal-body'>\n      <DragAndDropContainer\n        @onUploadComplete={{this.upload}}\n        @isDragAndDropVisible={{true}}\n        data-test-ips-dropzone\n      />\n  \n      <div class='form-text text-muted mt-2'>\n        {{t 'entity.builda-price.operations.incoming.bills.ipsProcessingInfo'}}\n      </div>\n    </div>\n  \n    <div class='modal-footer text-right'>\n      <button type='button' class='btn btn-secondary' {{on 'click' @onClose}}>\n        {{t 'common.Cancel'}}\n      </button>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"gbQdhX32\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[30,1],\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"common.Upload files\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,\\\"data-test-ips-dropzone\\\",\\\"\\\"]],[[\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"upload\\\"]],true]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"form-text text-muted mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"entity.builda-price.operations.incoming.bills.ipsProcessingInfo\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onClose\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"drag-and-drop-container\\\",\\\"button\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/ips-uploader.hbs\",\n    \"isStrictMode\": false\n  });\n  let IpsUploader = _exports.default = (_class = class IpsUploader extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"ips\", _descriptor, this);\n    }\n    async upload(uploadResult) {\n      if (await this.ips.uploadPdf.perform(uploadResult)) this.args.onClose?.();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"upload\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"upload\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, IpsUploader);\n});","define(\"portal/components/ips-usage\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.alertOnly}}\n    {{#if this.showAlert}}\n      <IpsUsage::Alert @onDismiss={{this.dismissAlert}} ...attributes>\n        <:message>\n          {{#if this.hasActiveTerm}}\n            {{#if this.isBlocked}}\n              {{t 'components.ips-usage.atLimitTitle'}}\n            {{else}}\n              {{t 'components.ips-usage.nearLimitTitle' remaining=this.remaining}}\n            {{/if}}\n          {{else}}\n            {{t 'components.ips-usage.cannotImportRightNow'}}\n          {{/if}}\n        </:message>\n  \n        <:action>\n          <IpsUsage::Upgrade\n            @buttonClass='btn btn-outline-dark btn-sm'\n            @canUpgrade={{this.canUpgrade}}\n            @showAdminPrompt={{this.showAdminPrompt}}\n            @upgrade={{this.upgrade}}\n          />\n        </:action>\n      </IpsUsage::Alert>\n    {{/if}}\n  {{else if this.ips.ready}}\n    {{#if this.hasActiveTerm}}\n      <div class='d-flex flex-column' ...attributes>\n        <div class='small mb-1'>{{this.caption}}</div>\n  \n        {{#if this.showMeter}}\n          <UsageBar @value={{this.used}} @notches={{this.notches}} />\n        {{/if}}\n  \n        {{#unless this.isMetered}}\n          <p class='small text-muted mt-2 mb-0'>\n            {{t 'components.ips-usage.includedFreeExplainer' limit=this.limit}}\n          </p>\n        {{/unless}}\n  \n        <IpsUsage::Upgrade\n          class='mt-3 align-self-end'\n          @canUpgrade={{this.canUpgrade}}\n          @showAdminPrompt={{this.showAdminPrompt}}\n          @upgrade={{this.upgrade}}\n        />\n      </div>\n    {{else}}\n      <IpsUsage::Alert @onDismiss={{this.dismissAlert}} ...attributes>\n        <:message>{{t 'components.ips-usage.cannotImportRightNow'}}</:message>\n      </IpsUsage::Alert>\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"DomcM4Bz\",\n    \"block\": \"[[[41,[30,0,[\\\"alertOnly\\\"]],[[[41,[30,0,[\\\"showAlert\\\"]],[[[1,\\\"    \\\"],[8,[39,1],[[17,1]],[[\\\"@onDismiss\\\"],[[30,0,[\\\"dismissAlert\\\"]]]],[[\\\"message\\\",\\\"action\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasActiveTerm\\\"]],[[[41,[30,0,[\\\"isBlocked\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"components.ips-usage.atLimitTitle\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"components.ips-usage.nearLimitTitle\\\"],[[\\\"remaining\\\"],[[30,0,[\\\"remaining\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"          \\\"],[1,[28,[35,3],[\\\"components.ips-usage.cannotImportRightNow\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"]],[]],[[[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@buttonClass\\\",\\\"@canUpgrade\\\",\\\"@showAdminPrompt\\\",\\\"@upgrade\\\"],[\\\"btn btn-outline-dark btn-sm\\\",[30,0,[\\\"canUpgrade\\\"]],[30,0,[\\\"showAdminPrompt\\\"]],[30,0,[\\\"upgrade\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[41,[30,0,[\\\"hasActiveTerm\\\"]],[[[1,\\\"    \\\"],[11,0],[24,0,\\\"d-flex flex-column\\\"],[17,1],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"small mb-1\\\"],[12],[1,[30,0,[\\\"caption\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showMeter\\\"]],[[[1,\\\"        \\\"],[8,[39,7],null,[[\\\"@value\\\",\\\"@notches\\\"],[[30,0,[\\\"used\\\"]],[30,0,[\\\"notches\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isMetered\\\"]]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"small text-muted mt-2 mb-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"components.ips-usage.includedFreeExplainer\\\"],[[\\\"limit\\\"],[[30,0,[\\\"limit\\\"]]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,5],[[24,0,\\\"mt-3 align-self-end\\\"]],[[\\\"@canUpgrade\\\",\\\"@showAdminPrompt\\\",\\\"@upgrade\\\"],[[30,0,[\\\"canUpgrade\\\"]],[30,0,[\\\"showAdminPrompt\\\"]],[30,0,[\\\"upgrade\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,1],[[17,1]],[[\\\"@onDismiss\\\"],[[30,0,[\\\"dismissAlert\\\"]]]],[[\\\"message\\\"],[[[[1,[28,[35,3],[\\\"components.ips-usage.cannotImportRightNow\\\"],null]]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[]]]],[\\\"&attrs\\\"],false,[\\\"if\\\",\\\"ips-usage/alert\\\",\\\":message\\\",\\\"t\\\",\\\":action\\\",\\\"ips-usage/upgrade\\\",\\\"div\\\",\\\"usage-bar\\\",\\\"unless\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/ips-usage.hbs\",\n    \"isStrictMode\": false\n  });\n  const WARN_AT = 0.8;\n  let IpsUsage = _exports.default = (_class = class IpsUsage extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"chargebee\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"ips\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor5, this);\n      _defineProperty(this, \"upgrade\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.chargebee.openIpsAddonCheckout();\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('components.ips-usage.couldNotOpenIpsCheckout')\n            });\n          }\n        }\n      }), {\n        drop: true\n      }, \"upgrade\", null));\n    }\n    get usage() {\n      return this.ips.latestUsage;\n    }\n    get alertOnly() {\n      return Boolean(this.args.alertOnly);\n    }\n    get used() {\n      return this.usage?.used ?? 0;\n    }\n    get limit() {\n      return this.usage?.limit ?? 0;\n    }\n    get remaining() {\n      return Math.max(0, this.limit - this.used);\n    }\n    get notches() {\n      return this.limit > 0 ? [this.limit] : [];\n    }\n\n    // entitled to process beyond the free allowance, for a charge\n    get isMetered() {\n      return Boolean(this.usage?.isMetered);\n    }\n    get hasActiveTerm() {\n      return Boolean(this.usage?.hasActiveTerm);\n    }\n    get allowanceRemains() {\n      return this.used < this.limit;\n    }\n\n    // allowance gone and not metered, so the next upload is refused\n    get isBlocked() {\n      return !this.isMetered && !this.allowanceRemains;\n    }\n    get isNearLimit() {\n      if (this.isMetered || this.isBlocked) return false;\n      return this.used >= this.limit * WARN_AT;\n    }\n    get alertKind() {\n      if (!this.hasActiveTerm) return 'no-term';\n      if (this.isBlocked) return 'blocked';\n      if (this.isNearLimit) return 'near';\n      return null;\n    }\n    get showAlert() {\n      return this.ips.ready && Boolean(this.alertKind) && this.ips.dismissedAlert !== this.alertKind;\n    }\n    dismissAlert() {\n      this.ips.dismissedAlert = this.alertKind;\n    }\n\n    // the bar measures the free allowance; past it there is no ceiling to draw\n    get showMeter() {\n      if (this.alertOnly || this.limit <= 0) return false;\n      return !this.isMetered || this.allowanceRemains;\n    }\n    get caption() {\n      if (this.isMetered && !this.allowanceRemains) return this.intl.t('components.ips-usage.usageThisPeriod', {\n        used: this.used\n      });\n      return this.intl.t(this.isMetered ? 'components.ips-usage.usageOfIncluded' : 'components.ips-usage.usageOfAllowance', {\n        used: this.used,\n        limit: this.limit\n      });\n    }\n\n    // the addon is bought through Chargebee, so it is only on offer once that is ready\n    get addonAvailable() {\n      return this.chargebee.ready && Boolean(this.usage?.canUpgrade);\n    }\n    get canUpgrade() {\n      if (!this.addonAvailable) return false;\n      return this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin');\n    }\n\n    // the addon is there to be bought, just not by this user\n    get showAdminPrompt() {\n      return this.addonAvailable && !this.canUpgrade;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"chargebee\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"dismissAlert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"dismissAlert\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, IpsUsage);\n});","define(\"portal/components/ips-usage/alert\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='alert alert-warning d-flex align-items-center gap-3'\n    role='alert'\n    ...attributes\n  >\n    <FaIcon @icon='exclamation-triangle' @size='lg' class='flex-shrink-0' />\n  \n    <div class='flex-grow-1'>{{yield to='message'}}</div>\n  \n    {{yield to='action'}}\n  \n    <button\n      type='button'\n      class='btn-close flex-shrink-0'\n      aria-label={{t 'common.Close'}}\n      data-test-ips-alert-dismiss\n      {{on 'click' @onDismiss}}\n    ></button>\n  </div>\n  */\n  {\n    \"id\": \"USlW4yUR\",\n    \"block\": \"[[[11,0],[24,0,\\\"alert alert-warning d-flex align-items-center gap-3\\\"],[24,\\\"role\\\",\\\"alert\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"flex-shrink-0\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"exclamation-triangle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[18,3,null],[13],[1,\\\"\\\\n\\\\n  \\\"],[18,4,null],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn-close flex-shrink-0\\\"],[16,\\\"aria-label\\\",[28,[37,4],[\\\"common.Close\\\"],null]],[24,\\\"data-test-ips-alert-dismiss\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[30,2]],null],[12],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@onDismiss\\\",\\\"&message\\\",\\\"&action\\\"],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"yield\\\",\\\"button\\\",\\\"t\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/ips-usage/alert.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/ips-usage/upgrade\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @canUpgrade}}\n    <button\n      type='button'\n      class='{{or @buttonClass \"btn btn-primary\"}} text-nowrap'\n      disabled={{@upgrade.isRunning}}\n      data-test-ips-upgrade\n      ...attributes\n      {{on 'click' (perform @upgrade)}}\n    >\n      {{t 'components.ips-usage.Add IPS to your plan'}}\n    </button>\n  {{else if @showAdminPrompt}}\n    <span class='small text-nowrap' ...attributes>\n      {{t 'components.ips-usage.askAdminToAddAddon'}}\n    </span>\n  {{/if}}\n  */\n  {\n    \"id\": \"0pOFGRc1\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[11,\\\"button\\\"],[24,4,\\\"button\\\"],[16,0,[29,[[28,[37,2],[[30,2],\\\"btn btn-primary\\\"],null],\\\" text-nowrap\\\"]]],[16,\\\"disabled\\\",[30,3,[\\\"isRunning\\\"]]],[24,\\\"data-test-ips-upgrade\\\",\\\"\\\"],[17,4],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,3]],null]],null],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,5],[\\\"components.ips-usage.Add IPS to your plan\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,5],[[[1,\\\"  \\\"],[11,1],[24,0,\\\"small text-nowrap\\\"],[17,4],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,5],[\\\"components.ips-usage.askAdminToAddAddon\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[\\\"@canUpgrade\\\",\\\"@buttonClass\\\",\\\"@upgrade\\\",\\\"&attrs\\\",\\\"@showAdminPrompt\\\"],false,[\\\"if\\\",\\\"button\\\",\\\"or\\\",\\\"on\\\",\\\"perform\\\",\\\"t\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/ips-usage/upgrade.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/item-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/array\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _array, _object, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/array\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='d-flex align-items-center px-3 py-3 item-selector__path'\n    {{did-update this.onSelectedItemChange @selectedItem}}\n  >\n    <span\n      role='button'\n      class='text-primary text-decoration-underline'\n      {{on 'click' this.clearScope}}\n      data-test-item-selector-home-text\n    >\n      {{or @homeText (t 'common.Home')}}\n    </span>\n    {{#if this.scope.length}}\n      <FaIcon @icon='chevron-right' class='mx-2' />\n    {{/if}}\n    {{#each this.first2Scopes as |container|}}\n      <ItemSelector::BreadCrumb\n        @isSelected={{eq this.selectedScope container}}\n        @onClick={{fn this.goToContainer container}}\n        data-test-items-selector-bread-crumb\n      >\n        {{get container.item @nameKey}}\n      </ItemSelector::BreadCrumb>\n    {{/each}}\n  \n    {{#if (gt this.scope.length 4)}}\n      <div class='mx-2 fw-bolder' data-test-item-selector-ellipsis>&hellip;</div>\n      <FaIcon @icon='chevron-right' class='mx-2' />\n    {{/if}}\n  \n    {{#each this.last2Scopes as |container|}}\n      <ItemSelector::BreadCrumb\n        @isSelected={{eq this.selectedScope container}}\n        @onClick={{fn this.goToContainer container}}\n        data-test-items-selector-bread-crumb\n      >\n        {{get container.item @nameKey}}\n      </ItemSelector::BreadCrumb>\n    {{/each}}\n  </div>\n  \n  <div class='px-3 pb-3'>\n    <Input\n      class='form-control rounded'\n      placeholder={{or @searchPlaceholder (t 'common.Search for a item')}}\n      aria-label={{or @searchPlaceholder (t 'common.Search for a item')}}\n      {{! auto focus only worked on the initial render }}\n      {{did-insert this.focusInput}}\n      @value={{this.searchString}}\n      @type='text'\n      data-test-item-selector-search-input\n    />\n  </div>\n  \n  <ul class='list-group item-selector__list border-top rounded-0'>\n    {{#if this.searchString}}\n      {{#each this.searchContainers as |container|}}\n        <button\n          type='button'\n          class='list-group-item list-group-item-action border-0 border-bottom'\n          {{on 'click' (fn this.rebuildScopeFromContainer container)}}\n          data-test-item-selector-item\n        >\n          {{get container.item @nameKey}}\n        </button>\n      {{else}}\n        <div class='p-3 text-center' data-test-item-selector-no-item>\n          {{or @noSearchItemsMessage (t 'common.No items found')}}\n        </div>\n      {{/each}}\n    {{else}}\n      {{#each this.currentContainers as |container|}}\n        <button\n          type='button'\n          class='list-group-item list-group-item-action border-0 border-bottom'\n          {{on 'click' (fn this.goIntoContainer container)}}\n          data-test-item-selector-item\n        >\n          {{get container.item @nameKey}}\n        </button>\n      {{else}}\n        <div class='p-3 text-center' data-test-item-selector-no-item>\n          {{or @noItemsMessage (t 'common.No items')}}\n        </div>\n      {{/each}}\n    {{/if}}\n  </ul>\n  */\n  {\n    \"id\": \"qMVcEevc\",\n    \"block\": \"[[[11,0],[24,0,\\\"d-flex align-items-center px-3 py-3 item-selector__path\\\"],[4,[38,1],[[30,0,[\\\"onSelectedItemChange\\\"]],[30,1]],null],[12],[1,\\\"\\\\n  \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-primary text-decoration-underline\\\"],[24,\\\"data-test-item-selector-home-text\\\",\\\"\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"clearScope\\\"]]],null],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,4],[[30,2],[28,[37,5],[\\\"common.Home\\\"],null]],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"scope\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[39,7],[[24,0,\\\"mx-2\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"first2Scopes\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,10],[[24,\\\"data-test-items-selector-bread-crumb\\\",\\\"\\\"]],[[\\\"@isSelected\\\",\\\"@onClick\\\"],[[28,[37,11],[[30,0,[\\\"selectedScope\\\"]],[30,3]],null],[28,[37,12],[[30,0,[\\\"goToContainer\\\"]],[30,3]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[35,13],[[30,3,[\\\"item\\\"]],[30,4]],null]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[30,0,[\\\"scope\\\",\\\"length\\\"]],4],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mx-2 fw-bolder\\\"],[14,\\\"data-test-item-selector-ellipsis\\\",\\\"\\\"],[12],[1,\\\"…\\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,7],[[24,0,\\\"mx-2\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"last2Scopes\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,10],[[24,\\\"data-test-items-selector-bread-crumb\\\",\\\"\\\"]],[[\\\"@isSelected\\\",\\\"@onClick\\\"],[[28,[37,11],[[30,0,[\\\"selectedScope\\\"]],[30,5]],null],[28,[37,12],[[30,0,[\\\"goToContainer\\\"]],[30,5]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[35,13],[[30,5,[\\\"item\\\"]],[30,4]],null]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[5]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"px-3 pb-3\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,15],[[24,0,\\\"form-control rounded\\\"],[16,\\\"placeholder\\\",[28,[37,4],[[30,6],[28,[37,5],[\\\"common.Search for a item\\\"],null]],null]],[16,\\\"aria-label\\\",[28,[37,4],[[30,6],[28,[37,5],[\\\"common.Search for a item\\\"],null]],null]],[24,\\\"data-test-item-selector-search-input\\\",\\\"\\\"],[4,[38,16],[[30,0,[\\\"focusInput\\\"]]],null]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"searchString\\\"]],\\\"text\\\"]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group item-selector__list border-top rounded-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"searchString\\\"]],[[[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"searchContainers\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"list-group-item list-group-item-action border-0 border-bottom\\\"],[24,\\\"data-test-item-selector-item\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"rebuildScopeFromContainer\\\"]],[30,7]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,13],[[30,7,[\\\"item\\\"]],[30,4]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"p-3 text-center\\\"],[14,\\\"data-test-item-selector-no-item\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[[30,8],[28,[37,5],[\\\"common.No items found\\\"],null]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"currentContainers\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"list-group-item list-group-item-action border-0 border-bottom\\\"],[24,\\\"data-test-item-selector-item\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"goIntoContainer\\\"]],[30,9]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,13],[[30,9,[\\\"item\\\"]],[30,4]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"p-3 text-center\\\"],[14,\\\"data-test-item-selector-no-item\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[[30,10],[28,[37,5],[\\\"common.No items\\\"],null]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13]],[\\\"@selectedItem\\\",\\\"@homeText\\\",\\\"container\\\",\\\"@nameKey\\\",\\\"container\\\",\\\"@searchPlaceholder\\\",\\\"container\\\",\\\"@noSearchItemsMessage\\\",\\\"container\\\",\\\"@noItemsMessage\\\"],false,[\\\"div\\\",\\\"did-update\\\",\\\"span\\\",\\\"on\\\",\\\"or\\\",\\\"t\\\",\\\"if\\\",\\\"fa-icon\\\",\\\"each\\\",\\\"-track-array\\\",\\\"item-selector/bread-crumb\\\",\\\"eq\\\",\\\"fn\\\",\\\"get\\\",\\\"gt\\\",\\\"input\\\",\\\"did-insert\\\",\\\"ul\\\",\\\"button\\\"]]\",\n    \"moduleName\": \"portal/components/item-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"scope\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor2, this);\n      if (this.args.selectedItem) this.rebuildScopeFromContainer(this.args.selectedItem);\n    }\n    onSelectedItemChange() {\n      if (this.args.selectedItem === this.selectedScope) return;\n      if (this.args.selectedItem) this.rebuildScopeFromContainer(this.args.selectedItem);else this.clearScope();\n    }\n    get first2Scopes() {\n      return this.scope.slice(0, 2);\n    }\n    get last2Scopes() {\n      return this.scope.length >= 4 ? this.scope.slice(-2) : this.scope.slice(2);\n    }\n    get selectedScope() {\n      return this.scope[this.scope.length - 1];\n    }\n    get currentContainers() {\n      // if we have scope, return the highest scope\n      if (this.selectedScope) return this.selectedScope.children;\n      // return the top level\n      return this.args.items;\n    }\n    get searchContainers() {\n      if (!this.searchString) return null;\n      const matchedContainers = [];\n      const findContainer = containers => {\n        containers.forEach(container => {\n          const matchValue = container.item[this.args.nameKey];\n\n          // if our container matches the search term we have a match\n          if (matchValue.toLowerCase().includes(this.searchString.toLowerCase())) matchedContainers.push(container);\n\n          // if our container has children check the children\n          if (container.children) findContainer(container.children);\n        });\n      };\n      findContainer(this.currentContainers);\n      return matchedContainers;\n    }\n    clearScope() {\n      this.scope = (0, _array.A)([]);\n      (0, _runloop.next)(() => this.args.onChange(this.selectedScope));\n    }\n    rebuildScopeFromContainer(container) {\n      // rebuild the scope from the end node by looking at all the items\n      const scope = [];\n      const unshiftContainerToScope = container => {\n        scope.unshift(container);\n        (function checkAllItemsForParent(items) {\n          items.forEach(c => {\n            // we have found the parent of this container, unshift it to scope\n            if (c.children.includes(container)) unshiftContainerToScope(c);\n            // if we didn't find the parent check the children\n            else if (c.children.length) checkAllItemsForParent(c.children);\n          });\n        })(this.args.items);\n      };\n      unshiftContainerToScope(container);\n      this.scope = (0, _array.A)(scope);\n      (0, _runloop.next)(() => this.args.onChange(this.selectedScope));\n      this.searchString = '';\n    }\n    goIntoContainer(container) {\n      this.scope.pushObject(container);\n      (0, _runloop.next)(() => this.args.onChange(this.selectedScope));\n    }\n    goToContainer(container) {\n      const index = this.scope.findIndex(c => c === container);\n      this.scope = this.scope.slice(0, index + 1);\n      (0, _runloop.next)(() => this.args.onChange(this.selectedScope));\n    }\n    focusInput(element) {\n      element.focus();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"scope\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onSelectedItemChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectedItemChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearScope\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clearScope\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"rebuildScopeFromContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"rebuildScopeFromContainer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goIntoContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goIntoContainer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goToContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goToContainer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"focusInput\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"focusInput\"), _class.prototype), _class));\n});","define(\"portal/components/item-selector/bread-crumb\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @isSelected}}\n    <span class='text-primary fw-bolder' ...attributes>\n      {{yield}}\n    </span>\n  {{else}}\n    <span\n      role='button'\n      class='text-primary text-decoration-underline'\n      {{on 'click' @onClick}}\n      ...attributes\n    >\n      {{yield}}\n    </span>\n    <FaIcon @icon={{or @icon 'chevron-right'}} class='mx-2' />\n  {{/if}}\n  */\n  {\n    \"id\": \"WXRwT/W+\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[11,1],[24,0,\\\"text-primary fw-bolder\\\"],[17,2],[12],[1,\\\"\\\\n    \\\"],[18,5,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-primary text-decoration-underline\\\"],[17,2],[4,[38,3],[\\\"click\\\",[30,3]],null],[12],[1,\\\"\\\\n    \\\"],[18,5,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"mx-2\\\"]],[[\\\"@icon\\\"],[[28,[37,5],[[30,4],\\\"chevron-right\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@isSelected\\\",\\\"&attrs\\\",\\\"@onClick\\\",\\\"@icon\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"span\\\",\\\"yield\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"or\\\"]]\",\n    \"moduleName\": \"portal/components/item-selector/bread-crumb.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/itm-financial-table-section\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.splitLines}}\n    <tr class='data-table__total-row'>\n      <td colspan='2'>{{or this.title this.data.name}} $</td>\n      {{#each this.data.month as |unused index|}}\n        {{#if this.monthVisible}}\n          <td\n            class='text-right\n              {{if (lt this.data.month 0) \"financials-table__negative-value\"}}'\n          >\n            {{#if this.percentageVisible}}\n              <span\n                class='float-end financials-table__percentage'\n                aria-hidden='true'\n              >\n              </span>\n            {{/if}}\n            {{number-format\n              (object-at this.data.month index)\n              maximumFractionDigits=0\n              dashZero=true\n            }}\n          </td>\n          {{#if this.lastYearVisible}}\n            <td\n              class='text-right\n                {{if\n                  (lt this.data.monthPrev 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{#if this.percentageVisible}}\n                <span\n                  class='float-end financials-table__percentage'\n                  aria-hidden='true'\n                >\n                </span>\n              {{/if}}\n              {{number-format\n                (object-at this.data.monthPrev index)\n                maximumFractionDigits=0\n                dashZero=true\n              }}\n            </td>\n          {{/if}}\n        {{/if}}\n        {{#if this.ytdVisible}}\n          <td\n            class='text-right\n              {{if (lt this.data.ytd 0) \"financials-table__negative-value\"}}'\n          >\n            {{#if this.percentageVisible}}\n              <span\n                class='float-end financials-table__percentage'\n                aria-hidden='true'\n              ></span>\n            {{/if}}\n            {{number-format\n              (object-at this.data.ytd index)\n              maximumFractionDigits=0\n              dashZero=true\n            }}\n          </td>\n          {{#if this.lastYearVisible}}\n            <td\n              class='text-right\n                {{if\n                  (lt this.data.ytdPrev 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{#if this.percentageVisible}}\n                <span\n                  class='float-end financials-table__percentage'\n                  aria-hidden='true'\n                ></span>\n              {{/if}}\n              {{number-format\n                (object-at this.data.ytdPrev index)\n                maximumFractionDigits=0\n                dashZero=true\n              }}\n            </td>\n          {{/if}}\n        {{/if}}\n      {{/each}}\n    </tr>\n    <tr class='data-table__total-row'>\n      <td colspan='2'>{{or this.title this.data.name}} %</td>\n      {{#each this.data.month as |unused index|}}\n        {{#if this.monthVisible}}\n          <td\n            class='text-right\n              {{if\n                (lt this.data.MonthPercentSales 0)\n                \"financials-table__negative-value\"\n              }}'\n          >\n            {{#if this.percentageVisible}}\n              <span\n                class='float-end financials-table__percentage'\n                aria-hidden='true'\n              ></span>\n            {{/if}}\n            {{number-format\n              (object-at this.data.monthPercentSales index)\n              style='percent'\n              dashZero=true\n              maximumFractionDigits=2\n              minimumFractionDigits=2\n            }}\n          </td>\n          {{#if this.lastYearVisible}}\n            <td\n              class='text-right\n                {{if\n                  (lt this.data.MonthPrevPercentSales 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{#if this.percentageVisible}}\n                <span\n                  class='float-end financials-table__percentage'\n                  aria-hidden='true'\n                ></span>\n              {{/if}}\n              {{number-format\n                (object-at this.data.monthPrevPercentSales index)\n                style='percent'\n                dashZero=true\n                maximumFractionDigits=2\n                minimumFractionDigits=2\n              }}\n            </td>\n          {{/if}}\n        {{/if}}\n        {{#if this.ytdVisible}}\n          <td\n            class='text-right\n              {{if\n                (lt this.data.YtdPercentSales 0)\n                \"financials-table__negative-value\"\n              }}'\n          >\n            {{#if this.percentageVisible}}\n              <span\n                class='float-end financials-table__percentage'\n                aria-hidden='true'\n              ></span>\n            {{/if}}\n            {{number-format\n              (object-at this.data.ytdPercentSales index)\n              style='percent'\n              dashZero=true\n              maximumFractionDigits=2\n              minimumFractionDigits=2\n            }}\n          </td>\n          {{#if this.lastYearVisible}}\n            <td\n              class='text-right\n                {{if\n                  (lt this.data.YtdPrevPercentSales 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{#if this.percentageVisible}}\n                <span\n                  class='float-end financials-table__percentage'\n                  aria-hidden='true'\n                ></span>\n              {{/if}}\n              {{number-format\n                (object-at this.data.ytdPrevPercentSales index)\n                style='percent'\n                dashZero=true\n                maximumFractionDigits=2\n                minimumFractionDigits=2\n              }}\n            </td>\n          {{/if}}\n        {{/if}}\n      {{/each}}\n    </tr>\n  {{else}}\n  \n    <tr\n      class='{{if\n          (or\n            this.highlighted (and (not this.data.parent) this.expandableTotalRow)\n          )\n          \"data-table__total-row\"\n        }}'\n    >\n      <td\n        class='{{unless\n            this.highlighted\n            (concat\n              \"inancials-table__account-name financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-\"\n              this.depth\n            )\n          }}'\n        colspan='2'\n      >\n        {{#if (and this.data.children (not this.childrenHidden))}}\n          <a\n            class='financials-table__section-expansion-toggle link'\n            {{action this.toggleProperty 'showChildren'}}\n          >\n            <FaIcon\n              @icon={{if this.showChildren 'angle-down' 'angle-right'}}\n            />{{~! ~}}\n            {{#if\n              (and\n                this.data.parent\n                (not (eq this.data.debitCredit this.data.parent.debitCredit))\n              )\n            }}\n              <span class='debitCredit debitCredit--debit'>\n                <InfoPopup\n                  @text={{concat\n                    this.data.name\n                    ' subtracts from '\n                    this.data.parent.name\n                  }}\n                  @iconName='minus'\n                />\n              </span>\n            {{/if}}\n            {{this.data.name}}\n          </a>\n        {{else}}\n          {{#if\n            (and\n              this.data.parent\n              (not (eq this.data.debitCredit this.data.parent.debitCredit))\n            )\n          }}\n            <span class='debitCredit debitCredit--debit'><InfoPopup\n                @text={{concat\n                  this.data.name\n                  ' subtracts from '\n                  this.data.parent.name\n                }}\n                @iconName='minus'\n              /></span>\n          {{/if}}\n          {{this.data.name}}\n        {{/if}}\n      </td>\n  \n      {{#each this.data.month as |unused index|}}\n        {{#if this.monthVisible}}\n          <td\n            class='text-right\n              {{if (lt this.data.month 0) \"financials-table__negative-value\"}}'\n          >\n            {{#unless (and this.showChildren (not this.childrenHidden))}}\n              {{number-format\n                (object-at this.data.month index)\n                maximumFractionDigits=0\n                dashZero=true\n              }}\n              {{#if this.percentageVisible}}\n                <span class='financials-table__percentage'>\n                  {{#if (or (not this.expandableTotalRow) this.data.parent)}}\n                    <InfoWrapper\n                      @text={{concat\n                        (number-format\n                          (if\n                            this.parentScoped\n                            (object-at this.data.monthPercentParent index)\n                            (object-at this.data.monthPercentSales index)\n                          )\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        )\n                        ' of '\n                        (if this.parentScoped this.data.parent.name 'Sales')\n                      }}\n                    >\n                      {{number-format\n                        (if\n                          this.parentScoped\n                          (object-at this.data.monthPercentParent index)\n                          (object-at this.data.monthPercentSales index)\n                        )\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      }}\n                    </InfoWrapper>\n                  {{/if}}\n                </span>\n              {{/if}}\n            {{/unless}}\n          </td>\n          {{#if this.lastYearVisible}}\n            <td\n              class='text-right\n                {{if\n                  (lt (object-at this.data.monthPrev index) 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{#unless (and this.showChildren (not this.childrenHidden))}}\n                {{number-format\n                  (object-at this.data.monthPrev index)\n                  maximumFractionDigits=0\n                  dashZero=true\n                }}\n                {{#if this.percentageVisible}}\n                  <span class='financials-table__percentage'>\n                    {{#if (or (not this.expandableTotalRow) this.data.parent)}}\n                      <InfoWrapper\n                        @text={{concat\n                          (number-format\n                            (if\n                              this.parentScoped\n                              (object-at this.data.monthPrevPercentParent index)\n                              (object-at this.data.monthPrevPercentSales index)\n                            )\n                            style='percent'\n                            dashZero=true\n                            maximumFractionDigits=2\n                            minimumFractionDigits=2\n                          )\n                          ' of '\n                          (if this.parentScoped this.data.parent.name 'Sales')\n                        }}\n                      >\n                        {{number-format\n                          (if\n                            this.parentScoped\n                            (object-at this.data.monthPrevPercentParent index)\n                            (object-at this.data.monthPrevPercentSales index)\n                          )\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        }}\n                      </InfoWrapper>\n                    {{/if}}\n                  </span>\n                {{/if}}\n              {{/unless}}\n            </td>\n          {{/if}}\n        {{/if}}\n        {{#if this.ytdVisible}}\n          <td\n            class='text-right\n              {{if\n                (lt (object-at this.data.ytd index) 0)\n                \"financials-table__negative-value\"\n              }}'\n          >\n            {{#unless (and this.showChildren (not this.childrenHidden))}}\n              {{number-format\n                (object-at this.data.ytd index)\n                maximumFractionDigits=0\n                dashZero=true\n              }}\n              {{#if this.percentageVisible}}\n                <span class='financials-table__percentage'>\n                  {{#if (or (not this.expandableTotalRow) this.data.parent)}}\n                    <InfoWrapper\n                      @text={{concat\n                        (number-format\n                          (if\n                            this.parentScoped\n                            (object-at this.data.ytdPercentParent index)\n                            (object-at this.data.ytdPercentSales index)\n                          )\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        )\n                        ' of '\n                        (if this.parentScoped this.data.parent.name 'Sales')\n                      }}\n                    >\n                      {{number-format\n                        (if\n                          this.parentScoped\n                          (object-at this.data.ytdPercentParent index)\n                          (object-at this.data.ytdPercentSales index)\n                        )\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      }}\n                    </InfoWrapper>\n                  {{/if}}\n                </span>\n              {{/if}}\n            {{/unless}}\n          </td>\n          {{#if this.lastYearVisible}}\n            <td\n              class='text-right\n                {{if\n                  (lt (object-at this.data.ytdPrev index) 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{#unless (and this.showChildren (not this.childrenHidden))}}\n                {{number-format\n                  (object-at this.data.ytdPrev index)\n                  maximumFractionDigits=0\n                  dashZero=true\n                }}\n                {{#if this.percentageVisible}}\n                  <span class='financials-table__percentage'>\n                    {{#if (or (not this.expandableTotalRow) this.data.parent)}}\n                      <InfoWrapper\n                        @text={{concat\n                          (number-format\n                            (if\n                              this.parentScoped\n                              (object-at this.data.ytdPrevPercentParent index)\n                              (object-at this.data.ytdPrevPercentSales index)\n                            )\n                            style='percent'\n                            dashZero=true\n                            maximumFractionDigits=2\n                            minimumFractionDigits=2\n                          )\n                          ' of '\n                          (if this.parentScoped this.data.parent.name 'Sales')\n                        }}\n                      >\n                        {{number-format\n                          (if\n                            this.parentScoped\n                            (object-at this.data.ytdPrevPercentParent index)\n                            (object-at this.data.ytdPrevPercentSales index)\n                          )\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        }}\n                      </InfoWrapper>\n                    {{/if}}\n                  </span>\n                {{/if}}\n              {{/unless}}\n            </td>\n          {{/if}}\n        {{/if}}\n      {{/each}}\n    </tr>\n  \n    {{#if (and this.showChildren (not this.childrenHidden))}}\n      {{#each this.data.children as |child|}}\n        <ItmFinancialTableSection\n          @parentScoped={{this.parentScoped}}\n          @lastYearVisible={{this.lastYearVisible}}\n          @percentageVisible={{this.percentageVisible}}\n          @ytdVisible={{this.ytdVisible}}\n          @monthVisible={{this.monthVisible}}\n          @data={{child}}\n          @depth={{math this.depth '+' 1}}\n          @toggleShowChildren={{action 'toggleShowChildren'}}\n        />\n      {{/each}}\n  \n      <tr class='data-table__total-row'>\n        <td\n          class='financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-0'\n          colspan='2'\n        >\n          <FaIcon @icon='angle-right' class='invisible' />{{~! ~}}\n          {{this.data.name}}\n        </td>\n        {{#each this.data.month as |unused index|}}\n          {{#if this.monthVisible}}\n            <td\n              class='text-right\n                {{if\n                  (lt (object-at this.data.month index) 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{number-format\n                (object-at this.data.month index)\n                maximumFractionDigits=0\n                dashZero=true\n              }}\n              {{#if this.percentageVisible}}\n                <span class='financials-table__percentage'>\n                  {{#if (or (not this.expandableTotalRow) this.data.parent)}}\n                    <InfoWrapper\n                      @text={{concat\n                        (number-format\n                          (if\n                            this.parentScoped\n                            (object-at this.data.monthPercentParent index)\n                            (object-at this.data.monthPercentSales index)\n                          )\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        )\n                        ' of '\n                        (if this.parentScoped this.data.parent.name 'Sales')\n                      }}\n                    >\n                      {{number-format\n                        (if\n                          this.parentScoped\n                          (object-at this.data.monthPercentParent index)\n                          (object-at this.data.monthPercentSales index)\n                        )\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      }}\n                    </InfoWrapper>\n                  {{/if}}\n                </span>\n              {{/if}}\n            </td>\n            {{#if this.lastYearVisible}}\n              <td\n                class='text-right\n                  {{if\n                    (lt (object-at this.data.monthPrev index) 0)\n                    \"financials-table__negative-value\"\n                  }}'\n              >\n                {{number-format\n                  (object-at this.data.monthPrev index)\n                  maximumFractionDigits=0\n                  dashZero=true\n                }}\n                {{#if this.percentageVisible}}\n                  <span class='financials-table__percentage'>\n                    {{#if (or (not this.expandableTotalRow) this.data.parent)}}\n                      <InfoWrapper\n                        @text={{concat\n                          (number-format\n                            (if\n                              this.parentScoped\n                              (object-at this.data.monthPrevPercentParent index)\n                              (object-at this.data.monthPrevPercentSales index)\n                            )\n                            style='percent'\n                            dashZero=true\n                            maximumFractionDigits=2\n                            minimumFractionDigits=2\n                          )\n                          ' of '\n                          (if this.parentScoped this.data.parent.name 'Sales')\n                        }}\n                      >\n                        {{number-format\n                          (if\n                            this.parentScoped\n                            (object-at this.data.monthPrevPercentParent index)\n                            (object-at this.data.monthPrevPercentSales index)\n                          )\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        }}\n                      </InfoWrapper>\n                    {{/if}}\n                  </span>\n                {{/if}}\n              </td>\n            {{/if}}\n          {{/if}}\n          {{#if this.ytdVisible}}\n            <td\n              class='text-right\n                {{if\n                  (lt (object-at this.data.ytd index) 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{number-format\n                (object-at this.data.ytd index)\n                maximumFractionDigits=0\n                dashZero=true\n              }}\n              {{#if this.percentageVisible}}\n                <span class='financials-table__percentage'>\n                  {{#if (or (not this.expandableTotalRow) this.data.parent)}}\n                    <InfoWrapper\n                      @text={{concat\n                        (number-format\n                          (if\n                            this.parentScoped\n                            (object-at this.data.ytdPercentParent index)\n                            (object-at this.data.ytdPercentSales index)\n                          )\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        )\n                        ' of '\n                        (if this.parentScoped this.data.parent.name 'Sales')\n                      }}\n                    >\n                      {{number-format\n                        (if\n                          this.parentScoped\n                          (object-at this.data.ytdPercentParent index)\n                          (object-at this.data.ytdPercentSales index)\n                        )\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      }}\n                    </InfoWrapper>\n                  {{/if}}\n                </span>\n              {{/if}}\n            </td>\n            {{#if this.lastYearVisible}}\n              <td\n                class='text-right\n                  {{if\n                    (lt (object-at this.data.ytdPrev index) 0)\n                    \"financials-table__negative-value\"\n                  }}'\n              >\n                {{number-format\n                  (object-at this.data.ytdPrev index)\n                  maximumFractionDigits=0\n                  dashZero=true\n                }}\n                {{#if this.percentageVisible}}\n                  <span class='financials-table__percentage'>\n                    {{#if (or (not this.expandableTotalRow) this.data.parent)}}\n                      <InfoWrapper\n                        @text={{concat\n                          (number-format\n                            (if\n                              this.parentScoped\n                              (object-at this.data.ytdPrevPercentParent index)\n                              (object-at this.data.ytdPrevPercentSales index)\n                            )\n                            style='percent'\n                            dashZero=true\n                            maximumFractionDigits=2\n                            minimumFractionDigits=2\n                          )\n                          ' of '\n                          (if this.parentScoped this.data.parent.name 'Sales')\n                        }}\n                      >\n                        {{number-format\n                          (if\n                            this.parentScoped\n                            (object-at this.data.ytdPrevPercentParent index)\n                            (object-at this.data.ytdPrevPercentSales index)\n                          )\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        }}\n                      </InfoWrapper>\n                    {{/if}}\n                  </span>\n                {{/if}}\n              </td>\n            {{/if}}\n          {{/if}}\n        {{/each}}\n      </tr>\n    {{/if}}\n  \n  {{/if}}\n  */\n  {\n    \"id\": \"OYQe9M7E\",\n    \"block\": \"[[[41,[30,0,[\\\"splitLines\\\"]],[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__total-row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,[28,[35,3],[[30,0,[\\\"title\\\"]],[30,0,[\\\"data\\\",\\\"name\\\"]]],null]],[1,\\\" $\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"data\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"month\\\"]],[30,2]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"monthPrev\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrev\\\"]],[30,2]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"ytd\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytd\\\"]],[30,2]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"ytdPrev\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrev\\\"]],[30,2]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[1,2]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__total-row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,[28,[35,3],[[30,0,[\\\"title\\\"]],[30,0,[\\\"data\\\",\\\"name\\\"]]],null]],[1,\\\" %\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"data\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"MonthPercentSales\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentSales\\\"]],[30,4]],null]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"MonthPrevPercentSales\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentSales\\\"]],[30,4]],null]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"YtdPercentSales\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentSales\\\"]],[30,4]],null]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"YtdPrevPercentSales\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentSales\\\"]],[30,4]],null]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[3,4]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n  \\\"],[10,\\\"tr\\\"],[15,0,[29,[[52,[28,[37,3],[[30,0,[\\\"highlighted\\\"]],[28,[37,10],[[28,[37,11],[[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[30,0,[\\\"expandableTotalRow\\\"]]],null]],null],\\\"data-table__total-row\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[15,0,[29,[[52,[51,[30,0,[\\\"highlighted\\\"]]],[28,[37,13],[\\\"inancials-table__account-name financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-\\\",[30,0,[\\\"depth\\\"]]],null]]]]],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"data\\\",\\\"children\\\"]],[28,[37,11],[[30,0,[\\\"childrenHidden\\\"]]],null]],null],[[[1,\\\"        \\\"],[11,3],[24,0,\\\"financials-table__section-expansion-toggle link\\\"],[4,[38,15],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"showChildren\\\"],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showChildren\\\"]],\\\"angle-down\\\",\\\"angle-right\\\"]]],null],[41,[28,[37,10],[[30,0,[\\\"data\\\",\\\"parent\\\"]],[28,[37,11],[[28,[37,17],[[30,0,[\\\"data\\\",\\\"debitCredit\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"debitCredit\\\"]]],null]],null]],null],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,13],[[30,0,[\\\"data\\\",\\\"name\\\"]],\\\" subtracts from \\\",[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]]],null],\\\"minus\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[1,[30,0,[\\\"data\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"data\\\",\\\"parent\\\"]],[28,[37,11],[[28,[37,17],[[30,0,[\\\"data\\\",\\\"debitCredit\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"debitCredit\\\"]]],null]],null]],null],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[8,[39,18],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,13],[[30,0,[\\\"data\\\",\\\"name\\\"]],\\\" subtracts from \\\",[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]]],null],\\\"minus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[1,[30,0,[\\\"data\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"data\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,6],[[30,0,[\\\"data\\\",\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,10],[[30,0,[\\\"showChildren\\\"]],[28,[37,11],[[30,0,[\\\"childrenHidden\\\"]]],null]],null]],[[[1,\\\"            \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"month\\\"]],[30,6]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"financials-table__percentage\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[28,[37,11],[[30,0,[\\\"expandableTotalRow\\\"]]],null],[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,13],[[28,[37,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentParent\\\"]],[30,6]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentSales\\\"]],[30,6]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]],\\\" of \\\",[52,[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]],\\\"Sales\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentParent\\\"]],[30,6]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentSales\\\"]],[30,6]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,6],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrev\\\"]],[30,6]],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,10],[[30,0,[\\\"showChildren\\\"]],[28,[37,11],[[30,0,[\\\"childrenHidden\\\"]]],null]],null]],[[[1,\\\"              \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrev\\\"]],[30,6]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"financials-table__percentage\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[28,[37,11],[[30,0,[\\\"expandableTotalRow\\\"]]],null],[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,13],[[28,[37,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentParent\\\"]],[30,6]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentSales\\\"]],[30,6]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]],\\\" of \\\",[52,[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]],\\\"Sales\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[1,[28,[35,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentParent\\\"]],[30,6]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentSales\\\"]],[30,6]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,6],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytd\\\"]],[30,6]],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,10],[[30,0,[\\\"showChildren\\\"]],[28,[37,11],[[30,0,[\\\"childrenHidden\\\"]]],null]],null]],[[[1,\\\"            \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytd\\\"]],[30,6]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"financials-table__percentage\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[28,[37,11],[[30,0,[\\\"expandableTotalRow\\\"]]],null],[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,13],[[28,[37,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentParent\\\"]],[30,6]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentSales\\\"]],[30,6]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]],\\\" of \\\",[52,[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]],\\\"Sales\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentParent\\\"]],[30,6]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentSales\\\"]],[30,6]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,6],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrev\\\"]],[30,6]],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,10],[[30,0,[\\\"showChildren\\\"]],[28,[37,11],[[30,0,[\\\"childrenHidden\\\"]]],null]],null]],[[[1,\\\"              \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrev\\\"]],[30,6]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"financials-table__percentage\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[28,[37,11],[[30,0,[\\\"expandableTotalRow\\\"]]],null],[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,13],[[28,[37,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentParent\\\"]],[30,6]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentSales\\\"]],[30,6]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]],\\\" of \\\",[52,[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]],\\\"Sales\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[1,[28,[35,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentParent\\\"]],[30,6]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentSales\\\"]],[30,6]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[5,6]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"showChildren\\\"]],[28,[37,11],[[30,0,[\\\"childrenHidden\\\"]]],null]],null],[[[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"data\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[8,[39,20],null,[[\\\"@parentScoped\\\",\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@data\\\",\\\"@depth\\\",\\\"@toggleShowChildren\\\"],[[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],[30,7],[28,[37,21],[[30,0,[\\\"depth\\\"]],\\\"+\\\",1],null],[28,[37,15],[[30,0],\\\"toggleShowChildren\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__total-row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[14,0,\\\"financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-0\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],[[24,0,\\\"invisible\\\"]],[[\\\"@icon\\\"],[\\\"angle-right\\\"]],null],[1,[30,0,[\\\"data\\\",\\\"name\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"data\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,6],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"month\\\"]],[30,9]],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"month\\\"]],[30,9]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"financials-table__percentage\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[28,[37,11],[[30,0,[\\\"expandableTotalRow\\\"]]],null],[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,13],[[28,[37,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentParent\\\"]],[30,9]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentSales\\\"]],[30,9]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]],\\\" of \\\",[52,[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]],\\\"Sales\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentParent\\\"]],[30,9]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPercentSales\\\"]],[30,9]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                \\\",[52,[28,[37,6],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrev\\\"]],[30,9]],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrev\\\"]],[30,9]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"financials-table__percentage\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[28,[37,11],[[30,0,[\\\"expandableTotalRow\\\"]]],null],[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,13],[[28,[37,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentParent\\\"]],[30,9]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentSales\\\"]],[30,9]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]],\\\" of \\\",[52,[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]],\\\"Sales\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[1,[28,[35,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentParent\\\"]],[30,9]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"monthPrevPercentSales\\\"]],[30,9]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,6],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytd\\\"]],[30,9]],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytd\\\"]],[30,9]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"financials-table__percentage\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[28,[37,11],[[30,0,[\\\"expandableTotalRow\\\"]]],null],[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,13],[[28,[37,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentParent\\\"]],[30,9]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentSales\\\"]],[30,9]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]],\\\" of \\\",[52,[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]],\\\"Sales\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentParent\\\"]],[30,9]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPercentSales\\\"]],[30,9]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                \\\",[52,[28,[37,6],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrev\\\"]],[30,9]],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrev\\\"]],[30,9]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"financials-table__percentage\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[28,[37,11],[[30,0,[\\\"expandableTotalRow\\\"]]],null],[30,0,[\\\"data\\\",\\\"parent\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,13],[[28,[37,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentParent\\\"]],[30,9]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentSales\\\"]],[30,9]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]],\\\" of \\\",[52,[30,0,[\\\"parentScoped\\\"]],[30,0,[\\\"data\\\",\\\"parent\\\",\\\"name\\\"]],\\\"Sales\\\"]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[1,[28,[35,8],[[52,[30,0,[\\\"parentScoped\\\"]],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentParent\\\"]],[30,9]],null],[28,[37,9],[[30,0,[\\\"data\\\",\\\"ytdPrevPercentSales\\\"]],[30,9]],null]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[8,9]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"unused\\\",\\\"index\\\",\\\"unused\\\",\\\"index\\\",\\\"unused\\\",\\\"index\\\",\\\"child\\\",\\\"unused\\\",\\\"index\\\"],false,[\\\"if\\\",\\\"tr\\\",\\\"td\\\",\\\"or\\\",\\\"each\\\",\\\"-track-array\\\",\\\"lt\\\",\\\"span\\\",\\\"number-format\\\",\\\"object-at\\\",\\\"and\\\",\\\"not\\\",\\\"unless\\\",\\\"concat\\\",\\\"a\\\",\\\"action\\\",\\\"fa-icon\\\",\\\"eq\\\",\\\"info-popup\\\",\\\"info-wrapper\\\",\\\"itm-financial-table-section\\\",\\\"math\\\"]]\",\n    \"moduleName\": \"portal/components/itm-financial-table-section.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: '',\n    actions: {\n      toggleShowChildren(account) {\n        this.toggleShowChildren(account);\n      }\n    }\n  }));\n});","define(\"portal/components/label-indicator\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <span\n    class='{{if @isBad \"text-danger\"}} {{if @isGood \"text-success\"}}'\n    ...attributes\n  >\n    {{yield}}\n  </span>\n  */\n  {\n    \"id\": \"A+pewt0C\",\n    \"block\": \"[[[11,1],[16,0,[29,[[52,[30,1],\\\"text-danger\\\"],\\\" \\\",[52,[30,2],\\\"text-success\\\"]]]],[17,3],[12],[1,\\\"\\\\n  \\\"],[18,4,null],[1,\\\"\\\\n\\\"],[13]],[\\\"@isBad\\\",\\\"@isGood\\\",\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"span\\\",\\\"if\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/label-indicator.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/label-popup\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='label-popup__container'\n    {{on 'mouseenter' this.showPopup}}\n    {{on 'mouseleave' this.hidePopup}}\n    {{did-insert this.registerContainer}}\n    {{will-destroy this.teardown}}\n    ...attributes\n  >\n    <span class='label-popup__text'>{{yield}}</span>\n  </div>\n  \n  {{#if (and @text this.isShowing)}}\n    {{#in-element this.destinationElement}}\n      <div\n        class='shadow border rounded bg-white px-2 py-1 text-left fs-6 label-popup__popup\n          {{@popupClass}}'\n        {{did-insert this.registerPopup}}\n      >\n        <span class='text-break' style='white-space: pre-line;'>{{@text}}</span>\n      </div>\n    {{/in-element}}\n  {{/if}}\n  */\n  {\n    \"id\": \"srCKYzhu\",\n    \"block\": \"[[[11,0],[24,0,\\\"label-popup__container\\\"],[17,1],[4,[38,1],[\\\"mouseenter\\\",[30,0,[\\\"showPopup\\\"]]],null],[4,[38,1],[\\\"mouseleave\\\",[30,0,[\\\"hidePopup\\\"]]],null],[4,[38,2],[[30,0,[\\\"registerContainer\\\"]]],null],[4,[38,3],[[30,0,[\\\"teardown\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[10,1],[14,0,\\\"label-popup__text\\\"],[12],[18,4,null],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,7],[[30,2],[30,0,[\\\"isShowing\\\"]]],null],[[[40,[[[1,\\\"    \\\"],[11,0],[16,0,[29,[\\\"shadow border rounded bg-white px-2 py-1 text-left fs-6 label-popup__popup\\\\n        \\\",[30,3]]]],[4,[38,2],[[30,0,[\\\"registerPopup\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"text-break\\\"],[14,5,\\\"white-space: pre-line;\\\"],[12],[1,[30,2]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],\\\"%cursor:0%\\\",[28,[37,9],[[30,0,[\\\"destinationElement\\\"]]],null]]],[]],null]],[\\\"&attrs\\\",\\\"@text\\\",\\\"@popupClass\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"on\\\",\\\"did-insert\\\",\\\"will-destroy\\\",\\\"span\\\",\\\"yield\\\",\\\"if\\\",\\\"and\\\",\\\"in-element\\\",\\\"-in-el-null\\\"]]\",\n    \"moduleName\": \"portal/components/label-popup.hbs\",\n    \"isStrictMode\": false\n  });\n  let LabelPopupComponent = _exports.default = (_class = class LabelPopupComponent extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"isShowing\", _descriptor, this);\n      _defineProperty(this, \"containerElement\", null);\n      _defineProperty(this, \"popupElement\", null);\n      this.ensurePortalTargetExists();\n    }\n    ensurePortalTargetExists() {\n      if (!document.getElementById('popup-portal-target')) {\n        const portalDiv = document.createElement('div');\n        portalDiv.id = 'popup-portal-target';\n        document.body.appendChild(portalDiv);\n      }\n    }\n    get destinationElement() {\n      // Never #ember-testing: in-element empties its destination, so that would\n      // wipe the whole app out from under any test that hovers a label.\n      return document.getElementById('popup-portal-target');\n    }\n    showPopup() {\n      this.isShowing = true;\n    }\n    hidePopup() {\n      this.isShowing = false;\n    }\n    registerContainer(element) {\n      this.containerElement = element;\n    }\n    registerPopup(element) {\n      this.popupElement = element;\n      // trigger positioning immediately when the popup is inserted into the dom\n      this.setupPositioning();\n    }\n    setupPositioning() {\n      if (!this.containerElement || !this.popupElement) return;\n      this.updatePosition();\n      window.addEventListener('scroll', this.updatePosition, {\n        capture: true,\n        passive: true\n      });\n      window.addEventListener('resize', this.updatePosition, {\n        passive: true\n      });\n    }\n    updatePosition() {\n      requestAnimationFrame(() => {\n        // if the user mouses out quickly, the element might be gone before this fires\n        if (!this.containerElement || !this.popupElement || !this.isShowing) return;\n        const containerRect = this.containerElement.getBoundingClientRect();\n        const popupRect = this.popupElement.getBoundingClientRect();\n        const gap = 4;\n        let top = containerRect.bottom + window.scrollY + gap;\n        let left = containerRect.left + window.scrollX;\n        const rightEdge = containerRect.left + popupRect.width;\n        const maxRight = window.innerWidth - 5;\n        if (rightEdge > maxRight) {\n          left = left - (rightEdge - maxRight);\n        }\n        const bottomEdge = containerRect.bottom + popupRect.height + gap;\n        if (bottomEdge > window.innerHeight && containerRect.top > popupRect.height + gap) {\n          top = containerRect.top + window.scrollY - popupRect.height - gap;\n        }\n        Object.assign(this.popupElement.style, {\n          position: 'absolute',\n          top: `${top}px`,\n          left: `${left}px`\n        });\n      });\n    }\n    teardown() {\n      window.removeEventListener('scroll', this.updatePosition, {\n        capture: true\n      });\n      window.removeEventListener('resize', this.updatePosition);\n      this.containerElement = null;\n      this.popupElement = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isShowing\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"showPopup\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"showPopup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hidePopup\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"hidePopup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"registerContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"registerContainer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"registerPopup\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"registerPopup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updatePosition\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updatePosition\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"teardown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"teardown\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, LabelPopupComponent);\n});","define(\"portal/components/lazy-each\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/runloop\", \"@ember/debug\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _object, _runloop, _debug, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/debug\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.lazyLoadedItems as |item index|}}\n    {{yield item this.elementIdentifier index}}\n  {{else if this.emptyText}}\n    <p class='text-center text-muted p-4' data-test-lazy-each-empty-text=''>\n      {{html-safe this.emptyText}}\n    </p>\n  {{else if this.emptyContent}}\n    {{html-safe this.emptyContent}}\n  {{/each}}\n  {{#unless this.allItemsAreDisplayed}}\n    {{#if this.automatic}}\n      <div\n        class='lazy-each__placeholder'\n        data-test-lazy-each-is-automatic-loading=''\n      >\n        {{t 'common.Loading more'}}\n        {{this.itemDisplayName}}\n        <LoadingIcon @type='spinner' />\n      </div>\n    {{else}}\n      <div class='lazy-each__load-more'>\n        <button\n          type='button'\n          class='text-button'\n          {{action 'renderMore'}}\n          data-test-lazy-each-load-more-button=''\n        >\n          {{t 'common.loadXMore' nextIncrement=this.nextIncrement}}\n          {{pluralize this.nextIncrement this.itemDisplayName without-count=true}}\n          {{t\n            'common.showingXOfYName'\n            length=this.lazyLoadedItems.length\n            total=this.items.length\n            name=(pluralize this.itemDisplayName)\n          }}\n        </button>\n      </div>\n    {{/if}}\n  {{/unless}}\n  */\n  {\n    \"id\": \"FZWOQwN+\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"lazyLoadedItems\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[18,3,[[30,1],[30,0,[\\\"elementIdentifier\\\"]],[30,2]]],[1,\\\"\\\\n\\\"]],[1,2]],[[[41,[30,0,[\\\"emptyText\\\"]],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"text-center text-muted p-4\\\"],[14,\\\"data-test-lazy-each-empty-text\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,5],[[30,0,[\\\"emptyText\\\"]]],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"emptyContent\\\"]],[[[1,\\\"  \\\"],[1,[28,[35,5],[[30,0,[\\\"emptyContent\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]],[41,[51,[30,0,[\\\"allItemsAreDisplayed\\\"]]],[[[41,[30,0,[\\\"automatic\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"lazy-each__placeholder\\\"],[14,\\\"data-test-lazy-each-is-automatic-loading\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,8],[\\\"common.Loading more\\\"],null]],[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"itemDisplayName\\\"]]],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"lazy-each__load-more\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-lazy-each-load-more-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"renderMore\\\"],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"common.loadXMore\\\"],[[\\\"nextIncrement\\\"],[[30,0,[\\\"nextIncrement\\\"]]]]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,12],[[30,0,[\\\"nextIncrement\\\"]],[30,0,[\\\"itemDisplayName\\\"]]],[[\\\"without-count\\\"],[true]]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"common.showingXOfYName\\\"],[[\\\"length\\\",\\\"total\\\",\\\"name\\\"],[[30,0,[\\\"lazyLoadedItems\\\",\\\"length\\\"]],[30,0,[\\\"items\\\",\\\"length\\\"]],[28,[37,12],[[30,0,[\\\"itemDisplayName\\\"]]],null]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[\\\"item\\\",\\\"index\\\",\\\"&default\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"yield\\\",\\\"if\\\",\\\"p\\\",\\\"html-safe\\\",\\\"unless\\\",\\\"div\\\",\\\"t\\\",\\\"loading-icon\\\",\\\"button\\\",\\\"action\\\",\\\"pluralize\\\"]]\",\n    \"moduleName\": \"portal/components/lazy-each.hbs\",\n    \"isStrictMode\": false\n  });\n  function findFirstScrollableParent(className, defaultSelector) {\n    let parent = document.querySelector(`.${className}`)?.parentElement;\n    while (parent) {\n      // this handles all scroll styles i.e scroll: auto, scroll-y: auto\n      const overflowY = window.getComputedStyle(parent).getPropertyValue('overflow-y');\n      const hasScrollStyle = overflowY === 'auto' || overflowY === 'scroll';\n      if (hasScrollStyle) return parent;\n      parent = parent.parentElement;\n    }\n    return document.querySelector(defaultSelector);\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: '',\n    elementIdentifier: null,\n    automatic: false,\n    increment: 10,\n    itemDisplayName: 'item',\n    windowSelector: _environment.default.windowSelector,\n    numberOfItemsVisible: 1,\n    scrollHandler: null,\n    init() {\n      this._super(...arguments);\n      if (this.initialNumberOfItemsVisible) {\n        (true && !(!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      (true && !(!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      (true && (0, _debug.warn)('No elements with identifier class found. Please use the second contextual variable from the loop as a class name in the last element of each iteration', !shouldWarn || element, {\n        id: 'lazy-each.no-identifier-class-found'\n      }));\n      return element;\n    },\n    checkVisible: function () {\n      if (this.allItemsAreDisplayed) return;\n      const element = this.findLastElement();\n      if (!element) return;\n      const scrollableParent = findFirstScrollableParent(this.elementIdentifier, this.windowSelector);\n      const placeholderHeight = 40;\n      const screenHeight = scrollableParent.clientHeight;\n      const topOfElement = element.offsetTop;\n      const bottomOfElement = topOfElement + element.offsetHeight;\n      const topOfScreen = scrollableParent.scrollTop;\n      const bottomOfScreen = topOfScreen + screenHeight;\n      const renderAhead = screenHeight;\n\n      // If the bottom of the screen (plus margins) is larger than the bottom of the element\n      if (bottomOfScreen + placeholderHeight + renderAhead > bottomOfElement) {\n        this.send('renderMore');\n        // Check again if we have rendered enough elements for our scroll position\n        (0, _runloop.next)(() => this.checkVisible());\n      }\n    }\n  }));\n});","define(\"portal/components/link-to-external\", [\"exports\", \"ember-engines/components/link-to-external\"], function (_exports, _linkToExternal) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _linkToExternal.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-engines/components/link-to-external\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/loading-button\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"portal/components/loading-button\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _computed, _loadingButton, _jquery, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"portal/components/loading-button\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @isLoading}}\n    <FaIcon @icon='circle-notch' @spin='true' />\n  {{else}}\n    {{#if (has-block)}}\n      {{yield}}\n    {{else}}\n      {{@buttonText}}\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"+9hid45e\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@icon\\\",\\\"@spin\\\"],[\\\"circle-notch\\\",\\\"true\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[48,[30,3]],[[[1,\\\"    \\\"],[18,3,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[1,[30,2]],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[\\\"@isLoading\\\",\\\"@buttonText\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"fa-icon\\\",\\\"has-block\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/loading-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _loadingButton.default,\n    tagName: 'button',\n    classNames: ['loading-button'],\n    classNameBindings: ['isLoading:loading'],\n    attributeBindings: ['isDisabledComputed:disabled'],\n    buttonText: 'Submit',\n    isLoading: false,\n    isDisabled: false,\n    isDisabledComputed: (0, _computed.or)('isLoading', 'isDisabled'),\n    click(event) {\n      event.preventDefault();\n      if (!this.isLoading) {\n        // Maintain current width\n        var el = (0, _jquery.default)(this.element)[0];\n        el.style.minWidth = getComputedStyle(el).width;\n        el.style.minHeight = getComputedStyle(el).height;\n        if (this.action) {\n          this.action();\n        }\n      }\n    }\n  }));\n});","define(\"portal/components/loading-icon\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='loading-icon\n      {{if @type (concat \"loading-icon--\" @type)}}\n      {{if @class @class}}'\n  >\n    {{#if (eq @type 'ripple')}}\n      <svg\n        xmlns='http://www.w3.org/2000/svg'\n        viewBox='0 0 100 100'\n        preserveAspectRatio='xMidYMid'\n        class='uil-ripple'\n      >\n        <circle\n          cx='50'\n          cy='50'\n          r='0'\n          stroke='#8ca7c3'\n          fill='none'\n          stroke-width='3'\n          stroke-linecap='round'\n        />\n        <circle\n          cx='50'\n          cy='50'\n          r='14.7'\n          stroke='#eee'\n          fill='none'\n          stroke-width='3'\n          stroke-linecap='round'\n        />\n        <circle\n          cx='50'\n          cy='50'\n          r='29.3'\n          stroke='#8ca7c3'\n          fill='none'\n          stroke-width='3'\n          stroke-linecap='round'\n        />\n        <circle\n          cx='50'\n          cy='50'\n          r='44'\n          stroke='#eee'\n          fill='none'\n          stroke-width='3'\n          stroke-linecap='round'\n        />\n      </svg>\n    {{/if}}\n  \n    {{#if (eq @type 'spinner')}}\n      <svg\n        xmlns='http://www.w3.org/2000/svg'\n        viewBox='0 0 100 100'\n        preserveAspectRatio='xMidYMid'\n        class='uil-ring'\n      >\n        <circle cx='50' cy='50' r='40'></circle>\n      </svg>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"/GcN80Vs\",\n    \"block\": \"[[[10,0],[15,0,[29,[\\\"loading-icon\\\\n    \\\",[52,[30,1],[28,[37,2],[\\\"loading-icon--\\\",[30,1]],null]],\\\"\\\\n    \\\",[52,[30,2],[30,2]]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,1],\\\"ripple\\\"],null],[[[1,\\\"    \\\"],[10,\\\"svg\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"viewBox\\\",\\\"0 0 100 100\\\"],[14,\\\"preserveAspectRatio\\\",\\\"xMidYMid\\\"],[14,0,\\\"uil-ripple\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"50\\\"],[14,\\\"cy\\\",\\\"50\\\"],[14,\\\"r\\\",\\\"0\\\"],[14,\\\"stroke\\\",\\\"#8ca7c3\\\"],[14,\\\"fill\\\",\\\"none\\\"],[14,\\\"stroke-width\\\",\\\"3\\\"],[14,\\\"stroke-linecap\\\",\\\"round\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"50\\\"],[14,\\\"cy\\\",\\\"50\\\"],[14,\\\"r\\\",\\\"14.7\\\"],[14,\\\"stroke\\\",\\\"#eee\\\"],[14,\\\"fill\\\",\\\"none\\\"],[14,\\\"stroke-width\\\",\\\"3\\\"],[14,\\\"stroke-linecap\\\",\\\"round\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"50\\\"],[14,\\\"cy\\\",\\\"50\\\"],[14,\\\"r\\\",\\\"29.3\\\"],[14,\\\"stroke\\\",\\\"#8ca7c3\\\"],[14,\\\"fill\\\",\\\"none\\\"],[14,\\\"stroke-width\\\",\\\"3\\\"],[14,\\\"stroke-linecap\\\",\\\"round\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"50\\\"],[14,\\\"cy\\\",\\\"50\\\"],[14,\\\"r\\\",\\\"44\\\"],[14,\\\"stroke\\\",\\\"#eee\\\"],[14,\\\"fill\\\",\\\"none\\\"],[14,\\\"stroke-width\\\",\\\"3\\\"],[14,\\\"stroke-linecap\\\",\\\"round\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,1],\\\"spinner\\\"],null],[[[1,\\\"    \\\"],[10,\\\"svg\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"viewBox\\\",\\\"0 0 100 100\\\"],[14,\\\"preserveAspectRatio\\\",\\\"xMidYMid\\\"],[14,0,\\\"uil-ring\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"50\\\"],[14,\\\"cy\\\",\\\"50\\\"],[14,\\\"r\\\",\\\"40\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@type\\\",\\\"@class\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"concat\\\",\\\"eq\\\",\\\"svg\\\",\\\"circle\\\"]]\",\n    \"moduleName\": \"portal/components/loading-icon.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/logged-in-as\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='logged-in-as'>\n    <div class='logged-in-as__marquee'>\n      <div class='marquee'>\n        <p>You're logged in as\n          {{this.sessionData.user.firstName}}\n          {{this.sessionData.user.lastName}}\n          ({{this.sessionData.user.email}})\n          <FaIcon @icon='exclamation-circle' style='margin-left: 5px' /></p>\n      </div>\n    </div>\n    <button\n      class='logged-in-as__return text-button'\n      type='button'\n      {{action 'exitLoginAs'}}\n    >\n      Return\n      <FaIcon @icon='sign-out-alt' style='margin-left: 5px' />\n    </button>\n  </div>\n  */\n  {\n    \"id\": \"tSxiu5cc\",\n    \"block\": \"[[[10,0],[14,0,\\\"logged-in-as\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"logged-in-as__marquee\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"marquee\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"You're logged in as\\\\n        \\\"],[1,[30,0,[\\\"sessionData\\\",\\\"user\\\",\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"sessionData\\\",\\\"user\\\",\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,0,[\\\"sessionData\\\",\\\"user\\\",\\\"email\\\"]]],[1,\\\")\\\\n        \\\"],[8,[39,2],[[24,5,\\\"margin-left: 5px\\\"]],[[\\\"@icon\\\"],[\\\"exclamation-circle\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"logged-in-as__return text-button\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"exitLoginAs\\\"],null],[12],[1,\\\"\\\\n    Return\\\\n    \\\"],[8,[39,2],[[24,5,\\\"margin-left: 5px\\\"]],[[\\\"@icon\\\"],[\\\"sign-out-alt\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"p\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/logged-in-as.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    sessionData: (0, _service.inject)(),\n    actions: {\n      exitLoginAs() {\n        (0, _object.get)(this, 'sessionData').exitLoginAs();\n      }\n    }\n  }));\n});","define(\"portal/components/mapping/draggable-map\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/object\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _computed, _object, _jquery, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/object\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <td class='code'>{{this.map.code}}</td>\n  <td class='name' title={{this.map.name}}>{{this.map.name}}</td>\n  <td class='value'>\n    {{number-format\n      this.map.value\n      style='currency'\n      dashZero=true\n      maximumFractionDigits=0\n    }}\n  </td>\n  {{#if this.canInvert}}\n    <td class='inversion'><label><Input\n          @type='checkbox'\n          @checked={{this.map.inverted}}\n        />\n        +/&minus;</label></td>\n  {{/if}}\n  */\n  {\n    \"id\": \"0cBmoDFW\",\n    \"block\": \"[[[10,\\\"td\\\"],[14,0,\\\"code\\\"],[12],[1,[30,0,[\\\"map\\\",\\\"code\\\"]]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[14,0,\\\"name\\\"],[15,\\\"title\\\",[30,0,[\\\"map\\\",\\\"name\\\"]]],[12],[1,[30,0,[\\\"map\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[14,0,\\\"value\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,1],[[30,0,[\\\"map\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[\\\"currency\\\",true,0]]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canInvert\\\"]],[[[1,\\\"  \\\"],[10,\\\"td\\\"],[14,0,\\\"inversion\\\"],[12],[10,\\\"label\\\"],[12],[8,[39,4],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"map\\\",\\\"inverted\\\"]]]],null],[1,\\\"\\\\n      +/−\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"td\\\",\\\"number-format\\\",\\\"if\\\",\\\"label\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"portal/components/mapping/draggable-map.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'tr',\n    attributeBindings: ['map.externalId:data-map-external-id', 'map.system:data-map-system'],\n    classNames: ['draggable-map'],\n    classNameBindings: ['map.system'],\n    unmapped: (0, _computed.empty)('map.account.id'),\n    didInsertElement() {\n      this._super(...arguments);\n      const appendTo = (0, _object.get)(this, 'unmapped') ? 'parent' : 'body';\n      (0, _jquery.default)(this.element).draggable({\n        cursor: 'grabbing',\n        revert: 'invalid',\n        scope: 'accounts',\n        handle: '.code, .name, .value',\n        helper: 'clone',\n        appendTo,\n        opacity: 0.8\n      });\n    }\n  }));\n});","define(\"portal/components/mapping/map-list\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/utils/sort-by-account-code\", \"jquery\", \"@ember/object/computed\", \"@ember/template-factory\"], function (_exports, _component, _object, _sortByAccountCode, _jquery, _computed, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"portal/utils/sort-by-account-code\",0,\"jquery\",0,\"@ember/object/computed\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.mapList.length}}\n    <table>\n      {{#each this.mapList as |map|}}\n        <Mapping::DraggableMap\n          @map={{map}}\n          @canInvert={{this.shouldShowInvert}}\n        />\n      {{/each}}\n    </table>\n  {{else}}\n    {{#if (has-block)}}\n      {{yield}}\n    {{else}}\n      <span class='ptl-placeholder'>No accounts have been set to map to this one</span>\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"eZBYFoio\",\n    \"block\": \"[[[41,[30,0,[\\\"mapList\\\",\\\"length\\\"]],[[[1,\\\"  \\\"],[10,\\\"table\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"mapList\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[8,[39,4],null,[[\\\"@map\\\",\\\"@canInvert\\\"],[[30,1],[30,0,[\\\"shouldShowInvert\\\"]]]],null],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[48,[30,2]],[[[1,\\\"    \\\"],[18,2,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"No accounts have been set to map to this one\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[\\\"map\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"table\\\",\\\"each\\\",\\\"-track-array\\\",\\\"mapping/draggable-map\\\",\\\"has-block\\\",\\\"yield\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/mapping/map-list.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['map-list'],\n    canInvertValues: true,\n    shouldShowInvert: (0, _computed.and)('canInvertValues', 'hasImported'),\n    hasSelectedSystem: (0, _computed.notEmpty)('system'),\n    mapList: (0, _object.computed)('maps.[]', function () {\n      const maps = (0, _object.get)(this, 'maps') || [];\n      let hasImported = false;\n      for (let i = 0; i < (0, _object.get)(maps, 'length'); i++) {\n        if (maps.objectAt(i).value != null) {\n          hasImported = true;\n          break;\n        }\n      }\n      (0, _object.set)(this, 'hasImported', hasImported);\n      return maps.sort(_sortByAccountCode.default);\n    }),\n    didInsertElement() {\n      this._super(...arguments);\n      (0, _jquery.default)(this.element).droppable({\n        hoverClass: 'hover',\n        scope: 'accounts',\n        tolerance: 'pointer',\n        drop: (event, ui) => {\n          const mapId = ui.draggable.attr('data-map-external-id');\n          const balance = (0, _object.get)(this, 'account.balance');\n          const system = ui.draggable.attr('data-map-system');\n          this.remap(mapId, balance, system || null);\n        }\n      });\n    }\n  }));\n});","define(\"portal/components/mapping/map-status\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/components/mapping/map-list\", \"@ember/template-factory\"], function (_exports, _component, _object, _mapList, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/components/mapping/map-list\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <a {{action 'wasClicked' this.account}}></a>\n  \n  {{!\n    This sits outside of the <a> so it remains vertically centered when\n    the <a> is position: absolute;\n  }}\n  \n  <span>\n    {{#if this.isManual}}\n      M\n    {{else}}\n      {{#if this.hasSelectedSystem}}\n        {{this.mapList.length}}\n      {{else}}\n        –\n      {{/if}}\n    {{/if}}\n  </span>\n  */\n  {\n    \"id\": \"XHGC5aDx\",\n    \"block\": \"[[[11,3],[4,[38,1],[[30,0],\\\"wasClicked\\\",[30,0,[\\\"account\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"\\\\n\\\"],[10,1],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isManual\\\"]],[[[1,\\\"    M\\\\n\\\"]],[]],[[[41,[30,0,[\\\"hasSelectedSystem\\\"]],[[[1,\\\"      \\\"],[1,[30,0,[\\\"mapList\\\",\\\"length\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      –\\\\n\\\"]],[]]]],[]]],[13]],[],false,[\\\"a\\\",\\\"action\\\",\\\"span\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"portal/components/mapping/map-status.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _mapList.default.extend({\n    tagName: 'td',\n    classNames: ['map-status'],\n    classNameBindings: ['ok', 'isManual:manual'],\n    ok: (0, _object.computed)('mapList.length', 'hasSelectedSystem', function () {\n      return (0, _object.get)(this, 'mapList.length') > 0 && (0, _object.get)(this, 'hasSelectedSystem');\n    }),\n    actions: {\n      wasClicked() {\n        if ((0, _object.get)(this, 'isManual')) {\n          this.makeAuto(...arguments);\n        } else {\n          this.toggle(...arguments);\n        }\n      }\n    }\n  }));\n});","define(\"portal/components/markdown-to-html\", [\"exports\", \"ember-cli-showdown/components/markdown-to-html\"], function (_exports, _markdownToHtml) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _markdownToHtml.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-showdown/components/markdown-to-html\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/metric-breakdown\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/object/evented\", \"jquery\", \"@ember/object\", \"@ember/service\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _computed, _evented, _jquery, _object, _service, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/object/evented\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @clickOutsideToClose={{true}}\n    @overlayClass='modal breakdown'\n    @containerClass='block-module'\n    @onClose={{action this.close}}\n  >\n    <header class='block-module__header'>\n      <button\n        class='text-button float-end close'\n        type='button'\n        {{action this.close}}\n      >&times;</button>\n      <h1 class='h1'>Breakdown of {{this.selectedGroup.name}} Group</h1>\n      <h2 class='h2'>{{this.selectedMetric.name}}\n        —\n        {{if (eq this.periodType 'ytd') 'Year to'}}\n        {{moment-format this.sessionData.period 'MMMM YYYY'}}</h2>\n    </header>\n  \n    <section class='chart'>\n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' />\n      {{else if (gt (get this.chartData.columns '0.length') 3)}}\n        <h3>Variation from the average, by store</h3>\n        <C3Chart\n          @data={{this.chartData}}\n          @size={{this.size}}\n          @legend={{this.legend}}\n          @grid={{this.grid}}\n          @axis={{this.axis}}\n          @tooltip={{this.tooltip}}\n          @padding={{this.padding}}\n          @point={{this.point}}\n          @regions={{this.regions}}\n        />\n      {{else if (gt (get this.chartData.columns '0.length') 1)}}\n        <p class='ptl-placeholder no-data'>There must be at least three values for\n          a chart to be shown.</p>\n      {{else}}\n        <p class='ptl-placeholder no-data'>There is no data for\n          {{moment-format this.sessionData.period 'MMMM YYYY'}}.</p>\n      {{/if}}\n    </section>\n  \n    <section class='stats'>\n      {{! &nbsp; around values prevents collapse when values are null }}\n  \n      <div class='metric'>\n        <div class='number'>\n          {{#if this.isLoading}}\n            <FaIcon @icon='circle-notch' @spin={{true}} />\n          {{else}}\n            &nbsp;\n            {{number-format\n              this.average\n              style=(get this.formattedStyle this.selectedMetric.format)\n              maximumFractionDigits=2\n              dashZero=true\n            }}\n            &nbsp;\n          {{/if}}\n        </div>\n        <div class='label'>Average</div>\n      </div>\n  \n      <div class='metric'>\n        <div class='number'>\n          {{#if this.isLoading}}\n            <FaIcon @icon='circle-notch' @spin={{true}} />\n          {{else}}\n            &nbsp;\n            {{number-format\n              this.standardDeviation\n              style=(get this.formattedStyle this.selectedMetric.format)\n              maximumFractionDigits=2\n              dashZero=true\n            }}\n            &nbsp;\n          {{/if}}\n        </div>\n        <div class='label'>Standard Deviation</div>\n      </div>\n    </section>\n  \n    <section class='breakdown-table'>\n      {{#unless this.isLoading}}\n        <ActiveTable @columns={{this.tableColumns}} @sortedBy={{this.sort}}>\n          {{#each this.sortedValues as |value|}}\n            <tr class={{unless value.included 'disabled'}}>\n              <td>\n                <Input @type='checkbox' @checked={{value.included}} />\n                {{value.entity.name}}\n              </td>\n  \n              <td class='text-right'>\n                {{number-format\n                  (get value this.periodType)\n                  style=(get this.formattedStyle this.selectedMetric.format)\n                  maximumFractionDigits=2\n                  dashZero=true\n                }}\n              </td>\n  \n              <td\n                class='text-right\n                  {{if this.kpi.warnings.length \"warning\" \"no-warning\"}}'\n              >\n                {{#if (and (get value this.periodType) this.average)}}\n                  {{number-format\n                    (math (get value this.periodType) '-' this.average)\n                    style=(get this.formattedStyle this.selectedMetric.format)\n                    maximumFractionDigits=2\n                    dashZero=true\n                  }}\n                {{/if}}\n              </td>\n            </tr>\n          {{/each}}\n        </ActiveTable>\n      {{/unless}}\n    </section>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"Bu0zYU3o\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@clickOutsideToClose\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[true,true,\\\"modal breakdown\\\",\\\"block-module\\\",[28,[37,1],[[30,0],[30,0,[\\\"close\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button float-end close\\\"],[24,4,\\\"button\\\"],[4,[38,1],[[30,0],[30,0,[\\\"close\\\"]]],null],[12],[1,\\\"×\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Breakdown of \\\"],[1,[30,0,[\\\"selectedGroup\\\",\\\"name\\\"]]],[1,\\\" Group\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,[30,0,[\\\"selectedMetric\\\",\\\"name\\\"]]],[1,\\\"\\\\n      —\\\\n      \\\"],[1,[52,[28,[37,7],[[30,0,[\\\"periodType\\\"]],\\\"ytd\\\"],null],\\\"Year to\\\"]],[1,\\\"\\\\n      \\\"],[1,[28,[35,8],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],\\\"MMMM YYYY\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"chart\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[[30,0,[\\\"chartData\\\",\\\"columns\\\"]],\\\"0.length\\\"],null],3],null],[[[1,\\\"      \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Variation from the average, by store\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,14],null,[[\\\"@data\\\",\\\"@size\\\",\\\"@legend\\\",\\\"@grid\\\",\\\"@axis\\\",\\\"@tooltip\\\",\\\"@padding\\\",\\\"@point\\\",\\\"@regions\\\"],[[30,0,[\\\"chartData\\\"]],[30,0,[\\\"size\\\"]],[30,0,[\\\"legend\\\"]],[30,0,[\\\"grid\\\"]],[30,0,[\\\"axis\\\"]],[30,0,[\\\"tooltip\\\"]],[30,0,[\\\"padding\\\"]],[30,0,[\\\"point\\\"]],[30,0,[\\\"regions\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[28,[37,12],[[30,0,[\\\"chartData\\\",\\\"columns\\\"]],\\\"0.length\\\"],null],1],null],[[[1,\\\"      \\\"],[10,2],[14,0,\\\"ptl-placeholder no-data\\\"],[12],[1,\\\"There must be at least three values for\\\\n        a chart to be shown.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,2],[14,0,\\\"ptl-placeholder no-data\\\"],[12],[1,\\\"There is no data for\\\\n        \\\"],[1,[28,[35,8],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],\\\"MMMM YYYY\\\"],null]],[1,\\\".\\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]],[]]]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"stats\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@icon\\\",\\\"@spin\\\"],[\\\"circle-notch\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"           \\\\n          \\\"],[1,[28,[35,18],[[30,0,[\\\"average\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,12],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"selectedMetric\\\",\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n           \\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"Average\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@icon\\\",\\\"@spin\\\"],[\\\"circle-notch\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"           \\\\n          \\\"],[1,[28,[35,18],[[30,0,[\\\"standardDeviation\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,12],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"selectedMetric\\\",\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n           \\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"Standard Deviation\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"breakdown-table\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"      \\\"],[8,[39,20],null,[[\\\"@columns\\\",\\\"@sortedBy\\\"],[[30,0,[\\\"tableColumns\\\"]],[30,0,[\\\"sort\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"sortedValues\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[15,0,[52,[51,[30,1,[\\\"included\\\"]]],\\\"disabled\\\"]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,1,[\\\"included\\\"]]]],null],[1,\\\"\\\\n              \\\"],[1,[30,1,[\\\"entity\\\",\\\"name\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,18],[[28,[37,12],[[30,1],[30,0,[\\\"periodType\\\"]]],null]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,12],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"selectedMetric\\\",\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                \\\",[52,[30,0,[\\\"kpi\\\",\\\"warnings\\\",\\\"length\\\"]],\\\"warning\\\",\\\"no-warning\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,26],[[28,[37,12],[[30,1],[30,0,[\\\"periodType\\\"]]],null],[30,0,[\\\"average\\\"]]],null],[[[1,\\\"                \\\"],[1,[28,[35,18],[[28,[37,27],[[28,[37,12],[[30,1],[30,0,[\\\"periodType\\\"]]],null],\\\"-\\\",[30,0,[\\\"average\\\"]]],null]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,12],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"selectedMetric\\\",\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"value\\\"],false,[\\\"modal-dialog\\\",\\\"action\\\",\\\"header\\\",\\\"button\\\",\\\"h1\\\",\\\"h2\\\",\\\"if\\\",\\\"eq\\\",\\\"moment-format\\\",\\\"section\\\",\\\"loading-icon\\\",\\\"gt\\\",\\\"get\\\",\\\"h3\\\",\\\"c3-chart\\\",\\\"p\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"number-format\\\",\\\"unless\\\",\\\"active-table\\\",\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"td\\\",\\\"input\\\",\\\"and\\\",\\\"math\\\"]]\",\n    \"moduleName\": \"portal/components/metric-breakdown.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    store: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    numberFormat: (0, _service.inject)(),\n    // To be passed in\n    accountType: null,\n    // 'balances' or 'kpis'\n    selectedGroup: null,\n    // record\n    selectedMetric: null,\n    // record\n    periodType: 'month',\n    // or 'ytd'\n\n    formattedStyle: {\n      PERCENTAGE: 'percent',\n      NUMBER: 'decimal',\n      CURRENCY: 'currency'\n    },\n    /**\n     * A collection of month, ytd, and entity values. Populated by loadData().\n     * @type {Array}\n     * @property {[Number]} [].month\n     * @property {[Number]} [].ytd\n     * @property {Entity} [].entity\n     * @property {boolean} [].included\n     */\n    values: [],\n    isLoading: false,\n    periodTypeOptions: [{\n      value: 'month',\n      label: 'Monthly'\n    }, {\n      value: 'ytd',\n      label: 'YTD'\n    }],\n    entities: (0, _object.computed)('selectedGroup.members', 'session.data.authenticated.user.role', 'sessionData.user', async function () {\n      const members = await (0, _object.get)(this, 'selectedGroup.members');\n      const memberEntities = await Promise.all(members.map(member => (0, _object.get)(member, 'entity')));\n      if ((0, _object.get)(this, 'session.data.authenticated.user.role') === 'admin') return memberEntities;\n      return memberEntities.filter(e => {\n        if ((0, _object.get)(this, 'sessionData.user')?.includesSomeClaimsAboutEntity(e.id, 'canAdminFinancialReporting', 'canManageFinancialReporting', 'canViewFinancialReporting')) return true;\n      });\n    }),\n    tableColumns: (0, _object.computed)('periodType', function () {\n      return [{\n        name: 'Entity',\n        key: 'entity.name',\n        width: 3\n      }, {\n        name: 'Value',\n        key: (0, _object.get)(this, 'periodType'),\n        width: 2\n      }, {\n        name: 'Difference',\n        key: '',\n        width: 2\n      }];\n    }),\n    sort: ['month:asc'],\n    sortedValues: (0, _computed.sort)('values', 'sort'),\n    maintainSortOrder: (0, _object.observer)('periodType', function () {\n      const sort = (0, _object.get)(this, 'sort').objectAt(0);\n      const periodType = (0, _object.get)(this, 'periodType');\n\n      // Swap month or YTD for the new periodType. Does nothing if sorted by something else.\n      (0, _object.set)(this, 'sort', [sort.replace(/month|ytd/, periodType)]);\n    }),\n    /**\n     * Populates the values field.\n     * @returns {Promise<void>} - Promise that resolves once the values field has been set.\n     */\n    loadData: (0, _evented.on)('init', async function () {\n      const reportType = (0, _object.get)(this, 'accountType');\n      const metricId = (0, _object.get)(this, 'selectedMetric.id');\n      const entities = await (0, _object.get)(this, 'entities');\n      const entityIds = entities.map(entity => (0, _object.get)(entity, 'id'));\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const token = (0, _object.get)(this, 'session.data.authenticated.access_token');\n      const periodType = (0, _object.get)(this, 'periodType');\n      (0, _object.set)(this, 'isLoading', true);\n      return this.loadReport(reportType, metricId, entityIds, token, period, periodType).then(report => {\n        const values = this.prepareReport(report, entities);\n        (0, _object.set)(this, 'values', values);\n        (0, _object.set)(this, 'isLoading', false);\n      });\n    }),\n    /**\n     * Retrieves a full report from the API.\n     * @param {string} reportType - Either 'balances' or 'kpis'.\n     * @param {string} metricId\n     * @param {string[]} entityIds\n     * @param {string} token - Bearer token for authentication with the API.\n     * @param {string} period - Date string in YYYY-MM format.\n     * @param {string} periodType - 'month' or 'ytd'.\n     * @returns {Promise<Object>} - Full response from the server.\n     */\n    loadReport(reportType, metricId, entityIds, token, period, periodType) {\n      const url = `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/reports/${reportType}`;\n      const payload = {\n        periodStart: period,\n        periodEnd: period,\n        periodTypes: [periodType],\n        entities: entityIds,\n        metrics: [metricId],\n        type: reportType\n      };\n      const headers = {\n        Authorization: `Bearer ${token}`\n      };\n      return _jquery.default.ajax({\n        url,\n        headers,\n        data: JSON.stringify(payload),\n        method: 'POST',\n        contentType: 'application/json'\n      });\n    },\n    /**\n     * Coverts a plain report from the API into an array of values for each entity.\n     * @param {Object} report - API /reports response.\n     * @param {Entity[]} entities - Array of entities to be mapped to values.\n     * @returns {Object[]} - A collection of values holding month, ytd, and entity keys.\n     *   Month and YTD values could be null. The entity key will hold the hold entity record.\n     */\n    prepareReport(report, entities) {\n      const periodType = (0, _object.get)(this, 'periodType');\n      return entities.map(entity => {\n        // Find the entry in the report for this entity\n        const series = (0, _object.get)(report, 'data.0.series').findBy('entity', (0, _object.get)(entity, 'id'));\n\n        // Extract month and YTD values for the first period\n        const period = this.extractFigures(series);\n        const periodValue = (0, _object.get)(period, periodType);\n\n        // Attach the entity as extra metadata for display\n        (0, _object.set)(period, 'entity', entity);\n        (0, _object.set)(period, 'included', periodValue != null);\n        return period;\n      });\n    },\n    extractFigures(entity) {\n      return {\n        month: (0, _object.get)(entity || {}, 'periods.0.periodTypes.month.value'),\n        ytd: (0, _object.get)(entity || {}, 'periods.0.periodTypes.ytd.value')\n      };\n    },\n    /**\n     * Stats\n     */\n\n    average: (0, _object.computed)('values.@each.{month,ytd,included}', 'periodType', function () {\n      const values = (0, _object.get)(this, 'values').filterBy('included');\n      const periodType = (0, _object.get)(this, 'periodType');\n      let total = 0;\n      let count = 0;\n\n      // We're counting all included values, even if they're null\n      values.forEach(value => {\n        const periodValue = Number((0, _object.get)(value, periodType));\n        total += periodValue || 0;\n        count++;\n      });\n\n      // Avoid dividing by zero if there's no data\n      return total / (count || 1);\n    }),\n    standardDeviation: (0, _object.computed)('values.@each.{month,ytd,included}', 'periodType', 'average', function () {\n      const values = (0, _object.get)(this, 'values').filterBy('included');\n      const average = (0, _object.get)(this, 'average');\n      const periodType = (0, _object.get)(this, 'periodType');\n      let total = 0;\n      let count = 0;\n      values.forEach(value => {\n        const periodValue = (0, _object.get)(value, periodType);\n        if (periodValue != null) {\n          total += (periodValue - average) ** 2;\n          count++;\n        }\n      });\n\n      // Avoid dividing by zero if there's no data\n      return Math.sqrt(total / (count - 1 || 1));\n    }),\n    /**\n     * Chart Config\n     */\n\n    size: {\n      height: 200,\n      width: 506\n    },\n    legend: {\n      show: false\n    },\n    tooltip: (0, _object.computed)('selectedMetric.format', function () {\n      const format = (0, _object.get)(this, 'selectedMetric.format');\n      return {\n        show: true,\n        format: {\n          value(value) {\n            if (format === 'PERCENTAGE') {\n              return (0, _object.get)(this, 'numberFormat').format(value, {\n                style: 'percent',\n                dashZero: true,\n                maximumSignificantDigits: 4\n              });\n            } else if (format === 'CURRENCY') {\n              return (0, _object.get)(this, 'numberFormat').format(value, {\n                style: 'currency',\n                maximumFractionDigits: 0\n              });\n            }\n          }\n        }\n      };\n    }),\n    regions: [{\n      axis: 'y',\n      end: 0,\n      class: 'regionNegative'\n    }, {\n      axis: 'y',\n      start: 0,\n      class: 'regionPositive'\n    }],\n    grid: {\n      x: {\n        show: false\n      },\n      y: {\n        show: true\n      }\n    },\n    axis: (0, _object.computed)('average', 'periodType', 'values.@each.{included,month,ytd}', function () {\n      const values = (0, _object.get)(this, 'values').filterBy('included');\n      const average = (0, _object.get)(this, 'average');\n      const periodType = (0, _object.get)(this, 'periodType');\n      let min = Infinity;\n      let max = -Infinity;\n      values.forEach(value => {\n        const periodValue = (0, _object.get)(value, periodType);\n        if (periodValue == null) return;\n        const deviation = periodValue - average;\n        if (deviation < min) min = deviation;\n        if (deviation > max) max = deviation;\n      });\n      return {\n        x: {\n          type: 'category' // this needed to load string x value\n        },\n        y: {\n          min,\n          max\n        }\n      };\n    }),\n    padding: {\n      top: 0,\n      right: 0,\n      bottom: 0,\n      left: 0\n    },\n    point: {\n      show: false\n    },\n    chartData: (0, _object.computed)('sortedValues.@each.{month,ytd,included,entity}', 'selectedMetric.format', 'average', 'periodType', function () {\n      const columns = [['Entity Name'], ['Difference'], ['Actual']];\n      const values = (0, _object.get)(this, 'sortedValues').filterBy('included');\n      values.forEach(value => {\n        const entityName = (0, _object.get)(value, 'entity.name');\n        const periodType = (0, _object.get)(this, 'periodType');\n        const periodValue = (0, _object.get)(value, periodType);\n        const average = (0, _object.get)(this, 'average');\n        if (periodValue != null) {\n          columns[0].push(entityName);\n          columns[1].push(periodValue - average);\n          columns[2].push(periodValue);\n        }\n      });\n      const x = 'Entity Name';\n      const types = {\n        Difference: 'bar',\n        Actual: 'none'\n      };\n      return {\n        columns,\n        x,\n        types\n      };\n    }),\n    actions: {\n      modalToggle() {\n        this.toggleProperty('modalToggle');\n      }\n    }\n  }));\n});","define(\"portal/components/mobile-side-bar\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='entity'\n      />\n    {{/if}}\n  \n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    {{#each @tabs as |tab|}}\n      {{#unless tab.sections}}\n        <sidebar.Item\n          @route={{tab.route}}\n          @icon={{tab.icon}}\n          @title={{tab.name}}\n          @model={{tab.model}}\n          @sup={{this.item.sup}}\n        />\n      {{/unless}}\n    {{/each}}\n  \n    {{#if this.operationsSection.items.length}}\n      <sidebar.Section @title={{t 'common.Operations'}}>\n        {{#each this.operationsSection.items as |item|}}\n          <sidebar.Item\n            @route={{item.route}}\n            @icon={{item.icon}}\n            @title={{item.name}}\n            @model={{item.model}}\n            @sup={{item.sup}}\n          />\n        {{/each}}\n      </sidebar.Section>\n    {{/if}}\n  \n    {{#if this.reportsSection.items.length}}\n      <sidebar.Section\n        @title={{t 'common.Reports'}}\n        @content={{this.reportsSection}}\n      >\n        {{#each this.reportsSection.items as |item|}}\n          <sidebar.Item\n            @route={{item.route}}\n            @icon={{item.icon}}\n            @title={{item.name}}\n            @model={{item.model}}\n            @sup={{item.sup}}\n          />\n        {{/each}}\n      </sidebar.Section>\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"pk6bOEem\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,2]],null]],null],null,[[[41,[51,[30,3,[\\\"sections\\\"]]],[[[1,\\\"      \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\",\\\"@sup\\\"],[[30,3,[\\\"route\\\"]],[30,3,[\\\"icon\\\"]],[30,3,[\\\"name\\\"]],[30,3,[\\\"model\\\"]],[30,0,[\\\"item\\\",\\\"sup\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[3]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"operationsSection\\\",\\\"items\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\"],[[28,[37,3],[\\\"common.Operations\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"operationsSection\\\",\\\"items\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\",\\\"@sup\\\"],[[30,4,[\\\"route\\\"]],[30,4,[\\\"icon\\\"]],[30,4,[\\\"name\\\"]],[30,4,[\\\"model\\\"]],[30,4,[\\\"sup\\\"]]]],null],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsSection\\\",\\\"items\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\",\\\"@content\\\"],[[28,[37,3],[\\\"common.Reports\\\"],null],[30,0,[\\\"reportsSection\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"reportsSection\\\",\\\"items\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\",\\\"@sup\\\"],[[30,5,[\\\"route\\\"]],[30,5,[\\\"icon\\\"]],[30,5,[\\\"name\\\"]],[30,5,[\\\"model\\\"]],[30,5,[\\\"sup\\\"]]]],null],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\",\\\"@tabs\\\",\\\"tab\\\",\\\"item\\\",\\\"item\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"each\\\",\\\"-track-array\\\",\\\"unless\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-side-bar.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"media\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n    }\n    get operationsSection() {\n      const operationsTab = this.args.tabs.find(ot => ot.name === 'Operations') || {\n        sections: []\n      };\n      const operationsSection = {\n        name: this.intl.t('common.Operations'),\n        items: (operationsTab.sections || []).flatMap(section => {\n          return (section.routes || []).map(({\n            route,\n            icon,\n            name,\n            sup\n          }) => ({\n            route,\n            icon,\n            name,\n            sup\n          }));\n        })\n      };\n      return operationsSection;\n    }\n    get reportsSection() {\n      const reportsTab = this.args.tabs.find(ot => ot.name === 'Reports') || {\n        sections: []\n      };\n      const reportsSection = {\n        name: this.intl.t('common.Reports'),\n        items: (reportsTab.sections || []).flatMap(section => {\n          return (section.routes || []).map(({\n            route,\n            icon,\n            name,\n            sup\n          }) => ({\n            route,\n            icon,\n            name,\n            sup\n          }));\n        })\n      };\n      return reportsSection;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"media\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/mobile-side-menu\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='bg-light mobile-side-menu' id='mobile-side-menu'>\n    {{yield}}\n  </div>\n  \n  <div\n    class='mobile-side-menu__overlay'\n    tabindex='-1'\n    id='mobile-side-menu__overlay'\n    {{on 'focus' this.mobileMenu.closeMenu}}\n  >\n  \n  </div>\n  */\n  {\n    \"id\": \"HdCVM266\",\n    \"block\": \"[[[10,0],[14,0,\\\"bg-light mobile-side-menu\\\"],[14,1,\\\"mobile-side-menu\\\"],[12],[1,\\\"\\\\n  \\\"],[18,1,null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[11,0],[24,0,\\\"mobile-side-menu__overlay\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[24,1,\\\"mobile-side-menu__overlay\\\"],[4,[38,2],[\\\"focus\\\",[30,0,[\\\"mobileMenu\\\",\\\"closeMenu\\\"]]],null],[12],[1,\\\"\\\\n\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-side-menu.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"mobileMenu\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"mobileMenu\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/mobile-title-bar\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='mobile-title-bar__container px-4 d-flex align-items-center justify-content-between link-light'\n  >\n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"27XRVCnI\",\n    \"block\": \"[[[10,0],[14,0,\\\"mobile-title-bar__container px-4 d-flex align-items-center justify-content-between link-light\\\"],[12],[1,\\\"\\\\n  \\\"],[18,1,null],[1,\\\"\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/mobile-title-bar/avatar\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='ms-auto' data-test-mobile-title-popover>\n    <div class='d-flex align-items-center'>\n      <a\n        href='https://buildaprice.zendesk.com/hc/en-us'\n        target='_blank'\n        class='d-flex align-items-center link-light title-bar__icon me-2'\n        rel='noopener noreferrer'\n      >\n        <FaIcon @icon='question-circle' />\n      </a>\n  \n      <PopOver @direction='bottom-left' as |po|>\n        <FaIcon\n          @icon='user-circle'\n          class='link-light title-bar__icon title-bar__icon--lg'\n          role='button'\n        />\n        <po.Content style='min-width: 150px;'>\n          {{#unless this.adminConsoleIsActive}}\n            {{#unless (includes-feature-flags 'userIsWorker')}}\n              <LinkTo\n                @route='entity.settings.profile'\n                @model={{this.sessionData.entity.id}}\n                class='dropdown-item text-nowrap fs-4 py-2'\n                data-test-settings-link\n              >{{t 'common.Settings'}}</LinkTo>\n  \n              <div class='dropdown-divider'></div>\n            {{/unless}}\n          {{/unless}}\n  \n          {{yield}}\n  \n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-4 py-2'\n            {{on 'click' this.logout}}\n            data-test-title-bar-logout-button\n          >{{t 'common.Sign out'}}</button>\n        </po.Content>\n      </PopOver>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"qWjCMqbF\",\n    \"block\": \"[[[10,0],[14,0,\\\"ms-auto\\\"],[14,\\\"data-test-mobile-title-popover\\\",\\\"\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,3],[14,6,\\\"https://buildaprice.zendesk.com/hc/en-us\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"d-flex align-items-center link-light title-bar__icon me-2\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[\\\"question-circle\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,3],null,[[\\\"@direction\\\"],[\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,2],[[24,0,\\\"link-light title-bar__icon title-bar__icon--lg\\\"],[24,\\\"role\\\",\\\"button\\\"]],[[\\\"@icon\\\"],[\\\"user-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"Content\\\"]],[[24,5,\\\"min-width: 150px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"adminConsoleIsActive\\\"]]],[[[41,[51,[28,[37,5],[\\\"userIsWorker\\\"],null]],[[[1,\\\"            \\\"],[8,[39,6],[[24,0,\\\"dropdown-item text-nowrap fs-4 py-2\\\"],[24,\\\"data-test-settings-link\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.profile\\\",[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Settings\\\"],null]]],[]]]]],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"dropdown-divider\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[18,2,null],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-4 py-2\\\"],[24,\\\"data-test-title-bar-logout-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"logout\\\"]]],null],[12],[1,[28,[35,7],[\\\"common.Sign out\\\"],null]],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[1]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"po\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"pop-over\\\",\\\"unless\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"t\\\",\\\"yield\\\",\\\"button\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar/avatar.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n    }\n    get adminConsoleIsActive() {\n      return this.router.currentRouteName.includes('admin');\n    }\n    goBack(backRoute) {\n      this.router.transitionTo(backRoute);\n    }\n    logout() {\n      // TODO dunno if this is the right approach, hard to bubble\n      // an action from here to application Route as was done before.\n      this.session.invalidate();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"goBack\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goBack\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"logout\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"logout\"), _class.prototype), _class));\n});","define(\"portal/components/mobile-title-bar/avatar/avatar-link\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <a\n    href={{@link}}\n    target='_blank'\n    class='dropdown-item text-nowrap fs-4 py-2'\n    rel='noopener noreferrer'\n  >\n    {{@label}}\n  </a>\n  */\n  {\n    \"id\": \"8sz97OSx\",\n    \"block\": \"[[[10,3],[15,6,[30,1]],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"dropdown-item text-nowrap fs-4 py-2\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[30,2]],[1,\\\"\\\\n\\\"],[13]],[\\\"@link\\\",\\\"@label\\\"],false,[\\\"a\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar/avatar/avatar-link.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/mobile-title-bar/back-button\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <FaIcon\n    @icon='arrow-left'\n    class='mobile-title-bar__icon'\n    @size='lg'\n    role='button'\n    {{on 'click' (fn this.goBack @titleBarBack)}}\n    data-test-mobile-title-bar-back-button\n  />\n  */\n  {\n    \"id\": \"crPxpKve\",\n    \"block\": \"[[[8,[39,0],[[24,0,\\\"mobile-title-bar__icon\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"data-test-mobile-title-bar-back-button\\\",\\\"\\\"],[4,[38,1],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"goBack\\\"]],[30,1]],null]],null]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"arrow-left\\\",\\\"lg\\\"]],null]],[\\\"@titleBarBack\\\"],false,[\\\"fa-icon\\\",\\\"on\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar/back-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    goBack(backRoute) {\n      this.router.transitionTo(backRoute);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"goBack\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goBack\"), _class.prototype), _class));\n});","define(\"portal/components/mobile-title-bar/burger-button\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <FaIcon\n    @icon='bars'\n    class='mobile-title-bar__icon'\n    @size='lg'\n    role='button'\n    {{on 'click' this.mobileMenu.toggleMenu}}\n    data-test-mobile-title-bar-side-menu-button\n  />\n  */\n  {\n    \"id\": \"WB21bS5b\",\n    \"block\": \"[[[8,[39,0],[[24,0,\\\"mobile-title-bar__icon\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"data-test-mobile-title-bar-side-menu-button\\\",\\\"\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"mobileMenu\\\",\\\"toggleMenu\\\"]]],null]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"bars\\\",\\\"lg\\\"]],null]],[],false,[\\\"fa-icon\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar/burger-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"mobileMenu\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"mobileMenu\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/mobile-title-bar/page-title\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='fs-3 fw-bold overflow-auto mobile-title-bar__title-text'\n  >{{@title}}</div>\n  */\n  {\n    \"id\": \"t2HYUDUA\",\n    \"block\": \"[[[10,0],[14,0,\\\"fs-3 fw-bold overflow-auto mobile-title-bar__title-text\\\"],[12],[1,[30,1]],[13]],[\\\"@title\\\"],false,[\\\"div\\\"]]\",\n    \"moduleName\": \"portal/components/mobile-title-bar/page-title.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/modal-dialog\", [\"exports\", \"@ember/runloop\", \"ember-modal-dialog/components/modal-dialog\"], function (_exports, _runloop, _modalDialog) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/runloop\",0,\"ember-modal-dialog/components/modal-dialog\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const ESC_KEY = 27;\n  const defaultModalDialogClass = 'ember-modal-dialog';\n\n  // ember-modal-dialog's own ModalDialog converted to a Glimmer component at\n  // 4.1.5 (portal was pinned at 4.1.4, the last classic version), which dropped\n  // didInsertElement/willDestroyElement and the flattened `this.onClose`. This\n  // subclass still inherits the addon's own template through the prototype\n  // chain - Ember resolves a Glimmer component's associated template by\n  // walking up from the constructor, so there's no need for a template of our\n  // own here, and none of the addon's ~20 args need re-forwarding.\n  //\n  // Lifecycle: `constructor` runs before this component's element exists in\n  // the DOM, so the element/stacking capture that used to happen in\n  // didInsertElement is deferred to the same 'afterRender' queue this app\n  // already uses elsewhere (see app/mixins/scroll-route.js) - still flushed\n  // synchronously within the same runloop, well before a user could press a\n  // key, so the timing is equivalent. `willDestroy` (unlike\n  // willDestroyElement) is a real Glimmer lifecycle hook, so teardown needs no\n  // such deferral.\n  class ModalDialog extends _modalDialog.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"modalIndex\", null);\n      _defineProperty(this, \"modalElement\", null);\n      this._initEscListener();\n      (0, _runloop.scheduleOnce)('afterRender', this, this._captureModalPosition);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      document.body.removeEventListener('keyup', this._boundCloseOnEscapeKey);\n    }\n    _captureModalPosition() {\n      if (this.isDestroying || this.isDestroyed) return;\n      const modalElements = document.getElementsByClassName(defaultModalDialogClass);\n      this.modalIndex = modalElements.length;\n      this.modalElement = modalElements[modalElements.length - 1];\n    }\n    _initEscListener() {\n      this._boundCloseOnEscapeKey = this.closeOnEscapeKey.bind(this);\n      document.body.addEventListener('keyup', this._boundCloseOnEscapeKey);\n    }\n    closeOnEscapeKey(event) {\n      // The listener is removed in willDestroy, but that hook runs in the\n      // runloop's destroy queue - a later phase than the one that invalidates\n      // `this.args`. A keyup landing in that gap would otherwise throw here\n      // instead of the classic version's `this.onClose`, which stayed a plain\n      // property and didn't go stale early.\n      if (this.isDestroying || this.isDestroyed) return;\n      if (event.keyCode === ESC_KEY && this.args.onClose) {\n        const openModals = document.getElementsByClassName(defaultModalDialogClass).length;\n        // if we are not the top modal, don't do anything\n        if (openModals !== this.modalIndex) return;\n        // is the event target inside the modal?\n        if (this.modalElement.contains(event.target)) {\n          // if it is, focus outside the modal\n          event.target.blur();\n        } else {\n          // otherwise, close the modal\n          this.args.onClose();\n        }\n      }\n    }\n  }\n  _exports.default = ModalDialog;\n});","define(\"portal/components/module-navigation/admin\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    <sidebar.BackButton @buttonText='Back to home' @route='index' />\n  \n    <sidebar.Item @route='admin.entities' @icon='building' @title='Entities' />\n    <sidebar.Item @route='admin.demo-entity' @icon='video' @title='Demo entity' />\n  \n    <sidebar.Item @route='admin.licensees' @icon='users' @title='Licensees' />\n    <sidebar.Item\n      @route='admin.announcements'\n      @icon='bell'\n      @title='Announcements'\n    />\n    <sidebar.Item\n      @route='admin.billing-report'\n      @icon='file-invoice-dollar'\n      @title='Billing report'\n    />\n  </Sidebar>\n  */\n  {\n    \"id\": \"cOj9pGxr\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[\\\"Back to home\\\",\\\"index\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"admin.entities\\\",\\\"building\\\",\\\"Entities\\\"]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"admin.demo-entity\\\",\\\"video\\\",\\\"Demo entity\\\"]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"admin.licensees\\\",\\\"users\\\",\\\"Licensees\\\"]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"admin.announcements\\\",\\\"bell\\\",\\\"Announcements\\\"]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"admin.billing-report\\\",\\\"file-invoice-dollar\\\",\\\"Billing report\\\"]],null],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/admin.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/dashboard\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='index'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"jPQbP6iD\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"index\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/financials\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton @buttonText='Back to modules' @route='entity' />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'canUseFPDashboard'\n        'canUseFPKpis'\n        'canUseFPItmCustomerPAndL'\n        'canUseFPProfitAndLoss'\n        'canUseFPBalanceSheet'\n        'canUseFPOtherData'\n        'canUseFPPersonalData'\n        'canUseFPDataAvailability'\n      )\n    }}\n      <sidebar.Title @title={{t 'common.Reports'}} />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPDashboard')}}\n      <sidebar.Item\n        @route='entity.financials.dashboard'\n        @icon='tachometer-alt'\n        @title='Dashboard'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPKpis')}}\n      <sidebar.Item\n        @route='entity.financials.reports.kpis'\n        @icon='key'\n        @title='KPIs'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPItmCustomerPAndL')}}\n      <sidebar.Item\n        @route='entity.financials.reports.general-ledger.itm-profit-and-loss'\n        @icon='columns'\n        @title='ITM custom P&L'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPProfitAndLoss')}}\n      <sidebar.Item\n        @route='entity.financials.reports.general-ledger.profit-and-loss'\n        @icon='money-bill'\n        @title='Profit and loss'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPBalanceSheet')}}\n      <sidebar.Item\n        @route='entity.financials.reports.general-ledger.balance-sheet'\n        @icon='balance-scale'\n        @title='Balance sheet'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPOtherData')}}\n      <sidebar.Item\n        @route='entity.financials.reports.general-ledger.other-data'\n        @icon='database'\n        @title='Other data'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPPersonalData')}}\n      <sidebar.Item\n        @route='entity.financials.reports.general-ledger.personal-data'\n        @icon='user'\n        @title='Personal data'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPDataAvailability')}}\n      <sidebar.Item\n        @route='entity.financials.reports.imports'\n        @icon='table'\n        @title='Data availability'\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseFPImportManager')}}\n      <sidebar.Title @title='Data' />\n      <sidebar.Item\n        @route='entity.financials.import'\n        @icon='database'\n        @title='Import manager'\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseFPStrategies')}}\n      <sidebar.Title @title='Planning' />\n      <sidebar.Item\n        @route='entity.financials.planning.strategies'\n        @icon='map'\n        @title='Strategies'\n      />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'canUseFPReportingPeriod'\n        'canUseFPChartOfAccounts'\n        'canUseFPKpisConfig'\n        'canUseFPGroups'\n      )\n    }}\n      <sidebar.Title @title='Configuration' />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPReportingPeriod')}}\n      <sidebar.Item\n        @route='entity.financials.general'\n        @title='Reporting period'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPChartOfAccounts')}}\n      <sidebar.Item\n        @route='entity.financials.chart-of-accounts'\n        @title='Chart of accounts'\n      />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPKpisConfig')}}\n      <sidebar.Item @route='entity.financials.kpis' @title='KPIs' />\n    {{/if}}\n    {{#if (includes-feature-flags 'canUseFPGroups')}}\n      <sidebar.Item @route='entity.financials.groups' @title='Groups' />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"Q6RaWv5/\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[\\\"Back to modules\\\",\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,3],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,4],[[28,[37,5],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canUseFPDashboard\\\",\\\"canUseFPKpis\\\",\\\"canUseFPItmCustomerPAndL\\\",\\\"canUseFPProfitAndLoss\\\",\\\"canUseFPBalanceSheet\\\",\\\"canUseFPOtherData\\\",\\\"canUseFPPersonalData\\\",\\\"canUseFPDataAvailability\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,7],[\\\"common.Reports\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPDashboard\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.dashboard\\\",\\\"tachometer-alt\\\",\\\"Dashboard\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPKpis\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.kpis\\\",\\\"key\\\",\\\"KPIs\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPItmCustomerPAndL\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.general-ledger.itm-profit-and-loss\\\",\\\"columns\\\",\\\"ITM custom P&L\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPProfitAndLoss\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.general-ledger.profit-and-loss\\\",\\\"money-bill\\\",\\\"Profit and loss\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPBalanceSheet\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.general-ledger.balance-sheet\\\",\\\"balance-scale\\\",\\\"Balance sheet\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPOtherData\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.general-ledger.other-data\\\",\\\"database\\\",\\\"Other data\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPPersonalData\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.general-ledger.personal-data\\\",\\\"user\\\",\\\"Personal data\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPDataAvailability\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.reports.imports\\\",\\\"table\\\",\\\"Data availability\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseFPImportManager\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Data\\\"]],null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.import\\\",\\\"database\\\",\\\"Import manager\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseFPStrategies\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Planning\\\"]],null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.financials.planning.strategies\\\",\\\"map\\\",\\\"Strategies\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canUseFPReportingPeriod\\\",\\\"canUseFPChartOfAccounts\\\",\\\"canUseFPKpisConfig\\\",\\\"canUseFPGroups\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Configuration\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPReportingPeriod\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@title\\\"],[\\\"entity.financials.general\\\",\\\"Reporting period\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPChartOfAccounts\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@title\\\"],[\\\"entity.financials.chart-of-accounts\\\",\\\"Chart of accounts\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPKpisConfig\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@title\\\"],[\\\"entity.financials.kpis\\\",\\\"KPIs\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[\\\"canUseFPGroups\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@title\\\"],[\\\"entity.financials.groups\\\",\\\"Groups\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"includes-some-feature-flags\\\",\\\"t\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/financials.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/module-dashboard\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    <sidebar.EntitySelector />\n  </Sidebar>\n  */\n  {\n    \"id\": \"DmjVH+aq\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/module-dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/module-navigation/operations/incoming\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='entity'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseBills')}}\n      <sidebar.Item\n        @icon='file-invoice-dollar'\n        @title={{t 'common.Bills'}}\n        @route='entity.builda-price.operations.incoming.bills'\n      />\n      {{#if (includes-feature-flags 'canUseLegacyBills')}}\n        <sidebar.Item\n          @icon='file-invoice-dollar'\n          @title={{t 'common.Bills'}}\n          @sup='LEGACY'\n          @route='entity.builda-price.operations.incoming.bills-legacy'\n        />\n      {{/if}}\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseStatements')}}\n      <sidebar.Item\n        @icon='file-lines'\n        @title={{t 'common.Statements'}}\n        @route='entity.builda-price.operations.incoming.statements'\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseTimesheets')}}\n      <sidebar.Item\n        @route='entity.builda-price.operations.incoming.timesheets'\n        @icon='clock'\n        @title={{t 'common.Timesheets'}}\n      />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"okZi701D\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseBills\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@icon\\\",\\\"@title\\\",\\\"@route\\\"],[\\\"file-invoice-dollar\\\",[28,[37,3],[\\\"common.Bills\\\"],null],\\\"entity.builda-price.operations.incoming.bills\\\"]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseLegacyBills\\\"],null],[[[1,\\\"      \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@icon\\\",\\\"@title\\\",\\\"@sup\\\",\\\"@route\\\"],[\\\"file-invoice-dollar\\\",[28,[37,3],[\\\"common.Bills\\\"],null],\\\"LEGACY\\\",\\\"entity.builda-price.operations.incoming.bills-legacy\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseStatements\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@icon\\\",\\\"@title\\\",\\\"@route\\\"],[\\\"file-lines\\\",[28,[37,3],[\\\"common.Statements\\\"],null],\\\"entity.builda-price.operations.incoming.statements\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseTimesheets\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.operations.incoming.timesheets\\\",\\\"clock\\\",[28,[37,3],[\\\"common.Timesheets\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/operations/incoming.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/operations/outgoing\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='entity'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseInvoices')}}\n      <sidebar.Item\n        @route='entity.builda-price.operations.outgoing.invoices'\n        @icon='file-invoice-dollar'\n        @title={{t 'common.Invoices'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUsePayroll')}}\n      <sidebar.Item\n        @route='entity.builda-price.operations.outgoing.payroll'\n        @icon='money-bill'\n        @title={{t 'common.Payroll'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUsePurchaseOrders')}}\n      <sidebar.Item\n        @route='entity.builda-price.operations.outgoing.purchase-orders'\n        @icon='shopping-cart'\n        @title={{t 'common.Purchase orders'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseReportBuilder')}}\n      <sidebar.Item\n        @route='entity.builda-price.operations.outgoing.report-builder'\n        @icon='file-invoice'\n        @title={{t 'common.Report builder'}}\n      />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"3tzbhJKA\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseInvoices\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.operations.outgoing.invoices\\\",\\\"file-invoice-dollar\\\",[28,[37,3],[\\\"common.Invoices\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUsePayroll\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.operations.outgoing.payroll\\\",\\\"money-bill\\\",[28,[37,3],[\\\"common.Payroll\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUsePurchaseOrders\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.operations.outgoing.purchase-orders\\\",\\\"shopping-cart\\\",[28,[37,3],[\\\"common.Purchase orders\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseReportBuilder\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.operations.outgoing.report-builder\\\",\\\"file-invoice\\\",[28,[37,3],[\\\"common.Report builder\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/operations/outgoing.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/pricing\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton @buttonText='Back to modules' @route='entity' />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    <sidebar.Title @title='Job management' />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='jobList'\n      @title={{t 'shared.estimates.Job list'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='ownTakeoff'\n      @title={{t 'shared.estimates.Own takeoff'}}\n    />\n  \n    <sidebar.Title @title='Configuration' />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='materialRate'\n      @title={{t 'shared.estimates.Material rate'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='flatRateResource'\n      @title={{t 'shared.estimates.Flat rate resource'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='miscTemplate'\n      @title={{t 'shared.estimates.Misc template'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='labourFactor'\n      @title={{t 'shared.estimates.Labour factor'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='overheadTemplates'\n      @title={{t 'shared.estimates.Overhead templates'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='workgangPositions'\n      @title={{t 'shared.estimates.Workgang positions'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='workgangs'\n      @title={{t 'shared.estimates.Workgangs'}}\n    />\n    <sidebar.Item\n      @route='entity.pricing.embedded-page'\n      @model='subcontractorList'\n      @title={{t 'shared.estimates.Subcontractor list'}}\n    />\n  </Sidebar>\n  */\n  {\n    \"id\": \"JgyOobKr\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[\\\"Back to modules\\\",\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,3],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,4],[[28,[37,5],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Job management\\\"]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"jobList\\\",[28,[37,6],[\\\"shared.estimates.Job list\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"ownTakeoff\\\",[28,[37,6],[\\\"shared.estimates.Own takeoff\\\"],null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Configuration\\\"]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"materialRate\\\",[28,[37,6],[\\\"shared.estimates.Material rate\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"flatRateResource\\\",[28,[37,6],[\\\"shared.estimates.Flat rate resource\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"miscTemplate\\\",[28,[37,6],[\\\"shared.estimates.Misc template\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"labourFactor\\\",[28,[37,6],[\\\"shared.estimates.Labour factor\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"overheadTemplates\\\",[28,[37,6],[\\\"shared.estimates.Overhead templates\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"workgangPositions\\\",[28,[37,6],[\\\"shared.estimates.Workgang positions\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"workgangs\\\",[28,[37,6],[\\\"shared.estimates.Workgangs\\\"],null]]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@model\\\",\\\"@title\\\"],[\\\"entity.pricing.embedded-page\\\",\\\"subcontractorList\\\",[28,[37,6],[\\\"shared.estimates.Subcontractor list\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/pricing.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/project\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n  \n    <sidebar.BackButton\n      @buttonText={{t 'common.Back to projects'}}\n      @route='entity.builda-price.projects'\n    />\n  \n    {{#unless sidebar.isCollapsed}}\n      <ProjectSelector\n        @selectedProject={{@selectedProject}}\n        @openProjects={{@openProjects}}\n        @selectedProjectIsLoading={{@selectedProjectIsLoading}}\n        @openProjectsIsLoading={{@openProjectsIsLoading}}\n        @backToProjectsRoute={{'entity.builda-price.projects'}}\n      />\n    {{/unless}}\n  \n    {{#if (includes-some-feature-flags @selectedProject 'canUseTasks')}}\n      <sidebar.Item\n        @route='entity.builda-price.projects.project.tasks'\n        @icon='tasks'\n        @title={{t 'common.Tasks'}}\n        {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        @selectedProject 'canUseQuoteVersions' 'canUseBudgetVersions'\n      )\n    }}\n      <sidebar.Item\n        @route='entity.builda-price.projects.project.financials'\n        @icon='dollar-sign'\n        @title={{t 'common.Financials'}}\n        {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags @selectedProject 'canUseEstimates')}}\n      <sidebar.Item\n        @route='entity.builda-price.projects.project.estimates'\n        @icon='tag'\n        @title={{t 'common.Estimates'}}\n        {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        @selectedProject\n        'canUseDocumentsPage'\n        'canUseProgressPage'\n        'canUseHealthAndSafety'\n      )\n    }}\n      <sidebar.Section @title={{t 'common.Operations'}}>\n        {{#if (includes-feature-flags @selectedProject 'canUseDocumentsPage')}}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.documents'\n            @icon='paperclip'\n            @title={{t 'common.Documents'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n  \n        {{#if (includes-feature-flags @selectedProject 'canUseProgressPage')}}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.progress'\n            @icon='percent'\n            @title={{t 'shared.progress.Labour progress'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n  \n        {{#if (includes-feature-flags @selectedProject 'canUseHealthAndSafety')}}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.health-and-safety'\n            @icon='notes-medical'\n            @title={{t 'common.healthAndSafety'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n      </sidebar.Section>\n  \n      {{#if (includes-feature-flags @selectedProject 'canUseStagePayments')}}\n        <sidebar.Item\n          @route='entity.builda-price.projects.project.stage-payments'\n          @icon='coins'\n          @title={{t 'shared.stage-payments.Stage payments'}}\n          {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n          @model={{@model}}\n        />\n      {{/if}}\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'canUseProjects'\n        'canUseProducts'\n        'canUseUsers'\n        'canUseWorkers'\n        'canUseSubcontractors'\n      )\n    }}\n      <sidebar.Section @title={{t 'common.Configuration'}}>\n        {{#if (includes-feature-flags @selectedProject 'canUseProducts')}}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.products'\n            @icon='cubes'\n            @title={{t 'common.Products'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n  \n        {{#if\n          (includes-some-feature-flags\n            'canUseUsers' 'canUseWorkers' 'canUseSubcontractors'\n          )\n        }}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.people'\n            @icon='users'\n            @title={{t 'common.People'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n  \n        {{#if (includes-feature-flags @selectedProject 'canUseProjects')}}\n          <sidebar.Item\n            @route='entity.builda-price.projects.project.settings'\n            @icon='cog'\n            @title={{t 'common.Settings'}}\n            {{! we need model because ember-elsewhere does not un-render this link before the transition causing the linkTo to error when using mobile navigation }}\n            @model={{@model}}\n          />\n        {{/if}}\n      </sidebar.Section>\n  \n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"2uMzQ1dG\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,1],[\\\"common.Back to projects\\\"],null],\\\"entity.builda-price.projects\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,1,[\\\"isCollapsed\\\"]]],[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\",\\\"@backToProjectsRoute\\\"],[[30,2],[30,3],[30,4],[30,5],\\\"entity.builda-price.projects\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,2],\\\"canUseTasks\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.tasks\\\",\\\"tasks\\\",[28,[37,1],[\\\"common.Tasks\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,2],\\\"canUseQuoteVersions\\\",\\\"canUseBudgetVersions\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.financials\\\",\\\"dollar-sign\\\",[28,[37,1],[\\\"common.Financials\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseEstimates\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.estimates\\\",\\\"tag\\\",[28,[37,1],[\\\"common.Estimates\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,2],\\\"canUseDocumentsPage\\\",\\\"canUseProgressPage\\\",\\\"canUseHealthAndSafety\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Operations\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseDocumentsPage\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.documents\\\",\\\"paperclip\\\",[28,[37,1],[\\\"common.Documents\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseProgressPage\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.progress\\\",\\\"percent\\\",[28,[37,1],[\\\"shared.progress.Labour progress\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseHealthAndSafety\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.health-and-safety\\\",\\\"notes-medical\\\",[28,[37,1],[\\\"common.healthAndSafety\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseStagePayments\\\"],null],[[[1,\\\"      \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.stage-payments\\\",\\\"coins\\\",[28,[37,1],[\\\"shared.stage-payments.Stage payments\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"canUseProjects\\\",\\\"canUseProducts\\\",\\\"canUseUsers\\\",\\\"canUseWorkers\\\",\\\"canUseSubcontractors\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Configuration\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseProducts\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.products\\\",\\\"cubes\\\",[28,[37,1],[\\\"common.Products\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"canUseUsers\\\",\\\"canUseWorkers\\\",\\\"canUseSubcontractors\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.people\\\",\\\"users\\\",[28,[37,1],[\\\"common.People\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,2],\\\"canUseProjects\\\"],null],[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.settings\\\",\\\"cog\\\",[28,[37,1],[\\\"common.Settings\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\",\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\",\\\"@model\\\"],false,[\\\"sidebar\\\",\\\"t\\\",\\\"unless\\\",\\\"project-selector\\\",\\\"if\\\",\\\"includes-some-feature-flags\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/project.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/projects\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='index'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n  </Sidebar>\n  */\n  {\n    \"id\": \"WHXOZG7T\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"index\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/projects.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/reports\", [\"exports\", \"@glimmer/component\", \"@ember/service\"], function (_exports, _component, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/components/module-navigation/reports/company-reports\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='entity'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'userIsClient' 'canUseEntityPositionReport' 'canUseEntityLabourHourReport'\n      )\n    }}\n      <sidebar.Title @title={{t 'common.Summary'}} />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityPositionReport')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.position'\n        @icon='tasks'\n        @title={{t 'common.Position'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityLabourHourReport')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.labour-hours'\n        @icon='user-clock'\n        @title={{t 'common.Labour hours'}}\n      />\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'canUseEntityForecastReport'\n        'canUseEntityProfitMarginReport'\n        'canUseEntityInvoicingReport'\n        'canUseTimesheets'\n      )\n    }}\n      <sidebar.Title @title={{t 'common.Breakdown'}} />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityForecastReport')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.forecast-breakdown'\n        @icon='chart-line'\n        @title={{t\n          'components.module-navigation.reports.company-reports.Financial breakdown'\n        }}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityProfitMarginReport')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.profit-margins'\n        @icon='hand-holding-usd'\n        @title={{t 'common.Profit margins'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityInvoicingReport')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.invoicing'\n        @icon='file-invoice-dollar'\n        @title={{t 'common.Invoicing'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseTimesheets')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.company.notes'\n        @icon='sticky-note'\n        @title={{t 'common.Notes'}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseEntityWIPReport')}}\n      <sidebar.Title @title={{t 'common.Financial'}} />\n      {{#if (includes-feature-flags 'canUseEntityWIPReport')}}\n        <sidebar.Item\n          @route='entity.builda-price.reports.company.wip'\n          @icon='balance-scale'\n          @title={{t 'shared.report.Work in progress'}}\n        />\n      {{/if}}\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"gsBvq8U1\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"userIsClient\\\",\\\"canUseEntityPositionReport\\\",\\\"canUseEntityLabourHourReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,3],[\\\"common.Summary\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityPositionReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.position\\\",\\\"tasks\\\",[28,[37,3],[\\\"common.Position\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityLabourHourReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.labour-hours\\\",\\\"user-clock\\\",[28,[37,3],[\\\"common.Labour hours\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canUseEntityForecastReport\\\",\\\"canUseEntityProfitMarginReport\\\",\\\"canUseEntityInvoicingReport\\\",\\\"canUseTimesheets\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,3],[\\\"common.Breakdown\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityForecastReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.forecast-breakdown\\\",\\\"chart-line\\\",[28,[37,3],[\\\"components.module-navigation.reports.company-reports.Financial breakdown\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityProfitMarginReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.profit-margins\\\",\\\"hand-holding-usd\\\",[28,[37,3],[\\\"common.Profit margins\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityInvoicingReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.invoicing\\\",\\\"file-invoice-dollar\\\",[28,[37,3],[\\\"common.Invoicing\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseTimesheets\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.notes\\\",\\\"sticky-note\\\",[28,[37,3],[\\\"common.Notes\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityWIPReport\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,3],[\\\"common.Financial\\\"],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[\\\"canUseEntityWIPReport\\\"],null],[[[1,\\\"      \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\"],[\\\"entity.builda-price.reports.company.wip\\\",\\\"balance-scale\\\",[28,[37,3],[\\\"shared.report.Work in progress\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"includes-some-feature-flags\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/reports/company-reports.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/reports/project\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    <sidebar.BackButton\n      @buttonText={{t 'common.Back to projects'}}\n      @route='entity.builda-price.reports.projects'\n    />\n    {{#unless sidebar.isCollapsed}}\n      <ProjectSelector\n        @selectedProject={{@selectedProject}}\n        @openProjects={{@openProjects}}\n        @selectedProjectIsLoading={{@selectedProjectIsLoading}}\n        @openProjectsIsLoading={{@openProjectsIsLoading}}\n        @backToProjectsRoute={{'entity.builda-price.reports.projects'}}\n      />\n    {{/unless}}\n  \n    {{#if this.showSummaryTitle}}\n      <sidebar.Title @title={{t 'common.Summary'}} />\n    {{/if}}\n  \n    {{#if this.canUsePositionReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.position'\n        @icon='tasks'\n        @title={{t 'common.Position'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseLabourHourReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.labour-hours'\n        @icon='user-clock'\n        @title={{t 'common.Labour hours'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.showBreakdownTitle}}\n      <sidebar.Title @title={{t 'common.Breakdown'}} />\n    {{/if}}\n  \n    {{#if this.canUseBudgetReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.budget'\n        @icon='money-check-alt'\n        @title={{t 'common.Budget'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseQuoteReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.quote'\n        @icon='handshake'\n        @title={{t 'common.Quote'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseCostReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.cost'\n        @icon='search-dollar'\n        @title={{t 'common.Costs'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseTimesheets')}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.notes'\n        @icon='sticky-note'\n        @title={{t 'common.Notes'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseForecastReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.forecast-breakdown'\n        @icon='chart-line'\n        @title={{t 'shared.report.Forecast breakdown'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseProfitMarginReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.profit-margins'\n        @icon='hand-holding-usd'\n        @title={{t 'common.Profit margins'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseChargeupReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.chargeup'\n        @icon='poll'\n        @title={{t 'common.Chargeup'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseInvoicingReports}}\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.invoicing'\n        @icon='file-invoice-dollar'\n        @title={{t 'common.Invoicing'}}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseClientReports}}\n      <sidebar.Title @title={{t 'common.Client'}} />\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.cost-to-complete'\n        @icon='user-tie'\n        @title={{t\n          'entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete'\n        }}\n        @model={{@model}}\n      />\n    {{/if}}\n  \n    {{#if this.canUseAccessReports}}\n      <sidebar.Title @title='Access' />\n      <sidebar.Item\n        @route='entity.builda-price.reports.projects.project.access'\n        @icon='map-pin'\n        @title='Access'\n        @model={{@model}}\n      />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"/MURR/ZC\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,1],[\\\"common.Back to projects\\\"],null],\\\"entity.builda-price.reports.projects\\\"]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"isCollapsed\\\"]]],[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\",\\\"@backToProjectsRoute\\\"],[[30,2],[30,3],[30,4],[30,5],\\\"entity.builda-price.reports.projects\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showSummaryTitle\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Summary\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUsePositionReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.position\\\",\\\"tasks\\\",[28,[37,1],[\\\"common.Position\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseLabourHourReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.labour-hours\\\",\\\"user-clock\\\",[28,[37,1],[\\\"common.Labour hours\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBreakdownTitle\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Breakdown\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseBudgetReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.budget\\\",\\\"money-check-alt\\\",[28,[37,1],[\\\"common.Budget\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseQuoteReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.quote\\\",\\\"handshake\\\",[28,[37,1],[\\\"common.Quote\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseCostReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.cost\\\",\\\"search-dollar\\\",[28,[37,1],[\\\"common.Costs\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"canUseTimesheets\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.notes\\\",\\\"sticky-note\\\",[28,[37,1],[\\\"common.Notes\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseForecastReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.forecast-breakdown\\\",\\\"chart-line\\\",[28,[37,1],[\\\"shared.report.Forecast breakdown\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseProfitMarginReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.profit-margins\\\",\\\"hand-holding-usd\\\",[28,[37,1],[\\\"common.Profit margins\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseChargeupReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.chargeup\\\",\\\"poll\\\",[28,[37,1],[\\\"common.Chargeup\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseInvoicingReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.invoicing\\\",\\\"file-invoice-dollar\\\",[28,[37,1],[\\\"common.Invoicing\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseClientReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Client\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.cost-to-complete\\\",\\\"user-tie\\\",[28,[37,1],[\\\"entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete\\\"],null],[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseAccessReports\\\"]],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Title\\\"]],null,[[\\\"@title\\\"],[\\\"Access\\\"]],null],[1,\\\"\\\\n    \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[\\\"entity.builda-price.reports.projects.project.access\\\",\\\"map-pin\\\",\\\"Access\\\",[30,6]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\",\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\",\\\"@model\\\"],false,[\\\"sidebar\\\",\\\"t\\\",\\\"unless\\\",\\\"project-selector\\\",\\\"if\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/reports/project.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n    }\n    get canUsePositionReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectPositionReport');\n    }\n    get canUseLabourHourReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectLabourHourReport');\n    }\n    get canUseClientReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectClientReport');\n    }\n    get showSummaryTitle() {\n      return this.canUsePositionReports || this.canUseLabourHourReports;\n    }\n    get canUseQuoteReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectQuoteReport');\n    }\n    get canUseCostReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectCostReport');\n    }\n    get canUseBudgetReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectBudgetReport');\n    }\n    get canUseForecastReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectForecastReport');\n    }\n    get canUseProfitMarginReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectProfitMarginReport');\n    }\n    get canUseChargeupReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectChargeupReport');\n    }\n    get canUseInvoicingReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canUseProjectInvoicingReport');\n    }\n    get canUseAccessReports() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.selectedProject, 'canViewAccessReports');\n    }\n    get showBreakdownTitle() {\n      return this.canUseChargeupReports || this.canUseProfitMarginReports || this.canUseForecastReports || this.canUseBudgetReports || this.canUseCostReports || this.canUseQuoteReports || this.canUseInvoicingReports;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/scheduling\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! TODO implement this once we have more than one page }}\n  <Sidebar as |sidebar|>\n    {{#if (gt this.modules.allowedModules.length 1)}}\n      <sidebar.BackButton\n        @buttonText={{t 'common.Back to modules'}}\n        @route='entity'\n      />\n    {{/if}}\n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"Cs4LF5jP\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],1],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,3],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[28,[37,2],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\"],false,[\\\"sidebar\\\",\\\"if\\\",\\\"gt\\\",\\\"t\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/scheduling.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/module-navigation/settings\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <Sidebar as |sidebar|>\n    <sidebar.BackButton\n      @buttonText={{t 'common.Back to modules'}}\n      @route='entity'\n    />\n  \n    {{#if\n      (and (gt this.sessionData.entities.length 1) (not (media 'isDesktop')))\n    }}\n      <sidebar.EntitySelector />\n    {{/if}}\n  \n    <sidebar.Section @title={{t 'common.People'}}>\n      {{#each this.peopleSection.items as |item|}}\n        <sidebar.Item\n          @route={{item.route}}\n          @icon={{item.icon}}\n          @title={{item.name}}\n          @model={{item.model}}\n        />\n      {{/each}}\n    </sidebar.Section>\n  \n    {{#if\n      (or\n        (includes-some-feature-flags 'userIsEntityAdmin' 'canManageBills')\n        this.canViewIntegrationsTab\n      )\n    }}\n      <sidebar.Section\n        @title={{t 'common.Company'}}\n        @content={{this.companySection}}\n      >\n        {{#each this.companySection.items as |item|}}\n          <sidebar.Item\n            @route={{item.route}}\n            @icon={{item.icon}}\n            @title={{item.name}}\n            @model={{item.model}}\n          />\n        {{/each}}\n      </sidebar.Section>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canManageEstimatesSettings')}}\n      <sidebar.Section @title={{t 'common.Estimates'}}>\n        {{#each this.estimateSection.items as |item|}}\n          <sidebar.Item\n            @route={{item.route}}\n            @icon={{item.icon}}\n            @title={{item.name}}\n            @model={{item.model}}\n          />\n        {{/each}}\n      </sidebar.Section>\n    {{/if}}\n  </Sidebar>\n  */\n  {\n    \"id\": \"IfSl+Qeh\",\n    \"block\": \"[[[8,[39,0],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"BackButton\\\"]],null,[[\\\"@buttonText\\\",\\\"@route\\\"],[[28,[37,1],[\\\"common.Back to modules\\\"],null],\\\"entity\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,3],[[28,[37,4],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"EntitySelector\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.People\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"peopleSection\\\",\\\"items\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[[30,2,[\\\"route\\\"]],[30,2,[\\\"icon\\\"]],[30,2,[\\\"name\\\"]],[30,2,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,9],[[28,[37,10],[\\\"userIsEntityAdmin\\\",\\\"canManageBills\\\"],null],[30,0,[\\\"canViewIntegrationsTab\\\"]]],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\",\\\"@content\\\"],[[28,[37,1],[\\\"common.Company\\\"],null],[30,0,[\\\"companySection\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"companySection\\\",\\\"items\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[[30,3,[\\\"route\\\"]],[30,3,[\\\"icon\\\"]],[30,3,[\\\"name\\\"]],[30,3,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[\\\"canManageEstimatesSettings\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"Section\\\"]],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Estimates\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"estimateSection\\\",\\\"items\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[30,1,[\\\"Item\\\"]],null,[[\\\"@route\\\",\\\"@icon\\\",\\\"@title\\\",\\\"@model\\\"],[[30,4,[\\\"route\\\"]],[30,4,[\\\"icon\\\"]],[30,4,[\\\"name\\\"]],[30,4,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[1]]]]]],[\\\"sidebar\\\",\\\"item\\\",\\\"item\\\",\\\"item\\\"],false,[\\\"sidebar\\\",\\\"t\\\",\\\"if\\\",\\\"and\\\",\\\"gt\\\",\\\"not\\\",\\\"media\\\",\\\"each\\\",\\\"-track-array\\\",\\\"or\\\",\\\"includes-some-feature-flags\\\",\\\"includes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/module-navigation/settings.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n    }\n    // the \"integrations\" route was prematurely migrated from the building route\n    // we need to keep it in both old and new versions of the software\n    // this should only be visible to people who have building, pricing, or buildaPrice modules\n    get canViewIntegrationsTab() {\n      const newBpCanSee = this.newFeatureFlags.includesFeatureFlags('canUseIntegrations');\n      return newBpCanSee;\n    }\n    get peopleSection() {\n      const peopleSection = {\n        name: this.intl.t('common.People'),\n        items: []\n      };\n      if (this.newFeatureFlags.excludesFeatureFlags('userIsWorker')) peopleSection.items.push({\n        route: 'entity.settings.profile',\n        icon: 'user-circle',\n        name: this.intl.t('components.module-navigation.settings.My profile')\n      });\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canUseUsers', 'canUseWorkers', 'canUseClientPortal', 'canUseSubcontractors')) peopleSection.items.push({\n        route: 'entity.settings.people',\n        icon: 'users',\n        name: this.intl.t('common.People')\n      });\n      if (this.newFeatureFlags.includesFeatureFlags('canUseSuppliers')) peopleSection.items.push({\n        route: 'entity.settings.contacts',\n        icon: 'warehouse',\n        name: this.intl.t('common.contacts')\n      });\n      return peopleSection;\n    }\n    get companySection() {\n      const companySection = {\n        name: this.intl.t('common.Company'),\n        items: []\n      };\n      if (this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin')) companySection.items.push({\n        route: 'entity.settings.company',\n        icon: 'building',\n        name: this.intl.t('common.Settings')\n      });\n      if (this.newFeatureFlags.includesFeatureFlags('canManageBills')) companySection.items.push({\n        route: 'entity.settings.auto-mapping',\n        icon: 'magic',\n        name: this.intl.t('common.Auto mapping')\n      });\n      if (this.canViewIntegrationsTab) companySection.items.push({\n        route: 'entity.settings.integrations',\n        icon: 'plug',\n        name: this.intl.t('common.Integrations')\n      });\n      if (this.newFeatureFlags.includesFeatureFlags('canManageBills') || this.newFeatureFlags.includesFeatureFlags('canManageInvoices')) companySection.items.push({\n        route: 'entity.settings.chart-of-accounts',\n        icon: 'piggy-bank',\n        name: this.intl.t('entity.settings.chart-of-accounts.Chart of accounts')\n      });\n      return companySection;\n    }\n    get estimateSection() {\n      const estimateSection = {\n        name: this.intl.t('components.module-navigation.settings.Estimate settings'),\n        items: []\n      };\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'plane-departure',\n        model: 'ownTakeoff',\n        name: this.intl.t('shared.estimates.Own takeoff')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'truck',\n        model: 'materialRate',\n        name: this.intl.t('shared.estimates.Material rate')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'file-invoice-dollar',\n        model: 'flatRateResource',\n        name: this.intl.t('shared.estimates.Flat rate resource')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'copy',\n        model: 'miscTemplate',\n        name: this.intl.t('shared.estimates.Misc template')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'user-clock',\n        model: 'labourFactor',\n        name: this.intl.t('shared.estimates.Labour factor')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'copy',\n        model: 'overheadTemplates',\n        name: this.intl.t('shared.estimates.Overhead templates')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'users',\n        model: 'workgangPositions',\n        name: this.intl.t('shared.estimates.Workgang positions')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'people-carry',\n        model: 'workgangs',\n        name: this.intl.t('shared.estimates.Workgangs')\n      });\n      estimateSection.items.push({\n        route: 'entity.settings.estimates.embedded-page',\n        icon: 'wrench',\n        model: 'subcontractorList',\n        name: this.intl.t('shared.estimates.Subcontractor list')\n      });\n      return estimateSection;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/month-picker\", [\"exports\", \"@ember/component\", \"@ember/object\", \"moment\", \"@ember/template-factory\"], function (_exports, _component, _object, _moment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"moment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless this.compact}}\n    <button type='button' class='subdued' {{action 'prevYear'}}>\n      <FaIcon @icon='angles-left' @size='lg' />\n    </button>\n    <button type='button' class='subdued' {{action 'prevMonth'}}>\n      <FaIcon @icon='angle-left' @size='lg' />\n    </button>\n  \n    <div class='inputs'>\n      <select\n        class={{if\n          this.dark\n          'select-box select-box--dark month'\n          'select-box month'\n        }}\n        onchange={{action (mut this.selectedMonth) value='target.value'}}\n      >\n        <option\n          value='01'\n          selected={{eq this.selectedMonth '01'}}\n        >January</option>\n        <option\n          value='02'\n          selected={{eq this.selectedMonth '02'}}\n        >February</option>\n        <option value='03' selected={{eq this.selectedMonth '03'}}>March</option>\n        <option value='04' selected={{eq this.selectedMonth '04'}}>April</option>\n        <option value='05' selected={{eq this.selectedMonth '05'}}>May</option>\n        <option value='06' selected={{eq this.selectedMonth '06'}}>June</option>\n        <option value='07' selected={{eq this.selectedMonth '07'}}>July</option>\n        <option value='08' selected={{eq this.selectedMonth '08'}}>August</option>\n        <option\n          value='09'\n          selected={{eq this.selectedMonth '09'}}\n        >September</option>\n        <option\n          value='10'\n          selected={{eq this.selectedMonth '10'}}\n        >October</option>\n        <option\n          value='11'\n          selected={{eq this.selectedMonth '11'}}\n        >November</option>\n        <option\n          value='12'\n          selected={{eq this.selectedMonth '12'}}\n        >December</option>\n      </select>\n  \n      <select\n        class={{if\n          this.dark\n          'select-box select-box--dark year'\n          'select-box year'\n        }}\n        onchange={{action (mut this.selectedYear) value='target.value'}}\n      >\n        {{#each this.yearList as |year|}}\n          <option\n            value={{year}}\n            selected={{eq this.selectedYear year}}\n          >{{year}}</option>\n        {{/each}}\n      </select>\n    </div>\n  \n    <button type='button' class='subdued' {{action 'nextMonth'}}>\n      <FaIcon @icon='angle-right' @size='lg' />\n    </button>\n    <button type='button' class='subdued' {{action 'nextYear'}}>\n      <FaIcon @icon='angles-right' @size='lg' />\n    </button>\n  {{else}}\n    <label class='month-picker__input-label' for='month-picker__input'>\n      <span class='month-picker__display'>\n        <span class='month-picker__month'>{{moment-format\n            this.period\n            'MMM'\n            'YYYY-MM'\n          }}</span>\n        <span class='month-picker__year'>{{moment-format\n            this.period\n            'YYYY'\n            'YYYY-MM'\n          }}</span>\n      </span>\n      <FaIcon @icon='calendar-alt' @size='lg' />\n    </label>\n  \n    <input\n      type='month'\n      value={{this.period}}\n      class='month-picker__input'\n      id='month-picker__input'\n    />\n  {{/unless}}\n  */\n  {\n    \"id\": \"y9uhXhpp\",\n    \"block\": \"[[[41,[51,[30,0,[\\\"compact\\\"]]],[[[1,\\\"  \\\"],[11,\\\"button\\\"],[24,0,\\\"subdued\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"prevYear\\\"],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"angles-left\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"subdued\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"prevMonth\\\"],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"angle-left\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"inputs\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"select\\\"],[15,0,[52,[30,0,[\\\"dark\\\"]],\\\"select-box select-box--dark month\\\",\\\"select-box month\\\"]],[15,\\\"onchange\\\",[28,[37,2],[[30,0],[28,[37,7],[[30,0,[\\\"selectedMonth\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"01\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"01\\\"],null]],[12],[1,\\\"January\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"02\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"02\\\"],null]],[12],[1,\\\"February\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"03\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"03\\\"],null]],[12],[1,\\\"March\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"04\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"04\\\"],null]],[12],[1,\\\"April\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"05\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"05\\\"],null]],[12],[1,\\\"May\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"06\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"06\\\"],null]],[12],[1,\\\"June\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"07\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"07\\\"],null]],[12],[1,\\\"July\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"08\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"08\\\"],null]],[12],[1,\\\"August\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"09\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"09\\\"],null]],[12],[1,\\\"September\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"10\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"10\\\"],null]],[12],[1,\\\"October\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"11\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"11\\\"],null]],[12],[1,\\\"November\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"option\\\"],[14,2,\\\"12\\\"],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedMonth\\\"]],\\\"12\\\"],null]],[12],[1,\\\"December\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"select\\\"],[15,0,[52,[30,0,[\\\"dark\\\"]],\\\"select-box select-box--dark year\\\",\\\"select-box year\\\"]],[15,\\\"onchange\\\",[28,[37,2],[[30,0],[28,[37,7],[[30,0,[\\\"selectedYear\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"yearList\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"option\\\"],[15,2,[30,1]],[15,\\\"selected\\\",[28,[37,9],[[30,0,[\\\"selectedYear\\\"]],[30,1]],null]],[12],[1,[30,1]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"subdued\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"nextMonth\\\"],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"angle-right\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"subdued\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"nextYear\\\"],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"angles-right\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"label\\\"],[14,0,\\\"month-picker__input-label\\\"],[14,\\\"for\\\",\\\"month-picker__input\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"month-picker__display\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"month-picker__month\\\"],[12],[1,[28,[35,14],[[30,0,[\\\"period\\\"]],\\\"MMM\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"month-picker__year\\\"],[12],[1,[28,[35,14],[[30,0,[\\\"period\\\"]],\\\"YYYY\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"calendar-alt\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"input\\\"],[15,2,[30,0,[\\\"period\\\"]]],[14,0,\\\"month-picker__input\\\"],[14,1,\\\"month-picker__input\\\"],[14,4,\\\"month\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"year\\\"],false,[\\\"unless\\\",\\\"button\\\",\\\"action\\\",\\\"fa-icon\\\",\\\"div\\\",\\\"select\\\",\\\"if\\\",\\\"mut\\\",\\\"option\\\",\\\"eq\\\",\\\"each\\\",\\\"-track-array\\\",\\\"label\\\",\\\"span\\\",\\\"moment-format\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"portal/components/month-picker.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    // Default only. Bind your YYYY-MM string to this.\n    period: (0, _moment.default)().format('YYYY-MM'),\n    classNames: ['month-picker'],\n    classNameBindings: ['closedPeriod', 'dark:month-picker--dark'],\n    selectedMonth: (0, _object.computed)('period', {\n      get() {\n        return (0, _object.get)(this, 'period').substr(5);\n      },\n      set(key, value) {\n        const current = (0, _object.get)(this, 'period');\n        (0, _object.set)(this, 'period', current.substr(0, 5) + value);\n        return value;\n      }\n    }),\n    selectedYear: (0, _object.computed)('period', {\n      get() {\n        const period = (0, _object.get)(this, 'period');\n        return typeof period === 'string' ? period.substr(0, 4) : String((0, _moment.default)().year());\n      },\n      set(key, year) {\n        const current = (0, _moment.default)((0, _object.get)(this, 'period'), 'YYYY-MM');\n        const month = current.isValid() ? current.format('MM') : (0, _moment.default)().format('MM');\n        year = (0, _moment.default)(year, 'YYYY').isValid() ? String(year) : (0, _moment.default)().format('YYYY');\n        (0, _object.set)(this, 'period', `${year}-${month}`);\n        return year;\n      }\n    }),\n    yearList: (0, _object.computed)('period', function () {\n      const selected = (0, _moment.default)((0, _object.get)(this, 'period').substr(0, 4), 'YYYY');\n      let start = (0, _moment.default)([(0, _moment.default)().year() - 8]);\n      let end = (0, _moment.default)([(0, _moment.default)().year() + 2]);\n      if (selected.diff(start, 'years', true) < 2) {\n        start = selected.subtract(2, 'years');\n      } else if (selected.diff(end, 'years', true) > -2) {\n        end = selected.add(2, 'years');\n      }\n      const list = [];\n      let current = start;\n      do {\n        list.push(current.format('YYYY'));\n        current = current.add(1, 'year');\n      } while (current.isBefore(end) || current.isSame(end));\n      return list;\n    }),\n    changePeriod(diff, type) {\n      const current = (0, _object.get)(this, 'period');\n      const updated = (0, _moment.default)(current, 'YYYY-MM').add(diff, type).format('YYYY-MM');\n      (0, _object.set)(this, 'period', updated);\n    },\n    actions: {\n      prevYear() {\n        this.changePeriod(-1, 'year');\n      },\n      prevMonth() {\n        this.changePeriod(-1, 'month');\n      },\n      nextMonth() {\n        this.changePeriod(1, 'month');\n      },\n      nextYear() {\n        this.changePeriod(1, 'year');\n      }\n    }\n  }));\n});","define(\"portal/components/multi-item-selector-paginated\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='d-flex align-items-center px-3 text-nowrap overflow-auto'\n    style='min-height: 3em;'\n  >\n    {{#each this.firstScopes as |container|}}\n      <ItemSelector::BreadCrumb\n        @isSelected={{eq this.selectedScope container}}\n        @onClick={{fn @onSelectContainer container}}\n      >\n        {{get container.item @nameKey}}\n      </ItemSelector::BreadCrumb>\n    {{/each}}\n  \n    {{#if (gt @scope.length 3)}}\n      <div class='mx-2 fw-bolder'>&hellip;</div>\n      <FaIcon @icon='chevron-right' class='mx-2' />\n    {{/if}}\n  \n    {{#each this.lastScopes as |container|}}\n      <ItemSelector::BreadCrumb\n        @isSelected={{eq this.selectedScope container}}\n        @onClick={{fn @onSelectContainer container}}\n      >\n        {{get container.item @nameKey}}\n      </ItemSelector::BreadCrumb>\n    {{/each}}\n    <LabelPopup\n      class='ms-auto'\n      @text={{t\n        'components.multi-item-selector-paginated.billableRemainingTooltip'\n      }}\n    >\n      {{t 'components.multi-item-selector-paginated.Billable remaining'}}\n    </LabelPopup>\n  </div>\n  \n  {{#if @onSearch}}\n    <div class='px-3 pb-3'>\n      <Input\n        class='form-control rounded'\n        placeholder={{or @searchPlaceholder (t 'common.Search for a item')}}\n        aria-label={{or @searchPlaceholder (t 'common.Search for a item')}}\n        @value={{@searchString}}\n        {{on 'keyup' this.onSearchInputKeyUp}}\n        disabled={{@disabled}}\n        @type='text'\n      />\n    </div>\n  {{/if}}\n  \n  <InfinityScroll @onLoadMore={{@onLoadMore}} as |didInsert|>\n    <div class='overflow-auto border-top' {{did-insert didInsert}}>\n      {{#if @isLoading}}\n        <div class='d-block text-center p-3'>\n          {{or @loadingMessage (t 'common.Loading')}}\n          <LoadingIcon @type='spinner' />\n        </div>\n      {{else}}\n        {{#each @item.children as |container|}}\n          {{! nothing to bill against here, so the row is shown but not offered }}\n          <div\n            class='d-flex align-items-stretch border-bottom\n              {{if\n                container.isEmpty\n                \"item-selector__row--empty text-body-secondary\"\n              }}'\n          >\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={{or @disabled container.isEmpty}}\n                />\n              </label>\n            {{/unless}}\n  \n            {{! a cost is the bottom of the tree, so it does not open }}\n            <div\n              role={{if container.hasChildren 'button'}}\n              class='flex-fill row align-items-center m-0 py-2 w-auto\n                {{if container.hasChildren \"list-group-item-action\"}}'\n              {{! the handler stays put and the guard is in the action, because a\n                modifier cannot be applied conditionally here }}\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                      {{#if (and (eq index 0) container.badge)}}\n                        <span\n                          class='badge rounded-pill bg-danger ms-2'\n                          title={{container.badgeTitle}}\n                        >\n                          {{container.badge}}\n                        </span>\n                      {{/if}}\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\": \"tKFa6Cv2\",\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],[15,0,[29,[\\\"d-flex align-items-stretch border-bottom\\\\n            \\\",[52,[30,15,[\\\"isEmpty\\\"]],\\\"item-selector__row--empty text-body-secondary\\\"]]]],[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\\\",[28,[37,13],[[30,8],[30,15,[\\\"isEmpty\\\"]]],null]]],[[\\\"@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\\\"],[1,\\\"          \\\"],[11,0],[16,\\\"role\\\",[52,[30,15,[\\\"hasChildren\\\"]],\\\"button\\\"]],[16,0,[29,[\\\"flex-fill row align-items-center m-0 py-2 w-auto\\\\n              \\\",[52,[30,15,[\\\"hasChildren\\\"]],\\\"list-group-item-action\\\"]]]],[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\\\"],[41,[28,[37,24],[[28,[37,4],[[30,19],0],null],[30,15,[\\\"badge\\\"]]],null],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"badge rounded-pill bg-danger ms-2\\\"],[15,\\\"title\\\",[30,15,[\\\"badgeTitle\\\"]]],[12],[1,\\\"\\\\n                        \\\"],[1,[30,15,[\\\"badge\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[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\\\",\\\"span\\\"]]\",\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      // a cost is the bottom of the tree. opening one showed an empty list with\n      // no way back to what it was under\n      if (!container.hasChildren) return;\n      (0, _runloop.next)(() => {\n        if (this.args.onSelectContainer) this.args.onSelectContainer(container);\n      });\n    }\n    onSearchInputKeyUp() {\n      if (this.args.onSearch) this.args.onSearch();\n    }\n    onCheckboxClick(container) {\n      if (this.args.onCheckboxClick) this.args.onCheckboxClick(container);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"onContainerClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onContainerClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSearchInputKeyUp\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSearchInputKeyUp\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCheckboxClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onCheckboxClick\"), _class.prototype), _class));\n});","define(\"portal/components/multi-item-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/array\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _array, _object, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/array\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='d-flex align-items-center px-3 py-3 item-selector__path'>\n    <span\n      role='button'\n      class='text-primary text-decoration-underline'\n      {{on 'click' this.clearScope}}\n      data-test-item-selector-home-text\n    >\n      {{or @homeText (t 'common.Home')}}\n    </span>\n    {{#if this.scope.length}}\n      <FaIcon @icon='chevron-right' class='mx-2' />\n    {{/if}}\n    {{#each this.first2Scopes as |container|}}\n      <ItemSelector::BreadCrumb\n        @isSelected={{eq this.selectedScope container}}\n        @onClick={{fn this.goToContainer container}}\n        data-test-items-selector-bread-crumb\n      >\n        {{get container.item @nameKey}}\n      </ItemSelector::BreadCrumb>\n    {{/each}}\n  \n    {{#if (gt this.scope.length 4)}}\n      <div class='mx-2 fw-bolder' data-test-item-selector-ellipsis>&hellip;</div>\n      <FaIcon @icon='chevron-right' class='mx-2' />\n    {{/if}}\n  \n    {{#each this.last2Scopes as |container|}}\n      <ItemSelector::BreadCrumb\n        @isSelected={{eq this.selectedScope container}}\n        @onClick={{fn this.goToContainer container}}\n        data-test-items-selector-bread-crumb\n      >\n        {{get container.item @nameKey}}\n      </ItemSelector::BreadCrumb>\n    {{/each}}\n  </div>\n  \n  <div class='px-3 pb-3'>\n    <Input\n      class='form-control rounded'\n      placeholder={{or @searchPlaceholder (t 'common.Search for a item')}}\n      aria-label={{or @searchPlaceholder (t 'common.Search for a item')}}\n      {{! auto focus only worked on the initial render }}\n      {{did-insert this.focusInput}}\n      @value={{this.searchString}}\n      @type='text'\n      data-test-item-selector-search-input\n    />\n  </div>\n  \n  <ul class='list-group item-selector__list border-top rounded-0'>\n    {{#if this.searchString}}\n      {{#each this.searchContainers as |container|}}\n        <ul class='list-group list-group-horizontal flex-row'>\n          <label\n            class='list-group-item list-group-item-action w-auto border-0 border-bottom'\n            role='button'\n          >\n            <IndeterminateCheckbox\n              @checked={{container.checked}}\n              @indeterminate={{container.indeterminate}}\n              @onChange={{fn @onChange container}}\n            />\n          </label>\n          <li\n            {{on 'click' (fn this.rebuildScopeFromContainer container)}}\n            class='list-group-item list-group-item-action flex-fill border-0 p-0 border-bottom'\n          >\n            <button\n              type='button'\n              class='btn shadow-none text-start w-100'\n              data-test-item-selector-item\n            >\n              {{get container.item @nameKey}}\n  \n              <FaIcon\n                @icon='circle'\n                @size='xs'\n                class='text-info ms-1\n                  {{unless container.isSomeChildChecked \"invisible\"}}'\n              />\n            </button>\n          </li>\n        </ul>\n      {{else}}\n        <div class='p-3 text-center' data-test-item-selector-no-item>\n          {{or @noSearchItemsMessage (t 'common.No items found')}}\n        </div>\n      {{/each}}\n    {{else}}\n      {{#each this.currentContainers as |container|}}\n        <ul class='list-group list-group-horizontal flex-row'>\n          <label\n            class='list-group-item list-group-item-action w-auto border-0 border-bottom'\n            role='button'\n          >\n            <IndeterminateCheckbox\n              @checked={{container.checked}}\n              @indeterminate={{container.indeterminate}}\n              @onChange={{fn @onChange container}}\n            />\n          </label>\n          <li\n            {{on 'click' (fn this.goIntoContainer container)}}\n            class='list-group-item list-group-item-action flex-fill border-0 p-0 border-bottom'\n          >\n            <button\n              type='button'\n              class='btn shadow-none text-start w-100'\n              data-test-item-selector-item\n            >\n              {{get container.item @nameKey}}\n  \n              <FaIcon\n                @icon='circle'\n                @size='xs'\n                class='text-info ms-1\n                  {{unless container.isSomeChildChecked \"invisible\"}}'\n              />\n            </button>\n          </li>\n        </ul>\n      {{else}}\n        <div class='p-3 text-center' data-test-item-selector-no-item>\n          {{or @noItemsMessage (t 'common.No items')}}\n        </div>\n      {{/each}}\n    {{/if}}\n  </ul>\n  */\n  {\n    \"id\": \"IzjYnecE\",\n    \"block\": \"[[[10,0],[14,0,\\\"d-flex align-items-center px-3 py-3 item-selector__path\\\"],[12],[1,\\\"\\\\n  \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-primary text-decoration-underline\\\"],[24,\\\"data-test-item-selector-home-text\\\",\\\"\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"clearScope\\\"]]],null],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[[30,1],[28,[37,4],[\\\"common.Home\\\"],null]],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"scope\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[39,6],[[24,0,\\\"mx-2\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"first2Scopes\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,9],[[24,\\\"data-test-items-selector-bread-crumb\\\",\\\"\\\"]],[[\\\"@isSelected\\\",\\\"@onClick\\\"],[[28,[37,10],[[30,0,[\\\"selectedScope\\\"]],[30,2]],null],[28,[37,11],[[30,0,[\\\"goToContainer\\\"]],[30,2]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[35,12],[[30,2,[\\\"item\\\"]],[30,3]],null]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,0,[\\\"scope\\\",\\\"length\\\"]],4],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mx-2 fw-bolder\\\"],[14,\\\"data-test-item-selector-ellipsis\\\",\\\"\\\"],[12],[1,\\\"…\\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,6],[[24,0,\\\"mx-2\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"last2Scopes\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,9],[[24,\\\"data-test-items-selector-bread-crumb\\\",\\\"\\\"]],[[\\\"@isSelected\\\",\\\"@onClick\\\"],[[28,[37,10],[[30,0,[\\\"selectedScope\\\"]],[30,4]],null],[28,[37,11],[[30,0,[\\\"goToContainer\\\"]],[30,4]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[28,[35,12],[[30,4,[\\\"item\\\"]],[30,3]],null]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"px-3 pb-3\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,14],[[24,0,\\\"form-control rounded\\\"],[16,\\\"placeholder\\\",[28,[37,3],[[30,5],[28,[37,4],[\\\"common.Search for a item\\\"],null]],null]],[16,\\\"aria-label\\\",[28,[37,3],[[30,5],[28,[37,4],[\\\"common.Search for a item\\\"],null]],null]],[24,\\\"data-test-item-selector-search-input\\\",\\\"\\\"],[4,[38,15],[[30,0,[\\\"focusInput\\\"]]],null]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"searchString\\\"]],\\\"text\\\"]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group item-selector__list border-top rounded-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"searchString\\\"]],[[[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"searchContainers\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group list-group-horizontal flex-row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"list-group-item list-group-item-action w-auto border-0 border-bottom\\\"],[14,\\\"role\\\",\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],null,[[\\\"@checked\\\",\\\"@indeterminate\\\",\\\"@onChange\\\"],[[30,6,[\\\"checked\\\"]],[30,6,[\\\"indeterminate\\\"]],[28,[37,11],[[30,7],[30,6]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"li\\\"],[24,0,\\\"list-group-item list-group-item-action flex-fill border-0 p-0 border-bottom\\\"],[4,[38,2],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"rebuildScopeFromContainer\\\"]],[30,6]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn shadow-none text-start w-100\\\"],[14,\\\"data-test-item-selector-item\\\",\\\"\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,12],[[30,6,[\\\"item\\\"]],[30,3]],null]],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,6],[[16,0,[29,[\\\"text-info ms-1\\\\n                \\\",[52,[51,[30,6,[\\\"isSomeChildChecked\\\"]]],\\\"invisible\\\"]]]]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"circle\\\",\\\"xs\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"p-3 text-center\\\"],[14,\\\"data-test-item-selector-no-item\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[[30,8],[28,[37,4],[\\\"common.No items found\\\"],null]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"currentContainers\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group list-group-horizontal flex-row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"list-group-item list-group-item-action w-auto border-0 border-bottom\\\"],[14,\\\"role\\\",\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],null,[[\\\"@checked\\\",\\\"@indeterminate\\\",\\\"@onChange\\\"],[[30,9,[\\\"checked\\\"]],[30,9,[\\\"indeterminate\\\"]],[28,[37,11],[[30,7],[30,9]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"li\\\"],[24,0,\\\"list-group-item list-group-item-action flex-fill border-0 p-0 border-bottom\\\"],[4,[38,2],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"goIntoContainer\\\"]],[30,9]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn shadow-none text-start w-100\\\"],[14,\\\"data-test-item-selector-item\\\",\\\"\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,12],[[30,9,[\\\"item\\\"]],[30,3]],null]],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,6],[[16,0,[29,[\\\"text-info ms-1\\\\n                \\\",[52,[51,[30,9,[\\\"isSomeChildChecked\\\"]]],\\\"invisible\\\"]]]]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"circle\\\",\\\"xs\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"p-3 text-center\\\"],[14,\\\"data-test-item-selector-no-item\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[[30,10],[28,[37,4],[\\\"common.No items\\\"],null]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13]],[\\\"@homeText\\\",\\\"container\\\",\\\"@nameKey\\\",\\\"container\\\",\\\"@searchPlaceholder\\\",\\\"container\\\",\\\"@onChange\\\",\\\"@noSearchItemsMessage\\\",\\\"container\\\",\\\"@noItemsMessage\\\"],false,[\\\"div\\\",\\\"span\\\",\\\"on\\\",\\\"or\\\",\\\"t\\\",\\\"if\\\",\\\"fa-icon\\\",\\\"each\\\",\\\"-track-array\\\",\\\"item-selector/bread-crumb\\\",\\\"eq\\\",\\\"fn\\\",\\\"get\\\",\\\"gt\\\",\\\"input\\\",\\\"did-insert\\\",\\\"ul\\\",\\\"label\\\",\\\"indeterminate-checkbox\\\",\\\"li\\\",\\\"button\\\",\\\"unless\\\"]]\",\n    \"moduleName\": \"portal/components/multi-item-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"scope\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor2, this);\n    }\n    get first2Scopes() {\n      return this.scope.slice(0, 2);\n    }\n    get last2Scopes() {\n      return this.scope.length >= 4 ? this.scope.slice(-2) : this.scope.slice(2);\n    }\n    get selectedScope() {\n      return this.scope[this.scope.length - 1];\n    }\n    get currentContainers() {\n      // if we have scope, return the highest scope\n      if (this.selectedScope) return this.selectedScope.children;\n      // return the top level\n      return this.args.items;\n    }\n    get searchContainers() {\n      if (!this.searchString) return null;\n      const matchedContainers = [];\n      const findContainer = containers => {\n        containers.forEach(container => {\n          const matchValue = container.item[this.args.nameKey];\n\n          // if our container matches the search term we have a match\n          if (matchValue.toLowerCase().includes(this.searchString.toLowerCase())) matchedContainers.push(container);\n\n          // if our container has children check the children\n          if (container.children) findContainer(container.children);\n        });\n      };\n      findContainer(this.currentContainers);\n      return matchedContainers;\n    }\n    clearScope() {\n      this.searchString = '';\n      this.scope = (0, _array.A)([]);\n    }\n    rebuildScopeFromContainer(container) {\n      // rebuild the scope from the end node by looking at all the items\n      const scope = [];\n      const unshiftContainerToScope = container => {\n        scope.unshift(container);\n        (function checkAllItemsForParent(items) {\n          items.forEach(c => {\n            // we have found the parent of this container, unshift it to scope\n            if (c.children.includes(container)) unshiftContainerToScope(c);\n            // if we didn't find the parent check the children\n            else if (c.children.length) checkAllItemsForParent(c.children);\n          });\n        })(this.args.items);\n      };\n      unshiftContainerToScope(container);\n      this.scope = (0, _array.A)(scope);\n      this.searchString = '';\n    }\n    goIntoContainer(container) {\n      this.scope.pushObject(container);\n    }\n    goToContainer(container) {\n      const index = this.scope.findIndex(c => c === container);\n      this.scope = this.scope.slice(0, index + 1);\n    }\n    focusInput(element) {\n      element.focus();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"scope\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"clearScope\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clearScope\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"rebuildScopeFromContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"rebuildScopeFromContainer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goIntoContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goIntoContainer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goToContainer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goToContainer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"focusInput\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"focusInput\"), _class.prototype), _class));\n});","define(\"portal/components/multi-task-selector-input\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PopUp\n    @visible={{@showTaskPopUp}}\n    @onClose={{fn (mut @showTaskPopUp) false}}\n    @disabled={{@disabled}}\n    as |pu|\n  >\n    <div\n      role='button'\n      class='form-control multi-task-selector-input__input\n        {{if @disabled \"multi-task-selector-input__input-disabled\"}}'\n      data-test-task-div=''\n      {{on 'click' (fn (mut @showTaskPopUp) (not @showTaskPopUp))}}\n      ...attributes\n    >\n      {{#if @selectedTasks.length}}\n        {{#each @selectedTasks as |task|}}\n          <div class='multi-task-selector-input__option text-truncate'>\n            <span\n              {{on 'click' (fn @removeSelectedTask task)}}\n              class='multi-task-selector-input__remove-button'\n            >\n              ×\n            </span>\n            {{task.name}}\n          </div>\n        {{/each}}\n      {{else}}\n        <span class='d-flex align-items-center mx-3 h-100'>\n          –\n        </span>\n      {{/if}}\n      <span\n        class='multi-task-selector-input__task-select-icon\n          {{if @showTaskPopUp \"rotate\"}}'\n      ></span>\n    </div>\n    <pu.Content>\n      <MultiTaskSelector\n        @tasks={{@selectedProject.activeTasks}}\n        @selectedTasks={{@selectedTasks}}\n        @onCancel={{fn (mut @showTaskPopUp) false}}\n        @onSubmit={{action @setSelectedTasks}}\n      />\n    </pu.Content>\n  </PopUp>\n  */\n  {\n    \"id\": \"2dNvSkvy\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@visible\\\",\\\"@onClose\\\",\\\"@disabled\\\"],[[30,1],[28,[37,1],[[28,[37,2],[[30,1]],null],false],null],[30,2]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[16,0,[29,[\\\"form-control multi-task-selector-input__input\\\\n      \\\",[52,[30,2],\\\"multi-task-selector-input__input-disabled\\\"]]]],[24,\\\"data-test-task-div\\\",\\\"\\\"],[17,4],[4,[38,5],[\\\"click\\\",[28,[37,1],[[28,[37,2],[[30,1]],null],[28,[37,6],[[30,1]],null]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"length\\\"]],[[[42,[28,[37,8],[[28,[37,8],[[30,5]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"multi-task-selector-input__option text-truncate\\\"],[12],[1,\\\"\\\\n          \\\"],[11,1],[24,0,\\\"multi-task-selector-input__remove-button\\\"],[4,[38,5],[\\\"click\\\",[28,[37,1],[[30,7],[30,6]],null]],null],[12],[1,\\\"\\\\n            ×\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[1,[30,6,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null]],[]],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"d-flex align-items-center mx-3 h-100\\\"],[12],[1,\\\"\\\\n        –\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[10,1],[15,0,[29,[\\\"multi-task-selector-input__task-select-icon\\\\n        \\\",[52,[30,1],\\\"rotate\\\"]]]],[12],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[30,3,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,10],null,[[\\\"@tasks\\\",\\\"@selectedTasks\\\",\\\"@onCancel\\\",\\\"@onSubmit\\\"],[[30,8,[\\\"activeTasks\\\"]],[30,5],[28,[37,1],[[28,[37,2],[[30,1]],null],false],null],[28,[37,11],[[30,0],[30,9]],null]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[3]]]]]],[\\\"@showTaskPopUp\\\",\\\"@disabled\\\",\\\"pu\\\",\\\"&attrs\\\",\\\"@selectedTasks\\\",\\\"task\\\",\\\"@removeSelectedTask\\\",\\\"@selectedProject\\\",\\\"@setSelectedTasks\\\"],false,[\\\"pop-up\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"not\\\",\\\"each\\\",\\\"-track-array\\\",\\\"span\\\",\\\"multi-task-selector\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/multi-task-selector-input.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/multi-task-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"portal/utils/multi-selectable-tree-item\", \"@ember/object\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _multiSelectableTreeItem, _object, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"portal/utils/multi-selectable-tree-item\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='task-selector__list'>\n    <MultiItemSelector\n      @items={{this.items}}\n      @nameKey='name'\n      @homeText={{t 'common.Tasks'}}\n      @noItemsMessage={{t 'common.No tasks'}}\n      @searchPlaceholder={{t 'common.Search for a task'}}\n      @noSearchItemsMessage={{t 'common.No tasks found'}}\n      @onChange={{this.onChange}}\n    />\n  </div>\n  \n  <div class='d-flex p-3 task-selector__footer border-top'>\n    <div class='flex-grow-1'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white'\n        data-test-task-selector-clear\n        {{on 'click' this.clear}}\n      >{{t 'common.Clear selection'}}</button>\n    </div>\n  \n    <button\n      type='button'\n      data-test-task-selector-cancel\n      {{on 'click' @onCancel}}\n      class='btn btn-secondary text-white me-2'\n    >{{t 'common.Cancel'}}</button>\n    <button\n      type='button'\n      {{on 'click' (fn @onSubmit this.selectedItems)}}\n      class='btn btn-primary text-white'\n      data-test-task-selector-ok-confirm\n    >{{t 'common.OK'}}</button>\n  </div>\n  */\n  {\n    \"id\": \"3cqXTsBm\",\n    \"block\": \"[[[10,0],[14,0,\\\"task-selector__list\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@items\\\",\\\"@nameKey\\\",\\\"@homeText\\\",\\\"@noItemsMessage\\\",\\\"@searchPlaceholder\\\",\\\"@noSearchItemsMessage\\\",\\\"@onChange\\\"],[[30,0,[\\\"items\\\"]],\\\"name\\\",[28,[37,2],[\\\"common.Tasks\\\"],null],[28,[37,2],[\\\"common.No tasks\\\"],null],[28,[37,2],[\\\"common.Search for a task\\\"],null],[28,[37,2],[\\\"common.No tasks found\\\"],null],[30,0,[\\\"onChange\\\"]]]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex p-3 task-selector__footer border-top\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,\\\"data-test-task-selector-clear\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"clear\\\"]]],null],[12],[1,[28,[35,2],[\\\"common.Clear selection\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,\\\"data-test-task-selector-cancel\\\",\\\"\\\"],[24,0,\\\"btn btn-secondary text-white me-2\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,2],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[24,\\\"data-test-task-selector-ok-confirm\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[30,2],[30,0,[\\\"selectedItems\\\"]]],null]],null],[12],[1,[28,[35,2],[\\\"common.OK\\\"],null]],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@onCancel\\\",\\\"@onSubmit\\\"],false,[\\\"div\\\",\\\"multi-item-selector\\\",\\\"t\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"portal/components/multi-task-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"items\", _descriptor, this);\n      this.items = _multiSelectableTreeItem.default.constructItemTreeFromTasks(this.args.tasks, this.args.selectedTasks);\n    }\n    onChange(container, event) {\n      event.preventDefault();\n      (0, _runloop.next)(() => {\n        const newIsEnabled = !container._isChecked;\n        const setIsTaskSchedulingOnChildren = item => {\n          item.isChecked = newIsEnabled;\n          if (item.children?.length) {\n            item.children.forEach(i => setIsTaskSchedulingOnChildren(i, true));\n          }\n        };\n        setIsTaskSchedulingOnChildren(container);\n      });\n    }\n    clear() {\n      const clearItems = items => {\n        items.forEach(item => {\n          item.isChecked = false;\n          if (item.children?.length) clearItems(item.children);\n        });\n      };\n      clearItems(this.items);\n    }\n    get selectedItems() {\n      const selectedItems = [];\n      const checkAllChildSelected = containers => {\n        containers.forEach(container => {\n          if (container.checked || container.indeterminate) {\n            selectedItems.push(container.item);\n          }\n          if (container.children?.length) checkAllChildSelected(container.children);\n        });\n      };\n      checkAllChildSelected(this.items);\n      return selectedItems;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"items\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clear\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clear\"), _class.prototype), _class));\n});","define(\"portal/components/multiple-from-elsewhere\", [\"exports\", \"ember-elsewhere/components/multiple-from-elsewhere\"], function (_exports, _multipleFromElsewhere) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _multipleFromElsewhere.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-elsewhere/components/multiple-from-elsewhere\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/multiselect-checkboxes\", [\"exports\", \"ember-multiselect-checkboxes/components/multiselect-checkboxes\"], function (_exports, _multiselectCheckboxes) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _multiselectCheckboxes.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-multiselect-checkboxes/components/multiselect-checkboxes\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/nested-task-card\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _service, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! template-lint-disable no-nested-interactive }}\n  {{#if @dsl.isDroppingAbove}}\n    <@dsl.Separator />\n  {{/if}}\n  \n  <@dsl.Draggable\n    class='nested-task-card__task-container'\n    {{did-update this.onIsDroppingInto @dsl.isDroppingInto}}\n    {{on 'drop' this.onDrop}}\n  >\n    {{#if (media 'isDesktop')}}\n      <@dsl.DragHandle>\n        <div\n          role='treeitem'\n          class='nested-task-card__task-row\n            {{if this.hasTimeout \"nested-task-card__task-row--expanding\"}}\n            {{if @dsl.isDragging \"nested-task-card__task-row--dragging\"}}'\n          {{on 'click' this.toggleExpanded}}\n          data-test-task-row={{@item.task.id}}\n        >\n          <div class='nested-task-card__left-icon'>\n            {{#if @item.children.length}}\n              <FaIcon\n                @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n              />\n            {{else if (and @item.expanded (not this.readOnly))}}\n              <FaIcon @icon='chevron-down' />\n            {{else if (not this.readOnly)}}\n              <FaIcon @icon='plus' />\n            {{/if}}\n          </div>\n  \n          <button\n            type='button'\n            class='nested-task-card__content-button'\n            {{on 'click' this.onNameButtonClick}}\n            {{! the task must have an id before it can be navigated to }}\n            disabled={{and @item.task.isSaving @item.task.isNew}}\n            data-test-task-name={{@item.task.id}}\n          >\n            {{@item.task.name}}\n          </button>\n  \n          <TaskTypeBadge @type={{@item.task.taskType}} class='m-1' />\n  \n          {{#if (includes-feature-flags @item.task 'canUseTaskBudgets')}}\n            {{#if\n              (or @item.task.hasDirectBudget @item.task.hasTaskChildrenBudget)\n            }}\n              <TaskDetailBadge\n                class='m-1'\n                @hasDirectRecord={{@item.task.hasDirectBudget}}\n                @char='B'\n              />\n            {{/if}}\n          {{/if}}\n  \n          {{#if (includes-feature-flags @item.task 'canUseTaskQuotes')}}\n            {{#if (or @item.task.hasDirectQuote @item.task.hasTaskChildrenQuote)}}\n              <TaskDetailBadge\n                class='m-1'\n                @hasDirectRecord={{@item.task.hasDirectQuote}}\n                @char='Q'\n              />\n            {{/if}}\n          {{/if}}\n  \n          {{#if\n            (or\n              @item.task.hasDirectAttachments\n              @item.task.hasTaskChildrenAttachments\n            )\n          }}\n            <TaskDetailBadge\n              class='m-1'\n              @hasDirectRecord={{@item.task.hasDirectAttachments}}\n              @icon='paperclip'\n            />\n          {{/if}}\n  \n          {{! TODO this UI is far from ideal }}\n          {{#if\n            (or\n              @item.task.userTaskAttributes.length\n              @item.task.workerTaskAttributes.length\n            )\n          }}\n            <TaskDetailBadge class='m-1' @hasDirectRecord={{true}} @icon='user' />\n          {{/if}}\n  \n          {{#if\n            (and\n              (or @item.task.hasDirectProducts @item.task.hasTaskChildrenProducts)\n              this.showProductIcon\n            )\n          }}\n            <TaskDetailBadge\n              class='m-1'\n              @hasDirectRecord={{@item.task.hasDirectProducts}}\n              @icon='cubes'\n            />\n          {{/if}}\n  \n          {{#unless this.readOnly}}\n            <div class='ms-auto'>\n              <div role='button' {{on 'click' this.toggleTaskActive}}>\n                <button\n                  type='button'\n                  class='btn text-white\n                    {{if\n                      (eq @item.task.timesheetStatus \"ACTIVE\")\n                      \"btn-primary\"\n                      \"btn-secondary\"\n                    }}\n                    nested-task-card__timesheet-toggle-button'\n                  disabled={{or\n                    @disableActions\n                    this.toggleTaskActive.isRunning\n                    @item.task.hasInactiveParents\n                  }}\n                >\n                  {{#if (eq @item.task.timesheetStatus 'ACTIVE')}}\n                    <FaIcon @icon='clock' @prefix='far' />\n                  {{else}}\n                    <FaIcon @icon='slash' @flip='horizontal' />\n                    <FaIcon @icon='clock' @prefix='far' />\n                  {{/if}}\n                </button>\n              </div>\n            </div>\n          {{/unless}}\n        </div>\n  \n      </@dsl.DragHandle>\n    {{else}}\n      <div\n        role='treeitem'\n        class='nested-task-card__task-row\n          {{if this.hasTimeout \"nested-task-card__task-row--expanding\"}}\n          {{if @dsl.isDragging \"nested-task-card__task-row--dragging\"}}'\n        {{on 'click' this.toggleExpanded}}\n        data-test-task-row={{@item.task.id}}\n      >\n        <@dsl.DragHandle class='me-3'>\n          <FaIcon @icon='grip-vertical' @fixedWidth={{true}} @size='lg' />\n        </@dsl.DragHandle>\n  \n        <div class='nested-task-card__left-icon'>\n          {{#if @item.children.length}}\n            <FaIcon @icon={{if @item.expanded 'chevron-down' 'chevron-right'}} />\n          {{else if (and @item.expanded (not this.readOnly))}}\n            <FaIcon @icon='chevron-down' />\n          {{else if (not this.readOnly)}}\n            <FaIcon @icon='plus' />\n          {{/if}}\n        </div>\n  \n        <button\n          type='button'\n          class='nested-task-card__content-button'\n          {{on 'click' this.onNameButtonClick}}\n          {{! the task must have an id before it can be navigated to }}\n          disabled={{and @item.task.isSaving @item.task.isNew}}\n          data-test-task-name={{@item.task.id}}\n        >\n          {{@item.task.name}}\n        </button>\n  \n        {{#unless (media 'isMobile')}}\n          {{#unless this.readOnly}}\n            <div class='ms-auto'>\n              <div role='button' {{on 'click' this.toggleTaskActive}}>\n                <button\n                  type='button'\n                  class='btn text-white\n                    {{if\n                      (eq @item.task.timesheetStatus \"ACTIVE\")\n                      \"btn-primary\"\n                      \"btn-secondary\"\n                    }}\n                    nested-task-card__timesheet-toggle-button'\n                  disabled={{or\n                    @disableActions\n                    this.toggleTaskActive.isRunning\n                    @item.task.hasInactiveParents\n                  }}\n                >\n                  {{#if (eq @item.task.timesheetStatus 'ACTIVE')}}\n                    <FaIcon @icon='clock' @prefix='far' />\n                  {{else}}\n                    <FaIcon @icon='slash' @flip='horizontal' />\n                    <FaIcon @icon='clock' @prefix='far' />\n                  {{/if}}\n                </button>\n              </div>\n            </div>\n          {{/unless}}\n        {{/unless}}\n      </div>\n  \n    {{/if}}\n  \n    {{#if @dsl.isDroppingInto}}\n      <div class='ms-5'>\n        <@dsl.Separator />\n      </div>\n    {{/if}}\n  \n    {{#if @item.expanded}}\n      <div class='ms-5'>\n        <@dsl.Children />\n  \n        {{#unless this.readOnly}}\n          <NestedTaskCard::AddTask\n            @inputId='new-task-name-input-{{@item.task.id}}'\n            @saveNewTask={{this.saveNewTask}}\n            {{! the task must be saved before children can be added }}\n            @disabled={{and @item.task.isSaving @item.task.isNew}}\n            @placeholder={{concat 'Add task for \"' @item.task.name '\"'}}\n            data-test-add-task={{@item.task.id}}\n          />\n        {{/unless}}\n      </div>\n    {{/if}}\n  </@dsl.Draggable>\n  \n  {{#if @dsl.isDroppingBelow}}\n    <@dsl.Separator />\n  {{/if}}\n  */\n  {\n    \"id\": \"oJpBenNJ\",\n    \"block\": \"[[[41,[30,1,[\\\"isDroppingAbove\\\"]],[[[1,\\\"  \\\"],[8,[30,1,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[30,1,[\\\"Draggable\\\"]],[[24,0,\\\"nested-task-card__task-container\\\"],[4,[38,1],[[30,0,[\\\"onIsDroppingInto\\\"]],[30,1,[\\\"isDroppingInto\\\"]]],null],[4,[38,2],[\\\"drop\\\",[30,0,[\\\"onDrop\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"DragHandle\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[16,0,[29,[\\\"nested-task-card__task-row\\\\n          \\\",[52,[30,0,[\\\"hasTimeout\\\"]],\\\"nested-task-card__task-row--expanding\\\"],\\\"\\\\n          \\\",[52,[30,1,[\\\"isDragging\\\"]],\\\"nested-task-card__task-row--dragging\\\"]]]],[16,\\\"data-test-task-row\\\",[30,2,[\\\"task\\\",\\\"id\\\"]]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"nested-task-card__left-icon\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[52,[30,2,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,2,[\\\"expanded\\\"]],[28,[37,7],[[30,0,[\\\"readOnly\\\"]]],null]],null],[[[1,\\\"            \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"chevron-down\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,0,[\\\"readOnly\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"nested-task-card__content-button\\\"],[16,\\\"disabled\\\",[28,[37,6],[[30,2,[\\\"task\\\",\\\"isSaving\\\"]],[30,2,[\\\"task\\\",\\\"isNew\\\"]]],null]],[16,\\\"data-test-task-name\\\",[30,2,[\\\"task\\\",\\\"id\\\"]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"onNameButtonClick\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[30,2,[\\\"task\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,9],[[24,0,\\\"m-1\\\"]],[[\\\"@type\\\"],[[30,2,[\\\"task\\\",\\\"taskType\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[[30,2,[\\\"task\\\"]],\\\"canUseTaskBudgets\\\"],null],[[[41,[28,[37,11],[[30,2,[\\\"task\\\",\\\"hasDirectBudget\\\"]],[30,2,[\\\"task\\\",\\\"hasTaskChildrenBudget\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,12],[[24,0,\\\"m-1\\\"]],[[\\\"@hasDirectRecord\\\",\\\"@char\\\"],[[30,2,[\\\"task\\\",\\\"hasDirectBudget\\\"]],\\\"B\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,2,[\\\"task\\\"]],\\\"canUseTaskQuotes\\\"],null],[[[41,[28,[37,11],[[30,2,[\\\"task\\\",\\\"hasDirectQuote\\\"]],[30,2,[\\\"task\\\",\\\"hasTaskChildrenQuote\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,12],[[24,0,\\\"m-1\\\"]],[[\\\"@hasDirectRecord\\\",\\\"@char\\\"],[[30,2,[\\\"task\\\",\\\"hasDirectQuote\\\"]],\\\"Q\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,2,[\\\"task\\\",\\\"hasDirectAttachments\\\"]],[30,2,[\\\"task\\\",\\\"hasTaskChildrenAttachments\\\"]]],null],[[[1,\\\"          \\\"],[8,[39,12],[[24,0,\\\"m-1\\\"]],[[\\\"@hasDirectRecord\\\",\\\"@icon\\\"],[[30,2,[\\\"task\\\",\\\"hasDirectAttachments\\\"]],\\\"paperclip\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,2,[\\\"task\\\",\\\"userTaskAttributes\\\",\\\"length\\\"]],[30,2,[\\\"task\\\",\\\"workerTaskAttributes\\\",\\\"length\\\"]]],null],[[[1,\\\"          \\\"],[8,[39,12],[[24,0,\\\"m-1\\\"]],[[\\\"@hasDirectRecord\\\",\\\"@icon\\\"],[true,\\\"user\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[28,[37,11],[[30,2,[\\\"task\\\",\\\"hasDirectProducts\\\"]],[30,2,[\\\"task\\\",\\\"hasTaskChildrenProducts\\\"]]],null],[30,0,[\\\"showProductIcon\\\"]]],null],[[[1,\\\"          \\\"],[8,[39,12],[[24,0,\\\"m-1\\\"]],[[\\\"@hasDirectRecord\\\",\\\"@icon\\\"],[[30,2,[\\\"task\\\",\\\"hasDirectProducts\\\"]],\\\"cubes\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"readOnly\\\"]]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleTaskActive\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[10,\\\"button\\\"],[15,0,[29,[\\\"btn text-white\\\\n                  \\\",[52,[28,[37,14],[[30,2,[\\\"task\\\",\\\"timesheetStatus\\\"]],\\\"ACTIVE\\\"],null],\\\"btn-primary\\\",\\\"btn-secondary\\\"],\\\"\\\\n                  nested-task-card__timesheet-toggle-button\\\"]]],[15,\\\"disabled\\\",[28,[37,11],[[30,3],[30,0,[\\\"toggleTaskActive\\\",\\\"isRunning\\\"]],[30,2,[\\\"task\\\",\\\"hasInactiveParents\\\"]]],null]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[30,2,[\\\"task\\\",\\\"timesheetStatus\\\"]],\\\"ACTIVE\\\"],null],[[[1,\\\"                  \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@prefix\\\"],[\\\"clock\\\",\\\"far\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@flip\\\"],[\\\"slash\\\",\\\"horizontal\\\"]],null],[1,\\\"\\\\n                  \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@prefix\\\"],[\\\"clock\\\",\\\"far\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[16,0,[29,[\\\"nested-task-card__task-row\\\\n        \\\",[52,[30,0,[\\\"hasTimeout\\\"]],\\\"nested-task-card__task-row--expanding\\\"],\\\"\\\\n        \\\",[52,[30,1,[\\\"isDragging\\\"]],\\\"nested-task-card__task-row--dragging\\\"]]]],[16,\\\"data-test-task-row\\\",[30,2,[\\\"task\\\",\\\"id\\\"]]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"DragHandle\\\"]],[[24,0,\\\"me-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"grip-vertical\\\",true,\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"nested-task-card__left-icon\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[52,[30,2,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,2,[\\\"expanded\\\"]],[28,[37,7],[[30,0,[\\\"readOnly\\\"]]],null]],null],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"chevron-down\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,0,[\\\"readOnly\\\"]]],null],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"\\\\n        \\\"]],[]],null]],[]]]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"nested-task-card__content-button\\\"],[16,\\\"disabled\\\",[28,[37,6],[[30,2,[\\\"task\\\",\\\"isSaving\\\"]],[30,2,[\\\"task\\\",\\\"isNew\\\"]]],null]],[16,\\\"data-test-task-name\\\",[30,2,[\\\"task\\\",\\\"id\\\"]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"onNameButtonClick\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[30,2,[\\\"task\\\",\\\"name\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,3],[\\\"isMobile\\\"],null]],[[[41,[51,[30,0,[\\\"readOnly\\\"]]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleTaskActive\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[10,\\\"button\\\"],[15,0,[29,[\\\"btn text-white\\\\n                  \\\",[52,[28,[37,14],[[30,2,[\\\"task\\\",\\\"timesheetStatus\\\"]],\\\"ACTIVE\\\"],null],\\\"btn-primary\\\",\\\"btn-secondary\\\"],\\\"\\\\n                  nested-task-card__timesheet-toggle-button\\\"]]],[15,\\\"disabled\\\",[28,[37,11],[[30,3],[30,0,[\\\"toggleTaskActive\\\",\\\"isRunning\\\"]],[30,2,[\\\"task\\\",\\\"hasInactiveParents\\\"]]],null]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[30,2,[\\\"task\\\",\\\"timesheetStatus\\\"]],\\\"ACTIVE\\\"],null],[[[1,\\\"                  \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@prefix\\\"],[\\\"clock\\\",\\\"far\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@flip\\\"],[\\\"slash\\\",\\\"horizontal\\\"]],null],[1,\\\"\\\\n                  \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@prefix\\\"],[\\\"clock\\\",\\\"far\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isDroppingInto\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"ms-5\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"expanded\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"ms-5\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"Children\\\"]],null,null,null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"readOnly\\\"]]],[[[1,\\\"        \\\"],[8,[39,15],[[16,\\\"data-test-add-task\\\",[30,2,[\\\"task\\\",\\\"id\\\"]]]],[[\\\"@inputId\\\",\\\"@saveNewTask\\\",\\\"@disabled\\\",\\\"@placeholder\\\"],[[29,[\\\"new-task-name-input-\\\",[30,2,[\\\"task\\\",\\\"id\\\"]]]],[30,0,[\\\"saveNewTask\\\"]],[28,[37,6],[[30,2,[\\\"task\\\",\\\"isSaving\\\"]],[30,2,[\\\"task\\\",\\\"isNew\\\"]]],null],[28,[37,16],[\\\"Add task for \\\\\\\"\\\",[30,2,[\\\"task\\\",\\\"name\\\"]],\\\"\\\\\\\"\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"isDroppingBelow\\\"]],[[[1,\\\"  \\\"],[8,[30,1,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@dsl\\\",\\\"@item\\\",\\\"@disableActions\\\"],false,[\\\"if\\\",\\\"did-update\\\",\\\"on\\\",\\\"media\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"and\\\",\\\"not\\\",\\\"button\\\",\\\"task-type-badge\\\",\\\"includes-feature-flags\\\",\\\"or\\\",\\\"task-detail-badge\\\",\\\"unless\\\",\\\"eq\\\",\\\"nested-task-card/add-task\\\",\\\"concat\\\"]]\",\n    \"moduleName\": \"portal/components/nested-task-card.hbs\",\n    \"isStrictMode\": false\n  });\n  const expandOnHoverMsTimeout = 500; // this is paired with .nested-task-card__task-row--expanding\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"timeout\", _descriptor5, this);\n      _initializerDefineProperty(this, \"hasTimeout\", _descriptor6, this);\n      _defineProperty(this, \"_toggleTaskActive\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const taskIsActive = this.args.item.task.timesheetStatus === 'ACTIVE';\n          const newStatus = taskIsActive ? 'INACTIVE' : 'ACTIVE';\n          const taskChildren = this.args.item.task.getAllActiveChildren(this.args.item.task);\n          this.args.item.task.timesheetStatus = newStatus;\n          taskChildren.forEach(task => task.timesheetStatus = newStatus);\n          yield this.buildaPrice.updateTaskList(this.args.item);\n        }\n      }), null, \"_toggleTaskActive\", null));\n    }\n    get readOnly() {\n      // don't try to evaluate permission on a task that isn't created\n      if (this.args.item.task.isNew) return false;\n      return this.newFeatureFlags.excludesFeatureFlags(this.args.item.task, 'canManageTasks');\n    }\n    onIsDroppingInto() {\n      const {\n        item,\n        dsl\n      } = this.args;\n\n      // when we are not dropping into and there is an existing timeout, clear the timeout\n      if (!dsl.isDroppingInto && this.hasTimeout) {\n        clearTimeout(this.timeout);\n        this.hasTimeout = false;\n      }\n      const hasChildren = Boolean(item.children?.length);\n      const isCollapsed = !item.expanded;\n      if (!this.hasTimeout && dsl.isDroppingInto && hasChildren && isCollapsed) {\n        this.hasTimeout = true;\n        this.timeout = setTimeout(() => {\n          this.args.item.expanded = true; // expand the item\n          this.hasTimeout = false;\n        }, expandOnHoverMsTimeout);\n      }\n    }\n    get showProductIcon() {\n      if (this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin')) return true;\n\n      // if the task hasn't been saved yet it can't have any product\n      if (!this.args.item.task.id) return false;\n      if (this.newFeatureFlags.includesFeatureFlags(this.args.item.task, 'canUseProducts')) return true;\n      if (this.args.item.task.allActiveChildren.length) {\n        if (this.args.item.task.allActiveChildren.some(task => this.newFeatureFlags.includesFeatureFlags(task, 'canUseProducts'))) {\n          return true;\n        }\n      }\n      return false;\n    }\n    onDrop() {\n      // expand the item if something has been dropped inside\n      if (this.args.dsl.isDroppingInto && !this.args.item.expanded) this.args.item.expanded = true;\n    }\n    toggleExpanded(event) {\n      this.args.item.expanded = !this.args.item.expanded;\n      if (this.args.item.expanded) this.focusTaskNameInput();\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    focusTaskNameInput() {\n      (0, _runloop.next)(() => {\n        document.getElementById(`new-task-name-input-${this.args.item.task.id}`)?.focus();\n      });\n    }\n    onNameButtonClick(event) {\n      event.stopPropagation();\n      event.preventDefault();\n\n      // this was not hooked up with a link-to because the element broken the drag animation\n      this.router.transitionTo('entity.builda-price.projects.project.tasks.task', this.args.item.task.id);\n    }\n    saveNewTask(name) {\n      this.args.saveNewTask.perform(name, this.args.item.task);\n    }\n    toggleTaskActive(event) {\n      event.stopPropagation();\n      event.preventDefault();\n      if (this.args.disableActions || this._toggleTaskActive.isRunning || this.args.item.task.hasInactiveParents) return;\n      this._toggleTaskActive.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"timeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"hasTimeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onIsDroppingInto\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onIsDroppingInto\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDrop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleExpanded\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleExpanded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onNameButtonClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onNameButtonClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveNewTask\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveNewTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleTaskActive\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleTaskActive\"), _class.prototype), _class));\n});","define(\"portal/components/nested-task-card/add-task\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _service, _object, _emberChangeset, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='nested-task-card__add-task-container' ...attributes>\n    {{#unless @readOnly}}\n      <FaIcon\n        @icon='plus'\n        @fixedWidth={{true}}\n        class='nested-task-card__add-task-icon'\n      />\n  \n      <Input\n        @type='text'\n        @value={{this.changeset.name}}\n        id={{@inputId}}\n        class='nested-task-card__add-task-input'\n        placeholder={{@placeholder}}\n        disabled={{@disabled}}\n        autofocus={{@autofocus}}\n        {{on 'keypress' this.onTaskNameInputKeypress}}\n        {{! you need this to prevent drops onto the input }}\n        {{on 'drop' this.noop}}\n      />\n  \n      {{#if this.changeset.name.length}}\n        <button\n          type='button'\n          class='ms-2 text-light btn btn-secondary me-3'\n          disabled={{@disabled}}\n          {{on 'click' this.saveNewTask}}\n        >{{t 'common.Add'}}</button>\n      {{/if}}\n    {{/unless}}\n  </div>\n  */\n  {\n    \"id\": \"gJag9Qo/\",\n    \"block\": \"[[[11,0],[24,0,\\\"nested-task-card__add-task-container\\\"],[17,1],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,2]],[[[1,\\\"    \\\"],[8,[39,2],[[24,0,\\\"nested-task-card__add-task-icon\\\"]],[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,3],[[16,1,[30,3]],[24,0,\\\"nested-task-card__add-task-input\\\"],[16,\\\"placeholder\\\",[30,4]],[16,\\\"disabled\\\",[30,5]],[16,\\\"autofocus\\\",[30,6]],[4,[38,4],[\\\"keypress\\\",[30,0,[\\\"onTaskNameInputKeypress\\\"]]],null],[4,[38,4],[\\\"drop\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"changeset\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"changeset\\\",\\\"name\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"ms-2 text-light btn btn-secondary me-3\\\"],[16,\\\"disabled\\\",[30,5]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"saveNewTask\\\"]]],null],[12],[1,[28,[35,7],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[13]],[\\\"&attrs\\\",\\\"@readOnly\\\",\\\"@inputId\\\",\\\"@placeholder\\\",\\\"@disabled\\\",\\\"@autofocus\\\"],false,[\\\"div\\\",\\\"unless\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"on\\\",\\\"if\\\",\\\"button\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/nested-task-card/add-task.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _defineProperty(this, \"validateName\", (newValue, oldValue) => {\n        const name = newValue || oldValue;\n        return name && name.length > 0 || this.intl.t('validation.Please provide a name');\n      });\n      _defineProperty(this, \"taskValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'name':\n            return this.validateName(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"validationMap\", {\n        name: this.validateName\n      });\n      _defineProperty(this, \"changeset\", (0, _emberChangeset.Changeset)({\n        name: undefined\n      }, this.taskValidator, this.validationMap));\n      _defineProperty(this, \"validateAndProcess\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.changeset.validate();\n          if (!this.changeset.isValid) {\n            this.notifications.warning(this.changeset.error.name.validation);\n            return;\n          }\n          this.args.saveNewTask(this.changeset.name);\n          this.changeset.name = '';\n        }\n      }), null, \"validateAndProcess\", null));\n    }\n    onTaskNameInputKeypress(e) {\n      if (e.key === 'Enter') {\n        this.saveNewTask();\n        e.target.blur();\n      }\n    }\n    saveNewTask() {\n      this.validateAndProcess.perform();\n    }\n    noop(e) {\n      e.preventDefault();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onTaskNameInputKeypress\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onTaskNameInputKeypress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveNewTask\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveNewTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _class));\n});","define(\"portal/components/new-combo-box\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"ember-concurrency\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _emberConcurrency, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='position-relative'\n    id={{this.elementId}}\n    {{will-destroy this.destroySearch}}\n    ...attributes\n  >\n    <PtlInput\n      class='new-combo-box__input'\n      @type='text'\n      @label={{@label}}\n      @key={{@key}}\n      @model={{@model}}\n      @required={{@required}}\n      @description={{@description}}\n      disabled={{@disabled}}\n      @forceValidationVisible={{@forceValidationVisible}}\n      placeholder={{@placeholder}}\n      {{on 'click' (perform this.onChangeSearch)}}\n      {{on 'input' (perform this.onChangeSearch)}}\n      {{on 'keyup' this.keyup}}\n    />\n  \n    {{#if this.showDropDown}}\n      <div class='new-combo-box__drop-down w-100'>\n        <div hidden {{did-insert this.initComboBox}} />\n        {{#if this.showDataList}}\n          {{#each @list key=@key as |item index|}}\n            <div\n              class='new-combo-box__drop-down-row\n                {{if\n                  (eq index this.selectedRow)\n                  \"new-combo-box__drop-down-row--selected\"\n                }}\n                {{concat \"new-combo-box__drop-down-row--\" index}}'\n              {{on 'click' (fn this.onSelect item)}}\n            >\n              {{#each this.optionKeys as |key|}}\n                {{get item key}}\n              {{/each}}\n              {{#if (and @customDescription (get item @customDescription))}}\n                &mdash;\n                {{get item @customDescription}}\n              {{/if}}\n            </div>\n          {{/each}}\n          {{#unless this.allItemsAreDisplayed}}\n            <div class='lazy-each__placeholder'>\n              {{t 'common.Loading more'}}\n              <LoadingIcon @type='spinner' />\n            </div>\n          {{/unless}}\n        {{else if this.isLoading}}\n          <div class='py-2 text-center'>\n            <LoadingIcon @type='spinner' />\n          </div>\n        {{else}}\n          <div class='p-3'>\n            {{#if @noDataMessage}}\n              {{@noDataMessage}}\n            {{else}}\n              {{t 'common.No data'}}\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"9p1PvsUG\",\n    \"block\": \"[[[11,0],[24,0,\\\"position-relative\\\"],[16,1,[30,0,[\\\"elementId\\\"]]],[17,1],[4,[38,1],[[30,0,[\\\"destroySearch\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[8,[39,2],[[24,0,\\\"new-combo-box__input\\\"],[16,\\\"disabled\\\",[30,2]],[16,\\\"placeholder\\\",[30,3]],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"onChangeSearch\\\"]]],null]],null],[4,[38,3],[\\\"input\\\",[28,[37,4],[[30,0,[\\\"onChangeSearch\\\"]]],null]],null],[4,[38,3],[\\\"keyup\\\",[30,0,[\\\"keyup\\\"]]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[30,4],[30,5],[30,6],[30,7],[30,8],[30,9]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showDropDown\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"new-combo-box__drop-down w-100\\\"],[12],[1,\\\"\\\\n      \\\"],[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,6],[[30,0,[\\\"initComboBox\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDataList\\\"]],[[[42,[28,[37,8],[[28,[37,8],[[30,10]],null]],null],[30,5],[[[1,\\\"          \\\"],[11,0],[16,0,[29,[\\\"new-combo-box__drop-down-row\\\\n              \\\",[52,[28,[37,9],[[30,12],[30,0,[\\\"selectedRow\\\"]]],null],\\\"new-combo-box__drop-down-row--selected\\\"],\\\"\\\\n              \\\",[28,[37,10],[\\\"new-combo-box__drop-down-row--\\\",[30,12]],null]]]],[4,[38,3],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"onSelect\\\"]],[30,11]],null]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"optionKeys\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[1,[28,[35,12],[[30,11],[30,13]],null]],[1,\\\"\\\\n\\\"]],[13]],null],[41,[28,[37,13],[[30,14],[28,[37,12],[[30,11],[30,14]],null]],null],[[[1,\\\"              —\\\\n              \\\"],[1,[28,[35,12],[[30,11],[30,14]],null]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[11,12]],null],[41,[51,[30,0,[\\\"allItemsAreDisplayed\\\"]]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"lazy-each__placeholder\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,15],[\\\"common.Loading more\\\"],null]],[1,\\\"\\\\n            \\\"],[8,[39,16],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"py-2 text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"p-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,15],[[[1,\\\"            \\\"],[1,[30,15]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,15],[\\\"common.No data\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"&attrs\\\",\\\"@disabled\\\",\\\"@placeholder\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\",\\\"@list\\\",\\\"item\\\",\\\"index\\\",\\\"key\\\",\\\"@customDescription\\\",\\\"@noDataMessage\\\"],false,[\\\"div\\\",\\\"will-destroy\\\",\\\"ptl-input\\\",\\\"on\\\",\\\"perform\\\",\\\"if\\\",\\\"did-insert\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"concat\\\",\\\"fn\\\",\\\"get\\\",\\\"and\\\",\\\"unless\\\",\\\"t\\\",\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/components/new-combo-box.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    initComboBox() {\n      const parentElement = document.getElementById(this.elementId);\n      this.scrollableParent = parentElement.querySelector('.new-combo-box__drop-down');\n      this.findLastElement();\n      this.scrollHandler = this.checkVisible.bind(this);\n      this.scrollableParent.addEventListener('scroll', this.scrollHandler);\n      this.inputElement = parentElement.querySelector('.new-combo-box__input');\n    }\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"showDropDown\", _descriptor, this);\n      _defineProperty(this, \"scrollHandler\", null);\n      _defineProperty(this, \"elementIdentifier\", null);\n      _initializerDefineProperty(this, \"scrollableParent\", _descriptor2, this);\n      _initializerDefineProperty(this, \"inputElement\", _descriptor3, this);\n      _initializerDefineProperty(this, \"selectedRow\", _descriptor4, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor5, this);\n      _initializerDefineProperty(this, \"lastLoadedSearchTerm\", _descriptor6, this);\n      _defineProperty(this, \"debounce\", this.args.debounce);\n      _defineProperty(this, \"renderMore\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.args.onLoadMore.perform();\n        }\n      }), null, \"renderMore\", null));\n      _defineProperty(this, \"onChangeSearch\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          const thisSearchTerm = e.target.value.trim();\n          if (!this.showDropDown) this.showDropDown = true;\n          if (this.searchTerm === thisSearchTerm && this.lastLoadedSearchTerm === thisSearchTerm) return;\n          this.searchTerm = thisSearchTerm;\n          if (this.debounce) yield (0, _emberConcurrency.timeout)(this.debounce);\n          yield this.args.onSearch.perform(this.searchTerm);\n          this.lastLoadedSearchTerm = thisSearchTerm;\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearch\", null));\n      this.elementId = 'new-combo-box__' + Math.floor(Math.random() * 1e5);\n      window.addEventListener('click', this.handleBlur.bind(this));\n    }\n    get allItemsAreDisplayed() {\n      return !this.args.hasNextPage;\n    }\n    findLastElement() {\n      if (this.allItemsAreDisplayed) return;\n      const element = Array.from(this.scrollableParent.querySelectorAll(`.new-combo-box__drop-down-row`)).pop();\n      return element;\n    }\n    async checkVisible() {\n      if (this.isLoading) return;\n      if (this.allItemsAreDisplayed) return;\n      const element = this.findLastElement();\n      if (!element) return;\n      const scrollableParent = this.scrollableParent;\n      const screenHeight = scrollableParent.clientHeight;\n      const topOfElement = element.offsetTop;\n      const bottomOfElement = topOfElement + element.offsetHeight;\n      const topOfScreen = scrollableParent.scrollTop;\n      const bottomOfScreen = topOfScreen + screenHeight;\n      const padding = 10;\n      if (bottomOfScreen + padding > bottomOfElement) {\n        await this.renderMore.perform();\n        // Check again if we have rendered enough elements for our scroll position\n        (0, _runloop.next)(() => this.checkVisible());\n      }\n    }\n    setDropdownVisible(visible) {\n      if (this.showDropDown !== visible) this.showDropDown = visible;\n    }\n    keepSelectedRowVisible(selectedRowIndex) {\n      const $row = this.scrollableParent.querySelector('.new-combo-box__drop-down-row--' + selectedRowIndex);\n      const $container = this.scrollableParent;\n      if ($row && $container) {\n        const rowTop = $row.offsetTop;\n        const rowHeight = $row.offsetHeight;\n        const containerHeight = $container.clientHeight;\n        const containerScrollTop = $container.scrollTop;\n        if (rowTop + rowHeight > containerScrollTop + containerHeight) {\n          $container.scrollTop = rowTop + rowHeight - containerHeight;\n        } else if (rowTop < containerScrollTop) {\n          $container.scrollTop = rowTop;\n        }\n      }\n    }\n    keyup(event) {\n      if (this.isLoading) return;\n      const selectedRow = this.selectedRow;\n      switch (event.keyCode) {\n        // down arrow\n        case 38:\n          this.setDropdownVisible(true);\n          if (selectedRow > 0) {\n            const newSelectedRow = selectedRow - 1;\n            this.selectedRow = newSelectedRow;\n            this.keepSelectedRowVisible(newSelectedRow);\n          }\n          break;\n        // up arrow\n        case 40:\n          this.setDropdownVisible(true);\n          if (selectedRow + 1 < this.args.list.length) {\n            const newSelectedRow = selectedRow + 1;\n            this.selectedRow = newSelectedRow;\n            this.keepSelectedRowVisible(newSelectedRow);\n          }\n          break;\n        // enter\n        case 13:\n          if (this.showDropDown) this.onSelect(this.args.list[selectedRow]);\n          event.preventDefault();\n          break;\n        // tab\n        case 9:\n          this.selectedRow = -1;\n          this.setDropdownVisible(false);\n          break;\n        // escape\n        case 27:\n          this.setDropdownVisible(false);\n          break;\n        // any other key\n        default:\n          this.selectedRow = -1;\n          this.setDropdownVisible(true);\n          break;\n      }\n    }\n    onSelect(item) {\n      this.args.onSelect(item);\n      this.showDropDown = false;\n    }\n    handleBlur(event) {\n      if (!document.getElementById(this.elementId)) return;\n      if (this.showDropDown && this.inputElement != event.target && !this.scrollableParent.contains(event.target) && this.scrollableParent != event.target) {\n        this.showDropDown = false;\n      }\n    }\n    destroySearch() {\n      if (document.getElementById(this.elementId)) {\n        window.removeEventListener('click', this.handleBlur);\n        window.removeEventListener('scroll', this.scrollHandler);\n      }\n    }\n    get isLoading() {\n      return this.onChangeSearch.isRunning || this.args.isLoading;\n    }\n    get showDataList() {\n      return !this.onChangeSearch.isRunning && this.args.list.length;\n    }\n    get optionKeys() {\n      return this.args.optionKeys || [this.args.key];\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"showDropDown\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"scrollableParent\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"inputElement\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"selectedRow\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return -1;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"lastLoadedSearchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"initComboBox\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"initComboBox\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"keyup\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"keyup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelect\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelect\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"destroySearch\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"destroySearch\"), _class.prototype), _class));\n});","define(\"portal/components/new-supplier-prompt\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.visible}}\n    <ModalDialog\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @containerClass='block-module'\n      @onClose={{action this.close}}\n    >\n      <header class='block-module__header'>\n        <h2 class='h2'>\n          {{#if this.newSupplierIsBeingUpdated}}\n            {{t 'components.new-supplier-prompt.Editing information for'}}\n            <i>{{this.newSupplier.name}}</i>…\n          {{else}}\n            {{t 'components.new-supplier-prompt.We found a new supplier'}},\n            <i>{{this.newSupplier.name}}</i>…\n          {{/if}}\n        </h2>\n      </header>\n  \n      {{#if this.newSupplierIsBeingUpdated}}\n        <div class='tabular-form-controls'>\n          <div class='tabular-form-controls__row'>\n            <label\n              for='contact'\n              class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            >\n              {{t 'shared.contacts.Contact person'}}\n            </label>\n            <Input\n              class='tabular-form-controls__cell text-input'\n              id='contact'\n              @type='text'\n              @value={{this.newSupplier.contactPerson}}\n            />\n          </div>\n          <div class='tabular-form-controls__row'>\n            <label\n              for='number'\n              class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            >\n              {{t 'shared.contacts.Contact number'}}\n            </label>\n            <Input\n              class='tabular-form-controls__cell text-input'\n              id='number'\n              @type='text'\n              @value={{this.newSupplier.contactNumber}}\n            />\n          </div>\n          <div class='tabular-form-controls__row'>\n            <label\n              for='email'\n              class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            >\n              {{t 'shared.contacts.Contact email'}}\n            </label>\n            <Input\n              class='tabular-form-controls__cell text-input'\n              id='email'\n              @type='email'\n              @value={{this.newSupplier.contactEmail}}\n            />\n          </div>\n          <div class='tabular-form-controls__row'>\n            <label\n              for='address'\n              class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            >\n              {{t 'common.Address'}}\n            </label>\n            <Input\n              class='tabular-form-controls__cell text-input'\n              id='address'\n              @type='text'\n              @value={{this.newSupplier.address}}\n            />\n          </div>\n        </div>\n        <br /><br />\n        <LoadingButton\n          @class='button button--spaced float-end'\n          @action={{action this.updateSupplier this.newSupplier}}\n          @isLoading={{this.isSaving}}\n          @buttonText={{t 'common.Done'}}\n        />\n      {{else}}\n        <p>\n          {{t\n            'components.new-supplier-prompt.wouldYouLikeToAddInformationForThisSupplierNow'\n          }}\n          <br /><br />\n        </p>\n  \n        <button\n          class='button button--spaced float-end'\n          type='button'\n          {{action this.set 'newSupplierIsBeingUpdated' true bubbles=false}}\n        >\n          {{t 'common.Yes'}}\n        </button>\n      {{/if}}\n      <button\n        class='button button--plain button--spaced float-end'\n        type='button'\n        {{action\n          (pipe\n            (action this.close)\n            (action this.set 'newSupplierIsBeingUpdated' false)\n          )\n        }}\n        data-test-new-supplier-cancel-button\n      >\n        {{t 'common.Cancel'}}\n      </button>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"vDbL2meY\",\n    \"block\": \"[[[41,[30,0,[\\\"visible\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[true,\\\"modal\\\",\\\"block-module\\\",[28,[37,2],[[30,0],[30,0,[\\\"close\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newSupplierIsBeingUpdated\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.new-supplier-prompt.Editing information for\\\"],null]],[1,\\\"\\\\n          \\\"],[10,\\\"i\\\"],[12],[1,[30,0,[\\\"newSupplier\\\",\\\"name\\\"]]],[13],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"components.new-supplier-prompt.We found a new supplier\\\"],null]],[1,\\\",\\\\n          \\\"],[10,\\\"i\\\"],[12],[1,[30,0,[\\\"newSupplier\\\",\\\"name\\\"]]],[13],[1,\\\"…\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"newSupplierIsBeingUpdated\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"tabular-form-controls\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"contact\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"shared.contacts.Contact person\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,9],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"contact\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"newSupplier\\\",\\\"contactPerson\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"number\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"shared.contacts.Contact number\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,9],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"number\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"newSupplier\\\",\\\"contactNumber\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"email\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"shared.contacts.Contact email\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,9],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"email\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"email\\\",[30,0,[\\\"newSupplier\\\",\\\"contactEmail\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"address\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"common.Address\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,9],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"address\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"newSupplier\\\",\\\"address\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[8,[39,11],null,[[\\\"@class\\\",\\\"@action\\\",\\\"@isLoading\\\",\\\"@buttonText\\\"],[\\\"button button--spaced float-end\\\",[28,[37,2],[[30,0],[30,0,[\\\"updateSupplier\\\"]],[30,0,[\\\"newSupplier\\\"]]],null],[30,0,[\\\"isSaving\\\"]],[28,[37,5],[\\\"common.Done\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"components.new-supplier-prompt.wouldYouLikeToAddInformationForThisSupplierNow\\\"],null]],[1,\\\"\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],[30,0,[\\\"set\\\"]],\\\"newSupplierIsBeingUpdated\\\",true],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"common.Yes\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced float-end\\\"],[24,\\\"data-test-new-supplier-cancel-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],[28,[37,14],[[28,[37,2],[[30,0],[30,0,[\\\"close\\\"]]],null],[28,[37,2],[[30,0],[30,0,[\\\"set\\\"]],\\\"newSupplierIsBeingUpdated\\\",false],null]],null]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"action\\\",\\\"header\\\",\\\"h2\\\",\\\"t\\\",\\\"i\\\",\\\"div\\\",\\\"label\\\",\\\"input\\\",\\\"br\\\",\\\"loading-button\\\",\\\"p\\\",\\\"button\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/components/new-supplier-prompt.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    newSupplierIsBeingUpdated: false\n  }));\n});","define(\"portal/components/notification-container\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='notification-container'>\n    {{#each @notifications.list as |notification|}}\n      <NotificationMessage @notification={{notification}} />\n    {{/each}}\n  </div>\n  */\n  {\n    \"id\": \"GK0nMd3z\",\n    \"block\": \"[[[10,0],[14,0,\\\"notification-container\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,1,[\\\"list\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@notification\\\"],[[30,2]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[13]],[\\\"@notifications\\\",\\\"notification\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"notification-message\\\"]]\",\n    \"moduleName\": \"portal/components/notification-container.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/notification-message\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _template, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='notification-message notification-message--animated\n      {{this.typeClassVariant}}\n      {{unless @notification.dismiss \"notification-message--incoming\"}}'\n  >\n    <div class='notification-message__icon'>\n      <FaIcon @icon={{this.icon}} />\n    </div>\n  \n    <div class='notification-message__content'>\n      {{html-safe @notification.message}}\n    </div>\n  \n    <a class='notification-message__close-button' {{on 'click' this.clear}}>\n      <FaIcon @icon='times-circle' />\n    </a>\n  \n    {{#if @notification.autoClear}}\n      <div\n        class='notification-message__countdown'\n        style={{this.notificationClearDuration}}\n      ></div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"4vlGaADc\",\n    \"block\": \"[[[10,0],[15,0,[29,[\\\"notification-message notification-message--animated\\\\n    \\\",[30,0,[\\\"typeClassVariant\\\"]],\\\"\\\\n    \\\",[52,[51,[30,1,[\\\"dismiss\\\"]]],\\\"notification-message--incoming\\\"]]]],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"notification-message__icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[[30,0,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"notification-message__content\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[[30,1,[\\\"message\\\"]]],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[11,3],[24,0,\\\"notification-message__close-button\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"clear\\\"]]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[\\\"times-circle\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"autoClear\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"notification-message__countdown\\\"],[15,5,[30,0,[\\\"notificationClearDuration\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@notification\\\"],false,[\\\"div\\\",\\\"unless\\\",\\\"fa-icon\\\",\\\"html-safe\\\",\\\"a\\\",\\\"on\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"portal/components/notification-message.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n    }\n    get typeClassVariant() {\n      const type = this.args.notification?.type || 'info';\n      return `notification-message--${type}`;\n    }\n    get icon() {\n      switch (this.args.notification?.type) {\n        case 'warning':\n          return 'warning';\n        case 'success':\n          return 'check';\n        case 'error':\n          return 'exclamation-circle';\n        default:\n          return 'info-circle';\n      }\n    }\n    get notificationClearDuration() {\n      const duration = Number(this.args.notification?.clearDuration || 0);\n      return (0, _template.htmlSafe)(`animation-duration: ${duration}ms; -webkit-animation-duration: ${duration}ms;`);\n    }\n    clear() {\n      this.notifications.clear(this.args.notification);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"clear\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clear\"), _class.prototype), _class));\n});","define(\"portal/components/overlaid-dropdown\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='overlaid-dropdown'\n    {{on 'blur' this.handleBlur}}\n    {{did-insert this.registerElement}}\n    tabindex='-1'\n    ...attributes\n  >\n    <LoadingButton\n      @class={{concat 'overlaid-dropdown__button ' @buttonClasses}}\n      @action={{this.onButtonClick}}\n      disabled={{@disabled}}\n    >\n      {{#if @buttonText}}\n        {{{@buttonText}}}\n      {{/if}}\n      {{#if @buttonIcon}}\n        {{fa-icon icon=@buttonIcon}}\n      {{/if}}\n    </LoadingButton>\n  \n    <div\n      class='overlaid-dropdown__body\n        {{if (eq @align \"right\") \"overlaid-dropdown__body--right\"}}\n        {{if (not this.showDropdown) \"overlaid-dropdown__body--hidden\"}}'\n    >\n      {{#if @title}}\n        <div class='overlaid-dropdown__title'>{{@title}}</div>\n      {{/if}}\n  \n      {{yield this.closeDropdown}}\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"ijWIgEak\",\n    \"block\": \"[[[11,0],[24,0,\\\"overlaid-dropdown\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[17,1],[4,[38,1],[\\\"blur\\\",[30,0,[\\\"handleBlur\\\"]]],null],[4,[38,2],[[30,0,[\\\"registerElement\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[8,[39,3],[[16,\\\"disabled\\\",[30,2]]],[[\\\"@class\\\",\\\"@action\\\"],[[28,[37,4],[\\\"overlaid-dropdown__button \\\",[30,3]],null],[30,0,[\\\"onButtonClick\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"      \\\"],[2,[30,4]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,5],[[[1,\\\"      \\\"],[1,[28,[35,6],null,[[\\\"icon\\\"],[[30,5]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[15,0,[29,[\\\"overlaid-dropdown__body\\\\n      \\\",[52,[28,[37,7],[[30,6],\\\"right\\\"],null],\\\"overlaid-dropdown__body--right\\\"],\\\"\\\\n      \\\",[52,[28,[37,8],[[30,0,[\\\"showDropdown\\\"]]],null],\\\"overlaid-dropdown__body--hidden\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"overlaid-dropdown__title\\\"],[12],[1,[30,7]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[18,8,[[30,0,[\\\"closeDropdown\\\"]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@disabled\\\",\\\"@buttonClasses\\\",\\\"@buttonText\\\",\\\"@buttonIcon\\\",\\\"@align\\\",\\\"@title\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"on\\\",\\\"did-insert\\\",\\\"loading-button\\\",\\\"concat\\\",\\\"if\\\",\\\"fa-icon\\\",\\\"eq\\\",\\\"not\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/overlaid-dropdown.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"showDropdown\", _descriptor, this);\n      _initializerDefineProperty(this, \"element\", _descriptor2, this);\n    }\n    registerElement(element) {\n      this.element = element;\n    }\n    onButtonClick() {\n      this.element.focus();\n      this.showDropdown = !this.showDropdown;\n    }\n    closeDropdown() {\n      this.showDropdown = false;\n    }\n    handleBlur(event) {\n      const focusLeavingComponent = !event.relatedTarget || !this.element.contains(event.relatedTarget);\n      if (focusLeavingComponent) {\n        this.showDropdown = false;\n        return;\n      }\n      (0, _runloop.next)(() => {\n        if (this.isDestroyed || !this.element) return;\n        this.element.focus();\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"showDropdown\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"element\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"registerElement\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"registerElement\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onButtonClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onButtonClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeDropdown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeDropdown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleBlur\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleBlur\"), _class.prototype), _class));\n});","define(\"portal/components/page-filters\", [\"exports\", \"@ember/component\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='page-filters__drop-down-container'>\n    <button\n      class='btn btn-secondary m-1'\n      data-test-filter-button=''\n      type='button'\n      {{action this.toggleProperty 'filterModalVisible'}}\n      disabled={{@disable}}\n    >\n      {{or this.buttonText (t 'common.Filters')}}&nbsp;&nbsp;<FaIcon\n        @icon='caret-down'\n      />\n    </button>\n    {{#if this.filterModalVisible}}\n      <div\n        class='page-filters__drop-down-filters\n          {{if\n            (eq this.align \"right\")\n            \"page-filters__drop-down-filters--right\"\n            \"page-filters__drop-down-filters--left\"\n          }}'\n      >\n        <div class='text-right'>\n          <button\n            class='text-button'\n            type='button'\n            {{action this.toggleProperty 'filterModalVisible'}}\n          ><FaIcon @icon='times' /></button>\n        </div>\n        {{yield}}\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"dcl0x/SK\",\n    \"block\": \"[[[10,0],[14,0,\\\"page-filters__drop-down-container\\\"],[12],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[24,\\\"data-test-filter-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,1]],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"filterModalVisible\\\"],null],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[[30,0,[\\\"buttonText\\\"]],[28,[37,4],[\\\"common.Filters\\\"],null]],null]],[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"filterModalVisible\\\"]],[[[1,\\\"    \\\"],[10,0],[15,0,[29,[\\\"page-filters__drop-down-filters\\\\n        \\\",[52,[28,[37,7],[[30,0,[\\\"align\\\"]],\\\"right\\\"],null],\\\"page-filters__drop-down-filters--right\\\",\\\"page-filters__drop-down-filters--left\\\"]]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"filterModalVisible\\\"],null],[12],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[18,2,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@disable\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"button\\\",\\\"action\\\",\\\"or\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"if\\\",\\\"eq\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/page-filters.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"filterModalVisible\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"filterModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class));\n});","define(\"portal/components/page-filters/item\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.label}}\n    <label class='no-wrap'>{{this.label}}</label>\n  {{/if}}\n  <div class='page-filters__drop-down-filter'>{{yield}}</div>\n  */\n  {\n    \"id\": \"oSwMZypU\",\n    \"block\": \"[[[41,[30,0,[\\\"label\\\"]],[[[1,\\\"  \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap\\\"],[12],[1,[30,0,[\\\"label\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"page-filters__drop-down-filter\\\"],[12],[18,1,null],[13]],[\\\"&default\\\"],false,[\\\"if\\\",\\\"label\\\",\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/page-filters/item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tagName\", '');\n    }\n  });\n});","define(\"portal/components/page-filters/pill\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{yield}}\n  {{#if this.onClose}}\n    &nbsp;\n    <span role='button' {{on 'click' this.onClose}}>\n      <FaIcon @icon='times' />\n    </span>\n  {{/if}}\n  */\n  {\n    \"id\": \"4Q3y3mbH\",\n    \"block\": \"[[[18,1,null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onClose\\\"]],[[[1,\\\"   \\\\n  \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"onClose\\\"]]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"&default\\\"],false,[\\\"yield\\\",\\\"if\\\",\\\"span\\\",\\\"on\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/page-filters/pill.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tagName\", 'span');\n      _defineProperty(this, \"classNames\", ['px-2 py-1 fw-bold rounded bg-info text-white m-1 fs-7 text-nowrap']);\n    }\n  });\n});","define(\"portal/components/page-header\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='border-bottom d-flex align-items-center p-3'>\n    <h1 class='m-0'>{{@title}}</h1>\n  \n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"lrYC1R4v\",\n    \"block\": \"[[[10,0],[14,0,\\\"border-bottom d-flex align-items-center p-3\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[14,0,\\\"m-0\\\"],[12],[1,[30,1]],[13],[1,\\\"\\\\n\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13]],[\\\"@title\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"h1\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/page-header.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/page-title-breadcrumbs\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.crumbStack as |crumb|}}\n    {{#if (eq crumb this.lastCrumb)}}\n      <span\n        class='fw-bold fs-5'\n        data-test-page-title-breadcrumbs-crumb\n        data-test-page-title-breadcrumbs-crumb-last\n      >\n        {{ellipsis-words (or crumb.pageTitle crumb.name) 5}}\n      </span>\n    {{else}}\n      {{#if crumb.model}}\n        <LinkTo\n          @route={{crumb.route}}\n          @model={{crumb.model}}\n          class='fs-5'\n          data-test-page-title-breadcrumbs-crumb\n          data-test-page-title-breadcrumbs-crumb-link-with-model\n        >\n          {{ellipsis-words crumb.pageTitle 3}}\n        </LinkTo>\n      {{else if crumb.route}}\n        <LinkTo\n          @route={{crumb.route}}\n          class='fs-5'\n          data-test-page-title-breadcrumbs-crumb\n          data-test-page-title-breadcrumbs-crumb-link-no-model\n        >\n          {{ellipsis-words crumb.pageTitle 3}}\n        </LinkTo>\n        {{! TODO onclick and action are basically the same API }}\n      {{else if @action}}\n        <span\n          class='fs-5 btn-link'\n          role='button'\n          data-test-page-title-breadcrumbs-crumb\n          data-test-page-title-breadcrumbs-crumb-text\n          {{on 'click' (perform @action crumb)}}\n        >\n          {{ellipsis-words (or crumb.pageTitle crumb.name) 3}}\n        </span>\n      {{else if crumb.onClick}}\n        <span\n          role='button'\n          class='fs-5 btn btn-link'\n          data-test-page-title-breadcrumbs-crumb\n          data-test-page-title-breadcrumbs-crumb-text\n          {{on 'click' crumb.onClick}}\n        >\n          {{ellipsis-words crumb.pageTitle 3}}\n        </span>\n      {{else}}\n        <span\n          class='fs-5'\n          role='button'\n          data-test-page-title-breadcrumbs-crumb\n          data-test-page-title-breadcrumbs-crumb-text\n        >\n          {{ellipsis-words (or crumb.pageTitle crumb.name) 3}}\n        </span>\n      {{/if}}\n      {{#let (or @icon 'chevron-right') as |icon|}}\n        <FaIcon\n          @icon={{icon}}\n          class='mx-2 fs-6 text-secondary'\n          data-test-page-title-breadcrumbs-crumb-icon={{icon}}\n        />\n      {{/let}}\n    {{/if}}\n  {{/each}}\n  */\n  {\n    \"id\": \"J9Nd5ut/\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"crumbStack\\\"]]],null]],null],null,[[[41,[28,[37,3],[[30,1],[30,0,[\\\"lastCrumb\\\"]]],null],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"fw-bold fs-5\\\"],[14,\\\"data-test-page-title-breadcrumbs-crumb\\\",\\\"\\\"],[14,\\\"data-test-page-title-breadcrumbs-crumb-last\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[[28,[37,6],[[30,1,[\\\"pageTitle\\\"]],[30,1,[\\\"name\\\"]]],null],5],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"model\\\"]],[[[1,\\\"      \\\"],[8,[39,7],[[24,0,\\\"fs-5\\\"],[24,\\\"data-test-page-title-breadcrumbs-crumb\\\",\\\"\\\"],[24,\\\"data-test-page-title-breadcrumbs-crumb-link-with-model\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,1,[\\\"route\\\"]],[30,1,[\\\"model\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[[30,1,[\\\"pageTitle\\\"]],3],null]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"route\\\"]],[[[1,\\\"      \\\"],[8,[39,7],[[24,0,\\\"fs-5\\\"],[24,\\\"data-test-page-title-breadcrumbs-crumb\\\",\\\"\\\"],[24,\\\"data-test-page-title-breadcrumbs-crumb-link-no-model\\\",\\\"\\\"]],[[\\\"@route\\\"],[[30,1,[\\\"route\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[[30,1,[\\\"pageTitle\\\"]],3],null]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,2],[[[1,\\\"      \\\"],[11,1],[24,0,\\\"fs-5 btn-link\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"data-test-page-title-breadcrumbs-crumb\\\",\\\"\\\"],[24,\\\"data-test-page-title-breadcrumbs-crumb-text\\\",\\\"\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,2],[30,1]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[[28,[37,6],[[30,1,[\\\"pageTitle\\\"]],[30,1,[\\\"name\\\"]]],null],3],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"onClick\\\"]],[[[1,\\\"      \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"fs-5 btn btn-link\\\"],[24,\\\"data-test-page-title-breadcrumbs-crumb\\\",\\\"\\\"],[24,\\\"data-test-page-title-breadcrumbs-crumb-text\\\",\\\"\\\"],[4,[38,8],[\\\"click\\\",[30,1,[\\\"onClick\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[[30,1,[\\\"pageTitle\\\"]],3],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"fs-5\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"data-test-page-title-breadcrumbs-crumb\\\",\\\"\\\"],[14,\\\"data-test-page-title-breadcrumbs-crumb-text\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[[28,[37,6],[[30,1,[\\\"pageTitle\\\"]],[30,1,[\\\"name\\\"]]],null],3],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]],[]]]],[]]]],[]]],[44,[[28,[37,6],[[30,3],\\\"chevron-right\\\"],null]],[[[1,\\\"      \\\"],[8,[39,11],[[24,0,\\\"mx-2 fs-6 text-secondary\\\"],[16,\\\"data-test-page-title-breadcrumbs-crumb-icon\\\",[30,4]]],[[\\\"@icon\\\"],[[30,4]]],null],[1,\\\"\\\\n\\\"]],[4]]]],[]]]],[1]],null]],[\\\"crumb\\\",\\\"@action\\\",\\\"@icon\\\",\\\"icon\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"eq\\\",\\\"span\\\",\\\"ellipsis-words\\\",\\\"or\\\",\\\"link-to\\\",\\\"on\\\",\\\"perform\\\",\\\"let\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/page-title-breadcrumbs.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get crumbStack() {\n      return this.args.crumbStack;\n    }\n    get lastCrumb() {\n      return this.args.crumbStack[this.args.crumbStack.length - 1];\n    }\n  });\n});","define(\"portal/components/pagination-table\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='pagination-table__container'>\n    <div class='pagination-table__table-container'>\n      {{#if @isLoading}}\n        <SkeletonScreens::Table\n          @columnLength={{this.skeletonColumnNumber}}\n          @rowLength={{this.skeletonRowNumber}}\n        />\n      {{else}}\n        <table\n          class='{{@class}}\n            table pagination-table\n            {{if @validationMessage \"mb-0\"}}'\n          {{did-insert this.setSkeletonTable}}\n          data-test-pagination-table\n        >\n          <thead class='pagination-table__table-thead'>\n            <tr>\n              {{#each @tableHeader as |tableHeaderCol|}}\n                <th\n                  class='{{tableHeaderCol.colClass}} pagination-table__nowrap'\n                  {{on 'click' (fn this.onClickCol undefined tableHeaderCol)}}\n                >\n                  {{#if (eq tableHeaderCol.type 'CHECKBOX_INPUT')}}\n                    <LabelPopup @text={{tableHeaderCol.title}}>\n                      <IndeterminateCheckbox\n                        @checked={{tableHeaderCol.value}}\n                        @indeterminate={{tableHeaderCol.isPartiallySelected}}\n                        @onChange={{fn\n                          this.onInputChange\n                          @tableHeader\n                          tableHeaderCol\n                        }}\n                        class={{tableHeaderCol.textClass}}\n                      />\n                    </LabelPopup>\n                  {{else}}\n                    <span class={{tableHeaderCol.textClass}}>\n                      {{tableHeaderCol.value}}\n                    </span>\n                  {{/if}}\n  \n                  {{#if tableHeaderCol.iconName}}\n                    <FaIcon @icon={{tableHeaderCol.iconName}} />\n                  {{/if}}\n                </th>\n              {{/each}}\n            </tr>\n          </thead>\n          {{#if @footer}}\n            <tfoot class='pagination-table__table-tfoot'>\n              <tr>\n                <th colspan={{@footerColspan}}></th>\n                <th class={{@footer.colClass}}>{{@footer.value}}</th>\n              </tr>\n            </tfoot>\n          {{/if}}\n          <tbody>\n            {{#each @tableData as |row|}}\n              <tr\n                class={{row.rowClass}}\n                {{on 'click' (fn this.onClickRow row)}}\n                data-test-pagination-table-row\n              >\n                {{#each row.rowData as |col|}}\n                  <td class={{col.colClass}}>\n                    {{#if (eq col.type 'CHECKBOX_INPUT')}}\n                      <LabelPopup @text={{col.title}}>\n                        <IndeterminateCheckbox\n                          @checked={{col.value}}\n                          @indeterminate={{col.isPartiallySelected}}\n                          @onChange={{fn this.onInputChange row col}}\n                          disabled={{col.disabled}}\n                          class={{col.textClass}}\n                        />\n                      </LabelPopup>\n                    {{else if (eq col.type 'TEXT_INPUT')}}\n                      <Input\n                        class='{{col.textClass}}'\n                        @type='text'\n                        @value={{col.value}}\n                        disabled={{col.disabled}}\n                        {{on 'change' (fn col.onInputChange row col)}}\n                      />\n                    {{else if (eq col.type 'NUMBER_INPUT')}}\n                      <Input\n                        class='{{col.textClass}}'\n                        @type='number'\n                        step={{col.step}}\n                        min={{col.min}}\n                        max={{col.max}}\n                        disabled={{col.disabled}}\n                        @value={{col.value}}\n                        {{on 'change' (fn col.onInputChange row col)}}\n                      />\n                    {{else if (eq col.type 'BUTTON')}}\n                      {{#if col.badgeValue}}\n                        <div class='d-flex align-items-center'>\n                          <button\n                            class={{col.textClass}}\n                            type='button'\n                            disabled={{col.disabled}}\n                            {{on 'click' (fn col.onClickButton row col)}}\n                          >\n                            {{col.value}}\n                          </button>\n                          {{#if col.badgeValue}}\n                            <span class={{col.badgeClass}}>\n                              {{col.badgeValue}}\n                            </span>\n                          {{/if}}\n                        </div>\n                      {{else}}\n                        <button\n                          class={{col.textClass}}\n                          type='button'\n                          disabled={{col.disabled}}\n                          {{on 'click' (fn col.onClickButton row col)}}\n                        >\n                          {{col.value}}\n                        </button>\n                      {{/if}}\n                    {{else if (eq col.type 'POPOVER')}}\n                      <div class='d-flex justify-content-center'>\n                        <PopOver @direction='bottom-left' @fixed={{true}} as |po|>\n                          {{#if col.popOverActions.primary.iconName}}\n                            <FaIcon\n                              @icon={{col.popOverActions.primary.iconName}}\n                              role='button'\n                              @class='fs-3'\n                            />\n                          {{/if}}\n                          {{#if col.popOverActions.primary.name}}\n                            {{col.popOverActions.primary.name}}\n                          {{/if}}\n                          <po.Content>\n                            {{#each\n                              col.popOverActions.secondary\n                              as |section index|\n                            }}\n                              {{#if section.name}}\n                                <div\n                                  class='dropdown-header text-nowrap fs-5 py-2'\n                                >\n                                  {{section.name}}\n                                </div>\n                              {{/if}}\n                              {{#each section.items as |item|}}\n                                <button\n                                  type='button'\n                                  class='dropdown-item text-nowrap fs-5 py-2'\n                                  {{on 'click' (fn item.onClickButton row col)}}\n                                >\n                                  {{#if item.iconName}}\n                                    <FaIcon\n                                      @icon={{item.iconName}}\n                                      @fixedWidth={{true}}\n                                    />&nbsp;\n                                  {{/if}}\n                                  {{item.name}}\n                                </button>\n                              {{/each}}\n                              {{#if\n                                (lt\n                                  index\n                                  (math col.popOverActions.secondary.length '-' 1)\n                                )\n                              }}\n                                <hr />\n                              {{/if}}\n                            {{/each}}\n                          </po.Content>\n                        </PopOver>\n                      </div>\n                    {{else}}\n                      {{#if col.badgeValue}}\n                        <div class='d-flex align-items-center'>\n                          <span class={{concat col.textClass ' me-1'}}>\n                            {{col.value}}\n                          </span>\n                          {{#if col.badgeValue}}\n                            <span class={{col.badgeClass}}>\n                              {{col.badgeValue}}\n                            </span>\n                          {{/if}}\n                        </div>\n                      {{else}}\n                        <span class={{col.textClass}}>\n                          {{html-safe col.value}}\n                        </span>\n                      {{/if}}\n                    {{/if}}\n  \n                    {{#if col.iconName}}\n                      <FaIcon @title={{col.title}} @icon={{col.iconName}} />\n                    {{/if}}\n                  </td>\n                {{/each}}\n              </tr>\n            {{else if @noDataText}}\n              <tr>\n                <td class='text-center' colspan={{this.skeletonColumnNumber}}>\n                  {{@noDataText}}\n                </td>\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      {{/if}}\n    </div>\n  \n    {{#if @validationMessage}}\n      <div class='invalid-feedback d-block' data-test-pagination-table-validation>\n        {{@validationMessage}}\n      </div>\n    {{/if}}\n  \n    {{#if this.showPagination}}\n      <div class='d-flex justify-content-end'>\n        <div class='mx-1'>\n          <SelectInput\n            @value={{@pageSize}}\n            @action={{this.onChangePageSize}}\n            class='form-control select-box d-block'\n            data-test-pagination-table-page-size-select\n            as |si|\n          >\n            {{#each this.pageSizes as |option|}}\n              <si.option @value={{option}}>{{option}}</si.option>\n            {{/each}}\n          </SelectInput>\n        </div>\n        <div class='d-flex align-items-center mx-1'>\n          {{#if @totalRecords}}\n            <div class='mx-1'>\n              {{this.fromRow}}\n              –\n              {{this.toRow}}\n              of\n              {{this.tableDataLength}}\n            </div>\n          {{/if}}\n          <div class='mx-1'>\n            <button\n              type='button'\n              class='btn btn-link'\n              {{on 'click' this.goFirstPage}}\n              disabled={{eq @pageIndex 1}}\n            >\n              <FaIcon @icon='step-backward' />\n            </button>\n            <button\n              type='button'\n              class='btn btn-link'\n              {{on 'click' this.goBackPage}}\n              disabled={{eq @pageIndex 1}}\n            >\n              <FaIcon @icon='angle-left' />\n            </button>\n            <button\n              type='button'\n              class='btn btn-link'\n              {{on 'click' this.goNextPage}}\n              disabled={{not this.hasNextPage}}\n            >\n              <FaIcon @icon='angle-right' />\n            </button>\n            {{#if @totalRecords}}\n              <button\n                type='button'\n                class='btn btn-link'\n                {{on 'click' this.goLastPage}}\n                disabled={{eq @pageIndex this.lastPageIndex}}\n              >\n                <FaIcon @icon='step-forward' />\n              </button>\n            {{/if}}\n          </div>\n        </div>\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"GdW3g0lI\",\n    \"block\": \"[[[10,0],[14,0,\\\"pagination-table__container\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"pagination-table__table-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\"      \\\"],[8,[39,2],null,[[\\\"@columnLength\\\",\\\"@rowLength\\\"],[[30,0,[\\\"skeletonColumnNumber\\\"]],[30,0,[\\\"skeletonRowNumber\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[11,\\\"table\\\"],[16,0,[29,[[30,2],\\\"\\\\n          table pagination-table\\\\n          \\\",[52,[30,3],\\\"mb-0\\\"]]]],[24,\\\"data-test-pagination-table\\\",\\\"\\\"],[4,[38,4],[[30,0,[\\\"setSkeletonTable\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[14,0,\\\"pagination-table__table-thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,4]],null]],null],null,[[[1,\\\"              \\\"],[11,\\\"th\\\"],[16,0,[29,[[30,5,[\\\"colClass\\\"]],\\\" pagination-table__nowrap\\\"]]],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"onClickCol\\\"]],[27],[30,5]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,5,[\\\"type\\\"]],\\\"CHECKBOX_INPUT\\\"],null],[[[1,\\\"                  \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,5,[\\\"title\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[8,[39,14],[[16,0,[30,5,[\\\"textClass\\\"]]]],[[\\\"@checked\\\",\\\"@indeterminate\\\",\\\"@onChange\\\"],[[30,5,[\\\"value\\\"]],[30,5,[\\\"isPartiallySelected\\\"]],[28,[37,11],[[30,0,[\\\"onInputChange\\\"]],[30,4],[30,5]],null]]],null],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,1],[15,0,[30,5,[\\\"textClass\\\"]]],[12],[1,\\\"\\\\n                    \\\"],[1,[30,5,[\\\"value\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"iconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[[30,5,[\\\"iconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,6],[[[1,\\\"          \\\"],[10,\\\"tfoot\\\"],[14,0,\\\"pagination-table__table-tfoot\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,7]],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[15,0,[30,6,[\\\"colClass\\\"]]],[12],[1,[30,6,[\\\"value\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,8]],null]],null],null,[[[1,\\\"            \\\"],[11,\\\"tr\\\"],[16,0,[30,9,[\\\"rowClass\\\"]]],[24,\\\"data-test-pagination-table-row\\\",\\\"\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"onClickRow\\\"]],[30,9]],null]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,9,[\\\"rowData\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,0,[30,10,[\\\"colClass\\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,10,[\\\"type\\\"]],\\\"CHECKBOX_INPUT\\\"],null],[[[1,\\\"                    \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10,[\\\"title\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[8,[39,14],[[16,\\\"disabled\\\",[30,10,[\\\"disabled\\\"]]],[16,0,[30,10,[\\\"textClass\\\"]]]],[[\\\"@checked\\\",\\\"@indeterminate\\\",\\\"@onChange\\\"],[[30,10,[\\\"value\\\"]],[30,10,[\\\"isPartiallySelected\\\"]],[28,[37,11],[[30,0,[\\\"onInputChange\\\"]],[30,9],[30,10]],null]]],null],[1,\\\"\\\\n                    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,12],[[30,10,[\\\"type\\\"]],\\\"TEXT_INPUT\\\"],null],[[[1,\\\"                    \\\"],[8,[39,20],[[16,0,[29,[[30,10,[\\\"textClass\\\"]]]]],[16,\\\"disabled\\\",[30,10,[\\\"disabled\\\"]]],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,10,[\\\"onInputChange\\\"]],[30,9],[30,10]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,10,[\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,12],[[30,10,[\\\"type\\\"]],\\\"NUMBER_INPUT\\\"],null],[[[1,\\\"                    \\\"],[8,[39,20],[[16,0,[29,[[30,10,[\\\"textClass\\\"]]]]],[16,\\\"step\\\",[30,10,[\\\"step\\\"]]],[16,\\\"min\\\",[30,10,[\\\"min\\\"]]],[16,\\\"max\\\",[30,10,[\\\"max\\\"]]],[16,\\\"disabled\\\",[30,10,[\\\"disabled\\\"]]],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,10,[\\\"onInputChange\\\"]],[30,9],[30,10]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"number\\\",[30,10,[\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,12],[[30,10,[\\\"type\\\"]],\\\"BUTTON\\\"],null],[[[41,[30,10,[\\\"badgeValue\\\"]],[[[1,\\\"                      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[11,\\\"button\\\"],[16,0,[30,10,[\\\"textClass\\\"]]],[16,\\\"disabled\\\",[30,10,[\\\"disabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,10,[\\\"onClickButton\\\"]],[30,9],[30,10]],null]],null],[12],[1,\\\"\\\\n                          \\\"],[1,[30,10,[\\\"value\\\"]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,10,[\\\"badgeValue\\\"]],[[[1,\\\"                          \\\"],[10,1],[15,0,[30,10,[\\\"badgeClass\\\"]]],[12],[1,\\\"\\\\n                            \\\"],[1,[30,10,[\\\"badgeValue\\\"]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[11,\\\"button\\\"],[16,0,[30,10,[\\\"textClass\\\"]]],[16,\\\"disabled\\\",[30,10,[\\\"disabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,10,[\\\"onClickButton\\\"]],[30,9],[30,10]],null]],null],[12],[1,\\\"\\\\n                        \\\"],[1,[30,10,[\\\"value\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,12],[[30,10,[\\\"type\\\"]],\\\"POPOVER\\\"],null],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,22],null,[[\\\"@direction\\\",\\\"@fixed\\\"],[\\\"bottom-left\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,10,[\\\"popOverActions\\\",\\\"primary\\\",\\\"iconName\\\"]],[[[1,\\\"                          \\\"],[8,[39,16],[[24,\\\"role\\\",\\\"button\\\"]],[[\\\"@icon\\\",\\\"@class\\\"],[[30,10,[\\\"popOverActions\\\",\\\"primary\\\",\\\"iconName\\\"]],\\\"fs-3\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,10,[\\\"popOverActions\\\",\\\"primary\\\",\\\"name\\\"]],[[[1,\\\"                          \\\"],[1,[30,10,[\\\"popOverActions\\\",\\\"primary\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                        \\\"],[8,[30,11,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,10,[\\\"popOverActions\\\",\\\"secondary\\\"]]],null]],null],null,[[[41,[30,12,[\\\"name\\\"]],[[[1,\\\"                              \\\"],[10,0],[14,0,\\\"dropdown-header text-nowrap fs-5 py-2\\\"],[12],[1,\\\"\\\\n                                \\\"],[1,[30,12,[\\\"name\\\"]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,8],[[28,[37,8],[[30,12,[\\\"items\\\"]]],null]],null],null,[[[1,\\\"                              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5 py-2\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,14,[\\\"onClickButton\\\"]],[30,9],[30,10]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,14,[\\\"iconName\\\"]],[[[1,\\\"                                  \\\"],[8,[39,16],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[30,14,[\\\"iconName\\\"]],true]],null],[1,\\\" \\\\n\\\"]],[]],null],[1,\\\"                                \\\"],[1,[30,14,[\\\"name\\\"]]],[1,\\\"\\\\n                              \\\"],[13],[1,\\\"\\\\n\\\"]],[14]],null],[41,[28,[37,23],[[30,13],[28,[37,24],[[30,10,[\\\"popOverActions\\\",\\\"secondary\\\",\\\"length\\\"]],\\\"-\\\",1],null]],null],[[[1,\\\"                              \\\"],[10,\\\"hr\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[12,13]],null],[1,\\\"                        \\\"]],[]]]]],[1,\\\"\\\\n                      \\\"]],[11]]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,10,[\\\"badgeValue\\\"]],[[[1,\\\"                      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,1],[15,0,[28,[37,26],[[30,10,[\\\"textClass\\\"]],\\\" me-1\\\"],null]],[12],[1,\\\"\\\\n                          \\\"],[1,[30,10,[\\\"value\\\"]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,10,[\\\"badgeValue\\\"]],[[[1,\\\"                          \\\"],[10,1],[15,0,[30,10,[\\\"badgeClass\\\"]]],[12],[1,\\\"\\\\n                            \\\"],[1,[30,10,[\\\"badgeValue\\\"]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[10,1],[15,0,[30,10,[\\\"textClass\\\"]]],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,27],[[30,10,[\\\"value\\\"]]],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"]],[]]]],[]]]],[]]]],[]]]],[]]],[1,\\\"\\\\n\\\"],[41,[30,10,[\\\"iconName\\\"]],[[[1,\\\"                    \\\"],[8,[39,16],null,[[\\\"@title\\\",\\\"@icon\\\"],[[30,10,[\\\"title\\\"]],[30,10,[\\\"iconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],[[[41,[30,15],[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[15,\\\"colspan\\\",[30,0,[\\\"skeletonColumnNumber\\\"]]],[12],[1,\\\"\\\\n                \\\"],[1,[30,15]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]],null]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,3],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-pagination-table-validation\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,3]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showPagination\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex justify-content-end\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,28],[[24,0,\\\"form-control select-box d-block\\\"],[24,\\\"data-test-pagination-table-page-size-select\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\"],[[30,16],[30,0,[\\\"onChangePageSize\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"pageSizes\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,17,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,18]]],[[\\\"default\\\"],[[[[1,[30,18]]],[]]]]],[1,\\\"\\\\n\\\"]],[18]],null],[1,\\\"        \\\"]],[17]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center mx-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,19],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"fromRow\\\"]]],[1,\\\"\\\\n            –\\\\n            \\\"],[1,[30,0,[\\\"toRow\\\"]]],[1,\\\"\\\\n            of\\\\n            \\\"],[1,[30,0,[\\\"tableDataLength\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,20],1],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"goFirstPage\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"step-backward\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,20],1],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"goBackPage\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"angle-left\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[16,\\\"disabled\\\",[28,[37,29],[[30,0,[\\\"hasNextPage\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"goNextPage\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"angle-right\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,19],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,20],[30,0,[\\\"lastPageIndex\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"goLastPage\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"step-forward\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@isLoading\\\",\\\"@class\\\",\\\"@validationMessage\\\",\\\"@tableHeader\\\",\\\"tableHeaderCol\\\",\\\"@footer\\\",\\\"@footerColspan\\\",\\\"@tableData\\\",\\\"row\\\",\\\"col\\\",\\\"po\\\",\\\"section\\\",\\\"index\\\",\\\"item\\\",\\\"@noDataText\\\",\\\"@pageSize\\\",\\\"si\\\",\\\"option\\\",\\\"@totalRecords\\\",\\\"@pageIndex\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"skeleton-screens/table\\\",\\\"table\\\",\\\"did-insert\\\",\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"on\\\",\\\"fn\\\",\\\"eq\\\",\\\"label-popup\\\",\\\"indeterminate-checkbox\\\",\\\"span\\\",\\\"fa-icon\\\",\\\"tfoot\\\",\\\"tbody\\\",\\\"td\\\",\\\"input\\\",\\\"button\\\",\\\"pop-over\\\",\\\"lt\\\",\\\"math\\\",\\\"hr\\\",\\\"concat\\\",\\\"html-safe\\\",\\\"select-input\\\",\\\"not\\\"]]\",\n    \"moduleName\": \"portal/components/pagination-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"skeletonColumnNumber\", _descriptor, this);\n      _initializerDefineProperty(this, \"skeletonRowNumber\", _descriptor2, this);\n    }\n    onClickRow(row) {\n      if (row.onClickRow) row.onClickRow(row.rowData);\n    }\n    onClickCol(row, col) {\n      if (col.onClickCol) col.onClickCol(row, col);\n    }\n    onInputChange(row, col, event) {\n      if (col.onInputChange) col.onInputChange(row, col, event);\n    }\n    get pageSizes() {\n      return this.args.pageSizes ?? [10, 20, 30];\n    }\n    get tableDataLength() {\n      return this.args.totalRecords ?? this.args.tableData.length;\n    }\n    get showPagination() {\n      if (this.args.hidePagination) return false;\n      if (this.args.isLoading) return false;\n      if (!this.hasNextPage && this.args.pageIndex === 1) return false;\n      return true;\n    }\n    get hasNextPage() {\n      if (this.args.totalRecords) return this.toRow < this.tableDataLength;\n      return this.args.hasNextPage;\n    }\n    setSkeletonTable() {\n      if (this.args.tableHeader.length) this.skeletonColumnNumber = this.args.tableHeader.length;\n      if (this.args.tableData.length) this.skeletonRowNumber = this.args.tableData.length;\n    }\n    get lastPageIndex() {\n      if (this.tableDataLength / this.args.pageSize < 1) return 1;\n      return Math.ceil(this.tableDataLength / this.args.pageSize);\n    }\n    get toRow() {\n      if (this.args.pageSize > this.tableDataLength) return this.tableDataLength;\n      return this.args.pageSize * this.args.pageIndex;\n    }\n    get fromRow() {\n      return this.args.pageSize * (this.args.pageIndex - 1) + 1;\n    }\n    scrollToTop() {\n      document.getElementsByClassName('pagination-table__table-container')[0].scrollTo({\n        top: 0,\n        behavior: 'smooth'\n      });\n    }\n    onChangePageSize(pageSize) {\n      if (this.args.onChangePageSize) this.args.onChangePageSize(pageSize);\n    }\n    goFirstPage() {\n      if (this.args.onChangePageIndex) {\n        this.args.onChangePageIndex(1);\n        this.scrollToTop();\n      }\n    }\n    goLastPage() {\n      if (this.args.onChangePageIndex) {\n        this.args.onChangePageIndex(this.lastPageIndex);\n        this.scrollToTop();\n      }\n    }\n    goBackPage() {\n      if (this.args.onChangePageIndex) {\n        this.args.onChangePageIndex(this.args.pageIndex - 1);\n        this.scrollToTop();\n      }\n    }\n    goNextPage() {\n      if (this.args.onChangePageIndex) {\n        this.args.onChangePageIndex(this.args.pageIndex + 1);\n        this.scrollToTop();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"skeletonColumnNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 8;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"skeletonRowNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 4;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onClickRow\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClickRow\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClickCol\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClickCol\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onInputChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onInputChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setSkeletonTable\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setSkeletonTable\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePageSize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goFirstPage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goFirstPage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goLastPage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goLastPage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goBackPage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goBackPage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goNextPage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goNextPage\"), _class.prototype), _class));\n});","define(\"portal/components/pdf-export-timesheet-row\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template\", \"@ember/template-factory\"], function (_exports, _component, _component2, _template, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <tr>\n    {{#if @group.children}}\n      <td colspan='4' style={{this.indentStyle}}><strong\n        >{{@group.label}}</strong></td>\n    {{else}}\n      <td style={{this.indentStyle}}>{{@group.label}}</td>\n      <td class='r num-col'>\n        {{number-format @group.hours maximumFractionDigits=2 dashZero=false}}\n      </td>\n      <td class='r num-col'>\n        {{number-format\n          (math @group.rate '*' @coef)\n          style='currency'\n          dashZero=true\n        }}\n      </td>\n      <td class='r num-col'>\n        {{number-format\n          (math @group.total '*' @coef)\n          style='currency'\n          dashZero=true\n        }}\n      </td>\n    {{/if}}\n  </tr>\n  \n  {{#each @group.children as |child|}}\n    <PdfExportTimesheetRow\n      @coef={{@coef}}\n      @group={{child}}\n      @depth={{inc (or @depth 0)}}\n    />\n  {{/each}}\n  */\n  {\n    \"id\": \"F04MFi1U\",\n    \"block\": \"[[[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"children\\\"]],[[[1,\\\"    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[15,5,[30,0,[\\\"indentStyle\\\"]]],[12],[10,\\\"strong\\\"],[12],[1,[30,1,[\\\"label\\\"]]],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"td\\\"],[15,5,[30,0,[\\\"indentStyle\\\"]]],[12],[1,[30,1,[\\\"label\\\"]]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[[30,1,[\\\"hours\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,false]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[[28,[37,5],[[30,1,[\\\"rate\\\"]],\\\"*\\\",[30,2]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[[28,[37,5],[[30,1,[\\\"total\\\"]],\\\"*\\\",[30,2]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,1,[\\\"children\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[8,[39,8],null,[[\\\"@coef\\\",\\\"@group\\\",\\\"@depth\\\"],[[30,2],[30,3],[28,[37,9],[[28,[37,10],[[30,4],0],null]],null]]],null],[1,\\\"\\\\n\\\"]],[3]],null]],[\\\"@group\\\",\\\"@coef\\\",\\\"child\\\",\\\"@depth\\\"],false,[\\\"tr\\\",\\\"if\\\",\\\"td\\\",\\\"strong\\\",\\\"number-format\\\",\\\"math\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pdf-export-timesheet-row\\\",\\\"inc\\\",\\\"or\\\"]]\",\n    \"moduleName\": \"portal/components/pdf-export-timesheet-row.hbs\",\n    \"isStrictMode\": false\n  });\n  class PdfExportTimesheetRow extends _component2.default {\n    get indentStyle() {\n      return (0, _template.htmlSafe)(`text-indent: ${this.args.depth ?? 0}em`);\n    }\n  }\n  _exports.default = PdfExportTimesheetRow;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, PdfExportTimesheetRow);\n});","define(\"portal/components/people-table\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @filteredList.length}}\n    <table class='table table-bordered people__remove-border-bottom'>\n      <thead class='people__table__table-thead'>\n        <tr>\n          <th>{{t 'common.Name'}}</th>\n          <th>{{t 'common.Email'}}</th>\n          <th>{{t 'common.Phone number'}}</th>\n          {{#if (and (includes-feature-flags 'userIsAdmin') @showLoginAs)}}\n            <th class='text-center'>{{t 'common.Action'}}</th>\n          {{/if}}\n          {{#if @showWorkerCode}}\n            <th class='text-center'>{{t\n                'components.people-table.Worker code'\n              }}</th>\n          {{/if}}\n        </tr>\n      </thead>\n      <tbody>\n        {{#each @filteredList as |item|}}\n          <tr data-test-person-row={{item.id}}>\n            <td>\n              <LinkTo @route={{@route}} @model={{item.id}} data-test-person-name>\n                {{item.fullName}}\n              </LinkTo>\n            </td>\n            <td>\n              {{item.email}}\n            </td>\n            <td>\n              {{#if item.phoneNumber}}\n                {{item.phoneNumber}}\n              {{else}}\n                <div class='text-center'> &mdash;</div>\n              {{/if}}\n            </td>\n            {{#if @showLoginAs}}\n              <td class='text-center'>\n                <button\n                  class='btn btn-link p-0 m-0 ms-1 tooltip-btn'\n                  type='button'\n                  {{action @onClickLoginAs item}}\n                  data-bs-placement='bottom'\n                  {{bootstrap-tooltip (concat 'Login as ' item.fullName)}}\n                >\n                  <FaIcon @icon='sign-in-alt' @size='lg' />\n                </button>\n              </td>\n            {{/if}}\n            {{#if @showWorkerCode}}\n              <td class='text-center'>\n                {{#if item.authCode}}\n                  <div\n                    role='button'\n                    class='bg-white border rounded px-2 py-1 flex-grow-1'\n                    {{on 'click' (fn this.onCopyAuthCode item)}}\n                    data-bs-placement='bottom'\n                    {{bootstrap-tooltip\n                      (if\n                        (eq this.copiedItemId item.id)\n                        (t 'common.Copied')\n                        (t 'common.Click to copy')\n                      )\n                    }}\n                  >\n                    <span class='fw-bold'>\n                      {{or item.authCode}}\n                    </span>\n                  </div>\n                {{else}}\n                  <div\n                    role='button'\n                    class='bg-white border rounded px-2 py-1 flex-grow-1'\n                  >\n                    <span class='fw-bold'>\n                      {{t 'common.Not set'}}\n                    </span>\n                  </div>\n                {{/if}}\n  \n              </td>\n            {{/if}}\n          </tr>\n        {{/each}}\n      </tbody>\n    </table>\n  {{else}}\n    <table class='table table-bordered people__remove-border-bottom'>\n      <tbody>\n        <tr data-test-people-empty>\n          <td class='text-center'><div>{{@noData}}</div></td>\n        </tr>\n      </tbody>\n    </table>\n  {{/if}}\n  */\n  {\n    \"id\": \"2RzVV0Lo\",\n    \"block\": \"[[[41,[30,1,[\\\"length\\\"]],[[[1,\\\"  \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered people__remove-border-bottom\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"thead\\\"],[14,0,\\\"people__table__table-thead\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Name\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Email\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Phone number\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[28,[37,7],[\\\"userIsAdmin\\\"],null],[30,2]],null],[[[1,\\\"          \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,[28,[35,5],[\\\"common.Action\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,3],[[[1,\\\"          \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,[28,[35,5],[\\\"components.people-table.Worker code\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,1]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"tr\\\"],[15,\\\"data-test-person-row\\\",[30,4,[\\\"id\\\"]]],[12],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,12],[[24,\\\"data-test-person-name\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,5],[30,4,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,4,[\\\"fullName\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,4,[\\\"email\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"phoneNumber\\\"]],[[[1,\\\"              \\\"],[1,[30,4,[\\\"phoneNumber\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\" —\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0 m-0 ms-1 tooltip-btn\\\"],[24,\\\"data-bs-placement\\\",\\\"bottom\\\"],[24,4,\\\"button\\\"],[4,[38,15],[[30,0],[30,6],[30,4]],null],[4,[38,16],[[28,[37,17],[\\\"Login as \\\",[30,4,[\\\"fullName\\\"]]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,18],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"sign-in-alt\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,3],[[[1,\\\"            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"authCode\\\"]],[[[1,\\\"                \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"bg-white border rounded px-2 py-1 flex-grow-1\\\"],[24,\\\"data-bs-placement\\\",\\\"bottom\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"onCopyAuthCode\\\"]],[30,4]],null]],null],[4,[38,16],[[52,[28,[37,21],[[30,0,[\\\"copiedItemId\\\"]],[30,4,[\\\"id\\\"]]],null],[28,[37,5],[\\\"common.Copied\\\"],null],[28,[37,5],[\\\"common.Click to copy\\\"],null]]],null],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,23],[[30,4,[\\\"authCode\\\"]]],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,0],[14,\\\"role\\\",\\\"button\\\"],[14,0,\\\"bg-white border rounded px-2 py-1 flex-grow-1\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,5],[\\\"common.Not set\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-bordered people__remove-border-bottom\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[14,\\\"data-test-people-empty\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[10,0],[12],[1,[30,7]],[13],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@filteredList\\\",\\\"@showLoginAs\\\",\\\"@showWorkerCode\\\",\\\"item\\\",\\\"@route\\\",\\\"@onClickLoginAs\\\",\\\"@noData\\\"],false,[\\\"if\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"t\\\",\\\"and\\\",\\\"includes-feature-flags\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"link-to\\\",\\\"div\\\",\\\"button\\\",\\\"action\\\",\\\"bootstrap-tooltip\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"fn\\\",\\\"eq\\\",\\\"span\\\",\\\"or\\\"]]\",\n    \"moduleName\": \"portal/components/people-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"copiedItemId\", _descriptor, this);\n    }\n    async onCopyAuthCode(item) {\n      await this.args.onCopyAuthCode.perform(item);\n      this.copiedItemId = item.id;\n      setTimeout(() => this.copiedItemId = null, 1500);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"copiedItemId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onCopyAuthCode\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onCopyAuthCode\"), _class.prototype), _class));\n});","define(\"portal/components/personal-financial-table-section\", [\"exports\", \"@ember/component\", \"@ember/object\", \"lodash\", \"@ember/template-factory\"], function (_exports, _component, _object, _lodash, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"lodash\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.accounts as |account|}}\n    <tr class='{{if (or this.doNotPrint (not account.print)) \"do-not-print\"}}'>\n      <td\n        class='financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-{{account.depth}}'\n      >\n  \n        {{#if (and this.filterHeaders account.children)}}\n          <a\n            class='financials-table__print-toggle link do-not-print'\n            {{action 'toggleFilter' account}}\n          >\n            <FaIcon @icon={{if account.print 'eye' 'eye-slash'}} />\n          </a>\n        {{/if}}\n  \n        {{#if account.children}}\n          <a\n            class='financials-table__section-expansion-toggle link'\n            {{action 'toggleShowChildren' account}}\n          >\n            <FaIcon\n              @icon={{if account.hideChildren 'angle-right' 'angle-down'}}\n            />{{~! ~}}\n            {{#if (eq account.depth 0)}}\n              {{#if (eq account.debitCredit 'CREDIT')}}<span\n                  class='debitCredit debitCredit--credit'\n                >Cr</span>{{/if}}\n              {{#if (eq account.debitCredit 'DEBIT')}}<span\n                  class='debitCredit debitCredit--debit'\n                >Dr</span>{{/if}}\n            {{else}}\n              {{#if (eq account.debitCredit this.parent.debitCredit)}}\n                <span class='debitCredit debitCredit--credit'><InfoPopup\n                    @text={{concat account.name ' adds to ' this.parent.name}}\n                    @iconName='plus'\n                  /></span>\n              {{else}}\n                <span class='debitCredit debitCredit--debit'><InfoPopup\n                    @text={{concat\n                      account.name\n                      ' subtracts from '\n                      this.parent.name\n                    }}\n                    @iconName='minus'\n                  /></span>\n              {{/if}}\n            {{/if}}\n            {{account.name}}\n          </a>\n        {{else}}\n          <FaIcon @icon='angle-right' class='invisible' />{{~! ~}}\n          {{#if (eq account.depth 0)}}\n            {{#if (eq account.debitCredit 'CREDIT')}}<span\n                class='debitCredit debitCredit--credit'\n              >Cr</span>{{/if}}\n            {{#if (eq account.debitCredit 'DEBIT')}}<span\n                class='debitCredit debitCredit--debit'\n              >Dr</span>{{/if}}\n          {{else}}\n            {{#if (eq account.debitCredit this.parent.debitCredit)}}\n              <span class='debitCredit debitCredit--credit'><InfoPopup\n                  @text={{concat account.name ' adds to ' this.parent.name}}\n                  @iconName='plus'\n                /></span>\n            {{else}}\n              <span class='debitCredit debitCredit--debit'><InfoPopup\n                  @text={{concat\n                    account.name\n                    ' subtracts from '\n                    this.parent.name\n                  }}\n                  @iconName='minus'\n                /></span>\n            {{/if}}\n          {{/if}}\n          {{account.name}}\n        {{/if}}\n  \n      </td>\n  \n      {{#if account.hideChildren}}\n  \n        {{#each account.data as |period|}}\n          {{#if this.showMonth}}\n            <td\n              class='text-right\n                {{if\n                  (lt (get period \"periods.0.periodTypes.month.value\") 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{number-format\n                (get period 'periods.0.periodTypes.month.value')\n                maximumFractionDigits=0\n                dashZero=true\n              }}\n            </td>\n          {{/if}}\n  \n          {{#if (and this.showYTD account.periodic)}}\n            <td\n              class='text-right\n                {{if\n                  (lt (get period \"periods.0.periodTypes.ytd.value\") 0)\n                  \"financials-table__negative-value\"\n                }}'\n            >\n              {{number-format\n                (get period 'periods.0.periodTypes.ytd.value')\n                maximumFractionDigits=0\n                dashZero=true\n              }}\n            </td>\n          {{/if}}\n  \n          {{#if (not (or this.showMonth this.showYTD))}}\n            <td></td>\n          {{/if}}\n        {{/each}}\n  \n      {{else}}\n  \n        {{#if this.columnCount}}\n          <td colspan={{this.columnCount}}></td>\n        {{/if}}\n  \n      {{/if}}\n    </tr>\n  \n    {{#if (and account.children.length (not account.hideChildren))}}\n      <PersonalFinancialTableSection\n        @accounts={{account.children}}\n        @passedColumnCount={{this.columnCount}}\n        @toggleShowChildren={{action 'toggleShowChildren'}}\n        @showMonth={{this.showMonth}}\n        @showYTD={{this.showYTD}}\n        @totalsRow={{account.name}}\n        @filterHeaders={{true}}\n        @parent={{account}}\n        @nested={{true}}\n        @doNotPrint={{not account.print}}\n        @periodCount={{this.periodCount}}\n      />\n    {{/if}}\n  {{/each}}\n  \n  {{#if this.totalsRow}}\n    {{! Prevent from printing if doNotPrint is passed in recursively (doNotPrint) OR from top level (doNotPrintTotal) }}\n    <tr\n      class='data-table__total-row\n        {{if (or this.doNotPrintTotal this.doNotPrint) \"do-not-print\"}}'\n    >\n      <td\n        class='financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-0'\n      >\n        {{! Only allow hiding of totals row independently if it at the top level }}\n        {{#if (and this.filterHeaders (not this.nested))}}\n          <a\n            class='financials-table__print-toggle do-not-print'\n            {{action this.toggleProperty 'doNotPrintTotal'}}\n          >\n            <FaIcon @icon={{if this.doNotPrintTotal 'eye-slash' 'eye'}} />\n          </a>\n        {{/if}}\n        {{this.totalsRow}}\n      </td>\n  \n      {{#each this.totals as |total|}}\n        {{#if (and this.showMonth (not-eq total.month null))}}\n          <td\n            class='text-right\n              {{if (lt total.month 0) \"financials-table__negative-value\"}}'\n          >\n            {{number-format total.month maximumFractionDigits=0 dashZero=true}}\n          </td>\n        {{/if}}\n  \n        {{#if (and this.showYTD (not-eq total.ytd null))}}\n          <td\n            class='text-right\n              {{if (lt total.ytd 0) \"financials-table__negative-value\"}}\n              '\n          >\n            {{number-format total.ytd maximumFractionDigits=0 dashZero=true}}\n          </td>\n        {{/if}}\n  \n        {{#if (and this.showMonth (not-eq total.continuous null))}}\n          <td\n            class='text-right\n              {{if (lt total.continuous 0) \"financials-table__negative-value\"}}'\n          >\n            {{number-format\n              total.continuous\n              maximumFractionDigits=0\n              dashZero=true\n            }}\n          </td>\n        {{/if}}\n  \n        {{! Add an empty cell if there is no data to be shown, just to stop the table breaking. }}\n        {{#if (not (or this.showMonth this.showYTD))}}\n          <td></td>\n        {{/if}}\n      {{/each}}\n    </tr>\n  {{/if}}\n  */\n  {\n    \"id\": \"NphDbALh\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"accounts\\\"]]],null]],null],null,[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[15,0,[29,[[52,[28,[37,4],[[30,0,[\\\"doNotPrint\\\"]],[28,[37,5],[[30,1,[\\\"print\\\"]]],null]],null],\\\"do-not-print\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-\\\",[30,1,[\\\"depth\\\"]]]]],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"filterHeaders\\\"]],[30,1,[\\\"children\\\"]]],null],[[[1,\\\"        \\\"],[11,3],[24,0,\\\"financials-table__print-toggle link do-not-print\\\"],[4,[38,9],[[30,0],\\\"toggleFilter\\\",[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[52,[30,1,[\\\"print\\\"]],\\\"eye\\\",\\\"eye-slash\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"children\\\"]],[[[1,\\\"        \\\"],[11,3],[24,0,\\\"financials-table__section-expansion-toggle link\\\"],[4,[38,9],[[30,0],\\\"toggleShowChildren\\\",[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[52,[30,1,[\\\"hideChildren\\\"]],\\\"angle-right\\\",\\\"angle-down\\\"]]],null],[41,[28,[37,11],[[30,1,[\\\"depth\\\"]],0],null],[[[1,\\\"            \\\"],[41,[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],\\\"CREDIT\\\"],null],[[[10,1],[14,0,\\\"debitCredit debitCredit--credit\\\"],[12],[1,\\\"Cr\\\"],[13]],[]],null],[1,\\\"\\\\n            \\\"],[41,[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],\\\"DEBIT\\\"],null],[[[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[1,\\\"Dr\\\"],[13]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],[30,0,[\\\"parent\\\",\\\"debitCredit\\\"]]],null],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--credit\\\"],[12],[8,[39,13],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,14],[[30,1,[\\\"name\\\"]],\\\" adds to \\\",[30,0,[\\\"parent\\\",\\\"name\\\"]]],null],\\\"plus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[8,[39,13],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,14],[[30,1,[\\\"name\\\"]],\\\" subtracts from \\\",[30,0,[\\\"parent\\\",\\\"name\\\"]]],null],\\\"minus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,10],[[24,0,\\\"invisible\\\"]],[[\\\"@icon\\\"],[\\\"angle-right\\\"]],null],[41,[28,[37,11],[[30,1,[\\\"depth\\\"]],0],null],[[[1,\\\"          \\\"],[41,[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],\\\"CREDIT\\\"],null],[[[10,1],[14,0,\\\"debitCredit debitCredit--credit\\\"],[12],[1,\\\"Cr\\\"],[13]],[]],null],[1,\\\"\\\\n          \\\"],[41,[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],\\\"DEBIT\\\"],null],[[[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[1,\\\"Dr\\\"],[13]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,11],[[30,1,[\\\"debitCredit\\\"]],[30,0,[\\\"parent\\\",\\\"debitCredit\\\"]]],null],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--credit\\\"],[12],[8,[39,13],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,14],[[30,1,[\\\"name\\\"]],\\\" adds to \\\",[30,0,[\\\"parent\\\",\\\"name\\\"]]],null],\\\"plus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"debitCredit debitCredit--debit\\\"],[12],[8,[39,13],null,[[\\\"@text\\\",\\\"@iconName\\\"],[[28,[37,14],[[30,1,[\\\"name\\\"]],\\\" subtracts from \\\",[30,0,[\\\"parent\\\",\\\"name\\\"]]],null],\\\"minus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"        \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"hideChildren\\\"]],[[[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"data\\\"]]],null]],null],null,[[[41,[30,0,[\\\"showMonth\\\"]],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,15],[[28,[37,16],[[30,2],\\\"periods.0.periodTypes.month.value\\\"],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[28,[37,16],[[30,2],\\\"periods.0.periodTypes.month.value\\\"],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[30,1,[\\\"periodic\\\"]]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n              \\\",[52,[28,[37,15],[[28,[37,16],[[30,2],\\\"periods.0.periodTypes.ytd.value\\\"],null],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[28,[37,16],[[30,2],\\\"periods.0.periodTypes.ytd.value\\\"],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[28,[37,4],[[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]]],null]],null],[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[2]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"columnCount\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[30,0,[\\\"columnCount\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,7],[[30,1,[\\\"children\\\",\\\"length\\\"]],[28,[37,5],[[30,1,[\\\"hideChildren\\\"]]],null]],null],[[[1,\\\"    \\\"],[8,[39,18],null,[[\\\"@accounts\\\",\\\"@passedColumnCount\\\",\\\"@toggleShowChildren\\\",\\\"@showMonth\\\",\\\"@showYTD\\\",\\\"@totalsRow\\\",\\\"@filterHeaders\\\",\\\"@parent\\\",\\\"@nested\\\",\\\"@doNotPrint\\\",\\\"@periodCount\\\"],[[30,1,[\\\"children\\\"]],[30,0,[\\\"columnCount\\\"]],[28,[37,9],[[30,0],\\\"toggleShowChildren\\\"],null],[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]],[30,1,[\\\"name\\\"]],true,[30,1],true,[28,[37,5],[[30,1,[\\\"print\\\"]]],null],[30,0,[\\\"periodCount\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[1]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"totalsRow\\\"]],[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[15,0,[29,[\\\"data-table__total-row\\\\n      \\\",[52,[28,[37,4],[[30,0,[\\\"doNotPrintTotal\\\"]],[30,0,[\\\"doNotPrint\\\"]]],null],\\\"do-not-print\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,0,\\\"financials-table__account-name financials-table__indented-cell financials-table__indented-cell--depth-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"filterHeaders\\\"]],[28,[37,5],[[30,0,[\\\"nested\\\"]]],null]],null],[[[1,\\\"        \\\"],[11,3],[24,0,\\\"financials-table__print-toggle do-not-print\\\"],[4,[38,9],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"doNotPrintTotal\\\"],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"doNotPrintTotal\\\"]],\\\"eye-slash\\\",\\\"eye\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[1,[30,0,[\\\"totalsRow\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"totals\\\"]]],null]],null],null,[[[41,[28,[37,7],[[30,0,[\\\"showMonth\\\"]],[28,[37,19],[[30,3,[\\\"month\\\"]],null],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,15],[[30,3,[\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,3,[\\\"month\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showYTD\\\"]],[28,[37,19],[[30,3,[\\\"ytd\\\"]],null],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,15],[[30,3,[\\\"ytd\\\"]],0],null],\\\"financials-table__negative-value\\\"],\\\"\\\\n            \\\"]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,3,[\\\"ytd\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"showMonth\\\"]],[28,[37,19],[[30,3,[\\\"continuous\\\"]],null],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n            \\\",[52,[28,[37,15],[[30,3,[\\\"continuous\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,3,[\\\"continuous\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[28,[37,4],[[30,0,[\\\"showMonth\\\"]],[30,0,[\\\"showYTD\\\"]]],null]],null],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[3]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"account\\\",\\\"period\\\",\\\"total\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"if\\\",\\\"or\\\",\\\"not\\\",\\\"td\\\",\\\"and\\\",\\\"a\\\",\\\"action\\\",\\\"fa-icon\\\",\\\"eq\\\",\\\"span\\\",\\\"info-popup\\\",\\\"concat\\\",\\\"lt\\\",\\\"get\\\",\\\"number-format\\\",\\\"personal-financial-table-section\\\",\\\"not-eq\\\"]]\",\n    \"moduleName\": \"portal/components/personal-financial-table-section.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: '',\n    columnCount: (0, _object.computed)('periodCount', 'showMonth', 'showYTD', function () {\n      const periodCount = (0, _object.get)(this, 'periodCount') || 1;\n      const colsPerPeriod = (0, _object.get)(this, 'showMonth') + (0, _object.get)(this, 'showYTD') || 1; // boolean addition+\n      return periodCount * colsPerPeriod;\n    }),\n    columnCountArray: (0, _object.computed)('columnCount', function () {\n      const array = [];\n      const count = (0, _object.get)(this, 'columnCount');\n      for (let i = 0; i < count; i++) {\n        array.push(i);\n      }\n      return array;\n    }),\n    totals: (0, _object.computed)('accounts.0.data.length', 'accounts.@each.data', function () {\n      const notEnoughData = (0, _object.get)(this, 'accounts.length') === 0 || (0, _object.get)(this, 'accounts.0.data.length') === 0;\n      if (notEnoughData) return [];\n      const accounts = (0, _object.get)(this, 'accounts');\n      const periodic = (0, _object.get)(accounts, '0.periodic');\n      const totals = periodic ? this.getPeriodicTotals(accounts) : this.getContinuousTotals(accounts);\n\n      // Yeah idk, that's how the last guy did it\n      (0, _object.set)(totals, 'print', true);\n      return totals;\n    }),\n    sumDrCrValues(values, periodType) {\n      return (0, _lodash.default)(values).map(({\n        multiplier,\n        values\n      }) => multiplier * ((0, _object.get)(values, `${periodType}.value`) || 0)).sum();\n    },\n    extractAccountValues(account, periodIndex) {\n      const {\n        debitCredit,\n        periodic\n      } = (0, _object.getProperties)(account, 'debitCredit', 'periodic');\n\n      // |    | Cr | Dr |\n      // | PL |  1 | -1 |\n      // | BS | -1 |  1 |\n      const multiplier = (debitCredit === 'CREDIT' ? 1 : -1) * (periodic ? 1 : -1);\n      const values = (0, _object.get)(account, `data.${periodIndex}.periods.0.periodTypes`) || {};\n      return {\n        multiplier,\n        values\n      };\n    },\n    getPeriodicTotals(accounts) {\n      const numPeriods = (0, _object.get)(this, 'accounts.0.data.length');\n      const periods = _lodash.default.range(0, numPeriods);\n      return periods.map(i => {\n        const periodData = accounts.map(account => this.extractAccountValues(account, i));\n        const month = this.sumDrCrValues(periodData, 'month');\n        const ytd = this.sumDrCrValues(periodData, 'ytd');\n        return {\n          month,\n          ytd,\n          continuous: null\n        };\n      });\n    },\n    getContinuousTotals(accounts) {\n      const numPeriods = (0, _object.get)(this, 'accounts.0.data.length');\n      const periods = _lodash.default.range(0, numPeriods);\n      return periods.map(i => {\n        const periodData = accounts.map(account => this.extractAccountValues(account, i));\n        const continuous = this.sumDrCrValues(periodData, 'month');\n        return {\n          month: null,\n          ytd: null,\n          continuous\n        };\n      });\n    },\n    actions: {\n      toggleShowChildren(account) {\n        this.toggleShowChildren(account);\n      },\n      toggleShowBreakdown(...args) {\n        this.toggleShowBreakdown(...args);\n      },\n      toggleFilter(account) {\n        (0, _object.set)(account, 'print', !(0, _object.get)(account, 'print'));\n      }\n    }\n  }));\n});","define(\"portal/components/pm-integration-settings\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _service, _object, _tracking, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p class='mt-2 mb-0 text-muted'>\n    {{t 'components.pm-integration-settings.placemakersIntegrationDescription'}}\n  </p>\n  \n  <div class='mt-2 d-flex align-items-center'>\n    {{#if (and this.pmIntegration.isInitialized this.pmIntegration.isConnected)}}\n      <span class='float-end'>\n        {{#if this.pmIntegration.updateOption.isRunning}}\n          <LoadingIcon @type='spinner' />\n          {{t 'common.Saving'}}\n        {{else if this.pmIntegration.updateOption.performCount}}\n          <FaIcon @icon='check' />\n          {{t 'components.pm-integration-settings.Up to date'}}\n        {{/if}}\n      </span>\n    {{/if}}\n    {{t\n      'components.pm-integration-settings.toViewYourPlacemakersAccountOrToCreateOne'\n    }}:\n    <a\n      href='{{this.pmBaseURL}}'\n      class='link ps-1'\n      target='_blank'\n      rel='noopener noreferrer'\n    >\n      {{t 'components.pm-integration-settings.Click here'}}\n      <FaIcon @icon='external-link-alt' @size='sm' />\n    </a>\n  </div>\n  \n  <div class='mt-3'>\n    {{#if this.pmIntegration.isInitialized}}\n      {{#if this.pmIntegration.isConnected}}\n        {{#let\n          (changeset this.integrationOptions this.pmValidationMap)\n          as |pmModel|\n        }}\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'components.pm-integration-settings.Auto sync status'}}\n            @key='autoSync'\n            @model={{pmModel}}\n            @role='switch'\n            @forceValidationVisible={{gt this.savePmConnection.performCount 0}}\n            disabled={{this.savePmConnection.isRunning}}\n          />\n          <PtlInput\n            @type='select'\n            @label={{t 'components.pm-integration-settings.Branch'}}\n            @key='branchCode'\n            @options={{this.pmStoreList}}\n            @model={{pmModel}}\n            @forceValidationVisible={{gt this.savePmConnection.performCount 0}}\n            disabled={{this.savePmConnection.isRunning}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'components.pm-integration-settings.Account code'}}\n            @key='accountCode'\n            @model={{pmModel}}\n            @forceValidationVisible={{gt this.savePmConnection.performCount 0}}\n            disabled={{this.savePmConnection.isRunning}}\n          />\n          <div>\n            <button\n              type='button'\n              class='btn btn-link text-decoration-underline m- p-0'\n              disabled={{this.syncPriceBookNow.isRunning}}\n              {{on 'click' (perform this.syncPriceBookNow this.xeroModel)}}\n            >\n              {{#if this.syncPriceBookNow.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;Syncing&hellip;\n              {{else}}\n                {{t 'components.pm-integration-settings.Sync Now'}}\n              {{/if}}\n            </button>\n          </div>\n          <div class='d-flex flex-grow-1 mt-3'>\n            <button\n              type='button'\n              class='btn btn-danger text-white'\n              disabled={{this.disconnect.isRunning}}\n              {{on 'click' (perform this.disconnect)}}\n            >\n              {{#if this.disconnect.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Disconnecting'}}&hellip;\n              {{else}}\n                {{t 'common.Disconnect'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePmConnection.isRunning}}\n              {{on 'click' (perform this.savePmConnection pmModel)}}\n            >\n              {{#if this.savePmConnection.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n                PlaceMakers\n              {{/if}}\n            </button>\n          </div>\n        {{/let}}\n      {{else}}\n        <div class='mt-2'>\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on 'click' this.initiatePMConnection}}\n          >\n            {{t 'components.pm-integration-settings.Connect to PlaceMakers'}}\n          </button>\n        </div>\n      {{/if}}\n    {{else}}\n      <LoadingIcon @type='spinner' />\n      {{t 'common.Initializing'}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"M+zdwd4j\",\n    \"block\": \"[[[10,2],[14,0,\\\"mt-2 mb-0 text-muted\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,1],[\\\"components.pm-integration-settings.placemakersIntegrationDescription\\\"],null]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"mt-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,0,[\\\"pmIntegration\\\",\\\"isInitialized\\\"]],[30,0,[\\\"pmIntegration\\\",\\\"isConnected\\\"]]],null],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"pmIntegration\\\",\\\"updateOption\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,6],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"common.Saving\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"pmIntegration\\\",\\\"updateOption\\\",\\\"performCount\\\"]],[[[1,\\\"        \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"check\\\"]],null],[1,\\\"\\\\n        \\\"],[1,[28,[35,1],[\\\"components.pm-integration-settings.Up to date\\\"],null]],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[1,[28,[35,1],[\\\"components.pm-integration-settings.toViewYourPlacemakersAccountOrToCreateOne\\\"],null]],[1,\\\":\\\\n  \\\"],[10,3],[15,6,[29,[[30,0,[\\\"pmBaseURL\\\"]]]]],[14,0,\\\"link ps-1\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,1],[\\\"components.pm-integration-settings.Click here\\\"],null]],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",\\\"sm\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"pmIntegration\\\",\\\"isInitialized\\\"]],[[[41,[30,0,[\\\"pmIntegration\\\",\\\"isConnected\\\"]],[[[44,[[28,[37,10],[[30,0,[\\\"integrationOptions\\\"]],[30,0,[\\\"pmValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"savePmConnection\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@role\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,1],[\\\"components.pm-integration-settings.Auto sync status\\\"],null],\\\"autoSync\\\",[30,1],\\\"switch\\\",[28,[37,12],[[30,0,[\\\"savePmConnection\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"savePmConnection\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,1],[\\\"components.pm-integration-settings.Branch\\\"],null],\\\"branchCode\\\",[30,0,[\\\"pmStoreList\\\"]],[30,1],[28,[37,12],[[30,0,[\\\"savePmConnection\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"savePmConnection\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,1],[\\\"components.pm-integration-settings.Account code\\\"],null],\\\"accountCode\\\",[30,1],[28,[37,12],[[30,0,[\\\"savePmConnection\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m- p-0\\\"],[16,\\\"disabled\\\",[30,0,[\\\"syncPriceBookNow\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"syncPriceBookNow\\\"]],[30,0,[\\\"xeroModel\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"syncPriceBookNow\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  Syncing…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,1],[\\\"components.pm-integration-settings.Sync Now\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disconnect\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"disconnect\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"disconnect\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,1],[\\\"common.Disconnecting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,1],[\\\"common.Disconnect\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePmConnection\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"savePmConnection\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePmConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,1],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,1],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n              PlaceMakers\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,0,[\\\"initiatePMConnection\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"components.pm-integration-settings.Connect to PlaceMakers\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"    \\\"],[8,[39,6],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n    \\\"],[1,[28,[35,1],[\\\"common.Initializing\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"pmModel\\\"],false,[\\\"p\\\",\\\"t\\\",\\\"div\\\",\\\"if\\\",\\\"and\\\",\\\"span\\\",\\\"loading-icon\\\",\\\"fa-icon\\\",\\\"a\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/components/pm-integration-settings.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _service.inject)('placemakers'), _class = class _class extends _component2.default {\n    get pmIntegrationEnabledOptions() {\n      return [{\n        value: true,\n        label: this.intl.t('common.Enabled')\n      }, {\n        value: false,\n        label: this.intl.t('common.Disabled')\n      }];\n    }\n    get autoSync() {\n      return this._autoSync;\n    }\n    set autoSync(value) {\n      this._autoSync = value;\n      this.pmIntegration.updateOption.perform('autoSync', value);\n      return value;\n    }\n    get integrationOptions() {\n      return this.pmIntegration.integrationOptions;\n    }\n    discoverSettings() {\n      const {\n        autoSync,\n        accountvalue,\n        branchvalue\n      } = this.pmIntegration.integrationOptions;\n      this._autoSync = autoSync;\n      this._accountvalue = accountvalue;\n      this._branchvalue = branchvalue;\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"pmIntegration\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      // this list was pulled from: https://knowme.fbnzd.co.nz/accounts (creds in 1password)\n      // * the list provided directly from PM was wrong *\n      // it seems this list is correct...\n      // this list can apparently be fetched from their API, but probably not worth doing atm\n      _defineProperty(this, \"pmStoreList\", [{\n        label: 'PlaceMakers Ahuriri',\n        value: '226'\n      }, {\n        label: 'PlaceMakers Albany',\n        value: '422'\n      }, {\n        label: 'PlaceMakers Alexandra',\n        value: '195'\n      }, {\n        label: 'PlaceMakers Aoraki Hub',\n        value: '590'\n      }, {\n        label: 'PlaceMakers Ashburton',\n        value: '173'\n      }, {\n        label: 'PlaceMakers Auckland Expo',\n        value: '411'\n      }, {\n        label: 'PlaceMakers Auckland Frame & Truss',\n        value: '444'\n      }, {\n        label: 'PlaceMakers Auckland Hub',\n        value: '600'\n      }, {\n        label: 'PlaceMakers Blenheim',\n        value: '165'\n      }, {\n        label: 'PlaceMakers Christchurch Frame & Truss',\n        value: '155'\n      }, {\n        label: 'PlaceMakers Christchurch Hub',\n        value: '545'\n      }, {\n        label: 'PlaceMakers Clarence Street Hamilton',\n        value: '369'\n      }, {\n        label: 'PlaceMakers Cook St',\n        value: '481'\n      }, {\n        label: 'PlaceMakers Cranford Street',\n        value: '169'\n      }, {\n        label: 'PlaceMakers Cromwell',\n        value: '196'\n      }, {\n        label: 'PlaceMakers Dannevirke',\n        value: '287'\n      }, {\n        label: 'PlaceMakers Dunedin Frame And Truss',\n        value: '720'\n      }, {\n        label: 'PlaceMakers Dunedin',\n        value: '181'\n      }, {\n        label: 'PlaceMakers Evans Bay',\n        value: '293'\n      }, {\n        label: 'PlaceMakers Gisborne',\n        value: '277'\n      }, {\n        label: 'PlaceMakers Gore',\n        value: '185'\n      }, {\n        label: 'PlaceMakers Hastings PM (Old)',\n        value: '222'\n      }, {\n        label: 'PlaceMakers Hastings',\n        value: '225'\n      }, {\n        label: 'PlaceMakers Havelock North',\n        value: '224'\n      }, {\n        label: 'PlaceMakers Hawera',\n        value: '263'\n      }, {\n        label: 'PlaceMakers Hawkes Bay Frame And Truss',\n        value: '796'\n      }, {\n        label: 'PlaceMakers Hawkes Bay',\n        value: '592'\n      }, {\n        label: 'PlaceMakers Huntly',\n        value: '313'\n      }, {\n        label: 'PlaceMakers Hutt City',\n        value: '289'\n      }, {\n        label: 'PlaceMakers Invercargill',\n        value: '187'\n      }, {\n        label: 'PlaceMakers Kaiapoi',\n        value: '171'\n      }, {\n        label: 'PlaceMakers Kaitaia',\n        value: '461'\n      }, {\n        label: 'PlaceMakers Kaiwharawhara',\n        value: '292'\n      }, {\n        label: 'PlaceMakers Kapiti',\n        value: '283'\n      }, {\n        label: 'PlaceMakers Kerikeri',\n        value: '463'\n      }, {\n        label: 'PlaceMakers Levin',\n        value: '281'\n      }, {\n        label: 'PlaceMakers Mangawhai',\n        value: '416'\n      }, {\n        label: 'PlaceMakers Morrinsville',\n        value: '365'\n      }, {\n        label: 'PlaceMakers Mosgiel',\n        value: '183'\n      }, {\n        label: 'PlaceMakers Motueka',\n        value: '163'\n      }, {\n        label: 'PlaceMakers Mt Maunganui',\n        value: '377'\n      }, {\n        label: 'PlaceMakers Mt Wellington',\n        value: '485'\n      }, {\n        label: 'PlaceMakers Napier',\n        value: '221'\n      }, {\n        label: 'PlaceMakers Nelson Marlborough Hub',\n        value: '535'\n      }, {\n        label: 'PlaceMakers Nelson',\n        value: '161'\n      }, {\n        label: 'PlaceMakers New Lynn',\n        value: '479'\n      }, {\n        label: 'PlaceMakers New Plymouth',\n        value: '258'\n      }, {\n        label: 'PlaceMakers New Plymouth',\n        value: '262'\n      }, {\n        label: 'PlaceMakers Northern Frame & Truss',\n        value: '775'\n      }, {\n        label: 'PlaceMakers Northland Hub',\n        value: '540'\n      }, {\n        label: 'PlaceMakers Oamaru',\n        value: '179'\n      }, {\n        label: 'PlaceMakers Ohakune',\n        value: '266'\n      }, {\n        label: 'PlaceMakers Okatea Hub',\n        value: '575'\n      }, {\n        label: 'PlaceMakers Pakuranga',\n        value: '491'\n      }, {\n        label: 'PlaceMakers Palmerston North',\n        value: '276'\n      }, {\n        label: 'PlaceMakers Penrose',\n        value: '482'\n      }, {\n        label: 'PlaceMakers Porirua Expo',\n        value: '412'\n      }, {\n        label: 'PlaceMakers Porirua',\n        value: '285'\n      }, {\n        label: 'PlaceMakers Pukekohe',\n        value: '499'\n      }, {\n        label: 'PlaceMakers Queenstown - 191',\n        value: '191'\n      }, {\n        label: 'PlaceMakers Queenstown - 580',\n        value: '580'\n      }, {\n        label: 'PlaceMakers Riccarton Expo',\n        value: '413'\n      }, {\n        label: 'PlaceMakers Riccarton',\n        value: '167'\n      }, {\n        label: 'PlaceMakers Rolleston',\n        value: '172'\n      }, {\n        label: 'PlaceMakers Rotorua',\n        value: '387'\n      }, {\n        label: 'PlaceMakers Saxton Road',\n        value: '162'\n      }, {\n        label: 'PlaceMakers Silverdale',\n        value: '427'\n      }, {\n        label: 'PlaceMakers Supply Fix & Install',\n        value: '156'\n      }, {\n        label: 'PlaceMakers Takanini',\n        value: '439'\n      }, {\n        label: 'PlaceMakers Tasman Frame And Truss',\n        value: '745'\n      }, {\n        label: 'PlaceMakers Taupo Frame And Truss',\n        value: '770'\n      }, {\n        label: 'PlaceMakers Taupo',\n        value: '385'\n      }, {\n        label: 'PlaceMakers Te Anau',\n        value: '186'\n      }, {\n        label: 'PlaceMakers Te Rapa',\n        value: '368'\n      }, {\n        label: 'PlaceMakers Thames',\n        value: '362'\n      }, {\n        label: 'PlaceMakers Timaru',\n        value: '175'\n      }, {\n        label: 'PlaceMakers Twizel',\n        value: '176'\n      }, {\n        label: 'PlaceMakers Waiheke',\n        value: '405'\n      }, {\n        label: 'PlaceMakers Waikato Hub',\n        value: '565'\n      }, {\n        label: 'PlaceMakers Waikato/BOP Frame & Truss',\n        value: '702'\n      }, {\n        label: 'PlaceMakers Wairarapa (Old)',\n        value: '288'\n      }, {\n        label: 'PlaceMakers Wairarapa Hub',\n        value: '588'\n      }, {\n        label: 'PlaceMakers Wairarapa',\n        value: '286'\n      }, {\n        label: 'PlaceMakers Wairau Park',\n        value: '471'\n      }, {\n        label: 'PlaceMakers Wanaka',\n        value: '146'\n      }, {\n        label: 'PlaceMakers Warkworth',\n        value: '488'\n      }, {\n        label: 'PlaceMakers Wellington Frame & Truss',\n        value: '290'\n      }, {\n        label: 'PlaceMakers Wellington Hub',\n        value: '570'\n      }, {\n        label: 'PlaceMakers Westgate',\n        value: '473'\n      }, {\n        label: 'PlaceMakers Whakatane',\n        value: '382'\n      }, {\n        label: 'PlaceMakers Whanganui',\n        value: '265'\n      }, {\n        label: 'PlaceMakers Whangarei',\n        value: '415'\n      }, {\n        label: 'PlaceMakers Whitianga',\n        value: '363'\n      }, {\n        label: 'PlaceMakers Winton',\n        value: '189'\n      }]);\n      _defineProperty(this, \"pmBaseURL\", _environment.default.placemakers.baseURL);\n      _initializerDefineProperty(this, \"_autoSync\", _descriptor5, this);\n      _defineProperty(this, \"pmValidationMap\", {});\n      _defineProperty(this, \"disconnect\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.pmIntegration.disconnect();\n            this.notifications.success(this.intl.t('components.pm-integration-settings.PlaceMakers is disconnected'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('components.pm-integration-settings.somethingWentWrongUnableToDisconnect')\n            });\n          }\n        }\n      }), null, \"disconnect\", null));\n      _defineProperty(this, \"savePmConnection\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            changeset.validate();\n            changeset.execute();\n            yield changeset.save();\n            this.notifications.success(this.intl.t('shared.notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.pm-integration-settings.somethingWentWrongWhileUpdatingPlaceMakers'),\n              error\n            });\n          }\n        }\n      }), null, \"savePmConnection\", null));\n      _defineProperty(this, \"syncPriceBookNow\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const result = yield this.pmIntegration.syncPriceBookNow(this.sessionData.entity.id);\n            if (result.products > 0) {\n              this.notifications.success(this.intl.t('components.pm-integration-settings.successfullySyncedXProductPrices', {\n                number: result.products\n              }));\n            } else {\n              this.notifications.warning(this.intl.t('components.pm-integration-settings.placemakersReturnedNoProductPriceDataForYourSelectedBranch'));\n            }\n          } catch (error) {\n            if (error.wasAuthenticationError) return;\n            this.notifications.error({\n              error,\n              message: this.intl.t('components.pm-integration-settings.syncFailedMakeSureYourBranchAndAccountCodeAreCorrect')\n            });\n          }\n        }\n      }), null, \"syncPriceBookNow\", null));\n      this.pmIntegration.initialize.perform();\n    }\n    initiatePMConnection() {\n      this.pmIntegration.initiatePMConnection();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"pmIntegration\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"_autoSync\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"discoverSettings\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"discoverSettings\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"initiatePMConnection\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"initiatePMConnection\"), _class.prototype), _class));\n});","define(\"portal/components/pop-hover-over\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='pop-hover-over__container d-flex align-items-center' tabindex='-1'>\n    {{yield\n      (hash\n        Content=(component\n          'pop-hover-over/content' direction=@direction onClick=this.onItemClick\n        )\n      )\n    }}\n  </div>\n  */\n  {\n    \"id\": \"GSF6NheB\",\n    \"block\": \"[[[10,0],[14,0,\\\"pop-hover-over__container d-flex align-items-center\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[12],[1,\\\"\\\\n  \\\"],[18,2,[[28,[37,2],null,[[\\\"Content\\\"],[[50,\\\"pop-hover-over/content\\\",0,null,[[\\\"direction\\\",\\\"onClick\\\"],[[30,1],[30,0,[\\\"onItemClick\\\"]]]]]]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"@direction\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"portal/components/pop-hover-over.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    onItemClick() {\n      document.activeElement.blur();\n    }\n  });\n});","define(\"portal/components/pop-hover-over/content\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='pop-hover-over__content card shadow d-flex flex-column py-2 pop-hover-over__{{@direction}}'\n    {{on 'click' @onClick}}\n  >\n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"vKlidCQN\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"pop-hover-over__content card shadow d-flex flex-column py-2 pop-hover-over__\\\",[30,1]]]],[4,[38,1],[\\\"click\\\",[30,2]],null],[12],[1,\\\"\\\\n  \\\"],[18,3,null],[1,\\\"\\\\n\\\"],[13]],[\\\"@direction\\\",\\\"@onClick\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"on\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/pop-hover-over/content.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/pop-over\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='pop-over__container\n      {{if @disabled \"pop-over__container--disabled\"}}\n      d-flex align-items-center'\n    tabindex='-1'\n    {{on 'focusin' this.onContainerClick}}\n    {{did-insert this.initPosition}}\n    ...attributes\n  >\n    {{yield\n      (hash\n        Content=(component\n          'pop-over/content'\n          direction=@direction\n          onClick=this.onItemClick\n          fixed=@fixed\n        )\n      )\n    }}\n  </div>\n  */\n  {\n    \"id\": \"ASF48uoq\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"pop-over__container\\\\n    \\\",[52,[30,1],\\\"pop-over__container--disabled\\\"],\\\"\\\\n    d-flex align-items-center\\\"]]],[24,\\\"tabindex\\\",\\\"-1\\\"],[17,2],[4,[38,2],[\\\"focusin\\\",[30,0,[\\\"onContainerClick\\\"]]],null],[4,[38,3],[[30,0,[\\\"initPosition\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[18,5,[[28,[37,5],null,[[\\\"Content\\\"],[[50,\\\"pop-over/content\\\",0,null,[[\\\"direction\\\",\\\"onClick\\\",\\\"fixed\\\"],[[30,3],[30,0,[\\\"onItemClick\\\"]],[30,4]]]]]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"@disabled\\\",\\\"&attrs\\\",\\\"@direction\\\",\\\"@fixed\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"did-insert\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"portal/components/pop-over.hbs\",\n    \"isStrictMode\": false\n  });\n  const px = number => {\n    return number + 'px';\n  };\n  const parsePx = px => {\n    return px ? parseInt(px, 10) : 0;\n  };\n  const margin = 5; // px\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"contentClass\", this.args.fixed ? 'pop-over__content-fixed' : 'pop-over__content');\n    }\n    isVisible(width, height, {\n      top,\n      right,\n      bottom,\n      left\n    }) {\n      if (top !== undefined && (\n      // the element is rendered above the page\n      top < 0 ||\n      // the element is taller than the viewport\n      top + height > window.innerHeight)) {\n        return false;\n      }\n      if (right !== undefined && (\n      // the element is rendered over the right of the page\n      right < 0 ||\n      // the element is wider than the viewport\n      right + width > window.innerWidth)) {\n        return false;\n      }\n      if (bottom !== undefined && (\n      // the element is rendered over the bottom of the page\n      bottom < 0 ||\n      // the element is taller than the viewport\n      bottom + height > window.innerHeight)) {\n        return false;\n      }\n      if (left !== undefined && (\n      // the element is rendered over the left of the page\n      left < 0 ||\n      // the element is wider than the viewport\n      left + width > window.innerWidth)) {\n        return false;\n      }\n      return true;\n    }\n    calculatePositionFixed(container, direction, originalDirection) {\n      let checkedAllDirections = false;\n      if (!originalDirection) {\n        originalDirection = direction;\n      } else {\n        checkedAllDirections = direction === originalDirection;\n      }\n      const containerRect = container.getBoundingClientRect();\n      const content = container.querySelector('.' + this.contentClass);\n      const contentRect = content.getBoundingClientRect();\n      const contentStyle = window.getComputedStyle(content);\n      const contentOuterWidth = contentRect.width + parsePx(contentStyle.borderLeftWidth) + parsePx(contentStyle.paddingLeft) + parsePx(contentStyle.borderRightWidth) + parsePx(contentStyle.paddingRight);\n      const contentOuterHeight = contentRect.height + parsePx(contentStyle.borderTopHeight) + parsePx(contentStyle.paddingTop) + parsePx(contentStyle.borderBottomHeight) + parsePx(contentStyle.paddingBottom);\n\n      // reset the calculation each time\n      content.style.removeProperty('top');\n      content.style.removeProperty('right');\n      content.style.removeProperty('bottom');\n      content.style.removeProperty('left');\n      switch (direction) {\n        case 'top':\n          {\n            const bottom = window.innerHeight - containerRect.top + margin;\n            const left = containerRect.left + containerRect.width / 2 - contentOuterWidth / 2;\n            if (!checkedAllDirections && !this.isVisible(contentOuterWidth, contentOuterHeight, {\n              bottom,\n              left\n            })) {\n              return this.calculatePositionFixed(container, 'top-right', originalDirection);\n            }\n            content.style.bottom = px(bottom);\n            content.style.left = px(left);\n            break;\n          }\n        case 'top-right':\n          {\n            const bottom = window.innerHeight - containerRect.top + margin;\n            const left = containerRect.left;\n            if (!checkedAllDirections && !this.isVisible(contentOuterWidth, contentOuterHeight, {\n              bottom,\n              left\n            })) {\n              return this.calculatePositionFixed(container, 'right', originalDirection);\n            }\n            content.style.bottom = px(bottom);\n            content.style.left = px(left);\n            break;\n          }\n        case 'right':\n          {\n            const left = containerRect.right + margin;\n            const top = containerRect.top + containerRect.height / 2 - contentRect.height / 2;\n            if (!checkedAllDirections && !this.isVisible(contentOuterWidth, contentOuterHeight, {\n              left,\n              top\n            })) {\n              return this.calculatePositionFixed(container, 'bottom-right', originalDirection);\n            }\n            content.style.left = px(left);\n            content.style.top = px(top);\n            break;\n          }\n        case 'bottom-right':\n          {\n            const top = containerRect.bottom + margin;\n            const left = containerRect.left;\n            if (!checkedAllDirections && !this.isVisible(contentOuterWidth, contentOuterHeight, {\n              top,\n              left\n            })) {\n              return this.calculatePositionFixed(container, 'bottom', originalDirection);\n            }\n            content.style.top = px(top);\n            content.style.left = px(left);\n            break;\n          }\n        case 'bottom':\n          {\n            const top = containerRect.bottom + margin;\n            const left = containerRect.left + containerRect.width / 2 - contentOuterWidth / 2;\n            if (!checkedAllDirections && !this.isVisible(contentOuterWidth, contentOuterHeight, {\n              top,\n              left\n            })) {\n              return this.calculatePositionFixed(container, 'bottom-left', originalDirection);\n            }\n            content.style.top = px(top);\n            content.style.left = px(left);\n            break;\n          }\n        case 'bottom-left':\n          {\n            const top = containerRect.bottom + margin;\n            const right = window.innerWidth - containerRect.right;\n            if (!checkedAllDirections && !this.isVisible(contentOuterWidth, contentOuterHeight, {\n              top,\n              right\n            })) {\n              return this.calculatePositionFixed(container, 'left', originalDirection);\n            }\n            content.style.top = px(top);\n            content.style.right = px(right);\n            break;\n          }\n        case 'left':\n          {\n            const right = window.innerWidth - containerRect.left + margin;\n            const top = containerRect.top + containerRect.height / 2 - contentRect.height / 2;\n            if (!checkedAllDirections && !this.isVisible(contentOuterWidth, contentOuterHeight, {\n              right,\n              top\n            })) {\n              return this.calculatePositionFixed(container, 'top-left', originalDirection);\n            }\n            content.style.right = px(right);\n            content.style.top = px(top);\n            break;\n          }\n        case 'top-left':\n          {\n            const bottom = window.innerHeight - containerRect.top + margin;\n            const right = window.innerWidth - containerRect.right;\n            if (!checkedAllDirections && !this.isVisible(contentOuterWidth, contentOuterHeight, {\n              bottom,\n              right\n            })) {\n              return this.calculatePositionFixed(container, 'top', originalDirection);\n            }\n            content.style.bottom = px(bottom);\n            content.style.right = px(right);\n            break;\n          }\n      }\n    }\n    calculatePositionAbsolute(container, direction) {\n      const containerRect = container.getBoundingClientRect();\n      const containerStyle = window.getComputedStyle(container);\n      const containerWidth = containerRect.width;\n      const containerLeftPadding = parsePx(containerStyle.borderLeftWidth) + parsePx(containerStyle.paddingLeft);\n      const containerRightPadding = parsePx(containerStyle.borderRightWidth) + parsePx(containerStyle.paddingRight);\n      const containerHeight = containerRect.height;\n      const containerTopPadding = parsePx(containerStyle.borderTopWidth) + parsePx(containerStyle.paddingTop);\n      const containerBottomPadding = parsePx(containerStyle.borderBottomWidth) + parsePx(containerStyle.paddingBottom);\n      const content = container.querySelector('.' + this.contentClass);\n      const contentRect = content.getBoundingClientRect();\n      const contentStyle = window.getComputedStyle(content);\n      const contentOuterWidth = contentRect.width + parsePx(contentStyle.borderLeftWidth) + parsePx(contentStyle.paddingLeft) + parsePx(contentStyle.borderRightWidth) + parsePx(contentStyle.paddingRight);\n      switch (direction) {\n        case 'top':\n          content.style.bottom = px(margin + containerHeight - containerTopPadding);\n          content.style.left = px(containerWidth / 2 / (contentOuterWidth / 2));\n          break;\n        case 'top-right':\n          content.style.bottom = px(margin + containerHeight - containerTopPadding);\n          content.style.left = px(containerLeftPadding);\n          break;\n        case 'right':\n          content.style.left = px(margin + containerWidth - containerRightPadding);\n          break;\n        case 'bottom-right':\n          content.style.top = px(margin + containerHeight - containerBottomPadding);\n          content.style.left = px(containerLeftPadding);\n          break;\n        case 'bottom':\n          content.style.top = px(margin + containerHeight - containerBottomPadding);\n          content.style.left = px(containerWidth / 2 / (contentOuterWidth / 2));\n          break;\n        case 'bottom-left':\n          content.style.top = px(margin + containerHeight - containerBottomPadding);\n          content.style.right = px(containerRightPadding);\n          break;\n        case 'left':\n          content.style.right = px(margin + containerWidth - containerLeftPadding);\n          break;\n        case 'top-left':\n          content.style.bottom = px(margin + containerHeight - containerTopPadding);\n          content.style.right = px(containerRightPadding);\n          break;\n      }\n    }\n    onContainerClick(e) {\n      if (!this.args.fixed) return;\n      const container = e.target.closest('.pop-over__container');\n      this.calculatePositionFixed(container, this.args.direction);\n    }\n    initPosition(container) {\n      if (this.args.fixed) this.calculatePositionFixed(container, this.args.direction);else this.calculatePositionAbsolute(container, this.args.direction);\n    }\n    onItemClick() {\n      if (this.args.disableBlur) return;\n      document.activeElement.blur();\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"onContainerClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onContainerClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"initPosition\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"initPosition\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onItemClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onItemClick\"), _class.prototype), _class));\n});","define(\"portal/components/pop-over/content\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='dropdown-menu\n      {{if @fixed \"pop-over__content-fixed\" \"pop-over__content\"}}\n      card shadow d-flex flex-column py-2 pop-over__{{@direction}}'\n    {{on 'click' @onClick}}\n    ...attributes\n  >\n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"KN7KLLMS\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"dropdown-menu\\\\n    \\\",[52,[30,1],\\\"pop-over__content-fixed\\\",\\\"pop-over__content\\\"],\\\"\\\\n    card shadow d-flex flex-column py-2 pop-over__\\\",[30,2]]]],[17,3],[4,[38,2],[\\\"click\\\",[30,4]],null],[12],[1,\\\"\\\\n  \\\"],[18,5,null],[1,\\\"\\\\n\\\"],[13]],[\\\"@fixed\\\",\\\"@direction\\\",\\\"&attrs\\\",\\\"@onClick\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/pop-over/content.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/pop-up\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='pop-up__container {{if @disabled \"pop-up__container--disabled\"}}'\n    ...attributes\n  >\n    {{yield\n      (hash\n        Content=(component\n          'pop-up/content'\n          onClose=@onClose\n          scrollDivClass=@scrollDivClass\n          visible=@visible\n        )\n      )\n    }}\n  </div>\n  */\n  {\n    \"id\": \"Fv5TwSlD\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"pop-up__container \\\",[52,[30,1],\\\"pop-up__container--disabled\\\"]]]],[17,2],[12],[1,\\\"\\\\n  \\\"],[18,6,[[28,[37,3],null,[[\\\"Content\\\"],[[50,\\\"pop-up/content\\\",0,null,[[\\\"onClose\\\",\\\"scrollDivClass\\\",\\\"visible\\\"],[[30,3],[30,4],[30,5]]]]]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"@disabled\\\",\\\"&attrs\\\",\\\"@onClose\\\",\\\"@scrollDivClass\\\",\\\"@visible\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"portal/components/pop-up.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/pop-up/content\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/runloop\", \"jquery\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _runloop, _jquery, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"jquery\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @visible}}\n    <div\n      class='card shadow pop-up__content {{this.direction}}'\n      {{did-insert this.onDidInsert}}\n      {{will-destroy this.onWillDestroy}}\n      ...attributes\n    >\n      {{yield}}\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"peOLhJmK\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[11,0],[16,0,[29,[\\\"card shadow pop-up__content \\\",[30,0,[\\\"direction\\\"]]]]],[17,2],[4,[38,2],[[30,0,[\\\"onDidInsert\\\"]]],null],[4,[38,3],[[30,0,[\\\"onWillDestroy\\\"]]],null],[12],[1,\\\"\\\\n    \\\"],[18,3,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@visible\\\",\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"div\\\",\\\"did-insert\\\",\\\"will-destroy\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/pop-up/content.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"onClickListener\", _descriptor, this);\n      _initializerDefineProperty(this, \"direction\", _descriptor2, this);\n      _initializerDefineProperty(this, \"media\", _descriptor3, this);\n      _defineProperty(this, \"offsetListener\", void 0);\n      _defineProperty(this, \"resizeObserver\", void 0);\n    }\n    handleOffsetChange(element) {\n      const padding = 4;\n      const $element = (0, _jquery.default)(element);\n      // we know this component is always rendered inside the pop-up component\n      const $parent = $element.parent();\n      const $scrollDiv = this.args.scrollDivClass ? (0, _jquery.default)(this.args.scrollDivClass) : undefined;\n      const shouldRenderAboveParent = window.innerHeight - $parent[0].getBoundingClientRect().bottom < $element.outerHeight();\n      const scrollOffset = $scrollDiv ? $scrollDiv.scrollTop() : 0;\n      let marginTop = 0;\n      marginTop = shouldRenderAboveParent ? -($parent.outerHeight() + $element.outerHeight()) : 0;\n      marginTop -= scrollOffset;\n      if (marginTop >= 0) marginTop += padding;else marginTop -= padding;\n      $element.css('margin-top', `${marginTop}px`);\n    }\n    onDidInsert(element) {\n      if (this.args.onClose) {\n        (0, _runloop.next)(() => {\n          this.onClickListener = event => this.onClick(event, element);\n          document.addEventListener('click', this.onClickListener);\n        });\n      }\n\n      // this is only applicable for desktop\n      if (!this.media.isDesktop) return;\n      this.offsetListener = () => this.handleOffsetChange.bind(this)(element);\n\n      // run the first time manually\n      this.offsetListener();\n\n      // on div resize\n      this.resizeObserver = new ResizeObserver(this.offsetListener);\n      this.resizeObserver.observe(element);\n\n      // on window resize\n      (0, _jquery.default)(window).on('resize', this.offsetListener);\n      // on scroll div scroll\n      (0, _jquery.default)(this.args.scrollDivClass).on('scroll', this.offsetListener);\n    }\n    onWillDestroy() {\n      if (this.onClickListener) document.removeEventListener('click', this.onClickListener);\n      this.direction = null;\n      this.resizeObserver?.disconnect();\n      (0, _jquery.default)(window).off('resize', this.offsetListener);\n      (0, _jquery.default)(this.args.scrollDivClass).off('scroll', this.offsetListener);\n    }\n    onClick(event, element) {\n      const isFocusedWithin = event.composedPath()?.includes(element);\n      if (!isFocusedWithin) this.args.onClose();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"onClickListener\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"direction\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"media\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onDidInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDidInsert\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onWillDestroy\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onWillDestroy\"), _class.prototype), _class));\n});","define(\"portal/components/power-calendar-multiple\", [\"exports\", \"ember-power-calendar/components/power-calendar-multiple\"], function (_exports, _powerCalendarMultiple) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerCalendarMultiple.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/components/power-calendar-multiple\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-calendar-multiple/days\", [\"exports\", \"ember-power-calendar/components/power-calendar-multiple/days\"], function (_exports, _days) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _days.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/components/power-calendar-multiple/days\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-calendar-range\", [\"exports\", \"ember-power-calendar/components/power-calendar-range\"], function (_exports, _powerCalendarRange) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerCalendarRange.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/components/power-calendar-range\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-calendar-range/days\", [\"exports\", \"ember-power-calendar/components/power-calendar-range/days\"], function (_exports, _days) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _days.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/components/power-calendar-range/days\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-calendar\", [\"exports\", \"ember-power-calendar/components/power-calendar\"], function (_exports, _powerCalendar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerCalendar.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/components/power-calendar\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-calendar/days\", [\"exports\", \"ember-power-calendar/components/power-calendar/days\"], function (_exports, _days) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _days.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/components/power-calendar/days\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-calendar/nav\", [\"exports\", \"ember-power-calendar/components/power-calendar/nav\"], function (_exports, _nav) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _nav.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/components/power-calendar/nav\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select-after-options-button\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @isLoading}}\n    <div class='d-flex align-items-center'>\n      <div class='spinner-border spinner-border-sm'></div>&nbsp;{{or\n        @loadingText\n        'Syncing'\n      }}&hellip;\n    </div>\n  {{else}}\n    <button\n      type='button'\n      data-test-after-options-button\n      class='power-select-after-options-button__button\n        {{if @isLoading \"power-select-after-options-button__button--loading\"}}'\n      {{on 'click' @onClick}}\n    >\n      <FaIcon @icon={{@icon}} />&nbsp;{{@text}}\n    </button>\n  {{/if}}\n  */\n  {\n    \"id\": \"hLVVBXnV\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\" \\\"],[1,[28,[35,2],[[30,2],\\\"Syncing\\\"],null]],[1,\\\"…\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[11,\\\"button\\\"],[24,\\\"data-test-after-options-button\\\",\\\"\\\"],[16,0,[29,[\\\"power-select-after-options-button__button\\\\n      \\\",[52,[30,1],\\\"power-select-after-options-button__button--loading\\\"]]]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,3]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[30,4]]],null],[1,\\\" \\\"],[1,[30,5]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@isLoading\\\",\\\"@loadingText\\\",\\\"@onClick\\\",\\\"@icon\\\",\\\"@text\\\"],false,[\\\"if\\\",\\\"div\\\",\\\"or\\\",\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/power-select-after-options-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/power-select-multiple\", [\"exports\", \"ember-power-select/components/power-select-multiple\"], function (_exports, _powerSelectMultiple) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerSelectMultiple.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select-multiple\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select-multiple/input\", [\"exports\", \"ember-power-select/components/power-select-multiple/input\"], function (_exports, _input) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _input.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select-multiple/input\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select-multiple/trigger\", [\"exports\", \"ember-power-select/components/power-select-multiple/trigger\"], function (_exports, _trigger) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _trigger.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select-multiple/trigger\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select\", [\"exports\", \"ember-power-select/components/power-select\"], function (_exports, _powerSelect) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerSelect.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/before-options\", [\"exports\", \"ember-power-select/components/power-select/before-options\"], function (_exports, _beforeOptions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _beforeOptions.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/before-options\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/input\", [\"exports\", \"ember-power-select/components/power-select/input\"], function (_exports, _input) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _input.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/input\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/label\", [\"exports\", \"ember-power-select/components/power-select/label\"], function (_exports, _label) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _label.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/label\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/no-matches-message\", [\"exports\", \"ember-power-select/components/power-select/no-matches-message\"], function (_exports, _noMatchesMessage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _noMatchesMessage.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/no-matches-message\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/options\", [\"exports\", \"ember-power-select/components/power-select/options\"], function (_exports, _options) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _options.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/options\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/placeholder\", [\"exports\", \"ember-power-select/components/power-select/placeholder\"], function (_exports, _placeholder) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _placeholder.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/placeholder\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/power-select-group\", [\"exports\", \"ember-power-select/components/power-select/power-select-group\"], function (_exports, _powerSelectGroup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerSelectGroup.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/power-select-group\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/search-message\", [\"exports\", \"ember-power-select/components/power-select/search-message\"], function (_exports, _searchMessage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _searchMessage.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/search-message\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/power-select/trigger\", [\"exports\", \"ember-power-select/components/power-select/trigger\"], function (_exports, _trigger) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _trigger.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/components/power-select/trigger\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/pricing-page\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _component2, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! template-lint-disable require-iframe-title }}\n  <iframe src={{this.url}} class='buildaprice-frame'>\n  </iframe>\n  */\n  {\n    \"id\": \"6+6rIPQ9\",\n    \"block\": \"[[[10,\\\"iframe\\\"],[15,\\\"src\\\",[30,0,[\\\"url\\\"]]],[14,0,\\\"buildaprice-frame\\\"],[12],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"iframe\\\"]]\",\n    \"moduleName\": \"portal/components/pricing-page.hbs\",\n    \"isStrictMode\": false\n  });\n  const BUILDAPRICE_URL = _environment.default.urls.buildaprice;\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get url() {\n      return `${BUILDAPRICE_URL}/index-lite.jsp;jsessionid=${this.args.sessionId}?path=${encodeURIComponent(this.args.path)}`;\n    }\n  });\n});","define(\"portal/components/pricing-quote-uploader\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <button\n    type='button'\n    class='pricing-quote-uploader__upload-file-button'\n    {{on 'click' this.onManualUploadClick}}\n  >\n    <FaIcon @icon='upload' />&nbsp;Upload new file (&lt; 2 MB)\n  </button>\n  */\n  {\n    \"id\": \"dOjgPkal\",\n    \"block\": \"[[[11,\\\"button\\\"],[24,0,\\\"pricing-quote-uploader__upload-file-button\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"onManualUploadClick\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\" Upload new file (< 2 MB)\\\\n\\\"],[13]],[],false,[\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/pricing-quote-uploader.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    async onManualUploadClick() {\n      const input = document.createElement('input');\n      input.type = 'file';\n      input.accept = this.args.fileFormats;\n      input.onchange = this.onManualFileUpload;\n      input.click();\n    }\n    async onManualFileUpload(event) {\n      try {\n        const file = event.target.files[0];\n        this.args.onFileUpload(file);\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('components.pricing-quote-uploader.somethingWentWrongWhileUploadingFile'),\n          error\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onManualUploadClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onManualUploadClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onManualFileUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onManualFileUpload\"), _class.prototype), _class));\n});","define(\"portal/components/product-editor\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"ember-changeset\", \"@ember/service\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _emberChangeset, _service, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content w-auto'\n    @overlayClass='modal'\n    @translucentOverlay={{true}}\n    @onClose={{@onClose}}\n  >\n  \n    {{#if this.initComponent.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='modal-body'>\n        <form data-test-edit-product-form>\n          {{#if this.isSelectingFromExistingProducts}}\n            <NewComboBox\n              @isLoading={{or\n                this.loadMoreProducts.isRunning\n                this.onSearchProduct.isRunning\n              }}\n              @list={{this.productList}}\n              @noDataMessage={{t 'shared.product.No products'}}\n              @onSelect={{this.setProduct}}\n              @onSearch={{this.onSearchProduct}}\n              @debounce={{this.debounceTime}}\n              @label={{t 'common.Product'}}\n              @key='description'\n              @customDescription='supplierName'\n              @model={{this.productChangeSet}}\n              @hasNextPage={{this.hasNextProductPage}}\n              @pageSize={{this.recordPageSize}}\n              @onLoadMore={{this.loadMoreProducts}}\n              @disabled={{@onSaveProduct.isRunning}}\n              @forceValidationVisible={{gt @onSaveProduct.performCount 0}}\n            />\n          {{else}}\n            <PtlInput\n              @type='text'\n              @label={{t 'common.Product'}}\n              @key='description'\n              @model={{this.productChangeSet}}\n              disabled={{@onSaveProduct.isRunning}}\n              @forceValidationVisible={{gt @onSaveProduct.performCount 0}}\n            />\n          {{/if}}\n          <NewComboBox\n            @isLoading={{or\n              this.loadMoreSupplier.isRunning\n              this.getSuppliers.isRunning\n            }}\n            @list={{this.supplierList}}\n            @noDataMessage={{t 'common.No suppliers'}}\n            @onSelect={{this.setSupplier}}\n            @onSearch={{this.onSearchSupplier}}\n            @debounce={{this.debounceTime}}\n            @label={{t 'common.Supplier'}}\n            @key='supplierName'\n            @model={{this.productChangeSet}}\n            @hasNextPage={{this.hasNextSupplierPage}}\n            @pageSize={{this.recordPageSize}}\n            @onLoadMore={{this.loadMoreSupplier}}\n            @disabled={{@onSaveProduct.isRunning}}\n          />\n          {{#if this.isSelectingFromExistingProducts}}\n            <NewComboBox\n              @isLoading={{or this.loadMoreSku.isRunning this.getSku.isRunning}}\n              @list={{this.skuList}}\n              @noDataMessage={{t 'components.product-editor.No sku'}}\n              @onSelect={{this.setProduct}}\n              @onSearch={{this.onSearchSku}}\n              @debounce={{this.debounceTime}}\n              @label={{t 'common.SKU'}}\n              @key='sku'\n              @model={{this.productChangeSet}}\n              @hasNextPage={{this.hasNextSkuPage}}\n              @pageSize={{this.recordPageSize}}\n              @onLoadMore={{this.loadMoreSku}}\n              @disabled={{@onSaveProduct.isRunning}}\n            />\n          {{else}}\n            <PtlInput\n              @type='text'\n              @label={{t 'common.SKU'}}\n              @key='sku'\n              @model={{this.productChangeSet}}\n              disabled={{@onSaveProduct.isRunning}}\n              @forceValidationVisible={{gt @onSaveProduct.performCount 0}}\n            />\n          {{/if}}\n          <NewComboBox\n            @isLoading={{false}}\n            @list={{this.unitList}}\n            @noDataMessage={{t 'components.product-editor.No units'}}\n            @onSelect={{this.setUnit}}\n            @onSearch={{this.onSearchUnit}}\n            @label={{t 'common.Unit'}}\n            @key='unit'\n            @model={{this.productChangeSet}}\n            @hasNextPage={{this.hasNextUnitPage}}\n            @pageSize={{this.unitPageSize}}\n            @disabled={{@onSaveProduct.isRunning}}\n          />\n          {{#if (and this.isSelectingFromExistingProducts this.priceList.length)}}\n            <div class='product-editor__price-table-container'>\n              <table\n                class='table table-sm table-bordered product-editor__price-table'\n              >\n                <thead class='product-editor__price-table-thead'>\n                  <tr>\n                    <th>{{t 'common.Source'}}</th>\n                    <th>{{t 'common.Supplier'}}</th>\n                    <th class='text-right'>{{t 'common.Unit price'}}</th>\n                    <th></th>\n                  </tr>\n                </thead>\n                <tbody>\n                  {{#each this.priceList as |price|}}\n                    <tr>\n                      <td class='text-left align-middle'>{{price.source}}</td>\n                      <td class='text-left align-middle'>{{price.supplier}}</td>\n                      <td class='text-right align-middle'>\n                        {{number-format\n                          price.price\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-center align-middle'>\n                        <button\n                          type='button'\n                          class='btn btn-link p-0'\n                          {{on 'click' (fn this.setPrice price)}}\n                        >\n                          {{t 'shared.product.Set price'}}\n                        </button>\n                      </td>\n                    </tr>\n                  {{/each}}\n                </tbody>\n              </table>\n            </div>\n          {{/if}}\n          <PtlInput\n            @type='currency'\n            @label={{t 'common.Unit price'}}\n            @key='unitPrice'\n            @model={{this.productChangeSet}}\n            disabled={{@onSaveProduct.isRunning}}\n          />\n        </form>\n      </div>\n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            data-test-new-product-close-button\n            disabled={{@onSaveProduct.isRunning}}\n            {{on 'click' @onClose}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{@onSaveProduct.isRunning}}\n            {{on 'click' (perform @onSaveProduct this.productChangeSet)}}\n          >\n            {{#if @onSaveProduct.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{if\n                @isCreateProduct\n                (t 'common.Creating')\n                (t 'common.Saving')\n              }}\n            {{else}}\n              {{if @isCreateProduct (t 'common.Create') (t 'common.Save')}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    {{/if}}\n  </ModalDialog>\n  */\n  {\n    \"id\": \"zOyWr9SX\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"initComponent\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"form\\\"],[14,\\\"data-test-edit-product-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isSelectingFromExistingProducts\\\"]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@customDescription\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@pageSize\\\",\\\"@onLoadMore\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[28,[37,6],[[30,0,[\\\"loadMoreProducts\\\",\\\"isRunning\\\"]],[30,0,[\\\"onSearchProduct\\\",\\\"isRunning\\\"]]],null],[30,0,[\\\"productList\\\"]],[28,[37,7],[\\\"shared.product.No products\\\"],null],[30,0,[\\\"setProduct\\\"]],[30,0,[\\\"onSearchProduct\\\"]],[30,0,[\\\"debounceTime\\\"]],[28,[37,7],[\\\"common.Product\\\"],null],\\\"description\\\",\\\"supplierName\\\",[30,0,[\\\"productChangeSet\\\"]],[30,0,[\\\"hasNextProductPage\\\"]],[30,0,[\\\"recordPageSize\\\"]],[30,0,[\\\"loadMoreProducts\\\"]],[30,2,[\\\"isRunning\\\"]],[28,[37,8],[[30,2,[\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,9],[[16,\\\"disabled\\\",[30,2,[\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,7],[\\\"common.Product\\\"],null],\\\"description\\\",[30,0,[\\\"productChangeSet\\\"]],[28,[37,8],[[30,2,[\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[8,[39,5],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@pageSize\\\",\\\"@onLoadMore\\\",\\\"@disabled\\\"],[[28,[37,6],[[30,0,[\\\"loadMoreSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"getSuppliers\\\",\\\"isRunning\\\"]]],null],[30,0,[\\\"supplierList\\\"]],[28,[37,7],[\\\"common.No suppliers\\\"],null],[30,0,[\\\"setSupplier\\\"]],[30,0,[\\\"onSearchSupplier\\\"]],[30,0,[\\\"debounceTime\\\"]],[28,[37,7],[\\\"common.Supplier\\\"],null],\\\"supplierName\\\",[30,0,[\\\"productChangeSet\\\"]],[30,0,[\\\"hasNextSupplierPage\\\"]],[30,0,[\\\"recordPageSize\\\"]],[30,0,[\\\"loadMoreSupplier\\\"]],[30,2,[\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isSelectingFromExistingProducts\\\"]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@pageSize\\\",\\\"@onLoadMore\\\",\\\"@disabled\\\"],[[28,[37,6],[[30,0,[\\\"loadMoreSku\\\",\\\"isRunning\\\"]],[30,0,[\\\"getSku\\\",\\\"isRunning\\\"]]],null],[30,0,[\\\"skuList\\\"]],[28,[37,7],[\\\"components.product-editor.No sku\\\"],null],[30,0,[\\\"setProduct\\\"]],[30,0,[\\\"onSearchSku\\\"]],[30,0,[\\\"debounceTime\\\"]],[28,[37,7],[\\\"common.SKU\\\"],null],\\\"sku\\\",[30,0,[\\\"productChangeSet\\\"]],[30,0,[\\\"hasNextSkuPage\\\"]],[30,0,[\\\"recordPageSize\\\"]],[30,0,[\\\"loadMoreSku\\\"]],[30,2,[\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,9],[[16,\\\"disabled\\\",[30,2,[\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,7],[\\\"common.SKU\\\"],null],\\\"sku\\\",[30,0,[\\\"productChangeSet\\\"]],[28,[37,8],[[30,2,[\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[8,[39,5],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@pageSize\\\",\\\"@disabled\\\"],[false,[30,0,[\\\"unitList\\\"]],[28,[37,7],[\\\"components.product-editor.No units\\\"],null],[30,0,[\\\"setUnit\\\"]],[30,0,[\\\"onSearchUnit\\\"]],[28,[37,7],[\\\"common.Unit\\\"],null],\\\"unit\\\",[30,0,[\\\"productChangeSet\\\"]],[30,0,[\\\"hasNextUnitPage\\\"]],[30,0,[\\\"unitPageSize\\\"]],[30,2,[\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"isSelectingFromExistingProducts\\\"]],[30,0,[\\\"priceList\\\",\\\"length\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"product-editor__price-table-container\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm table-bordered product-editor__price-table\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"thead\\\"],[14,0,\\\"product-editor__price-table-thead\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Source\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Supplier\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,7],[\\\"common.Unit price\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"priceList\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-left align-middle\\\"],[12],[1,[30,3,[\\\"source\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-left align-middle\\\"],[12],[1,[30,3,[\\\"supplier\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right align-middle\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,19],[[30,3,[\\\"price\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center align-middle\\\"],[12],[1,\\\"\\\\n                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0\\\"],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[28,[37,22],[[30,0,[\\\"setPrice\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,7],[\\\"shared.product.Set price\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,9],[[16,\\\"disabled\\\",[30,2,[\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"currency\\\",[28,[37,7],[\\\"common.Unit price\\\"],null],\\\"unitPrice\\\",[30,0,[\\\"productChangeSet\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-product-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,2,[\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,2,[\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[28,[37,23],[[30,2],[30,0,[\\\"productChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[52,[30,4],[28,[37,7],[\\\"common.Creating\\\"],null],[28,[37,7],[\\\"common.Saving\\\"],null]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[52,[30,4],[28,[37,7],[\\\"common.Create\\\"],null],[28,[37,7],[\\\"common.Save\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]]]],[\\\"@onClose\\\",\\\"@onSaveProduct\\\",\\\"price\\\",\\\"@isCreateProduct\\\"],false,[\\\"modal-dialog\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"form\\\",\\\"new-combo-box\\\",\\\"or\\\",\\\"t\\\",\\\"gt\\\",\\\"ptl-input\\\",\\\"and\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"number-format\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"perform\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/product-editor.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(owner, args) {\n      super(owner, args);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor, this);\n      _initializerDefineProperty(this, \"priceList\", _descriptor2, this);\n      _initializerDefineProperty(this, \"productChangeSet\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor6, this);\n      _initializerDefineProperty(this, \"product\", _descriptor7, this);\n      _initializerDefineProperty(this, \"unitData\", _descriptor8, this);\n      _initializerDefineProperty(this, \"productList\", _descriptor9, this);\n      _initializerDefineProperty(this, \"unitList\", _descriptor0, this);\n      _initializerDefineProperty(this, \"supplierList\", _descriptor1, this);\n      _initializerDefineProperty(this, \"skuList\", _descriptor10, this);\n      _initializerDefineProperty(this, \"productsCurrentPage\", _descriptor11, this);\n      _initializerDefineProperty(this, \"skuCurrentPage\", _descriptor12, this);\n      _initializerDefineProperty(this, \"suppliersCurrentPage\", _descriptor13, this);\n      _initializerDefineProperty(this, \"unitsCurrentPage\", _descriptor14, this);\n      _initializerDefineProperty(this, \"hasNextProductPage\", _descriptor15, this);\n      _initializerDefineProperty(this, \"hasNextSkuPage\", _descriptor16, this);\n      _initializerDefineProperty(this, \"hasNextSupplierPage\", _descriptor17, this);\n      _initializerDefineProperty(this, \"hasNextUnitPage\", _descriptor18, this);\n      _initializerDefineProperty(this, \"productFilter\", _descriptor19, this);\n      _initializerDefineProperty(this, \"skuFilter\", _descriptor20, this);\n      _initializerDefineProperty(this, \"supplierFilter\", _descriptor21, this);\n      _defineProperty(this, \"recordPageSize\", 10);\n      _defineProperty(this, \"unitPageSize\", 100);\n      _defineProperty(this, \"debounceTime\", _environment.default.debounceTimeMs);\n      _defineProperty(this, \"validateLength\", newValue => {\n        return newValue && newValue.length > 0 || this.intl.t('validation.Please provide a product name');\n      });\n      _defineProperty(this, \"productValidator\", ({\n        key,\n        newValue\n      }) => {\n        switch (key) {\n          case 'description':\n            return this.validateLength(newValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"validationMap\", {\n        description: this.validateLength\n      });\n      _defineProperty(this, \"initComponent\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.args.productId) {\n            switch (this.args.productTable) {\n              case 'task-product':\n                this.product = yield this.store.createRecord(this.args.productTable, {\n                  quantity: 1,\n                  task: this.args.target,\n                  entity: this.args.entity\n                });\n                break;\n              case 'project-product':\n                this.product = yield this.store.createRecord(this.args.productTable, {\n                  quantity: 1,\n                  project: this.args.target,\n                  entity: this.args.entity\n                });\n                break;\n              case 'entity-product':\n                this.product = yield this.store.createRecord(this.args.productTable, {\n                  quantity: 1,\n                  entity: this.args.target\n                });\n                break;\n            }\n            this.priceList = [];\n          } else {\n            this.product = yield this.store.findRecord(this.args.productTable, this.args.productId);\n            if (this.isSelectingFromExistingProducts) yield this.getProductPrices.perform(true);\n          }\n          this.unitData = yield this.portalApiV2.authGet('/product-units');\n          this.totalUnits = this.unitData.pagination.totalRecords;\n          this.unitList = this.unitData.data;\n          this.productChangeSet = (0, _emberChangeset.Changeset)(this.product, this.productValidator, this.validationMap);\n        }\n      }), null, \"initComponent\", null));\n      _defineProperty(this, \"loadMoreProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const productList = yield this.portalApiV2.authGet('/search-products', {\n              filter: this.productFilter,\n              pageSize: this.recordPageSize,\n              page: this.productsCurrentPage + 1\n            });\n            if (!productList.data?.length) {\n              this.hasNextProductPage = false;\n              return;\n            }\n            this.productsCurrentPage = productList.pagination.currentPage;\n            this.hasNextProductPage = productList.pagination.hasNextPage;\n            this.productList = [...this.productList, ...productList.data];\n          } catch (error) {\n            this.hasNextProductPage = false;\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreProducts'),\n              error\n            });\n          }\n        }\n      }), null, \"loadMoreProducts\", null));\n      _defineProperty(this, \"loadMoreSku\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const skuList = yield this.portalApiV2.authGet('/search-products', {\n              filter: this.skuFilter,\n              pageSize: this.recordPageSize,\n              page: this.skuCurrentPage + 1\n            });\n            if (!skuList.data?.length) {\n              this.hasNextSkuPage = false;\n              return;\n            }\n            this.skuCurrentPage = skuList.pagination.currentPage;\n            this.hasNextSkuPage = skuList.pagination.hasNextPage;\n            this.skuList = [...this.skuList, ...skuList.data];\n          } catch (error) {\n            this.hasNextSkuPage = false;\n            this.notifications.error({\n              message: this.intl.t('components.product-editor.Something went wrong loading more SKUs'),\n              error\n            });\n          }\n        }\n      }), null, \"loadMoreSku\", null));\n      _defineProperty(this, \"loadMoreSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const supplierList = yield this.portalApiV2.authGet('/search-suppliers', {\n              filter: this.supplierFilter,\n              pageSize: this.recordPageSize,\n              page: this.suppliersCurrentPage + 1,\n              orderBy: 'name',\n              orderByDirection: 'desc'\n            });\n            if (!supplierList.data?.length) {\n              this.hasNextSupplierPage = false;\n              return;\n            }\n            this.suppliersCurrentPage = supplierList.pagination.currentPage;\n            this.hasNextSupplierPage = supplierList.pagination.hasNextPage;\n            this.supplierList = [...this.supplierList, ...supplierList.data];\n          } catch (error) {\n            this.hasNextSupplierPage = false;\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreSuppliers'),\n              error\n            });\n          }\n        }\n      }), null, \"loadMoreSupplier\", null));\n      _defineProperty(this, \"onSearchProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          if (searchTerm.length) {\n            this.productFilter.or = [{\n              field: 'description',\n              operator: 'ILIKE',\n              value: searchTerm\n            }];\n          } else {\n            this.productFilter.or = [];\n          }\n          const productList = yield this.portalApiV2.authGet('/search-products', {\n            filter: this.productFilter,\n            pageSize: this.recordPageSize,\n            page: 1\n          });\n          this.productsCurrentPage = productList.pagination.currentPage;\n          this.hasNextProductPage = productList.pagination.hasNextPage;\n          this.productList = productList.data;\n        }\n      }), null, \"onSearchProduct\", null));\n      _defineProperty(this, \"onSaveProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (productChangeSet) {\n          yield productChangeSet.validate();\n          if (!productChangeSet.isValid) {\n            this.notifications.warning(productChangeSet.error.description.validation);\n            return;\n          }\n          this.args.onSaveProduct.perform(productChangeSet);\n        }\n      }), null, \"onSaveProduct\", null));\n      _defineProperty(this, \"onSearchSku\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          if (searchTerm.length) {\n            this.skuFilter.or = [{\n              field: 'sku',\n              operator: 'ILIKE',\n              value: searchTerm\n            }];\n          } else {\n            this.skuFilter.or = [];\n          }\n          yield this.getSku.perform(this.skuFilter);\n        }\n      }), null, \"onSearchSku\", null));\n      _defineProperty(this, \"getSku\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter) {\n          const skuList = yield this.portalApiV2.authGet('/search-products', {\n            filter,\n            pageSize: this.recordPageSize,\n            page: 1\n          });\n          this.skuCurrentPage = skuList.pagination.currentPage;\n          this.hasNextSkuPage = skuList.pagination.hasNextPage;\n          this.skuList = skuList.data;\n        }\n      }), null, \"getSku\", null));\n      _defineProperty(this, \"onSearchSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          if (searchTerm.length) {\n            this.supplierFilter.or = [{\n              field: 'name',\n              operator: 'ILIKE',\n              value: searchTerm\n            }];\n          } else {\n            this.supplierFilter.or = [];\n          }\n          yield this.getSuppliers.perform(this.supplierFilter);\n        }\n      }), null, \"onSearchSupplier\", null));\n      _defineProperty(this, \"getSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter) {\n          const suppliers = yield this.portalApiV2.authGet('/search-suppliers', {\n            filter,\n            pageSize: this.recordPageSize,\n            page: 1,\n            orderBy: 'name',\n            orderByDirection: 'desc'\n          });\n          this.suppliersCurrentPage = suppliers.pagination.currentPage;\n          this.hasNextSupplierPage = suppliers.pagination.hasNextPage;\n          this.supplierList = suppliers.data;\n        }\n      }), null, \"getSuppliers\", null));\n      _defineProperty(this, \"onSearchUnit\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          this.unitList = this.unitData.data.filter(u => {\n            const matchString = `${u.unit}`.replace(/\\s/g, '').toLowerCase();\n            return matchString.includes(searchTerm.replace(/\\s/g, '').toLowerCase());\n          });\n        }\n      }), null, \"onSearchUnit\", null));\n      _defineProperty(this, \"getProductPrices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (fromInit) {\n          const filter = {\n            and: [{\n              field: 'entity',\n              operator: 'EQ',\n              value: this.args.entity.id\n            }, {\n              field: 'project',\n              operator: 'EQ',\n              value: this.args.target.project.get('id')\n            }, {\n              field: 'description',\n              operator: 'EQ',\n              value: this.product.description\n            }]\n          };\n          if (this.product.supplierName) filter.and.push({\n            field: 'supplierName',\n            operator: 'EQ',\n            value: this.product.supplierName\n          });\n          if (this.product.unit) filter.and.push({\n            field: 'unit',\n            operator: 'EQ',\n            value: this.product.unit\n          });\n          if (this.product.sku) filter.and.push({\n            field: 'sku',\n            operator: 'EQ',\n            value: this.product.sku\n          });\n          const prices = yield this.portalApiV2.authGet('/search-products', {\n            filter\n          });\n          this.priceList = prices.data.filter(p => (p.unit !== this.product.unit || p.supplierName !== this.product.supplierName || p.unitPrice !== this.product.unitPrice || !p.source.includes('Task')) && p.unitPrice > 0).map(p => {\n            return {\n              supplier: p.supplierName ?? this.intl.t('common.No suppliers'),\n              price: p.unitPrice,\n              source: p.source\n            };\n          });\n          if (!fromInit) {\n            const price = this.product.unitPrice || this.priceList[0]?.price || 0;\n            this.productChangeSet.set('unitPrice', price);\n          }\n        }\n      }), null, \"getProductPrices\", null));\n      this.initComponent.perform();\n    }\n    setProduct(product) {\n      this.productChangeSet.set('description', product.description);\n      this.productChangeSet.set('sku', product.sku);\n      this.productChangeSet.set('supplierName', product.supplierName);\n      this.productChangeSet.set('unit', product.unit);\n      this.product = product;\n      this.getProductPrices.perform();\n    }\n    setSupplier(value) {\n      this.productChangeSet.set('supplierName', value.supplierName);\n    }\n    setUnit(unit) {\n      this.productChangeSet.set('unit', unit.unit);\n    }\n    setPrice(value) {\n      if (value.supplier !== 'No supplier') this.productChangeSet.set('supplierName', value.supplier);\n      this.productChangeSet.set('unitPrice', value.price);\n    }\n    get isSelectingFromExistingProducts() {\n      return this.args.productTable === 'task-product' || !this.args.productId;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"priceList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"productChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"product\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"unitData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"productList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"unitList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"supplierList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"skuList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"productsCurrentPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"skuCurrentPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"suppliersCurrentPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"unitsCurrentPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"hasNextProductPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"hasNextSkuPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"hasNextSupplierPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"hasNextUnitPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"productFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {\n        and: [{\n          field: 'entity',\n          operator: 'EQ',\n          value: this.args.entity.id\n        }]\n      };\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"skuFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {\n        and: [{\n          field: 'entity',\n          operator: 'EQ',\n          value: this.args.entity.id\n        }]\n      };\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"supplierFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {\n        and: [{\n          field: 'entity',\n          operator: 'EQ',\n          value: this.args.entity.id\n        }]\n      };\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setProduct\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setSupplier\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setUnit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setUnit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setPrice\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setPrice\"), _class.prototype), _class));\n});","define(\"portal/components/product-selector\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"ember-concurrency\", \"@glimmer/tracking\", \"@ember/service\", \"ember-changeset\", \"portal/config/environment\", \"portal/utils/search-filter\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _emberConcurrency, _tracking, _service, _emberChangeset, _environment, _searchFilter, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-changeset\",0,\"portal/config/environment\",0,\"portal/utils/search-filter\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content w-75 product-selector__modal-container'\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{@onClose}}\n  >\n    <div {{did-insert (perform this.initComponent)}} hidden></div>\n    {{#if this.initComponent.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='modal-body product-selector__content'>\n        <div class='row mb-4'>\n          <div class='col'>\n            <label class='mb-1'>\n              {{t 'shared.product.Search products'}}\n            </label>\n            <Input\n              class='form-control'\n              @type='text'\n              {{on 'input' (perform this.onChangeSearchTerm)}}\n              autocomplete='off'\n              disabled={{this.isAddingProduct}}\n            />\n          </div>\n          <div class='col'>\n            <span>\n              <label class='mb-1'>{{t\n                  'shared.product.Filter by supplier'\n                }}</label>\n              <SearchSelector\n                @disabled={{this.isAddingProduct}}\n                @noDataMessage={{t 'common.No suppliers'}}\n                @key='supplier'\n                @optionKeys={{array 'supplierName'}}\n                @model={{this.supplierChangeSet}}\n                @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n                @onSelect={{this.setSupplier}}\n                @onLoad={{this.loadSuppliers}}\n              />\n            </span>\n          </div>\n        </div>\n        <div class='d-flex mb-2 align-items-center'>\n          <div class='ms-auto'>{{t 'shared.product.canNotFindTheProduct'}}\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap m-1'\n              {{on 'click' @onCreateProduct}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Create new'}}\n            </button>\n          </div>\n        </div>\n        <div class='product-selector__table-container'>\n          <PaginationTable\n            @tableHeader={{this.productHeader}}\n            @tableData={{this.productTableData}}\n            @noDataText={{t 'common.No data'}}\n            @pageSizes={{this.pageSizes}}\n            @pageSize={{this.pageSize}}\n            @pageIndex={{this.pageIndex}}\n            @onChangePageIndex={{this.onChangePageIndex}}\n            @onChangePageSize={{this.onChangePageSize}}\n            @isLoading={{this.getProducts.isRunning}}\n            @hasNextPage={{this.hasNextProductPage}}\n            @class='table-bordered'\n          />\n        </div>\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            data-test-new-product-close-button\n            disabled={{false}}\n            {{on 'click' @onClose}}\n          >{{t 'common.Close'}}</button>\n        </div>\n      </div>\n    {{/if}}\n  </ModalDialog>\n  */\n  {\n    \"id\": \"RG+SIKfz\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[\\\"modal-content w-75 product-selector__modal-container\\\",true,\\\"modal\\\",[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,2],[[28,[37,3],[[30,0,[\\\"initComponent\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"initComponent\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"modal-body product-selector__content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row mb-4\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"shared.product.Search products\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,8],[[24,0,\\\"form-control\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isAddingProduct\\\"]]],[4,[38,9],[\\\"input\\\",[28,[37,3],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\"],[\\\"text\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,7],[\\\"shared.product.Filter by supplier\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@disabled\\\",\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onSelect\\\",\\\"@onLoad\\\"],[[30,0,[\\\"isAddingProduct\\\"]],[28,[37,7],[\\\"common.No suppliers\\\"],null],\\\"supplier\\\",[28,[37,12],[\\\"supplierName\\\"],null],[30,0,[\\\"supplierChangeSet\\\"]],[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"setSupplier\\\"]],[30,0,[\\\"loadSuppliers\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex mb-2 align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,[28,[35,7],[\\\"shared.product.canNotFindTheProduct\\\"],null]],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,2]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Create new\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"product-selector__table-container\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@isLoading\\\",\\\"@hasNextPage\\\",\\\"@class\\\"],[[30,0,[\\\"productHeader\\\"]],[30,0,[\\\"productTableData\\\"]],[28,[37,7],[\\\"common.No data\\\"],null],[30,0,[\\\"pageSizes\\\"]],[30,0,[\\\"pageSize\\\"]],[30,0,[\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"getProducts\\\",\\\"isRunning\\\"]],[30,0,[\\\"hasNextProductPage\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-product-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",false],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,7],[\\\"common.Close\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]]]],[\\\"@onClose\\\",\\\"@onCreateProduct\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"label\\\",\\\"t\\\",\\\"input\\\",\\\"on\\\",\\\"span\\\",\\\"search-selector\\\",\\\"array\\\",\\\"gt\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"pagination-table\\\"]]\",\n    \"moduleName\": \"portal/components/product-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"pageIndex\", _descriptor7, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor8, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor9, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor0, this);\n      _initializerDefineProperty(this, \"hasNextProductPage\", _descriptor1, this);\n      _defineProperty(this, \"products\", []);\n      _defineProperty(this, \"pageSizes\", [10, 25, 50]);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor10, this);\n      _defineProperty(this, \"recordPageSize\", 10);\n      _initializerDefineProperty(this, \"supplierChangeSet\", _descriptor11, this);\n      _defineProperty(this, \"suppliers\", []);\n      _defineProperty(this, \"suppliersPage\", void 0);\n      _defineProperty(this, \"suppliersSearchTerm\", void 0);\n      _defineProperty(this, \"initComponent\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.supplierChangeSet = (0, _emberChangeset.Changeset)({\n            supplier: null\n          });\n          yield this.getProducts.perform();\n        }\n      }), null, \"initComponent\", null));\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          yield (0, _emberConcurrency.timeout)(_environment.default.debounceTimeMs);\n          this.searchTerm = e.target.value.trim();\n          this.pageIndex = 1;\n          yield this.getProducts.perform();\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"getProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let orFilters = [];\n          let andFilters = [{\n            field: 'entity',\n            operator: 'EQ',\n            value: this.sessionData.entity.id\n          }];\n          if (this.searchTerm.length) {\n            orFilters = [{\n              field: 'sku',\n              operator: 'ILIKE',\n              value: this.searchTerm\n            }, {\n              field: 'description',\n              operator: 'ILIKE',\n              value: this.searchTerm\n            }];\n          }\n          if (this.supplierChangeSet.get('supplier')?.supplierName) {\n            andFilters.push({\n              field: 'supplierName',\n              operator: 'EQ',\n              value: this.supplierChangeSet.get('supplier').supplierName\n            });\n          }\n          const filters = {\n            and: andFilters,\n            or: orFilters\n          };\n          let orderBy;\n          switch (this.sortBy) {\n            case 'Product':\n              orderBy = 'description';\n              break;\n            case 'Supplier':\n              orderBy = 'supplierName';\n              break;\n            case 'SKU':\n              orderBy = 'sku';\n              break;\n            case 'Unit':\n              orderBy = 'unit';\n              break;\n            case 'Unit price':\n              orderBy = 'unitPrice';\n              break;\n            default:\n              break;\n          }\n          const products = yield this.portalApiV2.authGet('/search-products', {\n            filter: filters,\n            orderBy: orderBy || 'description',\n            orderByDirection: this.sortDirection || 'asc',\n            pageSize: this.pageSize,\n            page: this.pageIndex\n          });\n          this.hasNextProductPage = products.pagination.hasNextPage;\n          this.products = products.data;\n        }\n      }), null, \"getProducts\", null));\n      _defineProperty(this, \"loadSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.suppliersSearchTerm) {\n              this.suppliersPage = undefined;\n              this.suppliers = [];\n              this.suppliersSearchTerm = searchTerm;\n            }\n            const supplierFilter = {\n              and: [{\n                field: 'entity',\n                operator: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) {\n              supplierFilter.and.push((0, _searchFilter.default)(['name'], searchTerm, 'operator'));\n            }\n            const nextPageNumber = (this.suppliersPage?.currentPage || 0) + 1;\n            const nextPage = yield this.portalApiV2.authGet('/search-suppliers', {\n              filter: supplierFilter,\n              orderBy: 'name',\n              orderByDirection: 'desc',\n              pageSize: this.recordPageSize,\n              page: nextPageNumber\n            });\n            this.suppliersPage = nextPage.pagination;\n            this.suppliers = [...this.suppliers, ...nextPage.data];\n            return this.suppliers;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreSuppliers'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadSuppliers\", null));\n    }\n    get productHeader() {\n      return [{\n        value: this.intl.t('common.Product'),\n        iconName: this.sortBy === 'Product' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Supplier'),\n        iconName: this.sortBy === 'Supplier' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.SKU'),\n        iconName: this.sortBy === 'SKU' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit'),\n        iconName: this.sortBy === 'Unit' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }];\n    }\n    onAddProduct(row) {\n      if (this.isAddingProduct) return;\n      this.args.onAddProduct.perform({\n        description: row[0].value,\n        supplierName: row[1].value,\n        sku: row[2].value,\n        unit: row[3].value,\n        unitPrice: row[4].value ? Number(row[4].value.replace(/[^0-9.-]+/g, '')) : null,\n        quantity: 1\n      });\n    }\n    get isAddingProduct() {\n      return this.args.onAddProduct.isRunning;\n    }\n    get productTableData() {\n      if (this.getProducts.isRunning) return [];\n      return this.products.map(product => {\n        const productData = [{\n          colClass: 'align-middle',\n          value: product.description\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.supplierName\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.sku\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.unit\n        }, {\n          colClass: 'text-right align-middle',\n          value: this.numberFormat.format(product.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          })\n        }];\n        return {\n          rowClass: 'product-selector__table-row',\n          rowData: productData,\n          onClickRow: this.onAddProduct\n        };\n      });\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n      this.getProducts.perform();\n    }\n    onChangePageIndex(pageIndex) {\n      this.pageIndex = pageIndex;\n      this.getProducts.perform();\n    }\n    sortColumn(_row, col) {\n      if (this.sortBy !== col.value) {\n        this.sortBy = col.value;\n        this.sortDirection = 'asc';\n      } else {\n        this.sortBy = col.value;\n        if (this.sortDirection === 'asc') {\n          this.sortDirection = 'desc';\n        } else if (this.sortDirection === 'desc') {\n          this.sortDirection = undefined;\n        } else {\n          this.sortDirection = 'asc';\n        }\n      }\n      this.getProducts.perform();\n    }\n    setSupplier(value) {\n      this.supplierChangeSet.set('supplier', value);\n      this.getProducts.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"pageIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"hasNextProductPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.pageSizes[0];\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"supplierChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _emberChangeset.Changeset)({\n        supplier: null\n      });\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onAddProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAddProduct\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePageSize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePageIndex\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"sortColumn\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setSupplier\"), _class.prototype), _class));\n});","define(\"portal/components/products-uploader\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"string-similarity\", \"csv-parse/browser/esm\", \"portal/utils/parse-currency-string\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _tracking, _service, _object, _stringSimilarity, _esm, _parseCurrencyString, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _class2, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"string-similarity\",0,\"ember-concurrency\",0,\"csv-parse/browser/esm\",0,\"portal/utils/parse-currency-string\",0,\"portal/config/environment\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content w-auto'\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{@onClose}}\n  >\n    <div class='modal-header'>\n      <h3 class='mb-1'>{{t 'shared.product.Add products from a file'}}</h3>\n    </div>\n  \n    <div\n      class='modal-body overflow-auto'\n      id='takeoff-uploader-modal'\n      style='max-width: 95vw;'\n    >\n      {{#if this.takeoff}}\n        <NewComboBox\n          class='w-50'\n          @isLoading={{or\n            this.loadMoreSupplier.isRunning\n            this.getSuppliers.isRunning\n          }}\n          @list={{this.supplierList}}\n          @noDataMessage={{t 'common.No suppliers'}}\n          @onSelect={{this.setSupplier}}\n          @onSearch={{this.onSearchSupplier}}\n          @debounce={{this.debounceTime}}\n          @label={{t 'common.Supplier'}}\n          @key='supplierName'\n          @model={{this.supplierChangeSet}}\n          @hasNextPage={{this.hasNextSupplierPage}}\n          @pageSize={{this.recordPageSize}}\n          @onLoadMore={{this.loadMoreSupplier}}\n          @disabled={{@uploadProducts.isRunning}}\n          @forceValidationVisible={{gt this.uploadProducts.performCount 0}}\n        />\n        <p>{{t 'shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument'}}</p>\n        <div class='overflow-auto'>\n          <div class='table-responsive'>\n            <table class='table table-sm table-bordered'>\n              <thead>\n                <tr>\n                  {{#each this.takeoff.columnTypes as |type index|}}\n                    <th class='text-center align-top'>\n                      <PtlInput\n                        style='min-width: 85px;'\n                        @type='select'\n                        @label={{number-to-char index}}\n                        {{! the key needs to be a string }}\n                        @key={{concat index}}\n                        @options={{this.takeoff.columnTypeOptions}}\n                        @model={{this.takeoff.columnTypeForm}}\n                        @selectNoBlankOption={{true}}\n                        @forceValidationVisible={{gt\n                          this.continue.performCount\n                          0\n                        }}\n                      />\n                    </th>\n                  {{/each}}\n                </tr>\n              </thead>\n              <tbody>\n                {{#each this.takeoff.sampleRows as |columns|}}\n                  <tr>\n                    {{#each columns as |column index|}}\n                      <td\n                        class='no-wrap text-truncate\n                          {{if\n                            (eq\n                              (get this.takeoff.columnTypeForm index)\n                              \"do-not-import\"\n                            )\n                            \"opacity-25\"\n                          }}'\n                        style='max-width: 200px;'\n                        title={{column}}\n                      >{{column}}</td>\n                    {{/each}}\n                  </tr>\n                {{/each}}\n              </tbody>\n            </table>\n          </div>\n        </div>\n        <div class='d-flex justify-content-end p-2'>\n          {{#if this.uploadProducts.isRunning}}\n            <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t\n                'components.products-uploader.Importing products'\n              }}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-secondary me-2'\n              type='button'\n              {{on 'click' this.onClear}}\n            >{{t 'shared.uploader.Upload a different file'}}</button>\n            <button\n              class='btn btn-primary'\n              type='button'\n              {{on 'click' (fn (perform this.uploadProducts))}}\n              disabled={{this.uploadProducts.isRunning}}\n            >{{t 'components.products-uploader.Import products'}}</button>\n          {{/if}}\n        </div>\n      {{else}}\n        <DragAndDropContainer\n          @onUploadComplete={{this.onUpload}}\n          @isDragAndDropVisible={{true}}\n        >\n          <p class='text-center'>\n            {{t\n              'components.products-uploader.uploadYourCsvFileToGenerateProductsFewerThan5000Items'\n            }}\n          </p>\n          <a\n            class='btn btn-link align-self-center mb-3'\n            href='/assets/example-product-file-78b832b3e151d334a38cfb180a17f061.csv'\n            download='example-product-file-78b832b3e151d334a38cfb180a17f061.csv'\n          >\n            <FaIcon @icon='download' />&nbsp;&nbsp;{{t\n              'shared.uploader.Download example file'\n            }}\n          </a>\n        </DragAndDropContainer>\n      {{/if}}\n    </div>\n  \n    <div class='modal-footer'>\n      <button\n        type='button'\n        class='btn btn-secondary'\n        disabled={{this.isLoading}}\n        {{on 'click' @onClose}}\n      >{{t 'common.Cancel'}}</button>\n    </div>\n  </ModalDialog>\n  \n  {{#if this.invalidProductRowIndexes}}\n    <ModalDialog\n      @onClose={{fn (mut this.invalidProductRowIndexes) ''}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'components.products-uploader.theFollowingRowsInYourFileAreInvalidAndWillNotBeImported'\n          }}:\n        </p>\n        <p class='products-uploader__invalid-rows-confirm-modal-row-message'>\n          {{this.invalidProductRowIndexes}}\n        </p>\n      </div>\n      <div class='modal-footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            class='btn btn-primary me-2'\n            type='button'\n            {{on 'click' this.skipNoneDescriptionRowsAndUpload}}\n          >\n            {{t 'components.products-uploader.Import anyway'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-secondary'\n            {{on 'click' (fn (mut this.invalidProductRowIndexes) '')}}\n          >{{t 'common.Cancel'}}</button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"3LnaKxbt\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",true,\\\"modal\\\",[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,3],[\\\"shared.product.Add products from a file\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-body overflow-auto\\\"],[14,1,\\\"takeoff-uploader-modal\\\"],[14,5,\\\"max-width: 95vw;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"takeoff\\\"]],[[[1,\\\"      \\\"],[8,[39,5],[[24,0,\\\"w-50\\\"]],[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@pageSize\\\",\\\"@onLoadMore\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[28,[37,6],[[30,0,[\\\"loadMoreSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"getSuppliers\\\",\\\"isRunning\\\"]]],null],[30,0,[\\\"supplierList\\\"]],[28,[37,3],[\\\"common.No suppliers\\\"],null],[30,0,[\\\"setSupplier\\\"]],[30,0,[\\\"onSearchSupplier\\\"]],[30,0,[\\\"debounceTime\\\"]],[28,[37,3],[\\\"common.Supplier\\\"],null],\\\"supplierName\\\",[30,0,[\\\"supplierChangeSet\\\"]],[30,0,[\\\"hasNextSupplierPage\\\"]],[30,0,[\\\"recordPageSize\\\"]],[30,0,[\\\"loadMoreSupplier\\\"]],[30,2,[\\\"isRunning\\\"]],[28,[37,7],[[30,0,[\\\"uploadProducts\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,3],[\\\"shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"overflow-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"table-responsive\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm table-bordered\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"takeoff\\\",\\\"columnTypes\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center align-top\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,15],[[24,5,\\\"min-width: 85px;\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@selectNoBlankOption\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,16],[[30,4]],null],[28,[37,17],[[30,4]],null],[30,0,[\\\"takeoff\\\",\\\"columnTypeOptions\\\"]],[30,0,[\\\"takeoff\\\",\\\"columnTypeForm\\\"]],true,[28,[37,7],[[30,0,[\\\"continue\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"takeoff\\\",\\\"sampleRows\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,5]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"no-wrap text-truncate\\\\n                        \\\",[52,[28,[37,20],[[28,[37,21],[[30,0,[\\\"takeoff\\\",\\\"columnTypeForm\\\"]],[30,7]],null],\\\"do-not-import\\\"],null],\\\"opacity-25\\\"]]]],[14,5,\\\"max-width: 200px;\\\"],[15,\\\"title\\\",[30,6]],[12],[1,[30,6]],[13],[1,\\\"\\\\n\\\"]],[6,7]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex justify-content-end p-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"uploadProducts\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"components.products-uploader.Importing products\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[30,0,[\\\"onClear\\\"]]],null],[12],[1,[28,[35,3],[\\\"shared.uploader.Upload a different file\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"uploadProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,25],[[28,[37,26],[[30,0,[\\\"uploadProducts\\\"]]],null]],null]],null],[12],[1,[28,[35,3],[\\\"components.products-uploader.Import products\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,27],null,[[\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"onUpload\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"components.products-uploader.uploadYourCsvFileToGenerateProductsFewerThan5000Items\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,3],[14,0,\\\"btn btn-link align-self-center mb-3\\\"],[14,6,\\\"/assets/example-product-file-78b832b3e151d334a38cfb180a17f061.csv\\\"],[14,\\\"download\\\",\\\"example-product-file-78b832b3e151d334a38cfb180a17f061.csv\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"shared.uploader.Download example file\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invalidProductRowIndexes\\\"]],[[[1,\\\"  \\\"],[8,[39,0],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,25],[[28,[37,30],[[30,0,[\\\"invalidProductRowIndexes\\\"]]],null],\\\"\\\"],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.products-uploader.theFollowingRowsInYourFileAreInvalidAndWillNotBeImported\\\"],null]],[1,\\\":\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"products-uploader__invalid-rows-confirm-modal-row-message\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"invalidProductRowIndexes\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[30,0,[\\\"skipNoneDescriptionRowsAndUpload\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"components.products-uploader.Import anyway\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,25],[[28,[37,30],[[30,0,[\\\"invalidProductRowIndexes\\\"]]],null],\\\"\\\"],null]],null],[12],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@onClose\\\",\\\"@uploadProducts\\\",\\\"type\\\",\\\"index\\\",\\\"columns\\\",\\\"column\\\",\\\"index\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"if\\\",\\\"new-combo-box\\\",\\\"or\\\",\\\"gt\\\",\\\"p\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"ptl-input\\\",\\\"number-to-char\\\",\\\"concat\\\",\\\"tbody\\\",\\\"td\\\",\\\"eq\\\",\\\"get\\\",\\\"button\\\",\\\"span\\\",\\\"on\\\",\\\"fn\\\",\\\"perform\\\",\\\"drag-and-drop-container\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"portal/components/products-uploader.hbs\",\n    \"isStrictMode\": false\n  });\n  const maxNumberOfProducts = 5001;\n  const getColumnsFrom2dArray = (arr, col) => {\n    return arr.map(r => r[col]);\n  };\n\n  // why this library kept this API when making a browser build is beyond me\n  const parseCsvFromBase64 = base64 => {\n    const records = [];\n    const parser = (0, _esm.parse)({\n      bom: true,\n      skip_empty_lines: true,\n      trim: true\n    });\n    parser.on('readable', () => {\n      let record;\n      while ((record = parser.read()) !== null) {\n        records.push(record);\n      }\n    });\n    const csvText = atob(base64);\n    parser.write(csvText);\n    parser.end();\n    return records;\n  };\n  class ParserError extends Error {}\n  let TakeoffFile = (_class = class TakeoffFile {\n    get sampleRows() {\n      if (!this.csv) return null;\n      return this.csv.slice(0, 10);\n    }\n    get columnsLength() {\n      return this.csv[0].length;\n    }\n    constructor(csv, intl) {\n      _defineProperty(this, \"columnTypeOptions\", void 0);\n      _initializerDefineProperty(this, \"columnTypes\", _descriptor, this);\n      _initializerDefineProperty(this, \"columnTypeForm\", _descriptor2, this);\n      _initializerDefineProperty(this, \"csv\", _descriptor3, this);\n      this.columnTypeOptions = [{\n        label: '—',\n        value: 'do-not-import',\n        matches: [],\n        type: undefined\n      }, {\n        label: intl.t('shared.task.Product description'),\n        value: 'productDescription',\n        matches: ['product description', 'product', 'product name', 'description'],\n        type: 'string'\n      }, {\n        label: intl.t('common.SKU'),\n        value: 'sku',\n        matches: ['sku'],\n        type: 'string'\n      }, {\n        label: intl.t('common.GTIN'),\n        value: 'gtin',\n        matches: ['gtin'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Manufacturer'),\n        value: 'manufacturer',\n        matches: ['manufacture', 'manufacture', 'mfr.', 'mfr'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Unit'),\n        value: 'unit',\n        matches: ['type', 'unit'],\n        type: 'number'\n      }, {\n        label: intl.t('common.Rate'),\n        value: 'rate',\n        matches: ['rate', 'price', 'price (ex gst)', 'price (inc gst)'],\n        type: 'currency'\n      }];\n      this.csv = csv;\n      this.columnTypes = this._findLikelyColumnTypes();\n      this.columnTypeForm = this._generateColumnTypeForm(intl);\n    }\n    _generateColumnTypeForm(intl) {\n      const validator = ({\n        key: _key,\n        newValue,\n        oldValue,\n        changes,\n        content\n      }) => {\n        const current = {\n          ...content,\n          ...changes\n        };\n        const values = Object.values(current);\n        const value = newValue || oldValue;\n\n        // you need at least one of each of these to progress\n        const requiredValues = ['productDescription'];\n        if (\n        // if you have chosen not to import this column\n        value === 'do-not-import' &&\n        // and there are still required values left\n        requiredValues.some(rv => !values.includes(rv))) return intl.t('validation.Product description is required');\n\n        // no import is always valid\n        if (value === 'do-not-import') return true;\n\n        // you can't have duplicate selections\n        if (values.filter(v => v === value).length > 1) return intl.t('validation.You can only select this column once');\n        return true;\n      };\n      const data = {\n        save: () => {\n          for (let i = 0; i < this.columnsLength; i++) {\n            this.columnTypes[i] = this.columnTypeForm.get(String(i));\n          }\n        }\n      };\n      const validatorMap = {};\n      for (let i = 0; i < this.columnsLength; i++) {\n        data[i] = this.columnTypes[i];\n        validatorMap[i] = validator;\n      }\n      return (0, _emberChangeset.Changeset)(data, validator, validatorMap);\n    }\n    _findLikelyColumnTypes() {\n      // TODO if there isn't a header row, we could try and assume from the data type of the columns\n      const likenessThreshold = 0.8;\n      // for each column iterate over each column type to find the closest matching column type\n      const results = [];\n      for (let i = 0; i < this.columnsLength; i++) {\n        const winners = this.columnTypeOptions.map(option => {\n          // get the entire column from the sample rows\n          const columns = getColumnsFrom2dArray(this.sampleRows, i).map(s => s.toLowerCase().trim());\n          // test the likeness of the columns against the matching strings\n          const scores = option.matches.map(m => (0, _stringSimilarity.findBestMatch)(m, columns));\n          // check if the best match is better than the threshold\n          const winner = scores.find(score => score.bestMatch.rating >= likenessThreshold);\n          return {\n            option,\n            rating: winner?.bestMatch?.rating || 0\n          };\n        });\n\n        // find best matching column type\n        const bestMatch = winners.sort((a, b) => b.rating - a.rating).shift();\n\n        // we now have the closest matching column type for this column\n        results.push(bestMatch.option.value);\n\n        // in the future we could also try evaluate the columns against the data type\n      }\n      return results;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"columnTypes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"columnTypeForm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"csv\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor7, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor8, this);\n      _initializerDefineProperty(this, \"takeoffItems\", _descriptor9, this);\n      _initializerDefineProperty(this, \"takeoff\", _descriptor0, this);\n      _defineProperty(this, \"validateLength\", newValue => {\n        const value = newValue.trim();\n        return value && value.length > 0 || this.intl.t('validation.Please provide a supplier name');\n      });\n      _defineProperty(this, \"supplierValidator\", ({\n        newValue\n      }) => {\n        return this.validateLength(newValue);\n      });\n      _defineProperty(this, \"validationMap\", {\n        supplierName: this.validateLength\n      });\n      _initializerDefineProperty(this, \"supplierChangeSet\", _descriptor1, this);\n      _initializerDefineProperty(this, \"supplierList\", _descriptor10, this);\n      _initializerDefineProperty(this, \"suppliersCurrentPage\", _descriptor11, this);\n      _initializerDefineProperty(this, \"hasNextSupplierPage\", _descriptor12, this);\n      _initializerDefineProperty(this, \"supplierFilter\", _descriptor13, this);\n      _initializerDefineProperty(this, \"invalidProductRowIndexes\", _descriptor14, this);\n      _defineProperty(this, \"debounceTime\", _environment.default.debounceTimeMs);\n      _defineProperty(this, \"recordPageSize\", 10);\n      _defineProperty(this, \"uploadProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (_e, skipNoneDescriptionRows = false) {\n          this.takeoff.columnTypeForm.validate();\n          this.supplierChangeSet.validate();\n          if (this.takeoff.columnTypeForm.isInvalid || this.supplierChangeSet.isInvalid) {\n            this.notifications.warning(this.intl.t('shared.uploader.pleaseCompleteTheFormBeforeContinuing'));\n            return;\n          }\n          try {\n            yield this.takeoff.columnTypeForm.save();\n            const products = [];\n            const noDescriptionProductIndex = [];\n            this.takeoff.csv.forEach((columns, columnsIndex) => {\n              const product = {};\n              columns.forEach((column, index) => {\n                product.entity = this.sessionData.entity.id;\n                if (this.args.saveTarget === 'project-products') product.project = this.args.project.id;\n                switch (this.takeoff.columnTypes[index]) {\n                  case 'do-not-import':\n                    break;\n                  case 'productDescription':\n                    product.description = column?.trim();\n                    if (!column?.trim().length) noDescriptionProductIndex.push(columnsIndex + 1);\n                    break;\n                  case 'sku':\n                    product.sku = column?.trim();\n                    break;\n                  case 'gtin':\n                    product.gtin = column?.trim();\n                    break;\n                  case 'manufacturer':\n                    product.manufacturer = column?.trim();\n                    break;\n                  case 'unit':\n                    product.unit = column?.trim();\n                    break;\n                  case 'rate':\n                    product.unitPrice = (0, _parseCurrencyString.default)(column);\n                    break;\n                }\n              });\n              if (skipNoneDescriptionRows && !product.description) return;\n              product.supplierName = this.supplierChangeSet.get('supplierName').trim();\n              products.push(product);\n            });\n            if (noDescriptionProductIndex.length && !skipNoneDescriptionRows) {\n              this.invalidProductRowIndexes = `${noDescriptionProductIndex.join(', ')}`;\n              return;\n            }\n            products.shift();\n            yield this.portalApiV2.authPut(`/resources/${this.args.saveTarget}`, products);\n            yield this.args.onUploadProducts.perform();\n            this.notifications.success(this.intl.t('components.products-uploader.Successfully uploaded products'));\n            this.args.onClose();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.products-uploader.somethingWentWrongWhileSavingProducts'),\n              error\n            });\n          }\n        }\n      }), null, \"uploadProducts\", null));\n      _defineProperty(this, \"parseCsvFromAttachment\", attachment => {\n        // TODO windows does some funky shit with MIME types\n        if (attachment.fileType !== 'text/csv') throw new ParserError(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n        const csv = parseCsvFromBase64(attachment.data);\n        if (csv?.length > maxNumberOfProducts) throw new ParserError(this.intl.t('components.products-uploader.pleaseUploadACsvFileContainingFewerThan5000Products'));\n        return csv;\n      });\n      _defineProperty(this, \"loadMoreSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const supplierList = yield this.portalApiV2.authGet('/search-suppliers', {\n              filter: this.supplierFilter,\n              pageSize: this.recordPageSize,\n              page: this.suppliersCurrentPage + 1,\n              orderBy: 'name',\n              orderByDirection: 'desc'\n            });\n            if (!supplierList.data?.length) {\n              this.hasNextSupplierPage = false;\n              return;\n            }\n            this.suppliersCurrentPage = supplierList.pagination.currentPage;\n            this.hasNextSupplierPage = supplierList.pagination.hasNextPage;\n            this.supplierList = [...this.supplierList, ...supplierList.data];\n          } catch (error) {\n            this.hasNextSupplierPage = false;\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreSuppliers'),\n              error\n            });\n          }\n        }\n      }), null, \"loadMoreSupplier\", null));\n      _defineProperty(this, \"getSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (filter) {\n          const suppliers = yield this.portalApiV2.authGet('/search-suppliers', {\n            filter,\n            pageSize: this.recordPageSize,\n            page: 1,\n            orderBy: 'name',\n            orderByDirection: 'desc'\n          });\n          this.suppliersCurrentPage = suppliers.pagination.currentPage;\n          this.hasNextSupplierPage = suppliers.pagination.hasNextPage;\n          this.supplierList = suppliers.data;\n        }\n      }), null, \"getSuppliers\", null));\n      _defineProperty(this, \"onSearchSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          if (searchTerm.length) {\n            this.supplierFilter.or = [{\n              field: 'name',\n              operator: 'ILIKE',\n              value: searchTerm\n            }];\n          } else {\n            this.supplierFilter.or = [];\n          }\n          yield this.getSuppliers.perform(this.supplierFilter);\n        }\n      }), null, \"onSearchSupplier\", null));\n    }\n    onClear() {\n      this.takeoff = null;\n      this.takeoffItems = null;\n    }\n    skipNoneDescriptionRowsAndUpload() {\n      this.invalidProductRowIndexes = '';\n      this.uploadProducts.perform(undefined, true);\n    }\n    onUpload(e) {\n      try {\n        if (!e.attachments.length) {\n          this.notifications.warning(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n          return;\n        }\n        if (e.attachments.length > 1) this.notifications.warning(this.intl.t('shared.uploader.Please upload one file at a time'));\n        const attachment = e.attachments[0];\n        const csv = this.parseCsvFromAttachment(attachment);\n        this.takeoff = new TakeoffFile(csv, this.intl);\n      } catch (error) {\n        if (error instanceof ParserError) {\n          this.notifications.warning(error.message);\n          return;\n        }\n        this.notifications.error({\n          message: this.intl.t('shared.uploader.Something went wrong uploading the file'),\n          error\n        });\n      }\n    }\n    setSupplier(value) {\n      this.supplierChangeSet.set('supplierName', value.supplierName);\n    }\n  }, _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"takeoffItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"takeoff\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"supplierChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _emberChangeset.Changeset)({\n        supplierName: ''\n      }, this.supplierValidator, this.validationMap);\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"supplierList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"suppliersCurrentPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"hasNextSupplierPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"supplierFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {\n        and: [{\n          field: 'entity',\n          operator: 'EQ',\n          value: this.sessionData.entity.id\n        }]\n      };\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"invalidProductRowIndexes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onClear\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClear\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"skipNoneDescriptionRowsAndUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"skipNoneDescriptionRowsAndUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setSupplier\"), _class2.prototype), _class2));\n});","define(\"portal/components/profit-margin-form\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <h3 class='mb-3'>{{t 'common.Profit margins'}}</h3>\n  {{#if @description}}\n    <p class='mt-0'>{{@description}}</p>\n  {{/if}}\n  <PtlInput\n    @type='select'\n    @toolTip={{t\n      'shared.profit-margins.marginIsThePercentageOfWhatYouAreChargingTheCustomerThatIsProfitMarkupIsThePercentageOfYourCostThatIsAddedToYourCostToGetProfit'\n    }}\n    @label={{t 'shared.profit-margins.Profit type'}}\n    @key='profitType'\n    @required={{true}}\n    @options={{this.profitTypes}}\n    @model={{@profitMargin}}\n    @forceValidationVisible={{@forceValidationVisible}}\n    @selectNoBlankOption={{true}}\n    disabled={{@disabled}}\n    data-test-profit-margin-form-profit-select\n  />\n  {{! labour start}}\n  <div class='d-flex align-items-center'>\n    <div class='flex-grow-1'>\n      {{#if this.labourIsOverridden}}\n        <PtlInput\n          data-test-profit-margin-form-labour-percentage-input\n          @type='percentage'\n          @label={{t 'common.Labour'}}\n          @containerClass='mb-1'\n          @key='labourPercentage'\n          @model={{@profitMargin}}\n          @forceValidationVisible={{@forceValidationVisible}}\n          disabled={{or @disabled (not this.labourIsOverridden)}}\n          @inputGroupText={{profit-type-label @profitMargin.profitType}}\n        />\n      {{else}}\n        <div class='mb-1'>\n          <label class='mb-1'>{{t 'common.Labour'}}</label>\n          <div class='input-group'>\n            <FormattedInput\n              @class='form-control'\n              @format='percentage'\n              @formatterOptions={{hash dashZero=false}}\n              @number={{or @default.labourPercentage.value 0}}\n              @disabled={{true}}\n            />\n            {{#if @default.labourPercentage.type}}\n              <span class='input-group-text text-muted'>\n                {{profit-type-label @default.labourPercentage.type}}\n              </span>\n            {{/if}}\n          </div>\n        </div>\n      {{/if}}\n    </div>\n    <label class='mx-3 d-flex align-items-center mt-3'>{{t\n        'common.Override'\n      }}&nbsp;\n      <Input\n        data-test-profit-margin-form-labour-checkbox\n        @type='checkbox'\n        class='form-check-input ms-1 mb-1'\n        @checked={{this.labourIsOverridden}}\n        disabled={{@disabled}}\n        {{on\n          'click'\n          (fn this.togglePercentageOverride @profitMargin 'labourPercentage')\n        }}\n      />\n    </label>\n  </div>\n  <div class='mb-3 form-text'>\n    {{#if\n      (includes-feature-flags\n        @default.labourPercentage.record 'canManageProfitMargin'\n      )\n    }}\n      <LinkTo\n        class='link ps-0'\n        @route={{@default.labourPercentage.route}}\n        @model={{@default.labourPercentage.model}}\n      >\n        {{#if @default.labourPercentage.value}}\n          {{t 'common.Default'}}\n          {{number-format\n            @default.labourPercentage.value\n            style='percent'\n            dashZero=true\n            maximumFractionDigits=2\n            minimumFractionDigits=2\n          }}\n          {{profit-type-label @default.labourPercentage.type}}\n        {{else}}\n          {{t 'components.profit-margin-form.Set a default labour profit margin'}}\n        {{/if}}\n        <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='sm' />\n      </LinkTo>\n    {{/if}}\n  </div>\n  {{! labour end}}\n  {{! additional labour margin start}}\n  {{#if\n    (or @default.additionalLabourMargin.value this.additionalLabourIsOverridden)\n  }}\n    <div class='d-flex align-items-center'>\n      <div class='flex-grow-1'>\n        {{#if this.additionalLabourIsOverridden}}\n          <PtlInput\n            data-test-profit-margin-form-additional-labour-margin-input\n            @type='percentage'\n            @label={{t 'shared.profit-margins.Additional labour margin'}}\n            @containerClass='mb-1'\n            @key='additionalLabourMargin'\n            @model={{@profitMargin}}\n            @forceValidationVisible={{@forceValidationVisible}}\n            disabled={{not this.additionalLabourIsOverridden}}\n            @description={{t\n              'shared.profit-margins.additionalLabourMarginDescription'\n            }}\n            @inputGroupText={{profit-type-label @profitMargin.profitType}}\n          />\n        {{else}}\n          <div class='mb-1'>\n            <label class='mb-1'>{{t\n                'shared.profit-margins.Additional labour margin'\n              }}</label>\n            <div class='input-group'>\n              <FormattedInput\n                @class='form-control'\n                @format='percentage'\n                @formatterOptions={{hash dashZero=false}}\n                @number={{or @default.additionalLabourMargin.value 0}}\n                @disabled={{true}}\n              />\n              {{#if @default.additionalLabourMargin.type}}\n                <span class='input-group-text text-muted'>\n                  {{profit-type-label @default.additionalLabourMargin.type}}\n                </span>\n              {{/if}}\n            </div>\n          </div>\n        {{/if}}\n      </div>\n      <label class='mx-3 d-flex align-items-center mt-3'>{{t\n          'common.Override'\n        }}&nbsp;\n        <Input\n          data-test-profit-margin-form-additional-labour-margin-checkbox\n          @type='checkbox'\n          class='form-check-input ms-1 mb-1'\n          @checked={{this.additionalLabourIsOverridden}}\n          {{on\n            'click'\n            (fn\n              this.togglePercentageOverride @profitMargin 'additionalLabourMargin'\n            )\n          }}\n        />\n      </label>\n    </div>\n    <div class='mb-3 form-text'>\n      {{#if\n        (includes-feature-flags\n          @default.additionalLabourMargin.record 'canManageProfitMargin'\n        )\n      }}\n        <LinkTo\n          class='link ps-0'\n          @route={{@default.additionalLabourMargin.route}}\n          @model={{@default.additionalLabourMargin.model}}\n        >\n          {{#if @default.additionalLabourMargin.value}}\n            {{t 'common.Default'}}\n            {{number-format\n              @default.additionalLabourMargin.value\n              style='percent'\n              dashZero=true\n              maximumFractionDigits=2\n              minimumFractionDigits=2\n            }}\n            {{profit-type-label @default.additionalLabourMargin.type}}\n          {{else}}\n            {{t\n              'components.profit-margin-form.Set a default additional labour margin'\n            }}\n          {{/if}}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='sm' />\n        </LinkTo>\n      {{/if}}\n    </div>\n  {{/if}}\n  {{! additional labour margin end}}\n  {{! material start}}\n  <div class='d-flex align-items-center'>\n    <div class='flex-grow-1'>\n      {{#if this.materialsIsOverridden}}\n        <PtlInput\n          data-test-profit-margin-form-materials-percentage-input\n          @type='percentage'\n          @label={{t 'common.Materials'}}\n          @containerClass='mb-1'\n          @key='materialsPercentage'\n          @model={{@profitMargin}}\n          @forceValidationVisible={{@forceValidationVisible}}\n          disabled={{or @disabled (not this.materialsIsOverridden)}}\n          @inputGroupText={{profit-type-label @profitMargin.profitType}}\n        />\n      {{else}}\n        <div class='mb-1'>\n          <label class='mb-1'>{{t 'common.Materials'}}</label>\n          <div class='input-group'>\n            <FormattedInput\n              @class='form-control'\n              @format='percentage'\n              @formatterOptions={{hash dashZero=false}}\n              @number={{or @default.materialsPercentage.value 0}}\n              @disabled={{true}}\n            />\n            {{#if @default.materialsPercentage.type}}\n              <span class='input-group-text text-muted'>\n                {{profit-type-label @default.materialsPercentage.type}}\n              </span>\n            {{/if}}\n          </div>\n        </div>\n      {{/if}}\n    </div>\n    <label class='mx-3 d-flex align-items-center mt-3'>{{t\n        'common.Override'\n      }}&nbsp;\n      <Input\n        data-test-profit-margin-form-materials-checkbox\n        @type='checkbox'\n        class='form-check-input ms-1 mb-1'\n        @checked={{this.materialsIsOverridden}}\n        disabled={{@disabled}}\n        {{on\n          'click'\n          (fn this.togglePercentageOverride @profitMargin 'materialsPercentage')\n        }}\n      />\n    </label>\n  </div>\n  <div class='mb-3 form-text'>\n    {{#if\n      (includes-feature-flags\n        @default.materialsPercentage.record 'canManageProfitMargin'\n      )\n    }}\n      <LinkTo\n        class='link ps-0'\n        @route={{@default.materialsPercentage.route}}\n        @model={{@default.materialsPercentage.model}}\n      >\n        {{#if @default.materialsPercentage.value}}\n          {{t 'common.Default'}}\n          {{number-format\n            @default.materialsPercentage.value\n            style='percent'\n            dashZero=true\n            maximumFractionDigits=2\n            minimumFractionDigits=2\n          }}\n          {{profit-type-label @default.materialsPercentage.type}}\n        {{else}}\n          {{t\n            'components.profit-margin-form.Set a default materials profit margin'\n          }}\n        {{/if}}\n        <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='sm' />\n      </LinkTo>\n    {{/if}}\n  </div>\n  {{! material end}}\n  {{! subcontractors start}}\n  <div class='d-flex align-items-center'>\n    <div class='flex-grow-1'>\n      {{#if this.subcontractorIsOverridden}}\n        <PtlInput\n          data-test-profit-margin-form-subcontractors-percentage-input\n          @type='percentage'\n          @label={{t 'common.Subcontractors'}}\n          @containerClass='mb-1'\n          @key='subcontractorsPercentage'\n          @model={{@profitMargin}}\n          @forceValidationVisible={{@forceValidationVisible}}\n          disabled={{or @disabled (not this.subcontractorIsOverridden)}}\n          @inputGroupText={{profit-type-label @profitMargin.profitType}}\n        />\n      {{else}}\n        <div class='mb-1'>\n          <label class='mb-1'>{{t 'common.Subcontractors'}}</label>\n          <div class='input-group'>\n            <FormattedInput\n              @class='form-control'\n              @format='percentage'\n              @formatterOptions={{hash dashZero=false}}\n              @number={{or @default.subcontractorsPercentage.value 0}}\n              @disabled={{true}}\n            />\n            {{#if @default.subcontractorsPercentage.type}}\n              <span class='input-group-text text-muted'>\n                {{profit-type-label @default.subcontractorsPercentage.type}}\n              </span>\n            {{/if}}\n          </div>\n        </div>\n      {{/if}}\n    </div>\n    <label class='mx-3 d-flex align-items-center mt-3'>{{t\n        'common.Override'\n      }}&nbsp;\n      <Input\n        data-test-profit-margin-form-subcontractors-checkbox\n        @type='checkbox'\n        class='form-check-input ms-1 mb-1'\n        @checked={{this.subcontractorIsOverridden}}\n        disabled={{@disabled}}\n        {{on\n          'click'\n          (fn\n            this.togglePercentageOverride @profitMargin 'subcontractorsPercentage'\n          )\n        }}\n      />\n    </label>\n  </div>\n  <div class='mb-3 form-text'>\n    {{#if\n      (includes-feature-flags\n        @default.subcontractorsPercentage.record 'canManageProfitMargin'\n      )\n    }}\n      <LinkTo\n        class='link ps-0'\n        @route={{@default.subcontractorsPercentage.route}}\n        @model={{@default.subcontractorsPercentage.model}}\n      >\n        {{#if @default.subcontractorsPercentage.value}}\n          {{t 'common.Default'}}\n          {{number-format\n            @default.subcontractorsPercentage.value\n            style='percent'\n            dashZero=true\n            maximumFractionDigits=2\n            minimumFractionDigits=2\n          }}\n          {{profit-type-label @default.subcontractorsPercentage.type}}\n        {{else}}\n          {{t\n            'components.profit-margin-form.setADefaultSubcontractorsProfitMargin'\n          }}\n        {{/if}}\n        <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='sm' />\n      </LinkTo>\n    {{/if}}\n  </div>\n  {{! subcontractors end}}\n  {{! sums start}}\n  <div class='d-flex'>\n    <div class='flex-grow-1 align-items-center'>\n      {{#if this.sumsIsOverridden}}\n        <PtlInput\n          data-test-profit-margin-form-sums-percentage-input\n          @type='percentage'\n          @label={{t 'common.Sums'}}\n          @containerClass='mb-1'\n          @key='sumsPercentage'\n          @model={{@profitMargin}}\n          @forceValidationVisible={{@forceValidationVisible}}\n          disabled={{or @disabled (not this.sumsIsOverridden)}}\n          @inputGroupText={{profit-type-label @profitMargin.profitType}}\n        />\n      {{else}}\n        <div class='mb-1'>\n          <label class='mb-1'>{{t 'common.Sums'}}</label>\n          <div class='input-group'>\n            <FormattedInput\n              @class='form-control'\n              @format='percentage'\n              @formatterOptions={{hash dashZero=false}}\n              @number={{or @default.sumsPercentage.value 0}}\n              @disabled={{true}}\n            />\n            {{#if @default.sumsPercentage.type}}\n              <span class='input-group-text text-muted'>\n                {{profit-type-label @default.sumsPercentage.type}}\n              </span>\n            {{/if}}\n          </div>\n        </div>\n      {{/if}}\n    </div>\n    <label class='mx-3 d-flex align-items-center mt-3'>{{t\n        'common.Override'\n      }}&nbsp;\n      <Input\n        data-test-profit-margin-form-sums-checkbox\n        @type='checkbox'\n        class='form-check-input ms-1 mb-1'\n        @checked={{this.sumsIsOverridden}}\n        disabled={{@disabled}}\n        {{on\n          'click'\n          (fn this.togglePercentageOverride @profitMargin 'sumsPercentage')\n        }}\n      />\n    </label>\n  </div>\n  <div class='form-text'>\n    {{#if\n      (includes-feature-flags\n        @default.sumsPercentage.record 'canManageProfitMargin'\n      )\n    }}\n      <LinkTo\n        class='link ps-0'\n        @route={{@default.sumsPercentage.route}}\n        @model={{@default.sumsPercentage.model}}\n      >\n        {{#if @default.sumsPercentage.value}}\n          {{t 'common.Default'}}\n          {{number-format\n            @default.sumsPercentage.value\n            style='percent'\n            dashZero=true\n            maximumFractionDigits=2\n            minimumFractionDigits=2\n          }}\n          {{profit-type-label @default.sumsPercentage.type}}\n        {{else}}\n          {{t 'components.profit-margin-form.Set a default sums profit margin'}}\n        {{/if}}\n        <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='sm' />\n      </LinkTo>\n    {{/if}}\n  </div>\n  {{! sums end}}\n  */\n  {\n    \"id\": \"v1SMzXDA\",\n    \"block\": \"[[[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,1],[\\\"common.Profit margins\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,[30,1]],[13],[1,\\\"\\\\n\\\"]],[]],null],[8,[39,4],[[16,\\\"disabled\\\",[30,2]],[24,\\\"data-test-profit-margin-form-profit-select\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@toolTip\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@selectNoBlankOption\\\"],[\\\"select\\\",[28,[37,1],[\\\"shared.profit-margins.marginIsThePercentageOfWhatYouAreChargingTheCustomerThatIsProfitMarkupIsThePercentageOfYourCostThatIsAddedToYourCostToGetProfit\\\"],null],[28,[37,1],[\\\"shared.profit-margins.Profit type\\\"],null],\\\"profitType\\\",true,[30,0,[\\\"profitTypes\\\"]],[30,3],[30,4],true]],null],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"labourIsOverridden\\\"]],[[[1,\\\"      \\\"],[8,[39,4],[[24,\\\"data-test-profit-margin-form-labour-percentage-input\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,6],[[30,2],[28,[37,7],[[30,0,[\\\"labourIsOverridden\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@inputGroupText\\\"],[\\\"percentage\\\",[28,[37,1],[\\\"common.Labour\\\"],null],\\\"mb-1\\\",\\\"labourPercentage\\\",[30,3],[30,4],[28,[37,8],[[30,3,[\\\"profitType\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",\\\"percentage\\\",[28,[37,11],null,[[\\\"dashZero\\\"],[false]]],[28,[37,6],[[30,5,[\\\"labourPercentage\\\",\\\"value\\\"]],0],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"labourPercentage\\\",\\\"type\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[[30,5,[\\\"labourPercentage\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-3\\\"],[12],[1,[28,[35,1],[\\\"common.Override\\\"],null]],[1,\\\" \\\\n    \\\"],[8,[39,13],[[24,\\\"data-test-profit-margin-form-labour-checkbox\\\",\\\"\\\"],[24,0,\\\"form-check-input ms-1 mb-1\\\"],[16,\\\"disabled\\\",[30,2]],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"togglePercentageOverride\\\"]],[30,3],\\\"labourPercentage\\\"],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"labourIsOverridden\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"mb-3 form-text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,5,[\\\"labourPercentage\\\",\\\"record\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"    \\\"],[8,[39,17],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,5,[\\\"labourPercentage\\\",\\\"route\\\"]],[30,5,[\\\"labourPercentage\\\",\\\"model\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"labourPercentage\\\",\\\"value\\\"]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"common.Default\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,18],[[30,5,[\\\"labourPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[[30,5,[\\\"labourPercentage\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"components.profit-margin-form.Set a default labour profit margin\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[8,[39,19],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,5,[\\\"additionalLabourMargin\\\",\\\"value\\\"]],[30,0,[\\\"additionalLabourIsOverridden\\\"]]],null],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"additionalLabourIsOverridden\\\"]],[[[1,\\\"        \\\"],[8,[39,4],[[24,\\\"data-test-profit-margin-form-additional-labour-margin-input\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"additionalLabourIsOverridden\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\",\\\"@inputGroupText\\\"],[\\\"percentage\\\",[28,[37,1],[\\\"shared.profit-margins.Additional labour margin\\\"],null],\\\"mb-1\\\",\\\"additionalLabourMargin\\\",[30,3],[30,4],[28,[37,1],[\\\"shared.profit-margins.additionalLabourMarginDescription\\\"],null],[28,[37,8],[[30,3,[\\\"profitType\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,1],[\\\"shared.profit-margins.Additional labour margin\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,10],null,[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",\\\"percentage\\\",[28,[37,11],null,[[\\\"dashZero\\\"],[false]]],[28,[37,6],[[30,5,[\\\"additionalLabourMargin\\\",\\\"value\\\"]],0],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"additionalLabourMargin\\\",\\\"type\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,8],[[30,5,[\\\"additionalLabourMargin\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-3\\\"],[12],[1,[28,[35,1],[\\\"common.Override\\\"],null]],[1,\\\" \\\\n      \\\"],[8,[39,13],[[24,\\\"data-test-profit-margin-form-additional-labour-margin-checkbox\\\",\\\"\\\"],[24,0,\\\"form-check-input ms-1 mb-1\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"togglePercentageOverride\\\"]],[30,3],\\\"additionalLabourMargin\\\"],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"additionalLabourIsOverridden\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"mb-3 form-text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,5,[\\\"additionalLabourMargin\\\",\\\"record\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"      \\\"],[8,[39,17],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,5,[\\\"additionalLabourMargin\\\",\\\"route\\\"]],[30,5,[\\\"additionalLabourMargin\\\",\\\"model\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"additionalLabourMargin\\\",\\\"value\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,1],[\\\"common.Default\\\"],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,18],[[30,5,[\\\"additionalLabourMargin\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[[30,5,[\\\"additionalLabourMargin\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,1],[\\\"components.profit-margin-form.Set a default additional labour margin\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[8,[39,19],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"materialsIsOverridden\\\"]],[[[1,\\\"      \\\"],[8,[39,4],[[24,\\\"data-test-profit-margin-form-materials-percentage-input\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,6],[[30,2],[28,[37,7],[[30,0,[\\\"materialsIsOverridden\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@inputGroupText\\\"],[\\\"percentage\\\",[28,[37,1],[\\\"common.Materials\\\"],null],\\\"mb-1\\\",\\\"materialsPercentage\\\",[30,3],[30,4],[28,[37,8],[[30,3,[\\\"profitType\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",\\\"percentage\\\",[28,[37,11],null,[[\\\"dashZero\\\"],[false]]],[28,[37,6],[[30,5,[\\\"materialsPercentage\\\",\\\"value\\\"]],0],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"materialsPercentage\\\",\\\"type\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[[30,5,[\\\"materialsPercentage\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-3\\\"],[12],[1,[28,[35,1],[\\\"common.Override\\\"],null]],[1,\\\" \\\\n    \\\"],[8,[39,13],[[24,\\\"data-test-profit-margin-form-materials-checkbox\\\",\\\"\\\"],[24,0,\\\"form-check-input ms-1 mb-1\\\"],[16,\\\"disabled\\\",[30,2]],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"togglePercentageOverride\\\"]],[30,3],\\\"materialsPercentage\\\"],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"materialsIsOverridden\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"mb-3 form-text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,5,[\\\"materialsPercentage\\\",\\\"record\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"    \\\"],[8,[39,17],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,5,[\\\"materialsPercentage\\\",\\\"route\\\"]],[30,5,[\\\"materialsPercentage\\\",\\\"model\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"materialsPercentage\\\",\\\"value\\\"]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"common.Default\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,18],[[30,5,[\\\"materialsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[[30,5,[\\\"materialsPercentage\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"components.profit-margin-form.Set a default materials profit margin\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[8,[39,19],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"subcontractorIsOverridden\\\"]],[[[1,\\\"      \\\"],[8,[39,4],[[24,\\\"data-test-profit-margin-form-subcontractors-percentage-input\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,6],[[30,2],[28,[37,7],[[30,0,[\\\"subcontractorIsOverridden\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@inputGroupText\\\"],[\\\"percentage\\\",[28,[37,1],[\\\"common.Subcontractors\\\"],null],\\\"mb-1\\\",\\\"subcontractorsPercentage\\\",[30,3],[30,4],[28,[37,8],[[30,3,[\\\"profitType\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",\\\"percentage\\\",[28,[37,11],null,[[\\\"dashZero\\\"],[false]]],[28,[37,6],[[30,5,[\\\"subcontractorsPercentage\\\",\\\"value\\\"]],0],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"subcontractorsPercentage\\\",\\\"type\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[[30,5,[\\\"subcontractorsPercentage\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-3\\\"],[12],[1,[28,[35,1],[\\\"common.Override\\\"],null]],[1,\\\" \\\\n    \\\"],[8,[39,13],[[24,\\\"data-test-profit-margin-form-subcontractors-checkbox\\\",\\\"\\\"],[24,0,\\\"form-check-input ms-1 mb-1\\\"],[16,\\\"disabled\\\",[30,2]],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"togglePercentageOverride\\\"]],[30,3],\\\"subcontractorsPercentage\\\"],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"subcontractorIsOverridden\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"mb-3 form-text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,5,[\\\"subcontractorsPercentage\\\",\\\"record\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"    \\\"],[8,[39,17],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,5,[\\\"subcontractorsPercentage\\\",\\\"route\\\"]],[30,5,[\\\"subcontractorsPercentage\\\",\\\"model\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"subcontractorsPercentage\\\",\\\"value\\\"]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"common.Default\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,18],[[30,5,[\\\"subcontractorsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[[30,5,[\\\"subcontractorsPercentage\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"components.profit-margin-form.setADefaultSubcontractorsProfitMargin\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[8,[39,19],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1 align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sumsIsOverridden\\\"]],[[[1,\\\"      \\\"],[8,[39,4],[[24,\\\"data-test-profit-margin-form-sums-percentage-input\\\",\\\"\\\"],[16,\\\"disabled\\\",[28,[37,6],[[30,2],[28,[37,7],[[30,0,[\\\"sumsIsOverridden\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@inputGroupText\\\"],[\\\"percentage\\\",[28,[37,1],[\\\"common.Sums\\\"],null],\\\"mb-1\\\",\\\"sumsPercentage\\\",[30,3],[30,4],[28,[37,8],[[30,3,[\\\"profitType\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\"],[\\\"form-control\\\",\\\"percentage\\\",[28,[37,11],null,[[\\\"dashZero\\\"],[false]]],[28,[37,6],[[30,5,[\\\"sumsPercentage\\\",\\\"value\\\"]],0],null],true]],null],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"sumsPercentage\\\",\\\"type\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[[30,5,[\\\"sumsPercentage\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-3\\\"],[12],[1,[28,[35,1],[\\\"common.Override\\\"],null]],[1,\\\" \\\\n    \\\"],[8,[39,13],[[24,\\\"data-test-profit-margin-form-sums-checkbox\\\",\\\"\\\"],[24,0,\\\"form-check-input ms-1 mb-1\\\"],[16,\\\"disabled\\\",[30,2]],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"togglePercentageOverride\\\"]],[30,3],\\\"sumsPercentage\\\"],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"sumsIsOverridden\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"form-text\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,5,[\\\"sumsPercentage\\\",\\\"record\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"    \\\"],[8,[39,17],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,5,[\\\"sumsPercentage\\\",\\\"route\\\"]],[30,5,[\\\"sumsPercentage\\\",\\\"model\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"sumsPercentage\\\",\\\"value\\\"]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"common.Default\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,18],[[30,5,[\\\"sumsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[[30,5,[\\\"sumsPercentage\\\",\\\"type\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,1],[\\\"components.profit-margin-form.Set a default sums profit margin\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[8,[39,19],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[\\\"@description\\\",\\\"@disabled\\\",\\\"@profitMargin\\\",\\\"@forceValidationVisible\\\",\\\"@default\\\"],false,[\\\"h3\\\",\\\"t\\\",\\\"if\\\",\\\"p\\\",\\\"ptl-input\\\",\\\"div\\\",\\\"or\\\",\\\"not\\\",\\\"profit-type-label\\\",\\\"label\\\",\\\"formatted-input\\\",\\\"hash\\\",\\\"span\\\",\\\"input\\\",\\\"on\\\",\\\"fn\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"number-format\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/profit-margin-form.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      // keep a reference to the original value\n      _initializerDefineProperty(this, \"labourPercentage\", _descriptor, this);\n      _initializerDefineProperty(this, \"additionalLabourMargin\", _descriptor2, this);\n      _initializerDefineProperty(this, \"materialsPercentage\", _descriptor3, this);\n      _initializerDefineProperty(this, \"subcontractorsPercentage\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sumsPercentage\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"profitTypes\", [{\n        value: 'MARGIN',\n        label: this.intl.t('common.Margin')\n      }, {\n        value: 'MARKUP',\n        label: this.intl.t('common.Markup')\n      }]);\n      this.labourPercentage = this.args.profitMargin.labourPercentage;\n      this.additionalLabourMargin = this.args.profitMargin.additionalLabourMargin;\n      this.materialsPercentage = this.args.profitMargin.materialsPercentage;\n      this.subcontractorsPercentage = this.args.profitMargin.subcontractorsPercentage;\n      this.sumsPercentage = this.args.profitMargin.sumsPercentage;\n    }\n    // we need setters because the checkbox attempts to change the value\n    set labourIsOverridden(value) {}\n    get labourIsOverridden() {\n      return this.args.profitMargin.labourPercentage != null;\n    }\n    set additionalLabourIsOverridden(value) {}\n    get additionalLabourIsOverridden() {\n      return this.args.profitMargin.additionalLabourMargin != null;\n    }\n    set materialsIsOverridden(value) {}\n    get materialsIsOverridden() {\n      return this.args.profitMargin.materialsPercentage != null;\n    }\n    set subcontractorIsOverridden(value) {}\n    get subcontractorIsOverridden() {\n      return this.args.profitMargin.subcontractorsPercentage != null;\n    }\n    set sumsIsOverridden(value) {}\n    get sumsIsOverridden() {\n      return this.args.profitMargin.sumsPercentage != null;\n    }\n    async togglePercentageOverride(profitMarginModel, fieldName) {\n      // if we have a value, make the value null\n      // otherwise, set the value back to the original value (or 0)\n      const newValue = profitMarginModel[fieldName] != null ? null : Number(this[fieldName]); // we are casting null as a number which returns 0\n\n      profitMarginModel.set(fieldName, newValue);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"labourPercentage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"additionalLabourMargin\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"materialsPercentage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"subcontractorsPercentage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"sumsPercentage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"togglePercentageOverride\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"togglePercentageOverride\"), _class.prototype), _class));\n});","define(\"portal/components/project-card\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _object, _service, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-changeset\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @dsl.isDroppingAbove}}\n    <@dsl.Separator />\n  {{/if}}\n  <@dsl.Draggable class='py-2'>\n    {{#if (includes-feature-flags 'canUseProjectCopy')}}\n      <ContextMenu @disabled={{@dsl.isDragging}} as |cm|>\n        <LinkTo\n          @route='entity.builda-price.projects.project'\n          @model={{@item.id}}\n          class='project-card__card card shadow-sm text-dark p-3'\n          role='button'\n          data-test-project={{@item.id}}\n          context-menu={{cm.containerId}}\n          draggable={{and (not @disableDragging) (media 'isDesktop')}}\n        >\n          <div class='row align-items-center'>\n            {{#if (and (not @disableDragging) (not (media 'isDesktop')))}}\n              <@dsl.DragHandle class='col-1 me-3 fs-4'>\n                <FaIcon @icon='grip-vertical' @fixedWidth={{true}} @size='lg' />\n              </@dsl.DragHandle>\n            {{/if}}\n  \n            <div\n              class='col project-card__project-name fs-2'\n              data-test-project-card-name\n            >\n              {{@item.name}}\n            </div>\n  \n            {{#if (media 'isDesktop')}}\n              <div class='col-1 fs-5'>\n                {{#if @item.projectReference}}\n                  {{@item.projectReference}}\n                {{else}}\n                  —\n                {{/if}}\n              </div>\n  \n              <div class='col-3 fs-5'>\n                {{#if @item.address}}\n                  {{@item.address}}\n                {{else}}\n                  —\n                {{/if}}\n              </div>\n  \n              <div class='col-2 fs-5'>\n                {{#if @item.startDate}}\n                  {{moment-format @item.startDate (t 'date.shortWithWeekday')}}\n                {{else}}\n                  —\n                {{/if}}\n              </div>\n            {{/if}}\n            <div class='col-lg-2 col-3 d-flex justify-content-center'>\n              <span\n                class='badge rounded-pill fs-6 px-3 py-2\n                  {{if (eq @item.status \"OPEN\") \"bg-success\"}}\n                  {{if (eq @item.status \"CLOSED\") \"bg-danger\"}}\n                  {{if (eq @item.status \"HELD\") \"bg-warning text-dark\"}}\n                  {{if (eq @item.status \"ARCHIVED\") \"bg-secondary\"}}\n                  '\n              >\n                {{project-status-label @item.status}}\n              </span>\n            </div>\n  \n            <div\n              context-menu={{cm.buttonId}}\n              class='col-1 d-flex align-items-center justify-content-center'\n            >\n              <FaIcon @icon='ellipsis-h' class='fs-3' />\n            </div>\n          </div>\n  \n          <cm.Menu>\n            {{! template-lint-disable no-nested-interactive }}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap py-2 px-3'\n              {{on 'click' this.openDuplicateProjectModal}}\n            >{{t 'common.Duplicate'}}</button>\n          </cm.Menu>\n        </LinkTo>\n      </ContextMenu>\n    {{else}}\n      <LinkTo\n        @route='entity.builda-price.projects.project'\n        @model={{@item.id}}\n        class='project-card__card card shadow-sm text-dark p-3'\n        role='button'\n        data-test-project={{@item.id}}\n        context-menu={{this.cm.containerId}}\n        draggable={{and (not @disableDragging) (media 'isDesktop')}}\n      >\n        <div class='row align-items-center'>\n          {{#if (and (not @disableDragging) (not (media 'isDesktop')))}}\n            <@dsl.DragHandle class='col-1 me-3 fs-4'>\n              <FaIcon @icon='grip-vertical' @fixedWidth={{true}} @size='lg' />\n            </@dsl.DragHandle>\n          {{/if}}\n  \n          <div\n            class='col project-card__project-name fs-2'\n            data-test-project-card-name\n          >\n            {{@item.name}}\n          </div>\n  \n          {{#if (media 'isDesktop')}}\n            <div class='col-2 fs-5'>\n              {{#if @item.projectReference}}\n                {{@item.projectReference}}\n              {{else}}\n                —\n              {{/if}}\n            </div>\n  \n            <div class='col-3 fs-5'>\n              {{#if @item.address}}\n                {{@item.address}}\n              {{else}}\n                —\n              {{/if}}\n            </div>\n  \n            <div class='col-2 fs-5'>\n              {{#if @item.startDate}}\n                {{moment-format @item.startDate (t 'date.shortWithWeekday')}}\n              {{else}}\n                —\n              {{/if}}\n            </div>\n          {{/if}}\n          <div class='col-lg-2 col-3 d-flex justify-content-center'>\n            <span\n              class='badge rounded-pill fs-6 px-3 py-2\n                {{if (eq @item.status \"OPEN\") \"bg-success\"}}\n                {{if (eq @item.status \"CLOSED\") \"bg-danger\"}}\n                {{if (eq @item.status \"HELD\") \"bg-warning text-dark\"}}\n                {{if (eq @item.status \"ARCHIVED\") \"bg-secondary\"}}\n                '\n            >\n              {{project-status-label @item.status}}\n            </span>\n          </div>\n        </div>\n      </LinkTo>\n    {{/if}}\n  </@dsl.Draggable>\n  \n  {{#if this.duplicateProjectChangeset}}\n    <ModalDialog\n      @onClose={{fn (mut this.duplicateProjectChangeset) null}}\n      @containerClass='modal-dialog'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-content'>\n        <div class='modal-header'>\n          <h5 class='modal-title'>{{t 'common.Duplicate project'}}</h5>\n        </div>\n        <div class='modal-body'>\n          <PtlInput\n            @type='text'\n            @label={{t 'common.New project name'}}\n            @key='projectName'\n            placeholder={{@item.name}}\n            @model={{this.duplicateProjectChangeset}}\n            @required={{true}}\n            disabled={{this.duplicateProject.isRunning}}\n            @forceValidationVisible={{gt this.duplicateProject.performCount 0}}\n          />\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'common.Copy the budget'}}\n            @key='copyBudget'\n            @model={{this.duplicateProjectChangeset}}\n            disabled={{this.duplicateProject.isRunning}}\n            @forceValidationVisible={{gt this.duplicateProject.performCount 0}}\n          />\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'common.Copy the quote'}}\n            @key='copyQuote'\n            @model={{this.duplicateProjectChangeset}}\n            disabled={{this.duplicateProject.isRunning}}\n            @forceValidationVisible={{gt this.duplicateProject.performCount 0}}\n          />\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'common.Copy the schedule'}}\n            @key='copySchedule'\n            @model={{this.duplicateProjectChangeset}}\n            disabled={{this.duplicateProject.isRunning}}\n            @forceValidationVisible={{gt this.duplicateProject.performCount 0}}\n          />\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'common.Copy the products'}}\n            @key='copyProducts'\n            @model={{this.duplicateProjectChangeset}}\n            disabled={{this.duplicateProject.isRunning}}\n            @forceValidationVisible={{gt this.duplicateProject.performCount 0}}\n          />\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'common.Copy assignments'}}\n            @description={{t 'common.copyAssignmentsExplanation'}}\n            @key='copyPeople'\n            @model={{this.duplicateProjectChangeset}}\n            disabled={{this.duplicateProject.isRunning}}\n            @forceValidationVisible={{gt this.duplicateProject.performCount 0}}\n          />\n        </div>\n        <div class='modal-footer text-right'>\n          {{#unless this.duplicateProject.isRunning}}\n            <button\n              class='btn btn-secondary'\n              type='button'\n              {{on 'click' (fn (mut this.duplicateProjectChangeset) null)}}\n            >\n              {{t 'common.Cancel'}}\n            </button>\n          {{/unless}}\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on 'click' (perform this.duplicateProject)}}\n            disabled={{this.duplicateProject.isRunning}}\n          >\n            {{#if this.duplicateProject.isRunning}}\n              {{t 'common.Duplicating'}}&hellip;\n            {{else}}\n              {{t 'common.Duplicate project'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if @dsl.isDroppingBelow}}\n    <@dsl.Separator />\n  {{/if}}\n  */\n  {\n    \"id\": \"7tmXuYER\",\n    \"block\": \"[[[41,[30,1,[\\\"isDroppingAbove\\\"]],[[[1,\\\"  \\\"],[8,[30,1,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[8,[30,1,[\\\"Draggable\\\"]],[[24,0,\\\"py-2\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"canUseProjectCopy\\\"],null],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@disabled\\\"],[[30,1,[\\\"isDragging\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,3],[[24,0,\\\"project-card__card card shadow-sm text-dark p-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-test-project\\\",[30,3,[\\\"id\\\"]]],[16,\\\"context-menu\\\",[30,2,[\\\"containerId\\\"]]],[16,\\\"draggable\\\",[28,[37,4],[[28,[37,5],[[30,4]],null],[28,[37,6],[\\\"isDesktop\\\"],null]],null]]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project\\\",[30,3,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[28,[37,5],[[30,4]],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"            \\\"],[8,[30,1,[\\\"DragHandle\\\"]],[[24,0,\\\"col-1 me-3 fs-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"grip-vertical\\\",true,\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col project-card__project-name fs-2\\\"],[14,\\\"data-test-project-card-name\\\",\\\"\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"col-1 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"projectReference\\\"]],[[[1,\\\"                \\\"],[1,[30,3,[\\\"projectReference\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                —\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"col-3 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"address\\\"]],[[[1,\\\"                \\\"],[1,[30,3,[\\\"address\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                —\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"startDate\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,9],[[30,3,[\\\"startDate\\\"]],[28,[37,10],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                —\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"col-lg-2 col-3 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[15,0,[29,[\\\"badge rounded-pill fs-6 px-3 py-2\\\\n                \\\",[52,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"OPEN\\\"],null],\\\"bg-success\\\"],\\\"\\\\n                \\\",[52,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"CLOSED\\\"],null],\\\"bg-danger\\\"],\\\"\\\\n                \\\",[52,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"HELD\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n                \\\",[52,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"ARCHIVED\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n                \\\"]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,13],[[30,3,[\\\"status\\\"]]],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[15,\\\"context-menu\\\",[30,2,[\\\"buttonId\\\"]]],[14,0,\\\"col-1 d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[24,0,\\\"fs-3\\\"]],[[\\\"@icon\\\"],[\\\"ellipsis-h\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[30,2,[\\\"Menu\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap py-2 px-3\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"openDuplicateProjectModal\\\"]]],null],[12],[1,[28,[35,10],[\\\"common.Duplicate\\\"],null]],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,3],[[24,0,\\\"project-card__card card shadow-sm text-dark p-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-test-project\\\",[30,3,[\\\"id\\\"]]],[16,\\\"context-menu\\\",[30,0,[\\\"cm\\\",\\\"containerId\\\"]]],[16,\\\"draggable\\\",[28,[37,4],[[28,[37,5],[[30,4]],null],[28,[37,6],[\\\"isDesktop\\\"],null]],null]]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project\\\",[30,3,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[28,[37,5],[[30,4]],null],[28,[37,5],[[28,[37,6],[\\\"isDesktop\\\"],null]],null]],null],[[[1,\\\"          \\\"],[8,[30,1,[\\\"DragHandle\\\"]],[[24,0,\\\"col-1 me-3 fs-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"grip-vertical\\\",true,\\\"lg\\\"]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col project-card__project-name fs-2\\\"],[14,\\\"data-test-project-card-name\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"projectReference\\\"]],[[[1,\\\"              \\\"],[1,[30,3,[\\\"projectReference\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"col-3 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"address\\\"]],[[[1,\\\"              \\\"],[1,[30,3,[\\\"address\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"startDate\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,9],[[30,3,[\\\"startDate\\\"]],[28,[37,10],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"col-lg-2 col-3 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[15,0,[29,[\\\"badge rounded-pill fs-6 px-3 py-2\\\\n              \\\",[52,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"OPEN\\\"],null],\\\"bg-success\\\"],\\\"\\\\n              \\\",[52,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"CLOSED\\\"],null],\\\"bg-danger\\\"],\\\"\\\\n              \\\",[52,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"HELD\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n              \\\",[52,[28,[37,12],[[30,3,[\\\"status\\\"]],\\\"ARCHIVED\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n              \\\"]]],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,13],[[30,3,[\\\"status\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"duplicateProjectChangeset\\\"]],[[[1,\\\"  \\\"],[8,[39,16],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,17],[[28,[37,18],[[30,0,[\\\"duplicateProjectChangeset\\\"]]],null],null],null],\\\"modal-dialog\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,[28,[35,10],[\\\"common.Duplicate project\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,20],[[16,\\\"placeholder\\\",[30,3,[\\\"name\\\"]]],[16,\\\"disabled\\\",[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,10],[\\\"common.New project name\\\"],null],\\\"projectName\\\",[30,0,[\\\"duplicateProjectChangeset\\\"]],true,[28,[37,21],[[30,0,[\\\"duplicateProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,20],[[16,\\\"disabled\\\",[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,10],[\\\"common.Copy the budget\\\"],null],\\\"copyBudget\\\",[30,0,[\\\"duplicateProjectChangeset\\\"]],[28,[37,21],[[30,0,[\\\"duplicateProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,20],[[16,\\\"disabled\\\",[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,10],[\\\"common.Copy the quote\\\"],null],\\\"copyQuote\\\",[30,0,[\\\"duplicateProjectChangeset\\\"]],[28,[37,21],[[30,0,[\\\"duplicateProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,20],[[16,\\\"disabled\\\",[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,10],[\\\"common.Copy the schedule\\\"],null],\\\"copySchedule\\\",[30,0,[\\\"duplicateProjectChangeset\\\"]],[28,[37,21],[[30,0,[\\\"duplicateProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,20],[[16,\\\"disabled\\\",[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,10],[\\\"common.Copy the products\\\"],null],\\\"copyProducts\\\",[30,0,[\\\"duplicateProjectChangeset\\\"]],[28,[37,21],[[30,0,[\\\"duplicateProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,20],[[16,\\\"disabled\\\",[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,10],[\\\"common.Copy assignments\\\"],null],[28,[37,10],[\\\"common.copyAssignmentsExplanation\\\"],null],\\\"copyPeople\\\",[30,0,[\\\"duplicateProjectChangeset\\\"]],[28,[37,21],[[30,0,[\\\"duplicateProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"duplicateProjectChangeset\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,23],[[30,0,[\\\"duplicateProject\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"duplicateProject\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Duplicating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Duplicate project\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isDroppingBelow\\\"]],[[[1,\\\"  \\\"],[8,[30,1,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@dsl\\\",\\\"cm\\\",\\\"@item\\\",\\\"@disableDragging\\\"],false,[\\\"if\\\",\\\"includes-feature-flags\\\",\\\"context-menu\\\",\\\"link-to\\\",\\\"and\\\",\\\"not\\\",\\\"media\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"moment-format\\\",\\\"t\\\",\\\"span\\\",\\\"eq\\\",\\\"project-status-label\\\",\\\"button\\\",\\\"on\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"h5\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"unless\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/components/project-card.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"duplicateProjectChangeset\", _descriptor4, this);\n      _defineProperty(this, \"duplicateProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.duplicateProjectChangeset.validate();\n            if (this.duplicateProjectChangeset.isInvalid) {\n              this.notifications.warning('Please complete the form');\n              return;\n            }\n            this.duplicateProjectChangeset.execute();\n            const projectId = yield this.buildaPrice.duplicateProject(this.args.item.id, this.duplicateProjectChangeset.data);\n            this.duplicateProjectChangeset = null;\n            this.router.transitionTo('entity.builda-price.projects.project', projectId);\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong while duplicating the project',\n              error\n            });\n          }\n        }\n      }), null, \"duplicateProject\", null));\n    }\n    validateBool(newValue, oldValue) {\n      const value = newValue ?? oldValue;\n      return typeof value === 'boolean' || 'Please provide a valid option';\n    }\n    validateName(newValue, oldValue) {\n      const name = (newValue ?? oldValue) || '';\n      return name.length > 1 || 'Please provide a valid project name';\n    }\n    openDuplicateProjectModal(e) {\n      e.preventDefault();\n      e.stopPropagation();\n      this.duplicateProjectChangeset = (0, _emberChangeset.Changeset)({\n        projectName: '',\n        copyBudget: true,\n        copyQuote: true,\n        copySchedule: true,\n        copyProducts: true,\n        copyPeople: true\n      }, ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'projectName':\n            return this.validateName(newValue, oldValue);\n          case 'copyBudget':\n            return this.validateBool(newValue, oldValue);\n          case 'copyQuote':\n            return this.validateBool(newValue, oldValue);\n          case 'copySchedule':\n            return this.validateBool(newValue, oldValue);\n          case 'copyProducts':\n            return this.validateBool(newValue, oldValue);\n          case 'copyPeople':\n            return this.validateBool(newValue, oldValue);\n        }\n      }, {\n        projectName: this.validateName,\n        copyBudget: this.validateBool,\n        copyQuote: this.validateBool,\n        copySchedule: this.validateBool,\n        copyProducts: this.validateBool,\n        copyPeople: this.validateBool\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"duplicateProjectChangeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"openDuplicateProjectModal\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openDuplicateProjectModal\"), _class.prototype), _class));\n});","define(\"portal/components/project-change-set-description\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='d-flex flex-column'>\n    {{! man hours }}\n    {{#unless @hideManHours}}\n      {{#if @changeSet.manHoursDiff}}\n        <div class='d-flex align-items-center fs-5 my-2'>\n          {{#if (or @version.manHours 0)}}\n            <div class='badge badge-pill bg-warning me-2'>\n              {{t 'common.Modify'}}\n            </div>\n          {{else}}\n            <div class='badge badge-pill bg-success me-2'>\n              {{t 'common.Create'}}\n            </div>\n          {{/if}}\n  \n          <span class='me-2'>\n            <b>{{t 'common.Labour hours'}}</b>\n          </span>\n          <span class='me-2'>\n            {{format-duration (or @version.manHours 0) emptyPlaceholder='0:00'}}\n          </span>\n          <span class='me-2'>\n            <FaIcon @icon='long-arrow-alt-right' @size='lg' />\n          </span>\n          {{format-duration\n            (math @changeSet.manHoursDiff '+' (or @version.manHours 0))\n            emptyPlaceholder='0:00'\n          }}\n        </div>\n      {{/if}}\n    {{/unless}}\n  \n    {{! labour }}\n    {{#if @changeSet.labourDiff}}\n      <div class='d-flex align-items-center fs-5 my-2'>\n        {{#if (or @version.labour 0)}}\n          <div class='badge badge-pill bg-warning me-2'>\n            {{t 'common.Modify'}}\n          </div>\n        {{else}}\n          <div class='badge badge-pill bg-success me-2'>\n            {{t 'common.Create'}}\n          </div>\n        {{/if}}\n  \n        <span class='me-2'>\n          <b>{{t 'common.Labour'}}</b>\n        </span>\n        <span class='me-2'>\n          {{number-format (or @version.labour 0) dashZero=false style='currency'}}\n        </span>\n        <span class='me-2'>\n          <FaIcon @icon='long-arrow-alt-right' @size='lg' />\n        </span>\n        {{number-format\n          (math @changeSet.labourDiff '+' (or @version.labour 0))\n          style='currency'\n          dashZero=false\n        }}\n      </div>\n    {{/if}}\n  \n    {{! materials }}\n    {{#if @changeSet.materialsDiff}}\n      <div class='d-flex align-items-center fs-5 my-2'>\n        {{#if (or @version.materials 0)}}\n          <div class='badge badge-pill bg-warning me-2'>\n            {{t 'common.Modify'}}\n          </div>\n        {{else}}\n          <div class='badge badge-pill bg-success me-2'>\n            {{t 'common.Create'}}\n          </div>\n        {{/if}}\n  \n        <span class='me-2'>\n          <b>{{t 'common.Materials'}}</b>\n        </span>\n        <span class='me-2'>\n          {{number-format\n            (or @version.materials 0)\n            style='currency'\n            dashZero=false\n          }}\n        </span>\n        <span class='me-2'>\n          <FaIcon @icon='long-arrow-alt-right' @size='lg' />\n        </span>\n        {{number-format\n          (math @changeSet.materialsDiff '+' (or @version.materials 0))\n          style='currency'\n          dashZero=false\n        }}\n      </div>\n    {{/if}}\n  \n    {{! subcontractors }}\n    {{#if @changeSet.subcontractorsDiff}}\n      <div class='d-flex align-items-center fs-5 my-2'>\n        {{#if (or @version.subcontractors 0)}}\n          <div class='badge badge-pill bg-warning me-2'>\n            {{t 'common.Modify'}}\n          </div>\n        {{else}}\n          <div class='badge badge-pill bg-success me-2'>\n            {{t 'common.Create'}}\n          </div>\n        {{/if}}\n  \n        <span class='me-2'>\n          <b>{{t 'common.Subcontractors'}}</b>\n        </span>\n        <span class='me-2'>\n          {{number-format\n            (or @version.subcontractors 0)\n            style='currency'\n            dashZero=false\n          }}\n        </span>\n        <span class='me-2'>\n          <FaIcon @icon='long-arrow-alt-right' @size='lg' />\n        </span>\n        {{number-format\n          (math @changeSet.subcontractorsDiff '+' (or @version.subcontractors 0))\n          style='currency'\n          dashZero=false\n        }}\n      </div>\n    {{/if}}\n  \n    {{! sums }}\n    {{#if @changeSet.sumsDiff}}\n      <div class='d-flex align-items-center fs-5 my-2'>\n        {{#if (or @version.sums 0)}}\n          <div class='badge badge-pill bg-warning me-2'>\n            {{t 'common.Modify'}}\n          </div>\n        {{else}}\n          <div class='badge badge-pill bg-success me-2'>\n            {{t 'common.Create'}}\n          </div>\n        {{/if}}\n  \n        <span class='me-2'>\n          <b>{{t 'common.Sums'}}</b>\n        </span>\n        <span class='me-2'>\n          {{number-format (or @version.sums 0) style='currency' dashZero=false}}\n        </span>\n        <span class='me-2'>\n          <FaIcon @icon='long-arrow-alt-right' @size='lg' />\n        </span>\n        {{number-format\n          (math @changeSet.sumsDiff '+' (or @version.sums 0))\n          style='currency'\n          dashZero=false\n        }}\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"L7pg55cp\",\n    \"block\": \"[[[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,1]],[[[41,[30,2,[\\\"manHoursDiff\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center fs-5 my-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,3,[\\\"manHours\\\"]],0],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"badge badge-pill bg-warning me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Modify\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"badge badge-pill bg-success me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,4],[\\\"common.Labour hours\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[[28,[37,3],[[30,3,[\\\"manHours\\\"]],0],null]],[[\\\"emptyPlaceholder\\\"],[\\\"0:00\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"long-arrow-alt-right\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[1,[28,[35,7],[[28,[37,9],[[30,2,[\\\"manHoursDiff\\\"]],\\\"+\\\",[28,[37,3],[[30,3,[\\\"manHours\\\"]],0],null]],null]],[[\\\"emptyPlaceholder\\\"],[\\\"0:00\\\"]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"labourDiff\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex align-items-center fs-5 my-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,3,[\\\"labour\\\"]],0],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"badge badge-pill bg-warning me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Modify\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"badge badge-pill bg-success me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[[28,[37,3],[[30,3,[\\\"labour\\\"]],0],null]],[[\\\"dashZero\\\",\\\"style\\\"],[false,\\\"currency\\\"]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"long-arrow-alt-right\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[1,[28,[35,10],[[28,[37,9],[[30,2,[\\\"labourDiff\\\"]],\\\"+\\\",[28,[37,3],[[30,3,[\\\"labour\\\"]],0],null]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"materialsDiff\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex align-items-center fs-5 my-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,3,[\\\"materials\\\"]],0],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"badge badge-pill bg-warning me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Modify\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"badge badge-pill bg-success me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[[28,[37,3],[[30,3,[\\\"materials\\\"]],0],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"long-arrow-alt-right\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[1,[28,[35,10],[[28,[37,9],[[30,2,[\\\"materialsDiff\\\"]],\\\"+\\\",[28,[37,3],[[30,3,[\\\"materials\\\"]],0],null]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"subcontractorsDiff\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex align-items-center fs-5 my-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,3,[\\\"subcontractors\\\"]],0],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"badge badge-pill bg-warning me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Modify\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"badge badge-pill bg-success me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[[28,[37,3],[[30,3,[\\\"subcontractors\\\"]],0],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"long-arrow-alt-right\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[1,[28,[35,10],[[28,[37,9],[[30,2,[\\\"subcontractorsDiff\\\"]],\\\"+\\\",[28,[37,3],[[30,3,[\\\"subcontractors\\\"]],0],null]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"sumsDiff\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex align-items-center fs-5 my-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,3,[\\\"sums\\\"]],0],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"badge badge-pill bg-warning me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Modify\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"badge badge-pill bg-success me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,4],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[[28,[37,3],[[30,3,[\\\"sums\\\"]],0],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"long-arrow-alt-right\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[1,[28,[35,10],[[28,[37,9],[[30,2,[\\\"sumsDiff\\\"]],\\\"+\\\",[28,[37,3],[[30,3,[\\\"sums\\\"]],0],null]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@hideManHours\\\",\\\"@changeSet\\\",\\\"@version\\\"],false,[\\\"div\\\",\\\"unless\\\",\\\"if\\\",\\\"or\\\",\\\"t\\\",\\\"span\\\",\\\"b\\\",\\\"format-duration\\\",\\\"fa-icon\\\",\\\"math\\\",\\\"number-format\\\"]]\",\n    \"moduleName\": \"portal/components/project-change-set-description.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/project-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PopUp\n    @visible={{this.showSelector}}\n    @onClose={{fn (mut this.showSelector) false}}\n    class='mb-3 project-selector__container'\n    as |pu|\n  >\n    <div\n      role='button'\n      class='project-selector__selector-dropdown border rounded bg-white px-3 pe-4 py-2 text-truncate'\n      {{on 'click' (fn (mut this.showSelector) true)}}\n      data-test-project-selector-dropdown-button\n    >\n      {{#if @selectedProjectIsLoading}}\n        {{t 'common.Loading project'}}&hellip;\n      {{else}}\n        {{@selectedProject.name}}\n      {{/if}}\n    </div>\n  \n    <pu.Content class='project-selector__content dropdown-menu'>\n      <LinkTo\n        @route={{@backToProjectsRoute}}\n        draggable={{false}}\n        class='dropdown-item text-nowrap bg-transparent text-dark fs-5 mt-2'\n      >\n        <FaIcon @icon='arrow-left' @fixedWidth={{true}} />&nbsp;&nbsp;{{t\n          'common.Back to projects'\n        }}\n      </LinkTo>\n  \n      {{#if @openProjectsIsLoading}}\n        <LoadingIcon @type='ripple' @class='p-2' />\n      {{else}}\n        <div class='dropdown-header fs-5'>{{t 'common.Open projects'}}</div>\n        {{#each @openProjects as |project|}}\n          <LinkTo\n            @route={{this.currentRouteName}}\n            @model={{project.id}}\n            draggable={{false}}\n            class='dropdown-item text-nowrap fs-5 text-truncate\n              {{if (eq @selectedProject.id project.id) \" active\"}}'\n            data-test-project-selector-project-link\n          >\n            <FaIcon\n              @icon='check'\n              class={{if\n                (eq @selectedProject.id project.id)\n                'visible'\n                'invisible'\n              }}\n            />\n            &nbsp;&nbsp;{{project.name}}\n          </LinkTo>\n        {{else}}\n          <p class='text-center' data-test-project-selector-no-projects>\n            {{t 'common.No open projects'}}\n          </p>\n        {{/each}}\n      {{/if}}\n    </pu.Content>\n  </PopUp>\n  */\n  {\n    \"id\": \"0SkMRzDr\",\n    \"block\": \"[[[8,[39,0],[[24,0,\\\"mb-3 project-selector__container\\\"]],[[\\\"@visible\\\",\\\"@onClose\\\"],[[30,0,[\\\"showSelector\\\"]],[28,[37,1],[[28,[37,2],[[30,0,[\\\"showSelector\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"project-selector__selector-dropdown border rounded bg-white px-3 pe-4 py-2 text-truncate\\\"],[24,\\\"data-test-project-selector-dropdown-button\\\",\\\"\\\"],[4,[38,4],[\\\"click\\\",[28,[37,1],[[28,[37,2],[[30,0,[\\\"showSelector\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\"      \\\"],[1,[28,[35,6],[\\\"common.Loading project\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"Content\\\"]],[[24,0,\\\"project-selector__content dropdown-menu\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,7],[[16,\\\"draggable\\\",false],[24,0,\\\"dropdown-item text-nowrap bg-transparent text-dark fs-5 mt-2\\\"]],[[\\\"@route\\\"],[[30,4]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"arrow-left\\\",true]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Back to projects\\\"],null]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,5],[[[1,\\\"      \\\"],[8,[39,9],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"p-2\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"dropdown-header fs-5\\\"],[12],[1,[28,[35,6],[\\\"common.Open projects\\\"],null]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,6]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,7],[[16,\\\"draggable\\\",false],[16,0,[29,[\\\"dropdown-item text-nowrap fs-5 text-truncate\\\\n            \\\",[52,[28,[37,12],[[30,3,[\\\"id\\\"]],[30,7,[\\\"id\\\"]]],null],\\\" active\\\"]]]],[24,\\\"data-test-project-selector-project-link\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,0,[\\\"currentRouteName\\\"]],[30,7,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,8],[[16,0,[52,[28,[37,12],[[30,3,[\\\"id\\\"]],[30,7,[\\\"id\\\"]]],null],\\\"visible\\\",\\\"invisible\\\"]]],[[\\\"@icon\\\"],[\\\"check\\\"]],null],[1,\\\"\\\\n            \\\"],[1,[30,7,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[7]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"text-center\\\"],[14,\\\"data-test-project-selector-no-projects\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.No open projects\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"pu\\\",\\\"@selectedProjectIsLoading\\\",\\\"@selectedProject\\\",\\\"@backToProjectsRoute\\\",\\\"@openProjectsIsLoading\\\",\\\"@openProjects\\\",\\\"project\\\"],false,[\\\"pop-up\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"on\\\",\\\"if\\\",\\\"t\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"loading-icon\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/project-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    get currentRouteName() {\n      const routeName = this.router.currentRouteName;\n\n      // if current route is inside addon, router is not able to determine where to go and is bugging out\n      if (routeName?.includes('oss-portal-addon')) {\n        return 'entity.builda-price.projects.project.health-and-safety';\n      } else if (routeName?.includes('estimates')) {\n        return 'entity.builda-price.projects.project.estimates';\n      }\n\n      // the only dynamic parameters we can keep are the entity and project ids\n      let node = this.router.currentRoute;\n      let target = null;\n      while (node) {\n        const hasUnsharedParam = node.paramNames.some(name => !['id', 'project_id'].includes(name));\n        if (hasUnsharedParam) {\n          target = node.parent;\n        }\n        node = node.parent;\n      }\n      return target ? `${target.name}.index` : routeName;\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"showSelector\", _descriptor2, this);\n      _defineProperty(this, \"routeWillChangeHandler\", () => {\n        this.showSelector = false;\n      });\n      this.router.on('routeWillChange', this.routeWillChangeHandler);\n    }\n    willDestroy() {\n      this.router.off('routeWillChange', this.routeWillChangeHandler);\n      super.willDestroy(...arguments);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"showSelector\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class));\n});","define(\"portal/components/ptl-form\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='card p-3' ...attributes>\n    {{yield}}\n  </div>\n  */\n  {\n    \"id\": \"iBpUSK1c\",\n    \"block\": \"[[[11,0],[24,0,\\\"card p-3\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/ptl-form.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/ptl-input\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"moment\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _moment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"moment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! TODO ember-cli-update --to 3.20 }}\n  {{! https://github.com/poteto/ember-changeset/issues/558 }}\n  {{#if (and (eq @type 'checkbox') (eq @role 'switch'))}}\n    <div class={{or @containerClass 'form-check form-switch mb-3'}}>\n      <Input\n        class='form-check-input\n          {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n        id={{@key}}\n        name={{@key}}\n        @type={{'checkbox'}}\n        role={{@role}}\n        @checked={{get @model @key}}\n        {{on 'blur' (fn (mut this.hasBlurred) true)}}\n        {{on 'change' (fn this.onChange (get @model @key))}}\n        autocomplete='off'\n        {{! '...attributes' automatically merges props }}\n        ...attributes\n        data-test-ptl-input-input\n      />\n      {{#if @label}}\n        <label class={{@labelClass}} for={{@key}} data-test-ptl-input-label>\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{! TODO fix this }}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  \n  {{else if (eq @type 'checkbox')}}\n    <div class={{or @containerClass 'form-check mb-3'}}>\n      <Input\n        class='form-check-input\n          {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n        id={{@key}}\n        name={{@key}}\n        @type={{@type}}\n        @checked={{or @checked (get @model @key)}}\n        {{on 'blur' (fn (mut this.hasBlurred) true)}}\n        {{on 'change' this.onCheckBoxChange}}\n        autocomplete='off'\n        {{! '...attributes' automatically merges props }}\n        ...attributes\n        data-test-ptl-input-input\n      />\n      {{#if @label}}\n        <label class={{@labelClass}} for={{@key}} data-test-ptl-input-label>\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'radio')}}\n    <div class={{or @containerClass 'form-check mb-3'}}>\n      <input\n        class='form-check-input\n          {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n        type='radio'\n        name={{@key}}\n        id={{@id}}\n        checked={{eq (get @model @key) @value}}\n        onchange={{fn this.onRadioInputChange @value}}\n        onblur={{fn (mut this.hasBlurred) true}}\n        value={{@value}}\n        autocomplete='off'\n        ...attributes\n        data-test-ptl-input-input\n      />\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@id}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;{{info-popup text=@toolTip}}{{/if}}\n        </label>\n      {{/if}}\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'range')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'form-label'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      <Input\n        class='form-range\n          {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n        id={{@key}}\n        name={{@key}}\n        @type='range'\n        @value={{get @model @key}}\n        min={{@min}}\n        max={{@max}}\n        step={{@step}}\n        {{on 'blur' (fn (mut this.hasBlurred) true)}}\n        {{on 'change' (fn this.onChange (get @model @key))}}\n        autocomplete='off'\n        {{! '...attributes' automatically merges props }}\n        ...attributes\n        data-test-ptl-input-input\n      />\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div\n          class='form-text text-muted'\n          data-test-ptl-input-description\n        >{{@description}}</div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'textarea')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      <Textarea\n        class='form-control\n          {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n        name={{@key}}\n        @value={{get @model @key}}\n        {{on 'blur' (fn (mut this.hasBlurred) true)}}\n        {{on 'change' (fn this.onChange (get @model @key))}}\n        autocomplete='off'\n        {{! '...attributes' automatically merges props }}\n        ...attributes\n        data-test-ptl-input-input\n      />\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div\n          class='form-text text-muted'\n          data-test-ptl-input-description\n        >{{@description}}</div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'currency')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      <div class='input-group'>\n        <FormattedInput\n          @class='form-control {{if\n            (and (not this.validationHidden) this.isInvalid)\n            \" is-invalid\"\n          }}'\n          @name={{@key}}\n          @format='currency'\n          @formatterOptions={{@formatterOptions}}\n          @number={{get @model @key}}\n          @update={{this.onFormattedInputUpdate}}\n          autocomplete='off'\n          ...attributes\n          data-test-ptl-input-input\n          {{on 'blur' (fn (mut this.hasBlurred) true)}}\n        />\n        {{#if @inputGroupText}}\n          <span class='input-group-text text-muted'>{{@inputGroupText}}</span>\n        {{/if}}\n      </div>\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div\n          class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'\n          data-test-ptl-input-description\n        >\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'percentage')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      <div class='input-group'>\n        <FormattedInput\n          @class='form-control {{if\n            (and (not this.validationHidden) this.isInvalid)\n            \"is-invalid\"\n          }}'\n          @name={{@key}}\n          @format='percentage'\n          @formatterOptions={{hash dashZero=false}}\n          @number={{get @model @key}}\n          @update={{this.onFormattedInputUpdate}}\n          autocomplete='off'\n          ...attributes\n          data-test-ptl-input-input\n          {{on 'blur' (fn (mut this.hasBlurred) true)}}\n        />\n        {{#if @inputGroupText}}\n          <span\n            class='input-group-text text-muted'\n          >{{@inputGroupText}}</span>{{/if}}\n      </div>\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'duration')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      <DurationInput\n        @duration={{get @model @key}}\n        @selectOnFocus={{true}}\n        @class='form-control {{if\n          (and (not this.validationHidden) this.isInvalid)\n          \" is-invalid\"\n        }}'\n        @onDurationChange={{this.onDurationInputChange}}\n        autocomplete='off'\n        ...attributes\n        data-test-ptl-input-input\n      />\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div\n          class='form-text text-muted'\n          data-test-ptl-input-description\n        >{{@description}}</div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'date')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      <div class='input-group'>\n        <input\n          class='form-control\n            {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n          name={{@key}}\n          type='date'\n          value={{this.formattedDate}}\n          {{on 'blur' (fn (mut this.hasBlurred) true)}}\n          {{on 'change' this.onDateInputChange}}\n          autocomplete='off'\n          {{! '...attributes' automatically merges props }}\n          ...attributes\n          data-test-ptl-input-input\n        />\n        {{#if @inputGroupText}}\n          <span class='input-group-text text-muted'>{{@inputGroupText}}</span>\n        {{/if}}\n      </div>\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'datetime')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      <div class='input-group'>\n        <input\n          class='form-control\n            {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n          name={{@key}}\n          type='datetime-local'\n          value={{this.formattedDateTime}}\n          {{on 'blur' (fn (mut this.hasBlurred) true)}}\n          {{on 'change' this.onDateInputChange}}\n          autocomplete='off'\n          {{! '...attributes' automatically merges props }}\n          ...attributes\n          data-test-ptl-input-input\n        />\n        {{#if @inputGroupText}}\n          <span class='input-group-text text-muted'>{{@inputGroupText}}</span>\n        {{/if}}\n      </div>\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'powerSelect')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n  \n      <PowerSelect\n        {{! TODO this needs to work }}\n        {{!-- @class='form-control select-box d-block\n          {{if (and (not validationHidden) this.isInvalid) 'is-invalid'}}' --}}\n        @options={{@options}}\n        @selected={{get @model @key}}\n        @onBlur={{fn (mut this.hasBlurred) true}}\n        @onChange={{this.onPowerSelectorChange}}\n        @disabled={{@disabled}}\n        @searchEnabled={{@searchEnabled}}\n        @searchField={{@searchField}}\n        @placeholder={{@placeholder}}\n        @allowClear={{@allowClear}}\n        @afterOptionsComponent={{@afterOptionsComponent}}\n        data-test-ptl-input-power-select=''\n        autocomplete='off'\n        ...attributes\n        as |option|\n      >\n        {{#each @optionKeys as |key|}}\n          {{get option key}}\n        {{/each}}\n      </PowerSelect>\n  \n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'powerSelectMultiple')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n  \n      <PowerSelectMultiple\n        {{! TODO this needs to work }}\n        {{!-- @class='form-control select-box d-block\n          {{if (and (not this.validationHidden) this.isInvalid) 'is-invalid'}}' --}}\n        @options={{@options}}\n        @selected={{get @model @key}}\n        @onBlur={{fn (mut this.hasBlurred) true}}\n        @onChange={{this.onPowerSelectorChange}}\n        @disabled={{@disabled}}\n        @searchEnabled={{@searchEnabled}}\n        @searchField={{@searchField}}\n        @placeholder={{@placeholder}}\n        data-test-ptl-input-power-select-multiple=''\n        autocomplete='off'\n        ...attributes\n        as |option|\n      >\n        {{#each @optionKeys as |key|}}\n          {{get option key}}\n        {{/each}}\n      </PowerSelectMultiple>\n  \n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'richtext')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n  \n      <RichTextEditor\n        @content={{get @model @key}}\n        @readOnly={{@disabled}}\n        @onChange={{this._onRichTextChange}}\n        @onBlur={{fn (mut this.hasBlurred) true}}\n        @height={{@height}}\n      />\n  \n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block'>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n  \n      {{#if @description}}\n        <div class='form-text text-muted'>{{@description}}</div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else if (eq @type 'select')}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n  \n      <SelectInput\n        @value={{get @model @key}}\n        class='form-control select-box d-block\n          {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n        @action={{fn (mut (get @model @key))}}\n        name={{@key}}\n        {{on 'blur' (fn (mut this.hasBlurred) true)}}\n        {{on 'change' this.onChange}}\n        autocomplete='off'\n        ...attributes\n        data-test-ptl-input-select=''\n        as |si|\n      >\n        {{#unless @selectNoBlankOption}}\n          <option value=''></option>\n        {{/unless}}\n        {{#each @options as |option|}}\n          <si.option @value={{option.value}}>{{option.label}}</si.option>\n        {{/each}}\n      </SelectInput>\n  \n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{else}}\n    <div class={{or @containerClass 'mb-3'}}>\n      {{#if @label}}\n        <label\n          class={{or @labelClass 'mb-1'}}\n          for={{@key}}\n          data-test-ptl-input-label\n        >\n          {{@label}}\n          {{#if @required}}<sup class='text-danger'>*</sup>{{/if}}\n          {{#if @toolTip}}&nbsp;<InfoPopup @text={{@toolTip}} />{{/if}}\n        </label>\n      {{/if}}\n      <div class='input-group'>\n        <Input\n          class='form-control\n            {{if (and (not this.validationHidden) this.isInvalid) \"is-invalid\"}}'\n          name={{@key}}\n          @type={{@type}}\n          @value={{get @model @key}}\n          {{on 'blur' (fn (mut this.hasBlurred) true)}}\n          {{on 'change' (fn this.onChange (get @model @key))}}\n          autocomplete='off'\n          {{! '...attributes' automatically merges props }}\n          ...attributes\n          data-test-ptl-input-input\n        />\n        {{#if @inputGroupText}}\n          <span class='input-group-text text-muted'>{{@inputGroupText}}</span>\n        {{/if}}\n      </div>\n      {{#unless this.validationHidden}}\n        {{#each this.errors as |error|}}\n          <div class='invalid-feedback d-block' data-test-ptl-input-error>\n            {{html-safe error.validation}}\n          </div>\n        {{/each}}\n      {{/unless}}\n      {{#if @description}}\n        <div class='form-text text-muted' data-test-ptl-input-description>\n          {{@description}}\n        </div>\n      {{/if}}\n      {{#if @warningText}}\n        <div class='form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2'>\n          {{@warningText}}\n        </div>\n      {{/if}}\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"zPTgzuvg\",\n    \"block\": \"[[[41,[28,[37,1],[[28,[37,2],[[30,1],\\\"checkbox\\\"],null],[28,[37,2],[[30,2],\\\"switch\\\"],null]],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"form-check form-switch mb-3\\\"],null]],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],[[16,0,[29,[\\\"form-check-input\\\\n        \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[16,1,[30,4]],[16,3,[30,4]],[16,\\\"role\\\",[30,2]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null],[4,[38,8],[\\\"change\\\",[28,[37,9],[[30,0,[\\\"onChange\\\"]],[28,[37,7],[[30,6],[30,4]],null]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,7],[[30,6],[30,4]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[30,8]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,11,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"checkbox\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"form-check mb-3\\\"],null]],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],[[16,0,[29,[\\\"form-check-input\\\\n        \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[16,1,[30,4]],[16,3,[30,4]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null],[4,[38,8],[\\\"change\\\",[30,0,[\\\"onCheckBoxChange\\\"]]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[[30,1],[28,[37,4],[[30,14],[28,[37,7],[[30,6],[30,4]],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[30,8]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,15,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[15]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"radio\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"form-check mb-3\\\"],null]],[12],[1,\\\"\\\\n    \\\"],[11,\\\"input\\\"],[16,0,[29,[\\\"form-check-input\\\\n        \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[24,4,\\\"radio\\\"],[16,3,[30,4]],[16,1,[30,16]],[16,\\\"checked\\\",[28,[37,2],[[28,[37,7],[[30,6],[30,4]],null],[30,17]],null]],[16,\\\"onchange\\\",[28,[37,9],[[30,0,[\\\"onRadioInputChange\\\"]],[30,17]],null]],[16,\\\"onblur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],[16,2,[30,17]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,16]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[1,[28,[35,13],null,[[\\\"text\\\"],[[30,10]]]]]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,18,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[18]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"range\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"form-label\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[8,[39,5],[[16,0,[29,[\\\"form-range\\\\n        \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[16,1,[30,4]],[16,3,[30,4]],[16,\\\"min\\\",[30,19]],[16,\\\"max\\\",[30,20]],[16,\\\"step\\\",[30,21]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null],[4,[38,8],[\\\"change\\\",[28,[37,9],[[30,0,[\\\"onChange\\\"]],[28,[37,7],[[30,6],[30,4]],null]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"range\\\",[28,[37,7],[[30,6],[30,4]],null]]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,22,[\\\"validation\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[22]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,[30,12]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"textarea\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[8,[39,18],[[16,0,[29,[\\\"form-control\\\\n        \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[16,3,[30,4]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null],[4,[38,8],[\\\"change\\\",[28,[37,9],[[30,0,[\\\"onChange\\\"]],[28,[37,7],[[30,6],[30,4]],null]],null]],null]],[[\\\"@value\\\"],[[28,[37,7],[[30,6],[30,4]],null]]],null],[1,\\\"\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,23,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[23]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,[30,12]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"currency\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,19],[[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null]],[[\\\"@class\\\",\\\"@name\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@update\\\"],[[29,[\\\"form-control \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\" is-invalid\\\"]]],[30,4],\\\"currency\\\",[30,24],[28,[37,7],[[30,6],[30,4]],null],[30,0,[\\\"onFormattedInputUpdate\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,25],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,[30,25]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,26,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[26]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"percentage\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,19],[[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null]],[[\\\"@class\\\",\\\"@name\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@update\\\"],[[29,[\\\"form-control \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]],[30,4],\\\"percentage\\\",[28,[37,21],null,[[\\\"dashZero\\\"],[false]]],[28,[37,7],[[30,6],[30,4]],null],[30,0,[\\\"onFormattedInputUpdate\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,25],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,[30,25]],[13]],[]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,27,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[27]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"duration\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[8,[39,22],[[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"]],[[\\\"@duration\\\",\\\"@selectOnFocus\\\",\\\"@class\\\",\\\"@onDurationChange\\\"],[[28,[37,7],[[30,6],[30,4]],null],true,[29,[\\\"form-control \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\" is-invalid\\\"]]],[30,0,[\\\"onDurationInputChange\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,28,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[28]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,[30,12]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"date\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"input\\\"],[16,0,[29,[\\\"form-control\\\\n          \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[16,3,[30,4]],[24,4,\\\"date\\\"],[16,2,[30,0,[\\\"formattedDate\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null],[4,[38,8],[\\\"change\\\",[30,0,[\\\"onDateInputChange\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,25],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,[30,25]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,29,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[29]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"datetime\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"input\\\"],[16,0,[29,[\\\"form-control\\\\n          \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[16,3,[30,4]],[24,4,\\\"datetime-local\\\"],[16,2,[30,0,[\\\"formattedDateTime\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null],[4,[38,8],[\\\"change\\\",[30,0,[\\\"onDateInputChange\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,25],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,[30,25]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,30,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[30]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"powerSelect\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[8,[39,23],[[24,\\\"data-test-ptl-input-power-select\\\",\\\"\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@onBlur\\\",\\\"@onChange\\\",\\\"@disabled\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\",\\\"@afterOptionsComponent\\\"],[[30,31],[28,[37,7],[[30,6],[30,4]],null],[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null],[30,0,[\\\"onPowerSelectorChange\\\"]],[30,32],[30,33],[30,34],[30,35],[30,36],[30,37]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,16],[[28,[37,16],[[30,39]],null]],null],null,[[[1,\\\"        \\\"],[1,[28,[35,7],[[30,38],[30,40]],null]],[1,\\\"\\\\n\\\"]],[40]],null],[1,\\\"    \\\"]],[38]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,41,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[41]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"powerSelectMultiple\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[8,[39,24],[[24,\\\"data-test-ptl-input-power-select-multiple\\\",\\\"\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@onBlur\\\",\\\"@onChange\\\",\\\"@disabled\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\"],[[30,31],[28,[37,7],[[30,6],[30,4]],null],[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null],[30,0,[\\\"onPowerSelectorChange\\\"]],[30,32],[30,33],[30,34],[30,35]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,16],[[28,[37,16],[[30,39]],null]],null],null,[[[1,\\\"        \\\"],[1,[28,[35,7],[[30,42],[30,43]],null]],[1,\\\"\\\\n\\\"]],[43]],null],[1,\\\"    \\\"]],[42]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,44,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[44]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"richtext\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[8,[39,25],null,[[\\\"@content\\\",\\\"@readOnly\\\",\\\"@onChange\\\",\\\"@onBlur\\\",\\\"@height\\\"],[[28,[37,7],[[30,6],[30,4]],null],[30,32],[30,0,[\\\"_onRichTextChange\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null],[30,45]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,46,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[46]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[30,12]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,1],\\\"select\\\"],null],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[8,[39,26],[[16,0,[29,[\\\"form-control select-box d-block\\\\n        \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[16,3,[30,4]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-select\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null],[4,[38,8],[\\\"change\\\",[30,0,[\\\"onChange\\\"]]],null]],[[\\\"@value\\\",\\\"@action\\\"],[[28,[37,7],[[30,6],[30,4]],null],[28,[37,9],[[28,[37,10],[[28,[37,7],[[30,6],[30,4]],null]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,48]],[[[1,\\\"        \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,16],[[28,[37,16],[[30,31]],null]],null],null,[[[1,\\\"        \\\"],[8,[30,47,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,49,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,49,[\\\"label\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[49]],null],[1,\\\"    \\\"]],[47]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,50,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[50]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[15,0,[28,[37,4],[[30,3],\\\"mb-3\\\"],null]],[12],[1,\\\"\\\\n\\\"],[41,[30,7],[[[1,\\\"      \\\"],[10,\\\"label\\\"],[15,0,[28,[37,4],[[30,8],\\\"mb-1\\\"],null]],[15,\\\"for\\\",[30,4]],[14,\\\"data-test-ptl-input-label\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,7]],[1,\\\"\\\\n        \\\"],[41,[30,9],[[[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13]],[]],null],[1,\\\"\\\\n        \\\"],[41,[30,10],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@text\\\"],[[30,10]]],null]],[]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],[[16,0,[29,[\\\"form-control\\\\n          \\\",[52,[28,[37,1],[[28,[37,6],[[30,0,[\\\"validationHidden\\\"]]],null],[30,0,[\\\"isInvalid\\\"]]],null],\\\"is-invalid\\\"]]]],[16,3,[30,4]],[24,\\\"autocomplete\\\",\\\"off\\\"],[17,5],[24,\\\"data-test-ptl-input-input\\\",\\\"\\\"],[4,[38,8],[\\\"blur\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"hasBlurred\\\"]]],null],true],null]],null],[4,[38,8],[\\\"change\\\",[28,[37,9],[[30,0,[\\\"onChange\\\"]],[28,[37,7],[[30,6],[30,4]],null]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[[30,1],[28,[37,7],[[30,6],[30,4]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,25],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"input-group-text text-muted\\\"],[12],[1,[30,25]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validationHidden\\\"]]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,51,[\\\"validation\\\"]]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[51]],null]],[]],null],[41,[30,12],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[14,\\\"data-test-ptl-input-description\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,12]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,13],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"form-text alert alert-warning m-0 mt-1 p-0 pt-1 pb-1 ps-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,13]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[\\\"@type\\\",\\\"@role\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"&attrs\\\",\\\"@model\\\",\\\"@label\\\",\\\"@labelClass\\\",\\\"@required\\\",\\\"@toolTip\\\",\\\"error\\\",\\\"@description\\\",\\\"@warningText\\\",\\\"@checked\\\",\\\"error\\\",\\\"@id\\\",\\\"@value\\\",\\\"error\\\",\\\"@min\\\",\\\"@max\\\",\\\"@step\\\",\\\"error\\\",\\\"error\\\",\\\"@formatterOptions\\\",\\\"@inputGroupText\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"error\\\",\\\"@options\\\",\\\"@disabled\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\",\\\"@afterOptionsComponent\\\",\\\"option\\\",\\\"@optionKeys\\\",\\\"key\\\",\\\"error\\\",\\\"option\\\",\\\"key\\\",\\\"error\\\",\\\"@height\\\",\\\"error\\\",\\\"si\\\",\\\"@selectNoBlankOption\\\",\\\"option\\\",\\\"error\\\",\\\"error\\\"],false,[\\\"if\\\",\\\"and\\\",\\\"eq\\\",\\\"div\\\",\\\"or\\\",\\\"input\\\",\\\"not\\\",\\\"get\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"sup\\\",\\\"info-popup\\\",\\\"unless\\\",\\\"each\\\",\\\"-track-array\\\",\\\"html-safe\\\",\\\"textarea\\\",\\\"formatted-input\\\",\\\"span\\\",\\\"hash\\\",\\\"duration-input\\\",\\\"power-select\\\",\\\"power-select-multiple\\\",\\\"rich-text-editor\\\",\\\"select-input\\\",\\\"option\\\"]]\",\n    \"moduleName\": \"portal/components/ptl-input.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"hasBlurred\", _descriptor, this);\n      _initializerDefineProperty(this, \"_formattedDate\", _descriptor2, this);\n      _initializerDefineProperty(this, \"_formattedDateTime\", _descriptor3, this);\n    }\n    set formattedDate(value) {\n      this._formattedDate = value;\n    }\n    get formattedDate() {\n      if (!this._formattedDate && this.args.model[this.args.key]) return (0, _moment.default)(this.args.model[this.args.key]).format('YYYY-MM-DD');\n      return this._formattedDate;\n    }\n    set formattedDateTime(value) {\n      this._formattedDateTime = value;\n    }\n    get formattedDateTime() {\n      if (!this._formattedDateTime && this.args.model[this.args.key]) return (0, _moment.default)(this.args.model[this.args.key]).format('YYYY-MM-DDTHH:mm');\n      return this._formattedDateTime;\n    }\n    get errors() {\n      const errors = this.args.model.get('errors');\n      return errors.filter(er => er.key === this.args.key);\n    }\n    get validationHidden() {\n      if (this.args.forceValidationVisible) return false;\n      return !this.hasBlurred;\n    }\n    get isInvalid() {\n      return this.errors.length > 0;\n    }\n    updateSelector(event) {\n      this.args.model[this.args.key] = event.target.value;\n      this.onChange(event.target.value);\n    }\n    validateDependantValues() {\n      if (this.args.dependantValidationKeys?.length) this.args.dependantValidationKeys.forEach(key => this.args.model.validate(key));\n    }\n    onFormattedInputUpdate(value) {\n      // don't send null values back when we're modifying numbers\n      const safeValue = value != null ? value : 0;\n      this.args.model[this.args.key] = safeValue;\n      this.onChange(safeValue);\n    }\n    onRadioInputChange(e) {\n      this.args.model[this.args.key] = e;\n      this.onChange(e);\n    }\n    onDateInputChange(e) {\n      // the date input has been cleared\n      if (e.target.value === '') {\n        this.args.model[this.args.key] = undefined;\n        this.onChange(undefined);\n        return;\n      }\n      const date = new Date(e.target.value);\n      this.args.model[this.args.key] = date;\n      this.onChange(date);\n    }\n    onDurationInputChange(value) {\n      // don't send null values back when we're modifying numbers\n      const safeValue = value != null ? value : 0;\n      this.args.model[this.args.key] = safeValue;\n      this.onChange(safeValue);\n    }\n    onCheckBoxChange(event) {\n      event.preventDefault();\n      event.stopPropagation();\n      this.args.model[this.args.key] = !this.args.model[this.args.key];\n      this.onChange();\n    }\n    onChange() {\n      this.validateDependantValues();\n      if (this.args.onChange) this.args.onChange(...arguments);\n    }\n    onPowerSelectorChange(value) {\n      this.args.model[this.args.key] = value;\n      this.onChange(value);\n    }\n    _onRichTextChange(html) {\n      this.args.model[this.args.key] = html;\n      this.onChange(html);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"hasBlurred\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"_formattedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_formattedDateTime\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"updateSelector\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateSelector\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"validateDependantValues\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"validateDependantValues\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onFormattedInputUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onFormattedInputUpdate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onRadioInputChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onRadioInputChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDateInputChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDateInputChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDurationInputChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDurationInputChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onCheckBoxChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onCheckBoxChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onPowerSelectorChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onPowerSelectorChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"_onRichTextChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onRichTextChange\"), _class.prototype), _class));\n});","define(\"portal/components/purchase-order-item-creator\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"ember-changeset\", \"@ember/service\", \"lodash\", \"portal/utils/search-filter\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _emberChangeset, _service, _lodash, _searchFilter, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"lodash\",0,\"portal/utils/search-filter\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content w-auto'\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{@onClose}}\n  >\n    <div class='modal-header'>\n      <h3 class='modal-title'>\n        {{t 'components.purchase-order-item-creator.Add product from'}}\n        {{@selectedSupplier}}\n      </h3>\n    </div>\n  \n    {{#if this.initComponent.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='modal-body'>\n        <form data-test-purchase-order-item-creator-form>\n          <div class='mb-3'>\n            <label class='mb-1'>{{t 'common.Product'}}\n              <sup class='text-danger'>*</sup>\n            </label>\n            <SearchSelector\n              @noDataMessage={{t 'shared.product.No products'}}\n              @key='product'\n              @optionKeys={{array 'description'}}\n              @model={{this.productChangeSet}}\n              @forceValidationVisible={{gt this.onCreateProduct.performCount 0}}\n              @onSelect={{this.setProduct}}\n              @onLoad={{this.loadProducts}}\n            />\n          </div>\n          <PtlInput\n            @type='powerSelect'\n            @label={{t 'common.Project'}}\n            @key='project'\n            @optionKeys={{array 'name'}}\n            @options={{this.groupedProjects}}\n            @required={{true}}\n            @model={{this.productChangeSet}}\n            @searchEnabled={{true}}\n            @searchField='name'\n            @onChange={{this.onProjectChange}}\n            @forceValidationVisible={{gt this.onCreateProduct.performCount 0}}\n          />\n          <div class='mb-3'>\n            <label class='mb-1'>\n              {{t 'common.Task'}}\n              <sup class='text-danger'>*</sup>\n            </label>\n            <PopUp\n              @visible={{this.showSelector}}\n              @onClose={{fn (mut this.showSelector) false}}\n              @scrollDivClass={{'.purchase-order-item-creator'}}\n              @disabled={{unless this.selectedProject true}}\n              as |p|\n            >\n              <div\n                role='button'\n                {{on 'click' this.openTaskSelector}}\n                class='purchase-order-item-creator__task-selector-dropdown form-control\n                  {{unless\n                    this.selectedProject\n                    \" purchase-order-item-creator__task-selector-dropdown-input-disabled\"\n                  }}'\n              >\n                {{#if this.selectedTask}}\n                  <TaskBreadcrumbs @task={{this.selectedTask}} />\n                {{/if}}\n              </div>\n              {{#each this.taskErrors as |error|}}\n                <div class='invalid-feedback d-block' data-test-ptl-input-error>\n                  {{error.validation}}\n                </div>\n              {{/each}}\n              <p.Content>\n                <TaskSelector\n                  @tasks={{this.selectedProject.activeTasks}}\n                  @selectedTask={{this.selectedTask}}\n                  @onCancel={{fn (mut this.showSelector) false}}\n                  @onSubmit={{this.onTaskSelect}}\n                />\n              </p.Content>\n            </PopUp>\n          </div>\n          {{#if this.priceList.length}}\n            <div class='product-editor__price-table-container'>\n              <table\n                class='table table-sm table-bordered product-editor__price-table'\n              >\n                <thead class='product-editor__price-table-thead'>\n                  <tr>\n                    <th>{{t 'common.Source'}}</th>\n                    <th>{{t 'common.Supplier'}}</th>\n                    <th class='text-right'>{{t 'common.Unit price'}}</th>\n                    <th></th>\n                  </tr>\n                </thead>\n                <tbody>\n                  {{#each this.priceList as |price|}}\n                    <tr>\n                      <td class='text-left align-middle'>{{price.source}}</td>\n                      <td class='text-left align-middle'>{{price.supplier}}</td>\n                      <td class='text-right align-middle'>\n                        {{number-format\n                          price.price\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-center align-middle'>\n                        <button\n                          type='button'\n                          class='btn btn-link p-0'\n                          {{on 'click' (fn this.setPrice price)}}\n                        >\n                          {{t 'shared.product.Set price'}}\n                        </button>\n                      </td>\n                    </tr>\n                  {{/each}}\n                </tbody>\n              </table>\n            </div>\n          {{/if}}\n          <PtlInput\n            @type='currency'\n            @label={{t 'common.Unit price'}}\n            @key='unitPrice'\n            @model={{this.productChangeSet}}\n            @required={{true}}\n            disabled={{this.onCreateProduct.isRunning}}\n            @forceValidationVisible={{gt this.onCreateProduct.performCount 0}}\n          />\n          <PtlInput\n            @type='number'\n            @label={{t 'common.Quantity'}}\n            @key='quantity'\n            min='0'\n            max='100000'\n            @required={{true}}\n            @model={{this.productChangeSet}}\n            disabled={{this.onCreateProduct.isRunning}}\n            @forceValidationVisible={{gt this.onCreateProduct.performCount 0}}\n          />\n        </form>\n      </div>\n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            data-test-new-product-close-button\n            disabled={{this.onCreateProduct.isRunning}}\n            {{on 'click' @onClose}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.onCreateProduct.isRunning}}\n            {{on 'click' (perform this.onCreateProduct this.productChangeSet)}}\n          >\n            {{#if this.onCreateProduct.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Adding'}}…\n            {{else}}\n              {{t 'common.Add'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    {{/if}}\n  </ModalDialog>\n  */\n  {\n    \"id\": \"UnmQo94g\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",true,\\\"modal\\\",[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"components.purchase-order-item-creator.Add product from\\\"],null]],[1,\\\"\\\\n      \\\"],[1,[30,2]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"initComponent\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"form\\\"],[14,\\\"data-test-purchase-order-item-creator-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,3],[\\\"common.Product\\\"],null]],[1,\\\"\\\\n            \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onSelect\\\",\\\"@onLoad\\\"],[[28,[37,3],[\\\"shared.product.No products\\\"],null],\\\"product\\\",[28,[37,10],[\\\"description\\\"],null],[30,0,[\\\"productChangeSet\\\"]],[28,[37,11],[[30,0,[\\\"onCreateProduct\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"setProduct\\\"]],[30,0,[\\\"loadProducts\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,12],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@required\\\",\\\"@model\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"powerSelect\\\",[28,[37,3],[\\\"common.Project\\\"],null],\\\"project\\\",[28,[37,10],[\\\"name\\\"],null],[30,0,[\\\"groupedProjects\\\"]],true,[30,0,[\\\"productChangeSet\\\"]],true,\\\"name\\\",[30,0,[\\\"onProjectChange\\\"]],[28,[37,11],[[30,0,[\\\"onCreateProduct\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"common.Task\\\"],null]],[1,\\\"\\\\n            \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,13],null,[[\\\"@visible\\\",\\\"@onClose\\\",\\\"@scrollDivClass\\\",\\\"@disabled\\\"],[[30,0,[\\\"showSelector\\\"]],[28,[37,14],[[28,[37,15],[[30,0,[\\\"showSelector\\\"]]],null],false],null],\\\".purchase-order-item-creator\\\",[52,[51,[30,0,[\\\"selectedProject\\\"]]],true]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[16,0,[29,[\\\"purchase-order-item-creator__task-selector-dropdown form-control\\\\n                \\\",[52,[51,[30,0,[\\\"selectedProject\\\"]]],\\\" purchase-order-item-creator__task-selector-dropdown-input-disabled\\\"]]]],[4,[38,17],[\\\"click\\\",[30,0,[\\\"openTaskSelector\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedTask\\\"]],[[[1,\\\"                \\\"],[8,[39,18],null,[[\\\"@task\\\"],[[30,0,[\\\"selectedTask\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,20],[[28,[37,20],[[30,0,[\\\"taskErrors\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,4,[\\\"validation\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"            \\\"],[8,[30,3,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,21],null,[[\\\"@tasks\\\",\\\"@selectedTask\\\",\\\"@onCancel\\\",\\\"@onSubmit\\\"],[[30,0,[\\\"selectedProject\\\",\\\"activeTasks\\\"]],[30,0,[\\\"selectedTask\\\"]],[28,[37,14],[[28,[37,15],[[30,0,[\\\"showSelector\\\"]]],null],false],null],[30,0,[\\\"onTaskSelect\\\"]]]],null],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[3]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"priceList\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"product-editor__price-table-container\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm table-bordered product-editor__price-table\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"thead\\\"],[14,0,\\\"product-editor__price-table-thead\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"common.Source\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,3],[\\\"common.Supplier\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,3],[\\\"common.Unit price\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,20],[[28,[37,20],[[30,0,[\\\"priceList\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-left align-middle\\\"],[12],[1,[30,5,[\\\"source\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-left align-middle\\\"],[12],[1,[30,5,[\\\"supplier\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right align-middle\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,28],[[30,5,[\\\"price\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center align-middle\\\"],[12],[1,\\\"\\\\n                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"setPrice\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,3],[\\\"shared.product.Set price\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,12],[[16,\\\"disabled\\\",[30,0,[\\\"onCreateProduct\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,3],[\\\"common.Unit price\\\"],null],\\\"unitPrice\\\",[30,0,[\\\"productChangeSet\\\"]],true,[28,[37,11],[[30,0,[\\\"onCreateProduct\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,12],[[24,\\\"min\\\",\\\"0\\\"],[24,\\\"max\\\",\\\"100000\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onCreateProduct\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"number\\\",[28,[37,3],[\\\"common.Quantity\\\"],null],\\\"quantity\\\",true,[30,0,[\\\"productChangeSet\\\"]],[28,[37,11],[[30,0,[\\\"onCreateProduct\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-product-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onCreateProduct\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onCreateProduct\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,30],[[30,0,[\\\"onCreateProduct\\\"]],[30,0,[\\\"productChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onCreateProduct\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,3],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]]]],[\\\"@onClose\\\",\\\"@selectedSupplier\\\",\\\"p\\\",\\\"error\\\",\\\"price\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"form\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"gt\\\",\\\"ptl-input\\\",\\\"pop-up\\\",\\\"fn\\\",\\\"mut\\\",\\\"unless\\\",\\\"on\\\",\\\"task-breadcrumbs\\\",\\\"each\\\",\\\"-track-array\\\",\\\"task-selector\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"td\\\",\\\"number-format\\\",\\\"button\\\",\\\"perform\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/purchase-order-item-creator.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    validateProduct(newValue, oldValue) {\n      const value = newValue || oldValue;\n      if (value && value?.description?.length) {\n        return true;\n      }\n      return this.intl.t('validation.Please provide a product name');\n    }\n    constructor(owner, args) {\n      super(owner, args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"priceList\", _descriptor6, this);\n      _initializerDefineProperty(this, \"productChangeSet\", _descriptor7, this);\n      _initializerDefineProperty(this, \"selectedTaskIds\", _descriptor8, this);\n      _initializerDefineProperty(this, \"selectedProject\", _descriptor9, this);\n      _initializerDefineProperty(this, \"selectedTask\", _descriptor0, this);\n      _initializerDefineProperty(this, \"showSelector\", _descriptor1, this);\n      _defineProperty(this, \"products\", []);\n      _defineProperty(this, \"productsPage\", void 0);\n      _defineProperty(this, \"productsSearchTerm\", void 0);\n      _defineProperty(this, \"recordPageSize\", 10);\n      _defineProperty(this, \"unitPageSize\", 100);\n      _defineProperty(this, \"validateLength\", (newValue, oldValue, key) => {\n        switch (key) {\n          case 'project':\n            return Boolean(newValue) || this.intl.t('validation.Please provide a project');\n          case 'task':\n            return Boolean(newValue) || this.intl.t('validation.Please provide a task');\n          case 'quantity':\n            return Boolean(newValue) || this.intl.t('validation.Please provide a quantity');\n          case 'unitPrice':\n            return Boolean(newValue) || this.intl.t('validation.Please provide a unit price');\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"productValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        if (key === 'product') {\n          return this.validateProduct(newValue, oldValue);\n        }\n        return this.validateLength(newValue, oldValue, key);\n      });\n      _defineProperty(this, \"validationMap\", {\n        project: this.validateLength,\n        task: this.validateLength,\n        quantity: this.validateLength,\n        unitPrice: this.validateLength,\n        product: this.validateProduct\n      });\n      _initializerDefineProperty(this, \"isReady\", _descriptor10, this);\n      _defineProperty(this, \"initComponent\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.selectedProject = this.args.selectedProject;\n          const product = {\n            product: null,\n            project: this.args.selectedProject,\n            task: null,\n            quantity: null,\n            unitPrice: null\n          };\n          this.productChangeSet = yield (0, _emberChangeset.Changeset)(product, this.productValidator, this.validationMap);\n        }\n      }), null, \"initComponent\", null));\n      _defineProperty(this, \"loadProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.productsSearchTerm) {\n              this.productsPage = undefined;\n              this.products = [];\n              this.productsSearchTerm = searchTerm;\n            }\n            const productFilter = {\n              and: [{\n                field: 'entity',\n                operator: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'supplierName',\n                operator: 'EQ',\n                value: this.args.selectedSupplier\n              }]\n            };\n            if (searchTerm?.length) {\n              productFilter.and.push((0, _searchFilter.default)(['description'], searchTerm, 'operator'));\n            }\n            const nextPageNumber = (this.productsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.buildaPrice.searchProducts({\n              filter: productFilter,\n              pageSize: this.recordPageSize,\n              page: nextPageNumber\n            });\n            this.productsPage = nextPage.pagination;\n            this.products = [...this.products, ...nextPage.data];\n            return this.products;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreProducts'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadProducts\", null));\n      _defineProperty(this, \"onCreateProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.productChangeSet.validate();\n          if (this.productChangeSet.isValid) {\n            yield this.args.onCreateProduct.perform(this.productChangeSet);\n          }\n        }\n      }), null, \"onCreateProduct\", null));\n      _defineProperty(this, \"getProductPrices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const product = this.productChangeSet.get('product');\n          const filter = {\n            and: [{\n              field: 'entity',\n              operator: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'description',\n              operator: 'EQ',\n              value: product.description\n            }]\n          };\n          if (product.supplierName) filter.and.push({\n            field: 'supplierName',\n            operator: 'EQ',\n            value: product.supplierName\n          });\n          if (product.unit) filter.and.push({\n            field: 'unit',\n            operator: 'EQ',\n            value: product.unit\n          });\n          if (product.sku) filter.and.push({\n            field: 'sku',\n            operator: 'EQ',\n            value: product.sku\n          });\n          const prices = yield this.buildaPrice.searchProducts({\n            filter\n          });\n          this.priceList = prices.data.map(p => {\n            return {\n              supplier: p.supplierName ?? this.intl.t('common.No suppliers'),\n              price: p.unitPrice,\n              source: p.source\n            };\n          });\n          const price = this.priceList[0]?.price || product.unitPrice || 0;\n          this.productChangeSet.set('unitPrice', price);\n        }\n      }), null, \"getProductPrices\", null));\n      this.initComponent.perform();\n    }\n    onProjectChange(value) {\n      if (this.selectedProject?.id !== value.id) this.selectedTask = null;\n      this.selectedProject = value;\n    }\n    get groupedProjects() {\n      const output = [];\n      const groups = _lodash.default.groupBy(this.args.projects, 'status');\n      if (groups.OPEN) output.push({\n        groupName: this.intl.t('common.Open'),\n        options: groups.OPEN\n      });\n      if (groups.HELD) output.push({\n        groupName: this.intl.t('common.Held'),\n        options: groups.HELD\n      });\n      return output;\n    }\n    get taskErrors() {\n      const errors = this.productChangeSet.get('errors');\n      return errors.filter(er => er.key === 'task');\n    }\n    onTaskSelect(value) {\n      this.selectedTask = value;\n      this.productChangeSet.set('task', this.selectedTask);\n      this.showSelector = false;\n    }\n    openTaskSelector() {\n      if (this.selectedProject) this.showSelector = true;\n    }\n    setProduct(value) {\n      this.productChangeSet.set('product', value);\n      if (!value) {\n        this.productChangeSet.set('unitPrice', 0);\n        this.priceList = [];\n      } else {\n        this.getProductPrices.perform();\n      }\n    }\n    setPrice(value) {\n      this.productChangeSet.set('unitPrice', value.price);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"priceList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"productChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"selectedTaskIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"selectedProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"selectedTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"showSelector\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isReady\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onProjectChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onProjectChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onTaskSelect\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onTaskSelect\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openTaskSelector\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openTaskSelector\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setProduct\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setPrice\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setPrice\"), _class.prototype), _class));\n});","define(\"portal/components/purchase-order-item-selector\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"lodash\", \"portal/helpers/chunk-callback\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _service, _lodash, _chunkCallback, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"lodash\",0,\"portal/helpers/chunk-callback\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content purchase-order-item-selector__modal-dialog'\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{@onClose}}\n  >\n    <div class='modal-header'>\n      <h3 class='modal-title'>\n        {{t 'components.purchase-order-item-selector.Add products from'}}\n        {{@purchaseOrder.supplier.name}}\n      </h3>\n    </div>\n  \n    {{#if this.initComponent.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='modal-body'>\n        <div class='d-flex mb-3'>\n          <div class='me-3'>\n            <label class='mb-1'>\n              {{t 'common.Filter by project'}}\n            </label>\n            <div class='d-flex'>\n              <PowerSelect\n                @searchEnabled={{true}}\n                @options={{this.groupedProjects}}\n                @selected={{this.selectedProject}}\n                @searchField='name'\n                @placeholder=' – '\n                @onChange={{this.setProject}}\n                as |project|\n              >\n                {{project.name}}\n              </PowerSelect>\n              <button\n                class='text-button ms-3\n                  {{unless this.selectedProject \"invisible\"}}'\n                type='button'\n                {{on 'click' this.removeProjectFilter}}\n              >\n                <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n              </button>\n            </div>\n          </div>\n          <div>\n            <label class='mb-1'>\n              {{t 'common.Filter by task'}}\n            </label>\n            <div class='d-flex'>\n              <MultiTaskSelectorInput\n                @showTaskPopUp={{this.showTaskPopUp}}\n                @selectedProject={{this.selectedProject}}\n                @selectedTasks={{this.selectedTasks}}\n                @setSelectedTasks={{this.setSelectedTasks}}\n                @removeSelectedTask={{this.removeSelectedTask}}\n                @disabled={{unless this.selectedProject true}}\n              />\n              <button\n                class='text-button ms-3\n                  {{unless this.selectedTasks.length \"invisible\"}}'\n                type='button'\n                {{on 'click' this.removeAllTaskFilters}}\n              >\n                <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n              </button>\n            </div>\n          </div>\n        </div>\n        {{#if this.canAddProducts}}\n          <div class='d-flex mb-2 flex-row-reverse align-items-center'>\n            <div class='ms-auto'>{{t 'shared.product.canNotFindTheProduct'}}\n              <button\n                type='button'\n                class='btn btn-success text-white text-nowrap m-1'\n                {{on 'click' (fn (mut this.isCreatingProduct) true)}}\n              >\n                <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add new'}}\n              </button>\n            </div>\n          </div>\n        {{/if}}\n        <div class='purchase-order-item-selector__table-container mb-3'>\n          <PaginationTable\n            @tableHeader={{this.productHeader}}\n            @tableData={{this.productTableData}}\n            @noDataText={{t 'common.No data'}}\n            @pageSizes={{this.pageSizes}}\n            @pageSize={{this.pageSize}}\n            @pageIndex={{this.pageIndex}}\n            @onChangePageIndex={{this.onChangePageIndex}}\n            @onChangePageSize={{this.onChangePageSize}}\n            @isLoading={{this.getProducts.isRunning}}\n            @totalRecords={{this.totalRecords}}\n            @class='table-bordered'\n          />\n        </div>\n        <div class='modal-footer d-flex'>\n          <div class='d-flex align-items-center'>\n            <button\n              type='button'\n              class='btn btn-secondary text-white ms-2'\n              data-test-purchase-order-selector-close-button\n              disabled={{@onSavePurchaseOrderItems.isRunning}}\n              {{on 'click' @onClose}}\n            >{{t 'common.Cancel'}}</button>\n            <button\n              type='button'\n              class='btn btn-primary ms-2'\n              disabled={{or\n                @onSavePurchaseOrderItems.isRunning\n                (not this.hasOrderQuantity)\n              }}\n              {{on\n                'click'\n                (perform @onSavePurchaseOrderItems this.productTableData)\n              }}\n            >\n              {{#if @onSavePurchaseOrderItems.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Adding'}}&hellip;\n              {{else}}\n                {{t 'common.Add'}}\n              {{/if}}\n            </button>\n          </div>\n        </div>\n      </div>\n    {{/if}}\n  </ModalDialog>\n  \n  {{#if this.isCreatingProduct}}\n    <PurchaseOrderItemCreator\n      @projects={{@projects}}\n      @onClose={{fn (mut this.isCreatingProduct) false}}\n      @selectedProject={{this.selectedProject}}\n      @selectedSupplier={{get @purchaseOrder.supplier 'name'}}\n      @onCreateProduct={{this.onCreateProduct}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"pxOraew5\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[\\\"modal-content purchase-order-item-selector__modal-dialog\\\",true,\\\"modal\\\",[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"components.purchase-order-item-selector.Add products from\\\"],null]],[1,\\\"\\\\n      \\\"],[1,[30,2,[\\\"supplier\\\",\\\"name\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"initComponent\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"me-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"common.Filter by project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],null,[[\\\"@searchEnabled\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[true,[30,0,[\\\"groupedProjects\\\"]],[30,0,[\\\"selectedProject\\\"]],\\\"name\\\",\\\" – \\\",[30,0,[\\\"setProject\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"text-button ms-3\\\\n                \\\",[52,[51,[30,0,[\\\"selectedProject\\\"]]],\\\"invisible\\\"]]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeProjectFilter\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,3],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[\\\"common.Filter by task\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,12],null,[[\\\"@showTaskPopUp\\\",\\\"@selectedProject\\\",\\\"@selectedTasks\\\",\\\"@setSelectedTasks\\\",\\\"@removeSelectedTask\\\",\\\"@disabled\\\"],[[30,0,[\\\"showTaskPopUp\\\"]],[30,0,[\\\"selectedProject\\\"]],[30,0,[\\\"selectedTasks\\\"]],[30,0,[\\\"setSelectedTasks\\\"]],[30,0,[\\\"removeSelectedTask\\\"]],[52,[51,[30,0,[\\\"selectedProject\\\"]]],true]]],null],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"text-button ms-3\\\\n                \\\",[52,[51,[30,0,[\\\"selectedTasks\\\",\\\"length\\\"]]],\\\"invisible\\\"]]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllTaskFilters\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,3],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAddProducts\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex mb-2 flex-row-reverse align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,[28,[35,3],[\\\"shared.product.canNotFindTheProduct\\\"],null]],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"isCreatingProduct\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.Add new\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"purchase-order-item-selector__table-container mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@isLoading\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"productHeader\\\"]],[30,0,[\\\"productTableData\\\"]],[28,[37,3],[\\\"common.No data\\\"],null],[30,0,[\\\"pageSizes\\\"]],[30,0,[\\\"pageSize\\\"]],[30,0,[\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"getProducts\\\",\\\"isRunning\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-purchase-order-selector-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,4,[\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[28,[37,16],[[30,4,[\\\"isRunning\\\"]],[28,[37,17],[[30,0,[\\\"hasOrderQuantity\\\"]]],null]],null]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,18],[[30,4],[30,0,[\\\"productTableData\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,3],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isCreatingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@projects\\\",\\\"@onClose\\\",\\\"@selectedProject\\\",\\\"@selectedSupplier\\\",\\\"@onCreateProduct\\\"],[[30,5],[28,[37,13],[[28,[37,14],[[30,0,[\\\"isCreatingProduct\\\"]]],null],false],null],[30,0,[\\\"selectedProject\\\"]],[28,[37,21],[[30,2,[\\\"supplier\\\"]],\\\"name\\\"],null],[30,0,[\\\"onCreateProduct\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@onClose\\\",\\\"@purchaseOrder\\\",\\\"project\\\",\\\"@onSavePurchaseOrderItems\\\",\\\"@projects\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"label\\\",\\\"power-select\\\",\\\"button\\\",\\\"unless\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"multi-task-selector-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"pagination-table\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\",\\\"span\\\",\\\"purchase-order-item-creator\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/components/purchase-order-item-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(owner, args) {\n      super(owner, args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _defineProperty(this, \"pristineProducts\", []);\n      _defineProperty(this, \"pageSizes\", [10, 25, 50]);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor8, this);\n      _initializerDefineProperty(this, \"pageIndex\", _descriptor9, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor0, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor1, this);\n      _initializerDefineProperty(this, \"totalRecords\", _descriptor10, this);\n      _initializerDefineProperty(this, \"products\", _descriptor11, this);\n      _initializerDefineProperty(this, \"selectedProject\", _descriptor12, this);\n      _initializerDefineProperty(this, \"showTaskPopUp\", _descriptor13, this);\n      _initializerDefineProperty(this, \"selectedTaskIds\", _descriptor14, this);\n      _initializerDefineProperty(this, \"isCreatingProduct\", _descriptor15, this);\n      _defineProperty(this, \"initComponent\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.getProducts.perform();\n        }\n      }), null, \"initComponent\", null));\n      _defineProperty(this, \"onCreateProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeSet) {\n          const task = changeSet.get('task');\n          const product = changeSet.get('product');\n          const project = changeSet.get('project');\n          try {\n            yield this.store.createRecord('task-product', {\n              description: product.description,\n              supplierName: product.supplierName,\n              sku: product.sku,\n              unit: product.unit,\n              unitPrice: product.unitPrice,\n              quantity: changeSet.get('quantity'),\n              task,\n              entity: this.sessionData.entity\n            }).save();\n            this.selectedProject = project;\n            this.selectedTaskIds = [task.id];\n            this.isCreatingProduct = false;\n            this.getProducts.perform();\n          } catch (error) {\n            if (error.errors[0].status === '409') {\n              this.notifications.warning(this.intl.t('shared.notification.Product already exists'));\n            } else {\n              this.notifications.error({\n                message: this.intl.t('components.purchase-order-item-selector.somethingWentWrongWhileCreatingProduct'),\n                error\n              });\n            }\n          }\n        }\n      }), null, \"onCreateProduct\", null));\n      _defineProperty(this, \"getProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let andFilters = [{\n            field: 'entity',\n            operator: 'EQ',\n            value: this.sessionData.entity.id\n          }, {\n            field: 'supplierName',\n            operator: 'EQ',\n            value: this.args.purchaseOrder.supplier.get('name')\n          }, {\n            field: 'taskStatus',\n            operator: 'IN',\n            value: ['ACTIVE', 'DRAFT_CREATED']\n          }, {\n            field: 'projectStatus',\n            operator: 'IN',\n            value: ['OPEN', 'HELD']\n          }];\n          if (this.newFeatureFlags.excludesFeatureFlags('canManagePurchaseOrders')) andFilters.push({\n            field: 'project',\n            operator: 'IN',\n            value: this.args.projects.map(p => p.id)\n          });\n          const taskProductIds = this.args.purchaseOrderItems?.map(item => item.belongsTo('taskProduct').id()).filter(Boolean) ?? [];\n          if (taskProductIds.length) {\n            andFilters.push({\n              field: '_id',\n              operator: 'NOT_IN',\n              value: taskProductIds\n            });\n          }\n          let orderBy;\n          switch (this.sortBy) {\n            case 'Product':\n              orderBy = 'description';\n              break;\n            case 'Supplier':\n              orderBy = 'supplierName';\n              break;\n            case 'SKU':\n              orderBy = 'sku';\n              break;\n            case 'Unit':\n              orderBy = 'unit';\n              break;\n            case 'Unit price':\n              orderBy = 'unitPrice';\n              break;\n            case 'Quantity':\n              orderBy = 'quantity';\n              break;\n            default:\n              break;\n          }\n          let products;\n          if (this.selectedTaskIds.length) {\n            andFilters.push({\n              field: 'task',\n              operator: 'IN',\n              value: this.selectedTaskIds\n            });\n          }\n          const filters = {\n            and: andFilters\n          };\n          if (this.selectedProject && !this.selectedTaskIds.length) {\n            products = yield (0, _chunkCallback.default)(this.selectedProject.activeTasks.toArray().map(task => task.id), _environment.default.chunkCallbackSize, ids => {\n              return this.store.query('task-product', {\n                filter: {\n                  and: [...andFilters, {\n                    field: 'task',\n                    operator: 'IN',\n                    value: ids\n                  }, {\n                    field: 'entity',\n                    operator: 'EQ',\n                    value: this.sessionData.entity.id\n                  }]\n                },\n                orderBy: orderBy || 'description',\n                orderByDirection: this.sortDirection || 'asc',\n                pageSize: this.pageSize,\n                page: this.pageIndex\n              });\n            });\n          } else {\n            products = yield this.store.query('task-product', {\n              filter: filters,\n              orderBy: orderBy || 'description',\n              orderByDirection: this.sortDirection || 'asc',\n              pageSize: this.pageSize,\n              page: this.pageIndex\n            });\n          }\n          this.products = products.map(p => {\n            return {\n              description: p.description,\n              sku: p.sku,\n              quantity: p.quantity,\n              unitPrice: p.unitPrice,\n              supplierName: p.supplierName,\n              unit: p.unit,\n              orderQty: 0,\n              remainingQty: p.quantity - p.orderedQuantity,\n              breadcrumbs: p.breadcrumbs,\n              taskProduct: p\n            };\n          }) || [];\n          this.pristineProducts = products.toArray();\n          this.totalRecords = products.meta?.totalRecords || 0;\n        }\n      }), null, \"getProducts\", null));\n      this.initComponent.perform();\n    }\n    get productHeader() {\n      return [{\n        value: this.intl.t('common.Path'),\n        textClass: 'text-left'\n      }, {\n        value: this.intl.t('common.Product'),\n        iconName: this.sortBy === 'Product' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.SKU'),\n        iconName: this.sortBy === 'SKU' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit'),\n        iconName: this.sortBy === 'Unit' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }, {\n        value: this.intl.t('common.Quantity'),\n        iconName: this.sortBy === 'Quantity' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }, {\n        value: this.intl.t('shared.purchase-order.Remaining Qty'),\n        colClass: 'text-right'\n      }, {\n        value: this.intl.t('shared.purchase-order.Order Qty'),\n        colClass: 'text-right'\n      }, {\n        value: ''\n      }];\n    }\n    get productTableData() {\n      if (this.getProducts.isRunning) return [];\n      return this.products.map((product, index) => {\n        const productData = [{\n          colClass: 'text-left align-middle',\n          value: product.breadcrumbs,\n          taskProduct: product.taskProduct\n        }, {\n          colClass: 'align-middle',\n          value: product.description\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.sku\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.unit\n        }, {\n          colClass: 'text-right align-middle',\n          value: this.numberFormat.format(product.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          })\n        }, {\n          colClass: 'text-right align-middle',\n          value: product.quantity || 0\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: Number(product.remainingQty) < 0 ? 'text-danger' : '',\n          value: product.remainingQty || 0\n        }, {\n          type: 'NUMBER_INPUT',\n          colClass: 'text-right align-middle',\n          textClass: 'text-right',\n          min: '0',\n          value: product.orderQty || 0,\n          onInputChange: this.onChangeOrderQty,\n          extraData: {\n            index\n          }\n        }, {\n          type: 'BUTTON',\n          colClass: 'text-center align-middle',\n          textClass: 'btn btn-link',\n          onClickButton: this.addOrderQty,\n          value: this.intl.t('components.purchase-order-item-selector.Add all'),\n          extraData: {\n            index\n          }\n        }];\n        return {\n          rowData: productData\n        };\n      });\n    }\n    get canAddProducts() {\n      const canUseTasks = this.newFeatureFlags.includesFeatureFlags('canUseTasks');\n      const canManageProducts = this.args.projects.some(p => this.newFeatureFlags.includesFeatureFlags(p, 'canManageProducts'));\n      return canUseTasks && canManageProducts;\n    }\n\n    //   @action\n    //   addAllOrderQty() {\n    //     const products = this.products;\n    //     products.forEach((p) => {\n    //       if (p.remainingQty > 0) p.orderQty = p.remainingQty;\n    //     });\n    //     this.products = products;\n    //   }\n\n    addOrderQty(_row, col) {\n      const products = this.products;\n      const remainingQty = this.pristineProducts[col.extraData.index].quantity - this.pristineProducts[col.extraData.index].orderedQuantity;\n      if (remainingQty > 0) {\n        products[col.extraData.index].orderQty = remainingQty;\n        products[col.extraData.index].remainingQty = 0;\n        this.products = products;\n      }\n    }\n    onChangeOrderQty(_row, col, e) {\n      const products = this.products;\n      products[col.extraData.index].orderQty = Number(e.target.value);\n      const remainingQty = this.pristineProducts[col.extraData.index].quantity - this.pristineProducts[col.extraData.index].orderedQuantity;\n      products[col.extraData.index].remainingQty = remainingQty - Number(e.target.value);\n      this.products = products;\n    }\n    removeProjectFilter() {\n      this.selectedProject = undefined;\n      this.removeAllTaskFilters();\n    }\n    removeSelectedTask(task) {\n      this.showTaskPopUp = false;\n      const filteredSelectTasks = this.selectedTasks.filter(t => t.id !== task.id);\n      this.selectedTaskIds = filteredSelectTasks.map(t => t.id);\n      this.getProducts.perform();\n    }\n    setSelectedTasks(tasks) {\n      this.showTaskPopUp = false;\n      const taskIds = tasks.map(t => t.id);\n      const selectedTaskIds = this.selectedTaskIds;\n      if (_lodash.default.difference(taskIds, selectedTaskIds).length || _lodash.default.difference(selectedTaskIds, taskIds).length) {\n        this.selectedTaskIds = taskIds;\n        this.getProducts.perform();\n      }\n    }\n    setProject(value) {\n      this.selectedTaskIds = [];\n      this.selectedProject = value;\n      this.getProducts.perform();\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n      this.getProducts.perform();\n    }\n    onChangePageIndex(pageIndex) {\n      this.pageIndex = pageIndex;\n      this.getProducts.perform();\n    }\n    removeAllTaskFilters() {\n      this.selectedTaskIds = [];\n      this.getProducts.perform();\n    }\n    sortColumn(_row, col) {\n      if (this.sortBy !== col.value) {\n        this.sortBy = col.value;\n        this.sortDirection = 'asc';\n      } else {\n        this.sortBy = col.value;\n        if (this.sortDirection === 'asc') {\n          this.sortDirection = 'desc';\n        } else if (this.sortDirection === 'desc') {\n          this.sortDirection = undefined;\n        } else {\n          this.sortDirection = 'asc';\n        }\n      }\n      this.getProducts.perform();\n    }\n    get hasOrderQuantity() {\n      const orderQuantityIndex = this.productHeader.findIndex(c => c.value === this.intl.t('shared.purchase-order.Order Qty'));\n      return this.productTableData.some(row => row.rowData[orderQuantityIndex].value);\n    }\n    get groupedProjects() {\n      const output = [];\n      const groups = _lodash.default.groupBy(this.args.projects, 'status');\n      if (groups.OPEN) output.push({\n        groupName: this.intl.t('common.Open'),\n        options: groups.OPEN\n      });\n      if (groups.HELD) output.push({\n        groupName: this.intl.t('common.Held'),\n        options: groups.HELD\n      });\n      return output;\n    }\n    get selectedTasks() {\n      if (!this.selectedTaskIds.length) return [];\n      return this.selectedProject.activeTasks.filter(t => this.selectedTaskIds.includes(t.id));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.pageSizes[0];\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"pageIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"totalRecords\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"products\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"selectedProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"showTaskPopUp\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"selectedTaskIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"isCreatingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"addOrderQty\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addOrderQty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangeOrderQty\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeOrderQty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeProjectFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeProjectFilter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeSelectedTask\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeSelectedTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setSelectedTasks\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setSelectedTasks\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setProject\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setProject\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePageSize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePageIndex\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeAllTaskFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeAllTaskFilters\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"sortColumn\"), _class.prototype), _class));\n});","define(\"portal/components/radio-button\", [\"exports\", \"ember-radio-buttons/components/radio-button\"], function (_exports, _radioButton) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _radioButton.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-radio-buttons/components/radio-button\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/radio-slider\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object/internals\", \"@ember/template-factory\"], function (_exports, _component, _component2, _internals, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object/internals\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='radio-slider {{@class}}' ...attributes>\n    {{#each @options as |option i|}}\n      <RadioButton\n        @name={{concat 'radio-slider-option-' this.groupId '-' i}}\n        @checked={{@selected}}\n        @value={{option.value}}\n        @id={{concat 'radio-slider-option-' this.groupId '-' i}}\n      />\n      <label\n        for='{{concat \"radio-slider-option-\" this.groupId \"-\" i}}'\n      >{{option.label}}</label>\n    {{/each}}\n  </div>\n  */\n  {\n    \"id\": \"ctlA3WVo\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"radio-slider \\\",[30,1]]]],[17,2],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,3]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@name\\\",\\\"@checked\\\",\\\"@value\\\",\\\"@id\\\"],[[28,[37,4],[\\\"radio-slider-option-\\\",[30,0,[\\\"groupId\\\"]],\\\"-\\\",[30,5]],null],[30,6],[30,4,[\\\"value\\\"]],[28,[37,4],[\\\"radio-slider-option-\\\",[30,0,[\\\"groupId\\\"]],\\\"-\\\",[30,5]],null]]],null],[1,\\\"\\\\n    \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[29,[[28,[37,4],[\\\"radio-slider-option-\\\",[30,0,[\\\"groupId\\\"]],\\\"-\\\",[30,5]],null]]]],[12],[1,[30,4,[\\\"label\\\"]]],[13],[1,\\\"\\\\n\\\"]],[4,5]],null],[13]],[\\\"@class\\\",\\\"&attrs\\\",\\\"@options\\\",\\\"option\\\",\\\"i\\\",\\\"@selected\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"radio-button\\\",\\\"concat\\\",\\\"label\\\"]]\",\n    \"moduleName\": \"portal/components/radio-slider.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      // Each slider needs its own radio group name and its own ids: radios sharing\n      // a name are mutually exclusive, and a label points at the first matching id\n      // in the document. This used to read this.elementId, which a Glimmer\n      // component does not have, so every slider named its options identically.\n      _defineProperty(this, \"groupId\", (0, _internals.guidFor)(this));\n    }\n  });\n});","define(\"portal/components/referral-promotion-button\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"ember-local-storage\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _object, _emberLocalStorage, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-local-storage\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (includes-feature-flags 'entityIsCalStudent')}}\n    {{#if\n      (and\n        (includes-feature-flags 'userIsEntityAdmin')\n        (not this.referralPromotionIsDismissed)\n      )\n    }}\n      <div\n        role='button'\n        id='referral-promotion-button'\n        class='animate-flip-down'\n        {{on 'click' this.openPromotion}}\n        ...attributes\n      >\n        <div class='referral-promotion-button__content'>\n          <FaIcon @icon='gift' />\n  \n          <span class='referral-promotion-button__content-text'>\n            {{t 'components.referral-promotion-button.Click here'}}:\n            {{t\n              'components.referral-promotion-button.getAFriendToRegisterAndWeWillGiveYouAXPrezzyCard'\n            }}\n          </span>\n        </div>\n  \n        {{! template-lint-disable no-nested-interactive }}\n        <span\n          role='button'\n          class='referral-promotion-button__close'\n          {{on 'click' this.openDismissModal}}\n        >\n          <FaIcon @icon='times-circle' />\n        </span>\n      </div>\n    {{/if}}\n  \n    {{#if this.dismissModalVisible}}\n      <ModalDialog\n        @onClose={{fn (mut this.dismissModalVisible) false}}\n        @containerClass='modal-content w-auto'\n        @overlayClass='modal'\n        @translucentOverlay={{true}}\n      >\n        <div class='modal-header'>\n          <h3 class='modal-title'>\n            {{t 'components.referral-promotion-button.Referral offer'}}\n          </h3>\n        </div>\n        <div class='modal-body'>\n          <p>\n            {{t\n              'components.referral-promotion-button.areYouSureYouWantToDismissThisReferralOffer'\n            }}\n          </p>\n        </div>\n        <div class='modal-footer d-flex'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            {{on 'click' (fn (mut this.dismissModalVisible) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-primary ms-2'\n            type='button'\n            {{on 'click' this.confirmReferralPromotionDismiss}}\n          >\n            {{t 'components.referral-promotion-button.Remove the offer'}}\n          </button>\n        </div>\n      </ModalDialog>\n    {{/if}}\n  {{/unless}}\n  */\n  {\n    \"id\": \"ecspgbLY\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"entityIsCalStudent\\\"],null]],[[[41,[28,[37,3],[[28,[37,1],[\\\"userIsEntityAdmin\\\"],null],[28,[37,4],[[30,0,[\\\"referralPromotionIsDismissed\\\"]]],null]],null],[[[1,\\\"    \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,1,\\\"referral-promotion-button\\\"],[24,0,\\\"animate-flip-down\\\"],[17,1],[4,[38,6],[\\\"click\\\",[30,0,[\\\"openPromotion\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"referral-promotion-button__content\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"gift\\\"]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"referral-promotion-button__content-text\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"components.referral-promotion-button.Click here\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[28,[35,9],[\\\"components.referral-promotion-button.getAFriendToRegisterAndWeWillGiveYouAXPrezzyCard\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"referral-promotion-button__close\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"openDismissModal\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"times-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"dismissModalVisible\\\"]],[[[1,\\\"    \\\"],[8,[39,10],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,11],[[28,[37,12],[[30,0,[\\\"dismissModalVisible\\\"]]],null],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"components.referral-promotion-button.Referral offer\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"components.referral-promotion-button.areYouSureYouWantToDismissThisReferralOffer\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,11],[[28,[37,12],[[30,0,[\\\"dismissModalVisible\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"confirmReferralPromotionDismiss\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"components.referral-promotion-button.Remove the offer\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[\\\"&attrs\\\"],false,[\\\"unless\\\",\\\"includes-feature-flags\\\",\\\"if\\\",\\\"and\\\",\\\"not\\\",\\\"div\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"t\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"h3\\\",\\\"p\\\",\\\"button\\\"]]\",\n    \"moduleName\": \"portal/components/referral-promotion-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _emberLocalStorage.storageFor)('settings'), _class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dismissModalVisible\", _descriptor3, this);\n    }\n    get referralPromotionIsDismissed() {\n      return (0, _object.get)(this.persistedSettings, 'moduleDashboard:referralPromotionIsDismissed');\n    }\n    set referralPromotionIsDismissed(value) {\n      (0, _object.set)(this.persistedSettings, 'moduleDashboard:referralPromotionIsDismissed', value);\n      return value;\n    }\n    get url() {\n      const entityName = this.sessionData.entity.name;\n      const userEmail = this.sessionData.user.email;\n      return encodeURI(`https://buildaprice.co.nz/refer-a-friend?your-business-name=${entityName}&your-email-address=${userEmail}`);\n    }\n    openPromotion() {\n      window.open(this.url, '_blank');\n    }\n    openDismissModal(event) {\n      this.dismissModalVisible = true;\n      event.stopPropagation();\n    }\n    confirmReferralPromotionDismiss() {\n      this.referralPromotionIsDismissed = true;\n      this.dismissModalVisible = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"dismissModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"openPromotion\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openPromotion\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openDismissModal\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openDismissModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"confirmReferralPromotionDismiss\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"confirmReferralPromotionDismiss\"), _class.prototype), _class));\n});","define(\"portal/components/report-builder-pm/invoice-type-table\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <thead>\n    {{#if this.title}}\n      <tr>\n        <th colspan='6'>{{this.title}}</th>\n      </tr>\n    {{/if}}\n    {{! Column headings for material invoices table }}\n    <tr>\n      <th\n        onclick={{action this.toggleAllSelected}}\n        class='report-builder__section-table-small-cell'\n      >\n        <Input\n          @type='checkbox'\n          @checked={{this.allSelected}}\n          indeterminate={{this.partSelected}}\n        />\n      </th>\n      <th>{{t 'common.Name'}}</th>\n      <th>{{t 'common.Issuer'}}</th>\n      <th>{{t 'common.Issue date'}}</th>\n      <th>{{t 'common.Total price'}}</th>\n      <th class='report-builder__section-table-small-cell'></th>\n    </tr>\n  </thead>\n  \n  <tbody>\n    {{#each this.invoices as |invoiceWrapper|}}\n      <tr>\n        {{! Each invoice is selectable }}\n        <td onclick={{action this.toggleResourceItemsSelected invoiceWrapper}}>\n          <Input\n            @type='checkbox'\n            @checked={{invoiceWrapper.allSelected}}\n            indeterminate={{invoiceWrapper.partSelected}}\n          />\n        </td>\n  \n        {{! Invoices are expandable }}\n        <td>\n          <span class='report-builder__name-and-label-wrapper'>\n            <a class='link' {{action this.toggleItemsVisible invoiceWrapper}}>\n              {{or\n                invoiceWrapper.invoice.billNumber\n                invoiceWrapper.invoice.reference\n              }}\n              <FaIcon\n                @icon={{if\n                  invoiceWrapper.itemsVisible\n                  'angle-down'\n                  'angle-right'\n                }}\n              />\n            </a>\n            {{#if invoiceWrapper.nReported}}\n              <span class='report-builder__reported-label'>\n                {{t 'common.Reported'}}\n                {{#unless invoiceWrapper.allReported}}\n                  ({{invoiceWrapper.nReported}}/{{invoiceWrapper.items.length}})\n                {{/unless}}\n                <span\n                  class='report-builder__reported-label-close'\n                  {{action this.setItemsReportedFalse invoiceWrapper.items}}\n                >\n                  <FaIcon @icon='times' />\n                </span>\n              </span>\n            {{/if}}\n          </span>\n        </td>\n  \n        <td>{{invoiceWrapper.invoice.issuer}}</td>\n        <td>{{moment-format\n            invoiceWrapper.invoice.issueDate\n            (t 'date.shortWithWeekday')\n          }}</td>\n        <td>\n          {{number-format\n            invoiceWrapper.totalPrice\n            style='currency'\n            dashZero=true\n          }}\n        </td>\n        <td>\n          {{! Edit button is a link to the invoice in the regular invoices UI }}\n          {{! TODO Change when we have a new invoice page ported}}\n          <LinkTo\n            @route='entity.builda-price.operations.incoming.bills.bill'\n            @model={{invoiceWrapper.invoice.id}}\n            @query={{hash browserBack='true'}}\n            class='link'\n          >\n            {{t 'components.report-builder-pm.invoice-type-table.View bill'}}\n          </LinkTo>\n        </td>\n      </tr>\n  \n      {{! A sub table for the items when the invoice is expanded }}\n      {{#if invoiceWrapper.itemsVisible}}\n        <tr>\n          <td></td>\n          <td colspan='5' class='report-builder__section-table-cell--no-padding'>\n            <table class='report-builder__section-table--sub-table'>\n              <thead>\n                {{! Headings for the items inside an invoice }}\n                <tr>\n                  <th class='report-builder__section-table-small-cell'></th>\n                  <th>{{t 'common.Name'}}</th>\n                  <th>{{t 'shared.report-builder.taskProject'}}</th>\n                  <th>{{t 'shared.report-builder.Product code'}}</th>\n                  <th>{{t 'common.Quantity'}}</th>\n                  <th>{{t 'common.Unit price'}}</th>\n                  <th>{{t 'common.Total price'}}</th>\n                </tr>\n              </thead>\n  \n              <tbody>\n                {{#each invoiceWrapper.items as |item|}}\n                  <tr>\n                    {{! Each item is selectable (works with the invoice level selection) }}\n                    <td onclick={{action this.toggleInvoiceItemSelected item}}>\n                      <Input @type='checkbox' @checked={{item.selected}} />\n                    </td>\n                    <td>\n                      <span class='report-builder__name-and-label-wrapper'>\n                        {{item.description}}\n                        {{#if item.reported}}\n                          <span class='report-builder__reported-label'>\n                            {{t 'common.Reported'}}\n                            <span\n                              class='report-builder__reported-label-close'\n                              {{action this.setItemReportedFalse item}}\n                            >\n                              <FaIcon @icon='times' />\n                            </span>\n                          </span>\n                        {{/if}}\n                      </span>\n                    </td>\n                    <td>{{item.assignment}}</td>\n                    <td>{{item.productCode}}</td>\n                    <td>{{item.quantity}}</td>\n                    <td>\n                      {{number-format\n                        item.unitPrice\n                        style='currency'\n                        dashZero=true\n                      }}\n                    </td>\n                    <td>\n                      {{number-format\n                        item.totalPrice\n                        style='currency'\n                        dashZero=true\n                      }}\n                    </td>\n                  </tr>\n                {{/each}}\n              </tbody>\n            </table>\n          </td>\n        </tr>\n      {{/if}}\n    {{/each}}\n  </tbody>\n  */\n  {\n    \"id\": \"N7oM/hAK\",\n    \"block\": \"[[[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"title\\\"]],[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[14,\\\"colspan\\\",\\\"6\\\"],[12],[1,[30,0,[\\\"title\\\"]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[15,\\\"onclick\\\",[28,[37,4],[[30,0],[30,0,[\\\"toggleAllSelected\\\"]]],null]],[14,0,\\\"report-builder__section-table-small-cell\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],[[16,\\\"indeterminate\\\",[30,0,[\\\"partSelected\\\"]]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"allSelected\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Name\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Issuer\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Issue date\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Total price\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,0,\\\"report-builder__section-table-small-cell\\\"],[12],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"invoices\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,\\\"td\\\"],[15,\\\"onclick\\\",[28,[37,4],[[30,0],[30,0,[\\\"toggleResourceItemsSelected\\\"]],[30,1]],null]],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],[[16,\\\"indeterminate\\\",[30,1,[\\\"partSelected\\\"]]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,1,[\\\"allSelected\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__name-and-label-wrapper\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"link\\\"],[4,[38,4],[[30,0],[30,0,[\\\"toggleItemsVisible\\\"]],[30,1]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,13],[[30,1,[\\\"invoice\\\",\\\"billNumber\\\"]],[30,1,[\\\"invoice\\\",\\\"reference\\\"]]],null]],[1,\\\"\\\\n            \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[[52,[30,1,[\\\"itemsVisible\\\"]],\\\"angle-down\\\",\\\"angle-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"nReported\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"report-builder__reported-label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Reported\\\"],null]],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"allReported\\\"]]],[[[1,\\\"                (\\\"],[1,[30,1,[\\\"nReported\\\"]]],[1,\\\"/\\\"],[1,[30,1,[\\\"items\\\",\\\"length\\\"]]],[1,\\\")\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[11,1],[24,0,\\\"report-builder__reported-label-close\\\"],[4,[38,4],[[30,0],[30,0,[\\\"setItemsReportedFalse\\\"]],[30,1,[\\\"items\\\"]]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"invoice\\\",\\\"issuer\\\"]]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,16],[[30,1,[\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,17],[[30,1,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[8,[39,18],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\",\\\"@query\\\"],[\\\"entity.builda-price.operations.incoming.bills.bill\\\",[30,1,[\\\"invoice\\\",\\\"id\\\"]],[28,[37,19],null,[[\\\"browserBack\\\"],[\\\"true\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.report-builder-pm.invoice-type-table.View bill\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"itemsVisible\\\"]],[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,0,\\\"report-builder__section-table-cell--no-padding\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"report-builder__section-table--sub-table\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,0,\\\"report-builder__section-table-small-cell\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Name\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"shared.report-builder.taskProject\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"shared.report-builder.Product code\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Quantity\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Unit price\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Total price\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,1,[\\\"items\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[10,\\\"td\\\"],[15,\\\"onclick\\\",[28,[37,4],[[30,0],[30,0,[\\\"toggleInvoiceItemSelected\\\"]],[30,2]],null]],[12],[1,\\\"\\\\n                    \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,2,[\\\"selected\\\"]]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,0,\\\"report-builder__name-and-label-wrapper\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,2,[\\\"description\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"reported\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"report-builder__reported-label\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[28,[35,6],[\\\"common.Reported\\\"],null]],[1,\\\"\\\\n                          \\\"],[11,1],[24,0,\\\"report-builder__reported-label-close\\\"],[4,[38,4],[[30,0],[30,0,[\\\"setItemReportedFalse\\\"]],[30,2]],null],[12],[1,\\\"\\\\n                            \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"assignment\\\"]]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"productCode\\\"]]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"quantity\\\"]]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,17],[[30,2,[\\\"unitPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,17],[[30,2,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]],null],[13]],[\\\"invoiceWrapper\\\",\\\"item\\\"],false,[\\\"thead\\\",\\\"if\\\",\\\"tr\\\",\\\"th\\\",\\\"action\\\",\\\"input\\\",\\\"t\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"span\\\",\\\"a\\\",\\\"or\\\",\\\"fa-icon\\\",\\\"unless\\\",\\\"moment-format\\\",\\\"number-format\\\",\\\"link-to\\\",\\\"hash\\\",\\\"table\\\"]]\",\n    \"moduleName\": \"portal/components/report-builder-pm/invoice-type-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'table',\n    classNames: ['report-builder__section-table']\n  }));\n});","define(\"portal/components/report-builder-pm/manual-type-table\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <thead>\n    {{#if this.title}}\n      <tr>\n        <th colspan='6'>{{this.title}}</th>\n      </tr>\n    {{/if}}\n    <tr>\n      <th class='report-builder__section-table-small-cell'></th>\n      <th colspan='2'>{{t 'common.Description'}}</th>\n      <th colspan='2'>{{t 'common.Total'}}</th>\n      <th>Edit</th>\n    </tr>\n  </thead>\n  \n  <tbody>\n    {{#each this.items as |manual|}}\n      <tr>\n        <td><Input @type='checkbox' @checked={{manual.selected}} /></td>\n        <td colspan='2'><Input\n            class='text-input'\n            @value={{manual.description}}\n            data-test-manual-desc\n          /></td>\n        <td colspan='2'>\n          <FormattedInput\n            @class='text-input'\n            @format='currency'\n            @number={{manual.total}}\n            @update={{fn (mut manual.total)}}\n            @placeholder='$0.00'\n            data-test-manual-amount\n          />\n        </td>\n        <td>\n          <button\n            class='text-button text-button--delete'\n            type='button'\n            {{action this.deleteItem this.manualKey manual}}\n          >\n            {{t 'common.Delete'}}\n          </button>\n        </td>\n      </tr>\n    {{/each}}\n  </tbody>\n  */\n  {\n    \"id\": \"rx5+94VA\",\n    \"block\": \"[[[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"title\\\"]],[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[14,\\\"colspan\\\",\\\"6\\\"],[12],[1,[30,0,[\\\"title\\\"]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,0,\\\"report-builder__section-table-small-cell\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,[28,[35,4],[\\\"common.Description\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,\\\"Edit\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"items\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[12],[8,[39,9],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,1,[\\\"selected\\\"]]]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[8,[39,9],[[24,0,\\\"text-input\\\"],[24,\\\"data-test-manual-desc\\\",\\\"\\\"]],[[\\\"@value\\\"],[[30,1,[\\\"description\\\"]]]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,\\\"data-test-manual-amount\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@format\\\",\\\"@number\\\",\\\"@update\\\",\\\"@placeholder\\\"],[\\\"text-input\\\",\\\"currency\\\",[30,1,[\\\"total\\\"]],[28,[37,11],[[28,[37,12],[[30,1,[\\\"total\\\"]]],null]],null],\\\"$0.00\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[30,0,[\\\"deleteItem\\\"]],[30,0,[\\\"manualKey\\\"]],[30,1]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[13]],[\\\"manual\\\"],false,[\\\"thead\\\",\\\"if\\\",\\\"tr\\\",\\\"th\\\",\\\"t\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"input\\\",\\\"formatted-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/components/report-builder-pm/manual-type-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'table',\n    classNames: ['report-builder__section-table']\n  }));\n});","define(\"portal/components/report-builder-pm/timesheet-type-table\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <thead>\n    {{#if this.title}}\n      <tr>\n        <th colspan='6'>{{this.title}}</th>\n      </tr>\n    {{/if}}\n    <tr>\n      <th\n        onclick={{action this.toggleTimesheetsSelected}}\n        class='report-builder__section-table-small-cell'\n      >\n        <Input\n          @type='checkbox'\n          @checked={{this.allTimesheetsSelected}}\n          indeterminate={{this.partTimesheetsSelected}}\n        />\n      </th>\n      <th>{{t 'common.Worker'}}</th>\n      <th>{{t 'common.Rate'}}</th>\n      <th>{{t 'common.Hours'}}</th>\n      <th>{{t 'common.Total'}}</th>\n    </tr>\n  </thead>\n  \n  <tbody>\n    {{! Timesheets are organised by worker }}\n    {{#each this.workers as |workerGroup|}}\n      <tr>\n        {{! Toggle to include all the timesheets for the worker }}\n        <td onclick={{action this.toggleWorkersTimesheetsSelected workerGroup}}>\n          <Input\n            @type='checkbox'\n            @checked={{workerGroup.allSelected}}\n            indeterminate={{workerGroup.partSelected}}\n          />\n        </td>\n  \n        {{! Each workerGroup can be expanded to show the individual timesheets }}\n        <td>\n          <span class='report-builder__name-and-label-wrapper'>\n            <a class='link' {{action this.toggleItemsVisible workerGroup}}>\n              {{workerGroup.worker.firstName}}\n              {{workerGroup.worker.lastName}}\n              <FaIcon\n                @icon={{if workerGroup.itemsVisible 'angle-down' 'angle-right'}}\n              />\n            </a>\n            <div class='report-builder__reported-label-wrapper'>\n              {{#if workerGroup.worker.isContractor}}\n                <span class='report-builder__reported-label'>\n                  {{t\n                    'components.report-builder-pm.timesheet-type-table.Contract worker'\n                  }}\n                </span>\n              {{/if}}\n              {{#if workerGroup.nReported}}\n                <span class='report-builder__reported-label'>\n                  {{t 'common.Reported'}}\n                  {{#unless workerGroup.allReported}}\n                    ({{workerGroup.nReported}}/{{workerGroup.timesheets.length}})\n                  {{/unless}}\n                  <span\n                    class='report-builder__reported-label-close'\n                    {{action this.setItemsReportedFalse workerGroup.timesheets}}\n                  >\n                    <FaIcon @icon='times' />\n                  </span>\n                </span>\n              {{/if}}\n            </div>\n          </span>\n        </td>\n  \n        {{! When using charge out rates, the rate for each workerGroup is editable }}\n        <td>\n          {{#if this.useChargeOutRates}}\n            <FormattedInput\n              @class='text-input'\n              @placeholder={{number-format\n                workerGroup.worker.chargeOutRate\n                style='currency'\n                dashZero=true\n              }}\n              @update={{fn (mut workerGroup.worker.currentChargeOutRate)}}\n              @number={{workerGroup.worker.currentChargeOutRate}}\n              @format='currency'\n              data-test-current-co-rate\n            />\n          {{else}}\n            {{number-format\n              workerGroup.worker.costRate\n              style='currency'\n              dashZero=false\n            }}\n          {{/if}}\n        </td>\n  \n        <td>\n          {{number-format\n            (or workerGroup.timesheetTotals.hours 0)\n            maximumFractionDigits=2\n            dashZero=false\n          }}\n        </td>\n        <td>\n          {{number-format\n            (or\n              (if\n                this.useChargeOutRates\n                workerGroup.timesheetTotals.chargeOut\n                workerGroup.timesheetTotals.cost\n              )\n              0\n            )\n            style='currency'\n            dashZero=false\n          }}\n        </td>\n      </tr>\n  \n      {{#if workerGroup.itemsVisible}}\n        <tr>\n          {{! Empty cell to give appearance of indentation }}\n          <td></td>\n          <td colspan='5' class='report-builder__section-table-cell--no-padding'>\n            {{! Sub table for individual timesheets when worker is expanded }}\n            <table class='report-builder__section-table--sub-table'>\n              <thead>\n                <th class='report-builder__section-table-small-cell'></th>\n                <th>{{t 'common.Date'}}</th>\n                <th>{{t 'shared.report-builder.taskProject'}}</th>\n                <th>{{t 'common.Rate'}}</th>\n                <th>{{t 'common.Hours'}}</th>\n                <th>{{t 'common.Total'}}</th>\n                <th>{{t 'common.Edit'}}</th>\n              </thead>\n  \n              {{#each workerGroup.timesheets as |timesheet|}}\n                <tbody>\n                  <td onclick={{action this.toggleTimesheetSelected timesheet}}>\n                    <Input @type='checkbox' @checked={{timesheet.selected}} />\n                  </td>\n                  <td>\n                    <span class='report-builder__name-and-label-wrapper'>\n                      {{moment-format timesheet.date (t 'date.shortWithWeekday')}}\n                      {{#if timesheet.reported}}\n                        <span class='report-builder__reported-label'>\n                          {{t 'common.Reported'}}\n                          <span\n                            class='report-builder__reported-label-close'\n                            {{action this.setItemReportedFalse timesheet}}\n                          >\n                            <FaIcon @icon='times' />\n                          </span>\n                        </span>\n                      {{/if}}\n                    </span>\n                  </td>\n                  <td>\n                    {{timesheet.task.breadcrumbs}}\n                    >\n                    {{timesheet.task.name}}</td>\n                  <td>\n                    {{#if this.useChargeOutRates}}\n                      {{! Use the manual charge out rate if present }}\n                      {{number-format\n                        (or\n                          workerGroup.currentChargeOutRate timesheet.chargeOutRate\n                        )\n                        style='currency'\n                        dashZero=false\n                      }}\n                    {{else}}\n                      {{number-format\n                        timesheet.costRate\n                        style='currency'\n                        dashZero=false\n                      }}\n                    {{/if}}\n                  </td>\n                  <td>\n                    {{number-format\n                      timesheet.hours\n                      maximumFractionDigits=2\n                      dashZero=true\n                    }}\n                  </td>\n                  <td>\n                    {{! If a manual charge out rate is set, we need to recalculate the labour price }}\n                    {{number-format\n                      (if\n                        this.useChargeOutRates\n                        (if\n                          workerGroup.currentChargeOutRate\n                          (math\n                            timesheet.hours '*' workerGroup.currentChargeOutRate\n                          )\n                          timesheet.totals.chargeOutTotal\n                        )\n                        timesheet.totals.costTotal\n                      )\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </td>\n  \n                  <td>\n                    <LinkTo\n                      @route='entity.builda-price.operations.incoming.timesheets.timesheet'\n                      @query={{hash\n                        date=(moment-format timesheet.date 'YYYY-MM-DD')\n                        worker=timesheet.worker.id\n                      }}\n                      class='link'\n                    >\n                      {{t\n                        'components.report-builder-pm.timesheet-type-table.Edit timesheet'\n                      }}\n                    </LinkTo>\n                  </td>\n                </tbody>\n              {{/each}}\n            </table>\n          </td>\n        </tr>\n      {{/if}}\n    {{/each}}\n  </tbody>\n  */\n  {\n    \"id\": \"PXZgGBEQ\",\n    \"block\": \"[[[10,\\\"thead\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"title\\\"]],[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[14,\\\"colspan\\\",\\\"6\\\"],[12],[1,[30,0,[\\\"title\\\"]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[15,\\\"onclick\\\",[28,[37,4],[[30,0],[30,0,[\\\"toggleTimesheetsSelected\\\"]]],null]],[14,0,\\\"report-builder__section-table-small-cell\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],[[16,\\\"indeterminate\\\",[30,0,[\\\"partTimesheetsSelected\\\"]]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"allTimesheetsSelected\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Worker\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Rate\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Hours\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"workers\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,\\\"td\\\"],[15,\\\"onclick\\\",[28,[37,4],[[30,0],[30,0,[\\\"toggleWorkersTimesheetsSelected\\\"]],[30,1]],null]],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],[[16,\\\"indeterminate\\\",[30,1,[\\\"partSelected\\\"]]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,1,[\\\"allSelected\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__name-and-label-wrapper\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[24,0,\\\"link\\\"],[4,[38,4],[[30,0],[30,0,[\\\"toggleItemsVisible\\\"]],[30,1]],null],[12],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"worker\\\",\\\"firstName\\\"]]],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"worker\\\",\\\"lastName\\\"]]],[1,\\\"\\\\n            \\\"],[8,[39,13],null,[[\\\"@icon\\\"],[[52,[30,1,[\\\"itemsVisible\\\"]],\\\"angle-down\\\",\\\"angle-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"report-builder__reported-label-wrapper\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"worker\\\",\\\"isContractor\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"report-builder__reported-label\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"components.report-builder-pm.timesheet-type-table.Contract worker\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"nReported\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"report-builder__reported-label\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Reported\\\"],null]],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"allReported\\\"]]],[[[1,\\\"                  (\\\"],[1,[30,1,[\\\"nReported\\\"]]],[1,\\\"/\\\"],[1,[30,1,[\\\"timesheets\\\",\\\"length\\\"]]],[1,\\\")\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[11,1],[24,0,\\\"report-builder__reported-label-close\\\"],[4,[38,4],[[30,0],[30,0,[\\\"setItemsReportedFalse\\\"]],[30,1,[\\\"timesheets\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[8,[39,13],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"useChargeOutRates\\\"]],[[[1,\\\"          \\\"],[8,[39,16],[[24,\\\"data-test-current-co-rate\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\"],[\\\"text-input\\\",[28,[37,17],[[30,1,[\\\"worker\\\",\\\"chargeOutRate\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]],[28,[37,18],[[28,[37,19],[[30,1,[\\\"worker\\\",\\\"currentChargeOutRate\\\"]]],null]],null],[30,1,[\\\"worker\\\",\\\"currentChargeOutRate\\\"]],\\\"currency\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,17],[[30,1,[\\\"worker\\\",\\\"costRate\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,17],[[28,[37,20],[[30,1,[\\\"timesheetTotals\\\",\\\"hours\\\"]],0],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,false]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,17],[[28,[37,20],[[52,[30,0,[\\\"useChargeOutRates\\\"]],[30,1,[\\\"timesheetTotals\\\",\\\"chargeOut\\\"]],[30,1,[\\\"timesheetTotals\\\",\\\"cost\\\"]]],0],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"itemsVisible\\\"]],[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"5\\\"],[14,0,\\\"report-builder__section-table-cell--no-padding\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[10,\\\"table\\\"],[14,0,\\\"report-builder__section-table--sub-table\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[14,0,\\\"report-builder__section-table-small-cell\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Date\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"shared.report-builder.taskProject\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Rate\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Hours\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Edit\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,1,[\\\"timesheets\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[15,\\\"onclick\\\",[28,[37,4],[[30,0],[30,0,[\\\"toggleTimesheetSelected\\\"]],[30,2]],null]],[12],[1,\\\"\\\\n                  \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,2,[\\\"selected\\\"]]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"report-builder__name-and-label-wrapper\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,22],[[30,2,[\\\"date\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"reported\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"report-builder__reported-label\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,6],[\\\"common.Reported\\\"],null]],[1,\\\"\\\\n                        \\\"],[11,1],[24,0,\\\"report-builder__reported-label-close\\\"],[4,[38,4],[[30,0],[30,0,[\\\"setItemReportedFalse\\\"]],[30,2]],null],[12],[1,\\\"\\\\n                          \\\"],[8,[39,13],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,2,[\\\"task\\\",\\\"breadcrumbs\\\"]]],[1,\\\"\\\\n                  >\\\\n                  \\\"],[1,[30,2,[\\\"task\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"useChargeOutRates\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,17],[[28,[37,20],[[30,1,[\\\"currentChargeOutRate\\\"]],[30,2,[\\\"chargeOutRate\\\"]]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[1,[28,[35,17],[[30,2,[\\\"costRate\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,17],[[30,2,[\\\"hours\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[1,[28,[35,17],[[52,[30,0,[\\\"useChargeOutRates\\\"]],[52,[30,1,[\\\"currentChargeOutRate\\\"]],[28,[37,23],[[30,2,[\\\"hours\\\"]],\\\"*\\\",[30,1,[\\\"currentChargeOutRate\\\"]]],null],[30,2,[\\\"totals\\\",\\\"chargeOutTotal\\\"]]],[30,2,[\\\"totals\\\",\\\"costTotal\\\"]]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,24],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet\\\",[28,[37,25],null,[[\\\"date\\\",\\\"worker\\\"],[[28,[37,22],[[30,2,[\\\"date\\\"]],\\\"YYYY-MM-DD\\\"],null],[30,2,[\\\"worker\\\",\\\"id\\\"]]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"components.report-builder-pm.timesheet-type-table.Edit timesheet\\\"],null]],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]],null],[13]],[\\\"workerGroup\\\",\\\"timesheet\\\"],false,[\\\"thead\\\",\\\"if\\\",\\\"tr\\\",\\\"th\\\",\\\"action\\\",\\\"input\\\",\\\"t\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"span\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"div\\\",\\\"unless\\\",\\\"formatted-input\\\",\\\"number-format\\\",\\\"fn\\\",\\\"mut\\\",\\\"or\\\",\\\"table\\\",\\\"moment-format\\\",\\\"math\\\",\\\"link-to\\\",\\\"hash\\\"]]\",\n    \"moduleName\": \"portal/components/report-builder-pm/timesheet-type-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'table',\n    classNames: ['report-builder__section-table']\n  }));\n});","define(\"portal/components/report-engine-element-container\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='report-engine-element-container__container' ...attributes>\n    {{yield}}\n    {{#each @elements as |element|}}\n      <ReportEngineElement @element={{element}} @hideClass={{@hideClass}} />\n    {{/each}}\n  </div>\n  */\n  {\n    \"id\": \"mMXoya8X\",\n    \"block\": \"[[[11,0],[24,0,\\\"report-engine-element-container__container\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[18,5,null],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,2]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,4],null,[[\\\"@element\\\",\\\"@hideClass\\\"],[[30,3],[30,4]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[13]],[\\\"&attrs\\\",\\\"@elements\\\",\\\"element\\\",\\\"@hideClass\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"yield\\\",\\\"each\\\",\\\"-track-array\\\",\\\"report-engine-element\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element-container.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/report-engine-element\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='rounded report-engine-element__container {{this.classes}}'\n    ...attributes\n  >\n    {{#if (or @element.name @element.searchEnabled)}}\n      <div class='position-relative'>\n        {{#if @element.name}}\n          <h3 class='text-center'>{{@element.name}}</h3>\n        {{/if}}\n        {{#if @element.searchEnabled}}\n          <span class='position-absolute top-0 end-0 {{@hideClass}}'>\n            <Input\n              class='form-control'\n              placeholder={{t 'common.Search'}}\n              aria-label='Search'\n              @type='text'\n              @value={{this.searchString}}\n            />\n          </span>\n        {{/if}}\n      </div>\n    {{/if}}\n  \n    {{#if (eq @element.elementType 'TABLE')}}\n      {{#if this.tableIsHeightConstrained}}\n        <div class='report-engine-table-container-overflow'>\n          <ReportEngineElement::Table\n            @parentContainerHasOverflow={{this.tableIsHeightConstrained}}\n            @values={{this.filterData}}\n            @thead={{@element.axes.thead}}\n            @tfoot={{@element.axes.tfoot}}\n          />\n        </div>\n      {{else}}\n        <ReportEngineElement::Table\n          @values={{this.filterData}}\n          @thead={{@element.axes.thead}}\n          @tfoot={{@element.axes.tfoot}}\n        />\n      {{/if}}\n    {{else if (eq @element.elementType 'PROJECTS_TABLE')}}\n      <ReportEngineElement::ProjectsTable\n        @values={{@element.values}}\n        @thead={{@element.axes.thead}}\n      />\n    {{else if (eq @element.elementType 'MULTI_GAUGE')}}\n      <ReportEngineElement::Gauge\n        @values={{@element.values}}\n        @x={{@element.axes.x}}\n      />\n    {{else if (eq @element.elementType 'BIG_TEXT')}}\n      <ReportEngineElement::BigText\n        @values={{@element.values}}\n        @label={{@element.axes.label}}\n      />\n    {{else if (eq @element.elementType 'PIE_CHART')}}\n      <ReportEngineElement::Pie @values={{@element.values}} />\n    {{else if (eq @element.elementType 'NOTE_TIMELINE')}}\n      <ReportEngineElement::NoteTimeline @values={{@element.values}} />\n    {{else}}\n      This should cause an error...\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"GaGfC/nZ\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"rounded report-engine-element__container \\\",[30,0,[\\\"classes\\\"]]]]],[17,1],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,2,[\\\"name\\\"]],[30,2,[\\\"searchEnabled\\\"]]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"position-relative\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"name\\\"]],[[[1,\\\"        \\\"],[10,\\\"h3\\\"],[14,0,\\\"text-center\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,2,[\\\"searchEnabled\\\"]],[[[1,\\\"        \\\"],[10,1],[15,0,[29,[\\\"position-absolute top-0 end-0 \\\",[30,3]]]],[12],[1,\\\"\\\\n          \\\"],[8,[39,5],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"aria-label\\\",\\\"Search\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,2,[\\\"elementType\\\"]],\\\"TABLE\\\"],null],[[[41,[30,0,[\\\"tableIsHeightConstrained\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"report-engine-table-container-overflow\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@parentContainerHasOverflow\\\",\\\"@values\\\",\\\"@thead\\\",\\\"@tfoot\\\"],[[30,0,[\\\"tableIsHeightConstrained\\\"]],[30,0,[\\\"filterData\\\"]],[30,2,[\\\"axes\\\",\\\"thead\\\"]],[30,2,[\\\"axes\\\",\\\"tfoot\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@values\\\",\\\"@thead\\\",\\\"@tfoot\\\"],[[30,0,[\\\"filterData\\\"]],[30,2,[\\\"axes\\\",\\\"thead\\\"]],[30,2,[\\\"axes\\\",\\\"tfoot\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,7],[[30,2,[\\\"elementType\\\"]],\\\"PROJECTS_TABLE\\\"],null],[[[1,\\\"    \\\"],[8,[39,9],null,[[\\\"@values\\\",\\\"@thead\\\"],[[30,2,[\\\"values\\\"]],[30,2,[\\\"axes\\\",\\\"thead\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,2,[\\\"elementType\\\"]],\\\"MULTI_GAUGE\\\"],null],[[[1,\\\"    \\\"],[8,[39,10],null,[[\\\"@values\\\",\\\"@x\\\"],[[30,2,[\\\"values\\\"]],[30,2,[\\\"axes\\\",\\\"x\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,2,[\\\"elementType\\\"]],\\\"BIG_TEXT\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],null,[[\\\"@values\\\",\\\"@label\\\"],[[30,2,[\\\"values\\\"]],[30,2,[\\\"axes\\\",\\\"label\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,2,[\\\"elementType\\\"]],\\\"PIE_CHART\\\"],null],[[[1,\\\"    \\\"],[8,[39,12],null,[[\\\"@values\\\"],[[30,2,[\\\"values\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,2,[\\\"elementType\\\"]],\\\"NOTE_TIMELINE\\\"],null],[[[1,\\\"    \\\"],[8,[39,13],null,[[\\\"@values\\\"],[[30,2,[\\\"values\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    This should cause an error...\\\\n  \\\"]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]],[13]],[\\\"&attrs\\\",\\\"@element\\\",\\\"@hideClass\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"or\\\",\\\"h3\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"eq\\\",\\\"report-engine-element/table\\\",\\\"report-engine-element/projects-table\\\",\\\"report-engine-element/gauge\\\",\\\"report-engine-element/big-text\\\",\\\"report-engine-element/pie\\\",\\\"report-engine-element/note-timeline\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _object.computed)('args.element.height'), _dec2 = (0, _object.computed)('args.element.height'), _dec3 = (0, _object.computed)('args.element.width'), _dec4 = (0, _object.computed)('args.element.borderStyle'), _dec5 = (0, _object.computed)('heightClass', 'widthClass', 'borderClass'), _dec6 = (0, _object.computed)('args.element.values', 'searchString'), _class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"searchString\", _descriptor, this);\n    }\n    get tableIsHeightConstrained() {\n      if (!this.args.element.height) return false;\n      return true;\n    }\n    get heightClass() {\n      if (!this.args.element.height) return '';\n      if (this.args.element.height > 12 || this.args.element.height < 1) return '';\n      return `report-engine-element__container--height-${this.args.element.height}`;\n    }\n    get widthClass() {\n      if (!this.args.element.width) return '';\n      if (!this.args.element.width) return '';\n      if (this.args.element.width > 12 || this.args.element.width < 1) return '';\n      return `report-engine-element__container--width-${this.args.element.width}`;\n    }\n    get borderClass() {\n      if (!this.args.element.borderStyle) return '';\n      switch (this.args.element.borderStyle) {\n        case 'BORDER':\n          return 'border';\n        case 'BORDER_TOP':\n          return 'border-top';\n        case 'BORDER_LEFT':\n          return 'border-left';\n        case 'BORDER_RIGHT':\n          return 'border-right';\n        case 'BORDER_BOTTOM':\n          return 'border-bottom';\n        default:\n          return '';\n      }\n    }\n    get classes() {\n      return [this.heightClass, this.widthClass, this.borderClass].join(' ');\n    }\n    get filterData() {\n      const searchString = this.searchString.replace(/\\s/g, '').toLowerCase();\n      if (!searchString.length) return this.args.element.values;\n      const filteredData = [];\n      const filter = table => {\n        table.forEach(row => {\n          // check if row has table in it\n          let tableIndex = 0;\n          row.some((cell, index) => {\n            if (cell.length) {\n              tableIndex = index;\n              return true;\n            }\n          });\n          let filterValue = '';\n          for (let i = 0; i <= (tableIndex || row.length - 1); i++) {\n            filterValue += row[i].value;\n          }\n          if (filterValue.replace(/\\s/g, '').toLowerCase().includes(searchString)) {\n            if (tableIndex) {\n              filteredData.push(row.slice(0, tableIndex + 1));\n            } else {\n              filteredData.push(row);\n            }\n          }\n          if (tableIndex) {\n            filter(row.slice(tableIndex));\n          }\n        });\n      };\n      filter(this.args.element.values);\n      return filteredData;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"tableIsHeightConstrained\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"tableIsHeightConstrained\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"heightClass\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"heightClass\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"widthClass\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"widthClass\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"borderClass\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"borderClass\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"classes\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"classes\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"filterData\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"filterData\"), _class.prototype), _class));\n});","define(\"portal/components/report-engine-element/big-text\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.hasValue}}\n    <div class='text-center'>\n      <h1 class='m-0 p-0 display-6'>\n        <ReportEngineElement::Value @value={{this.value}} />\n      </h1>\n  \n      {{#if this.label}}\n        <span class='text-secondary'>{{this.label}}</span>\n      {{/if}}\n    </div>\n  {{else}}\n    <p class='text-center'>\n      {{t 'common.Not enough data'}}\n    </p>\n  {{/if}}\n  */\n  {\n    \"id\": \"ITUOqadq\",\n    \"block\": \"[[[41,[30,0,[\\\"hasValue\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h1\\\"],[14,0,\\\"m-0 p-0 display-6\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@value\\\"],[[30,0,[\\\"value\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"label\\\"]],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"text-secondary\\\"],[12],[1,[30,0,[\\\"label\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,6],[\\\"common.Not enough data\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"div\\\",\\\"h1\\\",\\\"report-engine-element/value\\\",\\\"span\\\",\\\"p\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/big-text.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get label() {\n      return this.args.label?.[0]?.[0].value;\n    }\n    get value() {\n      return this.args.values[0];\n    }\n    get hasValue() {\n      // this intentionally does not pass 0\n      return Boolean(this.value.value);\n    }\n  });\n});","define(\"portal/components/report-engine-element/card\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='card mb-3 w-100' style='break-inside: avoid;' ...attributes>\n    <div class='card-body'>\n      <div class='d-flex align-items-center mb-2'>\n        {{#if this.title}}\n          {{#each this.title as |title|}}\n            <h5 class='card-title m-0 me-1'>\n              <ReportEngineElement::Value @value={{title}} />\n            </h5>\n          {{/each}}\n        {{/if}}\n  \n        {{#if this.badge}}\n          {{#each this.badge as |badge|}}\n            <span class='badge bg-secondary'>\n              <ReportEngineElement::Value @value={{badge}} />\n            </span>\n          {{/each}}\n        {{/if}}\n      </div>\n  \n      {{#if this.subtitle}}\n        <h6 class='card-subtitle mb-2 text-muted'>\n          {{#each this.subtitle as |subtitle|}}\n            <ReportEngineElement::Value @value={{subtitle}} className='me-1' />\n          {{/each}}\n        </h6>\n      {{/if}}\n      {{#if this.body}}\n        {{#each this.body as |body|}}\n          <p class='card-text'>\n            <ReportEngineElement::Value @value={{body}} />\n          </p>\n        {{/each}}\n      {{/if}}\n      {{#if this.attachments.length}}\n        {{#each this.attachments as |attachments|}}\n          <ReportEngineElement::Value\n            @value={{attachments}}\n            class='d-grid gap-2 mb-2'\n            style='grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-rows: minmax(200px, auto);'\n          />\n        {{/each}}\n      {{/if}}\n  \n      {{#if this.linkOne}}\n        {{#each this.linkOne as |linkOne|}}\n          <ReportEngineElement::Value @value={{linkOne}} class='card-link' />\n        {{/each}}\n      {{/if}}\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"9z53bMcK\",\n    \"block\": \"[[[11,0],[24,0,\\\"card mb-3 w-100\\\"],[24,5,\\\"break-inside: avoid;\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"card-body\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"title\\\"]],[[[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"title\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"h5\\\"],[14,0,\\\"card-title m-0 me-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@value\\\"],[[30,2]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"badge\\\"]],[[[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"badge\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,1],[14,0,\\\"badge bg-secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@value\\\"],[[30,3]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"subtitle\\\"]],[[[1,\\\"      \\\"],[10,\\\"h6\\\"],[14,0,\\\"card-subtitle mb-2 text-muted\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"subtitle\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[39,5],[[24,\\\"className\\\",\\\"me-1\\\"]],[[\\\"@value\\\"],[[30,4]]],null],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"body\\\"]],[[[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"body\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,2],[14,0,\\\"card-text\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@value\\\"],[[30,5]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null]],[]],null],[41,[30,0,[\\\"attachments\\\",\\\"length\\\"]],[[[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"attachments\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,5],[[24,0,\\\"d-grid gap-2 mb-2\\\"],[24,5,\\\"grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-rows: minmax(200px, auto);\\\"]],[[\\\"@value\\\"],[[30,6]]],null],[1,\\\"\\\\n\\\"]],[6]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"linkOne\\\"]],[[[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"linkOne\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,5],[[24,0,\\\"card-link\\\"]],[[\\\"@value\\\"],[[30,7]]],null],[1,\\\"\\\\n\\\"]],[7]],null]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"title\\\",\\\"badge\\\",\\\"subtitle\\\",\\\"body\\\",\\\"attachments\\\",\\\"linkOne\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"h5\\\",\\\"report-engine-element/value\\\",\\\"span\\\",\\\"h6\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/card.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    constructor(owner, args) {\n      super(owner, args);\n      _defineProperty(this, \"badge\", void 0);\n      _defineProperty(this, \"title\", void 0);\n      _defineProperty(this, \"subtitle\", void 0);\n      _defineProperty(this, \"body\", void 0);\n      _defineProperty(this, \"attachments\", void 0);\n      _defineProperty(this, \"linkOne\", void 0);\n      this.badge = this.initField(args.badgeIndex, args.value);\n      this.title = this.initField(args.titleIndex, args.value);\n      this.subtitle = this.initField(args.subtitleIndex, args.value);\n      this.body = this.initField(args.bodyIndex, args.value);\n      this.attachments = this.initField(args.attachmentsIndex, args.value);\n      this.linkOne = this.initField(args.linkOneIndex, args.value);\n    }\n    initField(index, source) {\n      // return undefined if index is missing\n      if (index === undefined) return undefined;\n      const value = source[index];\n      return Array.isArray(value) ? value : [value];\n    }\n  });\n});","define(\"portal/components/report-engine-element/gauge\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@amcharts/amcharts5\", \"@amcharts/amcharts5/radar\", \"@amcharts/amcharts5/xy\", \"portal/utils/am5-bp-theme\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, am5, _radar, _xy, _am5BpTheme, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@amcharts/amcharts5\",0,\"@amcharts/amcharts5/radar\",0,\"@amcharts/amcharts5/xy\",0,\"portal/utils/am5-bp-theme\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.hasData}}\n    <div\n      style='height: 100%; width: 100%;'\n      {{did-insert this.didInsert this.axesData this.valueData}}\n    ></div>\n  {{else}}\n    <p class='text-center'>\n      {{t 'common.Not enough data'}}\n    </p>\n  {{/if}}\n  */\n  {\n    \"id\": \"Y5/CJkDP\",\n    \"block\": \"[[[41,[30,0,[\\\"hasData\\\"]],[[[1,\\\"  \\\"],[11,0],[24,5,\\\"height: 100%; width: 100%;\\\"],[4,[38,2],[[30,0,[\\\"didInsert\\\"]],[30,0,[\\\"axesData\\\"]],[30,0,[\\\"valueData\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,4],[\\\"common.Not enough data\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"div\\\",\\\"did-insert\\\",\\\"p\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/gauge.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get axesData() {\n      return this.args.x.filter(([label, value]) => label.value && value.value).sort(([_aLabel, aValue], [_bLabel, bValue]) => aValue.value > bValue.value ? 1 : -1);\n    }\n    get valueData() {\n      return this.args.values[0];\n    }\n    get hasData() {\n      return Boolean(this.axesData.length > 0 && this.valueData);\n    }\n    didInsert(element, [axesData, valueData]) {\n      const axisMax = Math.max(...axesData.map(([_, a]) => a.value));\n      const [valueTitle, valueValue] = valueData;\n      const valueMax = Math.max(axisMax, valueValue.value);\n      const includeOverrun = valueValue.value / axisMax >= 0.8;\n      const includeLabels = includeOverrun || axesData.length > 1;\n      const overrunPercent = includeOverrun ? 0.2 : 0;\n      const third = 100 - 100 / 3;\n      const width = element.offsetWidth;\n      const height = element.offsetHeight;\n      const maxLabelWidth = width / (axesData.length + 1);\n\n      // use theme\n      const root = am5.Root.new(element);\n      root.setThemes([_am5BpTheme.default.new(root)]);\n\n      // set number formatter\n      if (axesData.some(([_, v]) => v.format !== valueValue.format)) throw new Error('Cannot combine formats in gauge chart');\n      let currency = 'NZD';\n      const percentageNumber = Math.round(valueValue.value / (axisMax || Infinity) * 100);\n      switch (valueValue.format) {\n        case 'CURRENCY':\n          if (this.sessionData.entity?.region === 'AUS') {\n            currency = 'AUD';\n          }\n          root.numberFormatter.set('numberFormat', {\n            style: 'currency',\n            currency,\n            minimumFractionDigits: 2\n          });\n          break;\n        case 'DURATION':\n          root.numberFormatter.set('numberFormat', {\n            style: 'unit',\n            unit: 'hour'\n          });\n          break;\n        case 'PERCENTAGE':\n          root.numberFormatter.set('numberFormat', {\n            style: 'percent',\n            dashZero: true,\n            maximumFractionDigits: 2\n          });\n          break;\n      }\n\n      // make the chart\n      const chart = root.container.children.push(_radar.default.RadarChart.new(root, {\n        panX: false,\n        panY: false,\n        startAngle: 160,\n        endAngle: 380,\n        layout: root.verticalLayout\n      }));\n      const axisRenderer = _radar.default.AxisRendererCircular.new(root, {\n        innerRadius: am5.percent(third)\n      });\n      axisRenderer.labels.template.set('visible', false);\n      axisRenderer.grid.template.set('visible', false);\n      const axis = chart.xAxes.push(_xy.default.ValueAxis.new(root, {\n        maxDeviation: 0,\n        min: 0,\n        max: valueMax,\n        strictMinMax: true,\n        extraMax: overrunPercent,\n        renderer: axisRenderer\n      }));\n      axesData.forEach(([title, value], index) => {\n        const color = chart.get('colors').next();\n        const lastValue = axesData[index - 1]?.[1]?.value || 0;\n        const axisRange = axis.createAxisRange(axis.makeDataItem({\n          value: lastValue,\n          endValue: value.value\n        }));\n        axisRange.get('axisFill').setAll({\n          tooltipText: title.value + ': {endValue.formatNumber()}[/]',\n          visible: true,\n          fill: am5.color(color)\n        });\n        if (includeLabels) axisRange.get('label').setAll({\n          visible: true,\n          text: title.value,\n          oversizedBehavior: 'truncate',\n          maxWidth: maxLabelWidth,\n          fontSize: '0.9em'\n        });\n      });\n      if (includeOverrun) {\n        const overrunRange = axis.createAxisRange(axis.makeDataItem({\n          value: axisMax,\n          endValue: valueMax * (1 + overrunPercent)\n        }));\n        overrunRange.get('axisFill').setAll({\n          visible: true,\n          fill: root.interfaceColors.get('negative')\n        });\n        overrunRange.get('label').setAll({\n          visible: true,\n          text: this.intl.t('common.Overrun'),\n          oversizedBehavior: 'truncate',\n          maxWidth: maxLabelWidth,\n          fontSize: '0.9em'\n        });\n      }\n      const label = chart.radarContainer.children.push(am5.Label.new(root, {\n        centerX: am5.percent(50),\n        textAlign: 'center',\n        centerY: am5.percent(50),\n        fontSize: '1em',\n        y: height / 4\n      }));\n      label.set('text', `${percentageNumber}%`);\n      // add the clock hand\n      // TODO I think this is causing browsers to crash\n      const clockHandDataItem = axis.makeDataItem({\n        value: valueValue.value\n      });\n      const clockHand = _radar.default.ClockHand.new(root, {\n        tooltipText: valueTitle.value + ': {value.formatNumber()}[/]',\n        pinRadius: am5.percent(100 / 3 / 2),\n        radius: am5.percent(100),\n        bottomWidth: 5,\n        fill: root.interfaceColors.get('alternativeBackground')\n      });\n      clockHandDataItem.set('bullet', _xy.default.AxisBullet.new(root, {\n        sprite: clockHand\n      }));\n      axis.createAxisRange(clockHandDataItem);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _class));\n});","define(\"portal/components/report-engine-element/note-timeline\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.sections.length}}\n    {{#each this.sections as |section|}}\n      {{#let (get section 0) as |date|}}\n        <div class='d-flex align-items-center'>\n          <div style='width: 9ch' class='text-right'>\n            {{moment-format date 'dddd'}}\n          </div>\n          <div\n            style='width: 50px; height: 50px;'\n            class='border rounded-circle mx-3 d-flex align-items-center justify-content-center'\n          >\n            <FaIcon @icon='calendar' @fixedWidth={{true}} @size='sm' />\n          </div>\n          <div>\n            {{moment-format date (t 'date.longWithoutWeekday')}}\n          </div>\n        </div>\n      {{/let}}\n  \n      <div class='border-start p-3' style='margin-left: 106px;'>\n        {{#each (get section 1) as |value|}}\n          <ReportEngineElement::Card\n            @badgeIndex={{5}}\n            @titleIndex={{1}}\n            @subtitleIndex={{2}}\n            @bodyIndex={{3}}\n            @attachmentsIndex={{4}}\n            @linkOneIndex={{6}}\n            @value={{value}}\n          />\n        {{/each}}\n      </div>\n    {{/each}}\n  {{else}}\n    <div class='text-center'>{{t 'common.Not enough data'}}</div>\n  {{/if}}\n  */\n  {\n    \"id\": \"xiRGSPcO\",\n    \"block\": \"[[[41,[30,0,[\\\"sections\\\",\\\"length\\\"]],[[[42,[28,[37,2],[[28,[37,2],[[30,0,[\\\"sections\\\"]]],null]],null],null,[[[44,[[28,[37,4],[[30,1],0],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,5,\\\"width: 9ch\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[[30,2],\\\"dddd\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,5,\\\"width: 50px; height: 50px;\\\"],[14,0,\\\"border rounded-circle mx-3 d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,7],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"calendar\\\",true,\\\"sm\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[[30,2],[28,[37,8],[\\\"date.longWithoutWeekday\\\"],null]],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"border-start p-3\\\"],[14,5,\\\"margin-left: 106px;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[28,[37,4],[[30,1],1],null]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,9],null,[[\\\"@badgeIndex\\\",\\\"@titleIndex\\\",\\\"@subtitleIndex\\\",\\\"@bodyIndex\\\",\\\"@attachmentsIndex\\\",\\\"@linkOneIndex\\\",\\\"@value\\\"],[5,1,2,3,4,6,[30,3]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"text-center\\\"],[12],[1,[28,[35,8],[\\\"common.Not enough data\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"section\\\",\\\"date\\\",\\\"value\\\"],false,[\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"let\\\",\\\"get\\\",\\\"div\\\",\\\"moment-format\\\",\\\"fa-icon\\\",\\\"t\\\",\\\"report-engine-element/card\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/note-timeline.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _defineProperty(this, \"sections\", void 0);\n      const groupIndex = 0;\n      const sections = {};\n      for (const value of this.args.values) {\n        const groupValue = value[groupIndex]?.value;\n        const group = sections[groupValue] || [];\n        group.push(value);\n        sections[groupValue] = group;\n      }\n      this.sections = Object.entries(sections);\n    }\n  });\n});","define(\"portal/components/report-engine-element/pie\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@amcharts/amcharts5\", \"@amcharts/amcharts5/percent\", \"portal/utils/am5-bp-theme\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, am5, _percent, _am5BpTheme, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@amcharts/amcharts5\",0,\"@amcharts/amcharts5/percent\",0,\"portal/utils/am5-bp-theme\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.hasData}}\n    <div\n      style='height: 100%; width: 100%;'\n      {{did-insert this.didInsert this.values}}\n    ></div>\n  {{else}}\n    <p class='text-center'>\n      {{t 'common.Not enough data'}}\n    </p>\n  {{/if}}\n  */\n  {\n    \"id\": \"VNfzbbUh\",\n    \"block\": \"[[[41,[30,0,[\\\"hasData\\\"]],[[[1,\\\"  \\\"],[11,0],[24,5,\\\"height: 100%; width: 100%;\\\"],[4,[38,2],[[30,0,[\\\"didInsert\\\"]],[30,0,[\\\"values\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,4],[\\\"common.Not enough data\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"div\\\",\\\"did-insert\\\",\\\"p\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/pie.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n    get values() {\n      const values = [];\n      this.args.values.forEach(([label, value]) => {\n        if (label.value && value.value) values.push([label, value]);\n      });\n      return values;\n    }\n    get hasData() {\n      return Boolean(this.values.length);\n    }\n    didInsert(element, [values]) {\n      const showLegend = element.offsetHeight > 221;\n      // use theme\n      const root = am5.Root.new(element);\n      root.setThemes([_am5BpTheme.default.new(root)]);\n\n      // set number formatter\n      const format = values[0][1].format;\n      if (values.some(d => d[1].format !== format)) throw new Error('Cannot combine formats in gauge chart');\n      let currency = 'NZD';\n      switch (format) {\n        case 'CURRENCY':\n          if (this.sessionData.entity?.region === 'AUS') {\n            currency = 'AUD';\n          }\n          root.numberFormatter.set('numberFormat', {\n            style: 'currency',\n            currency,\n            minimumFractionDigits: 2\n          });\n          break;\n        case 'DURATION':\n          root.numberFormatter.set('numberFormat', {\n            style: 'unit',\n            unit: 'hour'\n          });\n          break;\n        case 'PERCENTAGE':\n          root.numberFormatter.set('numberFormat', {\n            style: 'percent',\n            minimumFractionDigits: 2,\n            maximumFractionDigits: 2\n          });\n          break;\n      }\n\n      // make the chart\n      const chart = root.container.children.push(_percent.default.PieChart.new(root, {\n        endAngle: 270,\n        layout: root.verticalLayout\n      }));\n      const series = chart.series.push(_percent.default.PieSeries.new(root, {\n        valueField: 'value',\n        categoryField: 'category',\n        endAngle: 270\n      }));\n      series.states.create('hidden', {\n        endAngle: -90\n      });\n      series.data.setAll(values.map(([label, value]) => ({\n        category: label.value,\n        value: value.value\n      })));\n      series.slices.template.set('tooltipText', '{value}');\n      series.labels.template.set('text', \"{category}: {valuePercentTotal.formatNumber('0.')}%[/]\");\n      if (showLegend) {\n        const legend = chart.children.push(am5.Legend.new(root, {\n          centerX: am5.percent(50),\n          x: am5.percent(50),\n          marginTop: 15,\n          marginBottom: 15\n        }));\n        legend.data.setAll(series.dataItems);\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"didInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsert\"), _class.prototype), _class));\n});","define(\"portal/components/report-engine-element/projects-table\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _object, _component2, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.sortedProjectsData.length}}\n    <div class='px-3'>\n      <div class='row'>\n        {{#each @thead as |head index|}}\n          {{#if head.value}}\n            <div\n              class={{head.class}}\n              role='button'\n              {{on\n                'click'\n                (pipe\n                  (fn (mut this.currentRowIndex) index)\n                  (fn this.onChangeSort this.currentSort)\n                )\n              }}\n            >\n              {{head.value}}\n              {{#if (eq this.currentRowIndex index)}}\n                <span\n                  class='report-engine-projects-table__sort-icon\n                    {{this.currentSort}}'\n                ></span>\n              {{/if}}\n            </div>\n          {{else}}\n            <div class={{head.class}}></div>\n          {{/if}}\n        {{/each}}\n      </div>\n    </div>\n    {{#each this.sortedProjectsData as |project|}}\n      <div class='py-2'>\n        <LinkTo\n          @route={{get project '0.linkTo.route'}}\n          @models={{get project '0.linkTo.models'}}\n          class='report-engine-projects-table__card card shadow-sm text-dark p-3'\n          role='button'\n          draggable={{false}}\n        >\n          <div class='row align-items-center'>\n            {{#each project as |col|}}\n              <div class={{col.class}}>\n                <span class='report-engine-table__col'>\n                  <ReportEngineElement::Value @value={{col}} />\n                </span>\n              </div>\n            {{/each}}\n          </div>\n        </LinkTo>\n      </div>\n    {{/each}}\n  {{else}}\n    <div class='error-page error-page--no-data'>\n      <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n      <h3 class='h3 error-page__title'>{{t 'common.No projects'}}</h3>\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"7wHlygi6\",\n    \"block\": \"[[[41,[30,0,[\\\"sortedProjectsData\\\",\\\"length\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,1]],null]],null],null,[[[41,[30,2,[\\\"value\\\"]],[[[1,\\\"          \\\"],[11,0],[16,0,[30,2,[\\\"class\\\"]]],[24,\\\"role\\\",\\\"button\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[28,[37,6],[[28,[37,7],[[30,0,[\\\"currentRowIndex\\\"]]],null],[30,3]],null],[28,[37,6],[[30,0,[\\\"onChangeSort\\\"]],[30,0,[\\\"currentSort\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[30,2,[\\\"value\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"currentRowIndex\\\"]],[30,3]],null],[[[1,\\\"              \\\"],[10,1],[15,0,[29,[\\\"report-engine-projects-table__sort-icon\\\\n                  \\\",[30,0,[\\\"currentSort\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[15,0,[30,2,[\\\"class\\\"]]],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"sortedProjectsData\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[10,0],[14,0,\\\"py-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],[[24,0,\\\"report-engine-projects-table__card card shadow-sm text-dark p-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"draggable\\\",false]],[[\\\"@route\\\",\\\"@models\\\"],[[28,[37,11],[[30,4],\\\"0.linkTo.route\\\"],null],[28,[37,11],[[30,4],\\\"0.linkTo.models\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,4]],null]],null],null,[[[1,\\\"            \\\"],[10,0],[15,0,[30,5,[\\\"class\\\"]]],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"report-engine-table__col\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,12],null,[[\\\"@value\\\"],[[30,5]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,16],[\\\"common.No projects\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@thead\\\",\\\"head\\\",\\\"index\\\",\\\"project\\\",\\\"col\\\"],false,[\\\"if\\\",\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"on\\\",\\\"pipe\\\",\\\"fn\\\",\\\"mut\\\",\\\"eq\\\",\\\"span\\\",\\\"link-to\\\",\\\"get\\\",\\\"report-engine-element/value\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/projects-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _object.computed)('args.values', 'currentSort', 'currentRowIndex'), _class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"currentSort\", _descriptor, this);\n      _initializerDefineProperty(this, \"currentRowIndex\", _descriptor2, this);\n      _initializerDefineProperty(this, \"rowIndex\", _descriptor3, this);\n    }\n    onChangeSort(currentSort) {\n      if (this.rowIndex !== this.currentRowIndex) {\n        (0, _object.set)(this, 'currentSort', 'desc');\n        this.rowIndex = this.currentRowIndex;\n        return;\n      }\n      if (currentSort === 'asc') {\n        (0, _object.set)(this, 'currentSort', null);\n        return;\n      }\n      if (currentSort === 'desc') {\n        (0, _object.set)(this, 'currentSort', 'asc');\n        return;\n      }\n      if (!currentSort) {\n        (0, _object.set)(this, 'currentSort', 'desc');\n        return;\n      }\n    }\n    get sortedProjectsData() {\n      const data = [...this.args.values];\n      if (!this.currentSort) return this.args.values;\n      const sortOrder = this.currentSort === 'desc' ? 1 : -1;\n      data.sort((a, b) => {\n        const valueA = a[this.currentRowIndex].value;\n        const valueB = b[this.currentRowIndex].value;\n        if (valueA < valueB) {\n          return sortOrder;\n        } else if (valueA > valueB) {\n          return -sortOrder;\n        } else {\n          return 0;\n        }\n      });\n      return data;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentSort\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentRowIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"rowIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onChangeSort\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangeSort\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sortedProjectsData\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"sortedProjectsData\"), _class.prototype), _class));\n});","define(\"portal/components/report-engine-element/table\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.hasData}}\n    {{#if @isNested}}\n      {{#if @thead}}\n        <ReportEngineElement::Table::Row\n          @row={{this.thead.row}}\n          @isHeader={{true}}\n          @thead={{this.thead.thead}}\n          @tfoot={{this.tfoot.tfoot}}\n        />\n      {{/if}}\n      {{#each @values as |row identifier|}}\n        <ReportEngineElement::Table::Row\n          @identifier={{identifier}}\n          @row={{row}}\n          @isHeader={{false}}\n          @thead={{this.thead.thead}}\n          @tfoot={{this.tfoot.tfoot}}\n          @isLastRow={{if (eq identifier this.rowLength) true false}}\n        />\n      {{/each}}\n      {{#if @tfoot}}\n        <ReportEngineElement::Table::Row\n          @row={{this.tfoot.row}}\n          @isHeader={{true}}\n          @thead={{this.thead.thead}}\n          @tfoot={{this.tfoot.tfoot}}\n        />\n      {{/if}}\n    {{else}}\n      <table class='table'>\n        {{#if @thead}}\n          <thead\n            class={{if\n              @parentContainerHasOverflow\n              'report-engine-table-header-sticky--table-container'\n              'report-engine-table-header-sticky--page'\n            }}\n          >\n            <ReportEngineElement::Table::Row\n              @row={{this.thead.row}}\n              @isHeader={{true}}\n              @thead={{this.thead.thead}}\n              @tfoot={{this.tfoot.tfoot}}\n            />\n          </thead>\n        {{/if}}\n        <tbody class='table-group-divider'>\n          {{#each @values as |row identifier|}}\n            <ReportEngineElement::Table::Row\n              @identifier={{identifier}}\n              @row={{row}}\n              @isHeader={{false}}\n              @thead={{this.thead.thead}}\n              @tfoot={{this.tfoot.tfoot}}\n            />\n          {{/each}}\n        </tbody>\n        {{#if @tfoot}}\n          <tfoot class='table-group-divider'>\n            {{#each @tfoot as |row identifier|}}\n              <ReportEngineElement::Table::Row\n                @identifier={{identifier}}\n                @row={{row}}\n                @isHeader={{true}}\n                @thead={{this.thead.thead}}\n                @tfoot={{this.tfoot.tfoot}}\n              />\n            {{/each}}\n          </tfoot>\n        {{/if}}\n      </table>\n    {{/if}}\n  {{else}}\n    <p class='text-center'>\n      {{t 'common.Not enough data'}}\n    </p>\n  {{/if}}\n  */\n  {\n    \"id\": \"RSQo4g7Y\",\n    \"block\": \"[[[41,[30,0,[\\\"hasData\\\"]],[[[41,[30,1],[[[41,[30,2],[[[1,\\\"      \\\"],[8,[39,1],null,[[\\\"@row\\\",\\\"@isHeader\\\",\\\"@thead\\\",\\\"@tfoot\\\"],[[30,0,[\\\"thead\\\",\\\"row\\\"]],true,[30,0,[\\\"thead\\\",\\\"thead\\\"]],[30,0,[\\\"tfoot\\\",\\\"tfoot\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,3],[[28,[37,3],[[30,3]],null]],null],null,[[[1,\\\"      \\\"],[8,[39,1],null,[[\\\"@identifier\\\",\\\"@row\\\",\\\"@isHeader\\\",\\\"@thead\\\",\\\"@tfoot\\\",\\\"@isLastRow\\\"],[[30,5],[30,4],false,[30,0,[\\\"thead\\\",\\\"thead\\\"]],[30,0,[\\\"tfoot\\\",\\\"tfoot\\\"]],[52,[28,[37,4],[[30,5],[30,0,[\\\"rowLength\\\"]]],null],true,false]]],null],[1,\\\"\\\\n\\\"]],[4,5]],null],[41,[30,6],[[[1,\\\"      \\\"],[8,[39,1],null,[[\\\"@row\\\",\\\"@isHeader\\\",\\\"@thead\\\",\\\"@tfoot\\\"],[[30,0,[\\\"tfoot\\\",\\\"row\\\"]],true,[30,0,[\\\"thead\\\",\\\"thead\\\"]],[30,0,[\\\"tfoot\\\",\\\"tfoot\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"    \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\"        \\\"],[10,\\\"thead\\\"],[15,0,[52,[30,7],\\\"report-engine-table-header-sticky--table-container\\\",\\\"report-engine-table-header-sticky--page\\\"]],[12],[1,\\\"\\\\n          \\\"],[8,[39,1],null,[[\\\"@row\\\",\\\"@isHeader\\\",\\\"@thead\\\",\\\"@tfoot\\\"],[[30,0,[\\\"thead\\\",\\\"row\\\"]],true,[30,0,[\\\"thead\\\",\\\"thead\\\"]],[30,0,[\\\"tfoot\\\",\\\"tfoot\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,\\\"tbody\\\"],[14,0,\\\"table-group-divider\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,3]],null]],null],null,[[[1,\\\"          \\\"],[8,[39,1],null,[[\\\"@identifier\\\",\\\"@row\\\",\\\"@isHeader\\\",\\\"@thead\\\",\\\"@tfoot\\\"],[[30,9],[30,8],false,[30,0,[\\\"thead\\\",\\\"thead\\\"]],[30,0,[\\\"tfoot\\\",\\\"tfoot\\\"]]]],null],[1,\\\"\\\\n\\\"]],[8,9]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,6],[[[1,\\\"        \\\"],[10,\\\"tfoot\\\"],[14,0,\\\"table-group-divider\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,6]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,1],null,[[\\\"@identifier\\\",\\\"@row\\\",\\\"@isHeader\\\",\\\"@thead\\\",\\\"@tfoot\\\"],[[30,11],[30,10],true,[30,0,[\\\"thead\\\",\\\"thead\\\"]],[30,0,[\\\"tfoot\\\",\\\"tfoot\\\"]]]],null],[1,\\\"\\\\n\\\"]],[10,11]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,10],[\\\"common.Not enough data\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@isNested\\\",\\\"@thead\\\",\\\"@values\\\",\\\"row\\\",\\\"identifier\\\",\\\"@tfoot\\\",\\\"@parentContainerHasOverflow\\\",\\\"row\\\",\\\"identifier\\\",\\\"row\\\",\\\"identifier\\\"],false,[\\\"if\\\",\\\"report-engine-element/table/row\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"table\\\",\\\"thead\\\",\\\"tbody\\\",\\\"tfoot\\\",\\\"p\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get hasData() {\n      return this.args.values.length > 0;\n    }\n    get rowLength() {\n      return this.args.values.length - 1 || 0;\n    }\n    get thead() {\n      return this.args.thead?.reduce((data, col) => {\n        if (Array.isArray(col)) data.thead.push(...col);else data.row.push(col);\n        return data;\n      }, {\n        row: [],\n        thead: []\n      });\n    }\n    get tfoot() {\n      return this.args.tfoot?.reduce((data, col) => {\n        if (Array.isArray(col)) data.tfoot.push(...col);else data.row.push(col);\n        return data;\n      }, {\n        row: [],\n        tfoot: []\n      });\n    }\n  });\n});","define(\"portal/components/report-engine-element/table/row\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.data.table}}\n    <tr\n      class='{{if this.isActive \"table-active\"}} {{@identifier}}'\n      role='button'\n      {{on 'click' (fn (mut this.expanded) (not this.expanded))}}\n      {{on 'mouseenter' (fn (mut this.hovered) true)}}\n      {{on 'mouseleave' (fn (mut this.hovered) false)}}\n      data-test-report-table-row\n    >\n      {{#each this.data.row as |col index|}}\n        {{#if @isHeader}}\n          <th class={{col.class}}>\n            <ReportEngineElement::Value @value={{col}} />\n          </th>\n        {{else}}\n          <td\n            class='{{if @isLastRow \"report-engine-table__row \"}}{{col.class}}'\n            {{on 'click' (fn this.noop col)}}\n          >\n            {{#if (eq index this.firstVisibleRowIndex)}}\n              <FaIcon\n                @icon={{if this.expanded 'chevron-down' 'chevron-right'}}\n                class='me-1 text-dark'\n              />\n            {{/if}}\n            <ReportEngineElement::Value\n              @value={{col}}\n              @expanded={{this.expanded}}\n            />\n          </td>\n        {{/if}}\n      {{/each}}\n    </tr>\n  \n    {{#if this.expanded}}\n      <ReportEngineElement::Table\n        @values={{this.data.table}}\n        @thead={{@thead}}\n        @tfoot={{@tfoot}}\n        @isNested={{true}}\n      />\n    {{/if}}\n  {{else}}\n    <tr class={{@identifier}} data-test-report-table-row>\n      {{#each this.data.row as |col|}}\n        {{#if @isHeader}}\n          <th class={{col.class}}>\n            <ReportEngineElement::Value @value={{col}} />\n          </th>\n        {{else}}\n          <td class='{{if @isLastRow \"report-engine-table__row \"}}{{col.class}}'>\n            <ReportEngineElement::Value @value={{col}} />\n          </td>\n        {{/if}}\n      {{/each}}\n    </tr>\n  {{/if}}\n  */\n  {\n    \"id\": \"rawLHN/Y\",\n    \"block\": \"[[[41,[30,0,[\\\"data\\\",\\\"table\\\"]],[[[1,\\\"  \\\"],[11,\\\"tr\\\"],[16,0,[29,[[52,[30,0,[\\\"isActive\\\"]],\\\"table-active\\\"],\\\" \\\",[30,1]]]],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"data-test-report-table-row\\\",\\\"\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[28,[37,4],[[30,0,[\\\"expanded\\\"]]],null],[28,[37,5],[[30,0,[\\\"expanded\\\"]]],null]],null]],null],[4,[38,2],[\\\"mouseenter\\\",[28,[37,3],[[28,[37,4],[[30,0,[\\\"hovered\\\"]]],null],true],null]],null],[4,[38,2],[\\\"mouseleave\\\",[28,[37,3],[[28,[37,4],[[30,0,[\\\"hovered\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"data\\\",\\\"row\\\"]]],null]],null],null,[[[41,[30,4],[[[1,\\\"        \\\"],[10,\\\"th\\\"],[15,0,[30,2,[\\\"class\\\"]]],[12],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@value\\\"],[[30,2]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"td\\\"],[16,0,[29,[[52,[30,5],\\\"report-engine-table__row \\\"],[30,2,[\\\"class\\\"]]]]],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,0,[\\\"noop\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,3],[30,0,[\\\"firstVisibleRowIndex\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,12],[[24,0,\\\"me-1 text-dark\\\"]],[[\\\"@icon\\\"],[[52,[30,0,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,9],null,[[\\\"@value\\\",\\\"@expanded\\\"],[[30,2],[30,0,[\\\"expanded\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[2,3]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"expanded\\\"]],[[[1,\\\"    \\\"],[8,[39,13],null,[[\\\"@values\\\",\\\"@thead\\\",\\\"@tfoot\\\",\\\"@isNested\\\"],[[30,0,[\\\"data\\\",\\\"table\\\"]],[30,6],[30,7],true]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[15,0,[30,1]],[14,\\\"data-test-report-table-row\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"data\\\",\\\"row\\\"]]],null]],null],null,[[[41,[30,4],[[[1,\\\"        \\\"],[10,\\\"th\\\"],[15,0,[30,8,[\\\"class\\\"]]],[12],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@value\\\"],[[30,8]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[15,0,[29,[[52,[30,5],\\\"report-engine-table__row \\\"],[30,8,[\\\"class\\\"]]]]],[12],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@value\\\"],[[30,8]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[8]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@identifier\\\",\\\"col\\\",\\\"index\\\",\\\"@isHeader\\\",\\\"@isLastRow\\\",\\\"@thead\\\",\\\"@tfoot\\\",\\\"col\\\"],false,[\\\"if\\\",\\\"tr\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"report-engine-element/value\\\",\\\"td\\\",\\\"eq\\\",\\\"fa-icon\\\",\\\"report-engine-element/table\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/table/row.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"expanded\", _descriptor, this);\n      _initializerDefineProperty(this, \"hovered\", _descriptor2, this);\n      _initializerDefineProperty(this, \"paddingLeft\", _descriptor3, this);\n    }\n    get isActive() {\n      return this.expanded || this.hovered;\n    }\n    get data() {\n      return this.args.row.reduce((data, col) => {\n        if (Array.isArray(col)) data.table.push(col);else data.row.push(col);\n        return data;\n      }, {\n        row: [],\n        table: []\n      });\n    }\n    get firstVisibleRowIndex() {\n      const noDisplayClasses = ['d-none'];\n      for (let index = 0; index < this.data.row.length; index++) {\n        const cell = this.data.row[index];\n        const notVisible = noDisplayClasses.includes(cell.class?.trim());\n        if (notVisible) continue;\n        return index;\n      }\n      return -1;\n    }\n    noop(col, e) {\n      if (!col.linkTo) return;\n      e.preventDefault();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"expanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hovered\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"paddingLeft\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _class));\n});","define(\"portal/components/report-engine-element/value\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (and @value.tooltip @value.linkTo)}}\n    {{#if @value.linkTo.queryParams}}\n      <LinkTo\n        @route={{@value.linkTo.route}}\n        @models={{this.linkToModels}}\n        @query={{@value.linkTo.queryParams}}\n      >\n        <LabelPopup @text={{@value.tooltip}}>\n          <span class={{this.className}} ...attributes>\n            {{#if @value.icon}}\n              <FaIcon @icon={{@value.icon}} />\n            {{/if}}\n            <ReportEngineElement::Value::Value\n              @value={{@value.value}}\n              @format={{@value.format}}\n              @dashZero={{@value.dashZero}}\n              @showPositiveNegativeIndicator={{@value.showPositiveNegativeIndicator}}\n            />\n          </span>\n        </LabelPopup>\n      </LinkTo>\n    {{else}}\n      <LinkTo @route={{@value.linkTo.route}} @models={{this.linkToModels}}>\n        <LabelPopup @text={{@value.tooltip}}>\n          <span class={{this.className}} ...attributes>\n            {{#if @value.icon}}\n              <FaIcon @icon={{@value.icon}} />\n            {{/if}}\n            <ReportEngineElement::Value::Value\n              @value={{@value.value}}\n              @format={{@value.format}}\n              @dashZero={{@value.dashZero}}\n              @showPositiveNegativeIndicator={{@value.showPositiveNegativeIndicator}}\n            />\n          </span>\n        </LabelPopup>\n      </LinkTo>\n    {{/if}}\n  {{else if @value.tooltip}}\n    <LabelPopup @text={{@value.tooltip}}>\n      <span class={{this.className}} ...attributes>\n        {{#if @value.icon}}\n          <FaIcon @icon={{@value.icon}} />\n        {{/if}}\n        <ReportEngineElement::Value::Value\n          @value={{@value.value}}\n          @format={{@value.format}}\n          @dashZero={{@value.dashZero}}\n          @showPositiveNegativeIndicator={{@value.showPositiveNegativeIndicator}}\n        />\n      </span>\n    </LabelPopup>\n  {{else if @value.linkTo}}\n    {{#if @value.linkTo.queryParams}}\n      <LinkTo\n        @route={{@value.linkTo.route}}\n        @models={{this.linkToModels}}\n        @query={{@value.linkTo.queryParams}}\n      >\n        <span class={{this.className}} ...attributes>\n          {{#if @value.icon}}\n            <FaIcon @icon={{@value.icon}} />\n          {{/if}}\n          <ReportEngineElement::Value::Value\n            @value={{@value.value}}\n            @format={{@value.format}}\n            @dashZero={{@value.dashZero}}\n            @showPositiveNegativeIndicator={{@value.showPositiveNegativeIndicator}}\n          />\n        </span>\n      </LinkTo>\n    {{else}}\n      <LinkTo @route={{@value.linkTo.route}} @models={{this.linkToModels}}>\n        <span class={{this.className}} ...attributes>\n          {{#if @value.icon}}\n            <FaIcon @icon={{@value.icon}} />\n          {{/if}}\n          <ReportEngineElement::Value::Value\n            @value={{@value.value}}\n            @format={{@value.format}}\n            @dashZero={{@value.dashZero}}\n            @showPositiveNegativeIndicator={{@value.showPositiveNegativeIndicator}}\n          />\n        </span>\n      </LinkTo>\n    {{/if}}\n  \n  {{else if (not-eq @value.value undefined)}}\n    <span class={{this.className}} ...attributes>\n      {{#if @value.icon}}\n        <FaIcon @icon={{@value.icon}} />\n      {{/if}}\n      <ReportEngineElement::Value::Value\n        @value={{@value.value}}\n        @format={{@value.format}}\n        @dashZero={{@value.dashZero}}\n        @showPositiveNegativeIndicator={{@value.showPositiveNegativeIndicator}}\n      />\n    </span>\n  {{else}}\n    {{this.value}}\n  {{/if}}\n  */\n  {\n    \"id\": \"4m6EuBxK\",\n    \"block\": \"[[[41,[28,[37,1],[[30,1,[\\\"tooltip\\\"]],[30,1,[\\\"linkTo\\\"]]],null],[[[41,[30,1,[\\\"linkTo\\\",\\\"queryParams\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@route\\\",\\\"@models\\\",\\\"@query\\\"],[[30,1,[\\\"linkTo\\\",\\\"route\\\"]],[30,0,[\\\"linkToModels\\\"]],[30,1,[\\\"linkTo\\\",\\\"queryParams\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@text\\\"],[[30,1,[\\\"tooltip\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,1],[16,0,[30,0,[\\\"className\\\"]]],[17,2],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"icon\\\"]],[[[1,\\\"            \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[30,1,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@value\\\",\\\"@format\\\",\\\"@dashZero\\\",\\\"@showPositiveNegativeIndicator\\\"],[[30,1,[\\\"value\\\"]],[30,1,[\\\"format\\\"]],[30,1,[\\\"dashZero\\\"]],[30,1,[\\\"showPositiveNegativeIndicator\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@route\\\",\\\"@models\\\"],[[30,1,[\\\"linkTo\\\",\\\"route\\\"]],[30,0,[\\\"linkToModels\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@text\\\"],[[30,1,[\\\"tooltip\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,1],[16,0,[30,0,[\\\"className\\\"]]],[17,2],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"icon\\\"]],[[[1,\\\"            \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[30,1,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@value\\\",\\\"@format\\\",\\\"@dashZero\\\",\\\"@showPositiveNegativeIndicator\\\"],[[30,1,[\\\"value\\\"]],[30,1,[\\\"format\\\"]],[30,1,[\\\"dashZero\\\"]],[30,1,[\\\"showPositiveNegativeIndicator\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[30,1,[\\\"tooltip\\\"]],[[[1,\\\"  \\\"],[8,[39,3],null,[[\\\"@text\\\"],[[30,1,[\\\"tooltip\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,1],[16,0,[30,0,[\\\"className\\\"]]],[17,2],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"icon\\\"]],[[[1,\\\"        \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[30,1,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@value\\\",\\\"@format\\\",\\\"@dashZero\\\",\\\"@showPositiveNegativeIndicator\\\"],[[30,1,[\\\"value\\\"]],[30,1,[\\\"format\\\"]],[30,1,[\\\"dashZero\\\"]],[30,1,[\\\"showPositiveNegativeIndicator\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"linkTo\\\"]],[[[41,[30,1,[\\\"linkTo\\\",\\\"queryParams\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@route\\\",\\\"@models\\\",\\\"@query\\\"],[[30,1,[\\\"linkTo\\\",\\\"route\\\"]],[30,0,[\\\"linkToModels\\\"]],[30,1,[\\\"linkTo\\\",\\\"queryParams\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[11,1],[16,0,[30,0,[\\\"className\\\"]]],[17,2],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"icon\\\"]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[30,1,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,6],null,[[\\\"@value\\\",\\\"@format\\\",\\\"@dashZero\\\",\\\"@showPositiveNegativeIndicator\\\"],[[30,1,[\\\"value\\\"]],[30,1,[\\\"format\\\"]],[30,1,[\\\"dashZero\\\"]],[30,1,[\\\"showPositiveNegativeIndicator\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@route\\\",\\\"@models\\\"],[[30,1,[\\\"linkTo\\\",\\\"route\\\"]],[30,0,[\\\"linkToModels\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[11,1],[16,0,[30,0,[\\\"className\\\"]]],[17,2],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"icon\\\"]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[30,1,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,6],null,[[\\\"@value\\\",\\\"@format\\\",\\\"@dashZero\\\",\\\"@showPositiveNegativeIndicator\\\"],[[30,1,[\\\"value\\\"]],[30,1,[\\\"format\\\"]],[30,1,[\\\"dashZero\\\"]],[30,1,[\\\"showPositiveNegativeIndicator\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,1,[\\\"value\\\"]],[27]],null],[[[1,\\\"  \\\"],[11,1],[16,0,[30,0,[\\\"className\\\"]]],[17,2],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"icon\\\"]],[[[1,\\\"      \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[[30,1,[\\\"icon\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[8,[39,6],null,[[\\\"@value\\\",\\\"@format\\\",\\\"@dashZero\\\",\\\"@showPositiveNegativeIndicator\\\"],[[30,1,[\\\"value\\\"]],[30,1,[\\\"format\\\"]],[30,1,[\\\"dashZero\\\"]],[30,1,[\\\"showPositiveNegativeIndicator\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[1,[30,0,[\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]]],[]]]],[\\\"@value\\\",\\\"&attrs\\\"],false,[\\\"if\\\",\\\"and\\\",\\\"link-to\\\",\\\"label-popup\\\",\\\"span\\\",\\\"fa-icon\\\",\\\"report-engine-element/value/value\\\",\\\"not-eq\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/value.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _object.computed)('args.value.linkTo.models'), _dec2 = (0, _object.computed)('args.value.{value,upperLimit,lowerLimit}'), _class = class extends _component2.default {\n    get linkToModels() {\n      return this.args.value.linkTo?.models || [];\n    }\n    get className() {\n      const classes = [];\n      if (this.args.value.value && this.args.value.upperLimit != null && this.args.value.value > this.args.value.upperLimit) {\n        classes.push('text-danger');\n      }\n      if (this.args.value.value && this.args.value.lowerLimit != null && this.args.value.value < this.args.value.lowerLimit) {\n        classes.push('text-danger');\n      }\n      return classes.join(' ') || null;\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"linkToModels\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"linkToModels\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"className\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"className\"), _class.prototype), _class));\n});","define(\"portal/components/report-engine-element/value/value\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (and @showPositiveNegativeIndicator this.value)}}\n    <FaIcon @icon={{if (gt @value 0) 'caret-up' 'caret-down'}} />\n  {{/if}}\n  {{#if (eq @format 'BOOLEAN')}}\n    <FaIcon @icon={{if this.value 'check' 'times'}} />\n  {{else if (eq @format 'CURRENCY')}}\n    {{number-format this.value style='currency' dashZero=@dashZero}}\n  {{else if (eq @format 'DURATION')}}\n    <FormatDurationWithUnit\n      @value={{this.value}}\n      @suffix={{' hrs'}}\n      @emptyPlaceholder='–'\n    />\n  {{else if (eq @format 'NUMBER')}}\n    {{number-format this.value maximumFractionDigits=2 dashZero=@dashZero}}\n  {{else if (eq @format 'PERCENTAGE')}}\n    {{number-format\n      this.value\n      style='percent'\n      dashZero=@dashZero\n      maximumFractionDigits=2\n      minimumFractionDigits=2\n    }}\n  {{else if (eq @format 'STRING')}}\n    {{#if\n      (or\n        (eq this.value 'Open')\n        (eq this.value 'Held')\n        (eq this.value 'Closed')\n        (eq this.value 'Archived')\n      )\n    }}\n      {{project-status-label this.value}}\n    {{else}}\n      {{#each this.stringParagraphs as |para|}}\n        {{para}}{{#if (and (gt this.stringParagraphs.length 1) (not @last))}}<br\n          />{{/if}}\n      {{/each}}\n    {{/if}}\n  {{else if (eq @format 'DATE')}}\n    {{moment-format this.value 'MMMM DD, YYYY h:mm:ss a'}}\n  {{else if (eq @format 'PG_DURATION')}}\n    {{this.formattedPgDuration}}\n  {{else if (eq @format 'FILE_URL_ARRAY')}}\n    {{! TODO this is WIP }}\n    {{! we need a attachment manager model to be opened from here }}\n    {{#each this.value as |url|}}\n      <img\n        role='button'\n        src={{url}}\n        style='width: 100%; height: 200px; object-fit: cover;'\n        {{on 'click' (fn this.openImgUrl url)}}\n      />\n    {{/each}}\n  {{/if}}\n  */\n  {\n    \"id\": \"EBToTicF\",\n    \"block\": \"[[[41,[28,[37,1],[[30,1],[30,0,[\\\"value\\\"]]],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[[52,[28,[37,3],[[30,2],0],null],\\\"caret-up\\\",\\\"caret-down\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[30,3],\\\"BOOLEAN\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"value\\\"]],\\\"check\\\",\\\"times\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[30,3],\\\"CURRENCY\\\"],null],[[[1,\\\"  \\\"],[1,[28,[35,5],[[30,0,[\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",[30,4]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[30,3],\\\"DURATION\\\"],null],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@value\\\",\\\"@suffix\\\",\\\"@emptyPlaceholder\\\"],[[30,0,[\\\"value\\\"]],\\\" hrs\\\",\\\"–\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[30,3],\\\"NUMBER\\\"],null],[[[1,\\\"  \\\"],[1,[28,[35,5],[[30,0,[\\\"value\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,[30,4]]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[30,3],\\\"PERCENTAGE\\\"],null],[[[1,\\\"  \\\"],[1,[28,[35,5],[[30,0,[\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",[30,4],2,2]]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[30,3],\\\"STRING\\\"],null],[[[41,[28,[37,7],[[28,[37,4],[[30,0,[\\\"value\\\"]],\\\"Open\\\"],null],[28,[37,4],[[30,0,[\\\"value\\\"]],\\\"Held\\\"],null],[28,[37,4],[[30,0,[\\\"value\\\"]],\\\"Closed\\\"],null],[28,[37,4],[[30,0,[\\\"value\\\"]],\\\"Archived\\\"],null]],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[[30,0,[\\\"value\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"stringParagraphs\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[1,[30,5]],[41,[28,[37,1],[[28,[37,3],[[30,0,[\\\"stringParagraphs\\\",\\\"length\\\"]],1],null],[28,[37,11],[[30,6]],null]],null],[[[10,\\\"br\\\"],[12],[13]],[]],null],[1,\\\"\\\\n\\\"]],[5]],null]],[]]]],[]],[[[41,[28,[37,4],[[30,3],\\\"DATE\\\"],null],[[[1,\\\"  \\\"],[1,[28,[35,13],[[30,0,[\\\"value\\\"]],\\\"MMMM DD, YYYY h:mm:ss a\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[30,3],\\\"PG_DURATION\\\"],null],[[[1,\\\"  \\\"],[1,[30,0,[\\\"formattedPgDuration\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[30,3],\\\"FILE_URL_ARRAY\\\"],null],[[[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"value\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[11,\\\"img\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"src\\\",[30,7]],[24,5,\\\"width: 100%; height: 200px; object-fit: cover;\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"openImgUrl\\\"]],[30,7]],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[7]],null]],[]],null]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[\\\"@showPositiveNegativeIndicator\\\",\\\"@value\\\",\\\"@format\\\",\\\"@dashZero\\\",\\\"para\\\",\\\"@last\\\",\\\"url\\\"],false,[\\\"if\\\",\\\"and\\\",\\\"fa-icon\\\",\\\"gt\\\",\\\"eq\\\",\\\"number-format\\\",\\\"format-duration-with-unit\\\",\\\"or\\\",\\\"project-status-label\\\",\\\"each\\\",\\\"-track-array\\\",\\\"not\\\",\\\"br\\\",\\\"moment-format\\\",\\\"img\\\",\\\"on\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"portal/components/report-engine-element/value/value.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _object.computed)('args.{value,showPositiveNegativeIndicator}'), _dec2 = (0, _object.computed)('args.{format,value}'), _class = class extends _component2.default {\n    get value() {\n      // when the indicator is shown we don't need to show negative numbers\n      if (this.args.showPositiveNegativeIndicator) return Math.abs(this.args.value);\n      return this.args.value;\n    }\n    get formattedPgDuration() {\n      const {\n        value: duration\n      } = this.args;\n\n      // return null if the duration field is missing\n      if (!duration) return null;\n      const parts = [];\n\n      // append non-zero values to the parts array\n      if (duration.days) parts.push(`${duration.days}d`);\n      if (duration.hours) parts.push(`${duration.hours}h`);\n      if (duration.minutes) parts.push(`${duration.minutes}m`);\n      if (duration.seconds) parts.push(`${duration.seconds}s`);\n      return parts.join(' ') || '0s';\n    }\n    get stringParagraphs() {\n      if (this.args.format !== 'STRING') return undefined;\n\n      // new lines can't be rendered in html as \\n\n      return this.args.value.split('\\n');\n    }\n    openImgUrl(url) {\n      window.open(url, '_blank');\n    }\n    noop(e) {\n      e.preventDefault();\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"value\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"value\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"stringParagraphs\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"stringParagraphs\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openImgUrl\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openImgUrl\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _class));\n});","define(\"portal/components/report-exporter-pm\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"moment\", \"portal/models/worker\", \"portal/models/task\", \"portal/config/environment\", \"ember-local-storage\", \"@ember/object/computed\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _tracking, _object, _service, _moment, _worker, _task, _environment, _emberLocalStorage, _computed, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"moment\",0,\"portal/models/worker\",0,\"portal/models/task\",0,\"portal/config/environment\",0,\"ember-local-storage\",0,\"@ember/object/computed\",0,\"@ember/runloop\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='pdf-export'>\n    <div class='pdf-export-options'>\n      <form class='grid-form box'>\n        <section class='box__section'>\n          <div class='box__section-desc'>\n            <h3>{{t 'shared.report-builder.Export options'}}</h3>\n            <p>\n              {{t\n                'shared.report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled'\n              }}\n            </p>\n          </div>\n          <div class='box__section-content'>\n            <p>\n              <label>\n                {{t 'shared.report-builder.Include attachments with export'}}\n                <Input\n                  @type='checkbox'\n                  @checked={{this.includeAttachmentsOnExport}}\n                />\n              </label>\n            </p>\n            <p>\n              <label>\n                {{t 'shared.report-builder.markSelectedItemsAsReportedOnExport'}}\n                <Input @type='checkbox' @checked={{this.markReportedOnExport}} />\n              </label>\n            </p>\n          </div>\n        </section>\n      </form>\n  \n      <form class='grid-form box'>\n        <section class='box__section'>\n          <div class='box__section-desc'>\n            <h3>{{t 'common.Logo'}}</h3>\n            <p>\n              {{t\n                'components.report-exporter-pm.jpegPngAndGifFilesAreSupportedMaxFileSizeIs5mb'\n              }}\n            </p>\n          </div>\n  \n          <div class='box__section-content'>\n            <label class='exporter__logo-uploader'>\n              {{#if this.options.companyLogoUrl}}\n                <img\n                  class='exporter__logo-preview'\n                  src={{this.options.companyLogoUrl}}\n                  alt='Company logo preview'\n                />\n              {{else}}\n                <div class='exporter__logo-placeholder'></div>\n              {{/if}}\n  \n              <input\n                type='file'\n                onchange={{action (perform this.updateLogo)}}\n                disabled={{this.updateLogo.isRunning}}\n                accept='.jpg, .jpeg, .png, .gif'\n              />\n            </label>\n  \n            {{#if this.options.companyLogoUrl}}\n              <button\n                class='button--spaced float-end'\n                type='submit'\n                {{on 'click' this.clearLogoSelection}}\n              >{{t 'common.Clear selection'}}</button>\n            {{/if}}\n  \n            {{#if\n              (or\n                this.setEntityDefaultLogo.isRunning\n                this.setJobOptionLogo.isRunning\n                (not-eq\n                  this.entityDefaultOptions.companyLogoUrl\n                  this.options.companyLogoUrl\n                )\n              )\n            }}\n              {{#if this.options.companyLogoUrl}}\n                <LoadingButton\n                  @class='float-end button--spaced'\n                  @isLoading={{this.setEntityDefaultLogo.isRunning}}\n                  @disabled={{this.setJobOptionLogo.isRunning}}\n                  @action={{perform\n                    this.setEntityDefaultLogo\n                    this.options.companyLogoUrl\n                  }}\n                  @buttonText={{t 'common.Make default'}}\n                />\n              {{/if}}\n              {{#if this.entityDefaultOptions.companyLogoUrl}}\n                <LoadingButton\n                  @class='float-end button--spaced'\n                  @isLoading={{this.setJobOptionLogo.isRunning}}\n                  @disabled={{this.setEntityDefaultLogo.isRunning}}\n                  @action={{perform\n                    this.setJobOptionLogo\n                    this.entityDefaultOptions.companyLogoUrl\n                  }}\n                  @buttonText={{t 'common.Use default'}}\n                />\n              {{/if}}\n            {{/if}}\n          </div>\n        </section>\n      </form>\n  \n      <form class='grid-form box'>\n        <section class='box__section'>\n          <div class='box__section-desc'>\n            <h3>{{t 'components.report-exporter-pm.Report text'}}</h3>\n            <p>\n              {{t\n                'components.report-exporter-pm.This text will appear on the report'\n              }}\n              <a\n                class='link'\n                target='_blank'\n                href='https://en.wikipedia.org/wiki/Markdown#Example'\n                rel='noopener noreferrer'\n              >{{t 'components.report-exporter-pm.Markdown'}}</a>\n              {{t 'components.report-exporter-pm.formatting is supported'}}\n            </p>\n          </div>\n  \n          <div class='box__section-content'>\n            <label class='exporter__label' for='name'><strong>{{t\n                  'common.Title'\n                }}</strong></label>\n            {{! template-lint-disable builtin-component-arguments }}\n            <Input\n              class='exporter__text-input'\n              type='text'\n              id='name'\n              @value={{this.options.title}}\n              {{on 'input' this.onChange}}\n            />\n  \n            <label class='exporter__label' for='introduction'><strong>{{t\n                  'common.Introduction'\n                }}</strong></label>\n            <Textarea\n              @value={{this.options.introduction}}\n              class='exporter__textarea'\n              id='introduction'\n              {{on 'input' this.onChange}}\n            />\n  \n            <label class='exporter__label' for='footnotes'><strong>{{t\n                  'common.Footnotes'\n                }}</strong></label>\n            <Textarea\n              @value={{this.options.footnotes}}\n              class='exporter__textarea'\n              id='footnotes'\n              {{on 'input' this.onChange}}\n            />\n          </div>\n        </section>\n      </form>\n  \n      <form class='grid-form box'>\n        <section class='box__section'>\n          <div class='box__section-desc'>\n            <h3>{{t 'components.report-exporter-pm.Section breakdowns'}}</h3>\n            <p>{{t\n                'components.report-exporter-pm.chooseHowMuchDetailShouldBeShownInTheQuote'\n              }}</p>\n          </div>\n  \n          <div class='box__section-content'>\n            <p><strong>{{t 'common.Materials'}}</strong></p>\n  \n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='materials-invoice-detail'\n                value='section'\n                checked={{eq this.options.materialsDetail 'section'}}\n                {{on 'change' (fn this.setOption 'materialsDetail')}}\n              />\n              <span>{{t 'components.report-exporter-pm.Total only'}}</span>\n            </label>\n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='materials-invoice-detail'\n                value='invoice'\n                checked={{eq this.options.materialsDetail 'invoice'}}\n                {{on 'change' (fn this.setOption 'materialsDetail')}}\n              />\n              <span>{{t 'common.Bill'}}</span>\n            </label>\n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='materials-invoice-detail'\n                value='item'\n                checked={{eq this.options.materialsDetail 'item'}}\n                {{on 'change' (fn this.setOption 'materialsDetail')}}\n              />\n              <span>{{t 'common.Bill items'}}</span>\n            </label>\n  \n            <p><strong>{{t 'common.Timesheets'}}</strong></p>\n  \n            <GroupingSelector\n              @groups={{this.timesheetGroupingOptions}}\n              @value={{this.options.projectTimesheetsDetail}}\n              @onChange={{pipe\n                (action (mut this.options.projectTimesheetsDetail))\n                (action (perform this.save))\n              }}\n              as |gs|\n            >\n              {{#each gs.axes as |axis i|}}\n                <label class='pdf-export-options__grouping-label'>\n                  {{#if (eq i 0)}}\n                    {{t 'shared.report-builder.First break down by'}}…\n                  {{else}}\n                    …{{t 'shared.report-builder.and then by'}}…\n                  {{/if}}\n                </label>\n  \n                <select\n                  class='pdf-export-options__grouping-control'\n                  {{on 'change' (action axis.update value='target.value')}}\n                >\n                  {{#each axis.options as |opt|}}\n                    <option\n                      value={{opt.key}}\n                      selected={{opt.isSelected}}\n                    >{{opt.name}}</option>\n                  {{/each}}\n                </select>\n                <br />\n              {{/each}}\n            </GroupingSelector>\n  \n            <p><strong>{{t 'shared.report-builder.Labour bills'}}</strong></p>\n  \n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='labour-invoice-detail'\n                value='section'\n                checked={{eq this.options.labourInvoicesDetail 'section'}}\n                {{on 'change' (fn this.setOption 'labourInvoicesDetail')}}\n              />\n              <span>{{t 'components.report-exporter-pm.Total only'}}</span>\n            </label>\n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='labour-invoice-detail'\n                value='invoice'\n                checked={{eq this.options.labourInvoicesDetail 'invoice'}}\n                {{on 'change' (fn this.setOption 'labourInvoicesDetail')}}\n              />\n              <span>{{t 'common.Bill'}}</span>\n            </label>\n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='labour-invoice-detail'\n                value='item'\n                checked={{eq this.options.labourInvoicesDetail 'item'}}\n                {{on 'change' (fn this.setOption 'labourInvoicesDetail')}}\n              />\n              <span>{{t 'common.Bill items'}}</span>\n            </label>\n  \n            <p><strong>{{t\n                  'shared.report-builder.Subcontractor bills'\n                }}</strong></p>\n  \n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='subcontractor-invoice-detail'\n                value='section'\n                checked={{eq this.options.subcontractorInvoicesDetail 'section'}}\n                {{on 'change' (fn this.setOption 'subcontractorInvoicesDetail')}}\n              />\n              <span>{{t 'components.report-exporter-pm.Total only'}}</span>\n            </label>\n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='subcontractor-invoice-detail'\n                value='invoice'\n                checked={{eq this.options.subcontractorInvoicesDetail 'invoice'}}\n                {{on 'change' (fn this.setOption 'subcontractorInvoicesDetail')}}\n              />\n              <span>{{t 'common.Bill'}}</span>\n            </label>\n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='subcontractor-invoice-detail'\n                value='item'\n                checked={{eq this.options.subcontractorInvoicesDetail 'item'}}\n                {{on 'change' (fn this.setOption 'subcontractorInvoicesDetail')}}\n              />\n              <span>{{t 'common.Bill items'}}</span>\n            </label>\n  \n            <p><strong>{{t\n                  'components.report-exporter-pm.marginMarkup'\n                }}</strong></p>\n  \n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='margin-type-detail'\n                value='total'\n                checked={{eq this.options.marginType 'total'}}\n                {{on 'change' (fn this.setOption 'marginType')}}\n              />\n              <span>{{t 'common.Total'}}</span>\n            </label>\n            <label class='ember-radio-button'>\n              <input\n                type='radio'\n                name='margin-type-detail'\n                value='pro-rata'\n                checked={{eq this.options.marginType 'pro-rata'}}\n                {{on 'change' (fn this.setOption 'marginType')}}\n              />\n              <span>{{t 'components.report-exporter-pm.Pro rata'}}</span>\n            </label>\n          </div>\n        </section>\n      </form>\n    </div>\n  \n    <div class='exporter__col box preview pdf-export-preview'>\n      <header class='preview__header'>\n        <div>\n          <h3 class='preview__h3'>\n            {{t 'common.Preview'}}\n            <span\n              class='exporter__status-label'\n              data-status={{if this.isLoading 'loading' 'live'}}\n            >{{t 'common.Live'}}</span>\n            {{#if this.isLoading}}\n              <svg\n                class='spinner subtle'\n                viewBox='0 0 100 100'\n                width='12'\n                height='12'\n              >\n                <circle cx='50' cy='50' r='42'></circle>\n              </svg>\n            {{/if}}\n          </h3>\n          <p class='preview__note'>{{t\n              'components.report-exporter-pm.layoutMayDifferSlightlyFromPDFVersion'\n            }}</p>\n        </div>\n      </header>\n  \n      <div class='pdf-wrapper'>\n        {{#let 12 as |fontSize|}}\n          {{! template-lint-disable no-forbidden-elements }}\n          <style>\n            table tfoot { display: table-row-group; } .pdf-wrapper { all: initial;\n            font:{{fontSize}}px/1.4 sans-serif; margin: 0; padding: 40pt;\n                                max-width: 595pt; overflow-y: auto; } .pdf-wrapper * { box-sizing:\n                                border-box; } .pdf-wrapper .metadata { display: flex; align-items:\n                                flex-start; } .pdf-wrapper .logo { margin-right: 2rem; max-width:\n                                100%; max-height: 90px; } .pdf-wrapper .addr { margin-left: 20px; }\n                                .pdf-wrapper section { margin-bottom: 2rem; } .pdf-wrapper h1 {\n                                font-size: 1.5rem; } .pdf-wrapper h2 { font-size: 1.1rem; break-after:\n                                avoid; } .pdf-wrapper table { width: 100%; border-collapse: collapse;\n                                font-variant-numeric: tabular-nums; } .pdf-wrapper th { text-align:\n                                left; font-size:{{fontSize}}px; } .pdf-wrapper td { border-top: 1px solid #ccc;\n                                border-bottom: 1px solid #ccc; word-break: break-word; font-size:{{fontSize}}px; } th, .pdf-wrapper td { padding: 0.5em 1em; }\n                                th:first-of-type, .pdf-wrapper td:first-of-type { padding-left: 0.5em;\n                                } th:last-of-type, .pdf-wrapper td:last-of-type { padding-right:\n                                0.5em; } .pdf-wrapper .r { text-align: right; } .pdf-wrapper .no-wrap\n                                { white-space: nowrap; } .pdf-wrapper th.num-col { width: 6rem; }\n                                .pdf-wrapper tfoot td { font-weight: bold; } .pdf-wrapper td.l2 {\n                                padding-left: 1.5em; } .pdf-wrapper td.l3 { padding-left: 3em; }\n                                .pdf-wrapper .note { color: #777; font-style: italic; } .pdf-wrapper\n                                @media print { .pdf-wrapper body { font-size: 10px; } }\n          </style>\n        {{/let}}\n        {{! Metadata }}\n        <header class='metadata'>\n  \n          {{! Logo }}\n          <div style='flex: 1;'>\n            {{#if this.options.companyLogoUrl}}\n              <p style='height: 90px;'><img\n                  class='logo'\n                  src='{{this.options.companyLogoUrl}}'\n                  alt='Company Logo'\n                /></p>\n            {{/if}}\n  \n            {{#if this.options.title}}\n              <p><h1>{{this.options.title}}</h1></p>\n            {{/if}}\n          </div>\n  \n          {{! Company Address and Date }}\n          <div class='addr'>\n            {{#if this.options.companyAddress}}\n              <p>\n                {{this.options.companyAddress}}\n              </p>\n  \n              <p>{{this.date}}</p>\n            {{else}}\n              <p class='r'>{{moment-format\n                  this.date\n                  (t 'date.longWithoutWeekday')\n                }}</p>\n            {{/if}}\n          </div>\n  \n        </header>\n  \n        {{! Introductory Text }}\n        {{#if this.options.introduction}}\n          <section>\n            <MarkdownToHtml\n              @simpleLineBreaks={{true}}\n              @markdown={{this.options.introduction}}\n            />\n          </section>\n        {{/if}}\n  \n        {{! Materials }}\n        {{#if (or @model.materialInvoices.length @model.manualMaterials)}}\n          <section>\n            <h2>Materials</h2>\n  \n            <table>\n              {{#unless (eq this.options.materialsDetail 'section')}}\n                <thead>\n                  <tr>\n                    <th>Invoice</th>\n                    <th>Issuer</th>\n                    <th>Issue Date</th>\n                    <th class='r num-col'>Price</th>\n                  </tr>\n                </thead>\n  \n                <tbody>\n                  {{#each @model.materialInvoices as |invoice|}}\n                    <tr>\n                      <td>{{invoice.invoice.billNumber}}</td>\n                      <td>{{invoice.invoice.issuer}}</td>\n                      <td>{{moment-format\n                          invoice.invoice.issueDate\n                          (t 'date.longWithoutWeekday')\n                        }}</td>\n                      <td class='r no-wrap'>\n                        {{#if (eq this.options.materialsDetail 'invoice')}}\n                          {{number-format\n                            (math\n                              invoice.selectedTotalPrice\n                              '*'\n                              this.proRataCoefMaterials\n                            )\n                            style='currency'\n                            dashZero=false\n                          }}\n                        {{/if}}\n                      </td>\n                    </tr>\n  \n                    {{#if (eq this.options.materialsDetail 'item')}}\n                      {{#each invoice.items as |item|}}\n                        {{#if item.selected}}\n                          <tr>\n                            <td colspan='3' style='text-indent: 1em;'>\n                              {{item.description}}\n                            </td>\n                            <td class='r num-col'>\n                              {{number-format\n                                (math\n                                  item.totalPrice '*' this.proRataCoefMaterials\n                                )\n                                style='currency'\n                                dashZero=true\n                              }}\n                            </td>\n                          </tr>\n                        {{/if}}\n                      {{/each}}\n                    {{/if}}\n                  {{/each}}\n  \n                  {{#each @model.manualMaterials as |invoice|}}\n                    <tr>\n                      <td colspan='3'>{{invoice.description}}</td>\n                      <td class='r no-wrap'>\n                        {{number-format\n                          (math invoice.total '*' this.proRataCoefMaterials)\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  {{/each}}\n  \n                  {{#if\n                    (and\n                      (not this.useProRata) @model.computedTotals.invoice.margin\n                    )\n                  }}\n                    <tr>\n                      <td colspan='3'>Margin/markup</td>\n                      <td class='r no-wrap'>\n                        {{number-format\n                          @model.computedTotals.invoice.margin\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  {{/if}}\n                </tbody>\n              {{/unless}}\n  \n              <tfoot>\n                <tr>\n                  <td colspan='3'>Total Materials</td>\n                  <td class='r no-wrap'>\n                    {{number-format\n                      @model.computedTotals.invoice.total\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </td>\n                </tr>\n              </tfoot>\n            </table>\n          </section>\n        {{/if}}\n  \n        {{! Labour }}\n        {{#if\n          (or\n            @model.workers.length\n            @model.labourInvoices.length\n            @model.manualTimesheets.length\n          )\n        }}\n          <section>\n            <h2>Labour</h2>\n  \n            <table>\n              <thead>\n                <tr>\n                  <th></th>\n                  <th class='r num-col'>Man Hours</th>\n                  <th class='r num-col'>Rate</th>\n                  <th class='r num-col'>Total</th>\n                </tr>\n              </thead>\n  \n              <tbody>\n                {{#if this.groupedTimesheets.children}}\n                  {{#each this.groupedTimesheets.children as |group|}}\n                    <PdfExportTimesheetRow\n                      @coef={{this.proRataCoefLabour}}\n                      @group={{group}}\n                    />\n                  {{/each}}\n                {{else if this.groupedTimesheets.total}}\n                  <tr>\n                    <td>Timesheets</td>\n                    <td class='r no-wrap'>\n                      {{number-format\n                        this.groupedTimesheets.hours\n                        maximumFractionDigits=2\n                        dashZero=false\n                      }}\n                    </td>\n                    <td class='r no-wrap'></td>\n                    <td class='r no-wrap'>\n                      {{number-format\n                        (math\n                          this.groupedTimesheets.total '*' this.proRataCoefLabour\n                        )\n                        style='currency'\n                        dashZero=false\n                      }}\n                    </td>\n                  </tr>\n                {{/if}}\n  \n                {{#if\n                  (and\n                    (eq this.options.labourInvoicesDetail 'section')\n                    this.labourInvoicesTotal\n                  )\n                }}\n                  <tr>\n                    <td colspan='3'>{{t\n                        'shared.report-builder.Labour bills'\n                      }}</td>\n                    <td class='r num-col'>\n                      {{number-format\n                        this.labourInvoicesTotal\n                        style='currency'\n                        dashZero=false\n                      }}\n                    </td>\n                  </tr>\n                {{else}}\n                  {{#each @model.labourInvoices as |invoice|}}\n                    <tr>\n                      <td colspan='3'>Contractor: {{invoice.invoice.issuer}}</td>\n                      <td class='r num-col'>\n                        {{#if (eq this.options.labourInvoicesDetail 'invoice')}}\n                          {{number-format\n                            (math\n                              invoice.selectedTotalPrice\n                              '*'\n                              this.proRataCoefLabour\n                            )\n                            style='currency'\n                            dashZero=false\n                          }}\n                        {{/if}}\n                      </td>\n                    </tr>\n  \n                    {{#if (eq this.options.labourInvoicesDetail 'item')}}\n                      {{#each invoice.items as |item|}}\n                        {{#if item.selected}}\n                          <tr>\n                            <td\n                              colspan='3'\n                              style='text-indent: 1em;'\n                            >{{item.description}}</td>\n                            <td class='r num-col'>\n                              {{number-format\n                                (math item.totalPrice '*' this.proRataCoefLabour)\n                                style='currency'\n                                dashZero=false\n                              }}\n                            </td>\n                          </tr>\n                        {{/if}}\n                      {{/each}}\n                    {{/if}}\n                  {{/each}}\n                {{/if}}\n  \n                {{#each @model.manualTimesheets as |invoice|}}\n                  <tr>\n                    <td colspan='3'>{{invoice.description}}</td>\n                    <td class='r no-wrap'>\n                      {{number-format\n                        (math invoice.total '*' this.proRataCoefLabour)\n                        style='currency'\n                        dashZero=true\n                      }}\n                    </td>\n                  </tr>\n                {{/each}}\n  \n                {{#if\n                  (and\n                    (not this.useProRata) @model.computedTotals.timesheet.margin\n                  )\n                }}\n                  <tr>\n                    <td colspan='3'>Margin/markup</td>\n                    <td class='r no-wrap'>\n                      {{number-format\n                        @model.computedTotals.timesheet.margin\n                        style='currency'\n                        dashZero=true\n                      }}\n                    </td>\n                  </tr>\n                {{/if}}\n              </tbody>\n  \n              <tfoot>\n                <tr>\n                  <td>Total Labour</td>\n                  <td class='r no-wrap'>\n                    {{number-format\n                      this.groupedTimesheets.hours\n                      maximumFractionDigits=2\n                      dashZero=false\n                    }}\n                  </td>\n                  <td class='r no-wrap'></td>\n                  <td class='r no-wrap'>\n                    {{number-format\n                      @model.computedTotals.timesheet.total\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </td>\n                </tr>\n              </tfoot>\n            </table>\n          </section>\n        {{/if}}\n  \n        {{! Subcontractors }}\n        {{#if (or @model.subcontractorInvoices @model.manualSubcontractors)}}\n          <section>\n            <h2>Subcontractors</h2>\n  \n            <table>\n              {{#unless (eq this.options.subcontractorInvoicesDetail 'section')}}\n                <thead>\n                  <tr>\n                    <th>Invoice Name</th>\n                    <th>Subcontractor</th>\n                    <th>Issue Date</th>\n                    <th class='r num-col'>Total</th>\n                  </tr>\n                </thead>\n  \n                <tbody>\n                  {{#each @model.subcontractorInvoices as |invoice|}}\n                    <tr>\n                      <td>{{invoice.invoice.billNumber}}</td>\n                      <td>{{invoice.invoice.issuer}}</td>\n                      <td>{{moment-format\n                          invoice.invoice.issueDate\n                          (t 'date.longWithoutWeekday')\n                        }}</td>\n                      <td class='r num-col'>\n                        {{#if\n                          (eq this.options.subcontractorInvoicesDetail 'invoice')\n                        }}\n                          {{number-format\n                            (math\n                              invoice.selectedTotalPrice\n                              '*'\n                              this.proRataCoefSubcontractors\n                            )\n                            style='currency'\n                            dashZero=false\n                          }}\n                        {{/if}}\n                      </td>\n                    </tr>\n  \n                    {{#if (eq this.options.subcontractorInvoicesDetail 'item')}}\n                      {{#each invoice.items as |item|}}\n                        {{#if item.selected}}\n                          <tr>\n                            <td\n                              colspan='3'\n                              style='text-indent: 1em;'\n                            >{{item.description}}</td>\n                            <td class='r num-col'>\n                              {{number-format\n                                (math\n                                  item.totalPrice\n                                  '*'\n                                  this.proRataCoefSubcontractors\n                                )\n                                style='currency'\n                                dashZero=false\n                              }}\n                            </td>\n                          </tr>\n                        {{/if}}\n                      {{/each}}\n                    {{/if}}\n                  {{/each}}\n  \n                  {{#each @model.manualSubcontractors as |invoice|}}\n                    <tr>\n                      <td colspan='3'>{{invoice.description}}</td>\n                      <td class='r no-wrap'>\n                        {{number-format\n                          (math invoice.total '*' this.proRataCoefSubcontractors)\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  {{/each}}\n  \n                  {{#if\n                    (and\n                      (not this.useProRata)\n                      @model.computedTotals.subcontractor.margin\n                    )\n                  }}\n                    <tr>\n                      <td colspan='3'>Margin/markup</td>\n                      <td class='r no-wrap'>\n                        {{number-format\n                          @model.computedTotals.subcontractor.margin\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  {{/if}}\n                </tbody>\n              {{/unless}}\n  \n              <tfoot>\n                <tr>\n                  <td colspan='3'>Total Subcontractor Bills</td>\n                  <td class='r no-wrap'>\n                    {{number-format\n                      @model.computedTotals.subcontractor.total\n                      style='currency'\n                      dashZero=false\n                    }}\n                  </td>\n                </tr>\n              </tfoot>\n            </table>\n          </section>\n        {{/if}}\n  \n        {{! Totals }}\n        <section>\n          <h2>Totals</h2>\n  \n          <table>\n            <tbody>\n              <tr>\n                <td>Total</td>\n                <td class='r no-wrap'>\n                  {{number-format\n                    @model.computedTotals.total.total\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n              </tr>\n            </tbody>\n          </table>\n        </section>\n  \n        {{! Footnotes }}\n        {{#if this.options.footnotes}}\n          <section>\n            <MarkdownToHtml\n              @simpleLineBreaks={{true}}\n              @markdown={{this.options.footnotes}}\n            />\n          </section>\n        {{/if}}\n      </div>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"OHFUP2xJ\",\n    \"block\": \"[[[10,0],[14,0,\\\"pdf-export\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"pdf-export-options\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"form\\\"],[14,0,\\\"grid-form box\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"box__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-desc\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"shared.report-builder.Export options\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"shared.report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-content\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.report-builder.Include attachments with export\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"includeAttachmentsOnExport\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.report-builder.markSelectedItemsAsReportedOnExport\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"markReportedOnExport\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"form\\\"],[14,0,\\\"grid-form box\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"box__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-desc\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"common.Logo\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"components.report-exporter-pm.jpegPngAndGifFilesAreSupportedMaxFileSizeIs5mb\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"box__section-content\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"exporter__logo-uploader\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"options\\\",\\\"companyLogoUrl\\\"]],[[[1,\\\"              \\\"],[10,\\\"img\\\"],[14,0,\\\"exporter__logo-preview\\\"],[15,\\\"src\\\",[30,0,[\\\"options\\\",\\\"companyLogoUrl\\\"]]],[14,\\\"alt\\\",\\\"Company logo preview\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"exporter__logo-placeholder\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[15,\\\"onchange\\\",[28,[37,10],[[30,0],[28,[37,11],[[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,13],[\\\"click\\\",[30,0,[\\\"clearLogoSelection\\\"]]],null],[12],[1,[28,[35,4],[\\\"common.Clear selection\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[30,0,[\\\"setEntityDefaultLogo\\\",\\\"isRunning\\\"]],[30,0,[\\\"setJobOptionLogo\\\",\\\"isRunning\\\"]],[28,[37,15],[[30,0,[\\\"entityDefaultOptions\\\",\\\"companyLogoUrl\\\"]],[30,0,[\\\"options\\\",\\\"companyLogoUrl\\\"]]],null]],null],[[[41,[30,0,[\\\"options\\\",\\\"companyLogoUrl\\\"]],[[[1,\\\"              \\\"],[8,[39,16],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@disabled\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button--spaced\\\",[30,0,[\\\"setEntityDefaultLogo\\\",\\\"isRunning\\\"]],[30,0,[\\\"setJobOptionLogo\\\",\\\"isRunning\\\"]],[28,[37,11],[[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,16],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@disabled\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button--spaced\\\",[30,0,[\\\"setJobOptionLogo\\\",\\\"isRunning\\\"]],[30,0,[\\\"setEntityDefaultLogo\\\",\\\"isRunning\\\"]],[28,[37,11],[[30,0,[\\\"setJobOptionLogo\\\"]],[30,0,[\\\"entityDefaultOptions\\\",\\\"companyLogoUrl\\\"]]],null],[28,[37,4],[\\\"common.Use default\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"form\\\"],[14,0,\\\"grid-form box\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"box__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-desc\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.Report text\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"components.report-exporter-pm.This text will appear on the report\\\"],null]],[1,\\\"\\\\n            \\\"],[10,3],[14,0,\\\"link\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,6,\\\"https://en.wikipedia.org/wiki/Markdown#Example\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.Markdown\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"components.report-exporter-pm.formatting is supported\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"box__section-content\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"exporter__label\\\"],[14,\\\"for\\\",\\\"name\\\"],[12],[10,\\\"strong\\\"],[12],[1,[28,[35,4],[\\\"common.Title\\\"],null]],[13],[13],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[8,[39,7],[[24,0,\\\"exporter__text-input\\\"],[24,1,\\\"name\\\"],[24,4,\\\"text\\\"],[4,[38,13],[\\\"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,19],[[24,0,\\\"exporter__textarea\\\"],[24,1,\\\"introduction\\\"],[4,[38,13],[\\\"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,19],[[24,0,\\\"exporter__textarea\\\"],[24,1,\\\"footnotes\\\"],[4,[38,13],[\\\"input\\\",[30,0,[\\\"onChange\\\"]]],null]],[[\\\"@value\\\"],[[30,0,[\\\"options\\\",\\\"footnotes\\\"]]]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"form\\\"],[14,0,\\\"grid-form box\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"box__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-desc\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.Section breakdowns\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.chooseHowMuchDetailShouldBeShownInTheQuote\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"box__section-content\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[12],[10,\\\"strong\\\"],[12],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[13],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"materials-invoice-detail\\\"],[24,2,\\\"section\\\"],[16,\\\"checked\\\",[28,[37,20],[[30,0,[\\\"options\\\",\\\"materialsDetail\\\"]],\\\"section\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"change\\\",[28,[37,21],[[30,0,[\\\"setOption\\\"]],\\\"materialsDetail\\\"],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.Total only\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"materials-invoice-detail\\\"],[24,2,\\\"invoice\\\"],[16,\\\"checked\\\",[28,[37,20],[[30,0,[\\\"options\\\",\\\"materialsDetail\\\"]],\\\"invoice\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"change\\\",[28,[37,21],[[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,20],[[30,0,[\\\"options\\\",\\\"materialsDetail\\\"]],\\\"item\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"change\\\",[28,[37,21],[[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,23],null,[[\\\"@groups\\\",\\\"@value\\\",\\\"@onChange\\\"],[[30,0,[\\\"timesheetGroupingOptions\\\"]],[30,0,[\\\"options\\\",\\\"projectTimesheetsDetail\\\"]],[28,[37,24],[[28,[37,10],[[30,0],[28,[37,25],[[30,0,[\\\"options\\\",\\\"projectTimesheetsDetail\\\"]]],null]],null],[28,[37,10],[[30,0],[28,[37,11],[[30,0,[\\\"save\\\"]]],null]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,27],[[28,[37,27],[[30,1,[\\\"axes\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"label\\\"],[14,0,\\\"pdf-export-options__grouping-label\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,3],0],null],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"shared.report-builder.First break down by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  …\\\"],[1,[28,[35,4],[\\\"shared.report-builder.and then by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[11,\\\"select\\\"],[24,0,\\\"pdf-export-options__grouping-control\\\"],[4,[38,13],[\\\"change\\\",[28,[37,10],[[30,0],[30,2,[\\\"update\\\"]]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,27],[[28,[37,27],[[30,2,[\\\"options\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"option\\\"],[15,2,[30,4,[\\\"key\\\"]]],[15,\\\"selected\\\",[30,4,[\\\"isSelected\\\"]]],[12],[1,[30,4,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"          \\\"]],[1]]]]],[1,\\\"\\\\n\\\\n          \\\"],[10,2],[12],[10,\\\"strong\\\"],[12],[1,[28,[35,4],[\\\"shared.report-builder.Labour bills\\\"],null]],[13],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"labour-invoice-detail\\\"],[24,2,\\\"section\\\"],[16,\\\"checked\\\",[28,[37,20],[[30,0,[\\\"options\\\",\\\"labourInvoicesDetail\\\"]],\\\"section\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"change\\\",[28,[37,21],[[30,0,[\\\"setOption\\\"]],\\\"labourInvoicesDetail\\\"],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.Total only\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"labour-invoice-detail\\\"],[24,2,\\\"invoice\\\"],[16,\\\"checked\\\",[28,[37,20],[[30,0,[\\\"options\\\",\\\"labourInvoicesDetail\\\"]],\\\"invoice\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"change\\\",[28,[37,21],[[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,20],[[30,0,[\\\"options\\\",\\\"labourInvoicesDetail\\\"]],\\\"item\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"change\\\",[28,[37,21],[[30,0,[\\\"setOption\\\"]],\\\"labourInvoicesDetail\\\"],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,4],[\\\"common.Bill items\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,2],[12],[10,\\\"strong\\\"],[12],[1,[28,[35,4],[\\\"shared.report-builder.Subcontractor bills\\\"],null]],[13],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"subcontractor-invoice-detail\\\"],[24,2,\\\"section\\\"],[16,\\\"checked\\\",[28,[37,20],[[30,0,[\\\"options\\\",\\\"subcontractorInvoicesDetail\\\"]],\\\"section\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"change\\\",[28,[37,21],[[30,0,[\\\"setOption\\\"]],\\\"subcontractorInvoicesDetail\\\"],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.Total only\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"subcontractor-invoice-detail\\\"],[24,2,\\\"invoice\\\"],[16,\\\"checked\\\",[28,[37,20],[[30,0,[\\\"options\\\",\\\"subcontractorInvoicesDetail\\\"]],\\\"invoice\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"change\\\",[28,[37,21],[[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,20],[[30,0,[\\\"options\\\",\\\"subcontractorInvoicesDetail\\\"]],\\\"item\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"change\\\",[28,[37,21],[[30,0,[\\\"setOption\\\"]],\\\"subcontractorInvoicesDetail\\\"],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,4],[\\\"common.Bill items\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,2],[12],[10,\\\"strong\\\"],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.marginMarkup\\\"],null]],[13],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"ember-radio-button\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,3,\\\"margin-type-detail\\\"],[24,2,\\\"total\\\"],[16,\\\"checked\\\",[28,[37,20],[[30,0,[\\\"options\\\",\\\"marginType\\\"]],\\\"total\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"change\\\",[28,[37,21],[[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,20],[[30,0,[\\\"options\\\",\\\"marginType\\\"]],\\\"pro-rata\\\"],null]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"change\\\",[28,[37,21],[[30,0,[\\\"setOption\\\"]],\\\"marginType\\\"],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.Pro rata\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"exporter__col box preview pdf-export-preview\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"preview__header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"preview__h3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Preview\\\"],null]],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"exporter__status-label\\\"],[15,\\\"data-status\\\",[52,[30,0,[\\\"isLoading\\\"]],\\\"loading\\\",\\\"live\\\"]],[12],[1,[28,[35,4],[\\\"common.Live\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"            \\\"],[10,\\\"svg\\\"],[14,0,\\\"spinner subtle\\\"],[14,\\\"viewBox\\\",\\\"0 0 100 100\\\"],[14,\\\"width\\\",\\\"12\\\"],[14,\\\"height\\\",\\\"12\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"50\\\"],[14,\\\"cy\\\",\\\"50\\\"],[14,\\\"r\\\",\\\"42\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"preview__note\\\"],[12],[1,[28,[35,4],[\\\"components.report-exporter-pm.layoutMayDifferSlightlyFromPDFVersion\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"pdf-wrapper\\\"],[12],[1,\\\"\\\\n\\\"],[44,[12],[[[1,\\\"        \\\"],[10,\\\"style\\\"],[12],[1,\\\"\\\\n          table tfoot { display: table-row-group; } .pdf-wrapper { all: initial;\\\\n          font:\\\"],[1,[30,5]],[1,\\\"px/1.4 sans-serif; margin: 0; padding: 40pt;\\\\n                              max-width: 595pt; overflow-y: auto; } .pdf-wrapper * { box-sizing:\\\\n                              border-box; } .pdf-wrapper .metadata { display: flex; align-items:\\\\n                              flex-start; } .pdf-wrapper .logo { margin-right: 2rem; max-width:\\\\n                              100%; max-height: 90px; } .pdf-wrapper .addr { margin-left: 20px; }\\\\n                              .pdf-wrapper section { margin-bottom: 2rem; } .pdf-wrapper h1 {\\\\n                              font-size: 1.5rem; } .pdf-wrapper h2 { font-size: 1.1rem; break-after:\\\\n                              avoid; } .pdf-wrapper table { width: 100%; border-collapse: collapse;\\\\n                              font-variant-numeric: tabular-nums; } .pdf-wrapper th { text-align:\\\\n                              left; font-size:\\\"],[1,[30,5]],[1,\\\"px; } .pdf-wrapper td { border-top: 1px solid #ccc;\\\\n                              border-bottom: 1px solid #ccc; word-break: break-word; font-size:\\\"],[1,[30,5]],[1,\\\"px; } th, .pdf-wrapper td { padding: 0.5em 1em; }\\\\n                              th:first-of-type, .pdf-wrapper td:first-of-type { padding-left: 0.5em;\\\\n                              } th:last-of-type, .pdf-wrapper td:last-of-type { padding-right:\\\\n                              0.5em; } .pdf-wrapper .r { text-align: right; } .pdf-wrapper .no-wrap\\\\n                              { white-space: nowrap; } .pdf-wrapper th.num-col { width: 6rem; }\\\\n                              .pdf-wrapper tfoot td { font-weight: bold; } .pdf-wrapper td.l2 {\\\\n                              padding-left: 1.5em; } .pdf-wrapper td.l3 { padding-left: 3em; }\\\\n                              .pdf-wrapper .note { color: #777; font-style: italic; } .pdf-wrapper\\\\n                              @media print { .pdf-wrapper body { font-size: 10px; } }\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[5]]],[1,\\\"      \\\"],[10,\\\"header\\\"],[14,0,\\\"metadata\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"        \\\"],[10,0],[14,5,\\\"flex: 1;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"options\\\",\\\"companyLogoUrl\\\"]],[[[1,\\\"            \\\"],[10,2],[14,5,\\\"height: 90px;\\\"],[12],[10,\\\"img\\\"],[14,0,\\\"logo\\\"],[15,\\\"src\\\",[29,[[30,0,[\\\"options\\\",\\\"companyLogoUrl\\\"]]]]],[14,\\\"alt\\\",\\\"Company Logo\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"options\\\",\\\"title\\\"]],[[[1,\\\"            \\\"],[10,2],[12],[10,\\\"h1\\\"],[12],[1,[30,0,[\\\"options\\\",\\\"title\\\"]]],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"        \\\"],[10,0],[14,0,\\\"addr\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"options\\\",\\\"companyAddress\\\"]],[[[1,\\\"            \\\"],[10,2],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"options\\\",\\\"companyAddress\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,2],[12],[1,[30,0,[\\\"date\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"r\\\"],[12],[1,[28,[35,37],[[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,38],null,[[\\\"@simpleLineBreaks\\\",\\\"@markdown\\\"],[true,[30,0,[\\\"options\\\",\\\"introduction\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[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,20],[[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,27],[[28,[37,27],[[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,37],[[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,20],[[30,0,[\\\"options\\\",\\\"materialsDetail\\\"]],\\\"invoice\\\"],null],[[[1,\\\"                        \\\"],[1,[28,[35,47],[[28,[37,48],[[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,20],[[30,0,[\\\"options\\\",\\\"materialsDetail\\\"]],\\\"item\\\"],null],[[[42,[28,[37,27],[[28,[37,27],[[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,47],[[28,[37,48],[[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,27],[[28,[37,27],[[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,47],[[28,[37,48],[[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,49],[[28,[37,50],[[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,47],[[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,47],[[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,14],[[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,27],[[28,[37,27],[[30,0,[\\\"groupedTimesheets\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[8,[39,52],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,47],[[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,47],[[28,[37,48],[[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,49],[[28,[37,20],[[30,0,[\\\"options\\\",\\\"labourInvoicesDetail\\\"]],\\\"section\\\"],null],[30,0,[\\\"labourInvoicesTotal\\\"]]],null],[[[1,\\\"                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"3\\\"],[12],[1,[28,[35,4],[\\\"shared.report-builder.Labour bills\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"r num-col\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,47],[[30,0,[\\\"labourInvoicesTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,27],[[28,[37,27],[[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,20],[[30,0,[\\\"options\\\",\\\"labourInvoicesDetail\\\"]],\\\"invoice\\\"],null],[[[1,\\\"                        \\\"],[1,[28,[35,47],[[28,[37,48],[[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,20],[[30,0,[\\\"options\\\",\\\"labourInvoicesDetail\\\"]],\\\"item\\\"],null],[[[42,[28,[37,27],[[28,[37,27],[[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,47],[[28,[37,48],[[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,27],[[28,[37,27],[[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,47],[[28,[37,48],[[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,49],[[28,[37,50],[[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,47],[[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,47],[[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,47],[[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,14],[[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,20],[[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,27],[[28,[37,27],[[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,37],[[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,20],[[30,0,[\\\"options\\\",\\\"subcontractorInvoicesDetail\\\"]],\\\"invoice\\\"],null],[[[1,\\\"                        \\\"],[1,[28,[35,47],[[28,[37,48],[[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,20],[[30,0,[\\\"options\\\",\\\"subcontractorInvoicesDetail\\\"]],\\\"item\\\"],null],[[[42,[28,[37,27],[[28,[37,27],[[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,47],[[28,[37,48],[[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,27],[[28,[37,27],[[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,47],[[28,[37,48],[[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,49],[[28,[37,50],[[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,47],[[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,47],[[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,47],[[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,38],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\\\",\\\"img\\\",\\\"action\\\",\\\"perform\\\",\\\"button\\\",\\\"on\\\",\\\"or\\\",\\\"not-eq\\\",\\\"loading-button\\\",\\\"a\\\",\\\"strong\\\",\\\"textarea\\\",\\\"eq\\\",\\\"fn\\\",\\\"span\\\",\\\"grouping-selector\\\",\\\"pipe\\\",\\\"mut\\\",\\\"each\\\",\\\"-track-array\\\",\\\"select\\\",\\\"option\\\",\\\"br\\\",\\\"header\\\",\\\"svg\\\",\\\"circle\\\",\\\"let\\\",\\\"style\\\",\\\"h1\\\",\\\"moment-format\\\",\\\"markdown-to-html\\\",\\\"h2\\\",\\\"table\\\",\\\"unless\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"td\\\",\\\"number-format\\\",\\\"math\\\",\\\"and\\\",\\\"not\\\",\\\"tfoot\\\",\\\"pdf-export-timesheet-row\\\"]]\",\n    \"moduleName\": \"portal/components/report-exporter-pm.hbs\",\n    \"isStrictMode\": false\n  });\n  const MAX_FILE_SIZE = 1024 * 1024 * 5; // 5 MB\n  const ALLOWED_MIME_TYPES = ['image/png', 'image/jpeg', 'image/gif'];\n\n  /*\n  \n  If there's no grouping needed:\n  \n  {\n    attr: null,\n    hours: number,\n    total: number\n  }\n  \n  If there's one level of grouping needed:\n  \n  {\n    attr: null,\n    label: null,\n    hours: number,\n    total: number,\n    children: [{\n      attr: 'worker',\n      label: string\n      hours: number,\n      total: number\n    }]\n  }\n  \n  */\n  class TimesheetGroup {\n    constructor(children, intl, groupingAttr = null, groupingValue = null) {\n      _defineProperty(this, \"intl\", void 0);\n      this.intl = intl;\n      const isLeafNode = !(children[0] instanceof TimesheetGroup);\n      if (!isLeafNode) {\n        this.children = children;\n      }\n      this.hours = children.reduce((t, child) => t + child.hours, 0);\n      this.total = children.reduce((t, child) => t + child.total, 0);\n      this.rate = this.total / this.hours || 0;\n      this.attr = groupingAttr;\n      const labelKey = groupingValue instanceof _worker.default ? 'fullName' : 'name';\n      if (groupingValue !== null) {\n        this.label = this.attr === 'day' ? (0, _moment.default)(groupingValue).format(this.intl.t('date.slashDayFirst')) : (0, _object.get)(groupingValue, labelKey);\n        this.sortIndex = getSortIndex(groupingValue);\n      }\n    }\n\n    // Special case for root to ensure we always get a wrapping TimesheetGroup, even if there's no grouping required\n    static createGrouping(timesheets, attrs, intl) {\n      const children = attrs.length > 0 ? TimesheetGroup.sortTimesheetGroup(TimesheetGroup.createNonRootGrouping(timesheets, attrs, intl)) : timesheets;\n      return new TimesheetGroup(children, intl);\n    }\n    static sortTimesheetGroup(list) {\n      return list.sort(({\n        sortIndex: a\n      }, {\n        sortIndex: b\n      }) => {\n        if (typeof a === 'string' && typeof b === 'string') return a.localeCompare(b);\n        if (typeof a === 'number' && typeof b === 'number' || a) return a - b;\n        return 0;\n      });\n    }\n    static createNonRootGrouping(timesheets, attrs, intl) {\n      if (attrs.length === 0) return timesheets;\n      const [attr, ...remainingAttrs] = attrs;\n      const timesheetsKeyedByAttr = {};\n\n      // if the value is an object get the id otherwise return the value\n      const serialize = value => value && typeof value === 'object' ? (0, _object.get)(value, 'id') : value;\n      for (const ts of timesheets) {\n        if (!(attr in ts) || ts[attr] == null) {\n          console.warn(`Cannot serialise property '${attr}' on timesheet object`, ts);\n          continue;\n        }\n        const key = serialize(ts[attr]);\n        const existingForKey = timesheetsKeyedByAttr[key] ?? [];\n        timesheetsKeyedByAttr[key] = [...existingForKey, ts];\n      }\n      return Object.values(timesheetsKeyedByAttr).map(tsGroup => {\n        const children = remainingAttrs.length > 0 ? TimesheetGroup.createNonRootGrouping(tsGroup, remainingAttrs, intl) : tsGroup.map(ts => ({\n          ...ts,\n          sortIndex: getSortIndex(ts[attr])\n        }));\n        const sortedChildren = TimesheetGroup.sortTimesheetGroup(children);\n        return new TimesheetGroup(sortedChildren, intl, attr, tsGroup[0][attr]);\n      });\n    }\n  }\n  let ReportExporterComponent = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _dec2 = (0, _computed.alias)('persistedSettings.reportBuilder:markReportedOnExport'), _dec3 = (0, _computed.alias)('persistedSettings.reportBuilder:includeAttachmentsOnExport'), _dec4 = (0, _object.computed)('options.marginType'), _dec5 = (0, _object.computed)('args.model', 'hours', 'model.workers', 'rate'), _dec6 = (0, _object.computed)('intl', 'normalisedTimesheets', 'options.projectTimesheetsDetail'), _class = class ReportExporterComponent extends _component2.default {\n    get useProRata() {\n      return this.options?.marginType === 'pro-rata';\n    }\n    get proRataCoefMaterials() {\n      if (!this.useProRata) return 1;\n      return 1 + (this.args.model.computedTotals.invoice.markupPercent || 0);\n    }\n    get proRataCoefLabour() {\n      if (!this.useProRata) return 1;\n      return 1 + (this.args.model.computedTotals.timesheet.markupPercent || 0);\n    }\n    get proRataCoefSubcontractors() {\n      if (!this.useProRata) return 1;\n      return 1 + (this.args.model.computedTotals.subcontractor.markupPercent || 0);\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"markReportedOnExport\", _descriptor7, this);\n      _initializerDefineProperty(this, \"includeAttachmentsOnExport\", _descriptor8, this);\n      _defineProperty(this, \"date\", new Date());\n      _defineProperty(this, \"timesheetGroupingOptions\", [{\n        key: 'day',\n        name: this.intl.t('common.Day')\n      }, {\n        key: 'worker',\n        name: this.intl.t('common.Worker')\n      }, {\n        key: 'task',\n        name: this.intl.t('common.Task')\n      }]);\n      _initializerDefineProperty(this, \"optionsRecord\", _descriptor9, this);\n      _initializerDefineProperty(this, \"options\", _descriptor0, this);\n      _initializerDefineProperty(this, \"entityDefaultOptions\", _descriptor1, this);\n      _defineProperty(this, \"loadOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const entity = this.sessionData.entity;\n          const entityId = (0, _object.get)(entity, 'id');\n          const {\n            projectId\n          } = this.args.model;\n          const project = this.store.peekRecord('project', projectId);\n          const [projectOptions, entityDefaultOptions] = yield Promise.all([this.store.simpleQuery('report-export-option', {\n            isEntityDefault: false,\n            entity: entityId,\n            project: projectId\n          }).then(r => r.objectAt(0)), this.store.simpleQuery('report-export-option', {\n            isEntityDefault: true,\n            entity: entityId\n          }).then(r => r.objectAt(0))]);\n          this.entityDefaultOptions = entityDefaultOptions || this.store.createRecord('report-export-option', {\n            entity,\n            isEntityDefault: true\n          });\n          this.optionsRecord = projectOptions || this.store.createRecord('report-export-option', {\n            companyLogoUrl: this.entityDefaultOptions.companyLogoUrl,\n            title: this.entityDefaultOptions.title,\n            introduction: this.entityDefaultOptions.introduction,\n            footnotes: this.entityDefaultOptions.footnotes,\n            materialsDetail: this.entityDefaultOptions.materialsDetail,\n            projectTimesheetsDetail: this.entityDefaultOptions.projectTimesheetsDetail,\n            labourInvoicesDetail: this.entityDefaultOptions.labourInvoicesDetail,\n            subcontractorInvoicesDetail: this.entityDefaultOptions.subcontractorInvoicesDetail,\n            marginType: this.entityDefaultOptions.marginType,\n            entity,\n            project,\n            isEntityDefault: false\n          });\n          (0, _object.set)(this, 'options', {\n            isEntityDefault: this.optionsRecord.isEntityDefault,\n            companyLogoUrl: this.optionsRecord.companyLogoUrl,\n            title: this.optionsRecord.title,\n            introduction: this.optionsRecord.introduction,\n            footnotes: this.optionsRecord.footnotes,\n            materialsDetail: this.optionsRecord.materialsDetail,\n            projectTimesheetsDetail: this.optionsRecord.projectTimesheetsDetail,\n            labourInvoicesDetail: this.optionsRecord.labourInvoicesDetail,\n            subcontractorInvoicesDetail: this.optionsRecord.subcontractorInvoicesDetail,\n            marginType: this.optionsRecord.marginType\n          });\n        }\n      }), null, \"loadOptions\", null));\n      _defineProperty(this, \"setEntityDefaultLogo\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (url) {\n          try {\n            this.entityDefaultOptions.companyLogoUrl = url;\n            yield this.entityDefaultOptions.save();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.report-exporter-pm.somethingWentWrongSettingTheDefaultLogo'),\n              error\n            });\n            return;\n          }\n        }\n      }), null, \"setEntityDefaultLogo\", null));\n      _defineProperty(this, \"setJobOptionLogo\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (url) {\n          try {\n            (0, _object.set)(this.options, 'companyLogoUrl', url);\n            yield this.save.perform();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.report-exporter-pm.Something went wrong setting the logo'),\n              error\n            });\n            return;\n          }\n        }\n      }), null, \"setJobOptionLogo\", null));\n      _defineProperty(this, \"updateLogo\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (event) {\n          try {\n            const [file] = event.target.files;\n            if (!file) return;\n            if (!ALLOWED_MIME_TYPES.includes(file.type)) {\n              this.notifications.info(this.intl.t('components.report-exporter-pm.theSelectedLogoFileHasAnInvalidFormatCommonImageFormatsSuchAsJpegPngAndGifAreAccepted'));\n              return;\n            }\n            if (file.size > MAX_FILE_SIZE) {\n              this.notifications.info(this.intl.t('components.report-exporter-pm.theSelectedLogoFileIsXWhichExceedsTheLimitOfYPleaseSelectASmallerFile', {\n                size: this.formatBytes(file.size),\n                maxSize: this.formatBytes(MAX_FILE_SIZE)\n              }));\n              return;\n            }\n            const logoUrl = yield this.uploadLogo(file);\n            (0, _object.set)(this.options, 'companyLogoUrl', logoUrl);\n            yield this.save.perform();\n          } catch (error) {\n            this.notifications.error({\n              error\n            });\n            return;\n          } finally {\n            event.target.value = '';\n          }\n        }\n      }), null, \"updateLogo\", null));\n      _defineProperty(this, \"save\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          for (const key in this.options) {\n            (0, _object.set)(this.optionsRecord, key, this.options[key] != null ? this.options[key] : null);\n          }\n          yield this.optionsRecord.save();\n        }\n      }), {\n        keepLatest: true\n      }, \"save\", null));\n      this.loadOptions.perform();\n    }\n    async uploadLogo(file) {\n      const formData = new FormData();\n      formData.append('logo', file);\n      formData.append('entity', this.sessionData.entity.id);\n      formData.append('job', this.args.model.projectId);\n      const options = {\n        method: 'POST',\n        body: formData,\n        headers: {\n          Authorization: `Bearer ${this.session.data.authenticated.access_token}`\n        }\n      };\n      const response = await fetch(`${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/uploads/job-report-logos`, options).then(res => res.json());\n      if (!response.success) throw new Error(response.message);\n      if (!response.logoUrl) throw new Error('Could not find file name');\n      return response.logoUrl;\n    }\n    get normalisedTimesheets() {\n      const {\n        workers = [],\n        useChargeOutRates\n      } = this.args.model;\n      const timesheets = [];\n      for (const worker of workers) {\n        const timesheetsForWorker = [];\n        for (const ts of worker.selectedTimesheets) {\n          const day = (0, _moment.default)(ts.date).startOf('day').valueOf();\n          const rate = useChargeOutRates ? worker.currentChargeOutRate ?? ts.chargeOutRate : ts.costRate;\n          const existingEntry = timesheetsForWorker.find(existing => existing.day === day && existing.task.get('id') === ts.task.get('id') && existing.rate === rate);\n          if (existingEntry) {\n            existingEntry.hours += ts.hours;\n          } else {\n            timesheetsForWorker.push({\n              worker: worker.worker,\n              day,\n              task: ts.task,\n              hours: ts.hours,\n              rate,\n              get total() {\n                return this.hours * this.rate;\n              }\n            });\n          }\n        }\n        timesheets.push(...timesheetsForWorker);\n      }\n      return timesheets;\n    }\n    get groupedTimesheets() {\n      if (!this.options?.projectTimesheetsDetail) return null;\n      return TimesheetGroup.createGrouping(this.normalisedTimesheets, this.options.projectTimesheetsDetail, this.intl);\n    }\n    get labourInvoicesTotal() {\n      return (this.args.model.labourInvoices || []).reduce((total, inv) => total + inv.selectedTotalPrice, 0) * this.proRataCoefLabour;\n    }\n    clearLogoSelection() {\n      (0, _object.set)(this, 'options.companyLogoUrl', null);\n      this.save.perform();\n    }\n    setOption(option, event) {\n      const value = event.target.value;\n      (0, _object.set)(this, `options.${option}`, value);\n      this.save.perform();\n    }\n    onChange(event) {\n      (0, _runloop.next)(() => {\n        if (event && event.target.value.trim().length === event.target.value.length) this.save.perform();\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"markReportedOnExport\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"includeAttachmentsOnExport\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"optionsRecord\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"options\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"entityDefaultOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"useProRata\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"useProRata\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"normalisedTimesheets\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"normalisedTimesheets\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"groupedTimesheets\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"groupedTimesheets\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearLogoSelection\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clearLogoSelection\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setOption\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setOption\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChange\"), _class.prototype), _class);\n  function getSortIndex(value) {\n    if (typeof value === 'number') return value;\n    if (value instanceof _worker.default) return (0, _object.get)(value, 'fullName');\n    if (value instanceof _task.default) return (0, _object.get)(value, 'path');\n    return undefined;\n  }\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ReportExporterComponent);\n});","define(\"portal/components/resource-history\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _tracking, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div {{did-update this.onArgsChange @resourceId @resourceType}}>\n    <PaginationTable\n      @tableHeader={{this.historyEventsTableHeader}}\n      @tableData={{this.historyEventsTableContent}}\n      @noDataText={{t 'components.resource-history.No history yet'}}\n      @pageSizes={{this.pageSizes}}\n      @pageSize={{this.pageSize}}\n      @pageIndex={{this.pageIndex}}\n      @onChangePageIndex={{this.onChangePageIndex}}\n      @onChangePageSize={{this.onChangePageSize}}\n      @isLoading={{this.getEvents.isRunning}}\n      @hasNextPage={{this.hasNextEventPage}}\n      @class='table-bordered'\n    />\n  </div>\n  */\n  {\n    \"id\": \"66xON47S\",\n    \"block\": \"[[[11,0],[4,[38,1],[[30,0,[\\\"onArgsChange\\\"]],[30,1],[30,2]],null],[12],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@isLoading\\\",\\\"@hasNextPage\\\",\\\"@class\\\"],[[30,0,[\\\"historyEventsTableHeader\\\"]],[30,0,[\\\"historyEventsTableContent\\\"]],[28,[37,3],[\\\"components.resource-history.No history yet\\\"],null],[30,0,[\\\"pageSizes\\\"]],[30,0,[\\\"pageSize\\\"]],[30,0,[\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"getEvents\\\",\\\"isRunning\\\"]],[30,0,[\\\"hasNextEventPage\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"@resourceId\\\",\\\"@resourceType\\\"],false,[\\\"div\\\",\\\"did-update\\\",\\\"pagination-table\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/resource-history.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"eventData\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pageSizes\", [10, 25, 50]);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor6, this);\n      _initializerDefineProperty(this, \"pageIndex\", _descriptor7, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor8, this);\n      _initializerDefineProperty(this, \"sort\", _descriptor9, this);\n      _defineProperty(this, \"getEvents\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let andFilters = [{\n            field: 'entity',\n            op: 'EQ',\n            value: this.sessionData.entity.id\n          }];\n          if (this.args.resourceType) {\n            andFilters.push({\n              field: 'resourceType',\n              op: 'EQ',\n              value: this.args.resourceType\n            });\n          }\n          if (this.args.resourceId) {\n            andFilters.push({\n              field: 'resourceId',\n              op: 'EQ',\n              value: this.args.resourceId\n            });\n          }\n          const filters = {\n            and: andFilters\n          };\n          const eventData = yield this.store.query('resource-event', {\n            filter: filters,\n            sort: this.sort,\n            page: {\n              size: this.pageSize,\n              number: this.pageIndex\n            }\n          });\n          this.eventData = eventData;\n        }\n      }), null, \"getEvents\", null));\n      this.getEvents.perform();\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n      this.getEvents.perform();\n    }\n    onChangePageIndex(pageIndex) {\n      this.pageIndex = pageIndex;\n      this.getEvents.perform();\n    }\n    get hasNextEventPage() {\n      return this.eventData?.meta?.currentPage < this.eventData?.meta?.totalPages;\n    }\n    onClickUserName({\n      rowData\n    }) {\n      const userId = rowData[2].extraData.user.id;\n      const workerId = rowData[2].extraData.worker.id;\n      let url;\n      if (userId) {\n        url = this.router.urlFor('entity.settings.people.users');\n      } else {\n        url = this.router.urlFor('entity.settings.people.workers');\n      }\n      window.open(`${url}/${userId || workerId}`, '_blank');\n    }\n    onArgsChange() {\n      this.pageIndex = 1;\n      this.getEvents.perform();\n    }\n    sortDateCreatedColumn() {\n      if (this.sortDirection === 'asc') {\n        this.sort = 'dateCreated';\n        this.sortDirection = 'desc';\n      } else if (this.sortDirection === 'desc') {\n        this.sort = undefined;\n        this.sortDirection = undefined;\n      } else {\n        this.sort = '-dateCreated';\n        this.sortDirection = 'asc';\n      }\n      this.getEvents.perform();\n    }\n    get historyEventsTableHeader() {\n      if (this.getEvents.isRunning) return [];\n      return [{\n        value: this.intl.t('common.Date'),\n        iconName: this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortDateCreatedColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Action'),\n        colClass: 'text-left'\n      }, {\n        value: this.intl.t('common.Description'),\n        colClass: 'text-left'\n      }, {\n        value: this.intl.t('common.Person'),\n        colClass: 'text-left'\n      }];\n    }\n    get historyEventsTableContent() {\n      if (this.getEvents.isRunning) return [];\n      return this.eventData.map(event => {\n        const eventData = [{\n          colClass: 'text-left align-middle',\n          value: this.intl.formatDate(event.dateCreated) ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: event?.action ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: event?.description ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: event?._meta.personName ?? ' — '\n        }];\n        return {\n          rowData: eventData\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"eventData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.pageSizes[0];\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"pageIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"sort\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '-dateCreated';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePageSize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePageIndex\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClickUserName\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onClickUserName\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onArgsChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onArgsChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sortDateCreatedColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"sortDateCreatedColumn\"), _class.prototype), _class));\n});","define(\"portal/components/rich-text-editor\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div {{did-insert this.setupEditor}}>\n  \n  </div>\n  */\n  {\n    \"id\": \"e7ANUCeU\",\n    \"block\": \"[[[11,0],[4,[38,1],[[30,0,[\\\"setupEditor\\\"]]],null],[12],[1,\\\"\\\\n\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"did-insert\\\"]]\",\n    \"moduleName\": \"portal/components/rich-text-editor.hbs\",\n    \"isStrictMode\": false\n  });\n  let RichTextEditorComponent = _exports.default = (_class = class RichTextEditorComponent extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"quill\", _descriptor, this);\n      _initializerDefineProperty(this, \"textChangeHandler\", _descriptor2, this);\n      _initializerDefineProperty(this, \"blurHandler\", _descriptor3, this);\n    }\n    get editorHeight() {\n      return this.args.height;\n    }\n    async injectQuillAssets() {\n      if (typeof window.Quill === 'undefined') {\n        await new Promise((resolve, reject) => {\n          let script = document.createElement('script');\n          script.id = 'quill-js';\n          script.src = `${_environment.default.rootURL}assets/quill-c8d06576b13e0789d356aca20d46b024.js`;\n          script.onload = () => resolve();\n          script.onerror = () => reject(new Error('Failed to load quill-c8d06576b13e0789d356aca20d46b024.js'));\n          document.head.appendChild(script);\n        });\n      }\n    }\n    async setupEditor(element) {\n      await this.injectQuillAssets();\n      element.style.height = this.editorHeight;\n      this.quill = new window.Quill(element, {\n        theme: 'snow',\n        readOnly: this.args.readOnly ?? false,\n        scrollingContainer: element,\n        modules: {\n          toolbar: [[{\n            header: [1, 2, 3, 4, 5, false]\n          }], ['bold', 'italic', 'underline', 'clean'], [{\n            align: []\n          }], [{\n            list: 'ordered'\n          }, {\n            list: 'bullet'\n          }], ['image', 'link', 'video']]\n        }\n      });\n      this.quill.root.innerHTML = this.args.content || '';\n      this.textChangeListener = () => {\n        this.args.onChange?.(this.quill.root.innerHTML);\n      };\n      this.quill.on('text-change', this.textChangeListener);\n      this.blurListener = () => {\n        this.args.onBlur?.();\n      };\n      this.quill.root.addEventListener('blur', this.blurListener);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      if (this.textChangeListener) {\n        this.quill.off('text-change', this.textChangeListener);\n        this.textChangeListener = null;\n      }\n      if (this.blurListener) {\n        this.quill.root.removeEventListener('blur', this.blurListener);\n        this.blurListener = null;\n      }\n      this.quill = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"quill\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"textChangeHandler\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"blurHandler\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"setupEditor\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setupEditor\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, RichTextEditorComponent);\n});","define(\"portal/components/search-select\", [\"exports\", \"@ember/component\", \"@ember/object\", \"jquery\", \"portal/components/search-select\", \"@ember/template-factory\"], function (_exports, _component, _object, _jquery, _searchSelect, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"jquery\",0,\"portal/components/search-select\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.finderVisible}}\n    <span class='search-select__search-icon'>\n      <FaIcon @icon='search' />\n    </span>\n  {{/if}}\n  \n  {{input\n    class=(or @class 'select-box')\n    name=(if this.finderVisible 'search-select__search-input')\n    type='text'\n    value=this.searchTerm\n    placeholder=(if\n      this.finderVisible (or @searchPlaceholder 'Type to search…') @placeholder\n    )\n    keyDown=(action 'keyDown' bubbles=false)\n    click=(action 'setFinderVisible' true bubbles=false)\n    focusIn=(action 'setFinderVisible' true bubbles=false)\n    autocomplete='off'\n  }}\n  \n  {{#if this.finderVisible}}\n    <div class='search-select__drop-down'>\n      {{#unless @isLoading}}\n        {{#if (and this.activeDisplayName this.filteredOptions.length)}}\n          <div\n            {{action 'clearValue' bubbles=false}}\n            class='search-select__drop-down__row search-select__drop-down__row--clear'\n          >\n            <b>Clear ({{this.activeDisplayName}})</b>\n            <FaIcon @icon='times' />\n          </div>\n        {{/if}}\n  \n        {{#each this.filteredOptions as |option index|}}\n          {{! template-lint-disable no-passed-in-event-handlers }}\n          {{search-select/item\n            option=option\n            keys=this._keys\n            separator=this.separator\n            getDisplayName=this.getDisplayName\n            class=(concat\n              'search-select__drop-down__row'\n              (if\n                (eq this.selectedRow index)\n                ' search-select__drop-down__row--selected'\n              )\n            )\n            mouseEnter=(action 'setSelectedRow' index bubbles=false)\n            mouseLeave=(action 'unSetHighlight' index bubbles=false)\n            click=(action 'setItem' index bubbles=false)\n            data-test-search-select-option=index\n          }}\n        {{else}}\n          <div\n            class='search-select__drop-down__row search-select__drop-down__row--empty'\n          >\n            <span class='text-button--spaced'>\n              {{or @emptyText 'No items found'}}\n            </span>\n  \n            {{#if @emptyButtonAction}}\n              <button\n                class='text-button text-button--spaced'\n                type='button'\n                {{action @emptyButtonAction bubbles=false}}\n              >\n                {{or @emptyButtonText 'Click to update'}}\n              </button>\n            {{/if}}\n          </div>\n        {{/each}}\n      {{else}}\n        <div\n          class='search-select__drop-down__row search-select__drop-down__row--loading'\n        >\n          <LoadingIcon @type='spinner' />\n        </div>\n      {{/unless}}\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"+NhN+M8g\",\n    \"block\": \"[[[41,[30,0,[\\\"finderVisible\\\"]],[[[1,\\\"  \\\"],[10,1],[14,0,\\\"search-select__search-icon\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[\\\"search\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,[28,[35,3],null,[[\\\"class\\\",\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"keyDown\\\",\\\"click\\\",\\\"focusIn\\\",\\\"autocomplete\\\"],[[28,[37,4],[[30,1],\\\"select-box\\\"],null],[52,[30,0,[\\\"finderVisible\\\"]],\\\"search-select__search-input\\\"],\\\"text\\\",[30,0,[\\\"searchTerm\\\"]],[52,[30,0,[\\\"finderVisible\\\"]],[28,[37,4],[[30,2],\\\"Type to search…\\\"],null],[30,3]],[28,[37,5],[[30,0],\\\"keyDown\\\"],[[\\\"bubbles\\\"],[false]]],[28,[37,5],[[30,0],\\\"setFinderVisible\\\",true],[[\\\"bubbles\\\"],[false]]],[28,[37,5],[[30,0],\\\"setFinderVisible\\\",true],[[\\\"bubbles\\\"],[false]]],\\\"off\\\"]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"finderVisible\\\"]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"search-select__drop-down\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,4]],[[[41,[28,[37,8],[[30,0,[\\\"activeDisplayName\\\"]],[30,0,[\\\"filteredOptions\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[11,0],[24,0,\\\"search-select__drop-down__row search-select__drop-down__row--clear\\\"],[4,[38,5],[[30,0],\\\"clearValue\\\"],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n          \\\"],[10,\\\"b\\\"],[12],[1,\\\"Clear (\\\"],[1,[30,0,[\\\"activeDisplayName\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"filteredOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[1,[28,[35,12],null,[[\\\"option\\\",\\\"keys\\\",\\\"separator\\\",\\\"getDisplayName\\\",\\\"class\\\",\\\"mouseEnter\\\",\\\"mouseLeave\\\",\\\"click\\\",\\\"data-test-search-select-option\\\"],[[30,5],[30,0,[\\\"_keys\\\"]],[30,0,[\\\"separator\\\"]],[30,0,[\\\"getDisplayName\\\"]],[28,[37,13],[\\\"search-select__drop-down__row\\\",[52,[28,[37,14],[[30,0,[\\\"selectedRow\\\"]],[30,6]],null],\\\" search-select__drop-down__row--selected\\\"]],null],[28,[37,5],[[30,0],\\\"setSelectedRow\\\",[30,6]],[[\\\"bubbles\\\"],[false]]],[28,[37,5],[[30,0],\\\"unSetHighlight\\\",[30,6]],[[\\\"bubbles\\\"],[false]]],[28,[37,5],[[30,0],\\\"setItem\\\",[30,6]],[[\\\"bubbles\\\"],[false]]],[30,6]]]]],[1,\\\"\\\\n\\\"]],[5,6]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"search-select__drop-down__row search-select__drop-down__row--empty\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"text-button--spaced\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[[30,7],\\\"No items found\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,8],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,5],[[30,0],[30,8]],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[[30,9],\\\"Click to update\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"search-select__drop-down__row search-select__drop-down__row--loading\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@class\\\",\\\"@searchPlaceholder\\\",\\\"@placeholder\\\",\\\"@isLoading\\\",\\\"option\\\",\\\"index\\\",\\\"@emptyText\\\",\\\"@emptyButtonAction\\\",\\\"@emptyButtonText\\\"],false,[\\\"if\\\",\\\"span\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"or\\\",\\\"action\\\",\\\"div\\\",\\\"unless\\\",\\\"and\\\",\\\"b\\\",\\\"each\\\",\\\"-track-array\\\",\\\"search-select/item\\\",\\\"concat\\\",\\\"eq\\\",\\\"button\\\",\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/components/search-select.hbs\",\n    \"isStrictMode\": false\n  });\n\n  // to lower case\n  function tlc(string) {\n    return String(string).toLowerCase();\n  }\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _searchSelect.default,\n    classNames: ['search-select'],\n    finderVisible: false,\n    selectedRow: 0,\n    searchTerm: '',\n    separator: ' - ',\n    // This will eventually be a computed property that will be generated in the didInsertElement hook.\n    activeDisplayName: null,\n    // Things that need to happen once, when the element is created\n    didInsertElement() {\n      this._super(...arguments);\n      // capture click events and check if they are for our component\n      // if they are not, we can close the drop down\n      const element = (0, _object.get)(this, 'elementId');\n      (0, _jquery.default)(window).on('click', event => {\n        if ((0, _object.get)(this, 'finderVisible') && (0, _jquery.default)(`#${element}`).has(event.target).length === 0 && !(0, _jquery.default)(`#${element}`).is(event.target)) {\n          (0, _object.set)(this, 'finderVisible', false);\n        }\n      });\n\n      // we need to set the value on the initial render\n      const activeValue = (0, _object.get)(this, 'activeDisplayName');\n      (0, _object.set)(this, 'searchTerm', activeValue);\n\n      // Generate the activeDisplayName, with dependent paths that are calculated from the passed in `keys` and `value` properties.\n      const updateKeys = (0, _object.get)(this, '_keys').map(k => 'value.' + k);\n      (0, _object.defineProperty)(this, 'activeDisplayName', (0, _object.computed)(...updateKeys, '_keys', 'options[]', 'separator', 'value', function () {\n        const value = (0, _object.get)(this, 'value');\n        const keys = (0, _object.get)(this, '_keys');\n        if (typeof value !== 'object') {\n          return value;\n        } else if (keys && (0, _object.get)(keys, 'length') && value) {\n          const separator = (0, _object.get)(this, 'separator');\n          return this.getDisplayName(keys, value, separator);\n        } else {\n          return '';\n        }\n      }));\n    },\n    // Things that need to happen once, when the element is destroyed\n    willDestroyElement() {\n      this._super(...arguments);\n      // remove our listener\n      (0, _jquery.default)(window).off('click');\n    },\n    // Things that need to happen every time the element is re-rendered\n    didRender() {\n      this._super(...arguments);\n      // for following renders we only want to set the value when the search is not being used and the value has changed\n      const finderNotVisible = !(0, _object.get)(this, 'finderVisible');\n      const activeValue = (0, _object.get)(this, 'activeDisplayName');\n      const searchTerm = (0, _object.get)(this, 'searchTerm');\n      if (finderNotVisible && activeValue !== searchTerm) {\n        (0, _object.set)(this, 'searchTerm', activeValue);\n      }\n    },\n    // we want to automatically clear the input when the input is search only\n    // ie when the input cannot create its own values\n    clearInputOnFocus: (0, _object.observer)('finderVisible', function () {\n      if ((0, _object.get)(this, 'finderVisible')) (0, _object.set)(this, 'searchTerm', '');\n    }),\n    _keys: (0, _object.computed)('keys', function () {\n      return (0, _object.get)(this, 'keys') && (0, _object.get)(this, 'keys').split(',').map(item => item.trim());\n    }),\n    filteredOptions: (0, _object.computed)('_keys', 'options', 'searchTerm', function () {\n      const keys = (0, _object.get)(this, '_keys');\n      const searchTerm = (0, _object.get)(this, 'searchTerm');\n      const options = (0, _object.get)(this, 'options');\n      if (searchTerm) {\n        return options.filter(option => {\n          if (typeof option === 'object') {\n            return keys.find(key => tlc((0, _object.get)(option, key)).includes(tlc(searchTerm)));\n          } else {\n            return tlc(option).includes(tlc(searchTerm));\n          }\n        });\n      }\n      return options;\n    }),\n    actions: {\n      setFinderVisible(visible) {\n        if ((0, _object.get)(this, 'finderVisible') !== visible) (0, _object.set)(this, 'finderVisible', visible);\n      },\n      setSelectedRow(index) {\n        (0, _object.set)(this, 'selectedRow', index);\n      },\n      keyDown(event) {\n        const selectedRow = (0, _object.get)(this, 'selectedRow');\n        switch (event.keyCode) {\n          // down arrow\n          case 38:\n            this.send('setFinderVisible', true);\n            if (selectedRow > 0) (0, _object.set)(this, 'selectedRow', selectedRow - 1);\n            break;\n          // up arrow\n          case 40:\n            this.send('setFinderVisible', true);\n            if (selectedRow + 1 < (0, _object.get)(this, 'filteredOptions.length')) (0, _object.set)(this, 'selectedRow', selectedRow + 1);\n            break;\n          // enter\n          case 13:\n            if ((0, _object.get)(this, 'finderVisible')) this.send('setItem', selectedRow);\n            break;\n          // tab\n          case 9:\n            this.send('setFinderVisible', false);\n            break;\n          // escape\n          case 27:\n            this.send('setFinderVisible', false);\n            break;\n          // any other key\n          default:\n            (0, _object.set)(this, 'selectedRow', -1);\n            this.send('setFinderVisible', true);\n            break;\n        }\n      },\n      unSetHighlight(index) {\n        if ((0, _object.get)(this, 'selectedRow') === index) (0, _object.set)(this, 'selectedRow', null);\n      },\n      setItem(index) {\n        const item = (0, _object.get)(this, 'filteredOptions').objectAt(index);\n\n        // eslint-disable-next-line ember/closure-actions\n        this.sendAction('onSelect', item);\n        this.send('setFinderVisible', false);\n      },\n      clearValue() {\n        (0, _object.set)(this, 'value', null);\n\n        // eslint-disable-next-line ember/closure-actions\n        this.sendAction('onSelect', null);\n        (0, _object.set)(this, 'finderVisible', false);\n      }\n    },\n    getDisplayName(keys, option, separator) {\n      // separator defaults to ' - '\n      // go through each key and build the display name by getting the values at the key\n      // If `option` is a Proxy Object, then the `get` function won't\n      const names = keys.map(key => (0, _object.get)(option, key)).filter(Boolean);\n      return names.join(separator);\n    }\n  }));\n});","define(\"portal/components/search-select/item\", [\"exports\", \"@ember/component\", \"@ember/object\", \"portal/components/search-select/item\", \"@ember/template-factory\"], function (_exports, _component, _object, _item, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"portal/components/search-select/item\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{@displayName}}\n  */\n  {\n    \"id\": \"mkfjLbA/\",\n    \"block\": \"[[[1,[30,1]]],[\\\"@displayName\\\"],false,[]]\",\n    \"moduleName\": \"portal/components/search-select/item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _item.default,\n    displayName: (0, _object.computed)('option', 'keys', 'separator', function () {\n      const option = (0, _object.get)(this, 'option');\n      if (typeof option === 'string') return option;\n      const keys = (0, _object.get)(this, 'keys');\n      const separator = (0, _object.get)(this, 'separator');\n      return keys.map(key => (0, _object.get)(option, key)).join(separator);\n    })\n  }));\n});","define(\"portal/components/search-selector\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"ember-concurrency\", \"@ember/runloop\", \"portal/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _emberConcurrency, _runloop, _environment, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"portal/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PopUp\n    class='position-relative'\n    id={{this.elementId}}\n    @visible={{this.showPopUp}}\n    @onClose={{this.toggleShowPopUp}}\n    @disabled={{@disabled}}\n    as |pu|\n  >\n    <div\n      role='button'\n      class='form-control search-selector__selector\n        {{if (gt this.errors.length 0) \"is-invalid\"}}\n        {{if @disabled \"search-selector__selector--disabled\"}}'\n      data-test-task-div=''\n      {{on 'click' this.toggleShowPopUp}}\n      ...attributes\n    >\n      {{#if this.valueString}}\n        <div class='d-flex justify-content-between align-items-center'>\n          <span class='search-selector__value text-truncate d-block'>\n            {{this.valueString}}\n          </span>\n          {{! template-lint-disable no-nested-interactive }}\n          {{#unless @disabled}}\n            <button\n              type='button'\n              class='btn btn-close me-2'\n              {{on 'click' this.removeSelectedItem}}\n              aria-label='Close'\n            >\n            </button>\n          {{/unless}}\n        </div>\n        <span\n          class='search-selector__select-icon {{if this.showPopUp \"rotate\"}}'\n        ></span>\n      {{else if @placeholder}}\n        <span class='search-selector__placeholder'>{{@placeholder}}</span>\n      {{/if}}\n    </div>\n    {{#each this.errors as |error|}}\n      <div class='invalid-feedback d-block' data-test-ptl-input-error>\n        {{error.validation}}\n      </div>\n    {{/each}}\n    <pu.Content class='search-selector__content w-100'>\n      <div class='px-2 pt-3 pb-1 search-selector__input-container'>\n        <input\n          class='form-control search-selector__input'\n          type='text'\n          {{on 'input' (perform this.onChangeSearch)}}\n          {{on 'keyup' this.keyup}}\n        />\n      </div>\n      <div\n        class='w-100 search-selector__drop-down position-relative my-2'\n        {{did-insert this.initList}}\n        {{will-destroy this.destroySearch}}\n      >\n        {{#each this.list key=@key as |item index|}}\n          <div\n            class='search-selector__drop-down-row\n              {{if\n                (eq index this.selectedRow)\n                \"search-selector__drop-down-row--selected\"\n              }}\n              {{concat \"search-selector__drop-down-row--\" index}}'\n            {{on 'click' (pipe (fn this.onSelect item) this.toggleShowPopUp)}}\n          >\n            {{#each @optionKeys as |key index|}}\n              {{get item key}}\n              {{#if (not-eq index (math @optionKeys.length '-' 1))}}\n                -\n              {{/if}}\n            {{/each}}\n          </div>\n        {{else}}\n          {{#if (not this.isLoading)}}\n            <div class='px-3'>\n              {{#let (or @noDataMessage (t 'common.No data')) as |message|}}\n                {{#if @noDataAction}}\n                  <button\n                    type='button'\n                    class='btn btn-link p-0'\n                    {{on 'click' this.runNoDataAction}}\n                    data-test-search-selector-create-action\n                  >\n                    {{message}}\n                  </button>\n                {{else if @noDataRoute}}\n                  <LinkTo @route={{@noDataRoute}} @model='new'>\n                    {{message}}\n                    <FaIcon @icon='external-link-alt' @size='sm' />\n                  </LinkTo>\n                {{else}}\n                  {{message}}\n                {{/if}}\n              {{/let}}\n            </div>\n          {{/if}}\n        {{/each}}\n        {{#if this.showNoDataRouteAction}}\n          <div class='search-selector__action-row px-3 py-2'>\n            <LinkTo\n              @route={{@noDataRoute}}\n              @model='new'\n              class='search-selector__action-link'\n              data-test-search-selector-create-link\n            >\n              {{or @noDataMessage (t 'common.No data')}}\n              <FaIcon @icon='external-link-alt' @size='sm' />\n            </LinkTo>\n          </div>\n        {{/if}}\n        {{#if this.showNoDataAction}}\n          <div class='search-selector__action-row px-3 py-2'>\n            <button\n              type='button'\n              class='btn btn-link p-0 search-selector__action-link'\n              {{on 'click' this.runNoDataAction}}\n              data-test-search-selector-create-action\n            >\n              {{or @noDataMessage (t 'common.No data')}}\n            </button>\n          </div>\n        {{/if}}\n        {{#if this.isLoading}}\n          <div class='py-2 text-center'>\n            <LoadingIcon @type='spinner' />\n          </div>\n        {{/if}}\n      </div>\n    </pu.Content>\n  </PopUp>\n  */\n  {\n    \"id\": \"LPp1iOPK\",\n    \"block\": \"[[[8,[39,0],[[24,0,\\\"position-relative\\\"],[16,1,[30,0,[\\\"elementId\\\"]]]],[[\\\"@visible\\\",\\\"@onClose\\\",\\\"@disabled\\\"],[[30,0,[\\\"showPopUp\\\"]],[30,0,[\\\"toggleShowPopUp\\\"]],[30,1]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[16,0,[29,[\\\"form-control search-selector__selector\\\\n      \\\",[52,[28,[37,3],[[30,0,[\\\"errors\\\",\\\"length\\\"]],0],null],\\\"is-invalid\\\"],\\\"\\\\n      \\\",[52,[30,1],\\\"search-selector__selector--disabled\\\"]]]],[24,\\\"data-test-task-div\\\",\\\"\\\"],[17,3],[4,[38,4],[\\\"click\\\",[30,0,[\\\"toggleShowPopUp\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"valueString\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex justify-content-between align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"search-selector__value text-truncate d-block\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"valueString\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,1]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-close me-2\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"removeSelectedItem\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,1],[15,0,[29,[\\\"search-selector__select-icon \\\",[52,[30,0,[\\\"showPopUp\\\"]],\\\"rotate\\\"]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,4],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"search-selector__placeholder\\\"],[12],[1,[30,4]],[13],[1,\\\"\\\\n    \\\"]],[]],null]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"errors\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[10,0],[14,0,\\\"invalid-feedback d-block\\\"],[14,\\\"data-test-ptl-input-error\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,5,[\\\"validation\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"  \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"search-selector__content w-100\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"px-2 pt-3 pb-1 search-selector__input-container\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control search-selector__input\\\"],[24,4,\\\"text\\\"],[4,[38,4],[\\\"input\\\",[28,[37,11],[[30,0,[\\\"onChangeSearch\\\"]]],null]],null],[4,[38,4],[\\\"keyup\\\",[30,0,[\\\"keyup\\\"]]],null],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[11,0],[24,0,\\\"w-100 search-selector__drop-down position-relative my-2\\\"],[4,[38,12],[[30,0,[\\\"initList\\\"]]],null],[4,[38,13],[[30,0,[\\\"destroySearch\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"list\\\"]]],null]],null],[30,6],[[[1,\\\"        \\\"],[11,0],[16,0,[29,[\\\"search-selector__drop-down-row\\\\n            \\\",[52,[28,[37,14],[[30,8],[30,0,[\\\"selectedRow\\\"]]],null],\\\"search-selector__drop-down-row--selected\\\"],\\\"\\\\n            \\\",[28,[37,15],[\\\"search-selector__drop-down-row--\\\",[30,8]],null]]]],[4,[38,4],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"onSelect\\\"]],[30,7]],null],[30,0,[\\\"toggleShowPopUp\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,9]],null]],null],null,[[[1,\\\"            \\\"],[1,[28,[35,18],[[30,7],[30,10]],null]],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,11],[28,[37,20],[[30,9,[\\\"length\\\"]],\\\"-\\\",1],null]],null],[[[1,\\\"              -\\\\n\\\"]],[]],null]],[10,11]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[7,8]],[[[41,[28,[37,21],[[30,0,[\\\"isLoading\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n\\\"],[44,[[28,[37,23],[[30,12],[28,[37,24],[\\\"common.No data\\\"],null]],null]],[[[41,[30,14],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0\\\"],[24,\\\"data-test-search-selector-create-action\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"runNoDataAction\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[30,13]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,15],[[[1,\\\"                \\\"],[8,[39,25],null,[[\\\"@route\\\",\\\"@model\\\"],[[30,15],\\\"new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[1,[30,13]],[1,\\\"\\\\n                  \\\"],[8,[39,26],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",\\\"sm\\\"]],null],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[30,13]],[1,\\\"\\\\n              \\\"]],[]]]],[]]]],[13]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[41,[30,0,[\\\"showNoDataRouteAction\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"search-selector__action-row px-3 py-2\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,25],[[24,0,\\\"search-selector__action-link\\\"],[24,\\\"data-test-search-selector-create-link\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[30,15],\\\"new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,23],[[30,12],[28,[37,24],[\\\"common.No data\\\"],null]],null]],[1,\\\"\\\\n            \\\"],[8,[39,26],null,[[\\\"@icon\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",\\\"sm\\\"]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showNoDataAction\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"search-selector__action-row px-3 py-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link p-0 search-selector__action-link\\\"],[24,\\\"data-test-search-selector-create-action\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"runNoDataAction\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,23],[[30,12],[28,[37,24],[\\\"common.No data\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"py-2 text-center\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,27],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[2]]]]]],[\\\"@disabled\\\",\\\"pu\\\",\\\"&attrs\\\",\\\"@placeholder\\\",\\\"error\\\",\\\"@key\\\",\\\"item\\\",\\\"index\\\",\\\"@optionKeys\\\",\\\"key\\\",\\\"index\\\",\\\"@noDataMessage\\\",\\\"message\\\",\\\"@noDataAction\\\",\\\"@noDataRoute\\\"],false,[\\\"pop-up\\\",\\\"div\\\",\\\"if\\\",\\\"gt\\\",\\\"on\\\",\\\"span\\\",\\\"unless\\\",\\\"button\\\",\\\"each\\\",\\\"-track-array\\\",\\\"input\\\",\\\"perform\\\",\\\"did-insert\\\",\\\"will-destroy\\\",\\\"eq\\\",\\\"concat\\\",\\\"pipe\\\",\\\"fn\\\",\\\"get\\\",\\\"not-eq\\\",\\\"math\\\",\\\"not\\\",\\\"let\\\",\\\"or\\\",\\\"t\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/components/search-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    get isLoading() {\n      return this.args.onLoad.isRunning || this.onChangeSearch.isRunning;\n    }\n    get errors() {\n      const errors = this.args.model.get('errors');\n      return errors.filter(er => er.key === this.args.key);\n    }\n    get list() {\n      // assume we are dumping the current list when the searchTerm changes\n      if (this.onChangeSearch.isRunning) return [];\n      return this.args.onLoad.lastSuccessful?.value || [];\n    }\n    get valueString() {\n      const modelKeyValue = this.args.model[this.args.key];\n      if (!modelKeyValue) return undefined;\n      if (typeof modelKeyValue === 'string') return modelKeyValue;\n      const values = [];\n      for (const key of this.args.optionKeys) {\n        values.push(modelKeyValue[key]);\n      }\n      return values.join(' – ');\n    }\n    get noDataQueryValue() {\n      return this.searchTerm?.trim?.() || this.args.initialSearchTerm?.trim?.();\n    }\n    get showNoDataRouteAction() {\n      return Boolean(this.args.showNoDataRouteWithResults && this.args.noDataRoute && this.list.length && this.noDataQueryValue);\n    }\n    get showNoDataAction() {\n      return Boolean(this.args.showNoDataActionWithResults && this.args.noDataAction && this.list.length && this.noDataQueryValue);\n    }\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"scrollHandler\", null);\n      _initializerDefineProperty(this, \"scrollableParent\", _descriptor, this);\n      _initializerDefineProperty(this, \"inputElement\", _descriptor2, this);\n      _initializerDefineProperty(this, \"selectedRow\", _descriptor3, this);\n      _initializerDefineProperty(this, \"showPopUp\", _descriptor4, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor5, this);\n      _defineProperty(this, \"debounce\", this.args.debounce || _environment.default.debounceTimeMs);\n      _defineProperty(this, \"lastElement\", void 0);\n      _defineProperty(this, \"renderMore\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.args.onLoad.perform(this.searchTerm);\n        }\n      }), null, \"renderMore\", null));\n      _defineProperty(this, \"onChangeSearch\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          this.searchTerm = e.target.value;\n          if (this.debounce) yield (0, _emberConcurrency.timeout)(this.debounce);\n          yield this.args.onLoad.perform(this.searchTerm.trim());\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearch\", null));\n      this.elementId = 'search-selector__' + Math.floor(Math.random() * 1e5);\n    }\n    initList() {\n      if (!this.valueString && this.args.initialSearchTerm?.trim?.()) {\n        this.searchTerm = this.args.initialSearchTerm.trim();\n      }\n      if (this.searchTerm || !this.list.length) {\n        this.args.onLoad.perform(this.searchTerm);\n      }\n      const parentElement = document.getElementById(this.elementId);\n      this.scrollableParent = parentElement.querySelector('.search-selector__drop-down');\n      this.findLastElement();\n      this.scrollHandler = this.checkVisible.bind(this);\n      this.scrollableParent.addEventListener('scroll', this.scrollHandler);\n      this.inputElement = parentElement.querySelector('.search-selector__input');\n      this.inputElement.value = this.searchTerm;\n      this.inputElement.focus();\n    }\n    destroySearch() {\n      if (document.getElementById(this.elementId)) {\n        window.removeEventListener('scroll', this.scrollHandler);\n      }\n    }\n    toggleShowPopUp() {\n      const hadSearchTerm = this.searchTerm.length > 0;\n      this.searchTerm = '';\n      this.showPopUp = !this.showPopUp;\n      if (hadSearchTerm) this.args.onLoad.perform('');\n    }\n    findLastElement() {\n      const element = Array.from(this.scrollableParent.querySelectorAll(`.search-selector__drop-down-row`)).pop();\n      return element;\n    }\n    async checkVisible() {\n      if (this.isLoading) return;\n      const element = this.findLastElement();\n      if (!element) return;\n\n      // we have already loaded more for this element\n      if (element === this.lastElement) return;\n      const scrollableParent = this.scrollableParent;\n      const screenHeight = scrollableParent.clientHeight;\n      const topOfElement = element.offsetTop;\n      const bottomOfElement = topOfElement + element.offsetHeight;\n      const topOfScreen = scrollableParent.scrollTop;\n      const bottomOfScreen = topOfScreen + screenHeight;\n      const padding = 20;\n      if (bottomOfScreen + padding > bottomOfElement) {\n        await this.renderMore.perform();\n        this.lastElement = element;\n\n        // Check again if we have rendered enough elements for our scroll position\n        (0, _runloop.next)(() => this.checkVisible());\n      }\n    }\n    keepSelectedRowVisible(selectedRowIndex) {\n      const $row = this.scrollableParent.querySelector('.search-selector__drop-down-row--' + selectedRowIndex);\n      const $container = this.scrollableParent;\n      if ($row && $container) {\n        const rowTop = $row.offsetTop;\n        const rowHeight = $row.offsetHeight;\n        const containerHeight = $container.clientHeight;\n        const containerScrollTop = $container.scrollTop;\n        if (rowTop + rowHeight > containerScrollTop + containerHeight) {\n          $container.scrollTop = rowTop + rowHeight - containerHeight;\n        } else if (rowTop < containerScrollTop) {\n          $container.scrollTop = rowTop;\n        }\n      }\n    }\n    keyup(event) {\n      // TODO: migrate this to ember-keyboard\n      if (this.isLoading) return;\n      const selectedRow = this.selectedRow;\n      switch (event.keyCode) {\n        // down arrow\n        case 38:\n          if (selectedRow > 0) {\n            const newSelectedRow = selectedRow - 1;\n            this.selectedRow = newSelectedRow;\n            this.keepSelectedRowVisible(newSelectedRow);\n          }\n          event.preventDefault();\n          break;\n        // up arrow\n        case 40:\n          if (selectedRow + 1 < this.list.length) {\n            const newSelectedRow = selectedRow + 1;\n            this.selectedRow = newSelectedRow;\n            this.keepSelectedRowVisible(newSelectedRow);\n          }\n          event.preventDefault();\n          break;\n        // enter\n        case 13:\n          this.onSelect(this.list[selectedRow]);\n          event.preventDefault();\n          break;\n        // tab\n        case 9:\n          this.selectedRow = -1;\n          break;\n        // escape\n        case 27:\n          break;\n        // any other key\n        default:\n          this.selectedRow = -1;\n          break;\n      }\n    }\n    onSelect(item) {\n      this.args.onSelect(item);\n    }\n    async runNoDataAction() {\n      await this.args.noDataAction?.(this.noDataQueryValue);\n      this.toggleShowPopUp();\n    }\n    removeSelectedItem(event) {\n      event.stopPropagation();\n      this.onSelect();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"scrollableParent\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"inputElement\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"selectedRow\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return -1;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"showPopUp\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"initList\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"initList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"destroySearch\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"destroySearch\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleShowPopUp\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleShowPopUp\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"keyup\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"keyup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelect\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelect\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"runNoDataAction\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"runNoDataAction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeSelectedItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeSelectedItem\"), _class.prototype), _class));\n});","define(\"portal/components/select-input\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <select\n    value={{@value}}\n    class={{@class}}\n    {{on 'change' this.updateValue}}\n    ...attributes\n  >\n    {{yield (hash option=(component 'select-input/option' selectedValue=@value))}}\n  </select>\n  */\n  {\n    \"id\": \"hDpo9gxY\",\n    \"block\": \"[[[11,\\\"select\\\"],[16,2,[30,1]],[16,0,[30,2]],[17,3],[4,[38,1],[\\\"change\\\",[30,0,[\\\"updateValue\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[18,4,[[28,[37,3],null,[[\\\"option\\\"],[[50,\\\"select-input/option\\\",0,null,[[\\\"selectedValue\\\"],[[30,1]]]]]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"@value\\\",\\\"@class\\\",\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"select\\\",\\\"on\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\"]]\",\n    \"moduleName\": \"portal/components/select-input.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"updateValue\", e => {\n        if (!this.args.action) return;\n        const value = e.target.value;\n        const [, type, id] = value.match(/<model::([^:]+):([^>]+)>/) || [];\n        if (type && id) {\n          this.args.action(this.store.peekRecord(type, id));\n        } else if (typeof this.args.value === 'number') {\n          this.args.action(Number(value));\n        } else if (typeof this.args.value === 'boolean') {\n          this.args.action(value === 'true');\n        } else {\n          this.args.action(value);\n        }\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class));\n});","define(\"portal/components/select-input/option\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <option\n    value={{this.value}}\n    selected={{eq this.selectedValue this.value}}\n    ...attributes\n  >\n    {{yield}}\n  </option>\n  */\n  {\n    \"id\": \"HHNlKofz\",\n    \"block\": \"[[[11,\\\"option\\\"],[16,2,[30,0,[\\\"value\\\"]]],[16,\\\"selected\\\",[28,[37,1],[[30,0,[\\\"selectedValue\\\"]],[30,0,[\\\"value\\\"]]],null]],[17,1],[12],[1,\\\"\\\\n  \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"&default\\\"],false,[\\\"option\\\",\\\"eq\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/select-input/option.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {\n    get value() {\n      return this.args.value ?? String(this.args.value);\n    }\n    get selectedValue() {\n      return this.args.selectedValue ?? String(this.args.selectedValue);\n    }\n  });\n});","define(\"portal/components/sidebar\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='bg-light border-end sidebar__container\n      {{if this.isCollapsed \"sidebar__container--collapsed\"}}'\n  >\n    <div class='d-flex flex-column flex-shrink-0 p-3 sidebar__sticky'>\n      <ul class='nav nav-pills flex-column'>\n        {{yield\n          (hash\n            Title=(component 'sidebar/title' isCollapsed=this.isCollapsed)\n            Item=(component 'sidebar/item' isCollapsed=this.isCollapsed)\n            Section=(component 'sidebar/section' isCollapsed=this.isCollapsed)\n            BackButton=(component 'sidebar/back-button')\n            EntitySelector=(component 'sidebar/entity-selector')\n            isCollapsed=this.isCollapsed\n          )\n        }}\n      </ul>\n  \n      {{#if (media 'isDesktop')}}\n        <ul class='nav nav-pills flex-column pt-3 mt-auto ms-auto'>\n          <FaIcon\n            @icon={{if this.isCollapsed 'angles-right' 'angles-left'}}\n            @size='lg'\n            class='text-secondary'\n            role='button'\n            {{on 'click' this.toggleCollapsed}}\n            data-test-sidebar-collapse-button\n          />\n        </ul>\n      {{/if}}\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"0UeQ0f9a\",\n    \"block\": \"[[[10,0],[15,0,[29,[\\\"bg-light border-end sidebar__container\\\\n    \\\",[52,[30,0,[\\\"isCollapsed\\\"]],\\\"sidebar__container--collapsed\\\"]]]],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-shrink-0 p-3 sidebar__sticky\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"ul\\\"],[14,0,\\\"nav nav-pills flex-column\\\"],[12],[1,\\\"\\\\n      \\\"],[18,1,[[28,[37,4],null,[[\\\"Title\\\",\\\"Item\\\",\\\"Section\\\",\\\"BackButton\\\",\\\"EntitySelector\\\",\\\"isCollapsed\\\"],[[50,\\\"sidebar/title\\\",0,null,[[\\\"isCollapsed\\\"],[[30,0,[\\\"isCollapsed\\\"]]]]],[50,\\\"sidebar/item\\\",0,null,[[\\\"isCollapsed\\\"],[[30,0,[\\\"isCollapsed\\\"]]]]],[50,\\\"sidebar/section\\\",0,null,[[\\\"isCollapsed\\\"],[[30,0,[\\\"isCollapsed\\\"]]]]],[50,\\\"sidebar/back-button\\\",0,null,null],[50,\\\"sidebar/entity-selector\\\",0,null,null],[30,0,[\\\"isCollapsed\\\"]]]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"ul\\\"],[14,0,\\\"nav nav-pills flex-column pt-3 mt-auto ms-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],[[24,0,\\\"text-secondary\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"data-test-sidebar-collapse-button\\\",\\\"\\\"],[4,[38,8],[\\\"click\\\",[30,0,[\\\"toggleCollapsed\\\"]]],null]],[[\\\"@icon\\\",\\\"@size\\\"],[[52,[30,0,[\\\"isCollapsed\\\"]],\\\"angles-right\\\",\\\"angles-left\\\"],\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"ul\\\",\\\"yield\\\",\\\"hash\\\",\\\"component\\\",\\\"media\\\",\\\"fa-icon\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/sidebar.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"isCollapsed\", _descriptor, this);\n    }\n    toggleCollapsed() {\n      this.isCollapsed = !this.isCollapsed;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isCollapsed\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"toggleCollapsed\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleCollapsed\"), _class.prototype), _class));\n});","define(\"portal/components/sidebar/back-button\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <div class='my-2 fs-4' data-test-sidebar-back-button>\n      <div {{on 'click' this.goBack}} role='button'>\n        <FaIcon @icon='arrow-left' />&nbsp;&nbsp;{{@buttonText}}\n      </div>\n    </div>\n  {{/unless}}\n  */\n  {\n    \"id\": \"+0XWzJLB\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"my-2 fs-4\\\"],[14,\\\"data-test-sidebar-back-button\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"goBack\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"arrow-left\\\"]],null],[1,\\\"  \\\"],[1,[30,1]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@buttonText\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"div\\\",\\\"on\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/sidebar/back-button.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"media\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"mobileMenu\", _descriptor3, this);\n    }\n    goBack() {\n      this.mobileMenu.closeMenu();\n      this.router.transitionTo(this.args.route);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"media\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"mobileMenu\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"goBack\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goBack\"), _class.prototype), _class));\n});","define(\"portal/components/sidebar/entity-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='my-2 x-select ember-view form-control select-box d-block position-relative text-truncate'\n    {{on 'click' this.closeMobileMenu}}\n  >\n    {{this.sessionData.entity.name}}\n    {{#if this.orgSelectorOpen}}\n      <EntitySelector @onClose={{fn (mut this.orgSelectorOpen) false}} />\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"oGf3ijsc\",\n    \"block\": \"[[[11,0],[24,0,\\\"my-2 x-select ember-view form-control select-box d-block position-relative text-truncate\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"closeMobileMenu\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"orgSelectorOpen\\\"]],[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@onClose\\\"],[[28,[37,4],[[28,[37,5],[[30,0,[\\\"orgSelectorOpen\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[13]],[],false,[\\\"div\\\",\\\"on\\\",\\\"if\\\",\\\"entity-selector\\\",\\\"fn\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"portal/components/sidebar/entity-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"mobileMenu\", _descriptor2, this);\n      _initializerDefineProperty(this, \"orgSelectorOpen\", _descriptor3, this);\n    }\n    changeEntity({\n      id\n    }) {\n      this.sessionData.changeEntity(id);\n    }\n    closeMobileMenu() {\n      this.orgSelectorOpen = true;\n      this.mobileMenu.closeMenu();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"mobileMenu\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"orgSelectorOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"changeEntity\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeEntity\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeMobileMenu\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMobileMenu\"), _class.prototype), _class));\n});","define(\"portal/components/sidebar/item\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <li\n    class='nav-item text-nowrap'\n    data-test-sidebar-item-is-collapsed='{{@isCollapsed}}'\n    data-test-sidebar-item\n  >\n    {{#if @isCollapsed}}\n      {{#if @href}}\n        <a\n          href={{@href}}\n          target='_blank'\n          rel='noopener noreferrer'\n          draggable={{false}}\n          class='nav-link link-secondary text-center\n            {{unless (media \"isDesktop\") \"mt-2 fs-4 py-2\"}}'\n          {{bootstrap-tooltip @title}}\n          data-bs-placement='right'\n        >\n          {{#if @icon}}\n            <FaIcon @icon={{@icon}} @fixedWidth={{true}} @size='lg' />\n          {{else}}\n            <span class='fs-3 text-uppercase'>{{this.displayWords}}</span>\n          {{/if}}\n  \n          {{#if @sup}}\n            <sup>{{@sup}}</sup>\n          {{/if}}\n        </a>\n      {{else if @model}}\n        <LinkTo\n          @route={{@route}}\n          @model={{@model}}\n          draggable={{false}}\n          class='nav-link link-secondary text-center\n            {{unless (media \"isDesktop\") \"mt-2 fs-4 py-2\"}}'\n          data-bs-placement='right'\n          {{bootstrap-tooltip @title}}\n        >\n          {{#if @icon}}\n            <FaIcon @icon={{@icon}} @fixedWidth={{true}} @size='lg' />\n          {{else}}\n            <span class='fs-3 text-uppercase'>{{this.displayWords}}</span>\n          {{/if}}\n  \n          {{#if @sup}}\n            <sup>{{@sup}}</sup>\n          {{/if}}\n        </LinkTo>\n      {{else}}\n        <LinkTo\n          @route={{@route}}\n          class='nav-link link-secondary text-center\n            {{unless (media \"isDesktop\") \"mt-2 fs-4 py-2\"}}'\n          draggable={{false}}\n          data-bs-placement='right'\n          {{bootstrap-tooltip @title}}\n        >\n          {{#if @icon}}\n            <FaIcon @icon={{@icon}} @fixedWidth={{true}} @size='lg' />\n          {{else}}\n            <span class='fs-3 text-uppercase'>{{this.displayWords}}</span>\n          {{/if}}\n  \n          {{#if @sup}}\n            <sup>{{@sup}}</sup>\n          {{/if}}\n        </LinkTo>\n      {{/if}}\n    {{else}}\n      {{#if @href}}\n        <a\n          href={{@href}}\n          target='_blank'\n          class='nav-link link-secondary\n            {{unless (media \"isDesktop\") \"mt-2 fs-4 py-2\"}}'\n          rel='noopener noreferrer'\n          {{on 'click' this.closeMobileMenu}}\n        >\n          {{#if @icon}}<FaIcon\n              @icon={{@icon}}\n              @fixedWidth={{true}}\n            />&nbsp;&nbsp;{{/if}}{{@title}}\n          {{#if @sup}}\n            <sup>{{@sup}}</sup>\n          {{/if}}\n        </a>\n      {{else if @model}}\n        <LinkTo\n          @route={{@route}}\n          @model={{@model}}\n          class='nav-link link-secondary\n            {{unless (media \"isDesktop\") \"mt-2 fs-4 py-2\"}}'\n          draggable={{false}}\n          {{on 'click' this.closeMobileMenu}}\n        >\n          {{#if @icon}}<FaIcon\n              @icon={{@icon}}\n              @fixedWidth={{true}}\n            />&nbsp;&nbsp;{{/if}}{{@title}}\n          {{#if @sup}}\n            <sup>{{@sup}}</sup>\n          {{/if}}\n        </LinkTo>\n      {{else}}\n        <LinkTo\n          @route={{@route}}\n          class='nav-link link-secondary\n            {{unless (media \"isDesktop\") \"mt-2 fs-4 py-2\"}}'\n          draggable={{false}}\n          {{on 'click' this.closeMobileMenu}}\n        >\n          {{#if @icon}}<FaIcon\n              @icon={{@icon}}\n              @fixedWidth={{true}}\n            />&nbsp;&nbsp;{{/if}}{{@title}}\n          {{#if @sup}}\n            <sup>{{@sup}}</sup>\n          {{/if}}\n        </LinkTo>\n      {{/if}}\n    {{/if}}\n  </li>\n  */\n  {\n    \"id\": \"B1WnJ3a8\",\n    \"block\": \"[[[10,\\\"li\\\"],[14,0,\\\"nav-item text-nowrap\\\"],[15,\\\"data-test-sidebar-item-is-collapsed\\\",[29,[[30,1]]]],[14,\\\"data-test-sidebar-item\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1],[[[41,[30,2],[[[1,\\\"      \\\"],[11,3],[16,6,[30,2]],[24,\\\"target\\\",\\\"_blank\\\"],[24,\\\"rel\\\",\\\"noopener noreferrer\\\"],[16,\\\"draggable\\\",false],[16,0,[29,[\\\"nav-link link-secondary text-center\\\\n          \\\",[52,[51,[28,[37,4],[\\\"isDesktop\\\"],null]],\\\"mt-2 fs-4 py-2\\\"]]]],[24,\\\"data-bs-placement\\\",\\\"right\\\"],[4,[38,5],[[30,3]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[[30,4],true,\\\"lg\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"fs-3 text-uppercase\\\"],[12],[1,[30,0,[\\\"displayWords\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,5],[[[1,\\\"          \\\"],[10,\\\"sup\\\"],[12],[1,[30,5]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,6],[[[1,\\\"      \\\"],[8,[39,9],[[16,\\\"draggable\\\",false],[16,0,[29,[\\\"nav-link link-secondary text-center\\\\n          \\\",[52,[51,[28,[37,4],[\\\"isDesktop\\\"],null]],\\\"mt-2 fs-4 py-2\\\"]]]],[24,\\\"data-bs-placement\\\",\\\"right\\\"],[4,[38,5],[[30,3]],null]],[[\\\"@route\\\",\\\"@model\\\"],[[30,7],[30,6]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[[30,4],true,\\\"lg\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"fs-3 text-uppercase\\\"],[12],[1,[30,0,[\\\"displayWords\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,5],[[[1,\\\"          \\\"],[10,\\\"sup\\\"],[12],[1,[30,5]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,9],[[16,0,[29,[\\\"nav-link link-secondary text-center\\\\n          \\\",[52,[51,[28,[37,4],[\\\"isDesktop\\\"],null]],\\\"mt-2 fs-4 py-2\\\"]]]],[16,\\\"draggable\\\",false],[24,\\\"data-bs-placement\\\",\\\"right\\\"],[4,[38,5],[[30,3]],null]],[[\\\"@route\\\"],[[30,7]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\"          \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[[30,4],true,\\\"lg\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"fs-3 text-uppercase\\\"],[12],[1,[30,0,[\\\"displayWords\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,5],[[[1,\\\"          \\\"],[10,\\\"sup\\\"],[12],[1,[30,5]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[]]]],[]]]],[]],[[[41,[30,2],[[[1,\\\"      \\\"],[11,3],[16,6,[30,2]],[24,\\\"target\\\",\\\"_blank\\\"],[16,0,[29,[\\\"nav-link link-secondary\\\\n          \\\",[52,[51,[28,[37,4],[\\\"isDesktop\\\"],null]],\\\"mt-2 fs-4 py-2\\\"]]]],[24,\\\"rel\\\",\\\"noopener noreferrer\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeMobileMenu\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[41,[30,4],[[[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[30,4],true]],null],[1,\\\"  \\\"]],[]],null],[1,[30,3]],[1,\\\"\\\\n\\\"],[41,[30,5],[[[1,\\\"          \\\"],[10,\\\"sup\\\"],[12],[1,[30,5]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,6],[[[1,\\\"      \\\"],[8,[39,9],[[16,0,[29,[\\\"nav-link link-secondary\\\\n          \\\",[52,[51,[28,[37,4],[\\\"isDesktop\\\"],null]],\\\"mt-2 fs-4 py-2\\\"]]]],[16,\\\"draggable\\\",false],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeMobileMenu\\\"]]],null]],[[\\\"@route\\\",\\\"@model\\\"],[[30,7],[30,6]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[41,[30,4],[[[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[30,4],true]],null],[1,\\\"  \\\"]],[]],null],[1,[30,3]],[1,\\\"\\\\n\\\"],[41,[30,5],[[[1,\\\"          \\\"],[10,\\\"sup\\\"],[12],[1,[30,5]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,9],[[16,0,[29,[\\\"nav-link link-secondary\\\\n          \\\",[52,[51,[28,[37,4],[\\\"isDesktop\\\"],null]],\\\"mt-2 fs-4 py-2\\\"]]]],[16,\\\"draggable\\\",false],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeMobileMenu\\\"]]],null]],[[\\\"@route\\\"],[[30,7]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[41,[30,4],[[[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[30,4],true]],null],[1,\\\"  \\\"]],[]],null],[1,[30,3]],[1,\\\"\\\\n\\\"],[41,[30,5],[[[1,\\\"          \\\"],[10,\\\"sup\\\"],[12],[1,[30,5]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"]],[]]]],[]]]],[]]],[13]],[\\\"@isCollapsed\\\",\\\"@href\\\",\\\"@title\\\",\\\"@icon\\\",\\\"@sup\\\",\\\"@model\\\",\\\"@route\\\"],false,[\\\"li\\\",\\\"if\\\",\\\"a\\\",\\\"unless\\\",\\\"media\\\",\\\"bootstrap-tooltip\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"sup\\\",\\\"link-to\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/sidebar/item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"mobileMenu\", _descriptor, this);\n      _initializerDefineProperty(this, \"media\", _descriptor2, this);\n    }\n    get displayWords() {\n      const words = this.args.title.split(' ');\n\n      // take the first two characters of the word\n      if (words.length === 1) return words[0].slice(0, 2);\n\n      // take the first characters from the first and last word\n      return `${words[0][0]}${words[words.length - 1][0]}`;\n    }\n    closeMobileMenu() {\n      if (!this.media.isDesktop) this.mobileMenu.closeMenu();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"mobileMenu\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"media\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"closeMobileMenu\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMobileMenu\"), _class.prototype), _class));\n});","define(\"portal/components/sidebar/section\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='text-uppercase text-secondary mx-3 mb-2 mt-3\n      {{unless (media \"isDesktop\") \"fs-4 \"}}'\n    data-test-sidebar-title\n  >\n    {{#if @isCollapsed}}\n      &nbsp;\n    {{else}}\n      {{#if (media 'isDesktop')}}\n        <div class='d-flex flex-column'>\n          <div class='text-truncate' style='max-width: 170px;'>\n            {{@title}}\n          </div>\n        </div>\n      {{else}}\n        <div\n          class='d-flex align-items-center'\n          role='button'\n          {{on\n            'click'\n            (fn\n              (mut this.showCollapsibleSection) (not this.showCollapsibleSection)\n            )\n          }}\n        >\n          <div class='d-flex flex-grow-1 justify-content-between'>\n            <div>\n              {{@title}}\n            </div>\n            <div>\n              <FaIcon\n                @icon={{if\n                  this.showCollapsibleSection\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </div>\n          </div>\n        </div>\n      {{/if}}\n    {{/if}}\n  </div>\n  \n  {{#if this.showCollapsibleSection}}\n    {{yield}}\n  {{/if}}\n  */\n  {\n    \"id\": \"A0eHPFP5\",\n    \"block\": \"[[[10,0],[15,0,[29,[\\\"text-uppercase text-secondary mx-3 mb-2 mt-3\\\\n    \\\",[52,[51,[28,[37,2],[\\\"isDesktop\\\"],null]],\\\"fs-4 \\\"]]]],[14,\\\"data-test-sidebar-title\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\"     \\\\n\\\"]],[]],[[[41,[28,[37,2],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"text-truncate\\\"],[14,5,\\\"max-width: 170px;\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,2]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[11,0],[24,0,\\\"d-flex align-items-center\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[28,[37,6],[[30,0,[\\\"showCollapsibleSection\\\"]]],null],[28,[37,7],[[30,0,[\\\"showCollapsibleSection\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 justify-content-between\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[1,[30,2]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showCollapsibleSection\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showCollapsibleSection\\\"]],[[[1,\\\"  \\\"],[18,3,null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@isCollapsed\\\",\\\"@title\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"unless\\\",\\\"media\\\",\\\"if\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"fa-icon\\\",\\\"yield\\\"]]\",\n    \"moduleName\": \"portal/components/sidebar/section.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"media\", _descriptor, this);\n      _initializerDefineProperty(this, \"mobileMenu\", _descriptor2, this);\n      _initializerDefineProperty(this, \"showCollapsibleSection\", _descriptor3, this);\n    }\n    closeMobileMenu() {\n      if (!this.media.isDesktop) this.mobileMenu.closeMenu();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"media\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"mobileMenu\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"showCollapsibleSection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.media.isDesktop;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"closeMobileMenu\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMobileMenu\"), _class.prototype), _class));\n});","define(\"portal/components/sidebar/title\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='text-uppercase text-secondary mx-3 mb-2 mt-4\n      {{unless (media \"isDesktop\") \"fs-4 \"}}'\n    data-test-sidebar-title-is-collapsed='{{@isCollapsed}}'\n    data-test-sidebar-title\n  >\n    {{#if @isCollapsed}}\n      &nbsp;\n    {{else}}\n      <div class='d-flex flex-column'>\n        <div class='text-truncate' style='max-width: 170px;'>\n          {{@title}}\n        </div>\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"ihhCZLxd\",\n    \"block\": \"[[[10,0],[15,0,[29,[\\\"text-uppercase text-secondary mx-3 mb-2 mt-4\\\\n    \\\",[52,[51,[28,[37,2],[\\\"isDesktop\\\"],null]],\\\"fs-4 \\\"]]]],[15,\\\"data-test-sidebar-title-is-collapsed\\\",[29,[[30,1]]]],[14,\\\"data-test-sidebar-title\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\"     \\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"text-truncate\\\"],[14,5,\\\"max-width: 170px;\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,2]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"@isCollapsed\\\",\\\"@title\\\"],false,[\\\"div\\\",\\\"unless\\\",\\\"media\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"portal/components/sidebar/title.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/skeleton-screens/table\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <table class='table table-bordered skeleton-screens-table'>\n    <thead class='table-light'>\n      <tr>\n        {{! template-lint-disable no-unused-block-params }}\n        {{#each this.columns as |col|}}\n          <th>\n            <div class='skeleton-screens-table__line'></div>\n          </th>\n        {{/each}}\n      </tr>\n    </thead>\n    <tbody>\n      {{! template-lint-disable no-unused-block-params }}\n      {{#each this.rows as |row|}}\n        <tr>\n          {{#each this.columns as |col|}}\n            <td>\n              <div class='skeleton-screens-table__line'></div>\n            </td>\n          {{/each}}\n        </tr>\n      {{/each}}\n    </tbody>\n  </table>\n  */\n  {\n    \"id\": \"P0CKq2qt\",\n    \"block\": \"[[[10,\\\"table\\\"],[14,0,\\\"table table-bordered skeleton-screens-table\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"thead\\\"],[14,0,\\\"table-light\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"columns\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"skeleton-screens-table__line\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"rows\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"columns\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"skeleton-screens-table__line\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"col\\\",\\\"row\\\",\\\"col\\\"],false,[\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"div\\\",\\\"tbody\\\",\\\"td\\\"]]\",\n    \"moduleName\": \"portal/components/skeleton-screens/table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"columns\", _descriptor, this);\n      _initializerDefineProperty(this, \"rows\", _descriptor2, this);\n      this.columns = Array.from(new Array(this.args.columnLength), (x, i) => i + 1);\n      this.rows = Array.from(new Array(this.args.rowLength), (x, i) => i + 1);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"columns\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"rows\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _class));\n});","define(\"portal/components/sortable-list\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"jquery\", \"@ember/object\", \"portal/components/sortable-list\", \"@ember/template-factory\"], function (_exports, _component, _computed, _jquery, _object, _sortableList, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"jquery\",0,\"@ember/object\",0,\"portal/components/sortable-list\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#each this.sortedContent as |item|}}\n    {{#if this.hasBlock}}\n      {{yield item}}\n    {{else}}\n      <li data-id={{item.id}}>{{get item this.property}}</li>\n    {{/if}}\n  {{/each}}\n  */\n  {\n    \"id\": \"JdfstljS\",\n    \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"sortedContent\\\"]]],null]],null],null,[[[41,[30,0,[\\\"hasBlock\\\"]],[[[1,\\\"    \\\"],[18,2,[[30,1]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"li\\\"],[15,\\\"data-id\\\",[30,1,[\\\"id\\\"]]],[12],[1,[28,[35,5],[[30,1],[30,0,[\\\"property\\\"]]],null]],[13],[1,\\\"\\\\n\\\"]],[]]]],[1]],null]],[\\\"item\\\",\\\"&default\\\"],false,[\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"yield\\\",\\\"li\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/components/sortable-list.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    layout: _sortableList.default,\n    tagName: 'ol',\n    classNames: ['sortable-list'],\n    content: null,\n    property: 'value',\n    index: 'sortIndex',\n    sortBy: (0, _object.computed)('index', function () {\n      return [(0, _object.get)(this, 'index')];\n    }),\n    // caution: array computed macros were removed in ember 4\n    sortedContent: (0, _computed.sort)('content', 'sortBy'),\n    sort() {\n      // scope the jquery find operation to the native element\n      (0, _jquery.default)(this.element).find('li').each((index, li) => {\n        const id = (0, _jquery.default)(li).attr('data-id');\n        const item = (0, _object.get)(this, 'content').findBy('id', id);\n        if (item) {\n          (0, _object.set)(item, 'sortIndex', index);\n        }\n      });\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      (0, _jquery.default)(this.element).nativeSortable({\n        animation: 250,\n        onSort: () => this.sort()\n      });\n    }\n  }));\n});","define(\"portal/components/stage-payment-task-selector-row\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! template-lint-disable no-nested-interactive }}\n  <@dsl.Draggable>\n    {{#if (media 'isDesktop')}}\n      <@dsl.DragHandle>\n        <div\n          role='treeitem'\n          class='stage-payment-task-selector-row__item-row'\n          {{on 'click' this.toggleExpanded}}\n          {{on 'mouseover' (fn (mut this.showReset) true)}}\n          {{on 'mouseout' (fn (mut this.showReset) false)}}\n        >\n          <div\n            style='min-height: 33.5px;'\n            class='d-flex justify-content-between align-items-center'\n          >\n            <div class='d-flex align-items-center'>\n              <div>\n                {{#if @item.children.length}}\n                  <FaIcon\n                    @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n                    @fixedWidth={{true}}\n                  />\n                {{else}}\n                  <FaIcon @icon='minus' @fixedWidth={{true}} class='invisible' />\n                {{/if}}\n              </div>\n              <div class='mx-2'>\n                {{@item.task.name}}\n              </div>\n              {{#if this.isLinkedInOtherStages}}\n                <span class='badge bg-info' style='font-size: 11px;'>\n                  {{t\n                    'components.stage-payment-task-selector-row.In other stage'\n                  }}\n                </span>\n              {{/if}}\n              {{#if this.finishedTask}}\n                <div class='mx-2'>\n                  <FaIcon @icon='check-circle' class='text-success' />\n                </div>\n              {{/if}}\n            </div>\n            <div class='d-flex align-items-center'>\n              {{#unless @item.children.length}}\n                <div class='mx-2'>\n                  <FormattedInput\n                    @class='form-control'\n                    style='width: 75px'\n                    @format='percentage'\n                    autocomplete='off'\n                    @disabled={{@disabled}}\n                    @number={{this.completionPercentage}}\n                    @formatterOptions={{hash dashZero=false}}\n                    @update={{this.onProgressTaskUpdate}}\n                    {{on 'click' this.noop}}\n                  />\n                </div>\n              {{/unless}}\n              <div class='mx-2 d-flex align-items-center'>\n                <IndeterminateCheckbox\n                  @checked={{@item.checked}}\n                  @indeterminate={{@item.indeterminate}}\n                  @onChange={{this.selectTask}}\n                  disabled={{@disabled}}\n                  @class='md-size-checkbox m-0'\n                />\n              </div>\n              <div\n                class='mx-2\n                  {{if\n                    (and this.completionPercentageHasChanged this.showReset)\n                    \"visible\"\n                    \"invisible\"\n                  }}'\n              >\n                <FaIcon @icon='undo' role='button' {{on 'click' this.reset}} />\n              </div>\n            </div>\n          </div>\n        </div>\n      </@dsl.DragHandle>\n    {{/if}}\n    {{#if @item.expanded}}\n      <div class='ms-4'>\n        <@dsl.Children />\n        <StagePaymentTaskSelectorRow\n          @disabled={{@disabled}}\n          @currentStagePayment={{@currentStagePayment}}\n          @allStageLinkedTasks={{@allStageLinkedTasks}}\n        />\n      </div>\n    {{/if}}\n  </@dsl.Draggable>\n  */\n  {\n    \"id\": \"Vl5xTlAO\",\n    \"block\": \"[[[8,[30,1,[\\\"Draggable\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"DragHandle\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[24,0,\\\"stage-payment-task-selector-row__item-row\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[4,[38,3],[\\\"mouseover\\\",[28,[37,4],[[28,[37,5],[[30,0,[\\\"showReset\\\"]]],null],true],null]],null],[4,[38,3],[\\\"mouseout\\\",[28,[37,4],[[28,[37,5],[[30,0,[\\\"showReset\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,5,\\\"min-height: 33.5px;\\\"],[14,0,\\\"d-flex justify-content-between align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,2,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[8,[39,6],[[24,0,\\\"invisible\\\"]],[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"minus\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,2,[\\\"task\\\",\\\"name\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLinkedInOtherStages\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"badge bg-info\\\"],[14,5,\\\"font-size: 11px;\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,8],[\\\"components.stage-payment-task-selector-row.In other stage\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"finishedTask\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,6],[[24,0,\\\"text-success\\\"]],[[\\\"@icon\\\"],[\\\"check-circle\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,2,[\\\"children\\\",\\\"length\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],[[24,5,\\\"width: 75px\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@class\\\",\\\"@format\\\",\\\"@disabled\\\",\\\"@number\\\",\\\"@formatterOptions\\\",\\\"@update\\\"],[\\\"form-control\\\",\\\"percentage\\\",[30,3],[30,0,[\\\"completionPercentage\\\"]],[28,[37,11],null,[[\\\"dashZero\\\"],[false]]],[30,0,[\\\"onProgressTaskUpdate\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,0],[14,0,\\\"mx-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,12],[[16,\\\"disabled\\\",[30,3]]],[[\\\"@checked\\\",\\\"@indeterminate\\\",\\\"@onChange\\\",\\\"@class\\\"],[[30,2,[\\\"checked\\\"]],[30,2,[\\\"indeterminate\\\"]],[30,0,[\\\"selectTask\\\"]],\\\"md-size-checkbox m-0\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[15,0,[29,[\\\"mx-2\\\\n                \\\",[52,[28,[37,13],[[30,0,[\\\"completionPercentageHasChanged\\\"]],[30,0,[\\\"showReset\\\"]]],null],\\\"visible\\\",\\\"invisible\\\"]]]],[12],[1,\\\"\\\\n              \\\"],[8,[39,6],[[24,\\\"role\\\",\\\"button\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"reset\\\"]]],null]],[[\\\"@icon\\\"],[\\\"undo\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,2,[\\\"expanded\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"ms-4\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"Children\\\"]],null,null,null],[1,\\\"\\\\n      \\\"],[8,[39,14],null,[[\\\"@disabled\\\",\\\"@currentStagePayment\\\",\\\"@allStageLinkedTasks\\\"],[[30,3],[30,4],[30,5]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]]]],[\\\"@dsl\\\",\\\"@item\\\",\\\"@disabled\\\",\\\"@currentStagePayment\\\",\\\"@allStageLinkedTasks\\\"],false,[\\\"if\\\",\\\"media\\\",\\\"div\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"t\\\",\\\"unless\\\",\\\"formatted-input\\\",\\\"hash\\\",\\\"indeterminate-checkbox\\\",\\\"and\\\",\\\"stage-payment-task-selector-row\\\"]]\",\n    \"moduleName\": \"portal/components/stage-payment-task-selector-row.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class extends _component2.default {\n    toggleExpanded(event) {\n      if (!this.args.item.children.length) return;\n      this.args.item.expanded = !this.args.item.expanded;\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    get isLinkedInOtherStages() {\n      let {\n        allStageLinkedTasks,\n        currentStagePayment\n      } = this.args;\n      let taskId = this.args.item.task.id;\n      return (allStageLinkedTasks || []).some(link => link.belongsTo('task').id() === taskId && link.belongsTo('stagePayment').id() !== currentStagePayment.id);\n    }\n    noop(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    onProgressTaskUpdate(value) {\n      let percentage = value;\n      if (value > 1) percentage = 1;\n      (0, _runloop.next)(() => {\n        this.args.item.completionPercentage = percentage;\n      });\n    }\n    get completionPercentage() {\n      if (this.args.item.completionPercentage !== null) return this.args.item.completionPercentage;\n      return this.args.item.completionPercentage || this.args.item.existingCompletionPercentage || this.args.item.defaultCompletionPercentage;\n    }\n    get directTask() {\n      return this.args.item.children[0];\n    }\n    get finishedTask() {\n      const isDirect = !this.args.item.children.length;\n      const isChecked = this.args.item.checked;\n      const isCompleted = Boolean(this.args.item.progress >= this.completionPercentage);\n      return isDirect && isChecked && isCompleted;\n    }\n    reset(event) {\n      event.stopPropagation();\n      event.preventDefault();\n      (0, _runloop.next)(() => {\n        const selectTaskOnChildren = item => {\n          item.completionPercentage = null;\n          if (item.children?.length) {\n            item.children.forEach(i => selectTaskOnChildren(i));\n          }\n        };\n        selectTaskOnChildren(this.args.item);\n      });\n    }\n    get completionPercentageHasChanged() {\n      if (this.args.item.completionPercentage === null) return false;\n      return this.args.item.completionPercentage !== this.args.item.defaultCompletionPercentage || this.args.item.completionPercentage !== this.args.item.existingCompletionPercentage;\n    }\n    selectTask(event) {\n      event.stopPropagation();\n      event.preventDefault();\n      let newIsSelected = !this.args.item.selected;\n      (0, _runloop.next)(() => {\n        const selectTaskOnChildren = item => {\n          if (!item.completionPercentage && newIsSelected) item.completionPercentage = 1;\n          if (!newIsSelected) item.completionPercentage = 0;\n          if (item.children?.length) {\n            item.children.forEach(i => selectTaskOnChildren(i));\n          }\n        };\n        selectTaskOnChildren(this.args.item);\n      });\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"toggleExpanded\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleExpanded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onProgressTaskUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onProgressTaskUpdate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reset\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"reset\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectTask\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectTask\"), _class.prototype), _class));\n});","define(\"portal/components/stage-payment-task-selector\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/array\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _tracking, _service, _array, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.TaskContainer = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _class2, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/array\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content w-auto'\n    @translucentOverlay={{true}}\n    @onClose={{@onClose}}\n    @overlayClass='modal'\n  >\n    <div class='modal-header'>\n      <h3 class='modal-title'>\n        {{t 'components.stage-payment-task-selector.Select tasks'}}\n      </h3>\n    </div>\n  \n    <div class='modal-body' style='max-width: 768px'>\n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <p class='mt-0'>\n          {{t 'components.stage-payment-task-selector.selectTasksExplanation'}}\n        </p>\n        <div\n          class='bg-white border rounded stage-payment-task-selector__task-container'\n        >\n          {{#if this.taskContainers.length}}\n            <DragSortList\n              @itemComponent={{component\n                'stage-payment-task-selector-row'\n                disabled=(not @editable)\n                allStageLinkedTasks=@allStageLinkedTasks\n                currentStagePayment=@stagePayment\n              }}\n              @disableDragging={{true}}\n              @list={{this.taskContainers}}\n            />\n          {{else}}\n            <div class='mt-5 d-flex flex-column align-items-center'>\n              <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n              <p class='fs-4 mt-0 mb-3'>\n                <b>\n                  {{t 'shared.progress.thisProjectDoesNotHaveAnyTasksYet'}}\n                </b>\n              </p>\n              <LinkTo\n                @route='entity.builda-price.projects.project.tasks'\n                @model={{@project.id}}\n                class='btn btn-primary'\n              >\n                {{t 'shared.progress.Create some tasks'}}\n              </LinkTo>\n            </div>\n          {{/if}}\n        </div>\n      {{/if}}\n    </div>\n  \n    <div class='modal-footer text-right'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white text-nowrap m-1'\n        {{on 'click' @onClose}}\n        data-test-stage-payment-task-selector-cancel-button\n      >\n        {{t 'common.Cancel'}}\n      </button>\n  \n      {{#if @editable}}\n        <button\n          type='button'\n          disabled={{or this.isLoading this.isSaving}}\n          class='btn btn-primary text-nowrap m-1'\n          {{on 'click' (perform this.saveStagePaymentTasks)}}\n        >\n          {{#if this.isSaving}}\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Saving'\n            }}&hellip;\n          {{else}}\n            {{t 'common.Save'}}\n          {{/if}}\n        </button>\n      {{/if}}\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"gTJ3cuJs\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@overlayClass\\\"],[\\\"modal-content w-auto\\\",true,[30,1],\\\"modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"components.stage-payment-task-selector.Select tasks\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-body\\\"],[14,5,\\\"max-width: 768px\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.stage-payment-task-selector.selectTasksExplanation\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"bg-white border rounded stage-payment-task-selector__task-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskContainers\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,7],null,[[\\\"@itemComponent\\\",\\\"@disableDragging\\\",\\\"@list\\\"],[[50,\\\"stage-payment-task-selector-row\\\",0,null,[[\\\"disabled\\\",\\\"allStageLinkedTasks\\\",\\\"currentStagePayment\\\"],[[28,[37,9],[[30,2]],null],[30,3],[30,4]]]],true,[30,0,[\\\"taskContainers\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mt-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,10],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n            \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,3],[\\\"shared.progress.thisProjectDoesNotHaveAnyTasksYet\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,12],[[24,0,\\\"btn btn-primary\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.tasks\\\",[30,5,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,3],[\\\"shared.progress.Create some tasks\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[24,\\\"data-test-stage-payment-task-selector-cancel-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,2],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,15],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]]],null]],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"saveStagePaymentTasks\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isSaving\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,3],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onClose\\\",\\\"@editable\\\",\\\"@allStageLinkedTasks\\\",\\\"@stagePayment\\\",\\\"@project\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"p\\\",\\\"drag-sort-list\\\",\\\"component\\\",\\\"not\\\",\\\"fa-icon\\\",\\\"b\\\",\\\"link-to\\\",\\\"button\\\",\\\"on\\\",\\\"or\\\",\\\"perform\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/stage-payment-task-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  let TaskContainer = _exports.TaskContainer = (_class = class TaskContainer {\n    get isEveryChildSelected() {\n      return function checkChildren(children = []) {\n        return children.every(child => {\n          if (!child.checked) return false;\n          if (child.children?.length) return checkChildren(child.children);\n          return true;\n        });\n      }(this.children);\n    }\n    get isSomeSelected() {\n      return function checkChildren(children = []) {\n        return children.some(child => {\n          if (child.checked) return true;\n          if (child.children?.length) return checkChildren(child.children);\n          return false;\n        });\n      }(this.children);\n    }\n    get selected() {\n      if (this.completionPercentage !== null) return Boolean(this.completionPercentage);\n      return Boolean(this.completionPercentage || this.existingCompletionPercentage);\n    }\n    get checked() {\n      if (this.children?.length) return this.isEveryChildSelected;\n      return this.selected;\n    }\n    get indeterminate() {\n      if (this.checked) return false;\n      if (!this.children?.length) return false;\n      return this.isSomeSelected;\n    }\n    constructor(store, stagePayment, latestStagePaymentTasks, task, isDirect) {\n      _defineProperty(this, \"task\", void 0);\n      _defineProperty(this, \"isDirect\", false);\n      _defineProperty(this, \"progress\", 0);\n      _initializerDefineProperty(this, \"children\", _descriptor, this);\n      _initializerDefineProperty(this, \"expanded\", _descriptor2, this);\n      _initializerDefineProperty(this, \"defaultCompletionPercentage\", _descriptor3, this);\n      _initializerDefineProperty(this, \"completionPercentage\", _descriptor4, this);\n      _initializerDefineProperty(this, \"existingCompletionPercentage\", _descriptor5, this);\n      _defineProperty(this, \"largestLinkTaskToStagePayment\", void 0);\n      _defineProperty(this, \"stagePayment\", void 0);\n      _defineProperty(this, \"store\", void 0);\n      this.task = task;\n      this.store = store;\n      this.stagePayment = stagePayment;\n      this.largestLinkTaskToStagePayment = latestStagePaymentTasks?.find(spt => spt.task === this.task.id);\n      if (this.largestLinkTaskToStagePayment) {\n        this.existingCompletionPercentage = this.largestLinkTaskToStagePayment.existingCompletionPercentage || 0;\n        this.defaultCompletionPercentage = this.largestLinkTaskToStagePayment.defaultCompletionPercentage || 0;\n        this.progress = this.largestLinkTaskToStagePayment.progress;\n      }\n      this.isDirect = isDirect;\n      if (task.activeChildren?.length && !isDirect) {\n        this.children = (0, _array.A)([new TaskContainer(this.store, this.stagePayment, latestStagePaymentTasks, task, true), ...task.activeChildren.sortBy('path').map(c => new TaskContainer(this.store, this.stagePayment, latestStagePaymentTasks, c))]);\n      }\n    }\n    save() {\n      // skip saving if this is a parent task or there's no change\n      if (this.children.length || this.completionPercentage === null) return;\n      const currentStageLink = this.store.peekAll('link-task-to-stage-payment')?.toArray().find(link => link.belongsTo('task').value() === this.task && link.belongsTo('stagePayment').value() === this.stagePayment);\n      if (currentStageLink) {\n        if (this.completionPercentage === 0) {\n          // remove link if completion is zero\n          return currentStageLink.destroyRecord();\n        }\n\n        // update existing link\n        currentStageLink.completionPercentage = this.completionPercentage;\n        return currentStageLink.save();\n      }\n      if (this.completionPercentage !== 0) {\n        // create new link if it doesn't exist and completion is non-zero\n        return this.store.createRecord('link-task-to-stage-payment', {\n          task: this.task,\n          stagePayment: this.stagePayment,\n          completionPercentage: this.completionPercentage\n        }).save();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"expanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"defaultCompletionPercentage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"completionPercentage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"existingCompletionPercentage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor8, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor9, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor0, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor1, this);\n      _initializerDefineProperty(this, \"taskContainers\", _descriptor10, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor11, this);\n      _defineProperty(this, \"getProgressVersionValues\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'version',\n              op: 'EQ',\n              value: this.args.project.belongsTo('currentProgressVersion').id()\n            }]\n          };\n          const progressVersionValues = yield this.store.query('progress-version-value', {\n            filter\n          });\n          return progressVersionValues;\n        }\n      }), null, \"getProgressVersionValues\", null));\n      _defineProperty(this, \"initTaskContainers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          this.tasks = yield this.store.simpleQuery('task', {\n            project: project.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          });\n          const progressVersionValues = yield this.getProgressVersionValues.perform();\n          const groupStageLinkedTasks = this.args.allStageLinkedTasks.reduce((acc, obj1) => {\n            const existing = acc.find(item => item.task === obj1.belongsTo('task').id());\n            if (existing) {\n              existing.defaultCompletionPercentage = Math.max(existing.defaultCompletionPercentage, obj1.completionPercentage);\n            } else {\n              const match = this.args.currentStageLinkedTasks.find(obj2 => obj2.belongsTo('task').id() === obj1.belongsTo('task').id());\n              const progressValue = progressVersionValues.find(pv => pv.belongsTo('task').id() === obj1.belongsTo('task').id());\n              acc.push({\n                defaultCompletionPercentage: obj1.completionPercentage,\n                task: obj1.belongsTo('task').id(),\n                progress: progressValue?.progress || 0,\n                existingCompletionPercentage: match?.completionPercentage || 0,\n                id: obj1.id\n              });\n            }\n            return acc;\n          }, []);\n          this.taskContainers = (0, _array.A)((this.tasks || []).filter(task => !task.belongsTo('parent').value()).sortBy('path').map(task => new TaskContainer(this.store, this.args.stagePayment, groupStageLinkedTasks, task)));\n        }\n      }), null, \"initTaskContainers\", null));\n      _defineProperty(this, \"saveStagePaymentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const saveStagePaymentTasks = [];\n            (function getStagePaymentTasks(taskContainers) {\n              taskContainers.forEach(container => {\n                saveStagePaymentTasks.push(container.save());\n                if (container.children) getStagePaymentTasks(container.children);\n              });\n            })(this.taskContainers);\n            yield Promise.all(saveStagePaymentTasks);\n            yield this.getProgressVersionValues.perform();\n            this.args.onClose();\n            this.notifications.success(this.intl.t('components.stage-payment-task-selector.Successfully saved included tasks'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.stage-payment-task-selector.somethingWentWrongWhileSavingIncludedTasks'),\n              error\n            });\n          }\n        }\n      }), null, \"saveStagePaymentTasks\", null));\n      this.initTaskContainers.perform(this.args.project);\n    }\n    get isLoading() {\n      return this.initTaskContainers.isRunning;\n    }\n    get isSaving() {\n      return this.saveStagePaymentTasks.isRunning;\n    }\n  }, _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"taskContainers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"tasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2));\n});","define(\"portal/components/sticky-top\", [\"exports\", \"@ember/component\"], function (_exports, _component) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _component.default.extend({\n    classNames: ['sticky-top']\n  });\n});","define(\"portal/components/strategies-table\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/utils\", \"@ember/template-factory\"], function (_exports, _component, _object, _utils, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/utils\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <thead>\n    <tr>\n      <th width='19%'>Name</th>\n      <th width='27%' colspan='2'>Current</th>\n      <th width='27%' colspan='2'>Target\n        <span class='strategies-table__heading-helper-text'>Click figures to edit</span></th>\n      <th width='27%' colspan='2'>Difference</th>\n      <th width='0' class='text-center'><FaIcon @icon='trash' /></th>\n    </tr>\n    <tr class='data-table__subheading-row'>\n      <th></th>\n      <th width='13.5%'>Month</th>\n      <th width='13.5%'>YTD</th>\n      <th width='13.5%'>Month</th>\n      <th width='13.5%'>YTD</th>\n      <th width='13.5%'>Month</th>\n      <th width='13.5%'>YTD</th>\n      <th></th>\n    </tr>\n  </thead>\n  \n  <tbody>\n    {{#each this.targets as |target|}}\n      <tr>\n        <td\n          class='strategies-table__target-name\n            {{if\n              target.hasBreakdown\n              \"strategies-table__target-name--has-breakdown\"\n            }}\n            {{if\n              target.breakdown.length\n              \"strategies-table__target-name--breakdown-not-empty\"\n            }}\n            '\n        >\n          {{#if target.hasBreakdown}}\n            <a class='link' {{action 'toggleBreakdownVisibility' target}}>\n              {{#if target.hasBreakdown}}\n                <FaIcon\n                  @icon={{if target.showBreakdown 'angle-down' 'angle-right'}}\n                />\n              {{/if}}\n              <span>{{target.name}}</span>\n            </a>\n          {{else}}\n            {{target.name}}\n          {{/if}}\n        </td>\n  \n        <td class='text-right' colspan='{{if target.showYtd 1 2}}'>\n          {{#if (eq target.metric.format 'CURRENCY')}}\n            {{number-format\n              target.monthActual\n              maximumFractionDigits=0\n              dashZero=true\n            }}\n          {{else}}\n            {{number-format\n              target.monthActual\n              style=(get this.formattedStyle target.metric.format)\n              dashZero=true\n              maximumFractionDigits=0\n            }}\n          {{/if}}\n        </td>\n  \n        {{#if target.showYtd}}\n          <td class='text-right'>\n            {{#if (eq target.metric.format 'CURRENCY')}}\n              {{number-format\n                target.ytdActual\n                dashZero=true\n                maximumFractionDigits=0\n              }}\n            {{else}}\n              {{number-format\n                target.ytdActual\n                style=(get this.formattedStyle target.metric.format)\n                dashZero=true\n                maximumFractionDigits=0\n              }}\n            {{/if}}\n          </td>\n        {{/if}}\n  \n        <td colspan='{{if target.showYtd 1 2}}'>\n          <FormattedInput\n            @class='data-table__cell-cover text-input text-right'\n            @number={{target.monthTarget}}\n            @format={{target.metric.format}}\n            @update={{fn (mut target.monthTarget)}}\n          />\n        </td>\n  \n        {{#if target.showYtd}}\n          <td>\n            <FormattedInput\n              @class='data-table__cell-cover text-input text-right'\n              @number={{target.ytdTarget}}\n              @format={{target.metric.format}}\n              @update={{fn (mut target.ytdTarget)}}\n            />\n          </td>\n        {{/if}}\n  \n        <td class='text-right' colspan='{{if target.showYtd 1 2}}'>\n          {{#unless (eq target.monthDifference null)}}\n            <ValueChangeIndicator\n              @difference={{target.monthDifference}}\n              @useColor={{target.isBalanceTarget}}\n              @increaseIsGood={{target.increaseIsGood}}\n            />\n            {{#if (eq target.metric.format 'CURRENCY')}}\n              {{number-format\n                target.monthDifference\n                dashZero=true\n                maximumFractionDigits=0\n              }}\n            {{else}}\n              {{number-format\n                target.monthDifference\n                style=(get this.formattedStyle target.metric.format)\n                dashZero=true\n                maximumFractionDigits=0\n              }}\n            {{/if}}\n          {{/unless}}\n        </td>\n  \n        {{#if target.showYtd}}\n          <td class='text-right'>\n            {{#unless (eq target.ytdDifference null)}}\n              <ValueChangeIndicator\n                @difference={{target.ytdDifference}}\n                @useColor={{target.isBalanceTarget}}\n                @increaseIsGood={{target.increaseIsGood}}\n              />\n              {{#if (eq target.metric.format 'CURRENCY')}}\n                {{number-format\n                  target.ytdDifference\n                  dashZero=true\n                  maximumFractionDigits=0\n                }}\n              {{else}}\n                {{number-format\n                  target.ytdDifference\n                  style=(get this.formattedStyle target.metric.format)\n                  dashZero=true\n                  maximumFractionDigits=0\n                }}\n              {{/if}}\n            {{/unless}}\n          </td>\n        {{/if}}\n  \n        <td class='text-center'>\n          <button\n            class='text-button text-button--plain data-table__cell-cover'\n            type='button'\n            {{action this.removeTarget target}}\n          ><FaIcon @icon='times' /></button>\n        </td>\n      </tr>\n  \n      {{#if (and target.hasBreakdown target.showBreakdown)}}\n        <tr>\n          <td\n            class='strategies-table__strategy-breakdown'\n            colspan='{{if target.showYtd 8 5}}'\n          >\n            <table class='data-table strategy-breakdown-table'>\n              <thead>\n                <tr class='data-table__subheading-row'>\n                  <th width='40%'>Description</th>\n                  <th width='10%'>Month value</th>\n                  <th width='10%'>YTD value</th>\n                  <th width='10%'>Percent complete</th>\n                  <th width='10%'>Assignee</th>\n                  <th width='10%'>Target date</th>\n                  <th width='10%'>Status</th>\n                  <th width='0' class='text-center'><FaIcon @icon='trash' /></th>\n                </tr>\n              </thead>\n              {{#each target.breakdown as |breakdownLine|}}\n                <tr>\n                  <td><Input\n                      class='text-input data-table__cell-cover'\n                      @value={{breakdownLine.description}}\n                    /></td>\n                  <td><Input\n                      class='text-input data-table__cell-cover'\n                      @value={{breakdownLine.monthValue}}\n                    /></td>\n                  <td><Input\n                      class='text-input data-table__cell-cover'\n                      @value={{breakdownLine.ytdValue}}\n                    /></td>\n                  <td><Input\n                      class='text-input data-table__cell-cover'\n                      @value={{breakdownLine.targetPercentage}}\n                    /></td>\n                  <td><Input\n                      class='text-input data-table__cell-cover'\n                      @value={{breakdownLine.personResponsible}}\n                    /></td>\n                  <td><Input\n                      class='text-input data-table__cell-cover'\n                      @value={{breakdownLine.targetDate}}\n                    /></td>\n                  <td><Input\n                      class='text-input data-table__cell-cover'\n                      @value={{breakdownLine.status}}\n                    /></td>\n                  <td class='text-center'>\n                    <button\n                      class='text-button text-button--plain data-table__cell-cover'\n                      type='button'\n                      {{action 'removeBreakdownLine' target breakdownLine}}\n                    >\n                      <FaIcon @icon='times' />\n                    </button>\n                    &nbsp;\n                    {{! prevents row height collapse }}\n                  </td>\n                </tr>\n              {{/each}}\n            </table>\n  \n            <div class='strategies-table__breakdown-actions'>\n              <button\n                class='text-button text-button--add'\n                type='button'\n                {{action 'addBreakdownLine' target}}\n              >Add New Strategic Component</button>\n            </div>\n          </td>\n        </tr>\n      {{/if}}\n    {{else}}\n      <tr>\n        <td colspan='8' class='placeholder-text text-center'>\n          <p>There aren't any targets set for this period yet.</p>\n        </td>\n      </tr>\n    {{/each}}\n  </tbody>\n  \n  {{#if this.addTarget}}\n    <tfoot>\n      <tr>\n        <td colspan='8' class='text-center'>\n          {{! TODO this is broken }}\n          {{!-- {{ember-select-guru\n            class=\"inline\"\n            placeholder='Click to select a new metric…'\n            options=metrics\n            value=value\n            onSelect=(action addTarget)}} --}}\n          <PowerSelect\n            @tagName='div'\n            class='inline'\n            @options={{this.metrics}}\n            @selected={{this.value}}\n            @searchEnabled={{true}}\n            @placeholder='Click to select a new metric…'\n            @searchField='name'\n            @onChange={{action this.addTarget}}\n            as |metric|\n          >\n            {{metric.name}}\n          </PowerSelect>\n        </td>\n      </tr>\n    </tfoot>\n  {{/if}}\n  */\n  {\n    \"id\": \"OOToNvw1\",\n    \"block\": \"[[[10,\\\"thead\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"19%\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"27%\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Current\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"27%\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Target\\\\n      \\\"],[10,1],[14,0,\\\"strategies-table__heading-helper-text\\\"],[12],[1,\\\"Click figures to edit\\\"],[13],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"27%\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Difference\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"0\\\"],[14,0,\\\"text-center\\\"],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"13.5%\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"13.5%\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"13.5%\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"13.5%\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"13.5%\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"13.5%\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"targets\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"strategies-table__target-name\\\\n          \\\",[52,[30,1,[\\\"hasBreakdown\\\"]],\\\"strategies-table__target-name--has-breakdown\\\"],\\\"\\\\n          \\\",[52,[30,1,[\\\"breakdown\\\",\\\"length\\\"]],\\\"strategies-table__target-name--breakdown-not-empty\\\"],\\\"\\\\n          \\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"hasBreakdown\\\"]],[[[1,\\\"          \\\"],[11,3],[24,0,\\\"link\\\"],[4,[38,11],[[30,0],\\\"toggleBreakdownVisibility\\\",[30,1]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"hasBreakdown\\\"]],[[[1,\\\"              \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[[52,[30,1,[\\\"showBreakdown\\\"]],\\\"angle-down\\\",\\\"angle-right\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,1],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[15,\\\"colspan\\\",[29,[[52,[30,1,[\\\"showYtd\\\"]],1,2]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,1,[\\\"metric\\\",\\\"format\\\"]],\\\"CURRENCY\\\"],null],[[[1,\\\"          \\\"],[1,[28,[35,13],[[30,1,[\\\"monthActual\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,13],[[30,1,[\\\"monthActual\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[[28,[37,14],[[30,0,[\\\"formattedStyle\\\"]],[30,1,[\\\"metric\\\",\\\"format\\\"]]],null],true,0]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"showYtd\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,1,[\\\"metric\\\",\\\"format\\\"]],\\\"CURRENCY\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,13],[[30,1,[\\\"ytdActual\\\"]]],[[\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[true,0]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,13],[[30,1,[\\\"ytdActual\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[[28,[37,14],[[30,0,[\\\"formattedStyle\\\"]],[30,1,[\\\"metric\\\",\\\"format\\\"]]],null],true,0]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[29,[[52,[30,1,[\\\"showYtd\\\"]],1,2]]]],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@class\\\",\\\"@number\\\",\\\"@format\\\",\\\"@update\\\"],[\\\"data-table__cell-cover text-input text-right\\\",[30,1,[\\\"monthTarget\\\"]],[30,1,[\\\"metric\\\",\\\"format\\\"]],[28,[37,16],[[28,[37,17],[[30,1,[\\\"monthTarget\\\"]]],null]],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"showYtd\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],null,[[\\\"@class\\\",\\\"@number\\\",\\\"@format\\\",\\\"@update\\\"],[\\\"data-table__cell-cover text-input text-right\\\",[30,1,[\\\"ytdTarget\\\"]],[30,1,[\\\"metric\\\",\\\"format\\\"]],[28,[37,16],[[28,[37,17],[[30,1,[\\\"ytdTarget\\\"]]],null]],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[15,\\\"colspan\\\",[29,[[52,[30,1,[\\\"showYtd\\\"]],1,2]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,12],[[30,1,[\\\"monthDifference\\\"]],null],null]],[[[1,\\\"          \\\"],[8,[39,19],null,[[\\\"@difference\\\",\\\"@useColor\\\",\\\"@increaseIsGood\\\"],[[30,1,[\\\"monthDifference\\\"]],[30,1,[\\\"isBalanceTarget\\\"]],[30,1,[\\\"increaseIsGood\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,1,[\\\"metric\\\",\\\"format\\\"]],\\\"CURRENCY\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,13],[[30,1,[\\\"monthDifference\\\"]]],[[\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[true,0]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,13],[[30,1,[\\\"monthDifference\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[[28,[37,14],[[30,0,[\\\"formattedStyle\\\"]],[30,1,[\\\"metric\\\",\\\"format\\\"]]],null],true,0]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"showYtd\\\"]],[[[1,\\\"        \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,12],[[30,1,[\\\"ytdDifference\\\"]],null],null]],[[[1,\\\"            \\\"],[8,[39,19],null,[[\\\"@difference\\\",\\\"@useColor\\\",\\\"@increaseIsGood\\\"],[[30,1,[\\\"ytdDifference\\\"]],[30,1,[\\\"isBalanceTarget\\\"]],[30,1,[\\\"increaseIsGood\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,1,[\\\"metric\\\",\\\"format\\\"]],\\\"CURRENCY\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,13],[[30,1,[\\\"ytdDifference\\\"]]],[[\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[true,0]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,13],[[30,1,[\\\"ytdDifference\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\"],[[28,[37,14],[[30,0,[\\\"formattedStyle\\\"]],[30,1,[\\\"metric\\\",\\\"format\\\"]]],null],true,0]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--plain data-table__cell-cover\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],[30,0,[\\\"removeTarget\\\"]],[30,1]],null],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,21],[[30,1,[\\\"hasBreakdown\\\"]],[30,1,[\\\"showBreakdown\\\"]]],null],[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[14,0,\\\"strategies-table__strategy-breakdown\\\"],[15,\\\"colspan\\\",[29,[[52,[30,1,[\\\"showYtd\\\"]],8,5]]]],[12],[1,\\\"\\\\n          \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table strategy-breakdown-table\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"40%\\\"],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Month value\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"YTD value\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Percent complete\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Assignee\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Target date\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"10%\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"th\\\"],[14,\\\"width\\\",\\\"0\\\"],[14,0,\\\"text-center\\\"],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,1,[\\\"breakdown\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[8,[39,23],[[24,0,\\\"text-input data-table__cell-cover\\\"]],[[\\\"@value\\\"],[[30,2,[\\\"description\\\"]]]],null],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[8,[39,23],[[24,0,\\\"text-input data-table__cell-cover\\\"]],[[\\\"@value\\\"],[[30,2,[\\\"monthValue\\\"]]]],null],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[8,[39,23],[[24,0,\\\"text-input data-table__cell-cover\\\"]],[[\\\"@value\\\"],[[30,2,[\\\"ytdValue\\\"]]]],null],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[8,[39,23],[[24,0,\\\"text-input data-table__cell-cover\\\"]],[[\\\"@value\\\"],[[30,2,[\\\"targetPercentage\\\"]]]],null],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[8,[39,23],[[24,0,\\\"text-input data-table__cell-cover\\\"]],[[\\\"@value\\\"],[[30,2,[\\\"personResponsible\\\"]]]],null],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[8,[39,23],[[24,0,\\\"text-input data-table__cell-cover\\\"]],[[\\\"@value\\\"],[[30,2,[\\\"targetDate\\\"]]]],null],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[8,[39,23],[[24,0,\\\"text-input data-table__cell-cover\\\"]],[[\\\"@value\\\"],[[30,2,[\\\"status\\\"]]]],null],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--plain data-table__cell-cover\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"removeBreakdownLine\\\",[30,1],[30,2]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                   \\\\n\\\"],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"strategies-table__breakdown-actions\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--add\\\"],[24,4,\\\"button\\\"],[4,[38,11],[[30,0],\\\"addBreakdownLine\\\",[30,1]],null],[12],[1,\\\"Add New Strategic Component\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]],[[[1,\\\"    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"8\\\"],[14,0,\\\"placeholder-text text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"There aren't any targets set for this period yet.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"addTarget\\\"]],[[[1,\\\"  \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"8\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[8,[39,27],[[24,0,\\\"inline\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@placeholder\\\",\\\"@searchField\\\",\\\"@onChange\\\"],[\\\"div\\\",[30,0,[\\\"metrics\\\"]],[30,0,[\\\"value\\\"]],true,\\\"Click to select a new metric…\\\",\\\"name\\\",[28,[37,11],[[30,0],[30,0,[\\\"addTarget\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[3]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"target\\\",\\\"breakdownLine\\\",\\\"metric\\\"],false,[\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"span\\\",\\\"fa-icon\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"if\\\",\\\"a\\\",\\\"action\\\",\\\"eq\\\",\\\"number-format\\\",\\\"get\\\",\\\"formatted-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"unless\\\",\\\"value-change-indicator\\\",\\\"button\\\",\\\"and\\\",\\\"table\\\",\\\"input\\\",\\\"div\\\",\\\"p\\\",\\\"tfoot\\\",\\\"power-select\\\"]]\",\n    \"moduleName\": \"portal/components/strategies-table.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'table',\n    classNames: ['strategies-table', 'data-table'],\n    formattedStyle: {\n      PERCENTAGE: 'percent',\n      NUMBER: 'decimal',\n      CURRENCY: 'currency'\n    },\n    actions: {\n      addBreakdownLine(target) {\n        (0, _object.get)(target, 'breakdown').pushObject({\n          description: null,\n          monthValue: null,\n          ytdValue: null,\n          targetPercentage: null,\n          personResponsible: null,\n          targetDate: null,\n          status: null\n        });\n      },\n      removeBreakdownLine(target, line) {\n        (0, _object.get)(target, 'breakdown').removeObject(line);\n      },\n      toggleBreakdownVisibility(target) {\n        const visible = target.toggleProperty('showBreakdown');\n        if (visible && (0, _utils.isEmpty)((0, _object.get)(target, 'breakdown'))) {\n          this.send('addBreakdownLine', target);\n        } else {\n          this.purgeEmptyBreakdownLines(target);\n        }\n      }\n    }\n  }));\n});","define(\"portal/components/supplier-invoices-pm/invoice-item\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <td\n    class='supplier-invoice-pm__items-table-big-cell'\n    title={{this.computedName}}\n  >{{this.computedName}}</td>\n  \n  <td\n    class='supplier-invoice-pm__items-table-big-cell'\n    title='{{this.item.assignment}}'\n  >{{this.item.assignment}}</td>\n  \n  {{#if this.accountingPlatform.isActive}}\n    <td class='supplier-invoice-pm__items-table-big-cell'>\n      {{#if (eq this.accountingPlatform.activePlatform 'quickbooks')}}\n        {{or this.item.glAccount.name '–'}}\n      {{else}}\n        {{if\n          (and this.item.glAccount.code this.item.glAccount.name)\n          (concat this.item.glAccount.code ' – ' this.item.glAccount.name)\n          '–'\n        }}\n      {{/if}}\n    </td>\n  {{/if}}\n  <td\n    class='text-right supplier-invoice-pm__items-table-small-cell'\n  >{{this.item.quantity}}</td>\n  <td class='text-right supplier-invoice-pm__items-table-small-cell'>\n    {{number-format this.item.unitPrice style='currency' dashZero=true}}\n  </td>\n  <td class='text-right supplier-invoice-pm__items-table-small-cell'>\n    {{number-format this.item.totalPrice style='currency' dashZero=true}}\n  </td>\n  */\n  {\n    \"id\": \"LbpvM/p0\",\n    \"block\": \"[[[10,\\\"td\\\"],[14,0,\\\"supplier-invoice-pm__items-table-big-cell\\\"],[15,\\\"title\\\",[30,0,[\\\"computedName\\\"]]],[12],[1,[30,0,[\\\"computedName\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"td\\\"],[14,0,\\\"supplier-invoice-pm__items-table-big-cell\\\"],[15,\\\"title\\\",[29,[[30,0,[\\\"item\\\",\\\"assignment\\\"]]]]],[12],[1,[30,0,[\\\"item\\\",\\\"assignment\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[1,\\\"  \\\"],[10,\\\"td\\\"],[14,0,\\\"supplier-invoice-pm__items-table-big-cell\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"quickbooks\\\"],null],[[[1,\\\"      \\\"],[1,[28,[35,3],[[30,0,[\\\"item\\\",\\\"glAccount\\\",\\\"name\\\"]],\\\"–\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[1,[52,[28,[37,4],[[30,0,[\\\"item\\\",\\\"glAccount\\\",\\\"code\\\"]],[30,0,[\\\"item\\\",\\\"glAccount\\\",\\\"name\\\"]]],null],[28,[37,5],[[30,0,[\\\"item\\\",\\\"glAccount\\\",\\\"code\\\"]],\\\" – \\\",[30,0,[\\\"item\\\",\\\"glAccount\\\",\\\"name\\\"]]],null],\\\"–\\\"]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"td\\\"],[14,0,\\\"text-right supplier-invoice-pm__items-table-small-cell\\\"],[12],[1,[30,0,[\\\"item\\\",\\\"quantity\\\"]]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[14,0,\\\"text-right supplier-invoice-pm__items-table-small-cell\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,6],[[30,0,[\\\"item\\\",\\\"unitPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[14,0,\\\"text-right supplier-invoice-pm__items-table-small-cell\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,6],[[30,0,[\\\"item\\\",\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"td\\\",\\\"if\\\",\\\"eq\\\",\\\"or\\\",\\\"and\\\",\\\"concat\\\",\\\"number-format\\\"]]\",\n    \"moduleName\": \"portal/components/supplier-invoices-pm/invoice-item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: 'tr',\n    classNames: 'supplier-invoice-pm__item',\n    classNameBindings: ['notMapped:supplier-invoice-pm__item--not-mapped'],\n    accountingPlatform: (0, _service.inject)(),\n    notMapped: (0, _object.computed)('item.{project.id,task.id,isMapped}', function () {\n      return !(0, _object.get)(this, 'item.isMapped') && !(0, _object.get)(this, 'item.project.id') && !(0, _object.get)(this, 'item.task.id');\n    }),\n    computedName: (0, _object.computed)('item.{description,productCode}', function () {\n      let name = (0, _object.get)(this, 'item.productCode') || '';\n      if ((0, _object.get)(this, 'item.description') && (0, _object.get)(this, 'item.productCode')) name += ' – ';\n      name += (0, _object.get)(this, 'item.description') || '';\n      return name;\n    })\n  }));\n});","define(\"portal/components/supplier-invoices-pm/invoice-row\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/template-factory\"], function (_exports, _component, _computed, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object/computed\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <td {{action this.toggleProperty 'invoice.checked' bubbles=false}}>\n    <label\n      class='supplier-invoice-table-pm__row-checkbox-label'\n      for={{concat this.invoice.id this.invoice.issueDate}}\n    >\n      <Input\n        id={{concat this.invoice.id this.invoice.issueDate}}\n        @type='checkbox'\n        @checked={{this.invoice.checked}}\n      />\n    </label>\n  </td>\n  \n  <td>{{this.invoice.billNumber}}\n    {{#if @hasDuplicate}}\n      <span\n        class='invoice-editor__inputs-row-warning-triangle'\n        data-test-duplicate-warning=''\n      >\n        &nbsp;<InfoPopup\n          @iconName='exclamation-triangle'\n          class='text-danger'\n          @text={{t\n            'shared.bill.thisBillNumberHasAlreadyBeenUsedAndMayBeADuplicate'\n          }}\n        />\n      </span>\n    {{/if}}\n  </td>\n  <td class='text-wrap'>{{or this.invoice.issuer (t 'common.New bill')}}</td>\n  <td class='text-wrap'>{{this.invoice.reference}}</td>\n  <td>\n    {{#if (eq this.invoice.allocationType 'LABOUR')}}\n      {{t 'common.Labour'}}\n    {{else if (eq this.invoice.allocationType 'MATERIALS')}}\n      {{t 'common.Materials'}}\n    {{else if (eq this.invoice.allocationType 'SUBCONTRACTORS')}}\n      {{t 'common.Subcontractors'}}\n    {{/if}}\n  </td>\n  <td>\n    {{#if (eq this.invoice.status 'DRAFT')}}\n      {{t 'common.Draft'}}\n    {{else if (eq this.invoice.status 'ACCEPTED')}}\n      {{t 'common.Accepted'}}\n    {{else if (eq this.invoice.status 'ARCHIVED')}}\n      {{t 'common.Archived'}}\n    {{else if (eq this.invoice.status 'HELD')}}\n      {{t 'common.Held'}}\n    {{else if (eq this.invoice.status 'PAID')}}\n      {{t 'common.Paid'}}\n    {{/if}}\n  </td>\n  <td>{{if\n      this.invoice.issueDate\n      (moment-format this.invoice.issueDate (t 'date.dayMonthYearShort'))\n      '–'\n    }}</td>\n  <td>{{if\n      this.invoice.dueDate\n      (moment-format this.invoice.dueDate (t 'date.dayMonthYearShort'))\n      '–'\n    }}</td>\n  <td>\n    {{number-format this.invoice.totalPrice style='currency' dashZero=true}}\n  </td>\n  \n  {{#if this.showBadges}}\n    <td>\n      <div class='badge-set'>\n        {{! Denotes that this invoice originated from ITM (eAccounts) or Step Connect }}\n        {{#if (or this.invoice.eaccountsFileName this.invoice.ipsId)}}\n          <IntegrationIcon\n            @imported={{true}}\n            @title={{t 'shared.bill.This invoice was imported automatically'}}\n            data-test-edi-icon\n          />\n        {{/if}}\n  \n        {{! Denote that the invoice has been sent to Accounting platform }}\n        {{#if (or this.invoice.xeroLinked this.invoice.quickbooksLinked)}}\n          <IntegrationIcon\n            @exported={{true}}\n            @title={{t\n              'shared.bill.aCopyOfThisInvoiceHasBeenSentToYourAccountingPackage'\n            }}\n            data-test-xero-icon\n          />\n        {{/if}}\n  \n        {{#if this.invoice.isAutoMapped}}\n          <IntegrationIcon\n            @autoMapped={{true}}\n            @title={{t 'shared.bill.Invoice was auto mapped'}}\n          />\n        {{/if}}\n      </div>\n    </td>\n  {{/if}}\n  */\n  {\n    \"id\": \"UI5epBqg\",\n    \"block\": \"[[[11,\\\"td\\\"],[4,[38,1],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"invoice.checked\\\"],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n  \\\"],[10,\\\"label\\\"],[14,0,\\\"supplier-invoice-table-pm__row-checkbox-label\\\"],[15,\\\"for\\\",[28,[37,3],[[30,0,[\\\"invoice\\\",\\\"id\\\"]],[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]]],null]],[12],[1,\\\"\\\\n    \\\"],[8,[39,4],[[16,1,[28,[37,3],[[30,0,[\\\"invoice\\\",\\\"id\\\"]],[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]]],null]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"invoice\\\",\\\"checked\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"td\\\"],[12],[1,[30,0,[\\\"invoice\\\",\\\"billNumber\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"invoice-editor__inputs-row-warning-triangle\\\"],[14,\\\"data-test-duplicate-warning\\\",\\\"\\\"],[12],[1,\\\"\\\\n       \\\"],[8,[39,7],[[24,0,\\\"text-danger\\\"]],[[\\\"@iconName\\\",\\\"@text\\\"],[\\\"exclamation-triangle\\\",[28,[37,8],[\\\"shared.bill.thisBillNumberHasAlreadyBeenUsedAndMayBeADuplicate\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[14,0,\\\"text-wrap\\\"],[12],[1,[28,[35,9],[[30,0,[\\\"invoice\\\",\\\"issuer\\\"]],[28,[37,8],[\\\"common.New bill\\\"],null]],null]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[14,0,\\\"text-wrap\\\"],[12],[1,[30,0,[\\\"invoice\\\",\\\"reference\\\"]]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"allocationType\\\"]],\\\"LABOUR\\\"],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Labour\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"allocationType\\\"]],\\\"MATERIALS\\\"],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"allocationType\\\"]],\\\"SUBCONTRACTORS\\\"],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n  \\\"]],[]],null]],[]]]],[]]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Draft\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"ACCEPTED\\\"],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Accepted\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"ARCHIVED\\\"],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Archived\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"HELD\\\"],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Held\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"PAID\\\"],null],[[[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Paid\\\"],null]],[1,\\\"\\\\n  \\\"]],[]],null]],[]]]],[]]]],[]]]],[]]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[12],[1,[52,[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,11],[[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,8],[\\\"date.dayMonthYearShort\\\"],null]],null],\\\"–\\\"]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[12],[1,[52,[30,0,[\\\"invoice\\\",\\\"dueDate\\\"]],[28,[37,11],[[30,0,[\\\"invoice\\\",\\\"dueDate\\\"]],[28,[37,8],[\\\"date.dayMonthYearShort\\\"],null]],null],\\\"–\\\"]],[13],[1,\\\"\\\\n\\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[28,[35,12],[[30,0,[\\\"invoice\\\",\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showBadges\\\"]],[[[1,\\\"  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"badge-set\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"invoice\\\",\\\"eaccountsFileName\\\"]],[30,0,[\\\"invoice\\\",\\\"ipsId\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,14],[[24,\\\"data-test-edi-icon\\\",\\\"\\\"]],[[\\\"@imported\\\",\\\"@title\\\"],[true,[28,[37,8],[\\\"shared.bill.This invoice was imported automatically\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"invoice\\\",\\\"xeroLinked\\\"]],[30,0,[\\\"invoice\\\",\\\"quickbooksLinked\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,14],[[24,\\\"data-test-xero-icon\\\",\\\"\\\"]],[[\\\"@exported\\\",\\\"@title\\\"],[true,[28,[37,8],[\\\"shared.bill.aCopyOfThisInvoiceHasBeenSentToYourAccountingPackage\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoice\\\",\\\"isAutoMapped\\\"]],[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@autoMapped\\\",\\\"@title\\\"],[true,[28,[37,8],[\\\"shared.bill.Invoice was auto mapped\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@hasDuplicate\\\"],false,[\\\"td\\\",\\\"action\\\",\\\"label\\\",\\\"concat\\\",\\\"input\\\",\\\"if\\\",\\\"span\\\",\\\"info-popup\\\",\\\"t\\\",\\\"or\\\",\\\"eq\\\",\\\"moment-format\\\",\\\"number-format\\\",\\\"div\\\",\\\"integration-icon\\\"]]\",\n    \"moduleName\": \"portal/components/supplier-invoices-pm/invoice-row.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    tagName: ['tr'],\n    classNames: ['supplier-invoice-table-pm__row'],\n    classNameBindings: ['selected:supplier-invoice-table-pm__row--selected'],\n    selected: (0, _computed.alias)('invoice.checked'),\n    click: function () {\n      this.editInvoice();\n    }\n  }));\n});","define(\"portal/components/supplier-invoices-pm/invoice\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/object/computed\", \"@ember/object/evented\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _object, _computed, _evented, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/object/evented\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='supplier-invoice-pm__header'>\n    {{! Checkbox }}\n    {{#if this.invoice.checked}}\n      <FaIcon\n        @icon='check-square'\n        @fixedWidth={{true}}\n        class={{concat\n          'supplier-invoice-pm__header-checkbox-label'\n          (if\n            this.invoice.checked ' supplier-invoice-pm__header-checkbox-checked'\n          )\n        }}\n      />\n    {{else}}\n      <FaIcon\n        @icon='square'\n        @prefix='far'\n        @fixedWidth={{true}}\n        class={{concat\n          'supplier-invoice-pm__header-checkbox-label'\n          (if\n            this.invoice.checked ' supplier-invoice-pm__header-checkbox-checked'\n          )\n        }}\n      />\n    {{/if}}\n  \n    {{! Title on invoice in the form \"<issuer> - <name>\" }}\n    <span class='supplier-invoice-pm__header-title'>\n      &nbsp;{{or this.invoice.issuer (t 'common.New bill')}}\n    </span>\n    <span class='supplier-invoice-pm__header-sub-title'>\n      {{if\n        this.invoice.reference\n        (html-safe (concat '&nbsp;-&nbsp;' this.invoice.reference))\n      }}\n    </span>\n  \n    {{#if @hasDuplicate}}\n      <span\n        class='invoice-editor__inputs-row-warning-triangle'\n        data-test-duplicate-warning=''\n      >\n        &nbsp;<InfoPopup\n          @iconName='exclamation-triangle'\n          class='text-danger'\n          @text={{t\n            'shared.bill.thisBillNumberHasAlreadyBeenUsedAndMayBeADuplicate'\n          }}\n        />\n      </span>\n    {{/if}}\n  \n    {{! Status label }}\n    {{#if (not-eq this.invoice.status 'ACCEPTED')}}\n      <span class='supplier-invoice-pm__header-status'>\n        {{#if (eq this.invoice.status 'DRAFT')}}\n          {{t 'common.Draft'}}\n        {{else if (eq this.invoice.status 'ACCEPTED')}}\n          {{t 'common.Accepted'}}\n        {{else if (eq this.invoice.status 'ARCHIVED')}}\n          {{t 'common.Archived'}}\n        {{else if (eq this.invoice.status 'HELD')}}\n          {{t 'common.Held'}}\n        {{else if (eq this.invoice.status 'PAID')}}\n          {{t 'common.Paid'}}\n        {{/if}}\n      </span>\n    {{/if}}\n  \n    {{#if (lt this.invoice.totalPrice 0)}}\n      <span class='supplier-invoice-pm__header-status'>\n        {{t 'shared.bill.Credit note'}}\n      </span>\n    {{/if}}\n  \n    {{! Type label }}\n    <span class='supplier-invoice-pm__header-status'>\n      {{#if (eq this.invoice.allocationType 'LABOUR')}}\n        {{t 'common.Labour'}}\n      {{else if (eq this.invoice.allocationType 'MATERIALS')}}\n        {{t 'common.Materials'}}\n      {{else if (eq this.invoice.allocationType 'SUBCONTRACTORS')}}\n        {{t 'common.Subcontractors'}}\n      {{/if}}\n    </span>\n  \n    {{! Link to details view }}\n    <div class='float-end'>\n      <button\n        class='button button--spaced'\n        data-test-edit-bill={{or this.invoice.id 'new'}}\n        type='button'\n        {{action this.editInvoice bubbles=false}}\n      >\n        {{t 'common.Details'}}\n      </button>\n    </div>\n  </div>\n  \n  <div class='supplier-invoice-pm__items'>\n    {{! Denotes that this invoice originated from ITM (eAccounts) or Step Connect }}\n    {{#if (or this.invoice.eaccountsFileName this.invoice.ipsId)}}\n      <IntegrationIcon\n        @imported={{true}}\n        @title={{t 'shared.bill.This invoice was imported automatically'}}\n        data-test-edi-icon\n      />\n    {{/if}}\n  \n    {{! Denote that the invoice has been sent to Accounting platform }}\n    {{#if (or this.invoice.xeroLinked this.invoice.quickbooksLinked)}}\n      <IntegrationIcon\n        @exported={{true}}\n        @title={{t\n          'shared.bill.aCopyOfThisInvoiceHasBeenSentToYourAccountingPackage'\n        }}\n        data-test-xero-icon\n      />\n    {{/if}}\n  \n    {{#if this.invoice.isAutoMapped}}\n      <IntegrationIcon\n        @autoMapped={{true}}\n        @title={{t 'shared.bill.Invoice was auto mapped'}}\n      />\n    {{/if}}\n  \n    <div class='float-end'>\n      <div class='supplier-invoice-pm__meta-container'>\n        {{! Issue date }}\n        <span class='supplier-invoice-pm__meta-item'>\n          <b>{{t 'common.Issued'}}</b>\n          {{#if this.invoice.issueDate}}{{moment-format\n              this.invoice.issueDate\n              (t 'date.dayMonthYearShort')\n            }}{{else}}—{{/if}}\n        </span>\n  \n        {{! Due date }}\n        <span class='supplier-invoice-pm__meta-item'>\n          <b>{{t 'common.Due'}}</b>\n          {{#if this.invoice.dueDate}}{{moment-format\n              this.invoice.dueDate\n              (t 'date.dayMonthYearShort')\n            }}{{else}}—{{/if}}\n        </span>\n  \n        {{! Invoice number }}\n        <span class='supplier-invoice-pm__meta-item'>\n          <b>{{t 'common.Number'}}</b>\n          {{#if\n            this.invoice.billNumber\n          }}{{this.invoice.billNumber}}{{else}}—{{/if}}\n        </span>\n  \n        {{! Total }}\n        <span class='supplier-invoice-pm__meta-item'>\n          <b>{{t 'common.Total'}}</b>\n          {{number-format this.invoice.totalPrice style='currency' dashZero=true}}\n        </span>\n      </div>\n  \n      {{! Expand items button }}\n      {{#if this.invoice.items.length}}\n        <button\n          class='text-button button--spaced'\n          data-test-expand-bill={{this.invoice.id}}\n          type='button'\n          {{action this.toggleProperty 'expanded' bubbles=false}}\n        >\n          {{if this.expanded (t 'common.Hide items') (t 'common.Show items')}}\n        </button>\n      {{else}}\n        <span class='button--spaced'>\n          {{t 'common.No items'}}\n        </span>\n      {{/if}}\n    </div>\n  </div>\n  \n  {{#if (and this.expanded this.invoice.items.length)}}\n    <table class='supplier-invoice-pm__items-table'>\n      <thead>\n        <tr>\n          <th class='supplier-invoice-pm__items-table-big-cell'>{{t\n              'common.Item'\n            }}</th>\n          <th class='supplier-invoice-pm__items-table-big-cell'>{{t\n              'common.Assigned'\n            }}</th>\n          {{#if this.accountingPlatform.isActive}}\n            <th class='supplier-invoice-pm__items-table-big-cell'>\n              {{concat this.accountingPlatform.label ' ' (t 'common.account')}}\n            </th>\n          {{/if}}\n          <th class='supplier-invoice-pm__items-table-small-cell'>{{t\n              'common.Qty'\n            }}</th>\n          <th class='supplier-invoice-pm__items-table-small-cell'>{{t\n              'common.Unit cost'\n            }}</th>\n          <th class='supplier-invoice-pm__items-table-small-cell'>{{t\n              'common.Total cost'\n            }}</th>\n        </tr>\n      </thead>\n      <tbody>\n        {{#each this.invoice.sortedItems as |item|}}\n          <SupplierInvoicesPm::InvoiceItem\n            @item={{item}}\n            data-test-bill-item={{item.id}}\n            @xeroReady={{this.xeroReady}}\n          />\n        {{/each}}\n      </tbody>\n    </table>\n  {{/if}}\n  */\n  {\n    \"id\": \"qCUW0svV\",\n    \"block\": \"[[[10,0],[14,0,\\\"supplier-invoice-pm__header\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoice\\\",\\\"checked\\\"]],[[[1,\\\"    \\\"],[8,[39,2],[[16,0,[28,[37,3],[\\\"supplier-invoice-pm__header-checkbox-label\\\",[52,[30,0,[\\\"invoice\\\",\\\"checked\\\"]],\\\" supplier-invoice-pm__header-checkbox-checked\\\"]],null]]],[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,2],[[16,0,[28,[37,3],[\\\"supplier-invoice-pm__header-checkbox-label\\\",[52,[30,0,[\\\"invoice\\\",\\\"checked\\\"]],\\\" supplier-invoice-pm__header-checkbox-checked\\\"]],null]]],[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[1,\\\"  \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__header-title\\\"],[12],[1,\\\"\\\\n     \\\"],[1,[28,[35,5],[[30,0,[\\\"invoice\\\",\\\"issuer\\\"]],[28,[37,6],[\\\"common.New bill\\\"],null]],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__header-sub-title\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[52,[30,0,[\\\"invoice\\\",\\\"reference\\\"]],[28,[37,7],[[28,[37,3],[\\\"&nbsp;-&nbsp;\\\",[30,0,[\\\"invoice\\\",\\\"reference\\\"]]],null]],null]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"invoice-editor__inputs-row-warning-triangle\\\"],[14,\\\"data-test-duplicate-warning\\\",\\\"\\\"],[12],[1,\\\"\\\\n       \\\"],[8,[39,8],[[24,0,\\\"text-danger\\\"]],[[\\\"@iconName\\\",\\\"@text\\\"],[\\\"exclamation-triangle\\\",[28,[37,6],[\\\"shared.bill.thisBillNumberHasAlreadyBeenUsedAndMayBeADuplicate\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"ACCEPTED\\\"],null],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__header-status\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null],[[[1,\\\"        \\\"],[1,[28,[35,6],[\\\"common.Draft\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"ACCEPTED\\\"],null],[[[1,\\\"        \\\"],[1,[28,[35,6],[\\\"common.Accepted\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"ARCHIVED\\\"],null],[[[1,\\\"        \\\"],[1,[28,[35,6],[\\\"common.Archived\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"HELD\\\"],null],[[[1,\\\"        \\\"],[1,[28,[35,6],[\\\"common.Held\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"status\\\"]],\\\"PAID\\\"],null],[[[1,\\\"        \\\"],[1,[28,[35,6],[\\\"common.Paid\\\"],null]],[1,\\\"\\\\n      \\\"]],[]],null]],[]]]],[]]]],[]]]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"invoice\\\",\\\"totalPrice\\\"]],0],null],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__header-status\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,6],[\\\"shared.bill.Credit note\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\"  \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__header-status\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"allocationType\\\"]],\\\"LABOUR\\\"],null],[[[1,\\\"      \\\"],[1,[28,[35,6],[\\\"common.Labour\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"allocationType\\\"]],\\\"MATERIALS\\\"],null],[[[1,\\\"      \\\"],[1,[28,[35,6],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,10],[[30,0,[\\\"invoice\\\",\\\"allocationType\\\"]],\\\"SUBCONTRACTORS\\\"],null],[[[1,\\\"      \\\"],[1,[28,[35,6],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n    \\\"]],[]],null]],[]]]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced\\\"],[16,\\\"data-test-edit-bill\\\",[28,[37,5],[[30,0,[\\\"invoice\\\",\\\"id\\\"]],\\\"new\\\"],null]],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],[30,0,[\\\"editInvoice\\\"]]],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"supplier-invoice-pm__items\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"invoice\\\",\\\"eaccountsFileName\\\"]],[30,0,[\\\"invoice\\\",\\\"ipsId\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,14],[[24,\\\"data-test-edi-icon\\\",\\\"\\\"]],[[\\\"@imported\\\",\\\"@title\\\"],[true,[28,[37,6],[\\\"shared.bill.This invoice was imported automatically\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"invoice\\\",\\\"xeroLinked\\\"]],[30,0,[\\\"invoice\\\",\\\"quickbooksLinked\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,14],[[24,\\\"data-test-xero-icon\\\",\\\"\\\"]],[[\\\"@exported\\\",\\\"@title\\\"],[true,[28,[37,6],[\\\"shared.bill.aCopyOfThisInvoiceHasBeenSentToYourAccountingPackage\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoice\\\",\\\"isAutoMapped\\\"]],[[[1,\\\"    \\\"],[8,[39,14],null,[[\\\"@autoMapped\\\",\\\"@title\\\"],[true,[28,[37,6],[\\\"shared.bill.Invoice was auto mapped\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"supplier-invoice-pm__meta-container\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__meta-item\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,6],[\\\"common.Issued\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[41,[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]],[[[1,[28,[35,16],[[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,6],[\\\"date.dayMonthYearShort\\\"],null]],null]]],[]],[[[1,\\\"—\\\"]],[]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__meta-item\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,6],[\\\"common.Due\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[41,[30,0,[\\\"invoice\\\",\\\"dueDate\\\"]],[[[1,[28,[35,16],[[30,0,[\\\"invoice\\\",\\\"dueDate\\\"]],[28,[37,6],[\\\"date.dayMonthYearShort\\\"],null]],null]]],[]],[[[1,\\\"—\\\"]],[]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__meta-item\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,6],[\\\"common.Number\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[41,[30,0,[\\\"invoice\\\",\\\"billNumber\\\"]],[[[1,[30,0,[\\\"invoice\\\",\\\"billNumber\\\"]]]],[]],[[[1,\\\"—\\\"]],[]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[10,1],[14,0,\\\"supplier-invoice-pm__meta-item\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[1,[28,[35,17],[[30,0,[\\\"invoice\\\",\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invoice\\\",\\\"items\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button button--spaced\\\"],[16,\\\"data-test-expand-bill\\\",[30,0,[\\\"invoice\\\",\\\"id\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"expanded\\\"],[[\\\"bubbles\\\"],[false]]],[12],[1,\\\"\\\\n        \\\"],[1,[52,[30,0,[\\\"expanded\\\"]],[28,[37,6],[\\\"common.Hide items\\\"],null],[28,[37,6],[\\\"common.Show items\\\"],null]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"button--spaced\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.No items\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,18],[[30,0,[\\\"expanded\\\"]],[30,0,[\\\"invoice\\\",\\\"items\\\",\\\"length\\\"]]],null],[[[1,\\\"  \\\"],[10,\\\"table\\\"],[14,0,\\\"supplier-invoice-pm__items-table\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[14,0,\\\"supplier-invoice-pm__items-table-big-cell\\\"],[12],[1,[28,[35,6],[\\\"common.Item\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[14,0,\\\"supplier-invoice-pm__items-table-big-cell\\\"],[12],[1,[28,[35,6],[\\\"common.Assigned\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[1,\\\"          \\\"],[10,\\\"th\\\"],[14,0,\\\"supplier-invoice-pm__items-table-big-cell\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]],\\\" \\\",[28,[37,6],[\\\"common.account\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,\\\"th\\\"],[14,0,\\\"supplier-invoice-pm__items-table-small-cell\\\"],[12],[1,[28,[35,6],[\\\"common.Qty\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[14,0,\\\"supplier-invoice-pm__items-table-small-cell\\\"],[12],[1,[28,[35,6],[\\\"common.Unit cost\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[14,0,\\\"supplier-invoice-pm__items-table-small-cell\\\"],[12],[1,[28,[35,6],[\\\"common.Total cost\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,25],[[28,[37,25],[[30,0,[\\\"invoice\\\",\\\"sortedItems\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,26],[[16,\\\"data-test-bill-item\\\",[30,2,[\\\"id\\\"]]]],[[\\\"@item\\\",\\\"@xeroReady\\\"],[[30,2],[30,0,[\\\"xeroReady\\\"]]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@hasDuplicate\\\",\\\"item\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"fa-icon\\\",\\\"concat\\\",\\\"span\\\",\\\"or\\\",\\\"t\\\",\\\"html-safe\\\",\\\"info-popup\\\",\\\"not-eq\\\",\\\"eq\\\",\\\"lt\\\",\\\"button\\\",\\\"action\\\",\\\"integration-icon\\\",\\\"b\\\",\\\"moment-format\\\",\\\"number-format\\\",\\\"and\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"supplier-invoices-pm/invoice-item\\\"]]\",\n    \"moduleName\": \"portal/components/supplier-invoices-pm/invoice.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    classNames: ['supplier-invoice-pm'],\n    classNameBindings: ['checked:supplier-invoice-pm--selected'],\n    accountingPlatform: (0, _service.inject)(),\n    checked: (0, _computed.alias)('invoice.checked'),\n    expandedByDefault: false,\n    setExpanded: (0, _evented.on)('init', function () {\n      (0, _object.set)(this, 'expanded', (0, _object.get)(this, 'expandedByDefault') === true);\n    }),\n    click: function () {\n      this.toggleProperty('invoice.checked');\n    }\n  }));\n});","define(\"portal/components/takeoff-uploader-modal\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _tracking, _object, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @onClose={{@onClose}}\n    @containerClass='modal-content w-auto'\n    @overlayClass='modal'\n    @translucentOverlay={{true}}\n  >\n    <div class='modal-header flex-column align-items-start'>\n      <h3 class='mb-1'>{{t 'shared.task.Add tasks from a file'}}</h3>\n      {{#if this.crumbStack}}\n        <div>\n          <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n        </div>\n      {{/if}}\n    </div>\n  \n    <div\n      class='modal-body overflow-auto'\n      id='takeoff-uploader-modal'\n      style='max-width: 95vw;'\n    >\n      {{#if (eq this.activePage 'upload')}}\n        <TakeoffUploaderModal::Upload\n          @onFileClear={{this.onFileClear}}\n          @onUploadComplete={{this.onUploadComplete}}\n          @takeoffFile={{this.takeoffFile}}\n        />\n      {{else if (eq this.activePage 'assign')}}\n        <TakeoffUploaderModal::Assign\n          @project={{@project}}\n          @takeoffFile={{this.takeoffFile}}\n          @takeoffItems={{this.takeoffItems}}\n          @onAssignComplete={{this.onAssignComplete}}\n          @onCancel={{this.onAssignCancel}}\n        />\n      {{else if (eq this.activePage 'map')}}\n        <TakeoffUploaderModal::Map\n          @project={{@project}}\n          @takeoffItems={{this.takeoffItems}}\n          @onMappingComplete={{this.onMappingComplete}}\n        />\n      {{/if}}\n    </div>\n  \n    <div class='modal-footer'>\n      <button\n        type='button'\n        class='btn btn-secondary'\n        disabled={{this.isLoading}}\n        {{on 'click' @onClose}}\n      >{{t 'common.Cancel'}}</button>\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"Prh6sX0v\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[30,1],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header flex-column align-items-start\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,3],[\\\"shared.task.Add tasks from a file\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"crumbStack\\\"]],[[[1,\\\"      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-body overflow-auto\\\"],[14,1,\\\"takeoff-uploader-modal\\\"],[14,5,\\\"max-width: 95vw;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,0,[\\\"activePage\\\"]],\\\"upload\\\"],null],[[[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@onFileClear\\\",\\\"@onUploadComplete\\\",\\\"@takeoffFile\\\"],[[30,0,[\\\"onFileClear\\\"]],[30,0,[\\\"onUploadComplete\\\"]],[30,0,[\\\"takeoffFile\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,0,[\\\"activePage\\\"]],\\\"assign\\\"],null],[[[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@project\\\",\\\"@takeoffFile\\\",\\\"@takeoffItems\\\",\\\"@onAssignComplete\\\",\\\"@onCancel\\\"],[[30,2],[30,0,[\\\"takeoffFile\\\"]],[30,0,[\\\"takeoffItems\\\"]],[30,0,[\\\"onAssignComplete\\\"]],[30,0,[\\\"onAssignCancel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,0,[\\\"activePage\\\"]],\\\"map\\\"],null],[[[1,\\\"      \\\"],[8,[39,9],null,[[\\\"@project\\\",\\\"@takeoffItems\\\",\\\"@onMappingComplete\\\"],[[30,2],[30,0,[\\\"takeoffItems\\\"]],[30,0,[\\\"onMappingComplete\\\"]]]],null],[1,\\\"\\\\n    \\\"]],[]],null]],[]]]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,1]],null],[12],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@onClose\\\",\\\"@project\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"if\\\",\\\"page-title-breadcrumbs\\\",\\\"eq\\\",\\\"takeoff-uploader-modal/upload\\\",\\\"takeoff-uploader-modal/assign\\\",\\\"takeoff-uploader-modal/map\\\",\\\"button\\\",\\\"on\\\"]]\",\n    \"moduleName\": \"portal/components/takeoff-uploader-modal.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _defineProperty(this, \"uploadPage\", 'upload');\n      _defineProperty(this, \"assignPage\", 'assign');\n      _defineProperty(this, \"mapPage\", 'map');\n      _defineProperty(this, \"assignCrumbStack\", [{\n        pageTitle: this.intl.t('components.takeoff-uploader-modal.Upload file'),\n        onClick: () => this.activePage = this.uploadPage\n      }, {\n        pageTitle: this.intl.t('components.takeoff-uploader-modal.Assign items'),\n        lastCrumb: true\n      }]);\n      _defineProperty(this, \"mapCrumbStack\", [{\n        pageTitle: this.intl.t('components.takeoff-uploader-modal.Upload file'),\n        onClick: () => this.activePage = this.uploadPage\n      }, {\n        pageTitle: this.intl.t('components.takeoff-uploader-modal.Assign items'),\n        onClick: () => this.activePage = this.assignPage\n      }, {\n        pageTitle: this.intl.t('components.takeoff-uploader-modal.Map to tasks'),\n        lastCrumb: true\n      }]);\n      _initializerDefineProperty(this, \"activePage\", _descriptor2, this);\n      _initializerDefineProperty(this, \"takeoffFile\", _descriptor3, this);\n      _initializerDefineProperty(this, \"takeoffItems\", _descriptor4, this);\n      _defineProperty(this, \"onMappingComplete\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (mapItems) {\n          yield this.args.onLoadTakeoff(mapItems);\n          this.args.onClose();\n        }\n      }), null, \"onMappingComplete\", null));\n    }\n    get crumbStack() {\n      switch (this.activePage) {\n        case 'upload':\n          return null;\n        case 'assign':\n          return this.assignCrumbStack;\n        case 'map':\n          return this.mapCrumbStack;\n        default:\n          return null;\n      }\n    }\n    get isLoading() {\n      return this.onMappingComplete.isRunning;\n    }\n    onFileClear() {\n      this.takeoffItems = null;\n    }\n    onAssignCancel() {\n      this.takeoffFile = null;\n      this.activePage = this.uploadPage;\n    }\n    onUploadComplete(takeoffFile) {\n      this.takeoffFile = takeoffFile;\n      this.activePage = this.assignPage;\n    }\n    onAssignComplete(takeoffItems) {\n      this.takeoffItems = takeoffItems;\n      this.activePage = this.mapPage;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"activePage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.uploadPage;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"takeoffFile\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"takeoffItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onFileClear\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onFileClear\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAssignCancel\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAssignCancel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onUploadComplete\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAssignComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAssignComplete\"), _class.prototype), _class));\n});","define(\"portal/components/takeoff-uploader-modal/assign\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@ember/object\", \"@glimmer/component\", \"@glimmer/tracking\", \"string-similarity\", \"@ember/runloop\", \"@ember/array\", \"@ember/service\", \"portal/utils/parse-currency-string\", \"portal/utils/duration-input\", \"mathjs\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _object, _component2, _tracking, _stringSimilarity, _runloop, _array, _service, _parseCurrencyString, _durationInput, _mathjs, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _class2, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/object\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"string-similarity\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"@ember/array\",0,\"@ember/service\",0,\"portal/utils/parse-currency-string\",0,\"portal/utils/duration-input\",0,\"mathjs\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='d-flex flex-column' style='max-width: 768px'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if this.takeoffItems.length}}\n        {{#if this.invalidRowMessage}}\n          <div class='alert alert-warning' role='alert'>\n            <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n            <span class='me-2'>\n              {{this.invalidRowMessage}}\n            </span>\n          </div>\n        {{/if}}\n  \n        <label class='mb-1'>{{t\n            'components.takeoff-uploader-modal.assign.Group type actions'\n          }}</label>\n        <div class='d-flex align-items-center mb-2'>\n          <button\n            type='button'\n            class='btn btn-primary me-2'\n            {{on 'click' (fn this.onAllValueTypeClick 'budget')}}\n          >\n            {{t 'components.takeoff-uploader-modal.assign.All budget'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary me-2'\n            {{on 'click' (fn this.onAllValueTypeClick 'quote')}}\n          >\n            {{t 'components.takeoff-uploader-modal.assign.All quote'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary me-2'\n            {{on 'click' (fn this.onAllValueTypeClick 'labourHours')}}\n          >\n            {{t 'components.takeoff-uploader-modal.assign.All labour hours'}}\n          </button>\n        </div>\n  \n        <label class='mb-1'>{{t\n            'components.takeoff-uploader-modal.assign.Group proportion actions'\n          }}</label>\n        <div class='d-flex align-items-center mb-3'>\n          <button\n            type='button'\n            class='btn btn-primary me-2'\n            {{on 'click' (fn this.onAllFigureTypeClick 'labour')}}\n          >\n            {{t 'components.takeoff-uploader-modal.assign.All labour'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary me-2'\n            {{on 'click' (fn this.onAllFigureTypeClick 'materials')}}\n          >\n            {{t 'components.takeoff-uploader-modal.assign.All materials'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary me-2'\n            {{on 'click' (fn this.onAllFigureTypeClick 'subcontractors')}}\n          >\n            {{t 'components.takeoff-uploader-modal.assign.All subcontractors'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary me-2'\n            {{on 'click' (fn this.onAllFigureTypeClick 'sums')}}\n          >\n            {{t 'components.takeoff-uploader-modal.assign.All sums'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary me-2'\n            {{on 'click' (fn this.onAllFigureTypeClick 'labourHours')}}\n          >\n            {{t 'components.takeoff-uploader-modal.assign.All labour hours'}}\n          </button>\n        </div>\n  \n        <LazyEach\n          @items={{this.takeoffItems}}\n          @automatic={{true}}\n          @initialNumberOfItemsVisible='10'\n          @increment='10'\n          @windowSelector='#takeoff-uploader-modal'\n          as |item identifier index|\n        >\n          <PtlForm\n            class='mb-3 {{identifier}}'\n            id='takeoff-uploader-modal__assign--{{index}}'\n          >\n            {{#if item.collapsed}}\n              <div class='d-flex align-items-center'>\n                <h4\n                  role='button'\n                  class='h4 m-0 me-3 text-decoration-underline text-primary'\n                  {{on 'click' (fn (mut item.collapsed) false)}}\n                >{{or\n                    item.task\n                    (t 'components.takeoff-uploader-modal.assign.Unnamed item')\n                  }}</h4>\n                <h4 class='h4 m-0 ms-auto me-3'>\n                  {{#if item.isLabourHours}}\n                    {{format-duration item.computedTotal emptyPlaceholder='0:00'}}\n                  {{else}}\n                    {{number-format\n                      item.computedTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  {{/if}}\n                </h4>\n              </div>\n            {{else}}\n              {{#if (or item.group item.task)}}\n                <div class='d-flex mb-3'>\n                  {{#if item.group}}\n                    <PtlInput\n                      @containerClass='w-50 me-3'\n                      @label={{t\n                        'components.takeoff-uploader-modal.assign.Group'\n                      }}\n                      @key='group'\n                      @model={{item}}\n                      @forceValidationVisible={{gt\n                        item.onAcceptItem.performCount\n                        0\n                      }}\n                      disabled={{true}}\n                    />\n                  {{/if}}\n                  {{#if item.task}}\n                    <PtlInput\n                      @containerClass={{if item.group 'w-50' 'w-100'}}\n                      @required={{true}}\n                      @selectNoBlankOption={{true}}\n                      @type='select'\n                      @label={{t 'common.Task'}}\n                      @key='task'\n                      @options={{get\n                        this.taskOptions\n                        (or item.group this.emptyTaskOptionsKey)\n                      }}\n                      @model={{item}}\n                      @forceValidationVisible={{gt\n                        item.onAcceptItem.performCount\n                        0\n                      }}\n                    />\n                  {{/if}}\n                </div>\n              {{/if}}\n              {{#if (or item.description item.sku)}}\n                <div class='d-flex mb-3'>\n                  {{#if item.description}}\n                    <PtlInput\n                      @containerClass='flex-grow-1 me-3'\n                      @label={{t 'shared.task.Product description'}}\n                      @key='description'\n                      @model={{item}}\n                      @forceValidationVisible={{gt\n                        item.onAcceptItem.performCount\n                        0\n                      }}\n                      disabled={{true}}\n                    />\n                  {{/if}}\n                  {{#if item.sku}}\n                    <PtlInput\n                      @containerClass='flex-grow-1'\n                      @label={{t 'common.SKU'}}\n                      @key='sku'\n                      @model={{item}}\n                      @forceValidationVisible={{gt\n                        item.onAcceptItem.performCount\n                        0\n                      }}\n                      disabled={{true}}\n                    />\n                  {{/if}}\n                </div>\n              {{/if}}\n              <div class='d-flex mb-3'>\n                <PtlInput\n                  @containerClass='me-3'\n                  @type='number'\n                  @label={{t 'common.Quantity'}}\n                  @min={{0}}\n                  @key='quantity'\n                  @model={{item}}\n                  @required={{true}}\n                  @forceValidationVisible={{gt item.onAcceptItem.performCount 0}}\n                  disabled={{this.continue.isRunning}}\n                />\n                <PtlInput\n                  @containerClass='flex-grow-1 me-3'\n                  @type={{if item.isLabourHours 'duration' 'currency'}}\n                  @label={{t 'common.Rate'}}\n                  @key='rate'\n                  @model={{item}}\n                  @required={{true}}\n                  @forceValidationVisible={{gt item.onAcceptItem.performCount 0}}\n                  disabled={{this.continue.isRunning}}\n                />\n                <PtlInput\n                  @containerClass='flex-grow-1'\n                  @type={{if item.isLabourHours 'duration' 'currency'}}\n                  @label={{t 'common.Total'}}\n                  @key='computedItemTotal'\n                  @model={{item}}\n                  @forceValidationVisible={{gt item.onAcceptItem.performCount 0}}\n                  disabled={{true}}\n                />\n              </div>\n              <PtlInput\n                @required={{true}}\n                @description={{item.valueTypeExplainerMessage}}\n                @selectNoBlankOption={{true}}\n                @type='select'\n                @label={{t 'common.Type'}}\n                @key='valueType'\n                @options={{item.valueTypes}}\n                @model={{item}}\n                @forceValidationVisible={{gt item.onAcceptItem.performCount 0}}\n              />\n  \n              <table class='table align-middle'>\n                <thead>\n                  <tr>\n                    <th>{{t 'common.Type'}}</th>\n                    <th>{{t\n                        'components.takeoff-uploader-modal.assign.Proportion'\n                      }}</th>\n                    <th>{{t 'common.Total'}}</th>\n                    <th></th>\n                  </tr>\n                </thead>\n                <tbody>\n                  {{! labour hours can only assign hours because we are dealing with a ratio of the item value }}\n                  {{#if item.isLabourHours}}\n                    <tr>\n                      <td>{{t 'common.Labour hours'}}</td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='percentage'\n                          @key='labourHoursRatio'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='duration'\n                          @key='labourHoursTotal'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <button\n                          type='button'\n                          class='btn btn-link text-decoration-underline'\n                          {{on\n                            'click'\n                            (fn item.onAllFigureTypeClick 'labourHours')\n                          }}\n                        >\n                          {{t\n                            'components.takeoff-uploader-modal.assign.All labour hours'\n                          }}\n                        </button>\n                      </td>\n                    </tr>\n                  {{else}}\n                    <tr>\n                      <td>{{t 'common.Labour hours'}}</td>\n                      <td></td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='duration'\n                          @key='labourHoursTotal'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td></td>\n                    </tr>\n                    <tr>\n                      <td>{{t 'common.Labour'}}</td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='percentage'\n                          @key='labourRatio'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='currency'\n                          @key='labourTotal'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <button\n                          type='button'\n                          class='btn btn-link text-decoration-underline'\n                          {{on 'click' (fn item.onAllFigureTypeClick 'labour')}}\n                        >\n                          {{t\n                            'components.takeoff-uploader-modal.assign.All labour'\n                          }}\n                        </button>\n                      </td>\n                    </tr>\n                    <tr>\n                      <td>{{t 'common.Materials'}}</td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='percentage'\n                          @key='materialsRatio'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='currency'\n                          @key='materialsTotal'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <button\n                          type='button'\n                          class='btn btn-link text-decoration-underline'\n                          {{on\n                            'click'\n                            (fn item.onAllFigureTypeClick 'materials')\n                          }}\n                        >\n                          {{t\n                            'components.takeoff-uploader-modal.assign.All materials'\n                          }}\n                        </button>\n                      </td>\n                    </tr>\n                    <tr>\n                      <td>{{t 'common.Subcontractors'}}</td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='percentage'\n                          @key='subcontractorsRatio'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='currency'\n                          @key='subcontractorsTotal'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <button\n                          type='button'\n                          class='btn btn-link text-decoration-underline'\n                          {{on\n                            'click'\n                            (fn item.onAllFigureTypeClick 'subcontractors')\n                          }}\n                        >\n                          {{t\n                            'components.takeoff-uploader-modal.assign.All subcontractors'\n                          }}\n                        </button>\n                      </td>\n                    </tr>\n                    <tr>\n                      <td>{{t 'common.Sums'}}</td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='percentage'\n                          @key='sumsRatio'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <PtlInput\n                          @containerClass='m-0'\n                          @type='currency'\n                          @key='sumsTotal'\n                          @model={{item}}\n                          @forceValidationVisible={{gt\n                            item.onAcceptItem.performCount\n                            0\n                          }}\n                          disabled={{this.continue.isRunning}}\n                        />\n                      </td>\n                      <td>\n                        <button\n                          type='button'\n                          class='btn btn-link text-decoration-underline'\n                          {{on 'click' (fn item.onAllFigureTypeClick 'sums')}}\n                        >\n                          {{t\n                            'components.takeoff-uploader-modal.assign.All sums'\n                          }}\n                        </button>\n                      </td>\n                    </tr>\n                  {{/if}}\n                  {{#if item.isLabourHours}}\n                    <tr>\n                      <td></td>\n                      <td>\n                        <div class='d-flex flex-column'>\n                          <span>\n                            <b>\n                              {{number-format\n                                item.computedTotalUsed\n                                style='percent'\n                                dashZero=false\n                                maximumFractionDigits=2\n                                minimumFractionDigits=2\n                              }}\n                            </b>\n                          </span>\n                          {{#if (not-eq item.computedTotalUsedRemaining 0)}}\n                            <span>\n                              {{number-format\n                                item.computedTotalUsedRemaining\n                                style='percent'\n                                dashZero=true\n                                maximumFractionDigits=2\n                                minimumFractionDigits=2\n                              }}\n                              {{if\n                                (gt item.computedTotalUsedRemaining 0)\n                                (t\n                                  'components.takeoff-uploader-modal.assign.remaining'\n                                )\n                                (t\n                                  'components.takeoff-uploader-modal.assign.over'\n                                )\n                              }}\n                            </span>\n                          {{/if}}\n                        </div>\n                      </td>\n                      <td>\n                        <div class='d-flex flex-column'>\n                          <span>\n                            <b>\n                              {{format-duration\n                                item.computedTotal\n                                emptyPlaceholder='0:00'\n                              }}\n                              {{t\n                                'components.takeoff-uploader-modal.assign.hours'\n                              }}\n                            </b>\n                          </span>\n                          {{#if (not-eq item.computedTotalRemaining 0)}}\n                            <span>\n                              {{format-duration\n                                item.computedTotalRemaining\n                                emptyPlaceholder='0:00'\n                              }}\n                              {{if\n                                (gt item.computedTotalRemaining 0)\n                                (t\n                                  'components.takeoff-uploader-modal.assign.remaining'\n                                )\n                                (t\n                                  'components.takeoff-uploader-modal.assign.over'\n                                )\n                              }}\n                            </span>\n                          {{/if}}\n                        </div>\n                      </td>\n                      <td></td>\n                    </tr>\n                  {{else}}\n                    <tr>\n                      <td></td>\n                      <td>\n                        <div class='d-flex flex-column'>\n                          <span>\n                            <b>\n                              {{number-format\n                                item.computedTotalUsed\n                                style='percent'\n                                dashZero=false\n                                maximumFractionDigits=2\n                                minimumFractionDigits=2\n                              }}\n                            </b>\n                          </span>\n                          {{#if (not-eq item.computedTotalUsedRemaining 0)}}\n                            <span>\n                              {{number-format\n                                item.computedTotalUsedRemaining\n                                style='percent'\n                                dashZero=true\n                                maximumFractionDigits=2\n                                minimumFractionDigits=2\n                              }}\n                              {{if\n                                (gt item.computedTotalUsedRemaining 0)\n                                (t\n                                  'components.takeoff-uploader-modal.assign.remaining'\n                                )\n                                (t\n                                  'components.takeoff-uploader-modal.assign.over'\n                                )\n                              }}\n                            </span>\n                          {{/if}}\n                        </div>\n                      </td>\n                      <td>\n                        <div class='d-flex flex-column'>\n                          <span>\n                            <b>\n                              {{number-format\n                                item.computedTotal\n                                style='currency'\n                                dashZero=false\n                              }}\n                            </b>\n                          </span>\n                          {{#if (not-eq item.computedTotalRemaining 0)}}\n                            <span>\n                              {{number-format\n                                item.computedTotalRemaining\n                                style='currency'\n                                dashZero=true\n                              }}\n                              {{if\n                                (gt item.computedTotalRemaining 0)\n                                (t\n                                  'components.takeoff-uploader-modal.assign.remaining'\n                                )\n                                (t\n                                  'components.takeoff-uploader-modal.assign.over'\n                                )\n                              }}\n                            </span>\n                          {{/if}}\n                        </div>\n                      </td>\n                      <td></td>\n                    </tr>\n                  {{/if}}\n                </tbody>\n              </table>\n  \n              {{#each item.generalInfoMessages as |message|}}\n                <div class='alert alert-info' role='alert'>\n                  <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n                  <span class='me-2'>\n                    {{message.validation}}\n                  </span>\n                </div>\n              {{/each}}\n              {{#if (gt item.onAcceptItem.performCount 0)}}\n                {{#each item.generalErrorMessages as |message|}}\n                  <div class='alert alert-warning' role='alert'>\n                    <FaIcon @icon='exclamation-circle' @size='lg' class='me-2' />\n                    <span class='me-2'>\n                      {{message.validation}}\n                    </span>\n                  </div>\n                {{/each}}\n              {{/if}}\n              <div class='d-flex flex-grow-1'>\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  {{on 'click' (fn item.onDelete item)}}\n                >{{t\n                    'components.takeoff-uploader-modal.assign.Remove item'\n                  }}</button>\n                <button\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  {{on 'click' (perform item.onAcceptItem index)}}\n                >{{t\n                    'components.takeoff-uploader-modal.assign.Accept item'\n                  }}</button>\n              </div>\n            {{/if}}\n          </PtlForm>\n        </LazyEach>\n  \n        <div\n          class='border-top bg-white m-n3 p-3'\n          {{! -1rem is equal to m-3 }}\n          style='position: sticky; bottom: -1rem; margin-top: 1rem!important; z-index: 1020;'\n        >\n          <table class='table'>\n            <thead>\n              <tr>\n                <th colspan='7'>{{t 'common.Summary'}}</th>\n              </tr>\n              <tr>\n                <th>{{t 'common.Type'}}</th>\n                <th>{{t 'common.Labour hours'}}</th>\n                <th>{{t 'common.Labour'}}</th>\n                <th>{{t 'common.Materials'}}</th>\n                <th>{{t 'common.Subcontractors'}}</th>\n                <th>{{t 'common.Sums'}}</th>\n                <th>{{t 'common.Total'}}</th>\n              </tr>\n            </thead>\n            <tbody>\n              <tr>\n                <td>{{t 'common.Budget'}}</td>\n                <td>\n                  {{format-duration this.totalManHoursBudget}}\n                </td>\n                <td>\n                  {{number-format\n                    this.totalLabourBudget\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                <td>\n                  {{number-format\n                    this.totalMaterialsBudget\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                <td>\n                  {{number-format\n                    this.totalSubcontractorsBudget\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                <td>\n                  {{number-format\n                    this.totalSumsBudget\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                <td>\n                  {{number-format\n                    this.totalBudget\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n              </tr>\n              <tr>\n                <td>{{t 'common.Quote'}}</td>\n                {{! technically the man hours quote exists but it is never shown to the user }}\n                <td></td>\n                <td>\n                  {{number-format\n                    this.totalLabourQuote\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                <td>\n                  {{number-format\n                    this.totalMaterialsQuote\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                <td>\n                  {{number-format\n                    this.totalSubcontractorsQuote\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                <td>\n                  {{number-format\n                    this.totalSumsQuote\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n                <td>\n                  {{number-format this.totalQuote style='currency' dashZero=true}}\n                </td>\n              </tr>\n            </tbody>\n          </table>\n  \n          <div class='d-flex justify-content-end p-2'>\n            <button\n              class='btn btn-secondary me-2'\n              type='button'\n              {{on 'click' this.onAllAcceptItem}}\n            >{{t\n                'components.takeoff-uploader-modal.assign.Accept all items'\n              }}</button>\n            <button\n              class='btn btn-primary'\n              type='button'\n              disabled={{gt this.errors.length 0}}\n              {{on 'click' (fn (perform this.continue))}}\n            >{{t 'shared.task.Continue to next step'}}</button>\n          </div>\n        </div>\n      {{else}}\n        <p class='text-center'>\n          {{t\n            'components.takeoff-uploader-modal.assign.No items could be found in this file'\n          }}\n        </p>\n        <button\n          type='button'\n          class='btn btn-primary align-self-center mb-3'\n          {{on 'click' @onCancel}}\n        >\n          {{t\n            'components.takeoff-uploader-modal.assign.Try uploading another file'\n          }}\n        </button>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"5zK2gmo5\",\n    \"block\": \"[[[10,0],[14,0,\\\"d-flex flex-column\\\"],[14,5,\\\"max-width: 768px\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"takeoffItems\\\",\\\"length\\\"]],[[[41,[30,0,[\\\"invalidRowMessage\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"alert alert-warning\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,3],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"invalidRowMessage\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.Group type actions\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-2\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onAllValueTypeClick\\\"]],\\\"budget\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All budget\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onAllValueTypeClick\\\"]],\\\"quote\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All quote\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onAllValueTypeClick\\\"]],\\\"labourHours\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All labour hours\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.Group proportion actions\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onAllFigureTypeClick\\\"]],\\\"labour\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All labour\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onAllFigureTypeClick\\\"]],\\\"materials\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All materials\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onAllFigureTypeClick\\\"]],\\\"subcontractors\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All subcontractors\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onAllFigureTypeClick\\\"]],\\\"sums\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All sums\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onAllFigureTypeClick\\\"]],\\\"labourHours\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All labour hours\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,10],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@windowSelector\\\"],[[30,0,[\\\"takeoffItems\\\"]],true,\\\"10\\\",\\\"10\\\",\\\"#takeoff-uploader-modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,11],[[16,0,[29,[\\\"mb-3 \\\",[30,2]]]],[16,1,[29,[\\\"takeoff-uploader-modal__assign--\\\",[30,3]]]]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"collapsed\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"h4\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"h4 m-0 me-3 text-decoration-underline text-primary\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,13],[[30,1,[\\\"collapsed\\\"]]],null],false],null]],null],[12],[1,[28,[35,14],[[30,1,[\\\"task\\\"]],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.Unnamed item\\\"],null]],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4 m-0 ms-auto me-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isLabourHours\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,15],[[30,1,[\\\"computedTotal\\\"]]],[[\\\"emptyPlaceholder\\\"],[\\\"0:00\\\"]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,16],[[30,1,[\\\"computedTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,14],[[30,1,[\\\"group\\\"]],[30,1,[\\\"task\\\"]]],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"group\\\"]],[[[1,\\\"                  \\\"],[8,[39,17],[[16,\\\"disabled\\\",true]],[[\\\"@containerClass\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"w-50 me-3\\\",[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.Group\\\"],null],\\\"group\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"task\\\"]],[[[1,\\\"                  \\\"],[8,[39,17],null,[[\\\"@containerClass\\\",\\\"@required\\\",\\\"@selectNoBlankOption\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[[52,[30,1,[\\\"group\\\"]],\\\"w-50\\\",\\\"w-100\\\"],true,true,\\\"select\\\",[28,[37,6],[\\\"common.Task\\\"],null],\\\"task\\\",[28,[37,19],[[30,0,[\\\"taskOptions\\\"]],[28,[37,14],[[30,1,[\\\"group\\\"]],[30,0,[\\\"emptyTaskOptionsKey\\\"]]],null]],null],[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,14],[[30,1,[\\\"description\\\"]],[30,1,[\\\"sku\\\"]]],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"description\\\"]],[[[1,\\\"                  \\\"],[8,[39,17],[[16,\\\"disabled\\\",true]],[[\\\"@containerClass\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"flex-grow-1 me-3\\\",[28,[37,6],[\\\"shared.task.Product description\\\"],null],\\\"description\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"sku\\\"]],[[[1,\\\"                  \\\"],[8,[39,17],[[16,\\\"disabled\\\",true]],[[\\\"@containerClass\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"flex-grow-1\\\",[28,[37,6],[\\\"common.SKU\\\"],null],\\\"sku\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,0],[14,0,\\\"d-flex mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@min\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"me-3\\\",\\\"number\\\",[28,[37,6],[\\\"common.Quantity\\\"],null],0,\\\"quantity\\\",[30,1],true,[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n              \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"flex-grow-1 me-3\\\",[52,[30,1,[\\\"isLabourHours\\\"]],\\\"duration\\\",\\\"currency\\\"],[28,[37,6],[\\\"common.Rate\\\"],null],\\\"rate\\\",[30,1],true,[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n              \\\"],[8,[39,17],[[16,\\\"disabled\\\",true]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"flex-grow-1\\\",[52,[30,1,[\\\"isLabourHours\\\"]],\\\"duration\\\",\\\"currency\\\"],[28,[37,6],[\\\"common.Total\\\"],null],\\\"computedItemTotal\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,17],null,[[\\\"@required\\\",\\\"@description\\\",\\\"@selectNoBlankOption\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[true,[30,1,[\\\"valueTypeExplainerMessage\\\"]],true,\\\"select\\\",[28,[37,6],[\\\"common.Type\\\"],null],\\\"valueType\\\",[30,1,[\\\"valueTypes\\\"]],[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"table\\\"],[14,0,\\\"table align-middle\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Type\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.Proportion\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isLabourHours\\\"]],[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[\\\"common.Labour hours\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"percentage\\\",\\\"labourHoursRatio\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"duration\\\",\\\"labourHoursTotal\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,1,[\\\"onAllFigureTypeClick\\\"]],\\\"labourHours\\\"],null]],null],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All labour hours\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[\\\"common.Labour hours\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"duration\\\",\\\"labourHoursTotal\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"percentage\\\",\\\"labourRatio\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"currency\\\",\\\"labourTotal\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,1,[\\\"onAllFigureTypeClick\\\"]],\\\"labour\\\"],null]],null],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All labour\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"percentage\\\",\\\"materialsRatio\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"currency\\\",\\\"materialsTotal\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,1,[\\\"onAllFigureTypeClick\\\"]],\\\"materials\\\"],null]],null],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All materials\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"percentage\\\",\\\"subcontractorsRatio\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"currency\\\",\\\"subcontractorsTotal\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,1,[\\\"onAllFigureTypeClick\\\"]],\\\"subcontractors\\\"],null]],null],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All subcontractors\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"percentage\\\",\\\"sumsRatio\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,17],[[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"m-0\\\",\\\"currency\\\",\\\"sumsTotal\\\",[30,1],[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,1,[\\\"onAllFigureTypeClick\\\"]],\\\"sums\\\"],null]],null],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.All sums\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[30,1,[\\\"isLabourHours\\\"]],[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,1],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,16],[[30,1,[\\\"computedTotalUsed\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",false,2,2]]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[[30,1,[\\\"computedTotalUsedRemaining\\\"]],0],null],[[[1,\\\"                          \\\"],[10,1],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,16],[[30,1,[\\\"computedTotalUsedRemaining\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                            \\\"],[1,[52,[28,[37,18],[[30,1,[\\\"computedTotalUsedRemaining\\\"]],0],null],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.remaining\\\"],null],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.over\\\"],null]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,1],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,15],[[30,1,[\\\"computedTotal\\\"]]],[[\\\"emptyPlaceholder\\\"],[\\\"0:00\\\"]]]],[1,\\\"\\\\n                            \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.hours\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[[30,1,[\\\"computedTotalRemaining\\\"]],0],null],[[[1,\\\"                          \\\"],[10,1],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,15],[[30,1,[\\\"computedTotalRemaining\\\"]]],[[\\\"emptyPlaceholder\\\"],[\\\"0:00\\\"]]]],[1,\\\"\\\\n                            \\\"],[1,[52,[28,[37,18],[[30,1,[\\\"computedTotalRemaining\\\"]],0],null],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.remaining\\\"],null],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.over\\\"],null]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,1],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,16],[[30,1,[\\\"computedTotalUsed\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",false,2,2]]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[[30,1,[\\\"computedTotalUsedRemaining\\\"]],0],null],[[[1,\\\"                          \\\"],[10,1],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,16],[[30,1,[\\\"computedTotalUsedRemaining\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                            \\\"],[1,[52,[28,[37,18],[[30,1,[\\\"computedTotalUsedRemaining\\\"]],0],null],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.remaining\\\"],null],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.over\\\"],null]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n                        \\\"],[10,1],[12],[1,\\\"\\\\n                          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,16],[[30,1,[\\\"computedTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",false]]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[[30,1,[\\\"computedTotalRemaining\\\"]],0],null],[[[1,\\\"                          \\\"],[10,1],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,16],[[30,1,[\\\"computedTotalRemaining\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                            \\\"],[1,[52,[28,[37,18],[[30,1,[\\\"computedTotalRemaining\\\"]],0],null],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.remaining\\\"],null],[28,[37,6],[\\\"components.takeoff-uploader-modal.assign.over\\\"],null]]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,29],[[28,[37,29],[[30,1,[\\\"generalInfoMessages\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[14,0,\\\"alert alert-info\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,3],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,4,[\\\"validation\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[41,[28,[37,18],[[30,1,[\\\"onAcceptItem\\\",\\\"performCount\\\"]],0],null],[[[42,[28,[37,29],[[28,[37,29],[[30,1,[\\\"generalErrorMessages\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,0],[14,0,\\\"alert alert-warning\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,3],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"exclamation-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,5,[\\\"validation\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null]],[]],null],[1,\\\"            \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,1,[\\\"onDelete\\\"]],[30,1]],null]],null],[12],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.Remove item\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,30],[[30,1,[\\\"onAcceptItem\\\"]],[30,3]],null]],null],[12],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.Accept item\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1,2,3]]]]],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"border-top bg-white m-n3 p-3\\\"],[14,5,\\\"position: sticky; bottom: -1rem; margin-top: 1rem!important; z-index: 1020;\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[12],[1,[28,[35,6],[\\\"common.Summary\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Type\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Labour hours\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[\\\"common.Budget\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,15],[[30,0,[\\\"totalManHoursBudget\\\"]]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalLabourBudget\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalMaterialsBudget\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalSubcontractorsBudget\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalSumsBudget\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalBudget\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,6],[\\\"common.Quote\\\"],null]],[13],[1,\\\"\\\\n\\\"],[1,\\\"              \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalLabourQuote\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalMaterialsQuote\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalSubcontractorsQuote\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalSumsQuote\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,16],[[30,0,[\\\"totalQuote\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex justify-content-end p-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[30,0,[\\\"onAllAcceptItem\\\"]]],null],[12],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.Accept all items\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,18],[[30,0,[\\\"errors\\\",\\\"length\\\"]],0],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,30],[[30,0,[\\\"continue\\\"]]],null]],null]],null],[12],[1,[28,[35,6],[\\\"shared.task.Continue to next step\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.No items could be found in this file\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-center mb-3\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[30,6]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"components.takeoff-uploader-modal.assign.Try uploading another file\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13]],[\\\"item\\\",\\\"identifier\\\",\\\"index\\\",\\\"message\\\",\\\"message\\\",\\\"@onCancel\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"label\\\",\\\"t\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"lazy-each\\\",\\\"ptl-form\\\",\\\"h4\\\",\\\"mut\\\",\\\"or\\\",\\\"format-duration\\\",\\\"number-format\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"get\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"td\\\",\\\"b\\\",\\\"not-eq\\\",\\\"each\\\",\\\"-track-array\\\",\\\"perform\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/components/takeoff-uploader-modal/assign.hbs\",\n    \"isStrictMode\": false\n  });\n  const round = num => {\n    // assume anything 1 and smaller is a percentage - not ideal but meh\n    const sig = num <= 1 ? 4 : 2;\n    return (0, _mathjs.round)(num, sig);\n  };\n  const evaluate = eq => {\n    let result = round((0, _mathjs.evaluate)(eq));\n    if (Number.isNaN(result)) result = 0;\n    return result;\n  };\n  const parsePercentage = original => {\n    const value = (0, _parseCurrencyString.default)(original);\n    if (original.includes('%')) return value / 100;\n    return value;\n  };\n  const calculateQuoteValue = (profitType, value, percentage) => {\n    switch (profitType) {\n      case 'MARGIN':\n        // if margin check percentage is less that 1\n        if (percentage >= 1) return 0;\n        return evaluate(`${value} / ${1 - percentage || Infinity}`);\n      case 'MARKUP':\n        return evaluate(`${value} * ${percentage} + ${value}`);\n      default:\n        throw new Error(`Invalid profit type: ${profitType}`);\n    }\n  };\n\n  // NOTE: I found that adding the @computed property greatly increased the performance of this page\n  // tracked properties are not perfect yet\n  let TakeoffItem = (_dec = (0, _object.computed)('quantity', 'rate'), _dec2 = (0, _object.computed)('labourHoursTotal', 'computedItemTotal'), _dec3 = (0, _object.computed)('labourTotal', 'computedItemTotal'), _dec4 = (0, _object.computed)('materialsTotal', 'computedItemTotal'), _dec5 = (0, _object.computed)('subcontractorsTotal', 'computedItemTotal'), _dec6 = (0, _object.computed)('sumsTotal', 'computedItemTotal'), _dec7 = (0, _object.computed)('valueType'), _dec8 = (0, _object.computed)('isLabourHours', 'labourHours', 'labourHoursTotal', 'labourTotal', 'materialsTotal', 'subcontractorsTotal', 'sumsTotal'), _dec9 = (0, _object.computed)('computedItemTotal', 'computedTotal'), _dec0 = (0, _object.computed)('computedTotal', 'computedItemTotal'), _dec1 = (0, _object.computed)('computedTotalUsed'), _dec10 = (0, _object.computed)('profitMargin', 'translations', 'valueType', 'fileHasProfitMargin'), _dec11 = (0, _object.computed)('task', 'quantity', 'rate', 'profitMargin', 'total', 'contingency', 'fileHasProfitMargin'), _dec12 = (0, _object.computed)('computedItemTotal', 'computedTotal', 'task.length', 'translations'), _dec13 = (0, _object.computed)('computedItemTotal', 'isLabourHours', 'numberFormat', 'total'), _dec14 = (0, _object.computed)('computedItemTotal', 'computedTotal', 'translations'), _dec15 = (0, _object.computed)('project.effectiveProfitMargin'), _dec16 = (0, _object.computed)('profitType', 'profitMargin', 'fileHasProfitMargin', 'effectiveProfitMargin.{labourPercentage.type,labourPercentage.value,materialsPercentage.type,materialsPercentage.value,subcontractorsPercentage.type,subcontractorsPercentage.value,sumsPercentage.type,sumsPercentage.value}'), _dec17 = (0, _object.computed)('labourHoursTotal'), _dec18 = (0, _object.computed)('valueType', 'labourTotal', 'margins.labour.{budget,type}'), _dec19 = (0, _object.computed)('valueType', 'materialsTotal', 'margins.materials.{budget,type}'), _dec20 = (0, _object.computed)('valueType', 'subcontractorsTotal', 'margins.subcontractors.{budget,type}'), _dec21 = (0, _object.computed)('valueType', 'sumsTotal', 'margins.sums.{budget,type}'), _dec22 = (0, _object.computed)('labourBudget', 'materialsBudget', 'subcontractorsBudget', 'sumsBudget'), _dec23 = (0, _object.computed)('labourHoursTotal'), _dec24 = (0, _object.computed)('valueType', 'labourTotal', 'margins.labour.{quote,type}'), _dec25 = (0, _object.computed)('valueType', 'materialsTotal', 'margins.materials.{quote,type}'), _dec26 = (0, _object.computed)('valueType', 'subcontractorsTotal', 'margins.subcontractors.{quote,type}'), _dec27 = (0, _object.computed)('valueType', 'sumsTotal', 'margins.sums.{quote,type}'), _dec28 = (0, _object.computed)('labourQuote', 'materialsQuote', 'subcontractorsQuote', 'sumsQuote'), _class = class TakeoffItem {\n    get computedItemTotal() {\n      return evaluate(`${this.quantity} * ${this.rate}`);\n    }\n    get labourHoursRatio() {\n      return evaluate(`${this.labourHoursTotal} / ${this.computedItemTotal || 0}`);\n    }\n    set labourHoursRatio(value) {\n      (0, _object.set)(this, 'labourHoursTotal', evaluate(`${this.computedItemTotal} * ${value}`));\n    }\n    get labourRatio() {\n      return evaluate(`${this.labourTotal} / ${this.computedItemTotal || 0}`);\n    }\n    set labourRatio(value) {\n      (0, _object.set)(this, 'labourTotal', evaluate(`${this.computedItemTotal} * ${value}`));\n    }\n    get materialsRatio() {\n      return evaluate(`${this.materialsTotal} / ${this.computedItemTotal || 0}`);\n    }\n    set materialsRatio(value) {\n      (0, _object.set)(this, 'materialsTotal', evaluate(`${this.computedItemTotal} * ${value}`));\n    }\n    get subcontractorsRatio() {\n      return evaluate(`${this.subcontractorsTotal} / ${this.computedItemTotal || 0}`);\n    }\n    set subcontractorsRatio(value) {\n      (0, _object.set)(this, 'subcontractorsTotal', evaluate(`${this.computedItemTotal} * ${value}`));\n    }\n    get sumsRatio() {\n      return evaluate(`${this.sumsTotal} / ${this.computedItemTotal || 0}`);\n    }\n    set sumsRatio(value) {\n      (0, _object.set)(this, 'sumsTotal', evaluate(`${this.computedItemTotal} * ${value}`));\n    }\n    get valueTypes() {\n      return [{\n        label: this.translations['common.Budget'],\n        value: 'budget'\n      }, {\n        label: this.translations['common.Quote'],\n        value: 'quote'\n      }, {\n        label: this.translations['common.Labour hours'],\n        value: 'labourHours'\n      }];\n    }\n    // this is used to switch the value type from currency to hours\n    get isLabourHours() {\n      return this.valueType === 'labourHours';\n    }\n    get computedTotal() {\n      if (this.isLabourHours) return this.labourHoursTotal;\n      return round(this.labourTotal + this.materialsTotal + this.subcontractorsTotal + this.sumsTotal);\n    }\n    get computedTotalRemaining() {\n      return round(this.computedItemTotal - this.computedTotal);\n    }\n    get computedTotalUsed() {\n      return evaluate(`${this.computedTotal} / ${this.computedItemTotal || Infinity}`);\n    }\n    get computedTotalUsedRemaining() {\n      return round(1 - this.computedTotalUsed);\n    }\n    get fileHasProfitMargin() {\n      return Number.isFinite(this.profitMargin);\n    }\n    get valueTypeExplainerMessage() {\n      if (this.valueType === 'budget') {\n        const explainerMessage = this.fileHasProfitMargin ? this.translations['components.takeoff-uploader-modal.assign.quoteFiguresWillBeAutomaticallyGeneratedUsingTheMarginProvidedInTheFile'] : this.translations['components.takeoff-uploader-modal.assign.quoteFiguresWillBeAutomaticallyGeneratedUsingTheMarginsOnThisProject'];\n        return explainerMessage;\n      }\n      if (this.valueType === 'quote') {\n        const explainerMessage = this.fileHasProfitMargin ? this.translations['components.takeoff-uploader-modal.assign.budgetFiguresWillBeAutomaticallyGeneratedFromTheMarginProvidedInTheFile'] : this.translations['components.takeoff-uploader-modal.assign.budgetFiguresWillBeAutomaticallyGeneratedFromTheMarginsOnThisProject'];\n        return explainerMessage;\n      }\n      return null;\n    }\n\n    // used to identify if the item is worth assigning\n    get canBeAssigned() {\n      // anything that isn't just a task name\n      return Boolean(this.task && (this.quantity || this.rate || this.fileHasProfitMargin || this.total || this.contingency));\n    }\n    get(key) {\n      return this[key];\n    }\n    get errors() {\n      const errors = [];\n      const valueInputKeys = ['labourTotal', 'labourRatio', 'materialsTotal', 'materialsRatio', 'subcontractorsTotal', 'subcontractorsRatio', 'sumsTotal', 'sumsRatio'];\n      if (!this.task.length) {\n        errors.push({\n          key: 'task',\n          validation: this.translations['validation.You must provide a task name']\n        });\n      }\n\n      // you cant assign more than the value of your item\n      if (this.computedItemTotal < this.computedTotal) {\n        valueInputKeys.forEach(key => errors.push({\n          key\n        }));\n        errors.push({\n          key: 'general',\n          validation: this.translations['validation.youCanNotAssignMoreThanTheValueOfYourItem']\n        });\n      }\n\n      // you haven't assigned all your costs yet (you need to)\n      if (this.computedItemTotal > this.computedTotal) {\n        valueInputKeys.forEach(key => errors.push({\n          key\n        }));\n        errors.push({\n          key: 'general',\n          validation: this.translations['validation.youMustAssignAllTheValueOfYourItem']\n        });\n      }\n      return errors;\n    }\n    get generalInfoMessages() {\n      const errors = [];\n\n      // there is a difference between the imported document total and the computed total\n      if (this.total - this.computedItemTotal > 0.01) {\n        const formattedTotal = this.isLabourHours ? (0, _durationInput.formatDuration)([this.total]) : this.numberFormat.format(this.total, {\n          style: 'currency',\n          dashZero: true\n        });\n        errors.push({\n          key: 'general',\n          validation: `The original total provided in the file was ${formattedTotal}.`\n        });\n      }\n      return errors;\n    }\n    get generalErrorMessages() {\n      const errors = [];\n\n      // TODO you can actually do this - a contingency for example\n      // you cant assign more than the value of your item\n      if (this.computedItemTotal < this.computedTotal) {\n        errors.push({\n          key: 'general',\n          validation: this.translations['validation.youCanNotAssignMoreThanTheValueOfYourItem']\n        });\n      }\n\n      // you haven't assigned all your costs yet (you need to)\n      if (this.computedItemTotal > this.computedTotal) {\n        errors.push({\n          key: 'general',\n          validation: this.translations['validation.youMustAssignAllTheValueOfYourItem']\n        });\n      }\n      return errors;\n    }\n    get effectiveProfitMargin() {\n      return this.project.effectiveProfitMargin;\n    }\n    get margins() {\n      if (this.fileHasProfitMargin) {\n        return {\n          labour: {\n            budget: 1 - this.profitMargin,\n            quote: this.profitMargin,\n            type: this.profitType\n          },\n          materials: {\n            budget: 1 - this.profitMargin,\n            quote: this.profitMargin,\n            type: this.profitType\n          },\n          subcontractors: {\n            budget: 1 - this.profitMargin,\n            quote: this.profitMargin,\n            type: this.profitType\n          },\n          sums: {\n            budget: 1 - this.profitMargin,\n            quote: this.profitMargin,\n            type: this.profitType\n          }\n        };\n      }\n      const effectiveLabourMargin = this.effectiveProfitMargin.labourPercentage.value || 0;\n      const effectiveMaterialsMargin = this.effectiveProfitMargin.materialsPercentage.value || 0;\n      const effectiveSubcontractorsMargin = this.effectiveProfitMargin.subcontractorsPercentage.value || 0;\n      const effectiveSumsMargin = this.effectiveProfitMargin.sumsPercentage.value || 0;\n      return {\n        labour: {\n          budget: 1 - effectiveLabourMargin,\n          quote: effectiveLabourMargin,\n          type: this.effectiveProfitMargin.labourPercentage.type || 'MARGIN'\n        },\n        materials: {\n          budget: 1 - effectiveMaterialsMargin,\n          quote: effectiveMaterialsMargin,\n          type: this.effectiveProfitMargin.materialsPercentage.type || 'MARGIN'\n        },\n        subcontractors: {\n          budget: 1 - effectiveSubcontractorsMargin,\n          quote: effectiveSubcontractorsMargin,\n          type: this.effectiveProfitMargin.subcontractorsPercentage.type || 'MARGIN'\n        },\n        sums: {\n          budget: 1 - effectiveSumsMargin,\n          quote: effectiveSumsMargin,\n          type: this.effectiveProfitMargin.sumsPercentage.type || 'MARGIN'\n        }\n      };\n    }\n    get manHoursBudget() {\n      return this.labourHoursTotal;\n    }\n    get labourBudget() {\n      switch (this.valueType) {\n        case 'budget':\n          return this.labourTotal;\n        case 'quote':\n          return calculateQuoteValue(this.margins.labour.type, this.labourTotal, this.margins.labour.budget);\n        default:\n          return 0;\n      }\n    }\n    get materialsBudget() {\n      switch (this.valueType) {\n        case 'budget':\n          return this.materialsTotal;\n        case 'quote':\n          return calculateQuoteValue(this.margins.materials.type, this.materialsTotal, this.margins.materials.budget);\n        default:\n          return 0;\n      }\n    }\n    get subcontractorsBudget() {\n      switch (this.valueType) {\n        case 'budget':\n          return this.subcontractorsTotal;\n        case 'quote':\n          return calculateQuoteValue(this.margins.subcontractors.type, this.subcontractorsTotal, this.margins.subcontractors.budget);\n        default:\n          return 0;\n      }\n    }\n    get sumsBudget() {\n      switch (this.valueType) {\n        case 'budget':\n          return this.sumsTotal;\n        case 'quote':\n          return calculateQuoteValue(this.margins.sums.type, this.sumsTotal, this.margins.sums.budget);\n        default:\n          return 0;\n      }\n    }\n    get totalBudget() {\n      return this.labourBudget + this.materialsBudget + this.subcontractorsBudget + this.sumsBudget;\n    }\n    get manHoursQuote() {\n      return this.labourHoursTotal;\n    }\n    get labourQuote() {\n      switch (this.valueType) {\n        case 'budget':\n          return calculateQuoteValue(this.margins.labour.type, this.labourTotal, this.margins.labour.quote);\n        case 'quote':\n          return this.labourTotal;\n        default:\n          return 0;\n      }\n    }\n    get materialsQuote() {\n      switch (this.valueType) {\n        case 'budget':\n          return calculateQuoteValue(this.margins.materials.type, this.materialsTotal, this.margins.materials.quote);\n        case 'quote':\n          return this.materialsTotal;\n        default:\n          return 0;\n      }\n    }\n    get subcontractorsQuote() {\n      switch (this.valueType) {\n        case 'budget':\n          return calculateQuoteValue(this.margins.subcontractors.type, this.subcontractorsTotal, this.margins.subcontractors.quote);\n        case 'quote':\n          return this.subcontractorsTotal;\n        default:\n          return 0;\n      }\n    }\n    get sumsQuote() {\n      switch (this.valueType) {\n        case 'budget':\n          return calculateQuoteValue(this.margins.sums.type, this.sumsTotal, this.margins.sums.quote);\n        case 'quote':\n          return this.sumsTotal;\n        default:\n          return 0;\n      }\n    }\n    get totalQuote() {\n      return this.labourQuote + this.materialsQuote + this.subcontractorsQuote + this.sumsQuote;\n    }\n    constructor(columns, columnTypes, project, onDelete, numberFormat, intl) {\n      _initializerDefineProperty(this, \"translations\", _descriptor, this);\n      _initializerDefineProperty(this, \"project\", _descriptor2, this);\n      _initializerDefineProperty(this, \"collapsed\", _descriptor3, this);\n      _initializerDefineProperty(this, \"task\", _descriptor4, this);\n      _initializerDefineProperty(this, \"usage\", _descriptor5, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor6, this);\n      _initializerDefineProperty(this, \"description\", _descriptor7, this);\n      _initializerDefineProperty(this, \"sku\", _descriptor8, this);\n      _initializerDefineProperty(this, \"gtin\", _descriptor9, this);\n      _initializerDefineProperty(this, \"manufacturer\", _descriptor0, this);\n      _initializerDefineProperty(this, \"group\", _descriptor1, this);\n      _initializerDefineProperty(this, \"quantity\", _descriptor10, this);\n      _initializerDefineProperty(this, \"rate\", _descriptor11, this);\n      _initializerDefineProperty(this, \"total\", _descriptor12, this);\n      _initializerDefineProperty(this, \"unit\", _descriptor13, this);\n      _initializerDefineProperty(this, \"stage\", _descriptor14, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor15, this);\n      _initializerDefineProperty(this, \"taskType\", _descriptor16, this);\n      _initializerDefineProperty(this, \"labourHoursTotal\", _descriptor17, this);\n      _initializerDefineProperty(this, \"labourTotal\", _descriptor18, this);\n      _initializerDefineProperty(this, \"materialsTotal\", _descriptor19, this);\n      _initializerDefineProperty(this, \"subcontractorsTotal\", _descriptor20, this);\n      _initializerDefineProperty(this, \"sumsTotal\", _descriptor21, this);\n      _initializerDefineProperty(this, \"valueType\", _descriptor22, this);\n      _defineProperty(this, \"profitType\", 'MARGIN');\n      // only \"margin\" calculations are supported though the file at the moment\n      _initializerDefineProperty(this, \"profitMargin\", _descriptor23, this);\n      _defineProperty(this, \"onAcceptItem\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (index, scrollToNextItem = true) {\n          if (this.errors.length) return;\n          this.collapsed = true;\n          if (scrollToNextItem) (0, _runloop.next)(() => document.getElementById(`takeoff-uploader-modal__assign--${index + 1}`)?.scrollIntoView());\n        }\n      }), null, \"onAcceptItem\", null));\n      (0, _object.set)(this, 'project', project);\n      // setup the remove item callback\n      this.onDelete = onDelete;\n      (0, _object.set)(this, 'numberFormat', numberFormat);\n      this._initTakeoffItem(columns, columnTypes);\n      (0, _object.set)(this, 'translations', {\n        'common.Budget': intl.t('common.Budget'),\n        'common.Labour hours': intl.t('common.Labour hours'),\n        'common.Quote': intl.t('common.Quote'),\n        'components.takeoff-uploader-modal.assign.budgetFiguresWillBeAutomaticallyGeneratedFromTheMarginProvidedInTheFile': intl.t('components.takeoff-uploader-modal.assign.budgetFiguresWillBeAutomaticallyGeneratedFromTheMarginProvidedInTheFile'),\n        'components.takeoff-uploader-modal.assign.budgetFiguresWillBeAutomaticallyGeneratedFromTheMarginsOnThisProject': intl.t('components.takeoff-uploader-modal.assign.budgetFiguresWillBeAutomaticallyGeneratedFromTheMarginsOnThisProject'),\n        'components.takeoff-uploader-modal.assign.quoteFiguresWillBeAutomaticallyGeneratedUsingTheMarginProvidedInTheFile': intl.t('components.takeoff-uploader-modal.assign.quoteFiguresWillBeAutomaticallyGeneratedUsingTheMarginProvidedInTheFile'),\n        'components.takeoff-uploader-modal.assign.quoteFiguresWillBeAutomaticallyGeneratedUsingTheMarginsOnThisProject': intl.t('components.takeoff-uploader-modal.assign.quoteFiguresWillBeAutomaticallyGeneratedUsingTheMarginsOnThisProject'),\n        // TODO this requires a param and it can't be used outside the constructor\n        // i'm not sure how we should approach this\n        // 'validation.theOriginalTotalProvidedInTheFileWasX': intl.t(\n        //   'validation.theOriginalTotalProvidedInTheFileWasX'\n        // ),\n        'validation.youCanNotAssignMoreThanTheValueOfYourItem': intl.t('validation.youCanNotAssignMoreThanTheValueOfYourItem'),\n        'validation.youMustAssignAllTheValueOfYourItem': intl.t('validation.youMustAssignAllTheValueOfYourItem'),\n        'validation.You must provide a task name': intl.t('validation.You must provide a task name')\n      });\n    }\n    _extractAllocationTypeFromColumn(_column) {\n      const likenessThreshold = 0.8;\n      const column = _column.toLowerCase().trim();\n      const types = [{\n        value: 'labourHours',\n        matches: ['labourHours', 'labour-hours', 'labour hours', 'hours', 'time']\n      }, {\n        value: 'labour',\n        matches: ['labour']\n      }, {\n        value: 'materials',\n        matches: ['materials', 'building materials', 'landscape materials']\n      }, {\n        value: 'subcontractors',\n        matches: ['subcontractors']\n      }, {\n        value: 'sums',\n        matches: ['sums', 'sum', 'allowance', 'allowances']\n      }];\n      const winners = types.map(option => {\n        const scores = (0, _stringSimilarity.findBestMatch)(column, option.matches);\n\n        // we only care about the best match\n        return {\n          value: option.value,\n          rating: scores.bestMatch.rating\n        };\n      });\n\n      // find best matching column type\n      const bestMatch = winners.sort((a, b) => b.rating - a.rating).shift();\n\n      // only continue if the match passes the likeness threshold\n      if (bestMatch.rating < likenessThreshold) return;\n\n      // we have the best matching allocation type\n      return bestMatch.value;\n    }\n    convertTaskTypeToEnum(taskType) {\n      if (!taskType) return 'TASK';\n      const likenessThreshold = 0.8;\n      const enumMap = {\n        sums: 'SUMS',\n        subcontractor: 'SUBCONTRACTOR',\n        plant: 'PLANT',\n        milestone: 'MILESTONE',\n        'builders work': 'BUILDERS_WORK',\n        internal: 'INTERNAL',\n        general: 'TASK'\n      };\n      const scores = (0, _stringSimilarity.findBestMatch)(taskType.toLowerCase().trim().replace(/\\W+/g, ''), Object.keys(enumMap));\n      if (scores.bestMatch.rating < likenessThreshold) return 'TASK';\n      return enumMap[scores.bestMatch.target];\n    }\n    _initTakeoffItem(columns, columnTypes) {\n      let labourTotal;\n      let labourRatio;\n      let materialsTotal;\n      let materialsRatio;\n      let subcontractorsTotal;\n      let subcontractorsRatio;\n      let sumsTotal;\n      let sumsRatio;\n      let hasLabourHoursQuantity;\n      let contingencyPercentage;\n      let contingencyCurrency;\n      let quantity = 0;\n      let rate = 0;\n      let total = 0;\n      let labourHoursTotal = 0;\n      columns.forEach((column, index) => {\n        switch (columnTypes[index]) {\n          case 'do-not-import':\n            break;\n          case 'group':\n            this.group = column?.trim();\n            break;\n          case 'task':\n            (0, _object.set)(this, 'task', column?.trim());\n            break;\n          case 'taskType':\n            this.taskType = this.convertTaskTypeToEnum(column);\n            break;\n          case 'supplier':\n            this.supplier = column?.trim();\n            break;\n          case 'productDescription':\n            this.description = column?.trim();\n            break;\n          case 'usage':\n            this.usage = column?.trim();\n            break;\n          case 'sku':\n            this.sku = column?.trim();\n            break;\n          case 'stage':\n            this.stage = column?.trim();\n            break;\n          case 'gtin':\n            this.gtin = column?.trim();\n            break;\n          case 'manufacturer':\n            this.manufacturer = column?.trim();\n            break;\n          case 'quantity':\n            quantity = (0, _parseCurrencyString.default)(column);\n            break;\n          case 'unit':\n            {\n              this.unit = column?.trim();\n              const hoursTypes = ['duration', 'h', 'hour', 'hours', 'hr', 'hrs'];\n              const isHours = hoursTypes.includes(this.unit.toLowerCase());\n              if (isHours) hasLabourHoursQuantity = true;\n              break;\n            }\n          case 'rate':\n            rate = (0, _parseCurrencyString.default)(column);\n            break;\n          case 'margin':\n            {\n              if (column?.trim()) {\n                (0, _object.set)(this, 'profitMargin', parsePercentage(column));\n              }\n              break;\n            }\n          case 'total':\n            total = (0, _parseCurrencyString.default)(column);\n            break;\n          case 'labourHours':\n            labourHoursTotal = (0, _parseCurrencyString.default)(column);\n            break;\n          case 'contingencyCurrency':\n            {\n              contingencyCurrency = (0, _parseCurrencyString.default)(column);\n              break;\n            }\n          case 'contingencyPercentage':\n            {\n              contingencyPercentage = parsePercentage(column);\n              break;\n            }\n          case 'labourAllocationCurrency':\n            {\n              labourTotal = (0, _parseCurrencyString.default)(column);\n              break;\n            }\n          case 'labourAllocationPercentage':\n            {\n              labourRatio = parsePercentage(column);\n              break;\n            }\n          case 'materialsAllocationCurrency':\n            {\n              materialsTotal = (0, _parseCurrencyString.default)(column);\n              break;\n            }\n          case 'materialsAllocationPercentage':\n            {\n              materialsRatio = parsePercentage(column);\n              break;\n            }\n          case 'subcontractorsAllocationCurrency':\n            {\n              subcontractorsTotal = (0, _parseCurrencyString.default)(column);\n              break;\n            }\n          case 'subcontractorsAllocationPercentage':\n            {\n              subcontractorsRatio = parsePercentage(column);\n              break;\n            }\n          case 'sumsAllocationCurrency':\n            {\n              sumsTotal = (0, _parseCurrencyString.default)(column);\n              break;\n            }\n          case 'sumsAllocationPercentage':\n            {\n              sumsRatio = parsePercentage(column);\n              break;\n            }\n        }\n      });\n      let computedItemTotal = evaluate(`${quantity} * ${rate}`);\n      let finalLabourHoursTotal = labourHoursTotal;\n      let finalLabourTotal = 0;\n      let finalMaterialsTotal = 0;\n      let finalSubcontractorsTotal = 0;\n      let finalSumsTotal = 0;\n\n      // to add contingency without adding contingency concepts to the assigner we just add to the item rate\n      // modifying the original data is not ideal this could be improved\n      if (contingencyCurrency) {\n        const contingencyTotal = computedItemTotal + contingencyCurrency;\n        rate = contingencyTotal / quantity;\n        computedItemTotal = evaluate(`${quantity} * ${rate}`);\n        finalSumsTotal = contingencyCurrency;\n      }\n      if (contingencyPercentage) {\n        const contingencyTotal = (1 + contingencyPercentage) * computedItemTotal;\n        rate = contingencyTotal / quantity;\n        computedItemTotal = evaluate(`${quantity} * ${rate}`);\n        finalSumsTotal = contingencyPercentage * computedItemTotal;\n      }\n      const currentSumsRatio = evaluate(`${finalSumsTotal} / ${computedItemTotal || 0}`);\n\n      // if we had a hours unit we assume we're dealing with labour\n      if (hasLabourHoursQuantity) {\n        finalLabourHoursTotal = quantity;\n        finalLabourTotal = computedItemTotal;\n      }\n\n      // do this after the contingency has been applied\n      // at this stage the sumsTotal and sumsRatio is the calculated contingency for the file\n      if (labourTotal) {\n        finalLabourTotal = labourTotal * (1 + currentSumsRatio);\n      }\n      if (materialsTotal) {\n        finalMaterialsTotal = materialsTotal * (1 + currentSumsRatio);\n      }\n      if (subcontractorsTotal) {\n        finalSubcontractorsTotal = subcontractorsTotal * (1 + currentSumsRatio);\n      }\n      if (sumsTotal) {\n        finalSumsTotal = sumsTotal * (1 + currentSumsRatio);\n      }\n      if (labourRatio) {\n        finalLabourTotal = evaluate(`${computedItemTotal} * ${labourRatio - currentSumsRatio}`);\n      }\n      if (materialsRatio) {\n        finalMaterialsTotal = evaluate(`${computedItemTotal} * ${materialsRatio - currentSumsRatio}`);\n      }\n      if (subcontractorsRatio) {\n        finalSubcontractorsTotal = evaluate(`${computedItemTotal} * ${subcontractorsRatio - currentSumsRatio}`);\n      }\n      if (sumsRatio) {\n        finalSumsTotal = evaluate(`${computedItemTotal} * ${sumsRatio - currentSumsRatio}`);\n      }\n      (0, _object.set)(this, 'quantity', quantity);\n      (0, _object.set)(this, 'rate', rate);\n      (0, _object.set)(this, 'total', total);\n      (0, _object.set)(this, 'labourHoursTotal', finalLabourHoursTotal);\n      (0, _object.set)(this, 'labourTotal', finalLabourTotal);\n      (0, _object.set)(this, 'materialsTotal', finalMaterialsTotal);\n      (0, _object.set)(this, 'subcontractorsTotal', finalSubcontractorsTotal);\n      (0, _object.set)(this, 'sumsTotal', finalSumsTotal);\n    }\n    onAllFigureTypeClick(type) {\n      this.labourRatio = 0;\n      this.materialsRatio = 0;\n      this.subcontractorsRatio = 0;\n      this.sumsRatio = 0;\n      switch (type) {\n        case 'labour':\n          this.labourRatio = 1;\n          break;\n        case 'materials':\n          this.materialsRatio = 1;\n          break;\n        case 'subcontractors':\n          this.subcontractorsRatio = 1;\n          break;\n        case 'sums':\n          this.sumsRatio = 1;\n          break;\n        case 'labourHours':\n          this.labourHoursRatio = 1;\n          break;\n      }\n    }\n    toJSON() {\n      return {\n        collapsed: this.collapsed,\n        task: this.task?.toJSON({\n          includeId: true\n        }),\n        taskType: this.taskType,\n        supplier: this.supplier,\n        description: this.description,\n        usage: this.usage,\n        sku: this.sku,\n        gtin: this.gtin,\n        manufacturer: this.manufacturer,\n        quantity: this.quantity,\n        rate: this.rate,\n        stage: this.stage,\n        unit: this.unit,\n        total: this.total,\n        labourHoursTotal: this.labourHoursTotal,\n        labourTotal: this.labourTotal,\n        materialsTotal: this.materialsTotal,\n        subcontractorsTotal: this.subcontractorsTotal,\n        sumsTotal: this.sumsTotal,\n        valueType: this.valueType,\n        profitType: this.profitType,\n        profitMargin: this.profitMargin,\n        computedItemTotal: this.computedItemTotal,\n        labourHoursRatio: this.labourHoursRatio,\n        labourRatio: this.labourRatio,\n        materialsRatio: this.materialsRatio,\n        subcontractorsRatio: this.subcontractorsRatio,\n        sumsRatio: this.sumsRatio,\n        isLabourHours: this.isLabourHours,\n        computedTotal: this.computedTotal,\n        computedTotalRemaining: this.computedTotalRemaining,\n        computedTotalUsed: this.computedTotalUsed,\n        computedTotalUsedRemaining: this.computedTotalUsedRemaining,\n        valueTypeExplainerMessage: this.valueTypeExplainerMessage,\n        canBeAssigned: this.canBeAssigned,\n        errors: this.errors,\n        generalInfoMessages: this.generalInfoMessages,\n        generalErrorMessages: this.generalErrorMessages,\n        effectiveProfitMargin: this.effectiveProfitMargin,\n        margins: this.margins,\n        manHoursBudget: this.manHoursBudget,\n        labourBudget: this.labourBudget,\n        materialsBudget: this.materialsBudget,\n        subcontractorsBudget: this.subcontractorsBudget,\n        sumsBudget: this.sumsBudget,\n        totalBudget: this.totalBudget,\n        manHoursQuote: this.manHoursQuote,\n        labourQuote: this.labourQuote,\n        materialsQuote: this.materialsQuote,\n        subcontractorsQuote: this.subcontractorsQuote,\n        sumsQuote: this.sumsQuote,\n        totalQuote: this.totalQuote\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"translations\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"project\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"collapsed\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"task\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"usage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"supplier\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"description\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"sku\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"gtin\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"manufacturer\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"group\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"quantity\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"rate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"total\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"unit\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"stage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"numberFormat\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"taskType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"computedItemTotal\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"computedItemTotal\"), _class.prototype), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"labourHoursTotal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"labourHoursRatio\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"labourHoursRatio\"), _class.prototype), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"labourTotal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"labourRatio\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"labourRatio\"), _class.prototype), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"materialsTotal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"materialsRatio\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"materialsRatio\"), _class.prototype), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"subcontractorsTotal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"subcontractorsRatio\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"subcontractorsRatio\"), _class.prototype), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"sumsTotal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"sumsRatio\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"sumsRatio\"), _class.prototype), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"valueType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'budget';\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"isLabourHours\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"isLabourHours\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"computedTotal\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"computedTotal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"computedTotalRemaining\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"computedTotalRemaining\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"computedTotalUsed\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"computedTotalUsed\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"computedTotalUsedRemaining\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"computedTotalUsedRemaining\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"valueTypeExplainerMessage\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"valueTypeExplainerMessage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"canBeAssigned\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"canBeAssigned\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"errors\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"errors\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"generalInfoMessages\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"generalInfoMessages\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"generalErrorMessages\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"generalErrorMessages\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"effectiveProfitMargin\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"effectiveProfitMargin\"), _class.prototype), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"profitMargin\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"margins\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"margins\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"manHoursBudget\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"manHoursBudget\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"labourBudget\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"labourBudget\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"materialsBudget\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"materialsBudget\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"subcontractorsBudget\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"subcontractorsBudget\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sumsBudget\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"sumsBudget\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"totalBudget\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"totalBudget\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"manHoursQuote\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"manHoursQuote\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"labourQuote\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"labourQuote\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"materialsQuote\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"materialsQuote\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"subcontractorsQuote\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"subcontractorsQuote\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sumsQuote\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"sumsQuote\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"totalQuote\", [_dec28], Object.getOwnPropertyDescriptor(_class.prototype, \"totalQuote\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAllFigureTypeClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAllFigureTypeClick\"), _class.prototype), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec29 = (0, _object.computed)('takeoffItems.@each.manHoursBudget'), _dec30 = (0, _object.computed)('takeoffItems.@each.labourBudget'), _dec31 = (0, _object.computed)('takeoffItems.@each.materialsBudget'), _dec32 = (0, _object.computed)('takeoffItems.@each.subcontractorsBudget'), _dec33 = (0, _object.computed)('takeoffItems.@each.sumsBudget'), _dec34 = (0, _object.computed)('takeoffItems.@each.manHoursQuote'), _dec35 = (0, _object.computed)('takeoffItems.@each.labourQuote'), _dec36 = (0, _object.computed)('takeoffItems.@each.materialsQuote'), _dec37 = (0, _object.computed)('takeoffItems.@each.subcontractorsQuote'), _dec38 = (0, _object.computed)('takeoffItems.@each.sumsQuote'), _dec39 = (0, _object.computed)('takeoffItems.@each.totalBudget'), _dec40 = (0, _object.computed)('takeoffItems.@each.totalQuote'), _dec41 = (0, _object.computed)('takeoffItems.@each.errors'), _dec42 = (0, _object.computed)('takeoffItems', 'emptyTaskOptionsKey'), _class2 = class _class2 extends _component2.default {\n    get isLoading() {\n      return this.load.isRunning;\n    }\n    get invalidRowMessage() {\n      if (!this.invalidRowIndexes?.length) return null;\n      return `${this.intl.t('validation.theFollowingRowNumbersDidNotContainEnoughInformationToBeImported')}: \"${this.invalidRowIndexes.join(', ')}\".`;\n    }\n    get totalManHoursBudget() {\n      return this.takeoffItems.reduce((total, item) => total += item.manHoursBudget, 0);\n    }\n    get totalLabourBudget() {\n      return this.takeoffItems.reduce((total, item) => total += item.labourBudget, 0);\n    }\n    get totalMaterialsBudget() {\n      return this.takeoffItems.reduce((total, item) => total += item.materialsBudget, 0);\n    }\n    get totalSubcontractorsBudget() {\n      return this.takeoffItems.reduce((total, item) => total += item.subcontractorsBudget, 0);\n    }\n    get totalSumsBudget() {\n      return this.takeoffItems.reduce((total, item) => total += item.sumsBudget, 0);\n    }\n    get totalManHoursQuote() {\n      return this.takeoffItems.reduce((total, item) => total += item.manHoursQuote, 0);\n    }\n    get totalLabourQuote() {\n      return this.takeoffItems.reduce((total, item) => total += item.labourQuote, 0);\n    }\n    get totalMaterialsQuote() {\n      return this.takeoffItems.reduce((total, item) => total += item.materialsQuote, 0);\n    }\n    get totalSubcontractorsQuote() {\n      return this.takeoffItems.reduce((total, item) => total += item.subcontractorsQuote, 0);\n    }\n    get totalSumsQuote() {\n      return this.takeoffItems.reduce((total, item) => total += item.sumsQuote, 0);\n    }\n    get totalBudget() {\n      return this.takeoffItems.reduce((total, item) => total += item.totalBudget, 0);\n    }\n    get totalQuote() {\n      return this.takeoffItems.reduce((total, item) => total += item.totalQuote, 0);\n    }\n    get errors() {\n      return this.takeoffItems.reduce((errors, item) => [...errors, ...item.errors], []);\n    }\n    get taskOptions() {\n      const groupedTasks = {};\n      this.takeoffItems.forEach(takeoffItem => {\n        const key = takeoffItem.group || this.emptyTaskOptionsKey;\n        if (!groupedTasks[key]) groupedTasks[key] = [];\n        if (groupedTasks[key].includes(takeoffItem.task)) return;\n        groupedTasks[key].push(takeoffItem.task);\n      });\n      const taskOptions = {};\n      for (const [group, tasks] of Object.entries(groupedTasks)) taskOptions[group] = tasks.map(task => ({\n        label: task,\n        value: task\n      }));\n      return taskOptions;\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"notifications\", _descriptor24, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor25, this);\n      _initializerDefineProperty(this, \"takeoffItems\", _descriptor26, this);\n      _initializerDefineProperty(this, \"invalidRowIndexes\", _descriptor27, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor28, this);\n      _defineProperty(this, \"load\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.args.project.loadProfitMargins();\n        }\n      }), null, \"load\", null));\n      _defineProperty(this, \"emptyTaskOptionsKey\", Math.random());\n      _defineProperty(this, \"continue\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.errors.length) {\n            this.notifications.warning(this.intl.t('components.takeoff-uploader-modal.assign.pleaseAssignAllTheItemsBeforeContinuing'));\n            return;\n          }\n          yield this.args.onAssignComplete(this.takeoffItems);\n        }\n      }), null, \"continue\", null));\n      this.load.perform();\n      if (this.args.takeoffItems) {\n        (0, _object.set)(this, 'takeoffItems', this.args.takeoffItems);\n        return;\n      }\n      const takeoffItems = (0, _array.A)([]);\n      const invalidRowIndexes = (0, _array.A)([]);\n      this.args.takeoffFile.csv.forEach((columns, index) => {\n        const item = new TakeoffItem(columns, this.args.takeoffFile.columnTypes, this.args.project, this.removeItem, this.numberFormat, this.intl);\n        if (item.canBeAssigned) {\n          takeoffItems.push(item);\n          return;\n        }\n        const rowNumber = index + 1;\n        invalidRowIndexes.push(rowNumber);\n      });\n      (0, _object.set)(this, 'takeoffItems', takeoffItems);\n      this.invalidRowIndexes = invalidRowIndexes;\n    }\n    removeItem(item) {\n      this.takeoffItems.removeObject(item);\n    }\n    onAllValueTypeClick(type) {\n      this.takeoffItems.forEach(i => i.valueType = type);\n    }\n    onAllFigureTypeClick(type) {\n      this.takeoffItems.forEach(i => i.onAllFigureTypeClick(type));\n    }\n    onAllAcceptItem() {\n      this.takeoffItems.forEach((item, i) => item.onAcceptItem.perform(i, false));\n    }\n  }, _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, \"takeoffItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, \"invalidRowIndexes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"totalManHoursBudget\", [_dec29], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalManHoursBudget\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalLabourBudget\", [_dec30], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalLabourBudget\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalMaterialsBudget\", [_dec31], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalMaterialsBudget\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalSubcontractorsBudget\", [_dec32], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalSubcontractorsBudget\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalSumsBudget\", [_dec33], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalSumsBudget\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalManHoursQuote\", [_dec34], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalManHoursQuote\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalLabourQuote\", [_dec35], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalLabourQuote\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalMaterialsQuote\", [_dec36], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalMaterialsQuote\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalSubcontractorsQuote\", [_dec37], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalSubcontractorsQuote\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalSumsQuote\", [_dec38], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalSumsQuote\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalBudget\", [_dec39], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalBudget\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"totalQuote\", [_dec40], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalQuote\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"errors\", [_dec41], Object.getOwnPropertyDescriptor(_class2.prototype, \"errors\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"taskOptions\", [_dec42], Object.getOwnPropertyDescriptor(_class2.prototype, \"taskOptions\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeItem\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeItem\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onAllValueTypeClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onAllValueTypeClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onAllFigureTypeClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onAllFigureTypeClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onAllAcceptItem\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onAllAcceptItem\"), _class2.prototype), _class2));\n});","define(\"portal/components/takeoff-uploader-modal/item-row\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless @item.isDeleted}}\n    {{! template-lint-disable no-nested-interactive }}\n    {{#if @dsl.isDroppingAbove}}\n      <@dsl.Separator />\n    {{/if}}\n  \n    <@dsl.Draggable\n      class='takeoff-uploader-modal-item-row__item-container'\n      {{did-update this.onIsDroppingInto @dsl.isDroppingInto}}\n      {{on 'drop' this.onDrop}}\n    >\n      {{#if (media 'isDesktop')}}\n        <@dsl.DragHandle>\n          <div\n            role='treeitem'\n            class='takeoff-uploader-modal-item-row__item-row\n              {{if\n                this.hasTimeout\n                \"takeoff-uploader-modal-item-row__item-row--expanding\"\n              }}\n              {{if\n                @dsl.isDragging\n                \"takeoff-uploader-modal-item-row__item-row--dragging\"\n              }}\n              '\n            {{on 'click' this.toggleExpanded}}\n            data-test-takeoff-uploader-modal-item-row={{@item.name}}\n          >\n            <div>\n              {{#if @item.children.length}}\n                <FaIcon\n                  @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n                  @fixedWidth={{true}}\n                />\n              {{else if @item.expanded}}\n                <FaIcon @icon='chevron-down' @fixedWidth={{true}} />\n              {{else}}\n                <FaIcon @icon='plus' @fixedWidth={{true}} />\n              {{/if}}\n            </div>\n  \n            <div class='mx-2'>\n              {{#if this.canEdit}}\n                <Input\n                  style='min-width: 33vw;'\n                  class='form-control'\n                  @type='text'\n                  @value={{@item.name}}\n                  disabled={{@disabled}}\n                  {{on 'click' this.onNameInputClick}}\n                />\n              {{else}}\n                {{@item.name}}\n              {{/if}}\n            </div>\n  \n            {{! slight abuse of this bool }}\n            {{#if this.canEdit}}\n              <div class='badge badge-pill bg-primary mx-2'>\n                {{t 'common.New'}}\n              </div>\n  \n              <div class='ms-auto'>\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  disabled={{@disabled}}\n                  {{on 'click' (fn this.onDelete @item)}}\n                >\n                  <FaIcon @icon='times' />\n                </button>\n              </div>\n            {{/if}}\n          </div>\n        </@dsl.DragHandle>\n      {{else}}\n        <div\n          role='treeitem'\n          class='takeoff-uploader-modal-item-row__item-row\n            {{if\n              this.hasTimeout\n              \"takeoff-uploader-modal-item-row__item-row--expanding\"\n            }}\n            {{if\n              @dsl.isDragging\n              \"takeoff-uploader-modal-item-row__item-row--dragging\"\n            }}'\n          {{on 'click' this.toggleExpanded}}\n          data-test-takeoff-uploader-modal-item-row={{@item.name}}\n        >\n          <@dsl.DragHandle class='me-3'>\n            <FaIcon @icon='grip-vertical' @fixedWidth={{true}} @size='lg' />\n          </@dsl.DragHandle>\n  \n          <div>\n            {{#if @item.children.length}}\n              <FaIcon\n                @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n                @fixedWidth={{true}}\n              />\n            {{else if @item.expanded}}\n              <FaIcon @icon='chevron-down' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='plus' @fixedWidth={{true}} />\n            {{/if}}\n          </div>\n  \n          <div class='mx-2'>\n            {{#if this.canEdit}}\n              <Input\n                style='min-width: 33vw;'\n                class='form-control'\n                @type='text'\n                @value={{@item.name}}\n                disabled={{@disabled}}\n                {{on 'click' this.onNameInputClick}}\n              />\n            {{else}}\n              {{@item.name}}\n            {{/if}}\n          </div>\n  \n          {{#if this.canEdit}}\n            <div class='badge badge-pill bg-primary mx-2'>\n              {{t 'common.New'}}\n            </div>\n  \n            <div class='ms-auto'>\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{@disabled}}\n                {{on 'click' (fn this.onDelete @item)}}\n              >\n                <FaIcon @icon='times' />\n              </button>\n            </div>\n          {{/if}}\n        </div>\n  \n      {{/if}}\n  \n      {{#if @dsl.isDroppingInto}}\n        <div class='ms-5'>\n          <@dsl.Separator />\n        </div>\n      {{/if}}\n  \n      {{#if @item.expanded}}\n        <div class='ms-5'>\n          <@dsl.Children />\n  \n          <TakeoffUploaderModal::ItemRow::AddItem\n            class='me-2'\n            @inputId='takeoff-uploader-modal-item-row-name-input-{{this.internalId}}'\n            @onAdd={{this.onAdd}}\n            {{! the task must be saved before children can be added }}\n            @disabled={{or @disabled (and @item.isSaving @item.item.isNew)}}\n            @placeholder={{concat 'Add task for \"' @item.name '\"'}}\n          />\n        </div>\n      {{/if}}\n    </@dsl.Draggable>\n  \n    {{#if @dsl.isDroppingBelow}}\n      <@dsl.Separator />\n    {{/if}}\n  {{/unless}}\n  */\n  {\n    \"id\": \"FsEp5KJI\",\n    \"block\": \"[[[41,[51,[30,1,[\\\"isDeleted\\\"]]],[[[41,[30,2,[\\\"isDroppingAbove\\\"]],[[[1,\\\"    \\\"],[8,[30,2,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[30,2,[\\\"Draggable\\\"]],[[24,0,\\\"takeoff-uploader-modal-item-row__item-container\\\"],[4,[38,2],[[30,0,[\\\"onIsDroppingInto\\\"]],[30,2,[\\\"isDroppingInto\\\"]]],null],[4,[38,3],[\\\"drop\\\",[30,0,[\\\"onDrop\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[8,[30,2,[\\\"DragHandle\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[16,0,[29,[\\\"takeoff-uploader-modal-item-row__item-row\\\\n            \\\",[52,[30,0,[\\\"hasTimeout\\\"]],\\\"takeoff-uploader-modal-item-row__item-row--expanding\\\"],\\\"\\\\n            \\\",[52,[30,2,[\\\"isDragging\\\"]],\\\"takeoff-uploader-modal-item-row__item-row--dragging\\\"],\\\"\\\\n            \\\"]]],[16,\\\"data-test-takeoff-uploader-modal-item-row\\\",[30,1,[\\\"name\\\"]]],[4,[38,3],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,1,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"expanded\\\"]],[[[1,\\\"              \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"chevron-down\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n            \\\"]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canEdit\\\"]],[[[1,\\\"              \\\"],[8,[39,7],[[24,5,\\\"min-width: 33vw;\\\"],[24,0,\\\"form-control\\\"],[16,\\\"disabled\\\",[30,3]],[4,[38,3],[\\\"click\\\",[30,0,[\\\"onNameInputClick\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,1,[\\\"name\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canEdit\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"badge badge-pill bg-primary mx-2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"common.New\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,3]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"onDelete\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[16,0,[29,[\\\"takeoff-uploader-modal-item-row__item-row\\\\n          \\\",[52,[30,0,[\\\"hasTimeout\\\"]],\\\"takeoff-uploader-modal-item-row__item-row--expanding\\\"],\\\"\\\\n          \\\",[52,[30,2,[\\\"isDragging\\\"]],\\\"takeoff-uploader-modal-item-row__item-row--dragging\\\"]]]],[16,\\\"data-test-takeoff-uploader-modal-item-row\\\",[30,1,[\\\"name\\\"]]],[4,[38,3],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"DragHandle\\\"]],[[24,0,\\\"me-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"grip-vertical\\\",true,\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,1,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"expanded\\\"]],[[[1,\\\"            \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"chevron-down\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n          \\\"]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canEdit\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[24,5,\\\"min-width: 33vw;\\\"],[24,0,\\\"form-control\\\"],[16,\\\"disabled\\\",[30,3]],[4,[38,3],[\\\"click\\\",[30,0,[\\\"onNameInputClick\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,1,[\\\"name\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canEdit\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"badge badge-pill bg-primary mx-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"common.New\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,3]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"onDelete\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isDroppingInto\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-5\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"expanded\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-5\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Children\\\"]],null,null,null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,11],[[24,0,\\\"me-2\\\"]],[[\\\"@inputId\\\",\\\"@onAdd\\\",\\\"@disabled\\\",\\\"@placeholder\\\"],[[29,[\\\"takeoff-uploader-modal-item-row-name-input-\\\",[30,0,[\\\"internalId\\\"]]]],[30,0,[\\\"onAdd\\\"]],[28,[37,12],[[30,3],[28,[37,13],[[30,1,[\\\"isSaving\\\"]],[30,1,[\\\"item\\\",\\\"isNew\\\"]]],null]],null],[28,[37,14],[\\\"Add task for \\\\\\\"\\\",[30,1,[\\\"name\\\"]],\\\"\\\\\\\"\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,2,[\\\"isDroppingBelow\\\"]],[[[1,\\\"    \\\"],[8,[30,2,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[\\\"@item\\\",\\\"@dsl\\\",\\\"@disabled\\\"],false,[\\\"unless\\\",\\\"if\\\",\\\"did-update\\\",\\\"on\\\",\\\"media\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"t\\\",\\\"button\\\",\\\"fn\\\",\\\"takeoff-uploader-modal/item-row/add-item\\\",\\\"or\\\",\\\"and\\\",\\\"concat\\\"]]\",\n    \"moduleName\": \"portal/components/takeoff-uploader-modal/item-row.hbs\",\n    \"isStrictMode\": false\n  });\n  const expandOnHoverMsTimeout = 500; // this is paired with .nested-task-card__task-row--expanding\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"timeout\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasTimeout\", _descriptor3, this);\n      _initializerDefineProperty(this, \"internalId\", _descriptor4, this);\n    }\n    get canEdit() {\n      return !this.args.item.task;\n    }\n    onIsDroppingInto() {\n      const {\n        item,\n        dsl\n      } = this.args;\n\n      // when we are not dropping into and there is an existing timeout, clear the timeout\n      if (!dsl.isDroppingInto && this.hasTimeout) {\n        clearTimeout(this.timeout);\n        this.hasTimeout = false;\n      }\n      const hasChildren = Boolean(item.children?.length);\n      const isCollapsed = !item.expanded;\n      if (!this.hasTimeout && dsl.isDroppingInto && hasChildren && isCollapsed) {\n        this.hasTimeout = true;\n        this.timeout = setTimeout(() => {\n          this.args.item.expanded = true; // expand the item\n          this.hasTimeout = false;\n        }, expandOnHoverMsTimeout);\n      }\n    }\n    onNameInputClick(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    onDrop() {\n      // expand the item if something has been dropped inside\n      if (this.args.dsl.isDroppingInto && !this.args.item.expanded) this.args.item.expanded = true;\n    }\n    toggleExpanded(event) {\n      this.args.item.expanded = !this.args.item.expanded;\n      if (this.args.item.expanded) this.focusTaskNameInput();\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    focusTaskNameInput() {\n      (0, _runloop.next)(() => {\n        document.getElementById(`takeoff-uploader-modal-item-row-name-input-${this.internalId}`).focus();\n      });\n    }\n    onAdd(name) {\n      return this.args.onAdd(name, this.args.item);\n    }\n    onDelete(item, event) {\n      event.stopPropagation();\n      event.preventDefault();\n      return this.args.onDelete(item, this.args.item.parent);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"timeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasTimeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"internalId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Math.random();\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onIsDroppingInto\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onIsDroppingInto\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onNameInputClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onNameInputClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDrop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleExpanded\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleExpanded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onAdd\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAdd\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDelete\"), _class.prototype), _class));\n});","define(\"portal/components/takeoff-uploader-modal/item-row/add-item\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _service, _object, _emberChangeset, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='takeoff-uploader-modal-item-row__add-item-container' ...attributes>\n    <FaIcon\n      @icon='plus'\n      @fixedWidth={{true}}\n      class='takeoff-uploader-modal-item-row__add-item-icon'\n    />\n  \n    <Input\n      @type='text'\n      @value={{this.changeset.name}}\n      id={{@inputId}}\n      class='takeoff-uploader-modal-item-row__add-item-input'\n      placeholder={{@placeholder}}\n      disabled={{@disabled}}\n      autofocus={{@autofocus}}\n      {{on 'keypress' this.onNameInputKeypress}}\n      {{! you need this to prevent drops onto the input }}\n      {{on 'drop' this.noop}}\n    />\n  \n    {{#if this.changeset.name.length}}\n      <button\n        type='button'\n        class='ms-2 text-light btn btn-secondary'\n        disabled={{@disabled}}\n        {{on 'click' this.saveItem}}\n      >{{t 'common.Add'}}</button>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"JJudy5nA\",\n    \"block\": \"[[[11,0],[24,0,\\\"takeoff-uploader-modal-item-row__add-item-container\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"takeoff-uploader-modal-item-row__add-item-icon\\\"]],[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],[[16,1,[30,2]],[24,0,\\\"takeoff-uploader-modal-item-row__add-item-input\\\"],[16,\\\"placeholder\\\",[30,3]],[16,\\\"disabled\\\",[30,4]],[16,\\\"autofocus\\\",[30,5]],[4,[38,3],[\\\"keypress\\\",[30,0,[\\\"onNameInputKeypress\\\"]]],null],[4,[38,3],[\\\"drop\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"changeset\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"changeset\\\",\\\"name\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"ms-2 text-light btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,4]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"saveItem\\\"]]],null],[12],[1,[28,[35,6],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"&attrs\\\",\\\"@inputId\\\",\\\"@placeholder\\\",\\\"@disabled\\\",\\\"@autofocus\\\"],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"on\\\",\\\"if\\\",\\\"button\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/takeoff-uploader-modal/item-row/add-item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _defineProperty(this, \"validateName\", (newValue, oldValue) => {\n        const name = newValue || oldValue;\n        return name.length > 0 || this.intl.t('validation.Please provide a name');\n      });\n      _defineProperty(this, \"itemValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'name':\n            return this.validateName(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"validationMap\", {\n        name: this.validateName\n      });\n      _defineProperty(this, \"changeset\", (0, _emberChangeset.Changeset)({\n        name: ''\n      }, this.itemValidator, this.validationMap));\n      _defineProperty(this, \"validateAndProcess\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.changeset.validate();\n          if (!this.changeset.isValid) {\n            this.notifications.warning(this.changeset.error.name.validation);\n            return;\n          }\n          this.args.onAdd(this.changeset.name);\n          this.changeset.name = '';\n        }\n      }), null, \"validateAndProcess\", null));\n    }\n    onNameInputKeypress(e) {\n      if (e.key === 'Enter') this.saveItem();\n    }\n    saveItem() {\n      this.validateAndProcess.perform();\n    }\n    noop(e) {\n      e.preventDefault();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onNameInputKeypress\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onNameInputKeypress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _class));\n});","define(\"portal/components/takeoff-uploader-modal/map\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/array\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _tracking, _array, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _class2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/array\",0,\"@ember/service\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='d-flex flex-column' style='min-width: 85vw;'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if this.items.length}}\n        <div\n          class='border-bottom bg-white m-n3 p-3'\n          {{! -1rem is equal to m-3 }}\n          style='position: sticky; top: -1rem; margin-bottom: 1rem!important; z-index: 1020;'\n        >\n          <div class='d-flex justify-content-end p-2'>\n            <button\n              type='button'\n              class='btn btn-success align-self-end text-white text-nowrap'\n              disabled={{this.continue.isRunning}}\n              {{on 'click' (fn (mut this.addingTaskFromTemplate) true)}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t\n                'shared.task.Add tasks from template'\n              }}\n            </button>\n          </div>\n        </div>\n  \n        <DragSortList\n          class='d-flex flex-column flex-grow-1'\n          @onUpdate={{perform this.onUpdateItems}}\n          @itemComponent={{component\n            'takeoff-uploader-modal/item-row'\n            onDelete=(perform this.onDeleteItem)\n            onAdd=(perform this.onAddItem)\n            disabled=this.continue.isRunning\n          }}\n          @list={{this.items}}\n        />\n  \n        <TakeoffUploaderModal::ItemRow::AddItem\n          class='me-2'\n          @onAdd={{perform this.onAddItem}}\n          @disabled={{this.continue.isRunning}}\n          @placeholder={{t 'shared.task.Add task'}}\n        />\n      {{/if}}\n  \n      <div\n        class='border-top bg-white m-n3 p-3'\n        {{! -1rem is equal to m-3 }}\n        style='position: sticky; bottom: -1rem; margin-top: 1rem!important; z-index: 1020;'\n      >\n        <div class='d-flex justify-content-end p-2'>\n          <button\n            class='btn btn-primary'\n            type='button'\n            disabled={{this.continue.isRunning}}\n            {{on 'click' (fn (perform this.continue))}}\n          >{{t 'components.takeoff-uploader-modal.map.Create tasks'}}</button>\n        </div>\n      </div>\n    {{/if}}\n  </div>\n  \n  {{#if this.addingTaskFromTemplate}}\n    <TaskTemplateModal\n      @onLoadTaskTemplate={{perform this.onLoadTaskTemplate}}\n      @onClose={{fn (mut this.addingTaskFromTemplate) false}}\n      @parentTasks={{this.tasks}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"ztFe4I0n\",\n    \"block\": \"[[[10,0],[14,0,\\\"d-flex flex-column\\\"],[14,5,\\\"min-width: 85vw;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"items\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"border-bottom bg-white m-n3 p-3\\\"],[14,5,\\\"position: sticky; top: -1rem; margin-bottom: 1rem!important; z-index: 1020;\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex justify-content-end p-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success align-self-end text-white text-nowrap\\\"],[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[28,[37,6],[[30,0,[\\\"addingTaskFromTemplate\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,8],[\\\"shared.task.Add tasks from template\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,9],[[24,0,\\\"d-flex flex-column flex-grow-1\\\"]],[[\\\"@onUpdate\\\",\\\"@itemComponent\\\",\\\"@list\\\"],[[28,[37,10],[[30,0,[\\\"onUpdateItems\\\"]]],null],[50,\\\"takeoff-uploader-modal/item-row\\\",0,null,[[\\\"onDelete\\\",\\\"onAdd\\\",\\\"disabled\\\"],[[28,[37,10],[[30,0,[\\\"onDeleteItem\\\"]]],null],[28,[37,10],[[30,0,[\\\"onAddItem\\\"]]],null],[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]]]],[30,0,[\\\"items\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,12],[[24,0,\\\"me-2\\\"]],[[\\\"@onAdd\\\",\\\"@disabled\\\",\\\"@placeholder\\\"],[[28,[37,10],[[30,0,[\\\"onAddItem\\\"]]],null],[30,0,[\\\"continue\\\",\\\"isRunning\\\"]],[28,[37,8],[\\\"shared.task.Add task\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"border-top bg-white m-n3 p-3\\\"],[14,5,\\\"position: sticky; bottom: -1rem; margin-top: 1rem!important; z-index: 1020;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex justify-content-end p-2\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"continue\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[28,[37,10],[[30,0,[\\\"continue\\\"]]],null]],null]],null],[12],[1,[28,[35,8],[\\\"components.takeoff-uploader-modal.map.Create tasks\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"addingTaskFromTemplate\\\"]],[[[1,\\\"  \\\"],[8,[39,13],null,[[\\\"@onLoadTaskTemplate\\\",\\\"@onClose\\\",\\\"@parentTasks\\\"],[[28,[37,10],[[30,0,[\\\"onLoadTaskTemplate\\\"]]],null],[28,[37,5],[[28,[37,6],[[30,0,[\\\"addingTaskFromTemplate\\\"]]],null],false],null],[30,0,[\\\"tasks\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"t\\\",\\\"drag-sort-list\\\",\\\"perform\\\",\\\"component\\\",\\\"takeoff-uploader-modal/item-row/add-item\\\",\\\"task-template-modal\\\"]]\",\n    \"moduleName\": \"portal/components/takeoff-uploader-modal/map.hbs\",\n    \"isStrictMode\": false\n  });\n  let MapItem = (_class = class MapItem {\n    constructor(name, task, financials, products, parent, children, taskType) {\n      _defineProperty(this, \"name\", void 0);\n      _defineProperty(this, \"task\", void 0);\n      _defineProperty(this, \"taskType\", void 0);\n      _defineProperty(this, \"parent\", void 0);\n      _defineProperty(this, \"financials\", void 0);\n      _defineProperty(this, \"products\", []);\n      _initializerDefineProperty(this, \"children\", _descriptor, this);\n      _initializerDefineProperty(this, \"expanded\", _descriptor2, this);\n      this.name = name;\n      if (task) this.task = task;\n      if (taskType) this.taskType = taskType;\n      if (products) this.products = products;\n      if (financials) this.financials = financials;\n      if (parent) this.parent = parent;\n\n      // this isn't mutually exclusive flows but for this case it's okay\n      if (task?.activeChildren.length) {\n        this.children = (0, _array.A)([...task.activeChildren].sort((a, b) => a.path.localeCompare(b.path)).map(c => new MapItem(c.name, c, undefined, undefined, this)));\n      }\n      if (children?.length) {\n        this.children = (0, _array.A)(children);\n      }\n    }\n\n    // tracked properties don't work with the default toJSON\n    toJSON() {\n      return {\n        name: this.name,\n        task: this.task?.toJSON({\n          includeId: true\n        }),\n        taskType: this.taskType,\n        financials: this.financials,\n        products: this.products,\n        children: this.children.toArray()\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"expanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor5, this);\n      _initializerDefineProperty(this, \"items\", _descriptor6, this);\n      _initializerDefineProperty(this, \"addingTaskFromTemplate\", _descriptor7, this);\n      _defineProperty(this, \"_getTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.loadTasks();\n          this.tasks = project.activeTasks.filter(t => !t.belongsTo('parent').id()).sort((a, b) => a.path - b.path);\n        }\n      }), null, \"_getTasks\", null));\n      _defineProperty(this, \"_initTakeoffItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (tasks, takeoffItems) {\n          yield tasks;\n          const taskMapItems = this.tasks.map(task => new MapItem(task.name, task));\n          const groupedTakeoffItems = new Map();\n          for (const takeoffItem of takeoffItems) {\n            const parentTask = takeoffItem.group || undefined;\n            const task = takeoffItem.task;\n            if (!groupedTakeoffItems.has(parentTask)) {\n              groupedTakeoffItems.set(parentTask, new Map());\n            }\n            if (task) {\n              const taskGroup = groupedTakeoffItems.get(parentTask);\n              if (!taskGroup.has(task)) {\n                taskGroup.set(task, []);\n              }\n              taskGroup.get(task).push(takeoffItem);\n            }\n          }\n          const topMapItems = [];\n          for (const [parentTask, childTasks] of groupedTakeoffItems.entries()) {\n            const mapItems = [];\n            for (const [task, takeoffItems] of childTasks.entries()) {\n              const child = {\n                name: task,\n                financials: {\n                  labourBudget: 0,\n                  manHoursBudget: 0,\n                  materialsBudget: 0,\n                  subcontractorsBudget: 0,\n                  sumsBudget: 0,\n                  labourQuote: 0,\n                  manHoursQuote: 0,\n                  materialsQuote: 0,\n                  subcontractorsQuote: 0,\n                  sumsQuote: 0\n                },\n                products: [],\n                taskType: 'TASK'\n              };\n              const childTaskTypes = new Set();\n              for (const takeoffItem of takeoffItems) {\n                childTaskTypes.add(takeoffItem.taskType);\n\n                // this row has product information\n                if (takeoffItem.description) {\n                  child.products.push({\n                    supplier: takeoffItem.supplier,\n                    description: takeoffItem.description,\n                    usage: takeoffItem.usage,\n                    sku: takeoffItem.sku,\n                    gtin: takeoffItem.gtin,\n                    manufacturer: takeoffItem.manufacturer,\n                    quantity: takeoffItem.quantity,\n                    unitPrice: takeoffItem.rate,\n                    unit: takeoffItem.unit,\n                    stage: takeoffItem.stage\n                  });\n                }\n                child.financials.labourBudget += takeoffItem.labourBudget;\n                child.financials.manHoursBudget += takeoffItem.manHoursBudget;\n                child.financials.materialsBudget += takeoffItem.materialsBudget;\n                child.financials.subcontractorsBudget += takeoffItem.subcontractorsBudget;\n                child.financials.sumsBudget += takeoffItem.sumsBudget;\n                child.financials.labourQuote += takeoffItem.labourQuote;\n                child.financials.manHoursQuote += takeoffItem.manHoursQuote;\n                child.financials.materialsQuote += takeoffItem.materialsQuote;\n                child.financials.subcontractorsQuote += takeoffItem.subcontractorsQuote;\n                child.financials.sumsQuote += takeoffItem.sumsQuote;\n              }\n\n              // if there is only one kind of child, set the task type to that\n              if (childTaskTypes.size === 1) child.taskType = [...childTaskTypes][0];\n\n              // this is the direct child of a task\n              const childMapItem = new MapItem(child.name, undefined, child.financials, child.products, undefined, undefined, child.taskType);\n              mapItems.push(childMapItem);\n            }\n\n            // this is a ungrouped task\n            if (!parentTask) {\n              topMapItems.push(...mapItems);\n              continue;\n            }\n            const uniqueMapItemTaskTypes = new Set(mapItems.map(item => item.taskType));\n\n            // this constructs the parent\n            const parentMapItem = new MapItem(parentTask, undefined, undefined, undefined, undefined, mapItems, uniqueMapItemTaskTypes.size === 1 ? [...uniqueMapItemTaskTypes][0] : 'TASK');\n            topMapItems.push(parentMapItem);\n          }\n          this.items = (0, _array.A)([...taskMapItems, ...topMapItems]);\n        }\n      }), null, \"_initTakeoffItems\", null));\n      _defineProperty(this, \"onUpdateItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (items) {\n          this.items = (0, _array.A)(items);\n        }\n      }), null, \"onUpdateItems\", null));\n      _defineProperty(this, \"onDeleteItem\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (item, parent) {\n          if (parent) {\n            parent.children.removeObject(item);\n          } else {\n            this.items.removeObject(item);\n          }\n        }\n      }), null, \"onDeleteItem\", null));\n      _defineProperty(this, \"onAddItem\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (name, parent) {\n          if (!name || name.length < 1) {\n            this.notifications.warning(this.intl.t('shared.notification.Please provide a task name'));\n            return;\n          }\n          const newItem = new MapItem(name, undefined, undefined, undefined, parent);\n          if (parent) {\n            parent.children.pushObject(newItem);\n          } else {\n            this.items.pushObject(newItem);\n          }\n        }\n      }), null, \"onAddItem\", null));\n      _defineProperty(this, \"onLoadTaskTemplate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskTemplate) {\n          this.addingTaskFromTemplate = false;\n\n          // convert the task template into map items\n          let templateMapItem;\n          yield async function loadItems(item, children, parentMapItem) {\n            const mapItem = new MapItem(item.name, undefined, undefined, undefined, parentMapItem);\n            if (parentMapItem) {\n              parentMapItem.children.pushObject(mapItem);\n            } else {\n              templateMapItem = mapItem;\n            }\n            if (children) await Promise.all(children.map(childItem => loadItems(childItem, childItem.hasMany('items').value()?.sortBy('path'), mapItem)));\n          }(taskTemplate, taskTemplate.hasMany('items').value()\n          // only top level children first\n          .filter(i => !i.belongsTo('parent').value()).sortBy('path'));\n          this.items.pushObject(templateMapItem);\n          this.notifications.success('Loaded template');\n        }\n      }), null, \"onLoadTaskTemplate\", null));\n      _defineProperty(this, \"continue\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.args.onMappingComplete.perform(this.items);\n        }\n      }), null, \"continue\", null));\n      const _tasks = this._getTasks.perform(this.args.project);\n      this._initTakeoffItems.perform(_tasks, this.args.takeoffItems);\n    }\n    get isLoading() {\n      return this._getTasks.isRunning || this._initTakeoffItems.isRunning || this.continue.isRunning;\n    }\n  }, _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"tasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"addingTaskFromTemplate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2));\n});","define(\"portal/components/takeoff-uploader-modal/upload\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"ember-changeset\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"string-similarity\", \"csv-parse/browser/esm\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _emberChangeset, _tracking, _service, _object, _stringSimilarity, _esm, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _class2, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"string-similarity\",0,\"ember-concurrency\",0,\"csv-parse/browser/esm\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.takeoff}}\n    <p>{{t 'shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument'}}</p>\n    <div class='overflow-auto'>\n      <div class='table-responsive'>\n        <table class='table table-sm table-bordered'>\n          <thead>\n            <tr>\n              {{#each this.takeoff.columnTypes as |type index|}}\n                <th class='text-center align-top'>\n                  <PtlInput\n                    style='min-width: 205px;'\n                    @type='select'\n                    @label={{number-to-char index}}\n                    {{! the key needs to be a string }}\n                    @key={{concat index}}\n                    @options={{this.takeoff.columnTypeOptions}}\n                    @model={{this.takeoff.columnTypeForm}}\n                    @selectNoBlankOption={{true}}\n                    @forceValidationVisible={{gt this.continue.performCount 0}}\n                  />\n                </th>\n              {{/each}}\n            </tr>\n          </thead>\n          <tbody>\n            {{#each this.takeoff.sampleRows as |columns|}}\n              <tr>\n                {{#each columns as |column index|}}\n                  <td\n                    class='no-wrap text-truncate\n                      {{if\n                        (eq\n                          (get this.takeoff.columnTypeForm index) \"do-not-import\"\n                        )\n                        \"opacity-25\"\n                      }}'\n                    style='min-width: 205px; max-width: 250px;'\n                    title={{column}}\n                  >{{column}}</td>\n                {{/each}}\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      </div>\n    </div>\n  \n    <div class='d-flex justify-content-end p-2'>\n      <button\n        class='btn btn-secondary me-2'\n        type='button'\n        {{on 'click' this.onClear}}\n      >{{t 'shared.uploader.Upload a different file'}}</button>\n      <button\n        class='btn btn-primary'\n        type='button'\n        {{on 'click' (fn (perform this.continue))}}\n      >{{t 'shared.task.Continue to next step'}}</button>\n    </div>\n  {{else}}\n    <DragAndDropContainer\n      @onUploadComplete={{this.onUpload}}\n      @isDragAndDropVisible={{true}}\n    >\n      <p class='text-center'>\n        {{t\n          'components.takeoff-uploader-modal.upload.uploadYourCsvFileToGenerateTasksWithBudgetsAndQuotes'\n        }}\n        <br />\n        <br />\n        {{t\n          'components.takeoff-uploader-modal.upload.youCanUseThisToConvertYourTakeoffIntoTasksOrJustCreateTasksInBulk'\n        }}\n      </p>\n      <a\n        class='btn btn-link align-self-center mb-3'\n        href='/assets/example-task-file-5aa84b6c09acf5d359bc8a6141919c7d.csv'\n        download='example-task-file-5aa84b6c09acf5d359bc8a6141919c7d.csv'\n      >\n        <FaIcon @icon='download' />&nbsp;&nbsp;\n        {{t 'shared.uploader.Download example file'}}\n      </a>\n    </DragAndDropContainer>\n  {{/if}}\n  */\n  {\n    \"id\": \"IK0d0d83\",\n    \"block\": \"[[[41,[30,0,[\\\"takeoff\\\"]],[[[1,\\\"  \\\"],[10,2],[12],[1,[28,[35,2],[\\\"shared.uploader.pleaseIdentifyTheColumnTypesIsInTheDocument\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"overflow-auto\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"table-responsive\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"table table-sm table-bordered\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"takeoff\\\",\\\"columnTypes\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center align-top\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],[[24,5,\\\"min-width: 205px;\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@selectNoBlankOption\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,11],[[30,2]],null],[28,[37,12],[[30,2]],null],[30,0,[\\\"takeoff\\\",\\\"columnTypeOptions\\\"]],[30,0,[\\\"takeoff\\\",\\\"columnTypeForm\\\"]],true,[28,[37,13],[[30,0,[\\\"continue\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"takeoff\\\",\\\"sampleRows\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,3]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"no-wrap text-truncate\\\\n                    \\\",[52,[28,[37,16],[[28,[37,17],[[30,0,[\\\"takeoff\\\",\\\"columnTypeForm\\\"]],[30,5]],null],\\\"do-not-import\\\"],null],\\\"opacity-25\\\"]]]],[14,5,\\\"min-width: 205px; max-width: 250px;\\\"],[15,\\\"title\\\",[30,4]],[12],[1,[30,4]],[13],[1,\\\"\\\\n\\\"]],[4,5]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"d-flex justify-content-end p-2\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary me-2\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[30,0,[\\\"onClear\\\"]]],null],[12],[1,[28,[35,2],[\\\"shared.uploader.Upload a different file\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"continue\\\"]]],null]],null]],null],[12],[1,[28,[35,2],[\\\"shared.task.Continue to next step\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,22],null,[[\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"onUpload\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,2],[\\\"components.takeoff-uploader-modal.upload.uploadYourCsvFileToGenerateTasksWithBudgetsAndQuotes\\\"],null]],[1,\\\"\\\\n      \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[1,[28,[35,2],[\\\"components.takeoff-uploader-modal.upload.youCanUseThisToConvertYourTakeoffIntoTasksOrJustCreateTasksInBulk\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,3],[14,0,\\\"btn btn-link align-self-center mb-3\\\"],[14,6,\\\"/assets/example-task-file-5aa84b6c09acf5d359bc8a6141919c7d.csv\\\"],[14,\\\"download\\\",\\\"example-task-file-5aa84b6c09acf5d359bc8a6141919c7d.csv\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,25],null,[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"  \\\\n      \\\"],[1,[28,[35,2],[\\\"shared.uploader.Download example file\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"type\\\",\\\"index\\\",\\\"columns\\\",\\\"column\\\",\\\"index\\\"],false,[\\\"if\\\",\\\"p\\\",\\\"t\\\",\\\"div\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"th\\\",\\\"ptl-input\\\",\\\"number-to-char\\\",\\\"concat\\\",\\\"gt\\\",\\\"tbody\\\",\\\"td\\\",\\\"eq\\\",\\\"get\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"perform\\\",\\\"drag-and-drop-container\\\",\\\"br\\\",\\\"a\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/takeoff-uploader-modal/upload.hbs\",\n    \"isStrictMode\": false\n  });\n  const getColumnsFrom2dArray = (arr, col) => {\n    return arr.map(r => r[col]);\n  };\n\n  // why this library kept this API when making a browser build is beyond me\n  const parseCsvFromBase64 = base64 => {\n    const records = [];\n    const parser = (0, _esm.parse)({\n      bom: true,\n      skip_empty_lines: true,\n      trim: true\n    });\n    parser.on('readable', () => {\n      let record;\n      while ((record = parser.read()) !== null) {\n        records.push(record);\n      }\n    });\n    const csvText = atob(base64);\n    parser.write(csvText);\n    parser.end();\n    return records;\n  };\n  class ParserError extends Error {}\n  let TakeoffFile = (_class = class TakeoffFile {\n    get sampleRows() {\n      if (!this.csv) return null;\n      return this.csv.slice(0, 10);\n    }\n    get columnsLength() {\n      return this.csv[0].length;\n    }\n    constructor(csv, intl) {\n      _initializerDefineProperty(this, \"columnTypes\", _descriptor, this);\n      _initializerDefineProperty(this, \"columnTypeForm\", _descriptor2, this);\n      _initializerDefineProperty(this, \"csv\", _descriptor3, this);\n      this.columnTypeOptions = [{\n        label: '—',\n        value: 'do-not-import',\n        matches: [],\n        type: undefined\n      }, {\n        label: intl.t('components.takeoff-uploader-modal.upload.Task group'),\n        value: 'group',\n        matches: ['group task', 'group', 'section', 'task group'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Task'),\n        value: 'task',\n        matches: ['task', 'name', 'item', 'subgroup', 'sub', 'sub group', 'subgroup task'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Task type'),\n        value: 'taskType',\n        matches: ['task type', 'type'],\n        type: 'string'\n      }, {\n        label: intl.t('shared.task.Product description'),\n        value: 'productDescription',\n        matches: ['product description', 'product', 'product name'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Supplier'),\n        value: 'supplier',\n        matches: ['supplier', 'supp'],\n        type: 'string'\n      }, {\n        label: intl.t('common.SKU'),\n        value: 'sku',\n        matches: ['sku'],\n        type: 'string'\n      }, {\n        label: intl.t('common.GTIN'),\n        value: 'gtin',\n        matches: ['gtin'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Manufacturer'),\n        value: 'manufacturer',\n        matches: ['manufacture', 'manufacturer', 'mfr.', 'mfr'],\n        type: 'string'\n      }, {\n        label: intl.t('common.Quantity'),\n        value: 'quantity',\n        matches: ['qty', 'quantity', 'no'],\n        type: 'number'\n      }, {\n        label: intl.t('common.Unit'),\n        value: 'unit',\n        matches: ['type', 'unit'],\n        type: 'string'\n      }, {\n        label: `${intl.t('common.Rate')} ($)`,\n        value: 'rate',\n        matches: ['rate', 'price', 'price (ex gst)', 'price (inc gst)'],\n        type: 'currency'\n      }, {\n        label: intl.t('common.Usage'),\n        value: 'usage',\n        matches: ['usage'],\n        type: 'string'\n      }, {\n        label: `${intl.t('common.Margin')} (%)`,\n        value: 'margin',\n        matches: ['margin', 'markup'],\n        type: 'percentage'\n      }, {\n        label: intl.t('common.Labour hours'),\n        value: 'labourHours',\n        matches: [intl.t('common.Labour hours')],\n        type: 'number'\n      }, {\n        label: `${intl.t('common.Total')} ($)`,\n        value: 'total',\n        matches: ['total'],\n        type: 'currency'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Labour allocation')} (%)`,\n        value: 'labourAllocationPercentage',\n        matches: ['labour allocation', '(%) labour allocation', 'labour allocation (%)'],\n        type: 'percentage'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Labour allocation')} ($)`,\n        value: 'labourAllocationCurrency',\n        matches: ['labour allocation', '($) labour allocation', 'labour allocation ($)'],\n        type: 'currency'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Materials allocation')} (%)`,\n        value: 'materialsAllocationPercentage',\n        matches: ['materials allocation', '(%) materials allocation', 'materials allocation (%)'],\n        type: 'percentage'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Materials allocation')} ($)`,\n        value: 'materialsAllocationCurrency',\n        matches: ['materials allocation', '($) materials allocation', 'materials allocation ($)'],\n        type: 'currency'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Subcontractors allocation')} (%)`,\n        value: 'subcontractorsAllocationPercentage',\n        matches: ['subcontractors allocation', '(%) subcontractors allocation', 'subcontractors allocation (%)'],\n        type: 'percentage'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Subcontractors allocation')} ($)`,\n        value: 'subcontractorsAllocationCurrency',\n        matches: ['subcontractors allocation', '($) subcontractors allocation', 'subcontractors allocation ($)'],\n        type: 'currency'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Sums allocation')} (%)`,\n        value: 'sumsAllocationPercentage',\n        matches: ['sums allocation', '(%) sums allocation', 'sums allocation (%)'],\n        type: 'percentage'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Sums allocation')} ($)`,\n        value: 'sumsAllocationCurrency',\n        matches: ['sums allocation', '($) sums allocation', 'sums allocation ($)'],\n        type: 'currency'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Contingency')} (%)`,\n        value: 'contingencyPercentage',\n        matches: ['contingency', 'cont', '(%) contingency', 'contingency (%)', '(%) cont', 'cont (%)'],\n        type: 'percentage'\n      }, {\n        label: `${intl.t('components.takeoff-uploader-modal.upload.Contingency')} ($)`,\n        value: 'contingencyCurrency',\n        matches: ['contingency', 'cont', '($) contingency', '($) cont', 'contingency ($)', 'cont ($)'],\n        type: 'currency'\n      }];\n      this.csv = csv;\n      this.columnTypes = this._findLikelyColumnTypes();\n      this.columnTypeForm = this._generateColumnTypeForm(intl);\n    }\n    _generateColumnTypeForm(intl) {\n      const validator = ({\n        key: _key,\n        newValue,\n        oldValue,\n        changes,\n        content\n      }) => {\n        const current = {\n          ...content,\n          ...changes\n        };\n        const values = Object.values(current).filter(\n        // for some reason this has a save function in it\n        v => typeof v === 'string');\n        const value = newValue || oldValue;\n\n        // you need at least one of each of these to progress\n        const requiredValues = ['task'];\n        if (\n        // if you have chosen not to import this column\n        value === 'do-not-import' &&\n        // and there are still required values left\n        requiredValues.some(rv => !values.includes(rv))) return intl.t('validation.Task is required');\n\n        // no import is always valid\n        if (value === 'do-not-import') return true;\n\n        // you can't have duplicate selections\n        // for $/% columns, we don't want duplicates of the same kind\n        const ignoreRegex = /Currency|Percentage/;\n        if (values.filter(v => v.replace(ignoreRegex, '') === value.replace(ignoreRegex, '')).length > 1) return intl.t('validation.You can only select this column once');\n        return true;\n      };\n      const data = {\n        save: () => {\n          for (let i = 0; i < this.columnsLength; i++) {\n            this.columnTypes[i] = this.columnTypeForm.get(String(i));\n          }\n        }\n      };\n      const validatorMap = {};\n      for (let i = 0; i < this.columnsLength; i++) {\n        data[i] = this.columnTypes[i];\n        validatorMap[i] = validator;\n      }\n      return (0, _emberChangeset.Changeset)(data, validator, validatorMap);\n    }\n    _findLikelyColumnTypes() {\n      // TODO if there isn't a header row, we could try and assume from the data type of the columns\n      const likenessThreshold = 0.8;\n      // for each column iterate over each column type to find the closest matching column type\n      const results = [];\n      for (let i = 0; i < this.columnsLength; i++) {\n        const winners = this.columnTypeOptions.map(option => {\n          // get the entire column from the sample rows\n          const columns = getColumnsFrom2dArray(this.sampleRows, i).map(s => s.toLowerCase().trim());\n          // test the likeness of the columns against the matching strings\n          const scores = option.matches.map(m => (0, _stringSimilarity.findBestMatch)(m, columns));\n          // check if the best match is better than the threshold\n          const winner = scores.find(score => score.bestMatch.rating >= likenessThreshold);\n          return {\n            option,\n            rating: winner?.bestMatch?.rating || 0\n          };\n        });\n\n        // compute the highest rating\n        const bestRating = Math.max(...winners.map(winner => winner.rating));\n\n        // filter winners to get the best matches\n        const bestMatches = winners.filter(winner => winner.rating === bestRating);\n        if (bestMatches.length === 1) {\n          // we now have the closest matching column type for this column\n          results.push(bestMatches[0].option.value);\n          continue;\n        }\n\n        // if we have many matches try detect the type from the column values\n        const columns = getColumnsFrom2dArray(this.sampleRows, i);\n        const isCurrency = columns.some(col => col.includes('$'));\n        const bestTypeMatched = bestMatches.find(match => match.option.type === (isCurrency ? 'currency' : 'percentage'));\n        if (bestTypeMatched) {\n          results.push(bestTypeMatched.option.value);\n          continue;\n        }\n        results.push(bestMatches[0].option.value);\n      }\n      return results;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"columnTypes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"columnTypeForm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"csv\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"takeoff\", _descriptor6, this);\n      _defineProperty(this, \"continue\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.takeoff.columnTypeForm.validate();\n          if (this.takeoff.columnTypeForm.isInvalid) {\n            this.notifications.warning(this.intl.t('shared.uploader.pleaseCompleteTheFormBeforeContinuing'));\n            return;\n          }\n          yield this.takeoff.columnTypeForm.save();\n          yield this.args.onUploadComplete(this.takeoff);\n        }\n      }), null, \"continue\", null));\n      _defineProperty(this, \"parseCsvFromAttachment\", attachment => {\n        // TODO windows does some funky shit with MIME types\n        if (attachment.fileType !== 'text/csv') throw new ParserError(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n        const csv = parseCsvFromBase64(attachment.data);\n        return csv;\n      });\n      if (this.args.takeoffFile) this.takeoff = this.args.takeoffFile;\n    }\n    onClear() {\n      this.takeoff = null;\n      this.args.onFileClear();\n    }\n    onUpload(e) {\n      try {\n        if (!e.attachments.length) {\n          this.notifications.warning(this.intl.t('shared.uploader.Please upload a valid CSV file'));\n          return;\n        }\n        if (e.attachments.length > 1) this.notifications.warning(this.intl.t('shared.uploader.Please upload one file at a time'));\n        const attachment = e.attachments[0];\n        const csv = this.parseCsvFromAttachment(attachment);\n        this.takeoff = new TakeoffFile(csv, this.intl);\n      } catch (error) {\n        if (error instanceof ParserError) {\n          this.notifications.warning(error.message);\n          return;\n        }\n        this.notifications.error({\n          message: this.intl.t('shared.uploader.Something went wrong uploading the file'),\n          error\n        });\n      }\n    }\n  }, _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"takeoff\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onClear\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClear\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUpload\"), _class2.prototype), _class2));\n});","define(\"portal/components/task-breadcrumbs\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{this.breadcrumbString}}\n  */\n  {\n    \"id\": \"cos6kqAs\",\n    \"block\": \"[[[1,[30,0,[\\\"breadcrumbString\\\"]]]],[],false,[]]\",\n    \"moduleName\": \"portal/components/task-breadcrumbs.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _object.computed)('args.{showProject,task}', 'task'), _class = class extends _component2.default {\n    get breadcrumbString() {\n      return this.generateBreadcrumb();\n    }\n    get taskNameTree() {\n      const taskNameTree = [];\n      const addTask = task => {\n        taskNameTree.unshift((0, _object.get)(task, 'name'));\n        if ((0, _object.get)(task, 'parent.name')) {\n          addTask((0, _object.get)(task, 'parent'));\n        } else if (this.args.showProject && taskNameTree[0] !== (0, _object.get)(task, 'project.name')) {\n          taskNameTree.unshift((0, _object.get)(task, 'project.name'));\n        }\n      };\n      addTask(this.args.task);\n      return taskNameTree;\n    }\n    generateBreadcrumb(taskNameTree) {\n      const maxStringLength = this.args.maxLength ? this.args.maxLength : 100;\n      const localTaskNameTree = taskNameTree ? taskNameTree : this.taskNameTree;\n      const layers = localTaskNameTree.length >= 4 ? [...[localTaskNameTree[0], localTaskNameTree[1]], ...[localTaskNameTree[localTaskNameTree.length - 2], localTaskNameTree[localTaskNameTree.length - 1]]] : localTaskNameTree;\n      const lastElementLength = maxStringLength / (layers.length + 1) * 2;\n      // if actual tasks more than 4, '...' is display. So, it needs to take away from frontElementsLength\n      const frontElementsLength = localTaskNameTree.length > 4 ? maxStringLength - lastElementLength - 6 : maxStringLength - lastElementLength;\n      const estimiateAverageStringLength = frontElementsLength / (layers.length - 1);\n      // find the short string\n      const shortestString = layers.reduce((a, b) => a.length <= b.length ? a : b);\n      const displayFunction = ({\n        name,\n        length\n      }) => {\n        if (!name) return '';\n        if (name.length <= length) {\n          return name;\n        } else {\n          return `${name.slice(0, length - 3)}...`;\n        }\n      };\n      const layerMapper = layers.slice(0, -1).map(name => {\n        const bool = estimiateAverageStringLength > shortestString.length;\n        let length = estimiateAverageStringLength;\n        if (bool && name !== shortestString) {\n          length = (frontElementsLength - shortestString.length) / (layers.slice(0, -1).length - 1);\n        } else if (bool && name === shortestString) {\n          length = shortestString.length;\n        }\n        return {\n          name,\n          length,\n          display: displayFunction({\n            name,\n            length\n          })\n        };\n      });\n      const lastName = layers.pop();\n      layerMapper.push({\n        name: lastName,\n        length: lastElementLength,\n        display: displayFunction({\n          name: lastName,\n          length: lastElementLength\n        })\n      });\n      if (localTaskNameTree.length > 4) {\n        layerMapper.splice(2, 0, {\n          display: '...'\n        });\n      }\n      const textBreadcrumbs = layerMapper.map(layer => layer.display).join(' > ');\n      return textBreadcrumbs;\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"taskNameTree\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"taskNameTree\"), _class.prototype), _class));\n});","define(\"portal/components/task-detail-badge\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='task-detail-badge__circle\n      {{if\n        @hasDirectRecord\n        \"task-detail-badge__circle--black\"\n        \"task-detail-badge__circle--white\"\n      }}\n      '\n    ...attributes\n  >\n    <div class='task-detail-badge__content'>\n      {{#if @icon}}\n        <FaIcon @icon={{@icon}} />\n      {{else}}\n        {{@char}}\n      {{/if}}\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"/60nOc0d\",\n    \"block\": \"[[[11,0],[16,0,[29,[\\\"task-detail-badge__circle\\\\n    \\\",[52,[30,1],\\\"task-detail-badge__circle--black\\\",\\\"task-detail-badge__circle--white\\\"],\\\"\\\\n    \\\"]]],[17,2],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"task-detail-badge__content\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3],[[[1,\\\"      \\\"],[8,[39,2],null,[[\\\"@icon\\\"],[[30,3]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[1,[30,4]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@hasDirectRecord\\\",\\\"&attrs\\\",\\\"@icon\\\",\\\"@char\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/task-detail-badge.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/task-progress-position-row\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='task-progress-position-row__item-row row flex-nowrap'\n    {{on 'click' this.toggleExpanded}}\n  >\n    <div class='d-flex align-items-center col'>\n      {{#unless (media 'isMobile')}}\n        {{#each this.depthArray}}\n          {{! ms-4 }}\n          <div style='width: 3rem;'></div>\n        {{/each}}\n      {{/unless}}\n  \n      <div>\n        {{#if @item.children.length}}\n          <FaIcon\n            @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n            @fixedWidth={{true}}\n          />\n        {{else}}\n          <FaIcon @icon='plus' class='invisible' @fixedWidth={{true}} />\n        {{/if}}\n      </div>\n  \n      <div class='ms-3 d-flex flex-column flex-grow-1'>\n        <div class='fs-4 d-flex'>\n          {{@item.task.name}}\n  \n          {{#if @item.hasNoChildManHours}}\n            <div class='ms-2 badge text-secondary border border-secondary'>\n              {{t 'shared.timesheet.No timesheets'}}&nbsp;&nbsp;<FaIcon\n                @icon='exclamation-triangle'\n              />\n            </div>\n          {{/if}}\n          {{#if @item.hasNoManHours}}\n            <PopOver @direction='bottom-right' as |po|>\n              <div class='ms-2 badge bg-secondary'>\n                {{t 'shared.timesheet.No timesheets'}}&nbsp;&nbsp;<FaIcon\n                  @icon='exclamation-triangle'\n                />\n              </div>\n  \n              <po.Content class='p-2' style='width: 200px;'>\n                {{t\n                  'components.task-progress-position-row.progressSetOnTasksWithoutAnyTimesheetsWillNotBeUsedOnceATimesheetIsAdded'\n                }}\n              </po.Content>\n            </PopOver>\n          {{/if}}\n  \n          {{#if @item.hasChildrenProgressWithBudgetAndNoActual}}\n            <div class='ms-2 badge text-danger border border-danger'>\n              {{t\n                'components.task-progress-position-row.Progress mismatch'\n              }}&nbsp;&nbsp;<FaIcon @icon='exclamation-triangle' />\n            </div>\n          {{/if}}\n          {{#if @item.hasProgressWithBudgetAndNoActual}}\n            <PopOver @direction='bottom-right' as |po|>\n              <div class='ms-2 badge bg-danger'>\n                {{t\n                  'components.task-progress-position-row.Progress mismatch'\n                }}&nbsp;&nbsp;<FaIcon @icon='exclamation-triangle' />\n              </div>\n  \n              <po.Content class='p-2' style='width: 200px;'>\n                {{@item.hasProgressWithBudgetAndNoActual}}\n              </po.Content>\n            </PopOver>\n          {{/if}}\n  \n          {{#if @item.hasChildVersionDiff}}\n            <div class='ms-2 badge text-info border border-info'>\n              {{t\n                'components.task-progress-position-row.Estimated'\n              }}&nbsp;&nbsp;<FaIcon @icon='info-circle' />\n            </div>\n          {{/if}}\n          {{#if @item.hasVersionDiff}}\n            <PopOver @direction='bottom-right' {{on 'click' this.noop}} as |po|>\n              <div class='ms-2 badge bg-info'>\n                {{t\n                  'components.task-progress-position-row.Estimated'\n                }}&nbsp;&nbsp;<FaIcon @icon='info-circle' />\n              </div>\n  \n              <po.Content class='p-2' style='width: 200px;'>\n                {{@item.hasVersionDiff}}\n              </po.Content>\n            </PopOver>\n          {{/if}}\n          {{#if @item.hasChildrenMissingCosts}}\n            <div class='ms-2 badge text-danger border border-danger'>\n              {{t\n                'components.task-progress-position-row.Missing costs'\n              }}&nbsp;&nbsp;<FaIcon @icon='exclamation-triangle' />\n            </div>\n          {{/if}}\n          {{#if @item.hasMissingCosts}}\n            <PopOver @direction='bottom-right' {{on 'click' this.noop}} as |po|>\n              <div class='ms-2 badge bg-danger'>\n                {{t\n                  'components.task-progress-position-row.Missing costs'\n                }}&nbsp;&nbsp;<FaIcon @icon='question-circle' />\n              </div>\n  \n              <po.Content class='p-2' style='width: 200px;'>\n                {{@item.hasMissingCosts}}\n              </po.Content>\n            </PopOver>\n          {{/if}}\n  \n          {{#if @item.hasChildDiff}}\n            <div class='ms-2 badge text-info border border-info'>\n              {{t\n                'components.task-progress-position-row.Modified'\n              }}&nbsp;&nbsp;<FaIcon @icon='code-branch' />\n            </div>\n          {{/if}}\n          {{#if @item.hasDiff}}\n            <PopOver @direction='bottom-right' {{on 'click' this.noop}} as |po|>\n              <div class='ms-2 badge bg-info'>\n                {{t\n                  'components.task-progress-position-row.Modified'\n                }}&nbsp;&nbsp;<FaIcon @icon='code-branch' />\n              </div>\n  \n              <po.Content class='p-2' style='width: 200px;'>\n                {{@item.hasDiff}}\n                <button\n                  type='button'\n                  class='btn btn-link text-decoration-underline'\n                  {{on 'click' this.setForecastValue}}\n                >{{t\n                    'components.task-progress-position-row.Reset progress'\n                  }}</button>\n              </po.Content>\n            </PopOver>\n          {{/if}}\n        </div>\n  \n        <div class='d-flex align-items-center'>\n          <input\n            class='flex-grow-1 me-3'\n            style='max-width: 35vw;'\n            type='range'\n            value={{@item.progress}}\n            {{on 'change' this.onProgressRangeInputChange}}\n            {{on 'click' this.noop}}\n            min='0'\n            max='1'\n            step='0.01'\n            tabindex='-1'\n            disabled={{or (not this.isEditable) @isSaving}}\n          />\n          <FormattedInput\n            @class='form-control'\n            style='width: 75px'\n            @format='percentage'\n            @formatterOptions={{hash dashZero=false}}\n            @number={{@item.progress}}\n            autocomplete='off'\n            @disabled={{or (not this.isEditable) @isSaving}}\n            @update={{this.onProgressInputUpdate}}\n            {{on 'click' this.noop}}\n          />\n  \n        </div>\n      </div>\n    </div>\n  \n    {{#if @showCompleteColumn}}\n      <div class='col-1 text-center fs-4'>\n        <IndeterminateCheckbox\n          @checked={{@item.isComplete}}\n          @indeterminate={{@item.isPartiallyComplete}}\n          @onChange={{fn (mut @item.isComplete)}}\n          style='width: 20px; height: 20px;'\n          {{on 'click' this.stopPropagation}}\n          disabled={{or (not this.isEditable) @isSaving}}\n        />\n      </div>\n    {{/if}}\n  </div>\n  \n  {{#if @item.expanded}}\n    {{#each @item.children as |item|}}\n      <TaskProgressPositionRow\n        @item={{item}}\n        @isSaving={{@isSaving}}\n        @depth={{this.childrenDepth}}\n        @showCompleteColumn={{@showCompleteColumn}}\n      />\n    {{/each}}\n  {{/if}}\n  */\n  {\n    \"id\": \"MKXPizln\",\n    \"block\": \"[[[11,0],[24,0,\\\"task-progress-position-row__item-row row flex-nowrap\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex align-items-center col\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,3],[\\\"isMobile\\\"],null]],[[[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"depthArray\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,5,\\\"width: 3rem;\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"        \\\"],[8,[39,7],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,1,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[8,[39,7],[[24,0,\\\"invisible\\\"]],[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"ms-3 d-flex flex-column flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"fs-4 d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"task\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"hasNoChildManHours\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-2 badge text-secondary border border-secondary\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.timesheet.No timesheets\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"hasNoManHours\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"ms-2 badge bg-secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"shared.timesheet.No timesheets\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"p-2\\\"],[24,5,\\\"width: 200px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.progressSetOnTasksWithoutAnyTimesheetsWillNotBeUsedOnceATimesheetIsAdded\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"hasChildrenProgressWithBudgetAndNoActual\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-2 badge text-danger border border-danger\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.Progress mismatch\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"hasProgressWithBudgetAndNoActual\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"ms-2 badge bg-danger\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.Progress mismatch\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,3,[\\\"Content\\\"]],[[24,0,\\\"p-2\\\"],[24,5,\\\"width: 200px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,1,[\\\"hasProgressWithBudgetAndNoActual\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"hasChildVersionDiff\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-2 badge text-info border border-info\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.Estimated\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"hasVersionDiff\\\"]],[[[1,\\\"          \\\"],[8,[39,9],[[4,[38,1],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.Estimated\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,4,[\\\"Content\\\"]],[[24,0,\\\"p-2\\\"],[24,5,\\\"width: 200px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,1,[\\\"hasVersionDiff\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[4]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"hasChildrenMissingCosts\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-2 badge text-danger border border-danger\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.Missing costs\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"hasMissingCosts\\\"]],[[[1,\\\"          \\\"],[8,[39,9],[[4,[38,1],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"ms-2 badge bg-danger\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.Missing costs\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"question-circle\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,5,[\\\"Content\\\"]],[[24,0,\\\"p-2\\\"],[24,5,\\\"width: 200px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,1,[\\\"hasMissingCosts\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[5]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"hasChildDiff\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-2 badge text-info border border-info\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.Modified\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"code-branch\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"hasDiff\\\"]],[[[1,\\\"          \\\"],[8,[39,9],[[4,[38,1],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"components.task-progress-position-row.Modified\\\"],null]],[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"code-branch\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[30,6,[\\\"Content\\\"]],[[24,0,\\\"p-2\\\"],[24,5,\\\"width: 200px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,1,[\\\"hasDiff\\\"]]],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"setForecastValue\\\"]]],null],[12],[1,[28,[35,8],[\\\"components.task-progress-position-row.Reset progress\\\"],null]],[13],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[6]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"flex-grow-1 me-3\\\"],[24,5,\\\"max-width: 35vw;\\\"],[16,2,[30,1,[\\\"progress\\\"]]],[24,\\\"min\\\",\\\"0\\\"],[24,\\\"max\\\",\\\"1\\\"],[24,\\\"step\\\",\\\"0.01\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"isEditable\\\"]]],null],[30,7]],null]],[24,4,\\\"range\\\"],[4,[38,1],[\\\"change\\\",[30,0,[\\\"onProgressRangeInputChange\\\"]]],null],[4,[38,1],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null],[12],[13],[1,\\\"\\\\n        \\\"],[8,[39,14],[[24,5,\\\"width: 75px\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@class\\\",\\\"@format\\\",\\\"@formatterOptions\\\",\\\"@number\\\",\\\"@disabled\\\",\\\"@update\\\"],[\\\"form-control\\\",\\\"percentage\\\",[28,[37,15],null,[[\\\"dashZero\\\"],[false]]],[30,1,[\\\"progress\\\"]],[28,[37,12],[[28,[37,13],[[30,0,[\\\"isEditable\\\"]]],null],[30,7]],null],[30,0,[\\\"onProgressInputUpdate\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,8],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"col-1 text-center fs-4\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],[[24,5,\\\"width: 20px; height: 20px;\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"isEditable\\\"]]],null],[30,7]],null]],[4,[38,1],[\\\"click\\\",[30,0,[\\\"stopPropagation\\\"]]],null]],[[\\\"@checked\\\",\\\"@indeterminate\\\",\\\"@onChange\\\"],[[30,1,[\\\"isComplete\\\"]],[30,1,[\\\"isPartiallyComplete\\\"]],[28,[37,17],[[28,[37,18],[[30,1,[\\\"isComplete\\\"]]],null]],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"expanded\\\"]],[[[42,[28,[37,5],[[28,[37,5],[[30,1,[\\\"children\\\"]]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,19],null,[[\\\"@item\\\",\\\"@isSaving\\\",\\\"@depth\\\",\\\"@showCompleteColumn\\\"],[[30,9],[30,7],[30,0,[\\\"childrenDepth\\\"]],[30,8]]],null],[1,\\\"\\\\n\\\"]],[9]],null]],[]],null]],[\\\"@item\\\",\\\"po\\\",\\\"po\\\",\\\"po\\\",\\\"po\\\",\\\"po\\\",\\\"@isSaving\\\",\\\"@showCompleteColumn\\\",\\\"item\\\"],false,[\\\"div\\\",\\\"on\\\",\\\"unless\\\",\\\"media\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"fa-icon\\\",\\\"t\\\",\\\"pop-over\\\",\\\"button\\\",\\\"input\\\",\\\"or\\\",\\\"not\\\",\\\"formatted-input\\\",\\\"hash\\\",\\\"indeterminate-checkbox\\\",\\\"fn\\\",\\\"mut\\\",\\\"task-progress-position-row\\\"]]\",\n    \"moduleName\": \"portal/components/task-progress-position-row.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class extends _component2.default {\n    get childrenDepth() {\n      return (this.args.depth || 0) + 1;\n    }\n    get depthArray() {\n      const depth = this.args.depth || 0;\n      return new Array(depth).fill(null);\n    }\n    toggleExpanded(event) {\n      event.stopPropagation();\n      event.preventDefault();\n      this.args.item.expanded = !this.args.item.expanded;\n    }\n    get isEditable() {\n      return this.args.item.task.canManageTaskProgress;\n    }\n    noop(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    stopPropagation(event) {\n      event.stopPropagation();\n    }\n    setItemProgress(progress) {\n      this.args.item.progress = progress;\n    }\n    setForecastValue() {\n      this.setItemProgress(this.args.item.latestVersionProgress);\n    }\n    onProgressRangeInputChange(e) {\n      this.setItemProgress(e.target.value);\n    }\n    onProgressInputUpdate(value) {\n      this.setItemProgress(value);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"toggleExpanded\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleExpanded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"stopPropagation\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"stopPropagation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setItemProgress\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setItemProgress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setForecastValue\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setForecastValue\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onProgressRangeInputChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onProgressRangeInputChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onProgressInputUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onProgressInputUpdate\"), _class.prototype), _class));\n});","define(\"portal/components/task-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"portal/utils/tree-item\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _treeItem, _object, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"portal/utils/tree-item\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='task-selector__list'>\n    <ItemSelector\n      @items={{this.items}}\n      @selectedItem={{this.selectedItem}}\n      @onChange={{this.onChange}}\n      @nameKey='name'\n      @homeText={{t 'common.Tasks'}}\n      @noItemsMessage={{t 'common.No tasks'}}\n      @searchPlaceholder={{t 'common.Search for a task'}}\n      @noSearchItemsMessage={{t 'common.No tasks found'}}\n    />\n  </div>\n  \n  <div class='d-flex p-3 task-selector__footer border-top'>\n    <div class='flex-grow-1'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white'\n        data-test-task-selector-clear\n        {{on 'click' (fn (mut this.selectedItem) null)}}\n      >\n        {{t 'common.Clear selection'}}\n      </button>\n    </div>\n    <button\n      type='button'\n      data-test-task-selector-cancel\n      {{on 'click' @onCancel}}\n      class='btn btn-secondary text-white me-2'\n    >\n      {{t 'common.Cancel'}}\n    </button>\n    <button\n      type='button'\n      {{on 'click' (fn @onSubmit this.selectedTask)}}\n      class='btn btn-primary text-white'\n      data-test-task-selector-ok-confirm\n    >\n      {{t 'common.OK'}}\n    </button>\n  </div>\n  */\n  {\n    \"id\": \"SjTC1FrO\",\n    \"block\": \"[[[10,0],[14,0,\\\"task-selector__list\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],null,[[\\\"@items\\\",\\\"@selectedItem\\\",\\\"@onChange\\\",\\\"@nameKey\\\",\\\"@homeText\\\",\\\"@noItemsMessage\\\",\\\"@searchPlaceholder\\\",\\\"@noSearchItemsMessage\\\"],[[30,0,[\\\"items\\\"]],[30,0,[\\\"selectedItem\\\"]],[30,0,[\\\"onChange\\\"]],\\\"name\\\",[28,[37,2],[\\\"common.Tasks\\\"],null],[28,[37,2],[\\\"common.No tasks\\\"],null],[28,[37,2],[\\\"common.Search for a task\\\"],null],[28,[37,2],[\\\"common.No tasks found\\\"],null]]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"d-flex p-3 task-selector__footer border-top\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,\\\"data-test-task-selector-clear\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[28,[37,6],[[30,0,[\\\"selectedItem\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,2],[\\\"common.Clear selection\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,\\\"data-test-task-selector-cancel\\\",\\\"\\\"],[24,0,\\\"btn btn-secondary text-white me-2\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,2],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[24,\\\"data-test-task-selector-ok-confirm\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[30,2],[30,0,[\\\"selectedTask\\\"]]],null]],null],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,2],[\\\"common.OK\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@onCancel\\\",\\\"@onSubmit\\\"],false,[\\\"div\\\",\\\"item-selector\\\",\\\"t\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"portal/components/task-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"items\", _descriptor, this);\n      _initializerDefineProperty(this, \"selectedItem\", _descriptor2, this);\n      this.items = _treeItem.default.constructItemTreeFromTasks(this.args.tasks, this.args.hideInactiveTimesheetTasks, this.args.excludedTasks);\n      if (this.args.selectedTask) this.selectedItem = _treeItem.default.findItemInTree(this.items, this.args.selectedTask);\n    }\n    get selectedTask() {\n      return this.selectedItem?.item;\n    }\n    onChange(selectedTask) {\n      this.selectedItem = selectedTask;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"items\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"selectedItem\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChange\"), _class.prototype), _class));\n});","define(\"portal/components/task-selector/bread-crumb\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @isSelected}}\n    <span class='text-primary fw-bolder' data-test-task-selector-path>\n      {{yield}}\n    </span>\n  {{else}}\n    <span\n      role='button'\n      class='text-primary text-decoration-underline'\n      {{on 'click' @onClick}}\n      data-test-task-selector-path\n    >\n      {{yield}}\n    </span>\n    <FaIcon @icon={{or @icon 'chevron-right'}} class='mx-2' />\n  {{/if}}\n  */\n  {\n    \"id\": \"SUnxBIWU\",\n    \"block\": \"[[[41,[30,1],[[[1,\\\"  \\\"],[10,1],[14,0,\\\"text-primary fw-bolder\\\"],[14,\\\"data-test-task-selector-path\\\",\\\"\\\"],[12],[1,\\\"\\\\n    \\\"],[18,4,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"text-primary text-decoration-underline\\\"],[24,\\\"data-test-task-selector-path\\\",\\\"\\\"],[4,[38,3],[\\\"click\\\",[30,2]],null],[12],[1,\\\"\\\\n    \\\"],[18,4,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"mx-2\\\"]],[[\\\"@icon\\\"],[[28,[37,5],[[30,3],\\\"chevron-right\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@isSelected\\\",\\\"@onClick\\\",\\\"@icon\\\",\\\"&default\\\"],false,[\\\"if\\\",\\\"span\\\",\\\"yield\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"or\\\"]]\",\n    \"moduleName\": \"portal/components/task-selector/bread-crumb.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/task-template-item-row\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless @item.isDeleted}}\n    {{! template-lint-disable no-nested-interactive }}\n    {{#if @dsl.isDroppingAbove}}\n      <@dsl.Separator />\n    {{/if}}\n  \n    <@dsl.Draggable\n      class='task-template-item-row__item-container'\n      {{did-update this.onIsDroppingInto @dsl.isDroppingInto}}\n      {{on 'drop' this.onDrop}}\n    >\n      {{#if (media 'isDesktop')}}\n        <@dsl.DragHandle>\n          <div\n            role='treeitem'\n            class='task-template-item-row__item-row\n              {{if this.hasTimeout \"task-template-item-row__item-row--expanding\"}}\n              {{if @dsl.isDragging \"task-template-item-row__item-row--dragging\"}}'\n            {{on 'click' this.toggleExpanded}}\n            data-test-task-template-item-row={{@item.item.name}}\n          >\n            <div>\n              {{#if @item.children.length}}\n                <FaIcon\n                  @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n                  @fixedWidth={{true}}\n                />\n              {{else if @item.expanded}}\n                <FaIcon @icon='chevron-down' @fixedWidth={{true}} />\n              {{else}}\n                <FaIcon @icon='plus' @fixedWidth={{true}} />\n              {{/if}}\n            </div>\n  \n            <div class='mx-2'>\n              <Input\n                style='min-width: 33vw;'\n                class='form-control'\n                @type='text'\n                @value={{@item.item.name}}\n                disabled={{@disabled}}\n                {{on 'click' this.onNameInputClick}}\n              />\n            </div>\n  \n            <div class='ms-auto'>\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{@disabled}}\n                {{on 'click' (fn this.onDelete @item)}}\n              >\n                <FaIcon @icon='times' />\n              </button>\n            </div>\n          </div>\n        </@dsl.DragHandle>\n      {{else}}\n        <div\n          role='treeitem'\n          class='task-template-item-row__item-row\n            {{if this.hasTimeout \"task-template-item-row__item-row--expanding\"}}\n            {{if @dsl.isDragging \"task-template-item-row__item-row--dragging\"}}'\n          {{on 'click' this.toggleExpanded}}\n          data-test-task-template-item-row={{@item.item.name}}\n        >\n          <@dsl.DragHandle class='me-3'>\n            <FaIcon @icon='grip-vertical' @fixedWidth={{true}} @size='lg' />\n          </@dsl.DragHandle>\n  \n          <div>\n            {{#if @item.children.length}}\n              <FaIcon\n                @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n                @fixedWidth={{true}}\n              />\n            {{else if @item.expanded}}\n              <FaIcon @icon='chevron-down' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='plus' @fixedWidth={{true}} />\n            {{/if}}\n          </div>\n  \n          <div class='mx-2'>\n            <Input\n              class='form-control'\n              @type='text'\n              @value={{@item.item.name}}\n              disabled={{@disabled}}\n              {{on 'click' this.onNameInputClick}}\n            />\n          </div>\n  \n          <div class='ms-auto'>\n            <button\n              type='button'\n              class='btn btn-link text-danger text-decoration-underline'\n              disabled={{@disabled}}\n              {{on 'click' (fn @onDelete @item)}}\n            >\n              <FaIcon @icon='times' />\n            </button>\n          </div>\n        </div>\n  \n      {{/if}}\n  \n      {{#if @dsl.isDroppingInto}}\n        <div class='ms-5'>\n          <@dsl.Separator />\n        </div>\n      {{/if}}\n  \n      {{#if @item.expanded}}\n        <div class='ms-5'>\n          <@dsl.Children />\n  \n          <TaskTemplateItemRow::AddItem\n            class='me-2'\n            @inputId='task-template-item-row-name-input-{{this.internalId}}'\n            @saveNewTaskTemplateItem={{this.saveNewTaskTemplateItem}}\n            {{! the task must be saved before children can be added }}\n            @disabled={{or @disabled (and @item.item.isSaving @item.item.isNew)}}\n            @placeholder={{t\n              'components.task-template-item-row.addTaskForX'\n              taskName=@item.item.name\n            }}\n          />\n        </div>\n      {{/if}}\n    </@dsl.Draggable>\n  \n    {{#if @dsl.isDroppingBelow}}\n      <@dsl.Separator />\n    {{/if}}\n  {{/unless}}\n  */\n  {\n    \"id\": \"Zro+vxLY\",\n    \"block\": \"[[[41,[51,[30,1,[\\\"isDeleted\\\"]]],[[[41,[30,2,[\\\"isDroppingAbove\\\"]],[[[1,\\\"    \\\"],[8,[30,2,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[30,2,[\\\"Draggable\\\"]],[[24,0,\\\"task-template-item-row__item-container\\\"],[4,[38,2],[[30,0,[\\\"onIsDroppingInto\\\"]],[30,2,[\\\"isDroppingInto\\\"]]],null],[4,[38,3],[\\\"drop\\\",[30,0,[\\\"onDrop\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[8,[30,2,[\\\"DragHandle\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[16,0,[29,[\\\"task-template-item-row__item-row\\\\n            \\\",[52,[30,0,[\\\"hasTimeout\\\"]],\\\"task-template-item-row__item-row--expanding\\\"],\\\"\\\\n            \\\",[52,[30,2,[\\\"isDragging\\\"]],\\\"task-template-item-row__item-row--dragging\\\"]]]],[16,\\\"data-test-task-template-item-row\\\",[30,1,[\\\"item\\\",\\\"name\\\"]]],[4,[38,3],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,1,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"expanded\\\"]],[[[1,\\\"              \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"chevron-down\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n            \\\"]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[24,5,\\\"min-width: 33vw;\\\"],[24,0,\\\"form-control\\\"],[16,\\\"disabled\\\",[30,3]],[4,[38,3],[\\\"click\\\",[30,0,[\\\"onNameInputClick\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,1,[\\\"item\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,3]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"onDelete\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[16,0,[29,[\\\"task-template-item-row__item-row\\\\n          \\\",[52,[30,0,[\\\"hasTimeout\\\"]],\\\"task-template-item-row__item-row--expanding\\\"],\\\"\\\\n          \\\",[52,[30,2,[\\\"isDragging\\\"]],\\\"task-template-item-row__item-row--dragging\\\"]]]],[16,\\\"data-test-task-template-item-row\\\",[30,1,[\\\"item\\\",\\\"name\\\"]]],[4,[38,3],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"DragHandle\\\"]],[[24,0,\\\"me-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"grip-vertical\\\",true,\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,1,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"expanded\\\"]],[[[1,\\\"            \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"chevron-down\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,6],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n          \\\"]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,7],[[24,0,\\\"form-control\\\"],[16,\\\"disabled\\\",[30,3]],[4,[38,3],[\\\"click\\\",[30,0,[\\\"onNameInputClick\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,1,[\\\"item\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,3]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,9],[[30,4],[30,1]],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isDroppingInto\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-5\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"expanded\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-5\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Children\\\"]],null,null,null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,10],[[24,0,\\\"me-2\\\"]],[[\\\"@inputId\\\",\\\"@saveNewTaskTemplateItem\\\",\\\"@disabled\\\",\\\"@placeholder\\\"],[[29,[\\\"task-template-item-row-name-input-\\\",[30,0,[\\\"internalId\\\"]]]],[30,0,[\\\"saveNewTaskTemplateItem\\\"]],[28,[37,11],[[30,3],[28,[37,12],[[30,1,[\\\"item\\\",\\\"isSaving\\\"]],[30,1,[\\\"item\\\",\\\"isNew\\\"]]],null]],null],[28,[37,13],[\\\"components.task-template-item-row.addTaskForX\\\"],[[\\\"taskName\\\"],[[30,1,[\\\"item\\\",\\\"name\\\"]]]]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,2,[\\\"isDroppingBelow\\\"]],[[[1,\\\"    \\\"],[8,[30,2,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[\\\"@item\\\",\\\"@dsl\\\",\\\"@disabled\\\",\\\"@onDelete\\\"],false,[\\\"unless\\\",\\\"if\\\",\\\"did-update\\\",\\\"on\\\",\\\"media\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"button\\\",\\\"fn\\\",\\\"task-template-item-row/add-item\\\",\\\"or\\\",\\\"and\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/task-template-item-row.hbs\",\n    \"isStrictMode\": false\n  });\n  const expandOnHoverMsTimeout = 500; // this is paired with .nested-task-card__task-row--expanding\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"timeout\", _descriptor2, this);\n      _initializerDefineProperty(this, \"hasTimeout\", _descriptor3, this);\n      _initializerDefineProperty(this, \"internalId\", _descriptor4, this);\n    }\n    onIsDroppingInto() {\n      const {\n        item,\n        dsl\n      } = this.args;\n\n      // when we are not dropping into and there is an existing timeout, clear the timeout\n      if (!dsl.isDroppingInto && this.hasTimeout) {\n        clearTimeout(this.timeout);\n        this.hasTimeout = false;\n      }\n      const hasChildren = Boolean(item.children?.length);\n      const isCollapsed = !item.expanded;\n      if (!this.hasTimeout && dsl.isDroppingInto && hasChildren && isCollapsed) {\n        this.hasTimeout = true;\n        this.timeout = setTimeout(() => {\n          this.args.item.expanded = true; // expand the item\n          this.hasTimeout = false;\n        }, expandOnHoverMsTimeout);\n      }\n    }\n    onNameInputClick(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    onDrop() {\n      // expand the item if something has been dropped inside\n      if (this.args.dsl.isDroppingInto && !this.args.item.expanded) this.args.item.expanded = true;\n    }\n    toggleExpanded(event) {\n      this.args.item.expanded = !this.args.item.expanded;\n      if (this.args.item.expanded) this.focusTaskNameInput();\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    focusTaskNameInput() {\n      (0, _runloop.next)(() => {\n        document.getElementById(`task-template-item-row-name-input-${this.internalId}`).focus();\n      });\n    }\n    saveNewTaskTemplateItem(name) {\n      this.args.saveNewTaskTemplateItem.perform(name, this.args.item);\n    }\n    onDelete(item, event) {\n      event.stopPropagation();\n      event.preventDefault();\n      return this.args.onDelete(item);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"timeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasTimeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"internalId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return Math.random();\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onIsDroppingInto\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onIsDroppingInto\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onNameInputClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onNameInputClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDrop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleExpanded\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleExpanded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveNewTaskTemplateItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveNewTaskTemplateItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDelete\"), _class.prototype), _class));\n});","define(\"portal/components/task-template-item-row/add-item\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _service, _object, _emberChangeset, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='task-template-item-row__add-item-container'\n    data-test-task-template-modal-add-task\n    ...attributes\n  >\n    <FaIcon\n      @icon='plus'\n      @fixedWidth={{true}}\n      class='task-template-item-row__add-item-icon'\n    />\n  \n    <Input\n      @type='text'\n      @value={{this.changeset.name}}\n      id={{@inputId}}\n      class='task-template-item-row__add-item-input'\n      placeholder={{@placeholder}}\n      disabled={{@disabled}}\n      autofocus={{@autofocus}}\n      {{on 'keypress' this.onTaskNameInputKeypress}}\n      {{! you need this to prevent drops onto the input }}\n      {{on 'drop' this.noop}}\n    />\n  \n    {{#if this.changeset.name.length}}\n      <button\n        type='button'\n        class='ms-2 text-light btn btn-secondary'\n        disabled={{@disabled}}\n        {{on 'click' this.saveNewTaskTemplateItem}}\n      >{{t 'common.Add'}}</button>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"rGy3fUmu\",\n    \"block\": \"[[[11,0],[24,0,\\\"task-template-item-row__add-item-container\\\"],[24,\\\"data-test-task-template-modal-add-task\\\",\\\"\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"task-template-item-row__add-item-icon\\\"]],[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],[[16,1,[30,2]],[24,0,\\\"task-template-item-row__add-item-input\\\"],[16,\\\"placeholder\\\",[30,3]],[16,\\\"disabled\\\",[30,4]],[16,\\\"autofocus\\\",[30,5]],[4,[38,3],[\\\"keypress\\\",[30,0,[\\\"onTaskNameInputKeypress\\\"]]],null],[4,[38,3],[\\\"drop\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"changeset\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"changeset\\\",\\\"name\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"ms-2 text-light btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,4]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"saveNewTaskTemplateItem\\\"]]],null],[12],[1,[28,[35,6],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"&attrs\\\",\\\"@inputId\\\",\\\"@placeholder\\\",\\\"@disabled\\\",\\\"@autofocus\\\"],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"on\\\",\\\"if\\\",\\\"button\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/components/task-template-item-row/add-item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _defineProperty(this, \"validateName\", (newValue, oldValue) => {\n        const name = newValue || oldValue;\n        return name.length > 0 || this.intl.t('validation.Please provide a name');\n      });\n      _defineProperty(this, \"itemValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'name':\n            return this.validateName(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"validationMap\", {\n        name: this.validateName\n      });\n      _defineProperty(this, \"changeset\", (0, _emberChangeset.Changeset)({\n        name: ''\n      }, this.itemValidator, this.validationMap));\n      _defineProperty(this, \"validateAndProcess\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.changeset.validate();\n          if (!this.changeset.isValid) {\n            this.notifications.warning(this.changeset.error.name.validation);\n            return;\n          }\n          this.args.saveNewTaskTemplateItem(this.changeset.name);\n          this.changeset.name = '';\n        }\n      }), null, \"validateAndProcess\", null));\n    }\n    onTaskNameInputKeypress(e) {\n      if (e.key === 'Enter') this.saveNewTaskTemplateItem();\n    }\n    saveNewTaskTemplateItem() {\n      this.validateAndProcess.perform();\n    }\n    noop(e) {\n      e.preventDefault();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onTaskNameInputKeypress\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onTaskNameInputKeypress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveNewTaskTemplateItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveNewTaskTemplateItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _class));\n});","define(\"portal/components/task-template-modal\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@ember/array\", \"@glimmer/tracking\", \"@ember/service\", \"portal/utils/task-templates\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _array, _tracking, _service, _taskTemplates, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _class2, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/array\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"portal/utils/task-templates\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content w-auto'\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{this.onClose}}\n  >\n    <div class='modal-body'>\n      <div class='d-flex align-items-center'>\n        <div class='flex-grow-1 me-2' data-test-task-template-power-select>\n          <PowerSelect\n            @tagName='div'\n            @searchEnabled={{true}}\n            @searchField='name'\n            @placeholder={{t\n              'components.task-template-modal.selectATemplateToLoadTasksFrom'\n            }}\n            @options={{this.options}}\n            @loadingMessage={{t 'common.Loading'}}\n            @selected={{this.selectedTaskTemplate}}\n            @onChange={{this.onSelectTaskTemplate}}\n            as |template|\n          >\n            {{or\n              template.name\n              (t 'components.task-template-modal.Unnamed template*')\n            }}\n          </PowerSelect>\n        </div>\n  \n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' this.createNewTemplate}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t\n            'components.task-template-modal.Add new template'\n          }}\n        </button>\n      </div>\n  \n      {{#if this.selectedTaskTemplate}}\n        <div class='my-3'>\n          <label class='mb-1' for='selected-template-name'>\n            {{t 'common.Name'}}\n            <sup class='text-danger'>*</sup>\n          </label>\n          <Input\n            class='form-control'\n            id='selected-template-name'\n            @value={{this.selectedTaskTemplate.name}}\n            disabled={{this.isDefaultTemplate}}\n          />\n        </div>\n  \n        <div class='my-3'>\n          <label class='mb-1'>\n            {{t 'common.Tasks'}}\n            <sup class='text-danger'>*</sup>\n          </label>\n          <div\n            class='bg-white border rounded task-template-modal__task-container'\n          >\n            <DragSortList\n              @onUpdate={{perform this.onTaskTemplateItemsUpdate}}\n              @itemComponent={{component\n                'task-template-item-row'\n                saveNewTaskTemplateItem=this.saveNewTaskTemplateItem\n                onDelete=(perform this.onDelete)\n                disabled=this.isSaving\n              }}\n              @list={{this.taskTemplateItems}}\n            />\n            <TaskTemplateItemRow::AddItem\n              class='me-2'\n              @saveNewTaskTemplateItem={{perform this.saveNewTaskTemplateItem}}\n              @disabled={{this.isSaving}}\n              @autofocus={{true}}\n              @placeholder={{t 'common.Add task'}}\n              data-test-task-template-modal-add-task\n            />\n          </div>\n        </div>\n  \n        <div class='d-flex align-items-center'>\n          {{#if @parentTasks.length}}\n            <button\n              type='button'\n              disabled={{or this.isSaving}}\n              class='btn btn-success text-white text-nowrap m-1'\n              {{on 'click' this.onCopyExistingTasks}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;\n              {{t 'components.task-template-modal.Add tasks from project'}}\n            </button>\n          {{/if}}\n          <div class='ms-auto'>\n            {{#if this.canDelete}}\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline m-1'\n                disabled={{this.isSaving}}\n                {{on 'click' (perform this.deleteSelectedTemplate)}}\n              >\n                {{#if this.deleteSelectedTemplate.isRunning}}\n                  {{t 'components.task-template-modal.Deleting template'}}&hellip;\n                {{else}}\n                  {{t 'shared.task.Delete template'}}\n                {{/if}}\n              </button>\n            {{/if}}\n  \n            <button\n              type='button'\n              class='btn btn-primary text-nowrap m-1'\n              disabled={{or this.isSaving}}\n              {{on 'click' (perform this.saveSelectedTaskTemplate)}}\n            >\n              {{#if this.isDefaultTemplate}}\n                {{#if this.saveSelectedTaskTemplate.isRunning}}\n                  {{t 'components.task-template-modal.Creating template'}}&hellip;\n                {{else}}\n                  {{t\n                    'components.task-template-modal.Create new template from default'\n                  }}\n                {{/if}}\n              {{else}}\n                {{#if this.saveSelectedTaskTemplate.isRunning}}\n                  {{t 'components.task-template-modal.Saving template'}}&hellip;\n                {{else}}\n                  {{t 'components.task-template-modal.Save template'}}\n                {{/if}}\n              {{/if}}\n            </button>\n          </div>\n        </div>\n      {{/if}}\n    </div>\n    <div class='modal-footer'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white text-nowrap m-1'\n        {{on 'click' this.onClose}}\n        data-test-template-modal-cancel-button\n      >\n        {{t 'common.Cancel'}}\n      </button>\n      {{#if this.selectedTaskTemplate}}\n        <button\n          type='button'\n          disabled={{or this.isSaving}}\n          class='ms-auto btn btn-primary text-nowrap m-1'\n          {{on\n            'click'\n            (fn\n              @onLoadTaskTemplate this.selectedTaskTemplate this.taskTemplateItems\n            )\n          }}\n        >\n          {{t 'components.task-template-modal.Load template'}}\n        </button>\n      {{/if}}\n    </div>\n  \n  </ModalDialog>\n  */\n  {\n    \"id\": \"PchXfjWP\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",true,\\\"modal\\\",[30,0,[\\\"onClose\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex-grow-1 me-2\\\"],[14,\\\"data-test-task-template-power-select\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,2],null,[[\\\"@tagName\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@options\\\",\\\"@loadingMessage\\\",\\\"@selected\\\",\\\"@onChange\\\"],[\\\"div\\\",true,\\\"name\\\",[28,[37,3],[\\\"components.task-template-modal.selectATemplateToLoadTasksFrom\\\"],null],[30,0,[\\\"options\\\"]],[28,[37,3],[\\\"common.Loading\\\"],null],[30,0,[\\\"selectedTaskTemplate\\\"]],[30,0,[\\\"onSelectTaskTemplate\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[[30,1,[\\\"name\\\"]],[28,[37,3],[\\\"components.task-template-modal.Unnamed template*\\\"],null]],null]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"createNewTemplate\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"components.task-template-modal.Add new template\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedTaskTemplate\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"my-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"selected-template-name\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"common.Name\\\"],null]],[1,\\\"\\\\n          \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,11],[[24,0,\\\"form-control\\\"],[24,1,\\\"selected-template-name\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDefaultTemplate\\\"]]]],[[\\\"@value\\\"],[[30,0,[\\\"selectedTaskTemplate\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"my-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"common.Tasks\\\"],null]],[1,\\\"\\\\n          \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"bg-white border rounded task-template-modal__task-container\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@onUpdate\\\",\\\"@itemComponent\\\",\\\"@list\\\"],[[28,[37,13],[[30,0,[\\\"onTaskTemplateItemsUpdate\\\"]]],null],[50,\\\"task-template-item-row\\\",0,null,[[\\\"saveNewTaskTemplateItem\\\",\\\"onDelete\\\",\\\"disabled\\\"],[[30,0,[\\\"saveNewTaskTemplateItem\\\"]],[28,[37,13],[[30,0,[\\\"onDelete\\\"]]],null],[30,0,[\\\"isSaving\\\"]]]]],[30,0,[\\\"taskTemplateItems\\\"]]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[24,0,\\\"me-2\\\"],[24,\\\"data-test-task-template-modal-add-task\\\",\\\"\\\"]],[[\\\"@saveNewTaskTemplateItem\\\",\\\"@disabled\\\",\\\"@autofocus\\\",\\\"@placeholder\\\"],[[28,[37,13],[[30,0,[\\\"saveNewTaskTemplateItem\\\"]]],null],[30,0,[\\\"isSaving\\\"]],true,[28,[37,3],[\\\"common.Add task\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"length\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,4],[[30,0,[\\\"isSaving\\\"]]],null]],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"onCopyExistingTasks\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\\n            \\\"],[1,[28,[35,3],[\\\"components.task-template-modal.Add tasks from project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canDelete\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteSelectedTemplate\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteSelectedTemplate\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,3],[\\\"components.task-template-modal.Deleting template\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,3],[\\\"shared.task.Delete template\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[16,\\\"disabled\\\",[28,[37,4],[[30,0,[\\\"isSaving\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"saveSelectedTaskTemplate\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDefaultTemplate\\\"]],[[[41,[30,0,[\\\"saveSelectedTaskTemplate\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,3],[\\\"components.task-template-modal.Creating template\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,3],[\\\"components.task-template-modal.Create new template from default\\\"],null]],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[30,0,[\\\"saveSelectedTaskTemplate\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,3],[\\\"components.task-template-modal.Saving template\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,3],[\\\"components.task-template-modal.Save template\\\"],null]],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[24,\\\"data-test-template-modal-cancel-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"onClose\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedTaskTemplate\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,4],[[30,0,[\\\"isSaving\\\"]]],null]],[24,0,\\\"ms-auto btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,16],[[30,3],[30,0,[\\\"selectedTaskTemplate\\\"]],[30,0,[\\\"taskTemplateItems\\\"]]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.task-template-modal.Load template\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]]]]],[\\\"template\\\",\\\"@parentTasks\\\",\\\"@onLoadTaskTemplate\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"power-select\\\",\\\"t\\\",\\\"or\\\",\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"if\\\",\\\"label\\\",\\\"sup\\\",\\\"input\\\",\\\"drag-sort-list\\\",\\\"perform\\\",\\\"component\\\",\\\"task-template-item-row/add-item\\\",\\\"fn\\\"]]\",\n    \"moduleName\": \"portal/components/task-template-modal.hbs\",\n    \"isStrictMode\": false\n  });\n  let TaskTemplateItemContainer = (_class = class TaskTemplateItemContainer {\n    delete() {\n      this._isDeleted = true;\n      if (this.children) this.children.forEach(child => child.delete());\n    }\n    get isDeleted() {\n      return this.item.isDeleted;\n    }\n    toJSON() {\n      if (this.isDeleted) return undefined;\n      return {\n        item: this.item,\n        children: this.children?.filter(c => !c.isDeleted)\n      };\n    }\n    constructor(item) {\n      _defineProperty(this, \"item\", void 0);\n      _initializerDefineProperty(this, \"children\", _descriptor, this);\n      _initializerDefineProperty(this, \"expanded\", _descriptor2, this);\n      _initializerDefineProperty(this, \"_isDeleted\", _descriptor3, this);\n      this.item = item;\n      const childItems = item.hasMany('items').value() ?? [];\n      if (childItems.length) {\n        this.children = [...childItems].sortBy('path').map(c => new TaskTemplateItemContainer(c));\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"expanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_isDeleted\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor6, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor7, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor8, this);\n      _initializerDefineProperty(this, \"taskTemplates\", _descriptor9, this);\n      _initializerDefineProperty(this, \"defaultTaskTemplates\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedTaskTemplate\", _descriptor1, this);\n      _initializerDefineProperty(this, \"taskTemplateItems\", _descriptor10, this);\n      _initializerDefineProperty(this, \"options\", _descriptor11, this);\n      _defineProperty(this, \"initTaskTemplates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const templates = yield this.store.simpleQuery('task-template', {\n            entity: this.sessionData.entity.id\n          }, {\n            include: 'items'\n          });\n\n          // if you have templates, use them\n          this.taskTemplates = (0, _array.A)(templates.toArray());\n\n          // and create some defaults\n          const initItems = (itemTemplates, parentItem, template) => {\n            itemTemplates.forEach((itemTemplate, i) => {\n              const newParentItem = this.store.createRecord('task-template-item', {\n                entity: this.sessionData.entity,\n                taskTemplate: template,\n                name: itemTemplate.name,\n                parent: parentItem,\n                path: parentItem ? `${parentItem.path}.${String(i).padStart(3, '0')}` : `${String(i).padStart(3, '0')}`\n              });\n              if (itemTemplate.items) initItems(itemTemplate.items, newParentItem, template);\n            });\n          };\n          this.defaultTaskTemplates = _taskTemplates.default.map(defaultTemplate => {\n            const template = this.store.createRecord('task-template', {\n              entity: this.sessionData.entity,\n              name: defaultTemplate.name\n            });\n            initItems(defaultTemplate.items, null, template);\n            return template;\n          });\n        }\n      }), null, \"initTaskTemplates\", null));\n      _defineProperty(this, \"onTaskTemplateItemsUpdate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (newTaskTemplateItems) {\n          this.taskTemplateItems = newTaskTemplateItems;\n        }\n      }), null, \"onTaskTemplateItemsUpdate\", null));\n      _defineProperty(this, \"saveNewTaskTemplateItem\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (name, parent) {\n          if (!name || name.length < 1) {\n            this.notifications.warning(this.intl.t('shared.notification.Please provide a task name'));\n            return;\n          }\n          const newItem = this.store.createRecord('task-template-item', {\n            name,\n            taskTemplate: this.selectedTaskTemplate,\n            parent: parent?.item,\n            entity: this.sessionData.entity\n          });\n          this.addTaskTemplateItemToList(newItem, parent);\n        }\n      }), null, \"saveNewTaskTemplateItem\", null));\n      _defineProperty(this, \"onDelete\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (item) {\n          // delete the item record\n          yield item.delete();\n        }\n      }), null, \"onDelete\", null));\n      _defineProperty(this, \"deleteSelectedTemplate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!confirm(this.intl.t('components.task-template-modal.areYouSureYouWantToDeleteThisTaskTemplate'))) return;\n          yield this.selectedTaskTemplate.destroyRecord();\n          this.taskTemplates.removeObject(this.selectedTaskTemplate);\n          this.selectedTaskTemplate = null;\n        }\n      }), null, \"deleteSelectedTemplate\", null));\n      _defineProperty(this, \"saveSelectedTaskTemplate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.selectedTaskTemplate.name.length < 2 || !this.selectedTaskTemplate.hasMany('items').value()?.length) {\n            this.notifications.warning(this.intl.t('components.task-template-modal.pleaseProvideAValidNameAndAtLeastOneTask'));\n            return;\n          }\n          if (this.selectedTaskTemplate.hasMany('items').value().toArray().some(item => item.name.length < 1)) {\n            this.notifications.warning(this.intl.t('components.task-template-modal.pleaseProvideAValidNameForAllTasks'));\n            return;\n          }\n          try {\n            yield this.selectedTaskTemplate.save();\n            const payload = {\n              taskTemplateItems: this.taskTemplateItems.filter(i => !i.isDeleted),\n              entityId: this.sessionData.entity.id,\n              taskTemplateId: this.selectedTaskTemplate.id\n            };\n            yield this.buildaPrice.updateTaskTemplate(payload);\n            this.store.unloadAll('task-template-item');\n            this.options = yield this.fetchOptions();\n            this.onSelectTaskTemplate(this.selectedTaskTemplate);\n          } catch (error) {\n            this.notifications.error(this.intl.t('components.task-template-modal.somethingWentWrongWhileSavingTaskTemplate'), error);\n          }\n        }\n      }), null, \"saveSelectedTaskTemplate\", null));\n    }\n    async fetchOptions() {\n      await this.initTaskTemplates.perform();\n      return [{\n        groupName: this.intl.t('components.task-template-modal.Your templates'),\n        options: this.taskTemplates\n      }, {\n        groupName: this.intl.t('components.task-template-modal.Default templates'),\n        options: this.defaultTaskTemplates\n      }];\n    }\n    get isSaving() {\n      return this.deleteSelectedTemplate.isRunning || this.saveSelectedTaskTemplate.isRunning;\n    }\n    get isDefaultTemplate() {\n      return this.defaultTaskTemplates.includes(this.selectedTaskTemplate);\n    }\n    get canDelete() {\n      return !this.isDefaultTemplate && this.taskTemplates?.length > 1;\n    }\n    createNewTemplate() {\n      this.selectedTaskTemplate = this.store.createRecord('task-template', {\n        entity: this.sessionData.entity,\n        name: ''\n      });\n      this.taskTemplateItems = [];\n      this.taskTemplates.pushObject(this.selectedTaskTemplate);\n    }\n    onSelectTaskTemplate(taskTemplate) {\n      this.selectedTaskTemplate = taskTemplate;\n      if (taskTemplate) this.taskTemplateItems = [...(taskTemplate.hasMany('items').value() ?? [])].filter(item => !item.belongsTo('parent').value()).sortBy('path').map(item => new TaskTemplateItemContainer(item));\n    }\n    addTaskTemplateItemToList(item, parent) {\n      const newItemContainer = new TaskTemplateItemContainer(item);\n\n      // if we don't have a parent push to the top level of the list\n      if (!parent) {\n        this.taskTemplateItems = [...this.taskTemplateItems, newItemContainer];\n        return;\n      }\n\n      // otherwise add to the parent container children\n      parent.children = [...(parent.children || []), newItemContainer];\n    }\n    onClose() {\n      this.args.onClose();\n    }\n    onCopyExistingTasks() {\n      const createTaskTemplateItems = (taskList = [], parentItemContainer) => {\n        taskList.forEach(task => {\n          const newItem = this.store.createRecord('task-template-item', {\n            name: task.name,\n            taskTemplate: this.selectedTaskTemplate,\n            parent: parentItemContainer?.item,\n            entity: this.sessionData.entity\n          });\n          const newItemContainer = new TaskTemplateItemContainer(newItem);\n          // if we don't have a parent push to the top level of the list\n          if (!parentItemContainer) {\n            this.taskTemplateItems = [...this.taskTemplateItems, newItemContainer];\n          } else {\n            parentItemContainer.children = [...(parentItemContainer.children || []), newItemContainer];\n          }\n          if (task.activeChildren?.length) {\n            createTaskTemplateItems(task.activeChildren.sortBy('path'), newItemContainer);\n          }\n        });\n      };\n      createTaskTemplateItems(this.args.parentTasks, null);\n    }\n  }, _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"taskTemplates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"defaultTaskTemplates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"selectedTaskTemplate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"taskTemplateItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"options\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.fetchOptions();\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"createNewTemplate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"createNewTemplate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectTaskTemplate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectTaskTemplate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClose\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onCopyExistingTasks\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onCopyExistingTasks\"), _class2.prototype), _class2));\n});","define(\"portal/components/task-transfer-selector\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PopUp\n    @visible={{this.isTaskSelectorOpen}}\n    @onClose={{this.closeTaskSelector}}\n    as |popup|\n  >\n    <div\n      role='button'\n      class='form-control task-transfer-selector__input'\n      {{on 'click' this.openTaskSelector}}\n    >\n      {{#if @selectedTask}}\n        <TaskBreadcrumbs @task={{@selectedTask}} />\n      {{else}}\n        {{t 'common.Select a task'}}\n      {{/if}}\n    </div>\n  \n    <popup.Content>\n      <TaskSelector\n        @tasks={{@tasks}}\n        @excludedTasks={{@excludedTasks}}\n        @selectedTask={{@selectedTask}}\n        @onCancel={{this.closeTaskSelector}}\n        @onSubmit={{this.selectTask}}\n      />\n    </popup.Content>\n  </PopUp>\n  */\n  {\n    \"id\": \"NsVwldEv\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@visible\\\",\\\"@onClose\\\"],[[30,0,[\\\"isTaskSelectorOpen\\\"]],[30,0,[\\\"closeTaskSelector\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"form-control task-transfer-selector__input\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"openTaskSelector\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\"      \\\"],[8,[39,4],null,[[\\\"@task\\\"],[[30,2]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[1,[28,[35,5],[\\\"common.Select a task\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,6],null,[[\\\"@tasks\\\",\\\"@excludedTasks\\\",\\\"@selectedTask\\\",\\\"@onCancel\\\",\\\"@onSubmit\\\"],[[30,3],[30,4],[30,2],[30,0,[\\\"closeTaskSelector\\\"]],[30,0,[\\\"selectTask\\\"]]]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]]]]]],[\\\"popup\\\",\\\"@selectedTask\\\",\\\"@tasks\\\",\\\"@excludedTasks\\\"],false,[\\\"pop-up\\\",\\\"div\\\",\\\"on\\\",\\\"if\\\",\\\"task-breadcrumbs\\\",\\\"t\\\",\\\"task-selector\\\"]]\",\n    \"moduleName\": \"portal/components/task-transfer-selector.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"isTaskSelectorOpen\", _descriptor, this);\n    }\n    openTaskSelector() {\n      this.isTaskSelectorOpen = true;\n    }\n    closeTaskSelector() {\n      this.isTaskSelectorOpen = false;\n    }\n    selectTask(task) {\n      this.args.onSelectTask(task);\n      this.isTaskSelectorOpen = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isTaskSelectorOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"openTaskSelector\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openTaskSelector\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeTaskSelector\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeTaskSelector\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectTask\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectTask\"), _class.prototype), _class));\n});","define(\"portal/components/task-type-badge\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! TODO probably use new and better icons }}\n  {{#if (eq @type 'BUILDERS_WORK')}}\n    <div class='bg-info text-white task-type-badge__container' ...attributes>\n      {{t 'common.builderWork'}}\n      <FaIcon @icon='hammer' class='ms-2' />\n    </div>\n  {{else if (eq @type 'SUMS')}}\n    <div class='bg-success text-white task-type-badge__container' ...attributes>\n      {{t 'common.Sums'}}\n      <FaIcon @icon='money-bill' class='ms-2' />\n    </div>\n  {{else if (eq @type 'SUBCONTRACTOR')}}\n    <div class='bg-warning text-dark task-type-badge__container' ...attributes>\n      {{t 'common.Subcontractors'}}\n      <FaIcon @icon='user' class='ms-2' />\n    </div>\n  {{else if (eq @type 'PLANT')}}\n    <div class='bg-secondary text-white task-type-badge__container' ...attributes>\n      {{t 'common.Plant'}}\n      <FaIcon @icon='truck' class='ms-2' />\n    </div>\n  {{else if (eq @type 'INTERNAL')}}\n    <div class='bg-dark text-white task-type-badge__container' ...attributes>\n      {{t 'common.Internal'}}\n      <FaIcon @icon='eye' class='ms-2' />\n    </div>\n  {{else if (eq @type 'MILESTONE')}}\n    <div class='bg-primary text-white task-type-badge__container' ...attributes>\n      {{t 'common.Milestone'}}\n      <FaIcon @icon='crosshairs' class='ms-2' />\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"8R2D/pcX\",\n    \"block\": \"[[[41,[28,[37,1],[[30,1],\\\"BUILDERS_WORK\\\"],null],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"bg-info text-white task-type-badge__container\\\"],[17,2],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[\\\"common.builderWork\\\"],null]],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"ms-2\\\"]],[[\\\"@icon\\\"],[\\\"hammer\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[[30,1],\\\"SUMS\\\"],null],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"bg-success text-white task-type-badge__container\\\"],[17,2],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[\\\"common.Sums\\\"],null]],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"ms-2\\\"]],[[\\\"@icon\\\"],[\\\"money-bill\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[[30,1],\\\"SUBCONTRACTOR\\\"],null],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"bg-warning text-dark task-type-badge__container\\\"],[17,2],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"ms-2\\\"]],[[\\\"@icon\\\"],[\\\"user\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[[30,1],\\\"PLANT\\\"],null],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"bg-secondary text-white task-type-badge__container\\\"],[17,2],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[\\\"common.Plant\\\"],null]],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"ms-2\\\"]],[[\\\"@icon\\\"],[\\\"truck\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[[30,1],\\\"INTERNAL\\\"],null],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"bg-dark text-white task-type-badge__container\\\"],[17,2],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[\\\"common.Internal\\\"],null]],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"ms-2\\\"]],[[\\\"@icon\\\"],[\\\"eye\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[[30,1],\\\"MILESTONE\\\"],null],[[[1,\\\"  \\\"],[11,0],[24,0,\\\"bg-primary text-white task-type-badge__container\\\"],[17,2],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,3],[\\\"common.Milestone\\\"],null]],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"ms-2\\\"]],[[\\\"@icon\\\"],[\\\"crosshairs\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]]],[]]]],[]]]],[]]]],[\\\"@type\\\",\\\"&attrs\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"div\\\",\\\"t\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/task-type-badge.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/timeline-task-import-item-row\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _tracking, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! template-lint-disable no-nested-interactive }}\n  {{#if @dsl.isDroppingAbove}}\n    <@dsl.Separator />\n  {{/if}}\n  \n  <@dsl.Draggable\n    class='timeline-task-import-item-row__item-container'\n    {{did-update this.onIsDroppingInto @dsl.isDroppingInto}}\n    {{on 'drop' this.onDrop}}\n  >\n    {{#if (media 'isDesktop')}}\n      <@dsl.DragHandle>\n        <div\n          role='treeitem'\n          class='timeline-task-import-item-row__item-row\n            {{if\n              this.hasTimeout\n              \"timeline-task-import-item-row__item-row--expanding\"\n            }}\n            {{if\n              @dsl.isDragging\n              \"timeline-task-import-item-row__item-row--dragging\"\n            }}'\n          {{on 'click' this.toggleExpanded}}\n          data-test-task-template-item-row={{@item.task.name}}\n        >\n          <div>\n            {{#if @item.children.length}}\n              <FaIcon\n                @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n                @fixedWidth={{true}}\n              />\n            {{else}}\n              <FaIcon\n                @icon={{if @item.expanded 'chevron-down' 'plus'}}\n                @fixedWidth={{true}}\n              />\n            {{/if}}\n          </div>\n  \n          <div class='mx-2'>\n            <Input\n              style='min-width: 33vw;'\n              class='form-control'\n              @type='text'\n              @value={{@item.task.name}}\n              disabled={{@disabled}}\n              {{on 'click' this.onNameInputClick}}\n            />\n          </div>\n          <div class='ms-auto'>\n            <IndeterminateCheckbox\n              class='md-size-checkbox'\n              @checked={{@item.checked}}\n              @indeterminate={{@item.indeterminate}}\n              @onChange={{this.setIsTaskScheduling}}\n            />\n          </div>\n        </div>\n      </@dsl.DragHandle>\n    {{else}}\n      <div\n        role='treeitem'\n        class='timeline-task-import-item-row__item-row\n          {{if\n            this.hasTimeout\n            \"timeline-task-import-item-row__item-row--expanding\"\n          }}\n          {{if\n            @dsl.isDragging\n            \"timeline-task-import-item-row__item-row--dragging\"\n          }}'\n        {{on 'click' this.toggleExpanded}}\n        data-test-task-template-item-row={{@item.task.name}}\n      >\n        <@dsl.DragHandle class='me-3'>\n          <FaIcon @icon='grip-vertical' @fixedWidth={{true}} @size='lg' />\n        </@dsl.DragHandle>\n  \n        <div>\n          {{#if @item.children.length}}\n            <FaIcon\n              @icon={{if @item.expanded 'chevron-down' 'chevron-right'}}\n              @fixedWidth={{true}}\n            />\n          {{else}}\n            <FaIcon @icon='plus' @fixedWidth={{true}} />\n          {{/if}}\n        </div>\n  \n        <div class='mx-2'>\n          <Input\n            class='form-control'\n            @type='text'\n            @value={{@item.task.name}}\n            disabled={{@disabled}}\n            {{on 'click' this.onNameInputClick}}\n          />\n        </div>\n  \n        <div class='mx-2'>\n          <IndeterminateCheckbox\n            @checked={{@item.checked}}\n            @indeterminate={{@item.indeterminate}}\n            @onChange={{this.setIsTaskScheduling}}\n          />\n        </div>\n      </div>\n  \n    {{/if}}\n  \n    {{#if @dsl.isDroppingInto}}\n      <div class='ms-5'>\n        <@dsl.Separator />\n      </div>\n    {{/if}}\n  \n    {{#if @item.expanded}}\n      <div class='ms-5'>\n        <@dsl.Children />\n        <TimelineTaskImportItemRow::AddItem\n          @onAddItem={{this.addItem}}\n          @disabled={{@disabled}}\n        />\n      </div>\n    {{/if}}\n  </@dsl.Draggable>\n  \n  {{#if @dsl.isDroppingBelow}}\n    <@dsl.Separator />\n  {{/if}}\n  */\n  {\n    \"id\": \"FSLLBC23\",\n    \"block\": \"[[[41,[30,1,[\\\"isDroppingAbove\\\"]],[[[1,\\\"  \\\"],[8,[30,1,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[30,1,[\\\"Draggable\\\"]],[[24,0,\\\"timeline-task-import-item-row__item-container\\\"],[4,[38,1],[[30,0,[\\\"onIsDroppingInto\\\"]],[30,1,[\\\"isDroppingInto\\\"]]],null],[4,[38,2],[\\\"drop\\\",[30,0,[\\\"onDrop\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[8,[30,1,[\\\"DragHandle\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[16,0,[29,[\\\"timeline-task-import-item-row__item-row\\\\n          \\\",[52,[30,0,[\\\"hasTimeout\\\"]],\\\"timeline-task-import-item-row__item-row--expanding\\\"],\\\"\\\\n          \\\",[52,[30,1,[\\\"isDragging\\\"]],\\\"timeline-task-import-item-row__item-row--dragging\\\"]]]],[16,\\\"data-test-task-template-item-row\\\",[30,2,[\\\"task\\\",\\\"name\\\"]]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,2,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,2,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"plus\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,6],[[24,5,\\\"min-width: 33vw;\\\"],[24,0,\\\"form-control\\\"],[16,\\\"disabled\\\",[30,3]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"onNameInputClick\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,2,[\\\"task\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,7],[[24,0,\\\"md-size-checkbox\\\"]],[[\\\"@checked\\\",\\\"@indeterminate\\\",\\\"@onChange\\\"],[[30,2,[\\\"checked\\\"]],[30,2,[\\\"indeterminate\\\"]],[30,0,[\\\"setIsTaskScheduling\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[11,0],[24,\\\"role\\\",\\\"treeitem\\\"],[16,0,[29,[\\\"timeline-task-import-item-row__item-row\\\\n        \\\",[52,[30,0,[\\\"hasTimeout\\\"]],\\\"timeline-task-import-item-row__item-row--expanding\\\"],\\\"\\\\n        \\\",[52,[30,1,[\\\"isDragging\\\"]],\\\"timeline-task-import-item-row__item-row--dragging\\\"]]]],[16,\\\"data-test-task-template-item-row\\\",[30,2,[\\\"task\\\",\\\"name\\\"]]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleExpanded\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"DragHandle\\\"]],[[24,0,\\\"me-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"grip-vertical\\\",true,\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"children\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,2,[\\\"expanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[8,[39,5],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],[[24,0,\\\"form-control\\\"],[16,\\\"disabled\\\",[30,3]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"onNameInputClick\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,2,[\\\"task\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mx-2\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],null,[[\\\"@checked\\\",\\\"@indeterminate\\\",\\\"@onChange\\\"],[[30,2,[\\\"checked\\\"]],[30,2,[\\\"indeterminate\\\"]],[30,0,[\\\"setIsTaskScheduling\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isDroppingInto\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"ms-5\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"expanded\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"ms-5\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[30,1,[\\\"Children\\\"]],null,null,null],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@onAddItem\\\",\\\"@disabled\\\"],[[30,0,[\\\"addItem\\\"]],[30,3]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"isDroppingBelow\\\"]],[[[1,\\\"  \\\"],[8,[30,1,[\\\"Separator\\\"]],null,null,null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@dsl\\\",\\\"@item\\\",\\\"@disabled\\\"],false,[\\\"if\\\",\\\"did-update\\\",\\\"on\\\",\\\"media\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"indeterminate-checkbox\\\",\\\"timeline-task-import-item-row/add-item\\\"]]\",\n    \"moduleName\": \"portal/components/timeline-task-import-item-row.hbs\",\n    \"isStrictMode\": false\n  });\n  const expandOnHoverMsTimeout = 500; // this is paired with timeline-task-import-item-row__item-row--expanding\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"timeout\", _descriptor3, this);\n      _initializerDefineProperty(this, \"hasTimeout\", _descriptor4, this);\n    }\n    addItem(name) {\n      return this.args.onAddItem(name, this.args.item);\n    }\n    onIsDroppingInto() {\n      const {\n        item,\n        dsl\n      } = this.args;\n\n      // when we are not dropping into and there is an existing timeout, clear the timeout\n      if (!dsl.isDroppingInto && this.hasTimeout) {\n        clearTimeout(this.timeout);\n        this.hasTimeout = false;\n      }\n      const hasChildren = Boolean(item.children?.length);\n      const isCollapsed = !item.expanded;\n      if (!this.hasTimeout && dsl.isDroppingInto && hasChildren && isCollapsed) {\n        this.hasTimeout = true;\n        this.timeout = setTimeout(() => {\n          this.args.item.expanded = true; // expand the item\n          this.hasTimeout = false;\n        }, expandOnHoverMsTimeout);\n      }\n    }\n    onDrop() {\n      // expand the item if something has been dropped inside\n      if (this.args.dsl.isDroppingInto && !this.args.item.expanded) this.args.item.expanded = true;\n    }\n    onNameInputClick(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    toggleExpanded(event) {\n      this.args.item.expanded = !this.args.item.expanded;\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    setIsTaskScheduling(event) {\n      event.stopPropagation();\n      event.preventDefault();\n      (0, _runloop.next)(() => {\n        const newIsEnabled = !this.args.item.isSchedulingEnabled;\n        const setIsTaskSchedulingOnChildren = item => {\n          item.isSchedulingEnabled = newIsEnabled;\n          if (item.children?.length) {\n            item.children.forEach(i => setIsTaskSchedulingOnChildren(i));\n          }\n        };\n        setIsTaskSchedulingOnChildren(this.args.item);\n      });\n    }\n    saveNewTask(name) {\n      this.args.saveNewTask.perform(name, this.args.item.task);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"timeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"hasTimeout\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"addItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onIsDroppingInto\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onIsDroppingInto\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onDrop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onDrop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onNameInputClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onNameInputClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleExpanded\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleExpanded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setIsTaskScheduling\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setIsTaskScheduling\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveNewTask\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveNewTask\"), _class.prototype), _class));\n});","define(\"portal/components/timeline-task-import-item-row/add-item\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _service, _object, _emberChangeset, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='timeline-task-import-item-row__add-item-container' ...attributes>\n    <FaIcon\n      @icon='plus'\n      @fixedWidth={{true}}\n      class='timeline-task-import-item-row__add-item-icon'\n    />\n  \n    <Input\n      @type='text'\n      @value={{this.changeset.name}}\n      class='timeline-task-import-item-row__add-item-input'\n      placeholder={{t 'shared.task.Add task'}}\n      disabled={{@disabled}}\n      {{on 'keypress' this.onTaskNameInputKeypress}}\n      {{! you need this to prevent drops onto the input }}\n      {{on 'drop' this.noop}}\n    />\n  \n    {{#if this.changeset.name.length}}\n      <button\n        type='button'\n        class='ms-2 text-light btn btn-secondary me-2'\n        disabled={{@disabled}}\n        {{on 'click' this.saveNewItem}}\n      >{{t 'common.Add'}}</button>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"zx9FucuD\",\n    \"block\": \"[[[11,0],[24,0,\\\"timeline-task-import-item-row__add-item-container\\\"],[17,1],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"timeline-task-import-item-row__add-item-icon\\\"]],[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plus\\\",true]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],[[24,0,\\\"timeline-task-import-item-row__add-item-input\\\"],[16,\\\"placeholder\\\",[28,[37,3],[\\\"shared.task.Add task\\\"],null]],[16,\\\"disabled\\\",[30,2]],[4,[38,4],[\\\"keypress\\\",[30,0,[\\\"onTaskNameInputKeypress\\\"]]],null],[4,[38,4],[\\\"drop\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"changeset\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"changeset\\\",\\\"name\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"ms-2 text-light btn btn-secondary me-2\\\"],[16,\\\"disabled\\\",[30,2]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"saveNewItem\\\"]]],null],[12],[1,[28,[35,3],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"&attrs\\\",\\\"@disabled\\\"],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"t\\\",\\\"on\\\",\\\"if\\\",\\\"button\\\"]]\",\n    \"moduleName\": \"portal/components/timeline-task-import-item-row/add-item.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _defineProperty(this, \"validateName\", (newValue, oldValue) => {\n        const name = newValue || oldValue;\n        return name.length > 0 || this.intl.t('validation.Please provide a name');\n      });\n      _defineProperty(this, \"itemValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'name':\n            return this.validateName(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"validationMap\", {\n        name: this.validateName\n      });\n      _defineProperty(this, \"changeset\", (0, _emberChangeset.Changeset)({\n        name: ''\n      }, this.itemValidator, this.validationMap));\n      _defineProperty(this, \"validateAndProcess\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.changeset.validate();\n          if (!this.changeset.isValid) {\n            this.notifications.warning(this.changeset.error.name.validation);\n            return;\n          }\n          this.args.onAddItem(this.changeset.name);\n          this.changeset.name = '';\n        }\n      }), null, \"validateAndProcess\", null));\n    }\n    onTaskNameInputKeypress(e) {\n      if (e.key === 'Enter') this.saveNewItem();\n    }\n    saveNewItem() {\n      this.validateAndProcess.perform();\n    }\n    noop(e) {\n      e.preventDefault();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"onTaskNameInputKeypress\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onTaskNameInputKeypress\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveNewItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"saveNewItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _class));\n});","define(\"portal/components/timeline-task-import-modal\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/array\", \"portal/utils/task-templates\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _service, _array, _taskTemplates, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.TaskContainer = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _class2, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/array\",0,\"portal/utils/task-templates\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @containerClass='modal-content timeline-task-import-modal__modal-dialog'\n    @translucentOverlay={{true}}\n    @overlayClass='modal'\n    @onClose={{this.onClose}}\n  >\n    <div class='modal-header'>\n      <h3 class='modal-title'>\n        {{t 'components.timeline-task-import-modal.Import tasks for scheduling'}}\n      </h3>\n    </div>\n  \n    <div class='modal-body'>\n      <div class='mb-3'>\n        <p class='mt-0'>\n          {{t\n            'components.timeline-task-import-modal.hereYouCanEnableOrDisableTasksForSchedulingWhenATaskIsCheckedItWillBeDisplayedInTheSchedulingTimeline'\n          }}\n        </p>\n  \n        {{#if (gt @projects.length 1)}}\n          <label class='mb-1' for='project-selector'>\n            {{t 'common.Selected project'}}\n          </label>\n          <SelectInput\n            @value={{this.selectedProject}}\n            @action={{this.selectProject}}\n            id='project-selector'\n            class='form-control select-box d-block'\n            ...attributes\n            as |si|\n          >\n            {{#each @projects as |project|}}\n              <si.option @value={{project}}>{{project.name}}</si.option>\n            {{/each}}\n          </SelectInput>\n        {{/if}}\n  \n        <div\n          class='mt-3 d-flex align-items-center'\n          data-test-import-modal-task-template\n        >\n          <div class='flex-grow-1 me-2'>\n            <PowerSelect\n              @tagName='div'\n              @searchEnabled={{true}}\n              @searchField='name'\n              @placeholder={{t\n                'components.timeline-task-import-modal.selectATemplateToLoadTasksFrom'\n              }}\n              @options={{this.templateOptions}}\n              @loadingMessage={{t 'common.Loading'}}\n              @selected={{this.selectedTaskTemplate}}\n              @onChange={{this.selectTaskTemplate}}\n              @disabled={{or this.isLoading this.isSaving}}\n              as |template|\n            >\n              {{or\n                template.name\n                (t 'components.timeline-task-import-modal.Unnamed template*')\n              }}\n            </PowerSelect>\n          </div>\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            disabled={{or\n              this.isLoading\n              this.isSaving\n              (not this.selectedTaskTemplate)\n            }}\n            {{on 'click' this.addTasksFromTemplate}}\n            data-test-import-modal-add-template-button\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;{{t\n              'components.timeline-task-import-modal.Add tasks from template'\n            }}\n          </button>\n        </div>\n      </div>\n  \n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <div\n          class='bg-white border rounded timeline-task-import-modal__task-container'\n        >\n          {{#if this.tasks.length}}\n            <DragSortList\n              @onUpdate={{perform this.onProjectUpdate}}\n              @itemComponent={{component\n                'timeline-task-import-item-row'\n                disabled=this.isSaving\n                onAddItem=this.addItem\n              }}\n              @list={{this.tasks}}\n            />\n            <TimelineTaskImportItemRow::AddItem\n              @disabled={{this.isSaving}}\n              @onAddItem={{this.addItem}}\n            />\n          {{else}}\n            <div class='mt-5 d-flex flex-column align-items-center'>\n              <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n              <p class='fs-4 mt-0 mb-3'>\n                <b>\n                  {{t\n                    'components.timeline-task-import-modal.thisProjectDoesnTHaveAnyTasksYet'\n                  }}\n                </b>\n              </p>\n              <LinkTo\n                @route='entity.builda-price.projects.project.tasks'\n                @model={{this.selectedProject.id}}\n                class='btn btn-primary'\n              >\n                {{t 'components.timeline-task-import-modal.Create some tasks'}}\n              </LinkTo>\n            </div>\n          {{/if}}\n        </div>\n      {{/if}}\n    </div>\n  \n    <div class='modal-footer text-right'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white text-nowrap m-1'\n        {{on 'click' this.onClose}}\n        data-test-import-modal-cancel-button\n      >\n        {{t 'common.Cancel'}}\n      </button>\n      {{#if this.saveAndImportTasks.isRunning}}\n        <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n          <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n            'components.timeline-task-import-modal.Saving tasks'\n          }}&hellip;\n        </button>\n      {{else}}\n        <button\n          type='button'\n          disabled={{or this.isLoading this.isSaving}}\n          class='btn btn-primary text-nowrap m-1'\n          {{on 'click' (perform this.saveAndImportTasks)}}\n        >\n          {{t 'components.timeline-task-import-modal.Save tasks for project'}}\n        </button>\n      {{/if}}\n    </div>\n  </ModalDialog>\n  */\n  {\n    \"id\": \"OJvc/iS2\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\"],[\\\"modal-content timeline-task-import-modal__modal-dialog\\\",true,\\\"modal\\\",[30,0,[\\\"onClose\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"components.timeline-task-import-modal.Import tasks for scheduling\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.timeline-task-import-modal.hereYouCanEnableOrDisableTasksForSchedulingWhenATaskIsCheckedItWillBeDisplayedInTheSchedulingTimeline\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[[30,1,[\\\"length\\\"]],1],null],[[[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"project-selector\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,3],[\\\"common.Selected project\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,1,\\\"project-selector\\\"],[24,0,\\\"form-control select-box d-block\\\"],[17,2]],[[\\\"@value\\\",\\\"@action\\\"],[[30,0,[\\\"selectedProject\\\"]],[30,0,[\\\"selectProject\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,1]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,4]]],[[\\\"default\\\"],[[[[1,[30,4,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"        \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mt-3 d-flex align-items-center\\\"],[14,\\\"data-test-import-modal-task-template\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex-grow-1 me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,11],null,[[\\\"@tagName\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@options\\\",\\\"@loadingMessage\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@disabled\\\"],[\\\"div\\\",true,\\\"name\\\",[28,[37,3],[\\\"components.timeline-task-import-modal.selectATemplateToLoadTasksFrom\\\"],null],[30,0,[\\\"templateOptions\\\"]],[28,[37,3],[\\\"common.Loading\\\"],null],[30,0,[\\\"selectedTaskTemplate\\\"]],[30,0,[\\\"selectTaskTemplate\\\"]],[28,[37,12],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,12],[[30,5,[\\\"name\\\"]],[28,[37,3],[\\\"components.timeline-task-import-modal.Unnamed template*\\\"],null]],null]],[1,\\\"\\\\n          \\\"]],[5]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]],[28,[37,14],[[30,0,[\\\"selectedTaskTemplate\\\"]]],null]],null]],[24,\\\"data-test-import-modal-add-template-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"addTasksFromTemplate\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"components.timeline-task-import-modal.Add tasks from template\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,17],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"bg-white border rounded timeline-task-import-modal__task-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"tasks\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,18],null,[[\\\"@onUpdate\\\",\\\"@itemComponent\\\",\\\"@list\\\"],[[28,[37,19],[[30,0,[\\\"onProjectUpdate\\\"]]],null],[50,\\\"timeline-task-import-item-row\\\",0,null,[[\\\"disabled\\\",\\\"onAddItem\\\"],[[30,0,[\\\"isSaving\\\"]],[30,0,[\\\"addItem\\\"]]]]],[30,0,[\\\"tasks\\\"]]]],null],[1,\\\"\\\\n          \\\"],[8,[39,21],null,[[\\\"@disabled\\\",\\\"@onAddItem\\\"],[[30,0,[\\\"isSaving\\\"]],[30,0,[\\\"addItem\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mt-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n            \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,3],[\\\"components.timeline-task-import-modal.thisProjectDoesnTHaveAnyTasksYet\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,23],[[24,0,\\\"btn btn-primary\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.tasks\\\",[30,0,[\\\"selectedProject\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,3],[\\\"components.timeline-task-import-modal.Create some tasks\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[24,\\\"data-test-import-modal-cancel-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"onClose\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveAndImportTasks\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,3],[\\\"components.timeline-task-import-modal.Saving tasks\\\"],null]],[1,\\\"…\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]]],null]],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"saveAndImportTasks\\\"]]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,3],[\\\"components.timeline-task-import-modal.Save tasks for project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@projects\\\",\\\"&attrs\\\",\\\"si\\\",\\\"project\\\",\\\"template\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"if\\\",\\\"gt\\\",\\\"label\\\",\\\"select-input\\\",\\\"each\\\",\\\"-track-array\\\",\\\"power-select\\\",\\\"or\\\",\\\"button\\\",\\\"not\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"loading-icon\\\",\\\"drag-sort-list\\\",\\\"perform\\\",\\\"component\\\",\\\"timeline-task-import-item-row/add-item\\\",\\\"b\\\",\\\"link-to\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/timeline-task-import-modal.hbs\",\n    \"isStrictMode\": false\n  });\n  let TaskContainer = _exports.TaskContainer = (_class = class TaskContainer {\n    get isEveryChildSchedulingEnabled() {\n      return function checkChildren(children = []) {\n        return children.every(child => {\n          if (!child.isSchedulingEnabled) return false;\n          if (child.children?.length) return checkChildren(child.children);\n          return true;\n        });\n      }(this.children);\n    }\n    get isSomeChildSchedulingEnabled() {\n      return function checkChildren(children = []) {\n        return children.some(child => {\n          if (child.isSchedulingEnabled) return true;\n          if (child.children?.length) return checkChildren(child.children);\n          return false;\n        });\n      }(this.children);\n    }\n    get isSchedulingEnabled() {\n      return this._isSchedulingEnabled || this.isSomeChildSchedulingEnabled;\n    }\n    set isSchedulingEnabled(value) {\n      this._isSchedulingEnabled = value;\n    }\n    get checked() {\n      return this.isSchedulingEnabled && this.isEveryChildSchedulingEnabled;\n    }\n    get indeterminate() {\n      if (this.checked) return false;\n      if (!this.children?.length) return false;\n      return this.isSchedulingEnabled && !this.isEveryChildSchedulingEnabled;\n    }\n    constructor(task) {\n      _defineProperty(this, \"task\", void 0);\n      _initializerDefineProperty(this, \"children\", _descriptor, this);\n      _initializerDefineProperty(this, \"expanded\", _descriptor2, this);\n      _initializerDefineProperty(this, \"_isSchedulingEnabled\", _descriptor3, this);\n      this.task = task;\n      this._isSchedulingEnabled = task.isSchedulingEnabled;\n      if (task.activeChildren?.length) {\n        this.children = (0, _array.A)(task.activeChildren.sortBy('path').map(c => new TaskContainer(c)));\n      }\n    }\n    toJSON() {\n      const project = this.task.id ? this.task.belongsTo('project').id() : this.task.project;\n      const parent = this.task.id ? this.task.belongsTo('parent').id() : this.task.parent;\n      const entity = this.task.id ? this.task.belongsTo('entity').id() : this.task.entity;\n      return {\n        task: {\n          id: this.task.id,\n          status: this.task.status,\n          name: this.task.name,\n          path: this.task.path,\n          entity,\n          project,\n          parent,\n          isSchedulingEnabled: this.isSchedulingEnabled\n        },\n        children: this.children?.toArray()\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"expanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"_isSchedulingEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor6, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor7, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor8, this);\n      _initializerDefineProperty(this, \"selectedProject\", _descriptor9, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedTaskTemplate\", _descriptor1, this);\n      _defineProperty(this, \"initProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          const tasks = yield this.store.simpleQuery('task', {\n            project: project.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          });\n          this.tasks = (0, _array.A)((tasks || []).filter(task => !task.belongsTo('parent').value()).sortBy('path').map(task => new TaskContainer(task)));\n        }\n      }), null, \"initProject\", null));\n      _defineProperty(this, \"onProjectUpdate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (newTasks) {\n          this.tasks = newTasks;\n        }\n      }), null, \"onProjectUpdate\", null));\n      _defineProperty(this, \"saveAndImportTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.tasks?.length) {\n            this.notifications.warning(this.intl.t('components.timeline-task-import-modal.Please provide at least one task'));\n            return;\n          }\n          try {\n            yield this.buildaPrice.updateTaskList(this.tasks);\n            yield this.args.onClose(true);\n            this.notifications.success(this.intl.t('components.timeline-task-import-modal.Successfully manage tasks'));\n          } catch (error) {\n            if (error.responseText?.includes('Your task list is out of date')) {\n              this.initProject.perform();\n            }\n            this.notifications.error({\n              message: this.intl.t('components.timeline-task-import-modal.Something went wrong while manage tasks'),\n              error\n            });\n          }\n        }\n      }), null, \"saveAndImportTasks\", null));\n      const firstProject = this.args.projects[0];\n      this.selectedProject = firstProject;\n      this.initProject.perform(firstProject);\n      this.templateOptions = this.fetchTemplateOptions();\n    }\n\n    // both kinds of template are reduced to the same { name, items } tree as the\n    // defaults, so adding one to the list doesn't need to know where it came from\n    async fetchTemplateOptions() {\n      let taskTemplates = [];\n      try {\n        const templates = await this.store.simpleQuery('task-template', {\n          entity: this.sessionData.entity.id\n        }, {\n          include: 'items'\n        });\n        const toTree = items => [...items].sortBy('path').map(item => ({\n          name: item.name,\n          items: toTree(item.hasMany('items').value() ?? [])\n        }));\n        taskTemplates = templates.toArray().map(template => ({\n          name: template.name,\n          items: toTree((template.hasMany('items').value() ?? []).filter(item => !item.belongsTo('parent').value()))\n        }));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('components.timeline-task-import-modal.somethingWentWrongLoadingTaskTemplates'),\n          error\n        });\n      }\n      return [{\n        groupName: this.intl.t('components.timeline-task-import-modal.Your templates'),\n        options: taskTemplates\n      }, {\n        groupName: this.intl.t('components.timeline-task-import-modal.Default templates'),\n        options: _taskTemplates.default\n      }];\n    }\n    selectProject(project) {\n      this.selectedProject = project;\n      this.initProject.perform(project);\n    }\n    get isLoading() {\n      return this.initProject.isRunning;\n    }\n    get isSaving() {\n      return this.saveAndImportTasks.isRunning;\n    }\n    onClose() {\n      this.args.onClose();\n    }\n    addItem(name, parent) {\n      const task = {\n        name,\n        entity: this.sessionData.entity.id,\n        project: this.selectedProject.id,\n        isSchedulingEnabled: true\n      };\n      if (parent) {\n        task.parent = parent.task._id;\n        task.isSchedulingEnabled = parent.isSchedulingEnabled;\n      }\n      const newItem = new TaskContainer(task);\n      if (parent) parent.children.pushObject(newItem);else this.tasks.pushObject(newItem);\n      return newItem;\n    }\n    selectTaskTemplate(taskTemplate) {\n      this.selectedTaskTemplate = taskTemplate;\n    }\n    addTasksFromTemplate() {\n      if (!this.selectedTaskTemplate) return;\n      const addItems = (items = [], parent) => {\n        items.forEach(item => {\n          const newItem = this.addItem(item.name, parent);\n          addItems(item.items, newItem);\n        });\n      };\n      // matches the tasks page, which nests a template under a task of its name\n      addItems(this.selectedTaskTemplate.items, this.addItem(this.selectedTaskTemplate.name));\n      this.selectedTaskTemplate = null;\n      this.notifications.success(this.intl.t('components.timeline-task-import-modal.Loaded template'));\n    }\n  }, _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"selectedProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"tasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"selectedTaskTemplate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"selectProject\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"selectProject\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClose\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"addItem\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"addItem\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"selectTaskTemplate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"selectTaskTemplate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"addTasksFromTemplate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"addTasksFromTemplate\"), _class2.prototype), _class2));\n});","define(\"portal/components/timesheet-line-pm\", [\"exports\", \"@ember/component\", \"@ember/object/evented\", \"@ember/object\", \"@ember/runloop\", \"jquery\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _evented, _object, _runloop, _jquery, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object/evented\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"jquery\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <tr>\n    <td>\n      {{#if (and this.group.hasTasksToSelect (not this.disabled))}}\n        <PopUp\n          class='data-table__cell-cover'\n          @visible={{this.showSelector}}\n          @onClose={{fn (mut this.showSelector) false}}\n          @scrollDivClass={{'.timesheet'}}\n          as |p|\n        >\n          <div\n            role='button'\n            {{on 'click' (fn (mut this.showSelector) true)}}\n            class='timesheet-line-pm__selector-dropdown'\n          >\n            {{#if this.timesheet.task.name}}\n              <TaskBreadcrumbs @task={{this.timesheet.task}} />\n            {{else}}\n              {{t 'common.Select a Task'}}\n            {{/if}}\n          </div>\n          <p.Content>\n            <TaskSelector\n              @tasks={{this.group.project.activeTimesheetTasks}}\n              @selectedTask={{this.selectedTask}}\n              @onCancel={{fn (mut this.showSelector) false}}\n              @onSubmit={{action 'onTaskSelect'}}\n              @hideInactiveTimesheetTasks={{true}}\n            />\n          </p.Content>\n        </PopUp>\n      {{else}}\n        <span class='px-2'>{{this.timesheet.task.name}}</span>\n      {{/if}}\n    </td>\n  \n    <td width='60'>\n      <DurationInput\n        @duration={{this.timesheet.hours}}\n        @selectOnFocus={{true}}\n        @class='text-input text-right data-table__cell-cover timesheet-table__duration'\n        data-test-timesheet-duration={{or this.timesheet.id 'new'}}\n        @onDurationChange={{fn (mut this.timesheet.hours)}}\n        @disabled={{this.disabled}}\n      />\n    </td>\n  \n    {{#unless this.disabled}}\n      <td width='35' class='text-center'>\n        &#8203;\n        {{! zero-width space to maintain row height }}\n        <button\n          class='text-button text-button--plain data-table__cell-cover'\n          type='button'\n          {{action 'toggleShowNote'}}\n        >\n          {{#if (or this.timesheet.note this.showNote)}}\n            <FaIcon @icon='file-alt' />\n          {{else}}\n            <div><FaIcon @icon='file-alt' /></div>\n            {{! hacky. Font Awesome doesn't have a note with a plus on it }}\n            {{! the provided method for stacking produced all kinds of side effects }}\n            <div\n              style='position: absolute; left: 16px; top: 13px; font-size: 6px;'\n            ><FaIcon @icon='plus' /></div>\n          {{/if}}\n        </button>\n      </td>\n  \n      <td width='35' class='text-center'>\n        &#8203;\n        {{! zero-width space to maintain row height }}\n        <button\n          class='text-button text-button--plain data-table__cell-cover'\n          data-test-delete-timesheet\n          disabled={{this.disabled}}\n          type='button'\n          {{action 'onTimesheetDelete'}}\n        >\n          <FaIcon @icon='times' />\n        </button>\n      </td>\n    {{/unless}}\n  </tr>\n  {{#if (or this.timesheet.note this.showNote)}}\n    <tr>\n      <td colspan='4' class='timesheet-table-pm__text-input--td'>\n        <Textarea\n          @value={{this.timesheet.note}}\n          id={{concat this.index '-note'}}\n          class='timesheet-table__text-input text-input'\n          data-test-note='note'\n          placeholder={{t 'components.timesheet-line-pm.Notes for the task'}}\n          rows='4'\n          cols='37'\n          disabled={{this.disabled}}\n        />\n      </td>\n    </tr>\n  {{/if}}\n  */\n  {\n    \"id\": \"CmsWYkrH\",\n    \"block\": \"[[[10,\\\"tr\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,0,[\\\"group\\\",\\\"hasTasksToSelect\\\"]],[28,[37,4],[[30,0,[\\\"disabled\\\"]]],null]],null],[[[1,\\\"      \\\"],[8,[39,5],[[24,0,\\\"data-table__cell-cover\\\"]],[[\\\"@visible\\\",\\\"@onClose\\\",\\\"@scrollDivClass\\\"],[[30,0,[\\\"showSelector\\\"]],[28,[37,6],[[28,[37,7],[[30,0,[\\\"showSelector\\\"]]],null],false],null],\\\".timesheet\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"timesheet-line-pm__selector-dropdown\\\"],[4,[38,9],[\\\"click\\\",[28,[37,6],[[28,[37,7],[[30,0,[\\\"showSelector\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"timesheet\\\",\\\"task\\\",\\\"name\\\"]],[[[1,\\\"            \\\"],[8,[39,10],null,[[\\\"@task\\\"],[[30,0,[\\\"timesheet\\\",\\\"task\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,11],[\\\"common.Select a Task\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@tasks\\\",\\\"@selectedTask\\\",\\\"@onCancel\\\",\\\"@onSubmit\\\",\\\"@hideInactiveTimesheetTasks\\\"],[[30,0,[\\\"group\\\",\\\"project\\\",\\\"activeTimesheetTasks\\\"]],[30,0,[\\\"selectedTask\\\"]],[28,[37,6],[[28,[37,7],[[30,0,[\\\"showSelector\\\"]]],null],false],null],[28,[37,13],[[30,0],\\\"onTaskSelect\\\"],null],true]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"px-2\\\"],[12],[1,[30,0,[\\\"timesheet\\\",\\\"task\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"60\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,15],[[16,\\\"data-test-timesheet-duration\\\",[28,[37,16],[[30,0,[\\\"timesheet\\\",\\\"id\\\"]],\\\"new\\\"],null]]],[[\\\"@duration\\\",\\\"@selectOnFocus\\\",\\\"@class\\\",\\\"@onDurationChange\\\",\\\"@disabled\\\"],[[30,0,[\\\"timesheet\\\",\\\"hours\\\"]],true,\\\"text-input text-right data-table__cell-cover timesheet-table__duration\\\",[28,[37,6],[[28,[37,7],[[30,0,[\\\"timesheet\\\",\\\"hours\\\"]]],null]],null],[30,0,[\\\"disabled\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"disabled\\\"]]],[[[1,\\\"    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"35\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n      ​\\\\n\\\"],[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--plain data-table__cell-cover\\\"],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"toggleShowNote\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,0,[\\\"timesheet\\\",\\\"note\\\"]],[30,0,[\\\"showNote\\\"]]],null],[[[1,\\\"          \\\"],[8,[39,19],null,[[\\\"@icon\\\"],[\\\"file-alt\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[12],[8,[39,19],null,[[\\\"@icon\\\"],[\\\"file-alt\\\"]],null],[13],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[10,0],[14,5,\\\"position: absolute; left: 16px; top: 13px; font-size: 6px;\\\"],[12],[8,[39,19],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"td\\\"],[14,\\\"width\\\",\\\"35\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n      ​\\\\n\\\"],[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--plain data-table__cell-cover\\\"],[24,\\\"data-test-delete-timesheet\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[[30,0],\\\"onTimesheetDelete\\\"],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,19],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,0,[\\\"timesheet\\\",\\\"note\\\"]],[30,0,[\\\"showNote\\\"]]],null],[[[1,\\\"  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[14,0,\\\"timesheet-table-pm__text-input--td\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,20],[[16,1,[28,[37,21],[[30,0,[\\\"index\\\"]],\\\"-note\\\"],null]],[24,0,\\\"timesheet-table__text-input text-input\\\"],[24,\\\"data-test-note\\\",\\\"note\\\"],[16,\\\"placeholder\\\",[28,[37,11],[\\\"components.timesheet-line-pm.Notes for the task\\\"],null]],[24,\\\"rows\\\",\\\"4\\\"],[24,\\\"cols\\\",\\\"37\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disabled\\\"]]]],[[\\\"@value\\\"],[[30,0,[\\\"timesheet\\\",\\\"note\\\"]]]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"p\\\"],false,[\\\"tr\\\",\\\"td\\\",\\\"if\\\",\\\"and\\\",\\\"not\\\",\\\"pop-up\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"on\\\",\\\"task-breadcrumbs\\\",\\\"t\\\",\\\"task-selector\\\",\\\"action\\\",\\\"span\\\",\\\"duration-input\\\",\\\"or\\\",\\\"unless\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"textarea\\\",\\\"concat\\\"]]\",\n    \"moduleName\": \"portal/components/timesheet-line-pm.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n    notifications: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    tagName: '',\n    showSelector: false,\n    showNote: false,\n    initShowNote: (0, _evented.on)('init', function () {\n      const note = (0, _object.get)(this, 'timesheet.note');\n      (0, _object.set)(this, 'showNote', Boolean(note));\n    }),\n    selectedTask: (0, _object.computed)('timesheet.task', function () {\n      return (0, _object.get)(this, 'timesheet')?.belongsTo('task')?.value();\n    }),\n    actions: {\n      onTimesheetDelete() {\n        this.deleteTimesheet();\n      },\n      onTaskSelect(newTask) {\n        if (newTask === (0, _object.get)(this, 'timesheet.task')) {\n          (0, _object.set)(this, 'showSelector', false);\n          return;\n        }\n        if ((0, _object.get)(this, 'group.selectedTasks').includes(newTask)) {\n          (0, _object.get)(this, 'notifications').warning((0, _object.get)(this, 'intl').t('components.timesheet-line-pm.thereIsAlreadyATimesheetForThisTask'));\n          return;\n        }\n\n        // set the timesheet task\n        this.setTask(newTask);\n        (0, _object.set)(this, 'showSelector', false);\n      },\n      toggleShowNote() {\n        if (!(0, _object.get)(this, 'timesheet.note')) this.toggleProperty('showNote');\n        (0, _runloop.next)(() => (0, _jquery.default)(`#${(0, _object.get)(this, 'index')}-note`).focus());\n      }\n    }\n  }));\n});","define(\"portal/components/timesheets-table-pm\", [\"exports\", \"@ember/component\", \"@ember/component/template-only\", \"@ember/template-factory\"], function (_exports, _component, _templateOnly, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LazyEach\n    @items={{@groupedTimesheetData}}\n    @automatic={{true}}\n    @initialNumberOfItemsVisible='5'\n    @increment='5'\n    @itemDisplayName={{t 'common.timesheets'}}\n    as |day identifier|\n  >\n    <div class='timesheets-table-pm__date-title'>\n      <h3 class='h3'><FaIcon @icon='calendar' />&ensp;{{moment-format\n          day.date\n          (t 'date.shortWithWeekday')\n        }}</h3>\n      <h3 class='h3'>{{day.orderedDayMetas.length}}\n        {{t 'common.Workers'}}&ensp;&ensp;{{format-duration day.totalTime}}\n        {{t 'common.Hours'}}</h3>\n    </div>\n    <div class='{{identifier}} timesheets-table-pm__card-container'>\n      {{#each day.orderedDayMetas as |dayMeta|}}\n        <div\n          data-test-timesheet-worker-card={{dayMeta.worker.id}}\n          class='timesheets-table-pm__card{{if\n              (and dayMeta.isSelected dayMeta.canBeForeman)\n              \" timesheets-table-pm__card--selected\"\n            }}{{if\n              dayMeta.canBeForeman\n              \" timesheets-table-pm__card--selectable\"\n            }}'\n          {{on 'click' (stop-propagation (fn @toggleGroupExpanded dayMeta))}}\n        >\n          <div class='timesheets-table-pm__card-items'>\n            {{#if dayMeta.canBeForeman}}\n              <span\n                class='timesheets-table-pm__card-toggle'\n                {{on\n                  'click'\n                  (stop-propagation (fn @toggleGroupSelected dayMeta))\n                }}\n              >\n                {{#if dayMeta.isSelected}}\n                  <FaIcon @icon='check-square' @fixedWidth={{true}} />\n                {{else}}\n                  <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n                {{/if}}\n              </span>\n              &nbsp;\n            {{/if}}\n  \n            <div\n              class='timesheets-table-pm__card-title'\n              data-test-timesheet-worker-name\n            >\n              {{dayMeta.worker.fullName}}\n            </div>\n  \n            <div\n              class='timesheets-table-pm__total timesheets-table-pm__card-item'\n            >\n              {{format-duration dayMeta.totalTime}}\n            </div>\n  \n            <div class='timesheets-table-pm__card-item'>\n              <span class='button--spaced'>\n                {{pluralize dayMeta.projectMetas.length 'Project'}}\n              </span>\n  \n              {{#each dayMeta.projectMetas as |project|}}\n                {{#each project.timesheets as |timesheet|}}\n                  {{#if timesheet.note}}\n                    <span class='button--spaced'>\n                      &nbsp;\n                      <InfoPopup\n                        @iconName='sticky-note'\n                        @iconPrefix='far'\n                        @text={{concat\n                          timesheet.task.name\n                          ' ('\n                          (ellipsis-words timesheet.project.name 2)\n                          ') '\n                          (t 'common.note')\n                          ': '\n                          timesheet.note\n                        }}\n                      />\n                    </span>\n                  {{/if}}\n                {{/each}}\n              {{/each}}\n  \n              {{#let dayMeta.timesheetNote as |note|}}\n                {{#if note.body}}\n                  <span class='button--spaced'>\n                    &nbsp;<InfoPopup\n                      @iconName='sticky-note'\n                      @iconPrefix='far'\n                      @text={{concat\n                        (t 'components.timesheets-table-pm.workerSNote')\n                        ': '\n                        note.body\n                      }}\n                    />\n                  </span>\n                {{/if}}\n  \n                {{#if (and note.adminNote @showForemanControls)}}\n                  <span class='button--spaced'>\n                    &nbsp;<InfoPopup\n                      @iconName='sticky-note'\n                      @iconPrefix='far'\n                      @text={{concat\n                        (t 'components.timesheets-table-pm.adminSNote')\n                        ': '\n                        note.adminNote\n                      }}\n                    />\n                  </span>\n                {{/if}}\n              {{/let}}\n            </div>\n  \n            {{#if dayMeta.canBeForeman}}\n              <div class='timesheets-table-pm__card-item'>\n                <button\n                  class='timesheets-table-pm__card-button\n                    {{if\n                      dayMeta.timesheetNote.dayLocked\n                      \"timesheets-table-pm__card-button--accepted\"\n                    }}\n                    no-wrap'\n                  disabled={{@acceptingTimesheets}}\n                  type='button'\n                  {{on\n                    'click'\n                    (fn\n                      (if\n                        dayMeta.timesheetNote.dayLocked\n                        @undoAcceptAndLockTimesheet\n                        @acceptAndLockTimesheet\n                      )\n                      dayMeta\n                    )\n                  }}\n                >\n                  <FaIcon @icon='sync-alt' />&nbsp;&nbsp;{{if\n                    dayMeta.timesheetNote.dayLocked\n                    (t 'common.Accepted')\n                    (t 'common.Pending')\n                  }}\n                </button>\n              </div>\n            {{/if}}\n  \n            <div class='button--spaced timesheets-table-pm__card-expand'><FaIcon\n                @icon={{if dayMeta.isExpanded 'chevron-down' 'chevron-right'}}\n                @fixedWidth={{true}}\n              /></div>\n          </div>\n        </div>\n  \n        {{#if dayMeta.isExpanded}}\n          <div\n            class='timesheets-table-pm__entry-wrapper{{if\n                (and dayMeta.isSelected dayMeta.canBeForeman)\n                \" timesheets-table-pm__entry-wrapper--selected\"\n              }}'\n          >\n            {{#let dayMeta.timesheetNote as |note|}}\n              {{#if note.body}}\n                {{t 'components.timesheets-table-pm.workerSNote'}}:\n                <div class='timesheets-table-pm__entry-wrapper-note'>\n                  {{note.body}}\n                </div>\n              {{/if}}\n  \n              {{#if (and note.adminNote @showForemanControls)}}\n                {{t 'shared.timesheet.Admin note'}}:\n                <div class='timesheets-table-pm__entry-wrapper-note'>\n                  {{note.adminNote}}\n                </div>\n              {{/if}}\n            {{/let}}\n  \n            <div class='timesheets-table-pm__entry-container'>\n              {{#each dayMeta.projectMetas as |projectMeta|}}\n                <div\n                  class='timesheets-table-pm__entry\n                    {{if\n                      (and dayMeta.canBeForeman (not projectMeta.canBeForeman))\n                      \" timesheets-table-pm__entry--disabled\"\n                    }}'\n                >\n                  <div class='timesheets-table-pm__entry-title'>\n                    <div class='timesheets-table-pm__entry-title-text'>\n                      {{projectMeta.project.name}}\n                    </div>\n                    <div\n                      class='timesheets-table-pm__entry-status\n                        {{if\n                          (eq projectMeta.timesheetStatus.status \"accepted\")\n                          \" timesheets-table-pm__entry-status--accepted\"\n                        }}'\n                    >\n                      {{timesheet-status-label\n                        projectMeta.timesheetStatus.status\n                      }}\n                    </div>\n                  </div>\n  \n                  {{#if\n                    (or\n                      projectMeta.timesheetStatus.didEdit\n                      projectMeta.timesheetStatus.editNote\n                    )\n                  }}\n                    <div class='timesheets-table-pm__entry-note--edited'>\n                      <span><FaIcon @icon='exclamation-triangle' />\n                        {{t 'shared.timesheet.Edited by admin because'}}:</span>\n                      <br />\n                      {{or\n                        projectMeta.timesheetStatus.editNote\n                        (t 'shared.timesheet.No reason given')\n                      }}\n                    </div>\n                  {{/if}}\n  \n                  {{#each projectMeta.timesheets as |timesheet|}}\n                    <div class='timesheets-table-pm__entry-row'>\n                      <div>{{timesheet.task.name}}</div>\n                      <div>{{format-duration timesheet.hours}}</div>\n                    </div>\n                    {{#if timesheet.note}}\n                      <div class='timesheets-table-pm__entry-note'>\n                        {{timesheet.note}}\n                      </div>\n                    {{/if}}\n                  {{/each}}\n  \n                  {{#if\n                    (and dayMeta.canBeForeman (not projectMeta.canBeForeman))\n                  }}\n                    <div class='timesheets-table-pm__not-foreman-message'>\n                      {{t\n                        'components.timesheets-table-pm.youCannotAcceptTimesheetsForThisProject'\n                      }}\n                    </div>\n                  {{/if}}\n                </div>\n              {{/each}}\n            </div>\n            <div class='timesheets-table-pm__edit-button'>\n              <LinkTo\n                @route={{@link}}\n                @query={{hash\n                  worker=dayMeta.worker.id\n                  date=(moment-format day.date 'YYYY-MM-DD')\n                }}\n                class='text-button'\n              >\n                {{t 'components.timesheets-table-pm.Edit timesheets'}}\n              </LinkTo>\n            </div>\n          </div>\n        {{/if}}\n      {{/each}}\n    </div>\n  </LazyEach>\n  */\n  {\n    \"id\": \"xLsw0mkR\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\"],[[30,1],true,\\\"5\\\",\\\"5\\\",[28,[37,1],[\\\"common.timesheets\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"timesheets-table-pm__date-title\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"calendar\\\"]],null],[1,\\\" \\\"],[1,[28,[35,5],[[30,2,[\\\"date\\\"]],[28,[37,1],[\\\"date.shortWithWeekday\\\"],null]],null]],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[30,2,[\\\"orderedDayMetas\\\",\\\"length\\\"]]],[1,\\\"\\\\n      \\\"],[1,[28,[35,1],[\\\"common.Workers\\\"],null]],[1,\\\"  \\\"],[1,[28,[35,6],[[30,2,[\\\"totalTime\\\"]]],null]],[1,\\\"\\\\n      \\\"],[1,[28,[35,1],[\\\"common.Hours\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[15,0,[29,[[30,3],\\\" timesheets-table-pm__card-container\\\"]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,2,[\\\"orderedDayMetas\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[11,0],[16,\\\"data-test-timesheet-worker-card\\\",[30,4,[\\\"worker\\\",\\\"id\\\"]]],[16,0,[29,[\\\"timesheets-table-pm__card\\\",[52,[28,[37,10],[[30,4,[\\\"isSelected\\\"]],[30,4,[\\\"canBeForeman\\\"]]],null],\\\" timesheets-table-pm__card--selected\\\"],[52,[30,4,[\\\"canBeForeman\\\"]],\\\" timesheets-table-pm__card--selectable\\\"]]]],[4,[38,11],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,5],[30,4]],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"timesheets-table-pm__card-items\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"canBeForeman\\\"]],[[[1,\\\"            \\\"],[11,1],[24,0,\\\"timesheets-table-pm__card-toggle\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,6],[30,4]],null]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"isSelected\\\"]],[[[1,\\\"                \\\"],[8,[39,4],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[8,[39,4],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n             \\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"timesheets-table-pm__card-title\\\"],[14,\\\"data-test-timesheet-worker-name\\\",\\\"\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,4,[\\\"worker\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"timesheets-table-pm__total timesheets-table-pm__card-item\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[[30,4,[\\\"totalTime\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"timesheets-table-pm__card-item\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"button--spaced\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,15],[[30,4,[\\\"projectMetas\\\",\\\"length\\\"]],\\\"Project\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,4,[\\\"projectMetas\\\"]]],null]],null],null,[[[42,[28,[37,8],[[28,[37,8],[[30,7,[\\\"timesheets\\\"]]],null]],null],null,[[[41,[30,8,[\\\"note\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"button--spaced\\\"],[12],[1,\\\"\\\\n                     \\\\n                    \\\"],[8,[39,16],null,[[\\\"@iconName\\\",\\\"@iconPrefix\\\",\\\"@text\\\"],[\\\"sticky-note\\\",\\\"far\\\",[28,[37,17],[[30,8,[\\\"task\\\",\\\"name\\\"]],\\\" (\\\",[28,[37,18],[[30,8,[\\\"project\\\",\\\"name\\\"]],2],null],\\\") \\\",[28,[37,1],[\\\"common.note\\\"],null],\\\": \\\",[30,8,[\\\"note\\\"]]],null]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[8]],null]],[7]],null],[1,\\\"\\\\n\\\"],[44,[[30,4,[\\\"timesheetNote\\\"]]],[[[41,[30,9,[\\\"body\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"button--spaced\\\"],[12],[1,\\\"\\\\n                   \\\"],[8,[39,16],null,[[\\\"@iconName\\\",\\\"@iconPrefix\\\",\\\"@text\\\"],[\\\"sticky-note\\\",\\\"far\\\",[28,[37,17],[[28,[37,1],[\\\"components.timesheets-table-pm.workerSNote\\\"],null],\\\": \\\",[30,9,[\\\"body\\\"]]],null]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,9,[\\\"adminNote\\\"]],[30,10]],null],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"button--spaced\\\"],[12],[1,\\\"\\\\n                   \\\"],[8,[39,16],null,[[\\\"@iconName\\\",\\\"@iconPrefix\\\",\\\"@text\\\"],[\\\"sticky-note\\\",\\\"far\\\",[28,[37,17],[[28,[37,1],[\\\"components.timesheets-table-pm.adminSNote\\\"],null],\\\": \\\",[30,9,[\\\"adminNote\\\"]]],null]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[9]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,4,[\\\"canBeForeman\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"timesheets-table-pm__card-item\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"timesheets-table-pm__card-button\\\\n                  \\\",[52,[30,4,[\\\"timesheetNote\\\",\\\"dayLocked\\\"]],\\\"timesheets-table-pm__card-button--accepted\\\"],\\\"\\\\n                  no-wrap\\\"]]],[16,\\\"disabled\\\",[30,11]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,13],[[52,[30,4,[\\\"timesheetNote\\\",\\\"dayLocked\\\"]],[30,12],[30,13]],[30,4]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"sync-alt\\\"]],null],[1,\\\"  \\\"],[1,[52,[30,4,[\\\"timesheetNote\\\",\\\"dayLocked\\\"]],[28,[37,1],[\\\"common.Accepted\\\"],null],[28,[37,1],[\\\"common.Pending\\\"],null]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"button--spaced timesheets-table-pm__card-expand\\\"],[12],[8,[39,4],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[52,[30,4,[\\\"isExpanded\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"],true]],null],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,4,[\\\"isExpanded\\\"]],[[[1,\\\"        \\\"],[10,0],[15,0,[29,[\\\"timesheets-table-pm__entry-wrapper\\\",[52,[28,[37,10],[[30,4,[\\\"isSelected\\\"]],[30,4,[\\\"canBeForeman\\\"]]],null],\\\" timesheets-table-pm__entry-wrapper--selected\\\"]]]],[12],[1,\\\"\\\\n\\\"],[44,[[30,4,[\\\"timesheetNote\\\"]]],[[[41,[30,14,[\\\"body\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,1],[\\\"components.timesheets-table-pm.workerSNote\\\"],null]],[1,\\\":\\\\n              \\\"],[10,0],[14,0,\\\"timesheets-table-pm__entry-wrapper-note\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,14,[\\\"body\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,14,[\\\"adminNote\\\"]],[30,10]],null],[[[1,\\\"              \\\"],[1,[28,[35,1],[\\\"shared.timesheet.Admin note\\\"],null]],[1,\\\":\\\\n              \\\"],[10,0],[14,0,\\\"timesheets-table-pm__entry-wrapper-note\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,14,[\\\"adminNote\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[14]]],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"timesheets-table-pm__entry-container\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,4,[\\\"projectMetas\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[15,0,[29,[\\\"timesheets-table-pm__entry\\\\n                  \\\",[52,[28,[37,10],[[30,4,[\\\"canBeForeman\\\"]],[28,[37,21],[[30,15,[\\\"canBeForeman\\\"]]],null]],null],\\\" timesheets-table-pm__entry--disabled\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"timesheets-table-pm__entry-title\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"timesheets-table-pm__entry-title-text\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,15,[\\\"project\\\",\\\"name\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[15,0,[29,[\\\"timesheets-table-pm__entry-status\\\\n                      \\\",[52,[28,[37,22],[[30,15,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null],\\\" timesheets-table-pm__entry-status--accepted\\\"]]]],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,23],[[30,15,[\\\"timesheetStatus\\\",\\\"status\\\"]]],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,24],[[30,15,[\\\"timesheetStatus\\\",\\\"didEdit\\\"]],[30,15,[\\\"timesheetStatus\\\",\\\"editNote\\\"]]],null],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"timesheets-table-pm__entry-note--edited\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[12],[8,[39,4],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[1,\\\"\\\\n                      \\\"],[1,[28,[35,1],[\\\"shared.timesheet.Edited by admin because\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[1,[28,[35,24],[[30,15,[\\\"timesheetStatus\\\",\\\"editNote\\\"]],[28,[37,1],[\\\"shared.timesheet.No reason given\\\"],null]],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,15,[\\\"timesheets\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"timesheets-table-pm__entry-row\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[12],[1,[30,16,[\\\"task\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n                    \\\"],[10,0],[12],[1,[28,[35,6],[[30,16,[\\\"hours\\\"]]],null]],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,16,[\\\"note\\\"]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"timesheets-table-pm__entry-note\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,16,[\\\"note\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[16]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,4,[\\\"canBeForeman\\\"]],[28,[37,21],[[30,15,[\\\"canBeForeman\\\"]]],null]],null],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"timesheets-table-pm__not-foreman-message\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,1],[\\\"components.timesheets-table-pm.youCannotAcceptTimesheetsForThisProject\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[15]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"timesheets-table-pm__edit-button\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,26],[[24,0,\\\"text-button\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[[30,17],[28,[37,27],null,[[\\\"worker\\\",\\\"date\\\"],[[30,4,[\\\"worker\\\",\\\"id\\\"]],[28,[37,5],[[30,2,[\\\"date\\\"]],\\\"YYYY-MM-DD\\\"],null]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"components.timesheets-table-pm.Edit timesheets\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[4]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]]]]]],[\\\"@groupedTimesheetData\\\",\\\"day\\\",\\\"identifier\\\",\\\"dayMeta\\\",\\\"@toggleGroupExpanded\\\",\\\"@toggleGroupSelected\\\",\\\"project\\\",\\\"timesheet\\\",\\\"note\\\",\\\"@showForemanControls\\\",\\\"@acceptingTimesheets\\\",\\\"@undoAcceptAndLockTimesheet\\\",\\\"@acceptAndLockTimesheet\\\",\\\"note\\\",\\\"projectMeta\\\",\\\"timesheet\\\",\\\"@link\\\"],false,[\\\"lazy-each\\\",\\\"t\\\",\\\"div\\\",\\\"h3\\\",\\\"fa-icon\\\",\\\"moment-format\\\",\\\"format-duration\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"and\\\",\\\"on\\\",\\\"stop-propagation\\\",\\\"fn\\\",\\\"span\\\",\\\"pluralize\\\",\\\"info-popup\\\",\\\"concat\\\",\\\"ellipsis-words\\\",\\\"let\\\",\\\"button\\\",\\\"not\\\",\\\"eq\\\",\\\"timesheet-status-label\\\",\\\"or\\\",\\\"br\\\",\\\"link-to\\\",\\\"hash\\\"]]\",\n    \"moduleName\": \"portal/components/timesheets-table-pm.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)());\n});","define(\"portal/components/title-bar-tabs\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1 d-flex align-items-center justify-content-start h-100'>\n    {{#each @tabs as |tab|}}\n      <TitleBarTabs::Tab\n        @tabName={{tab.name}}\n        @sections={{tab.sections}}\n        @route={{tab.route}}\n        @sup={{tab.sup}}\n      />\n    {{/each}}\n  </div>\n  */\n  {\n    \"id\": \"x0jamoVH\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1 d-flex align-items-center justify-content-start h-100\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,1]],null]],null],null,[[[1,\\\"    \\\"],[8,[39,3],null,[[\\\"@tabName\\\",\\\"@sections\\\",\\\"@route\\\",\\\"@sup\\\"],[[30,2,[\\\"name\\\"]],[30,2,[\\\"sections\\\"]],[30,2,[\\\"route\\\"]],[30,2,[\\\"sup\\\"]]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[13]],[\\\"@tabs\\\",\\\"tab\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"title-bar-tabs/tab\\\"]]\",\n    \"moduleName\": \"portal/components/title-bar-tabs.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, class extends _component2.default {});\n});","define(\"portal/components/title-bar-tabs/tab\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _runloop, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if @sections.length}}\n    <PopOver class='h-100' @direction='bottom-right' as |po|>\n      <LinkTo\n        @route={{@route}}\n        class='d-flex align-items-center px-2 text-nowrap fs-5 text-light title-bar-tab__button'\n        draggable={{false}}\n        data-test-title-bar-tab-dropdown-button\n        {{on 'click' this.noop capture=true}}\n      >\n        {{@tabName}}\n        {{#if @sup}}<sup>{{@sup}}</sup>{{/if}}\n      </LinkTo>\n      <po.Content\n        class='mt-1 border rounded dropdown__content'\n        style='min-width: 200px;'\n      >\n        {{#each @sections as |section|}}\n          {{#if section.topSeparator}}\n            <div class='dropdown-divider'></div>\n          {{/if}}\n          {{#if section.name}}\n            <div class='dropdown-header text-nowrap fs-5 py-2'>\n              {{section.name}}\n            </div>\n          {{/if}}\n          {{#each section.routes as |route|}}\n            <LinkTo\n              @route={{route.route}}\n              class='dropdown-item text-nowrap fs-5 py-2'\n              draggable={{false}}\n              data-test-title-bar-dropdown-content-button\n            >\n              <FaIcon\n                @icon={{route.icon}}\n                @size='md'\n                @fixedWidth={{true}}\n                class='me-1'\n              />\n              {{route.name}}\n              {{#if route.sup}}<sup>{{route.sup}}</sup>{{/if}}\n            </LinkTo>\n          {{/each}}\n        {{/each}}\n      </po.Content>\n    </PopOver>\n  {{else}}\n    <LinkTo\n      @route={{@route}}\n      class='d-flex align-items-center px-2 text-nowrap fs-5 text-light title-bar-tab__button'\n      draggable={{false}}\n      data-test-title-bar-tab-button\n    >\n      {{@tabName}}\n      {{#if @sup}}<sup>{{@sup}}</sup>{{/if}}\n    </LinkTo>\n  {{/if}}\n  */\n  {\n    \"id\": \"qGNJ59oa\",\n    \"block\": \"[[[41,[30,1,[\\\"length\\\"]],[[[1,\\\"  \\\"],[8,[39,1],[[24,0,\\\"h-100\\\"]],[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,2],[[24,0,\\\"d-flex align-items-center px-2 text-nowrap fs-5 text-light title-bar-tab__button\\\"],[16,\\\"draggable\\\",false],[24,\\\"data-test-title-bar-tab-dropdown-button\\\",\\\"\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],[[\\\"capture\\\"],[true]]]],[[\\\"@route\\\"],[[30,3]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[1,[30,4]],[1,\\\"\\\\n      \\\"],[41,[30,5],[[[10,\\\"sup\\\"],[12],[1,[30,5]],[13]],[]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"mt-1 border rounded dropdown__content\\\"],[24,5,\\\"min-width: 200px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,1]],null]],null],null,[[[41,[30,6,[\\\"topSeparator\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"dropdown-divider\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,6,[\\\"name\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"dropdown-header text-nowrap fs-5 py-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,6,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,6],[[28,[37,6],[[30,6,[\\\"routes\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[39,2],[[24,0,\\\"dropdown-item text-nowrap fs-5 py-2\\\"],[16,\\\"draggable\\\",false],[24,\\\"data-test-title-bar-dropdown-content-button\\\",\\\"\\\"]],[[\\\"@route\\\"],[[30,7,[\\\"route\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,8],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\",\\\"@size\\\",\\\"@fixedWidth\\\"],[[30,7,[\\\"icon\\\"]],\\\"md\\\",true]],null],[1,\\\"\\\\n            \\\"],[1,[30,7,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"],[41,[30,7,[\\\"sup\\\"]],[[[10,\\\"sup\\\"],[12],[1,[30,7,[\\\"sup\\\"]]],[13]],[]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[7]],null]],[6]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,2],[[24,0,\\\"d-flex align-items-center px-2 text-nowrap fs-5 text-light title-bar-tab__button\\\"],[16,\\\"draggable\\\",false],[24,\\\"data-test-title-bar-tab-button\\\",\\\"\\\"]],[[\\\"@route\\\"],[[30,3]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[1,[30,4]],[1,\\\"\\\\n    \\\"],[41,[30,5],[[[10,\\\"sup\\\"],[12],[1,[30,5]],[13]],[]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@sections\\\",\\\"po\\\",\\\"@route\\\",\\\"@tabName\\\",\\\"@sup\\\",\\\"section\\\",\\\"route\\\"],false,[\\\"if\\\",\\\"pop-over\\\",\\\"link-to\\\",\\\"on\\\",\\\"sup\\\",\\\"each\\\",\\\"-track-array\\\",\\\"div\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/title-bar-tabs/tab.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class = class extends _component2.default {\n    open(dropdown) {\n      if (this.closeTimer) {\n        (0, _runloop.cancel)(this.closeTimer);\n        this.closeTimer = null;\n      } else {\n        dropdown.actions.open();\n      }\n    }\n    noop(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    closeLater(dropdown) {\n      this.closeTimer = (0, _runloop.later)(() => {\n        this.closeTimer = null;\n        dropdown.actions.close();\n      }, 50);\n    }\n  }, _applyDecoratedDescriptor(_class.prototype, \"open\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"open\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"noop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeLater\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeLater\"), _class.prototype), _class));\n});","define(\"portal/components/title-bar\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"ember-local-storage\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _emberLocalStorage, _service, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-local-storage\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='title-bar__container px-4 d-flex align-items-center'>\n    {{#if this.canSeeModuleButton}}\n      <div class='me-4' data-test-title-bar-module-buttons>\n        <PopOver @direction='bottom-right' as |po|>\n          <FaIcon @icon='bars' class='link-light title-bar__icon' role='button' />\n          <po.Content style='min-width: 200px;'>\n            {{#unless this.adminConsoleIsActive}}\n              {{#if this.canSeeDashboardButton}}\n                <LinkTo\n                  @route='index'\n                  class='dropdown-item text-nowrap fs-5'\n                  data-test-dashboard-link\n                >\n                  <FaIcon\n                    @icon='external-link-alt'\n                    @fixedWidth={{true}}\n                  />&nbsp;&nbsp;{{t 'common.Go to dashboard'}}\n                </LinkTo>\n              {{/if}}\n              {{! do not show the org selector when in admin console }}\n              {{#if (gt this.sessionData.allowedEntities.length 1)}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on\n                    'click'\n                    (fn (mut this.orgSelectorOpen) (not this.orgSelectorOpen))\n                  }}\n                  data-test-change-organisation-button\n                >\n                  <FaIcon @icon='building' @fixedWidth={{true}} />&nbsp;&nbsp;{{t\n                    'common.Change company'\n                  }}\n                </button>\n              {{/if}}\n              {{#if this.orgSelectorOpen}}\n                <EntitySelector\n                  @onClose={{fn (mut this.orgSelectorOpen) false}}\n                />\n              {{/if}}\n  \n              {{#if this.modules.allowedModules.length}}\n                <div class='dropdown-header fs-5'>Modules</div>\n                {{#each this.modules.allowedModules as |module|}}\n                  {{#if module.outsideLink}}\n                    <a\n                      href={{module.outsideLink}}\n                      target='_blank'\n                      rel='noopener noreferrer'\n                      class='dropdown-item text-nowrap fs-5 d-flex align-items-center'\n                      data-test-outside-module={{module.slug}}\n                    >\n                      {{#if module.icon}}\n                        <FaIcon @icon={{module.icon}} @fixedWidth={{true}} />\n                        &nbsp;&nbsp;{{module.name}}\n                      {{else}}\n                        <img\n                          class='title-bar__logo-thumbnail'\n                          src={{module.logo}}\n                          alt={{module.name}}\n                        />&nbsp;&nbsp;{{module.name}}\n                      {{/if}}\n                    </a>\n                  {{else}}\n                    <LinkTo\n                      @route='entity.{{module.slug}}'\n                      @model={{this.sessionData.entity.id}}\n                      class='dropdown-item text-nowrap fs-5 d-flex align-items-center'\n                      data-test-module={{module.slug}}\n                    >\n                      {{#if module.icon}}\n                        <FaIcon @icon={{module.icon}} @fixedWidth={{true}} />\n                        &nbsp;&nbsp;{{module.name}}\n                      {{else}}\n                        <img\n                          class='title-bar__logo-thumbnail'\n                          src={{module.logo}}\n                          alt={{module.name}}\n                        />&nbsp;&nbsp;{{module.name}}\n                      {{/if}}\n                    </LinkTo>\n                  {{/if}}\n                {{/each}}\n              {{/if}}\n            {{/unless}}\n  \n            {{#if (includes-feature-flags 'userIsAdmin')}}\n              {{#unless this.adminConsoleIsActive}}\n                <div class='dropdown-header fs-5'>{{t 'common.Admin only'}}</div>\n  \n                {{#unless this.isUsingAdminMode}}\n                  <button\n                    type='button'\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' this.sessionData.toggleAdminMode}}\n                  >\n                    <FaIcon @icon='unlock' @fixedWidth={{true}} />&nbsp;&nbsp;{{t\n                      'common.Admin mode'\n                    }}\n                  </button>\n                {{/unless}}\n              {{/unless}}\n  \n              {{#if this.adminConsoleIsActive}}\n                <LinkTo\n                  @route='index'\n                  class='dropdown-item text-nowrap fs-5'\n                  data-test-exit-admin-console-link\n                >\n                  <FaIcon\n                    @icon='external-link-alt'\n                    @fixedWidth={{true}}\n                  />&nbsp;&nbsp;{{t 'common.Exit admin console'}}\n                </LinkTo>\n              {{else}}\n                <LinkTo\n                  @route='admin'\n                  class='dropdown-item text-nowrap fs-5'\n                  data-test-admin-console-link\n                ><FaIcon @icon='user-lock' @fixedWidth={{true}} />&nbsp;&nbsp;{{t\n                    'common.Admin console'\n                  }}</LinkTo>\n              {{/if}}\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </div>\n    {{/if}}\n  \n    {{#if this.modules.currentModule}}\n      <LinkTo\n        class='me-4 d-flex align-items-center'\n        @route='entity.{{this.modules.currentModule.slug}}'\n        @model={{this.sessionData.entity.id}}\n      >\n        <img\n          class='title-bar__logo me-3'\n          src={{this.modules.currentModule.logo}}\n          alt='Logo'\n        />\n        <div>\n          <div\n            class='text-uppercase text-secondary lh-sm title-bar__logo-company-name'\n          >{{this.sessionData.entity.name}}</div>\n          <div\n            class='text-uppercase text-light fs-2 lh-sm'\n          >{{this.modules.currentModule.name}}</div>\n        </div>\n      </LinkTo>\n    {{else}}\n      <div class='me-4 d-flex align-items-center'>\n        <img\n          class='title-bar__logo me-3'\n          src={{this.platform.platform.logo}}\n          alt='Logo'\n        />\n        <div>\n          <div\n            class='text-uppercase text-secondary lh-sm title-bar__logo-company-name'\n          >{{this.sessionData.entity.name}}</div>\n          <div\n            class='text-uppercase text-light fs-2 lh-sm'\n          >{{this.platform.platform.name}}</div>\n        </div>\n      </div>\n    {{/if}}\n  \n    <div class='flex-grow-1 h-100'>\n      {{yield}}\n    </div>\n    {{! <PopOver @direction='bottom-left' as |no|>\n      <FaIcon @icon=\"bell\" class=\"link-light title-bar__icon mx-3\" role=\"button\" />\n      <no.Content>\n        <div class=\"dropdown-item text-nowrap fs-5\" role=\"button\">\n          <div class=\"d-flex w-100 justify-content-between\">\n            <div class=\"d-flex mb-1\">\n              <FaIcon @icon=\"user-circle\" class=\"link-light title-bar__icon me-2\" />\n              <h5 class=\"mb-1\">Tony changed a Task</h5>\n            </div>\n            <small>3 days ago</small>\n          </div>\n          <div class=\"mb-1\">Due to the shortage of the budget, we need cancel this task!</div>\n        </div>\n        <div class=\"dropdown-item text-nowrap fs-5\" role=\"button\">\n          <div class=\"d-flex w-100 justify-content-between\">\n            <div class=\"d-flex mb-1\">\n              <FaIcon @icon=\"user-circle\" class=\"link-light title-bar__icon me-2\" />\n              <h5 class=\"mb-1\">Nathan changed a Task</h5>\n            </div>\n            <small>4 days ago</small>\n          </div>\n          <div class=\"mb-1\">Due to the shortage of the budget, we need cancel this task!</div>\n        </div>\n        <div class=\"dropdown-item text-nowrap fs-5\" role=\"button\">\n         <div class=\"d-flex w-100 justify-content-between\">\n              <div class=\"d-flex mb-1\">\n              <FaIcon @icon=\"user-circle\" class=\"link-light title-bar__icon me-2\" />\n              <h5 class=\"mb-1\">Fraser changed a Task</h5>\n            </div>\n            <small>5 days ago</small>\n          </div>\n          <div class=\"mb-1\">Due to the shortage of the budget, we need cancel this task!</div>\n        </div>\n        <div class=\"dropdown-item text-nowrap fs-5\" role=\"button\">\n         <div class=\"d-flex w-100 justify-content-between\">\n           <div class=\"d-flex mb-1\">\n              <FaIcon @icon=\"user-circle\" class=\"link-light title-bar__icon me-2\" />\n              <h5 class=\"mb-1\">Rene changed a Task</h5>\n            </div>\n            <small>7 days ago</small>\n          </div>\n          <div class=\"mb-1\">Due to the shortage of the budget, we need cancel this task!</div>\n        </div>\n        <div class=\"dropdown-divider\"></div>\n        <button type=\"button\" class=\"dropdown-item text-nowrap fs-5\">Show more</button>\n      </no.Content>\n   </PopOver> }}\n  \n    {{! TODO implement notifications }}\n    {{! <FaIcon @icon=\"bell\" class=\"link-light title-bar__icon mx-3\" role=\"button\" /> }}\n  \n    <PopOver @direction='bottom-left' as |po|>\n      <FaIcon\n        @icon='user-circle'\n        class='link-light title-bar__icon title-bar__icon--lg'\n        role='button'\n      />\n      <po.Content style='min-width: 200px;'>\n        {{#unless this.adminConsoleIsActive}}\n          {{! workers don't currently have any use for this route }}\n          {{#unless (includes-feature-flags 'userIsWorker')}}\n            <LinkTo\n              @route='entity.settings'\n              @model={{this.sessionData.entity.id}}\n              class='dropdown-item text-nowrap fs-5'\n              data-test-settings-link\n            >{{t 'common.Settings'}}</LinkTo>\n          {{/unless}}\n  \n          {{#if\n            (or\n              (includes-feature-flags 'userIsAdmin')\n              (excludes-feature-flags 'userIsWorker')\n            )\n          }}\n            <div class='dropdown-divider'></div>\n          {{/if}}\n        {{/unless}}\n  \n        <button\n          type='button'\n          class='dropdown-item text-nowrap fs-5'\n          {{on 'click' this.logout}}\n          data-test-title-bar-logout-button\n        >{{t 'common.Sign out'}}</button>\n      </po.Content>\n    </PopOver>\n  </div>\n  */\n  {\n    \"id\": \"bzDCMvhz\",\n    \"block\": \"[[[10,0],[14,0,\\\"title-bar__container px-4 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canSeeModuleButton\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"me-4\\\"],[14,\\\"data-test-title-bar-module-buttons\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,2],null,[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,3],[[24,0,\\\"link-light title-bar__icon\\\"],[24,\\\"role\\\",\\\"button\\\"]],[[\\\"@icon\\\"],[\\\"bars\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],[[24,5,\\\"min-width: 200px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"adminConsoleIsActive\\\"]]],[[[41,[30,0,[\\\"canSeeDashboardButton\\\"]],[[[1,\\\"              \\\"],[8,[39,5],[[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-dashboard-link\\\",\\\"\\\"]],[[\\\"@route\\\"],[\\\"index\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Go to dashboard\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,7],[[30,0,[\\\"sessionData\\\",\\\"allowedEntities\\\",\\\"length\\\"]],1],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-change-organisation-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"orgSelectorOpen\\\"]]],null],[28,[37,12],[[30,0,[\\\"orgSelectorOpen\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"building\\\",true]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Change company\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"orgSelectorOpen\\\"]],[[[1,\\\"              \\\"],[8,[39,13],null,[[\\\"@onClose\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"orgSelectorOpen\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"modules\\\",\\\"allowedModules\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"dropdown-header fs-5\\\"],[12],[1,\\\"Modules\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\"]]],null]],null],null,[[[41,[30,2,[\\\"outsideLink\\\"]],[[[1,\\\"                  \\\"],[10,3],[15,6,[30,2,[\\\"outsideLink\\\"]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,0,\\\"dropdown-item text-nowrap fs-5 d-flex align-items-center\\\"],[15,\\\"data-test-outside-module\\\",[30,2,[\\\"slug\\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"icon\\\"]],[[[1,\\\"                      \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[30,2,[\\\"icon\\\"]],true]],null],[1,\\\"\\\\n                        \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[10,\\\"img\\\"],[14,0,\\\"title-bar__logo-thumbnail\\\"],[15,\\\"src\\\",[30,2,[\\\"logo\\\"]]],[15,\\\"alt\\\",[30,2,[\\\"name\\\"]]],[12],[13],[1,\\\"  \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[8,[39,5],[[24,0,\\\"dropdown-item text-nowrap fs-5 d-flex align-items-center\\\"],[16,\\\"data-test-module\\\",[30,2,[\\\"slug\\\"]]]],[[\\\"@route\\\",\\\"@model\\\"],[[29,[\\\"entity.\\\",[30,2,[\\\"slug\\\"]]]],[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"icon\\\"]],[[[1,\\\"                      \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[[30,2,[\\\"icon\\\"]],true]],null],[1,\\\"\\\\n                        \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[10,\\\"img\\\"],[14,0,\\\"title-bar__logo-thumbnail\\\"],[15,\\\"src\\\",[30,2,[\\\"logo\\\"]]],[15,\\\"alt\\\",[30,2,[\\\"name\\\"]]],[12],[13],[1,\\\"  \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[2]],null]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[\\\"userIsAdmin\\\"],null],[[[41,[51,[30,0,[\\\"adminConsoleIsActive\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"dropdown-header fs-5\\\"],[12],[1,[28,[35,6],[\\\"common.Admin only\\\"],null]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isUsingAdminMode\\\"]]],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"sessionData\\\",\\\"toggleAdminMode\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"unlock\\\",true]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Admin mode\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"adminConsoleIsActive\\\"]],[[[1,\\\"              \\\"],[8,[39,5],[[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-exit-admin-console-link\\\",\\\"\\\"]],[[\\\"@route\\\"],[\\\"index\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Exit admin console\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[8,[39,5],[[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-admin-console-link\\\",\\\"\\\"]],[[\\\"@route\\\"],[\\\"admin\\\"]],[[\\\"default\\\"],[[[[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"user-lock\\\",true]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Admin console\\\"],null]]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"modules\\\",\\\"currentModule\\\"]],[[[1,\\\"    \\\"],[8,[39,5],[[24,0,\\\"me-4 d-flex align-items-center\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[29,[\\\"entity.\\\",[30,0,[\\\"modules\\\",\\\"currentModule\\\",\\\"slug\\\"]]]],[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"img\\\"],[14,0,\\\"title-bar__logo me-3\\\"],[15,\\\"src\\\",[30,0,[\\\"modules\\\",\\\"currentModule\\\",\\\"logo\\\"]]],[14,\\\"alt\\\",\\\"Logo\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"text-uppercase text-secondary lh-sm title-bar__logo-company-name\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"text-uppercase text-light fs-2 lh-sm\\\"],[12],[1,[30,0,[\\\"modules\\\",\\\"currentModule\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"me-4 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"img\\\"],[14,0,\\\"title-bar__logo me-3\\\"],[15,\\\"src\\\",[30,0,[\\\"platform\\\",\\\"platform\\\",\\\"logo\\\"]]],[14,\\\"alt\\\",\\\"Logo\\\"],[12],[13],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"text-uppercase text-secondary lh-sm title-bar__logo-company-name\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"text-uppercase text-light fs-2 lh-sm\\\"],[12],[1,[30,0,[\\\"platform\\\",\\\"platform\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1 h-100\\\"],[12],[1,\\\"\\\\n    \\\"],[18,4,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"\\\\n\\\"],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@direction\\\"],[\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,3],[[24,0,\\\"link-light title-bar__icon title-bar__icon--lg\\\"],[24,\\\"role\\\",\\\"button\\\"]],[[\\\"@icon\\\"],[\\\"user-circle\\\"]],null],[1,\\\"\\\\n    \\\"],[8,[30,3,[\\\"Content\\\"]],[[24,5,\\\"min-width: 200px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"adminConsoleIsActive\\\"]]],[[[41,[51,[28,[37,18],[\\\"userIsWorker\\\"],null]],[[[1,\\\"          \\\"],[8,[39,5],[[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-settings-link\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings\\\",[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Settings\\\"],null]]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[28,[37,18],[\\\"userIsAdmin\\\"],null],[28,[37,21],[\\\"userIsWorker\\\"],null]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"dropdown-divider\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-title-bar-logout-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"logout\\\"]]],null],[12],[1,[28,[35,6],[\\\"common.Sign out\\\"],null]],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n  \\\"]],[3]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"po\\\",\\\"module\\\",\\\"po\\\",\\\"&default\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"pop-over\\\",\\\"fa-icon\\\",\\\"unless\\\",\\\"link-to\\\",\\\"t\\\",\\\"gt\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"entity-selector\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"img\\\",\\\"includes-feature-flags\\\",\\\"yield\\\",\\\"or\\\",\\\"excludes-feature-flags\\\"]]\",\n    \"moduleName\": \"portal/components/title-bar.hbs\",\n    \"isStrictMode\": false\n  });\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_dec = (0, _emberLocalStorage.storageFor)('settings'), _class = class _class extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"platform\", _descriptor2, this);\n      _initializerDefineProperty(this, \"modules\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"session\", _descriptor5, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"orgSelectorOpen\", _descriptor7, this);\n    }\n    get isUsingAdminMode() {\n      return this.persistedSettings.get('adminMode');\n    }\n    get adminConsoleIsActive() {\n      return this.router.currentRouteName.includes('admin');\n    }\n    get settingsRouteIsActive() {\n      return this.router.currentRouteName.includes('entity.settings');\n    }\n    get canSeeDashboardButton() {\n      // we want this visible for people with no modules, and more than 1 module\n      return this.modules.allowedModules.length === 0 || this.modules.allowedModules.length > 1;\n    }\n    get canSeeModuleButton() {\n      return this.modules.allowedModules?.length > 1 || this.sessionData.entities?.length > 1 || this.adminConsoleIsActive || this.settingsRouteIsActive;\n    }\n    logout() {\n      // TODO dunno if this is the right approach, hard to bubble\n      // an action from here to application Route as was done before.\n      this.session.invalidate();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"platform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"orgSelectorOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"logout\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"logout\"), _class.prototype), _class));\n});","define(\"portal/components/to-elsewhere\", [\"exports\", \"ember-elsewhere/components/to-elsewhere\"], function (_exports, _toElsewhere) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _toElsewhere.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-elsewhere/components/to-elsewhere\"eaimeta@70e063a35619d71f\n});","define(\"portal/components/usage-bar\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div\n    class='usage-bar d-flex flex-nowrap gap-1'\n    role='progressbar'\n    aria-valuemin='0'\n    aria-valuemax={{this.limit}}\n    aria-valuenow={{this.value}}\n    ...attributes\n  >\n    {{#each this.segments key='end' as |segment|}}\n      <div class='usage-bar__track rounded-pill overflow-hidden flex-grow-1'>\n        <div\n          class='usage-bar__fill {{this.barBgClass}}'\n          style={{html-safe (concat 'width: ' segment.fill '%')}}\n        />\n      </div>\n    {{/each}}\n  </div>\n  */\n  {\n    \"id\": \"DjoCDxSd\",\n    \"block\": \"[[[11,0],[24,0,\\\"usage-bar d-flex flex-nowrap gap-1\\\"],[24,\\\"role\\\",\\\"progressbar\\\"],[24,\\\"aria-valuemin\\\",\\\"0\\\"],[16,\\\"aria-valuemax\\\",[30,0,[\\\"limit\\\"]]],[16,\\\"aria-valuenow\\\",[30,0,[\\\"value\\\"]]],[17,1],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,0,[\\\"segments\\\"]]],null]],null],\\\"end\\\",[[[1,\\\"    \\\"],[10,0],[14,0,\\\"usage-bar__track rounded-pill overflow-hidden flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[15,0,[29,[\\\"usage-bar__fill \\\",[30,0,[\\\"barBgClass\\\"]]]]],[15,5,[28,[37,3],[[28,[37,4],[\\\"width: \\\",[30,2,[\\\"fill\\\"]],\\\"%\\\"],null]],null]],[12],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[13]],[\\\"&attrs\\\",\\\"segment\\\"],false,[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"html-safe\\\",\\\"concat\\\"]]\",\n    \"moduleName\": \"portal/components/usage-bar.hbs\",\n    \"isStrictMode\": false\n  });\n  class UsageBar extends _component2.default {\n    get notches() {\n      const notches = (this.args.notches ?? []).map(Number).filter(notch => Number.isFinite(notch) && notch > 0);\n      return [...new Set(notches)].sort((a, b) => a - b);\n    }\n    get limit() {\n      return this.notches[this.notches.length - 1] ?? 0;\n    }\n    get value() {\n      const value = Number(this.args.value);\n      return Number.isFinite(value) ? Math.max(0, value) : 0;\n    }\n    get isAtLimit() {\n      return this.notches.length > 0 && this.value >= this.limit;\n    }\n    get barBgClass() {\n      return this.isAtLimit ? 'bg-danger' : 'bg-primary';\n    }\n\n    // each segment fills across its own span, not the whole bar\n    get segments() {\n      return this.notches.map((end, index) => {\n        const start = this.notches[index - 1] ?? 0;\n        const fill = (this.value - start) / (end - start) * 100;\n        return {\n          end,\n          fill: Math.min(100, Math.max(0, fill))\n        };\n      });\n    }\n  }\n  _exports.default = UsageBar;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, UsageBar);\n});","define(\"portal/components/value-change-indicator\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/template-factory\"], function (_exports, _component, _component2, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <span class='value-change-indicator {{this.color}}' ...attributes>{{#if\n      this.icon\n    }}<FaIcon @icon={{this.icon}} />{{/if}}</span>\n  */\n  {\n    \"id\": \"iikinBKC\",\n    \"block\": \"[[[11,1],[16,0,[29,[\\\"value-change-indicator \\\",[30,0,[\\\"color\\\"]]]]],[17,1],[12],[41,[30,0,[\\\"icon\\\"]],[[[8,[39,2],null,[[\\\"@icon\\\"],[[30,0,[\\\"icon\\\"]]]],null]],[]],null],[13]],[\\\"&attrs\\\"],false,[\\\"span\\\",\\\"if\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/components/value-change-indicator.hbs\",\n    \"isStrictMode\": false\n  });\n  class ValueChangeIndicatorComponent extends _component2.default {\n    get diff() {\n      if (this.args.difference != null) {\n        return this.args.difference;\n      }\n      return this.args.to - this.args.from;\n    }\n    get useColor() {\n      return this.args.useColor ?? true;\n    }\n    get increaseIsGood() {\n      return this.args.increaseIsGood ?? true;\n    }\n    get positiveIcon() {\n      return this.args.positiveIcon ?? 'arrow-up';\n    }\n    get negativeIcon() {\n      return this.args.negativeIcon ?? 'arrow-down';\n    }\n    get color() {\n      const diff = this.diff;\n      if (!this.useColor) {\n        return null;\n      }\n      if (this.increaseIsGood && diff > 0 || !this.increaseIsGood && diff < 0) {\n        return 'value-change-indicator--good';\n      }\n      if (this.increaseIsGood && diff < 0 || !this.increaseIsGood && diff > 0) {\n        return 'value-change-indicator--bad';\n      }\n      return 'value-change-indicator--no-change';\n    }\n    get icon() {\n      const diff = this.diff;\n      if (diff > 0) {\n        return this.positiveIcon;\n      }\n      if (diff < 0) {\n        return this.negativeIcon;\n      }\n      return null;\n    }\n  }\n  _exports.default = ValueChangeIndicatorComponent;\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ValueChangeIndicatorComponent);\n});","define(\"portal/components/worker-cost-calculator\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/array\", \"@ember/service\", \"portal/utils/labour-cost-calculator-fixtures\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _object, _tracking, _array, _service, _labourCostCalculatorFixtures, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/object\",0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/array\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"portal/utils/labour-cost-calculator-fixtures\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.calculatorVisible}}\n    <ModalDialog\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @onClose={{fn (mut this.calculatorVisible) false}}\n      @containerClass='block-module worker-cost-calculator__container'\n    >\n      <p class='p'>\n        {{t\n          'components.worker-cost-calculator.workerPayRateCalculatorExplanation'\n        }}\n      </p>\n  \n      <div class='worker-cost-calculator__calculator'>\n        <div class='worker-cost-calculator__calculator-section'>\n          {{#if this.isEditing}}\n            <span class='worker-cost-calculator__calculator-section-title'>\n              {{t 'components.worker-cost-calculator.Template name'}}\n            </span>\n            <div class='worker-cost-calculator__calculator-section-row'>\n              <div class='worker-cost-calculator__calculator-section-item'>\n                <Input\n                  class='text-input'\n                  @value={{this.selectedCalculator.label}}\n                  data-test-worker-cost-calculator-template-name\n                />\n              </div>\n            </div>\n  \n          {{else}}\n  \n            <span class='worker-cost-calculator__calculator-section-title'>\n              {{t 'components.worker-cost-calculator.Select template'}}\n            </span>\n            <div class='worker-cost-calculator__calculator-section-row'>\n              <div class='worker-cost-calculator__calculator-section-item'>\n                <PowerSelect\n                  @tagName='div'\n                  class='data-test-worker-cost-calculator-select-labour-cost-calculator'\n                  @options={{this._labourCostCalculators}}\n                  @selected={{this.selectedCalculator}}\n                  @searchEnabled={{true}}\n                  @searchField='label'\n                  @onChange={{fn (mut this.selectedCalculator)}}\n                  as |labourCostCalculator|\n                >{{labourCostCalculator.label}}</PowerSelect>\n              </div>\n  \n              <div class='worker-cost-calculator__calculator-section-item'>\n                <button\n                  type='button'\n                  class='text-button text-button--add no-wrap'\n                  {{on 'click' this.addCalculator}}\n                  data-test-worker-cost-calculator-add-template=''\n                >{{t 'common.Add new'}}</button>\n              </div>\n            </div>\n            <div class='worker-cost-calculator__calculator-section-row'>\n              {{#unless (eq this.selectedCalculator this.entityDefault)}}\n                <div class='worker-cost-calculator__calculator-section-item'>\n                  <button\n                    type='button'\n                    class='text-button'\n                    {{on 'click' (perform this.setEntityDefault)}}\n                    data-test-worker-cost-calculator-make-org-default=''\n                  >{{t\n                      'components.worker-cost-calculator.Make company default'\n                    }}</button>\n                </div>\n              {{/unless}}\n  \n              <div class='worker-cost-calculator__calculator-section-item'>\n                <button\n                  class='text-button'\n                  disabled={{this.deleteCalculator.isRunning}}\n                  data-test-worker-cost-calculator-edit-template\n                  type='button'\n                  {{on 'click' (fn (mut this.isEditing) true)}}\n                >{{t 'components.worker-cost-calculator.Edit template'}}</button>\n              </div>\n  \n              {{#if (gt this._labourCostCalculators.length 1)}}\n                <div class='worker-cost-calculator__calculator-section-item'>\n                  <LoadingButton\n                    @class='text-button text-button--delete'\n                    @isLoading={{this.deleteCalculator.isRunning}}\n                    @action={{perform this.deleteCalculator}}\n                    @buttonText={{t 'shared.task.Delete template'}}\n                    data-test-worker-cost-calculator-delete-template\n                  />\n                </div>\n              {{/if}}\n            </div>\n          {{/if}}\n        </div>\n  \n        <table class='worker-cost-calculator-table'>\n          <tbody>\n            {{! Working Days Per Week }}\n            <tr\n              class={{if\n                this.isEditing\n                'worker-cost-calculator-table__line--alt'\n                'worker-cost-calculator-table__line'\n              }}\n            >\n              <td>\n                {{t 'components.worker-cost-calculator.Working days per week'}}\n              </td>\n              {{#if this.isEditing}}\n                <td>\n                  <FormattedInput\n                    @class='worker-cost-calculator__calculator-section-small-input'\n                    @format='integer'\n                    @number={{this.selectedCalculator.workingDaysPerWeek}}\n                    @update={{fn\n                      (mut this.selectedCalculator.workingDaysPerWeek)\n                    }}\n                    data-test-worker-cost-calculator-days-per-week\n                  />\n                  <span class='no-wrap'>\n                    {{t 'components.worker-cost-calculator.days per week'}}\n                  </span>\n                </td>\n              {{/if}}\n  \n              {{#unless this.isEditing}}\n                <td>\n                  {{number-format\n                    this.selectedCalculator.workingDaysPerWeek\n                    maximumFractionDigits=2\n                    dashZero=true\n                  }}\n                  {{t 'components.worker-cost-calculator.days per week'}}</td>\n              {{/unless}}\n            </tr>\n  \n            {{! Working Hours Per Day }}\n            <tr\n              class={{if\n                this.isEditing\n                'worker-cost-calculator-table__line--alt'\n                'worker-cost-calculator-table__line'\n              }}\n            >\n              <td>\n                {{t 'components.worker-cost-calculator.Working hours per day'}}\n              </td>\n              {{#if this.isEditing}}\n                <td>\n                  <DurationInput\n                    @class='worker-cost-calculator__calculator-section-small-input'\n                    @duration={{this.selectedCalculator.workingHoursPerDay}}\n                    @onDurationChange={{fn\n                      (mut this.selectedCalculator.workingHoursPerDay)\n                    }}\n                    data-test-worker-cost-calculator-hours-per-day\n                  />\n                  <span class='no-wrap'>\n                    {{t 'components.worker-cost-calculator.hours per day'}}\n                  </span>\n                </td>\n              {{/if}}\n  \n              {{#unless this.isEditing}}\n                <td>{{format-duration this.selectedCalculator.workingHoursPerDay}}\n                  {{t 'components.worker-cost-calculator.hours per day'}}</td>\n              {{/unless}}\n            </tr>\n          </tbody>\n        </table>\n  \n        <table class='worker-cost-calculator-table'>\n          <thead>\n            <tr class='worker-cost-calculator-table__line--alt'>\n              <th class='worker-cost-calculator-table__header text-left'>{{t\n                  'common.Cost'\n                }}</th>\n              {{#if this.isEditing}}\n                <th class='worker-cost-calculator-table__header text-center'>{{t\n                    'common.Enabled'\n                  }}</th>\n              {{/if}}\n              <th class='worker-cost-calculator-table__header text-left'>{{t\n                  'common.Value'\n                }}</th>\n              {{#if this.isEditing}}\n                <th class='worker-cost-calculator-table__header text-left'>{{t\n                    'common.Type'\n                  }}</th>\n              {{/if}}\n              <th class='worker-cost-calculator-table__header text-right'>%\n                {{t 'components.worker-cost-calculator.of pay rate'}}</th>\n              <th class='worker-cost-calculator-table__header text-right'>{{t\n                  'components.worker-cost-calculator.Cost per hour'\n                }}</th>\n              {{#if this.isEditing}}\n                <th\n                  style='width: 25px;'\n                  class='worker-cost-calculator__header'\n                ></th>\n              {{/if}}\n            </tr>\n          </thead>\n  \n          <tbody>\n            {{! Calculator items }}\n            {{#each this.selectedCalculator.sortedItems as |item index|}}\n              <tr\n                class={{if\n                  this.isEditing\n                  'worker-cost-calculator-table__line--alt'\n                  'worker-cost-calculator-table__line'\n                }}\n              >\n                {{#if this.isEditing}}\n                  <td data-test-worker-cost-calculator-item-label={{index}}>\n                    {{#if item.isSystem}}\n                      {{item.label}}\n                    {{else}}\n                      <Input\n                        class='worker-cost-calculator__calculator-section-input'\n                        @value={{item.label}}\n                        placeholder='Label'\n                        data-test-worker-cost-calculator-item-label-input={{index}}\n                      />\n                    {{/if}}\n                  </td>\n                  <td class='text-center'>\n                    <Input\n                      @type='checkbox'\n                      @checked={{item.enabled}}\n                      data-test-worker-cost-calculator-item-enabled={{index}}\n                    />\n                  </td>\n                  <td>\n                    {{! Value input }}\n                    {{#if\n                      (or\n                        (eq item.valueType 'minutesPerDay')\n                        (eq item.valueType 'daysPerYear')\n                      )\n                    }}\n                      <FormattedInput\n                        @class='worker-cost-calculator__calculator-section-small-input'\n                        @format='integer'\n                        @number={{item.value}}\n                        @disabled={{not item.enabled}}\n                        @update={{fn (mut item.value)}}\n                        data-test-worker-cost-calculator-item-value={{index}}\n                      />\n                    {{else if (eq item.valueType 'percentOfPayRate')}}\n                      <FormattedInput\n                        @class='worker-cost-calculator__calculator-section-small-input'\n                        @placeholder='0%'\n                        @update={{fn (mut item.value)}}\n                        @number={{item.value}}\n                        @format='percentage'\n                        @disabled={{not item.enabled}}\n                        data-test-worker-cost-calculator-item-value={{index}}\n                      />\n                    {{/if}}\n                  </td>\n                  <td data-test-worker-cost-calculator-item-value-type={{index}}>\n                    {{! Value type input }}\n                    {{#if item.isSystem}}\n                      {{#if (eq item.valueType 'minutesPerDay')}}\n                        {{t 'components.worker-cost-calculator.minutes per day'}}\n                      {{else if (eq item.valueType 'daysPerYear')}}\n                        {{t 'components.worker-cost-calculator.days per year'}}\n                      {{/if}}\n                    {{else}}\n                      <SelectInput\n                        @class='worker-cost-calculator__calculator-section-input'\n                        @value={{item.valueType}}\n                        @action={{fn\n                          (pipe (fn (mut item.valueType)) (fn (mut item.value) 0))\n                        }}\n                        @disabled={{not item.enabled}}\n                        data-test-worker-cost-calculator-item-value-type-input={{index}}\n                        as |si|\n                      >\n                        <si.option @value='percentOfPayRate'>{{t\n                            'components.worker-cost-calculator.percentage of pay rate'\n                          }}</si.option>\n                        <si.option @value='minutesPerDay'>{{t\n                            'components.worker-cost-calculator.minutes per day'\n                          }}</si.option>\n                        <si.option @value='daysPerYear'>{{t\n                            'components.worker-cost-calculator.days per year'\n                          }}</si.option>\n                      </SelectInput>\n                    {{/if}}\n                  </td>\n                  {{#if item.enabled}}\n                    <td\n                      class='text-right'\n                      data-test-worker-cost-calculator-item-percentage={{index}}\n                    >\n                      {{number-format\n                        item.percentage\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      }}\n                    </td>\n                    <td\n                      class='text-right'\n                      data-test-worker-cost-calculator-item-rate={{index}}\n                    >\n                      {{number-format\n                        (math item.percentage '*' this.payRate)\n                        style='currency'\n                        dashZero=true\n                      }}\n                    </td>\n                  {{else}}\n                    <td class='text-center' colspan='2'>{{t\n                        'components.worker-cost-calculator.Not applicable'\n                      }}</td>\n                    <td class='text-center'>\n                      {{#unless item.isSystem}}\n                        <button\n                          style='font-size: 110%;'\n                          class='text-button text-button--delete'\n                          data-test-worker-cost-calculator-item-delete={{index}}\n                          type='button'\n                          {{on 'click' (fn this.deleteItem item)}}\n                        ><FaIcon @icon='trash' /></button>\n                      {{/unless}}\n                    </td>\n                  {{/if}}\n                {{else}}\n                  <td>{{item.label}}</td>\n                  {{#if item.enabled}}\n                    <td>\n                      {{#if (eq item.valueType 'minutesPerDay')}}\n                        {{format-duration item.value}}\n                        {{t 'components.worker-cost-calculator.minutes per day'}}\n                      {{else if (eq item.valueType 'daysPerYear')}}\n                        {{item.value}}\n                        {{t 'components.worker-cost-calculator.days per year'}}\n                      {{else if (eq item.valueType 'percentOfPayRate')}}\n                        {{number-format\n                          item.value\n                          style='percent'\n                          dashZero=true\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        }}\n                      {{/if}}\n                    </td>\n                    <td class='text-right'>\n                      {{number-format\n                        item.percentage\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      }}\n                    </td>\n                    <td class='text-right'>\n                      {{number-format\n                        (math item.percentage '*' this.payRate)\n                        style='currency'\n                        dashZero=true\n                      }}\n                    </td>\n                  {{else}}\n                    <td colspan='3' class='text-center'>{{t\n                        'components.worker-cost-calculator.Not applicable'\n                      }}</td>\n                  {{/if}}\n                {{/if}}\n              </tr>\n            {{/each}}\n            {{#if this.isEditing}}\n              <tr class='worker-cost-calculator-table__line--alt'>\n                <td class='text-center' colspan='7'>\n                  <button\n                    class='text-button text-button--add button--spaced'\n                    data-test-worker-cost-calculator-add-item\n                    type='button'\n                    {{on 'click' this.addItem}}\n                  >{{t 'common.Add item'}}</button>\n                </td>\n              </tr>\n            {{/if}}\n          </tbody>\n  \n          <tfoot>\n            <tr\n              class='worker-cost-calculator-table__line--alt worker-cost-calculator-table__footer'\n            >\n              <td colspan={{if this.isEditing '5' '3'}} class='text-right'>\n                {{number-format\n                  this.selectedCalculator.extraCostPercentage\n                  style='percent'\n                  dashZero=true\n                  maximumFractionDigits=2\n                  minimumFractionDigits=2\n                }}\n              </td>\n              <td class='text-right' data-test-worker-cost-calculator-extras-rate>\n                {{number-format this.extrasRate style='currency' dashZero=true}}\n              </td>\n              <td></td>\n            </tr>\n            <tr\n              class='worker-cost-calculator-table__summary worker-cost-calculator-table__line--alt'\n            >\n              <td colspan={{if this.isEditing '5' '3'}} class='text-right'>{{t\n                  'components.worker-cost-calculator.Worker pay rate'\n                }}:</td>\n              <td class='text-right'>\n                {{number-format this.payRate style='currency' dashZero=true}}\n              </td>\n              <td></td>\n            </tr>\n            <tr class='worker-cost-calculator-table__line--alt'>\n              <td colspan={{if this.isEditing '5' '3'}} class='text-right'>{{t\n                  'components.worker-cost-calculator.Calculated cost rate'\n                }}:</td>\n              <td class='text-right' data-test-worker-cost-calculator-cost-rate>\n                {{number-format\n                  this.calculatedCost\n                  style='currency'\n                  dashZero=true\n                }}\n              </td>\n              <td></td>\n            </tr>\n          </tfoot>\n        </table>\n  \n        <br />\n  \n        {{#unless this.isEditing}}\n          {{! Manual override }}\n          <div class='worker-cost-calculator__final-rate'>\n            <strong>\n              {{t 'components.worker-cost-calculator.Worker cost rate'}}\n            </strong>\n            &nbsp;\n            <FormattedInput\n              @class='worker-cost-calculator__calculator-section-small-input'\n              @format='currency'\n              @number={{this.workerCost}}\n              @update={{fn (mut this.workerCost)}}\n              data-test-worker-cost-calculator-cost-rate-input\n            />\n            {{#unless (eq this.workerCost this.calculatedCost)}}\n              &nbsp;\n              <button\n                class='text-button'\n                data-test-worker-cost-calculator-use-calculated\n                type='button'\n                {{on 'click' (fn (mut this.workerCost) this.calculatedCost)}}\n              >{{t 'components.worker-cost-calculator.Use calculated'}}</button>\n            {{/unless}}\n          </div>\n        {{/unless}}\n      </div>\n  \n      <footer class='block-module__footer'>\n        <button\n          class='button button--plain button--spaced'\n          data-test-worker-cost-calculator-cancel=''\n          type='button'\n          {{on 'click' (fn (mut this.calculatorVisible) false)}}\n        >{{t 'common.Cancel'}}</button>\n        {{#if this.isEditing}}\n          {{#unless\n            (and\n              (lte this._labourCostCalculators.length 1)\n              this.selectedCalculator.isNew\n            )\n          }}\n            <button\n              class='button button--plain button--spaced'\n              data-test-worker-cost-calculator-cancel-edit=''\n              type='button'\n              {{on 'click' this.cancelEditing}}\n            >{{t 'components.worker-cost-calculator.Cancel editing'}}</button>\n          {{/unless}}\n          <LoadingButton\n            @class='button float-end button--spaced'\n            @action={{perform this.saveCalculator}}\n            @isLoading={{this.saveCalculator.isRunning}}\n            @buttonText={{t 'components.worker-cost-calculator.Save calculator'}}\n            data-test-worker-cost-calculator-save-calculator\n          />\n        {{else}}\n          <button\n            class='button float-end button--spaced'\n            data-test-worker-cost-calculator-set-worker-cost=''\n            type='button'\n            {{on 'click' this.setWorkerCost}}\n          >{{t 'components.worker-cost-calculator.Set worker cost rate'}}</button>\n        {{/if}}\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  <button\n    type='button'\n    class='btn btn-link m-0 p-0 text-decoration-underline'\n    {{on 'click' (fn (mut this.calculatorVisible) true)}}\n    data-test-worker-cost-calculator-open-modal=''\n  ><FaIcon @icon='calculator' />&nbsp;{{t\n      'components.worker-cost-calculator.Use calculator'\n    }}</button>\n  */\n  {\n    \"id\": \"5/ab39hk\",\n    \"block\": \"[[[41,[30,0,[\\\"calculatorVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[true,\\\"modal\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"calculatorVisible\\\"]]],null],false],null],\\\"block-module worker-cost-calculator__container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.workerPayRateCalculatorExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"worker-cost-calculator__calculator-section-title\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Template name\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-item\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,8],[[24,0,\\\"text-input\\\"],[24,\\\"data-test-worker-cost-calculator-template-name\\\",\\\"\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"selectedCalculator\\\",\\\"label\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"worker-cost-calculator__calculator-section-title\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Select template\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-item\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],[[24,0,\\\"data-test-worker-cost-calculator-select-labour-cost-calculator\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@onChange\\\"],[\\\"div\\\",[30,0,[\\\"_labourCostCalculators\\\"]],[30,0,[\\\"selectedCalculator\\\"]],true,\\\"label\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"selectedCalculator\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,[30,1,[\\\"label\\\"]]]],[1]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-item\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--add no-wrap\\\"],[24,\\\"data-test-worker-cost-calculator-add-template\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"addCalculator\\\"]]],null],[12],[1,[28,[35,5],[\\\"common.Add new\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,13],[[30,0,[\\\"selectedCalculator\\\"]],[30,0,[\\\"entityDefault\\\"]]],null]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-item\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-worker-cost-calculator-make-org-default\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"setEntityDefault\\\"]]],null]],null],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Make company default\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-item\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteCalculator\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-worker-cost-calculator-edit-template\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"isEditing\\\"]]],null],true],null]],null],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Edit template\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"_labourCostCalculators\\\",\\\"length\\\"]],1],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"worker-cost-calculator__calculator-section-item\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,16],[[24,\\\"data-test-worker-cost-calculator-delete-template\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"text-button text-button--delete\\\",[30,0,[\\\"deleteCalculator\\\",\\\"isRunning\\\"]],[28,[37,14],[[30,0,[\\\"deleteCalculator\\\"]]],null],[28,[37,5],[\\\"shared.task.Delete template\\\"],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"worker-cost-calculator-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[10,\\\"tr\\\"],[15,0,[52,[30,0,[\\\"isEditing\\\"]],\\\"worker-cost-calculator-table__line--alt\\\",\\\"worker-cost-calculator-table__line\\\"]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Working days per week\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,21],[[24,\\\"data-test-worker-cost-calculator-days-per-week\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@format\\\",\\\"@number\\\",\\\"@update\\\"],[\\\"worker-cost-calculator__calculator-section-small-input\\\",\\\"integer\\\",[30,0,[\\\"selectedCalculator\\\",\\\"workingDaysPerWeek\\\"]],[28,[37,2],[[28,[37,3],[[30,0,[\\\"selectedCalculator\\\",\\\"workingDaysPerWeek\\\"]]],null]],null]]],null],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"no-wrap\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.days per week\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isEditing\\\"]]],[[[1,\\\"              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,22],[[30,0,[\\\"selectedCalculator\\\",\\\"workingDaysPerWeek\\\"]]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[2,true]]]],[1,\\\"\\\\n                \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.days per week\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"          \\\"],[10,\\\"tr\\\"],[15,0,[52,[30,0,[\\\"isEditing\\\"]],\\\"worker-cost-calculator-table__line--alt\\\",\\\"worker-cost-calculator-table__line\\\"]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Working hours per day\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,23],[[24,\\\"data-test-worker-cost-calculator-hours-per-day\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@duration\\\",\\\"@onDurationChange\\\"],[\\\"worker-cost-calculator__calculator-section-small-input\\\",[30,0,[\\\"selectedCalculator\\\",\\\"workingHoursPerDay\\\"]],[28,[37,2],[[28,[37,3],[[30,0,[\\\"selectedCalculator\\\",\\\"workingHoursPerDay\\\"]]],null]],null]]],null],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"no-wrap\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.hours per day\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isEditing\\\"]]],[[[1,\\\"              \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,24],[[30,0,[\\\"selectedCalculator\\\",\\\"workingHoursPerDay\\\"]]],null]],[1,\\\"\\\\n                \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.hours per day\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"worker-cost-calculator-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"worker-cost-calculator-table__line--alt\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"worker-cost-calculator-table__header text-left\\\"],[12],[1,[28,[35,5],[\\\"common.Cost\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"worker-cost-calculator-table__header text-center\\\"],[12],[1,[28,[35,5],[\\\"common.Enabled\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"worker-cost-calculator-table__header text-left\\\"],[12],[1,[28,[35,5],[\\\"common.Value\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"worker-cost-calculator-table__header text-left\\\"],[12],[1,[28,[35,5],[\\\"common.Type\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"worker-cost-calculator-table__header text-right\\\"],[12],[1,\\\"%\\\\n              \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.of pay rate\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"worker-cost-calculator-table__header text-right\\\"],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Cost per hour\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,5,\\\"width: 25px;\\\"],[14,0,\\\"worker-cost-calculator__header\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedCalculator\\\",\\\"sortedItems\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[15,0,[52,[30,0,[\\\"isEditing\\\"]],\\\"worker-cost-calculator-table__line--alt\\\",\\\"worker-cost-calculator-table__line\\\"]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,\\\"data-test-worker-cost-calculator-item-label\\\",[30,3]],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isSystem\\\"]],[[[1,\\\"                    \\\"],[1,[30,2,[\\\"label\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[8,[39,8],[[24,0,\\\"worker-cost-calculator__calculator-section-input\\\"],[24,\\\"placeholder\\\",\\\"Label\\\"],[16,\\\"data-test-worker-cost-calculator-item-label-input\\\",[30,3]]],[[\\\"@value\\\"],[[30,2,[\\\"label\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,8],[[16,\\\"data-test-worker-cost-calculator-item-enabled\\\",[30,3]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,2,[\\\"enabled\\\"]]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,29],[[28,[37,13],[[30,2,[\\\"valueType\\\"]],\\\"minutesPerDay\\\"],null],[28,[37,13],[[30,2,[\\\"valueType\\\"]],\\\"daysPerYear\\\"],null]],null],[[[1,\\\"                    \\\"],[8,[39,21],[[16,\\\"data-test-worker-cost-calculator-item-value\\\",[30,3]]],[[\\\"@class\\\",\\\"@format\\\",\\\"@number\\\",\\\"@disabled\\\",\\\"@update\\\"],[\\\"worker-cost-calculator__calculator-section-small-input\\\",\\\"integer\\\",[30,2,[\\\"value\\\"]],[28,[37,30],[[30,2,[\\\"enabled\\\"]]],null],[28,[37,2],[[28,[37,3],[[30,2,[\\\"value\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,13],[[30,2,[\\\"valueType\\\"]],\\\"percentOfPayRate\\\"],null],[[[1,\\\"                    \\\"],[8,[39,21],[[16,\\\"data-test-worker-cost-calculator-item-value\\\",[30,3]]],[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@disabled\\\"],[\\\"worker-cost-calculator__calculator-section-small-input\\\",\\\"0%\\\",[28,[37,2],[[28,[37,3],[[30,2,[\\\"value\\\"]]],null]],null],[30,2,[\\\"value\\\"]],\\\"percentage\\\",[28,[37,30],[[30,2,[\\\"enabled\\\"]]],null]]],null],[1,\\\"\\\\n                  \\\"]],[]],null]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"td\\\"],[15,\\\"data-test-worker-cost-calculator-item-value-type\\\",[30,3]],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isSystem\\\"]],[[[41,[28,[37,13],[[30,2,[\\\"valueType\\\"]],\\\"minutesPerDay\\\"],null],[[[1,\\\"                      \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.minutes per day\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,13],[[30,2,[\\\"valueType\\\"]],\\\"daysPerYear\\\"],null],[[[1,\\\"                      \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.days per year\\\"],null]],[1,\\\"\\\\n                    \\\"]],[]],null]],[]]]],[]],[[[1,\\\"                    \\\"],[8,[39,31],[[16,\\\"data-test-worker-cost-calculator-item-value-type-input\\\",[30,3]]],[[\\\"@class\\\",\\\"@value\\\",\\\"@action\\\",\\\"@disabled\\\"],[\\\"worker-cost-calculator__calculator-section-input\\\",[30,2,[\\\"valueType\\\"]],[28,[37,2],[[28,[37,32],[[28,[37,2],[[28,[37,3],[[30,2,[\\\"valueType\\\"]]],null]],null],[28,[37,2],[[28,[37,3],[[30,2,[\\\"value\\\"]]],null],0],null]],null]],null],[28,[37,30],[[30,2,[\\\"enabled\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                      \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"percentOfPayRate\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,5],[\\\"components.worker-cost-calculator.percentage of pay rate\\\"],null]]],[]]]]],[1,\\\"\\\\n                      \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"minutesPerDay\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,5],[\\\"components.worker-cost-calculator.minutes per day\\\"],null]]],[]]]]],[1,\\\"\\\\n                      \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"daysPerYear\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,5],[\\\"components.worker-cost-calculator.days per year\\\"],null]]],[]]]]],[1,\\\"\\\\n                    \\\"]],[4]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"enabled\\\"]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[15,\\\"data-test-worker-cost-calculator-item-percentage\\\",[30,3]],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,22],[[30,2,[\\\"percentage\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[15,\\\"data-test-worker-cost-calculator-item-rate\\\",[30,3]],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,22],[[28,[37,33],[[30,2,[\\\"percentage\\\"]],\\\"*\\\",[30,0,[\\\"payRate\\\"]]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Not applicable\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,2,[\\\"isSystem\\\"]]],[[[1,\\\"                      \\\"],[11,\\\"button\\\"],[24,5,\\\"font-size: 110%;\\\"],[24,0,\\\"text-button text-button--delete\\\"],[16,\\\"data-test-worker-cost-calculator-item-delete\\\",[30,3]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,2],[[30,0,[\\\"deleteItem\\\"]],[30,2]],null]],null],[12],[8,[39,34],null,[[\\\"@icon\\\"],[\\\"trash\\\"]],null],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"label\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"enabled\\\"]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,2,[\\\"valueType\\\"]],\\\"minutesPerDay\\\"],null],[[[1,\\\"                      \\\"],[1,[28,[35,24],[[30,2,[\\\"value\\\"]]],null]],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.minutes per day\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,13],[[30,2,[\\\"valueType\\\"]],\\\"daysPerYear\\\"],null],[[[1,\\\"                      \\\"],[1,[30,2,[\\\"value\\\"]]],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.days per year\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,13],[[30,2,[\\\"valueType\\\"]],\\\"percentOfPayRate\\\"],null],[[[1,\\\"                      \\\"],[1,[28,[35,22],[[30,2,[\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                    \\\"]],[]],null]],[]]]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,22],[[30,2,[\\\"percentage\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,22],[[28,[37,33],[[30,2,[\\\"percentage\\\"]],\\\"*\\\",[30,0,[\\\"payRate\\\"]]],null]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"3\\\"],[14,0,\\\"text-center\\\"],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Not applicable\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[14,0,\\\"worker-cost-calculator-table__line--alt\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[14,\\\"colspan\\\",\\\"7\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--add button--spaced\\\"],[24,\\\"data-test-worker-cost-calculator-add-item\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"addItem\\\"]]],null],[12],[1,[28,[35,5],[\\\"common.Add item\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"worker-cost-calculator-table__line--alt worker-cost-calculator-table__footer\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[52,[30,0,[\\\"isEditing\\\"]],\\\"5\\\",\\\"3\\\"]],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,22],[[30,0,[\\\"selectedCalculator\\\",\\\"extraCostPercentage\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[14,\\\"data-test-worker-cost-calculator-extras-rate\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,22],[[30,0,[\\\"extrasRate\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"worker-cost-calculator-table__summary worker-cost-calculator-table__line--alt\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[52,[30,0,[\\\"isEditing\\\"]],\\\"5\\\",\\\"3\\\"]],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Worker pay rate\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,22],[[30,0,[\\\"payRate\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"worker-cost-calculator-table__line--alt\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[15,\\\"colspan\\\",[52,[30,0,[\\\"isEditing\\\"]],\\\"5\\\",\\\"3\\\"]],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Calculated cost rate\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[14,\\\"data-test-worker-cost-calculator-cost-rate\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,22],[[30,0,[\\\"calculatedCost\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isEditing\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"worker-cost-calculator__final-rate\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"strong\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Worker cost rate\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n           \\\\n          \\\"],[8,[39,21],[[24,\\\"data-test-worker-cost-calculator-cost-rate-input\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@format\\\",\\\"@number\\\",\\\"@update\\\"],[\\\"worker-cost-calculator__calculator-section-small-input\\\",\\\"currency\\\",[30,0,[\\\"workerCost\\\"]],[28,[37,2],[[28,[37,3],[[30,0,[\\\"workerCost\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,13],[[30,0,[\\\"workerCost\\\"]],[30,0,[\\\"calculatedCost\\\"]]],null]],[[[1,\\\"             \\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,\\\"data-test-worker-cost-calculator-use-calculated\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"workerCost\\\"]]],null],[30,0,[\\\"calculatedCost\\\"]]],null]],null],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Use calculated\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,\\\"data-test-worker-cost-calculator-cancel\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"calculatorVisible\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[41,[51,[28,[37,39],[[28,[37,40],[[30,0,[\\\"_labourCostCalculators\\\",\\\"length\\\"]],1],null],[30,0,[\\\"selectedCalculator\\\",\\\"isNew\\\"]]],null]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,\\\"data-test-worker-cost-calculator-cancel-edit\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"cancelEditing\\\"]]],null],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Cancel editing\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,16],[[24,\\\"data-test-worker-cost-calculator-save-calculator\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@isLoading\\\",\\\"@buttonText\\\"],[\\\"button float-end button--spaced\\\",[28,[37,14],[[30,0,[\\\"saveCalculator\\\"]]],null],[30,0,[\\\"saveCalculator\\\",\\\"isRunning\\\"]],[28,[37,5],[\\\"components.worker-cost-calculator.Save calculator\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button float-end button--spaced\\\"],[24,\\\"data-test-worker-cost-calculator-set-worker-cost\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"setWorkerCost\\\"]]],null],[12],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Set worker cost rate\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link m-0 p-0 text-decoration-underline\\\"],[24,\\\"data-test-worker-cost-calculator-open-modal\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,2],[[28,[37,3],[[30,0,[\\\"calculatorVisible\\\"]]],null],true],null]],null],[12],[8,[39,34],null,[[\\\"@icon\\\"],[\\\"calculator\\\"]],null],[1,\\\" \\\"],[1,[28,[35,5],[\\\"components.worker-cost-calculator.Use calculator\\\"],null]],[13]],[\\\"labourCostCalculator\\\",\\\"item\\\",\\\"index\\\",\\\"si\\\"],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"p\\\",\\\"t\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"power-select\\\",\\\"button\\\",\\\"on\\\",\\\"unless\\\",\\\"eq\\\",\\\"perform\\\",\\\"gt\\\",\\\"loading-button\\\",\\\"table\\\",\\\"tbody\\\",\\\"tr\\\",\\\"td\\\",\\\"formatted-input\\\",\\\"number-format\\\",\\\"duration-input\\\",\\\"format-duration\\\",\\\"thead\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"or\\\",\\\"not\\\",\\\"select-input\\\",\\\"pipe\\\",\\\"math\\\",\\\"fa-icon\\\",\\\"tfoot\\\",\\\"br\\\",\\\"strong\\\",\\\"footer\\\",\\\"and\\\",\\\"lte\\\"]]\",\n    \"moduleName\": \"portal/components/worker-cost-calculator.hbs\",\n    \"isStrictMode\": false\n  });\n  let WorkerCostCalculator = _exports.default = (_dec = (0, _object.computed)('payRate', 'selectedCalculator.extraCostPercentage', '_workerCost'), _dec2 = (0, _object.computed)('_labourCostCalculators', 'worker.entity'), _class = class WorkerCostCalculator extends _component.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tagName\", '');\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"calculatorVisible\", _descriptor4, this);\n      _initializerDefineProperty(this, \"_labourCostCalculators\", _descriptor5, this);\n      _initializerDefineProperty(this, \"selectedCalculator\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isEditing\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_workerCost\", _descriptor8, this);\n      _defineProperty(this, \"saveCalculator\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.selectedCalculator.save();\n            // save the items after the calculator for relationship reasons\n            yield Promise.all(this.selectedCalculator.hasMany('items').value().toArray().map(item => item.save()));\n            this.notifications.success(this.intl.t('components.worker-cost-calculator.Calculator was saved successfully'));\n            this.isEditing = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.worker-cost-calculator.somethingWentWrongWhileSavingTheCalculator'),\n              error\n            });\n          }\n        }\n      }), null, \"saveCalculator\", null));\n      _defineProperty(this, \"setEntityDefault\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const entity = this.worker.belongsTo('entity').value();\n          entity.defaultLabourCostCalculator = this.selectedCalculator;\n          yield entity.save();\n        }\n      }), null, \"setEntityDefault\", null));\n      _defineProperty(this, \"deleteCalculator\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            this._labourCostCalculators.removeObject(this.selectedCalculator);\n            yield this.selectedCalculator.destroyRecord();\n            this.selectOrCreateDefault();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.worker-cost-calculator.somethingWentWrongWhileDeletingTheTemplate'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteCalculator\", null));\n    }\n    init() {\n      super.init(...arguments);\n      if (!['labourCostCalculators', 'worker'].every(attr => Object.keys(this.attrs).includes(attr))) {\n        throw new Error('You must provide [\"labourCostCalculators\", \"worker\"] props to this component');\n      }\n    }\n    get workerCost() {\n      const calculatedCost = this.payRate * (1 + this.selectedCalculator.extraCostPercentage);\n      const workerCost = this._workerCost ? this._workerCost : calculatedCost;\n      return Math.round(workerCost * 100) / 100;\n    }\n    set workerCost(rate) {\n      (0, _object.set)(this, '_workerCost', rate);\n      return rate;\n    }\n    get entityDefault() {\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      const entity = (0, _object.get)(this, 'worker.entity');\n      return this._labourCostCalculators.findBy('id',\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      (0, _object.get)(entity, 'defaultLabourCostCalculator.id'));\n    }\n    get calculatedCost() {\n      return this.payRate + this.extrasRate;\n    }\n    get extrasRate() {\n      const extrasRate = this.selectedCalculator.extraCostPercentage * this.payRate;\n      return Math.round(extrasRate * 100) / 100;\n    }\n    didInsertElement() {\n      super.didInsertElement(...arguments);\n      this._labourCostCalculators.push(...this.labourCostCalculators.toArray());\n      this.workerCost = this.worker.costRate;\n      this.selectOrCreateDefault();\n    }\n    selectOrCreateDefault() {\n      const entity = this.worker.belongsTo('entity').value();\n\n      // create entity cost rate if one does not exist\n      if (!this._labourCostCalculators.length) {\n        const newCalculator = this.createNewLabourCostCalculatorForRegion(entity);\n        (0, _object.set)(this, 'selectedCalculator', newCalculator);\n        this._labourCostCalculators.pushObject(this.selectedCalculator);\n        // force people to edit the new entity rate - you must save before continuing.\n        this.isEditing = true;\n      } else {\n        (0, _object.set)(this, 'selectedCalculator', this.worker.belongsTo('costCalculatorUsed').value() || this.entityDefault || this._labourCostCalculators[0]);\n      }\n    }\n    createNewLabourCostCalculatorForRegion(entity) {\n      let labourCostCalculator;\n      let labourCostCalculatorItems;\n      switch (entity.region) {\n        case 'NZL':\n          labourCostCalculator = _labourCostCalculatorFixtures.nzlLabourCostCalculator;\n          labourCostCalculatorItems = _labourCostCalculatorFixtures.nzlLabourCostCalculatorItems;\n          break;\n        case 'AUS':\n          labourCostCalculator = _labourCostCalculatorFixtures.ausLabourCostCalculator;\n          labourCostCalculatorItems = _labourCostCalculatorFixtures.ausLabourCostCalculatorItems;\n          break;\n        default:\n          labourCostCalculator = _labourCostCalculatorFixtures.defaultLabourCostCalculator;\n          labourCostCalculatorItems = _labourCostCalculatorFixtures.defaultLabourCostCalculatorItems;\n          break;\n      }\n\n      // create the new calculator\n      const newCalculator = this.store.createRecord('labour-cost-calculator', {\n        ...labourCostCalculator,\n        entity\n      });\n      // create the new calculator items\n      labourCostCalculatorItems.forEach(item => this.store.createRecord('labour-cost-calculator-item', {\n        ...item,\n        calculator: newCalculator,\n        entity\n      }));\n      return newCalculator;\n    }\n    cancelEditing() {\n      if (this.selectedCalculator.isNew) {\n        // discard the new record if it's not saved\n        this.selectedCalculator.hasMany('items').value().toArray().forEach(item => item.destroyRecord());\n        this.selectedCalculator.destroyRecord();\n        this._labourCostCalculators.removeObject(this.selectedCalculator);\n        this.selectOrCreateDefault();\n      } else {\n        // rollback the changes to the existing record\n        this.selectedCalculator.hasMany('items').value().toArray().forEach(item => item.rollbackAttributes());\n        this.selectedCalculator.rollbackAttributes();\n      }\n      this.isEditing = false;\n    }\n    addItem() {\n      this.store.createRecord('labour-cost-calculator-item', {\n        entity: this.worker.belongsTo('entity').value(),\n        calculator: this.selectedCalculator\n      });\n    }\n    toggleCalculatorProp(prop, event) {\n      this.selectedCalculator[prop] = !this.selectedCalculator[prop];\n      event.stopPropagation();\n    }\n    deleteItem(item) {\n      item.deleteRecord();\n    }\n    addCalculator() {\n      // This is a little hacky but seems to work ok as a way to clone all the attrs on\n      // an existing record.\n      const entity = this.worker.belongsTo('entity').value();\n      const clonedCalculator = {\n        label: this.selectedCalculator.label,\n        workingHoursPerDay: this.selectedCalculator.workingHoursPerDay,\n        workingDaysPerWeek: this.selectedCalculator.workingDaysPerWeek,\n        entity\n      };\n      const clonedItems = this.selectedCalculator.hasMany('items').value().toArray().map(item => ({\n        label: item.label,\n        valueType: item.valueType,\n        value: item.value,\n        enabled: item.enabled,\n        isSystem: item.isSystem,\n        entity\n      }));\n      const newCalculator = this.store.createRecord('labour-cost-calculator', {\n        ...clonedCalculator,\n        entity,\n        label: 'Labour cost calculator ' + (this._labourCostCalculators.length + 1)\n      });\n      clonedItems.forEach(item => {\n        this.store.createRecord('labour-cost-calculator-item', {\n          ...item,\n          calculator: newCalculator,\n          entity\n        });\n      });\n      this._labourCostCalculators.pushObject(newCalculator);\n      (0, _object.set)(this, 'selectedCalculator', newCalculator);\n      this.isEditing = true;\n    }\n    async setWorkerCost() {\n      this.worker.costRate = this.workerCost;\n      this.worker.costCalculatorUsed = this.selectedCalculator;\n      this.calculatorVisible = false;\n      if (typeof this.onSetWorkerCost === 'function') this.onSetWorkerCost();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"calculatorVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"_labourCostCalculators\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"selectedCalculator\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isEditing\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"_workerCost\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"workerCost\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"workerCost\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"entityDefault\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"entityDefault\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelEditing\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelEditing\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleCalculatorProp\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleCalculatorProp\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deleteItem\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addCalculator\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addCalculator\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setWorkerCost\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setWorkerCost\"), _class.prototype), _class);\n  (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, WorkerCostCalculator);\n});","define(\"portal/components/worker-project-allocation-modal\", [\"exports\", \"@ember/component\", \"ember-concurrency/async-arrow-runtime\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"ember-changeset\", \"moment\", \"portal/utils/profit-margin\", \"@ember/template-factory\"], function (_exports, _component, _asyncArrowRuntime, _component2, _object, _tracking, _service, _emberChangeset, _moment, _profitMargin, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _class2, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-changeset\",0,\"moment\",0,\"portal/utils/profit-margin\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <ModalDialog\n    @translucentOverlay={{true}}\n    @onClose={{this.onClose}}\n    @overlayClass='modal'\n    @containerClass='block-module worker-project-allocation-modal__container'\n  >\n    <div {{did-insert (perform this.initWorkerProjectAllocations)}}></div>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <p>\n        {{t\n          'components.worker-project-allocation-modal.overrideWorkersChargeOutRateExplanation'\n        }}\n      </p>\n  \n      <div class='worker-project-allocation-modal__table-container'>\n        <table class='table'>\n          <thead>\n            <tr>\n              <th>{{t 'common.Worker'}}</th>\n              <th>\n                {{profit-type-label\n                  @project.effectiveProfitMargin.labourPercentage.type\n                  effective=true\n                }}\n              </th>\n              <th>{{t 'common.Charge-out rate'}}</th>\n              <th class='text-center'>{{t 'common.Action'}}</th>\n            </tr>\n          </thead>\n          <tbody class='table-group-divider'>\n            {{#each this.workerContainers as |wc|}}\n              {{! to avoid control jumping in edit mode }}\n              <tr style='height:57px'>\n                <td>{{wc.worker.fullName}}</td>\n                <td>\n                  {{number-format\n                    wc.effectiveProfitMargin\n                    style='percent'\n                    dashZero=false\n                    maximumFractionDigits=2\n                    minimumFractionDigits=2\n                  }}\n                  {{#if\n                    (and wc.hasActiveAllocation (not wc.worker.isContractor))\n                  }}\n                    <div>\n                      <button\n                        class='btn btn-link m-0 p-0 text-decoration-underline'\n                        {{on 'click' (fn this.setDefaultEffectiveMargin wc)}}\n                        type='button'\n                        style='font-size: 11px;'\n                      >\n                        {{concat\n                          (t 'common.Use default')\n                          ' '\n                          (number-format\n                            @project.effectiveProfitMargin.labourPercentage.value\n                            style='percent'\n                            dashZero=true\n                            maximumFractionDigits=2\n                            minimumFractionDigits=2\n                          )\n                        }}\n                      </button>\n                    </div>\n                  {{/if}}\n                </td>\n                <td>\n                  {{#if wc.hasActiveAllocation}}\n                    <FormattedInput\n                      @class='form-control'\n                      @format='currency'\n                      @number={{wc.allocation.chargeOutRate}}\n                      @update={{fn (mut wc.allocation.chargeOutRate)}}\n                    />\n                  {{else}}\n                    {{number-format\n                      wc.worker.chargeOutRate\n                      style='currency'\n                      dashZero=true\n                    }}\n                  {{/if}}\n                </td>\n                <td class='text-center'>\n                  {{#if wc.hasActiveAllocation}}\n                    <button\n                      type='button'\n                      class='btn btn-link'\n                      {{on 'click' (fn this.clearAllocation wc)}}\n                    >{{t 'common.Clear'}}</button>\n                  {{else}}\n                    <button\n                      type='button'\n                      class='btn btn-link'\n                      {{on 'click' (fn this.createAllocation wc)}}\n                    >{{t 'common.Override'}}</button>\n                  {{/if}}\n                </td>\n              </tr>\n            {{else}}\n              <tr>\n                <td class='text-center' colspan='4'>{{t\n                    'components.worker-project-allocation-modal.You have no active workers'\n                  }}</td>\n              </tr>\n            {{/each}}\n          </tbody>\n        </table>\n      </div>\n    {{/if}}\n  \n    <footer class='block-module__footer'>\n      <button\n        type='button'\n        class='btn btn-secondary text-white text-nowrap m-1'\n        {{on 'click' this.onClose}}\n        disabled={{this.isSaving}}\n      >\n        {{t 'common.Cancel'}}\n      </button>\n  \n      {{#unless this.isLoading}}\n        <div class='float-end d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-primary text-nowrap m-1'\n            {{on 'click' (perform this.save)}}\n            disabled={{this.isSaving}}\n          >\n            {{#if this.save.isRunning}}\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{t 'common.Save'}}\n            {{/if}}\n          </button>\n          {{#if this.canApplyChargeOutRate}}\n            <button\n              type='button'\n              class='btn btn-primary text-nowrap m-1'\n              {{on 'click' this.initBackdateChangeset}}\n              disabled={{this.isSaving}}\n            >\n              {{t 'common.saveApply'}}\n            </button>\n          {{/if}}\n        </div>\n      {{/unless}}\n    </footer>\n  </ModalDialog>\n  \n  {{#if this.backdateChangeSet}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.backdateChangeSet) null}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        <p>\n          {{t\n            'components.worker-project-allocation-modal.projectChangeChargeOutRateConfirm'\n          }}\n        </p>\n        <PtlInput\n          @type='date'\n          @key='startDate'\n          @label={{t\n            'components.worker-project-allocation-modal.Apply charge out rate from'\n          }}\n          @model={{this.backdateChangeSet}}\n          @forceValidationVisible={{gt this.saveAndApply.performCount 0}}\n          disabled={{this.saveAndApply.isRunning}}\n        />\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.saveAndApply.isRunning}}\n            {{on 'click' (fn (mut this.backdateChangeSet) null)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.saveAndApply.isRunning}}\n            {{on 'click' (perform this.saveAndApply)}}\n          >\n            {{#if this.saveAndApply.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Applying'}}&hellip;\n            {{else}}\n              {{t 'common.Apply'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"K+21SnWI\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[true,[30,0,[\\\"onClose\\\"]],\\\"modal\\\",\\\"block-module worker-project-allocation-modal__container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[11,0],[4,[38,2],[[28,[37,3],[[30,0,[\\\"initWorkerProjectAllocations\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,7],[\\\"components.worker-project-allocation-modal.overrideWorkersChargeOutRateExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"worker-project-allocation-modal__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Worker\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,12],[[30,1,[\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"type\\\"]]],[[\\\"effective\\\"],[true]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Charge-out rate\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,[28,[35,7],[\\\"common.Action\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[14,0,\\\"table-group-divider\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"workerContainers\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[14,5,\\\"height:57px\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"worker\\\",\\\"fullName\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,17],[[30,2,[\\\"effectiveProfitMargin\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",false,2,2]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,2,[\\\"hasActiveAllocation\\\"]],[28,[37,19],[[30,2,[\\\"worker\\\",\\\"isContractor\\\"]]],null]],null],[[[1,\\\"                  \\\"],[10,0],[12],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link m-0 p-0 text-decoration-underline\\\"],[24,5,\\\"font-size: 11px;\\\"],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[28,[37,22],[[30,0,[\\\"setDefaultEffectiveMargin\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,23],[[28,[37,7],[\\\"common.Use default\\\"],null],\\\" \\\",[28,[37,17],[[30,1,[\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"hasActiveAllocation\\\"]],[[[1,\\\"                  \\\"],[8,[39,24],null,[[\\\"@class\\\",\\\"@format\\\",\\\"@number\\\",\\\"@update\\\"],[\\\"form-control\\\",\\\"currency\\\",[30,2,[\\\"allocation\\\",\\\"chargeOutRate\\\"]],[28,[37,22],[[28,[37,25],[[30,2,[\\\"allocation\\\",\\\"chargeOutRate\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,17],[[30,2,[\\\"worker\\\",\\\"chargeOutRate\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"hasActiveAllocation\\\"]],[[[1,\\\"                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[28,[37,22],[[30,0,[\\\"clearAllocation\\\"]],[30,2]],null]],null],[12],[1,[28,[35,7],[\\\"common.Clear\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link\\\"],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[28,[37,22],[[30,0,[\\\"createAllocation\\\"]],[30,2]],null]],null],[12],[1,[28,[35,7],[\\\"common.Override\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[14,0,\\\"text-center\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,[28,[35,7],[\\\"components.worker-project-allocation-modal.You have no active workers\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[30,0,[\\\"onClose\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[28,[37,3],[[30,0,[\\\"save\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"save\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,7],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,7],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canApplyChargeOutRate\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[30,0,[\\\"initBackdateChangeset\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.saveApply\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"backdateChangeSet\\\"]],[[[1,\\\"  \\\"],[8,[39,0],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,22],[[28,[37,25],[[30,0,[\\\"backdateChangeSet\\\"]]],null],null],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,7],[\\\"components.worker-project-allocation-modal.projectChangeChargeOutRateConfirm\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,28],[[16,\\\"disabled\\\",[30,0,[\\\"saveAndApply\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@label\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",\\\"startDate\\\",[28,[37,7],[\\\"components.worker-project-allocation-modal.Apply charge out rate from\\\"],null],[30,0,[\\\"backdateChangeSet\\\"]],[28,[37,29],[[30,0,[\\\"saveAndApply\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveAndApply\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[28,[37,22],[[28,[37,25],[[30,0,[\\\"backdateChangeSet\\\"]]],null],null],null]],null],[12],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveAndApply\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,21],[\\\"click\\\",[28,[37,3],[[30,0,[\\\"saveAndApply\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveAndApply\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Applying\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,7],[\\\"common.Apply\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@project\\\",\\\"wc\\\"],false,[\\\"modal-dialog\\\",\\\"div\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"p\\\",\\\"t\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"profit-type-label\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"number-format\\\",\\\"and\\\",\\\"not\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"concat\\\",\\\"formatted-input\\\",\\\"mut\\\",\\\"footer\\\",\\\"unless\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/components/worker-project-allocation-modal.hbs\",\n    \"isStrictMode\": false\n  });\n  let WorkerContainer = (_class = class WorkerContainer {\n    get hasActiveAllocation() {\n      return Boolean(this.allocation && !this.allocation.isDeleted);\n    }\n    constructor(worker, allocation, project) {\n      _initializerDefineProperty(this, \"worker\", _descriptor, this);\n      _initializerDefineProperty(this, \"allocation\", _descriptor2, this);\n      _initializerDefineProperty(this, \"project\", _descriptor3, this);\n      this.worker = worker;\n      this.allocation = allocation;\n      this.project = project;\n    }\n    get effectiveProfitMargin() {\n      const calculatedValue = (0, _profitMargin.calculatePercentage)(this.project.effectiveProfitMargin.labourPercentage.type, this.allocation?.costRate || this.worker.costRate, this.allocation?.chargeOutRate || this.worker.chargeOutRate);\n      return calculatedValue || this.project.effectiveProfitMargin.labourPercentage.value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"worker\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"allocation\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"project\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (_class2 = class _class2 extends _component2.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor6, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor8, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor9, this);\n      _initializerDefineProperty(this, \"workerContainers\", _descriptor0, this);\n      _initializerDefineProperty(this, \"backdateChangeSet\", _descriptor1, this);\n      _defineProperty(this, \"initWorkerProjectAllocations\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const [workers, allocations] = yield Promise.all([this.store.simpleQuery('worker', {\n            entity: this.sessionData.entity.id,\n            isActive: true\n          }).then(w => w.sortBy('fullName')).then(w => w.toArray()), this.store.simpleQuery('worker-job-allocation', {\n            project: this.args.project.id\n          }).then(a => a.toArray())]);\n          this.workerContainers = workers.map(worker => {\n            const allocation = allocations.find(a => a.belongsTo('worker').value() === worker);\n            return new WorkerContainer(worker, allocation, this.args.project);\n          });\n        }\n      }), null, \"initWorkerProjectAllocations\", null));\n      _defineProperty(this, \"validateContent\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue || oldValue;\n        if (key === 'startDate' && value) {\n          if (Date.parse(value) > Date.parse(new Date())) {\n            return this.intl.t('validation.startDateShouldBeBeforeToday');\n          }\n        }\n        return true;\n      });\n      _defineProperty(this, \"backdateMap\", {\n        startDate: this.validateContent,\n        endDate: this.validateContent\n      });\n      _defineProperty(this, \"save\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield Promise.all(this.workerContainers.map(wc => wc.allocation?.save()));\n            this.notifications.success(this.intl.t('components.worker-project-allocation-modal.Charge out rates saved'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.worker-project-allocation-modal.somethingWentWrongSavingChargeOutRates'),\n              error\n            });\n          }\n        }\n      }), null, \"save\", null));\n      _defineProperty(this, \"saveAndApply\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.backdateChangeSet.validate();\n            if (!this.backdateChangeSet.isValid) return;\n\n            // save the allocations first\n            const chargeOutRates = [];\n            yield Promise.all(this.workerContainers.map(async wc => {\n              if (!wc.allocation) return;\n              chargeOutRates.push({\n                workerId: wc.worker.id,\n                chargeOutRate: wc.allocation.chargeOutRate ?? wc.worker.chargeOutRate\n              });\n              // save the allocation\n              await wc.allocation.save();\n            }));\n\n            // perform the backdate\n            yield this.portalApi.authPost('/backdate-charge-out-rates', {\n              entityId: this.sessionData.entity.id,\n              projectIds: [this.args.project.id],\n              chargeOutRates,\n              startDate: this.backdateChangeSet.startDate ? (0, _moment.default)(this.backdateChangeSet.startDate).format('YYYY-MM-DD') : undefined\n            });\n            this.backdateChangeSet = null;\n            this.notifications.success(this.intl.t('components.worker-project-allocation-modal.Charge out rates saved and applied'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('components.worker-project-allocation-modal.somethingWentWrongApplyingChargeOutRates'),\n              error\n            });\n          }\n        }\n      }), null, \"saveAndApply\", null));\n    }\n    get canApplyChargeOutRate() {\n      return this.newFeatureFlags.includesFeatureFlags(this.args.project, 'canUseBackdateChargeOutRate');\n    }\n    get isLoading() {\n      return this.initWorkerProjectAllocations.isRunning;\n    }\n    get isSaving() {\n      return this.save.isRunning || this.saveAndApply.isRunning;\n    }\n    clearAllocation(wc) {\n      if (wc.allocation.isNew) {\n        const allocation = wc.allocation;\n        wc.allocation = null;\n        allocation.unloadRecord();\n        return;\n      }\n\n      // To trigger tracked property in WorkerContainer\n      wc.allocation.chargeOutRate = wc.worker.chargeOutRate;\n      wc.allocation.deleteRecord();\n    }\n    setDefaultEffectiveMargin(wc) {\n      const calculatedValue = (0, _profitMargin.calculateValue)(this.args.project.effectiveProfitMargin.labourPercentage.type, wc.worker.costRate, this.args.project.effectiveProfitMargin.labourPercentage.value);\n      wc.allocation.chargeOutRate = calculatedValue;\n    }\n    createAllocation(wc) {\n      if (wc.allocation?.isDeleted) {\n        wc.allocation.rollbackAttributes();\n        return;\n      }\n      if (!wc.allocation) wc.allocation = this.store.createRecord('worker-job-allocation', {\n        worker: wc.worker,\n        project: this.args.project,\n        chargeOutRate: wc.worker.chargeOutRate,\n        entity: this.sessionData.entity\n      });\n    }\n    onClose() {\n      this.workerContainers.forEach(wc => wc.allocation?.rollbackAttributes());\n      this.args.onClose();\n    }\n    initBackdateChangeset() {\n      this.backdateChangeSet = (0, _emberChangeset.Changeset)({\n        startDate: null\n      }, this.validateContent, this.backdateMap);\n    }\n  }, _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"workerContainers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"backdateChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"clearAllocation\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"clearAllocation\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDefaultEffectiveMargin\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDefaultEffectiveMargin\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"createAllocation\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"createAllocation\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClose\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"initBackdateChangeset\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initBackdateChangeset\"), _class2.prototype), _class2));\n});","define(\"portal/controllers/admin\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/admin/announcements\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/admin/announcements/announcement\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"moment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"showPreviewModal\", _descriptor3, this);\n      _defineProperty(this, \"chargebeePlanOptions\", [{\n        name: 'Builda Price CAL Education',\n        id: 'builda-price-cal-education-AUD-Monthly'\n      }, {\n        name: 'Builda Price One Australia',\n        id: 'builda-price-one-aus-AUD-Monthly'\n      }, {\n        name: 'Builda Price One New Zealand',\n        id: 'builda-price-one-nzl-NZD-Monthly'\n      }, {\n        name: 'Builda Price One UK',\n        id: 'builda-price-one-uk-GBP-Monthly'\n      }, {\n        name: 'Builda Price One USA',\n        id: 'builda-price-one-USA-USD-Monthly'\n      }, {\n        name: 'Builda Price Pro Australia',\n        id: 'builda-price-pro-australia'\n      }, {\n        name: 'Builda Price Pro New Zealand',\n        id: 'Builda-Price-Pro-New-Zealand-NZD-Monthly'\n      }, {\n        name: 'Builda Price Pro TradiePad',\n        id: 'Builda-Price-Pro-TradiePad-Australia-AUD-Monthly'\n      }, {\n        name: 'Builda Price Pro UK',\n        id: 'Builda-Price-Pro-UK-GBP-Monthly'\n      }, {\n        name: 'Builda Price Pro USA',\n        id: 'builda-price-pro-usa-usd-monthly'\n      }, {\n        name: 'Builda Price Standard New Zealand',\n        id: 'Builda-Price-Standard-New-Zealand-NZD-Monthly'\n      }, {\n        name: 'Builda Price Student Australia',\n        id: 'Builda-Price-Education-AUS-AUD-Every-6-months'\n      }, {\n        name: 'Builda Price Subcontractor Australia',\n        id: 'Builda-Price-Subcontractor-Australia-AUD-Monthly'\n      }, {\n        name: 'Builda Price Subcontractor New Zealand',\n        id: 'Builda-Price-Subcontractor-New-Zealand-NZD-Monthly'\n      }]);\n      _defineProperty(this, \"languages\", [{\n        label: 'All languages',\n        value: null\n      }, {\n        label: 'English',\n        value: 'en'\n      }, {\n        label: 'Chinese',\n        value: 'zh'\n      }]);\n      _initializerDefineProperty(this, \"_entityAttributes\", _descriptor4, this);\n      _initializerDefineProperty(this, \"_userAttributes\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_requiredChargebeePlans\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_excludedChargebeePlans\", _descriptor7, this);\n      _defineProperty(this, \"saveAnnouncement\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          yield changeset.validate();\n          if (changeset.isInvalid) return;\n          const isValidAttributes = this.entityAttributes.length && this.userAttributes.length;\n          if (!isValidAttributes) {\n            this.notifications.warning('Please select at least one entity and user attribute.');\n            return;\n          }\n          try {\n            changeset.execute();\n            const isNew = this.announcement.isNew;\n            const entityAttributeIds = this.entityAttributes.map(item => item.id);\n            const userAttributeIds = this.userAttributes.map(item => item.id);\n            const requiredChargebeePlanIds = this.requiredChargebeePlans.map(item => item.id);\n            const excludedChargebeePlanIds = this.excludedChargebeePlans.map(item => item.id);\n            if (!changeset.validFrom) {\n              changeset.validFrom = (0, _moment.default)().toDate();\n            }\n            if (!changeset.validUntil) {\n              changeset.validUntil = (0, _moment.default)(changeset.validFrom).add(30, 'days').toDate();\n            }\n            changeset.entityAttributes = entityAttributeIds;\n            changeset.userAttributes = userAttributeIds;\n            changeset.excludedChargebeePlans = excludedChargebeePlanIds;\n            changeset.requiredChargebeePlans = requiredChargebeePlanIds;\n            const announcement = yield changeset.save();\n            if (isNew) {\n              this.router.transitionTo('admin.announcements.announcement', announcement.id);\n            }\n            this.notifications.success('Details saved successfully');\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong saving the announcement',\n              error\n            });\n          }\n        }\n      }), null, \"saveAnnouncement\", null));\n      _defineProperty(this, \"deleteAnnouncement\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.destroyRecord();\n            this.router.transitionTo('admin.announcements');\n            this.notifications.success('Announcement deleted successfully');\n          } catch (error) {\n            this.notifications.error('Something went wrong while deleting announcement', error);\n          }\n        }\n      }), null, \"deleteAnnouncement\", null));\n      _defineProperty(this, \"initProps\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.entityAttributes = (this.announcement.entityAttributes || []).map(id => this.model.entityAttributes.last.value.find(e => e.id === id));\n          this.userAttributes = (this.announcement.userAttributes || []).map(id => this.model.userAttributes.last.value.find(e => e.id === id));\n          this.requiredChargebeePlans = (this.announcement.requiredChargebeePlans || []).map(id => this.chargebeePlanOptions.find(e => e.id === id));\n          this.excludedChargebeePlans = (this.announcement.excludedChargebeePlans || []).map(id => this.chargebeePlanOptions.find(e => e.id === id));\n        }\n      }), null, \"initProps\", null));\n      _defineProperty(this, \"BUILDA_PRICE_PRESETS\", ['canUseBuildaPrice']);\n      _defineProperty(this, \"FINANCIAL_PORTAL_PRESETS\", ['canUseFinancialReporting']);\n      _defineProperty(this, \"ENTITY_MANAGER_PRESETS\", ['canManageEntity']);\n      _defineProperty(this, \"ENTITY_USER_PRESETS\", ['canViewEntity']);\n    }\n    get isLoading() {\n      return this.model.announcement.isRunning || this.model.announcementChangeset.isRunning || this.model.entityAttributes.isRunning || this.model.userAttributes.isRunning;\n    }\n    get sortedChargebeePlans() {\n      return this.chargebeePlanOptions.sort((a, b) => a.name.localeCompare(b.name));\n    }\n    get announcement() {\n      return this.model.announcement.last.value;\n    }\n    get announcementChangeset() {\n      return this.model.announcementChangeset.last.value;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: 'admin.announcements',\n        pageTitle: 'Announcements'\n      }, {\n        route: this.model.basePath,\n        pageTitle: this.announcement.isNew ? 'New Announcement' : this.model.announcement.last.value.title\n      }];\n      return paths;\n    }\n    get entityAttributes() {\n      if (this._entityAttributes) return this._entityAttributes;\n      return this._entityAttributes?.length ? this.model.entityAttributes.last.value.filter(p => this._entityAttributes.includes(p.id)) : [];\n    }\n    set entityAttributes(value) {\n      this._entityAttributes = value;\n    }\n    get userAttributes() {\n      if (this._userAttributes) return this._userAttributes;\n      return this._userAttributes?.length ? this.model.userAttributes.last.value.filter(p => this._userAttributes.includes(p.id)) : [];\n    }\n    set userAttributes(value) {\n      this._userAttributes = value;\n    }\n    get requiredChargebeePlans() {\n      if (this._requiredChargebeePlans) return this._requiredChargebeePlans;\n      return this._requiredChargebeePlans?.length ? this.chargebeePlanOptions.filter(p => this._requiredChargebeePlans.includes(p.id)) : [];\n    }\n    set requiredChargebeePlans(value) {\n      this._requiredChargebeePlans = value;\n    }\n    get excludedChargebeePlans() {\n      if (this._excludedChargebeePlans) return this._excludedChargebeePlans;\n      return this._excludedChargebeePlans?.length ? this.chargebeePlanOptions.filter(p => this._excludedChargebeePlans.includes(p.id)) : [];\n    }\n    set excludedChargebeePlans(value) {\n      this._excludedChargebeePlans = value;\n    }\n    handleMessageChange(value) {\n      this.announcementChangeset.message = value;\n    }\n    get hasBuildaPriceFeatures() {\n      let ids = this.entityAttributes.map(a => a.id);\n      return this.BUILDA_PRICE_PRESETS.every(p => ids.includes(p));\n    }\n    get hasFinancialPortalFeatures() {\n      let ids = this.entityAttributes.map(a => a.id);\n      return this.FINANCIAL_PORTAL_PRESETS.every(p => ids.includes(p));\n    }\n    get hasEntityManagerFeatures() {\n      let ids = this.userAttributes.map(a => a.id);\n      return this.ENTITY_MANAGER_PRESETS.every(p => ids.includes(p));\n    }\n    get hasEntityUserFeatures() {\n      let ids = this.userAttributes.map(a => a.id);\n      return this.ENTITY_USER_PRESETS.every(p => ids.includes(p));\n    }\n    setBuildaPriceFeatures() {\n      let allAttributes = this.model.entityAttributes.last.value;\n      let attributesToAdd = allAttributes.filter(a => this.BUILDA_PRICE_PRESETS.includes(a.id) && !this.entityAttributes.find(u => u.id === a.id));\n      this.entityAttributes = [...this.entityAttributes, ...attributesToAdd];\n    }\n    setFinancialPortalFeatures() {\n      let allAttributes = this.model.entityAttributes.last.value;\n      let attributesToAdd = allAttributes.filter(a => this.FINANCIAL_PORTAL_PRESETS.includes(a.id) && !this.entityAttributes.find(u => u.id === a.id));\n      this.entityAttributes = [...this.entityAttributes, ...attributesToAdd];\n    }\n    setEntityManagerFeatures() {\n      let allAttributes = this.model.userAttributes.last.value;\n      let attributesToAdd = allAttributes.filter(a => this.ENTITY_MANAGER_PRESETS.includes(a.id) && !this.userAttributes.find(u => u.id === a.id));\n      this.userAttributes = [...this.userAttributes, ...attributesToAdd];\n    }\n    setEntityUserFeatures() {\n      let allAttributes = this.model.userAttributes.last.value;\n      let attributesToAdd = allAttributes.filter(a => this.ENTITY_USER_PRESETS.includes(a.id) && !this.userAttributes.find(u => u.id === a.id));\n      this.userAttributes = [...this.userAttributes, ...attributesToAdd];\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"showPreviewModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"_entityAttributes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_userAttributes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_requiredChargebeePlans\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedChargebeePlans\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"handleMessageChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"handleMessageChange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setBuildaPriceFeatures\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setBuildaPriceFeatures\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setFinancialPortalFeatures\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setFinancialPortalFeatures\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setEntityManagerFeatures\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setEntityManagerFeatures\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setEntityUserFeatures\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setEntityUserFeatures\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/admin/announcements/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"portal/config/environment\", \"ember-concurrency\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _tracking, _environment, _emberConcurrency) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"portal/config/environment\",0,\"ember-concurrency\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"pageNumber\", _descriptor3, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor5, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor6, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor7, this);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageNumber', 'sortBy', 'sortDirection', 'searchTerm']);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          yield (0, _emberConcurrency.timeout)(_environment.default.debounceTimeMs);\n          this.searchTerm = e.target.value.trim();\n          this.pageNumber = 1;\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n    }\n    get isLoading() {\n      return this.model.announcements.lastSuccessful === null && this.model.announcements.isRunning;\n    }\n    get totalRecords() {\n      return this.model.announcements.lastSuccessful.value.meta?.totalRecords || 0;\n    }\n    get announcementsTableHeader() {\n      if (this.model.announcements.isRunning) return [];\n      return [{\n        value: 'Title',\n        colClass: ' text-left'\n      }, {\n        value: 'Valid from',\n        colClass: 'text-left'\n      }, {\n        value: 'Valid until',\n        colClass: 'text-left'\n      }, {\n        value: 'Is visible',\n        colClass: 'text-center align-middle'\n      }];\n    }\n    get announcements() {\n      return this.model.announcements.lastSuccessful.value?.toArray() || [];\n    }\n    get announcementsTableData() {\n      if (this.model.announcements.isRunning) return [];\n      const todaysDate = new Date();\n      return this.announcements.map(announcement => {\n        const isCurrentlyVisible = (!announcement.validFrom || new Date(announcement.validFrom) <= todaysDate) && (!announcement.validUntil || new Date(announcement.validUntil) >= todaysDate);\n        const announcementsData = [{\n          type: 'BUTTON',\n          textClass: 'btn btn-link',\n          value: announcement.title,\n          onClickButton: this.onClickAnnouncement,\n          extraData: {\n            announcement\n          }\n        }, {\n          colClass: 'text-left align-middle',\n          value: announcement.validFrom ? this.intl.formatDate(announcement.validFrom, {\n            year: 'numeric',\n            month: '2-digit',\n            day: '2-digit',\n            hour: '2-digit',\n            minute: '2-digit',\n            hour12: false,\n            locale: 'en-NZ'\n          }) : '&mdash;'\n        }, {\n          colClass: 'text-left align-middle',\n          value: announcement.validUntil ? this.intl.formatDate(announcement.validUntil, {\n            year: 'numeric',\n            month: '2-digit',\n            day: '2-digit',\n            hour: '2-digit',\n            minute: '2-digit',\n            hour12: false,\n            locale: 'en-NZ'\n          }) : '&mdash;'\n        }, {\n          colClass: 'text-center align-middle',\n          value: isCurrentlyVisible ? 'Yes' : 'No',\n          class: 'text-muted'\n        }];\n        return {\n          rowData: announcementsData\n        };\n      });\n    }\n    onChangePage(pageNumber) {\n      this.pageNumber = pageNumber;\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    createNewAnnouncement() {\n      this.router.transitionTo('admin.announcements.announcement', 'new');\n    }\n    onClickAnnouncement(_row, col) {\n      this.router.transitionTo('admin.announcements.announcement', col.extraData.announcement.id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"pageNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onChangePage\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePage\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"createNewAnnouncement\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"createNewAnnouncement\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickAnnouncement\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickAnnouncement\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/admin/billing-report\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"data\", _descriptor4, this);\n      _defineProperty(this, \"sites\", [{\n        label: 'Builda Price',\n        value: 'buildaPrice'\n      }, {\n        label: 'Step Up',\n        value: 'stepUp'\n      }]);\n      _defineProperty(this, \"validationMap\", {\n        startDate: this.validator.bind(this),\n        endDate: this.validator.bind(this)\n      });\n      _defineProperty(this, \"generateReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          yield changeset.validate();\n          if (changeset.isInvalid) return;\n          try {\n            changeset.execute();\n            yield this.buildaPrice.generateAdminBillingReport({\n              startDate: changeset.startDate,\n              endDate: changeset.endDate,\n              siteId: changeset.site\n            });\n            yield new Promise(resolve => setTimeout(resolve, 3000));\n            this.notifications.success({\n              message: 'Report being generated. Check your email soon.'\n            }, 5000);\n          } catch (err) {\n            this.notifications.error({\n              message: 'Failed to generate report.'\n            });\n          }\n        }\n      }), null, \"generateReport\", null));\n      this.data = {\n        site: 'buildaPrice',\n        startDate: undefined,\n        endDate: undefined\n      };\n    }\n    validator(key, newValue, oldValue, changes, content) {\n      if (key === 'startDate') {\n        const startDate = newValue || content.startDate;\n        if (!startDate) return 'Please provide a start date';\n        const endDate = changes.endDate || content.endDate;\n        if (!endDate) return true;\n        return (0, _moment.default)(newValue).isSameOrBefore(endDate) || 'Start date must be earlier than the end date';\n      }\n      if (key === 'endDate') {\n        const endDate = newValue || content.endDate;\n        if (!endDate) return 'Please provide an end date';\n        const startDate = changes.startDate || content.startDate;\n        if (!startDate) return true;\n        return (0, _moment.default)(newValue).isSameOrAfter(startDate) || 'End date must be after the start date';\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"data\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class2);\n});","define(\"portal/controllers/admin/entities\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/admin/entities/entity\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"ember-changeset\", \"portal/utils/email-validator\", \"@ember/object\", \"portal/utils/platform\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _emberChangeset, _emailValidator, _object, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-changeset\",0,\"portal/utils/email-validator\",0,\"@ember/object\",0,\"portal/utils/platform\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const validateContent = ({\n    key,\n    newValue,\n    oldValue\n  }) => {\n    const value = newValue || oldValue;\n    switch (key) {\n      case 'firstName':\n        return value.length > 1 || 'Please provide a first name';\n      case 'lastName':\n        return value.length > 0 || 'Please provide a last name';\n      case 'email':\n        return (0, _emailValidator.default)(value) || 'Please provide a valid email';\n      case 'phoneNumber':\n        return true;\n      default:\n        break;\n    }\n  };\n  const userValidationMap = {\n    firstName: validateContent,\n    lastName: validateContent,\n    email: validateContent,\n    phoneNumber: validateContent\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"openInviteUserModal\", _descriptor6, this);\n      _initializerDefineProperty(this, \"userChangeSet\", _descriptor7, this);\n      _defineProperty(this, \"regions\", [{\n        value: 'AUS',\n        label: 'AUS'\n      }, {\n        value: 'GBR',\n        label: 'GBR'\n      }, {\n        value: 'NZL',\n        label: 'NZL'\n      }, {\n        value: 'USA',\n        label: 'USA'\n      }]);\n      _defineProperty(this, \"allFeatures\", ['canUseBills', 'canUseBudgetReport', 'canUseBuildaPrice', 'canUseCarters', 'canUseChargeupReport', 'canUseClientPortal', 'canUseClientReport', 'canUseCostReport', 'canUseCrystalPayroll', 'canUseCsvTaskFileUploader', 'canUseDashboards', 'canUseEstimates', 'canUseFileStorage', 'canUseFinancialReporting', 'canUseForecastReport', 'canUseGeofencing', 'canUseHealthAndSafety', 'canUseInvoicing', 'canUseInvoicingReport', 'canUseIPS', 'canUseKeypay', 'canUseLabourHoursReport', 'canUseNotes', 'canUsePlaceMakers', 'canUsePositionReport', 'canUseProducts', 'canUseProfitMarginsReport', 'canUseProjectFinancials', 'canUseProjectProgress', 'canUsePurchaseOrders', 'canUseQuoteReport', 'canUseScheduling', 'canUseSmartPayroll', 'canUseStagePayments', 'canUseStatements', 'canUseSupport', 'canUseTimesheets', 'canUseWIPReport']);\n      _initializerDefineProperty(this, \"_showBuildaPriceFeatures\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_showFinancialPortalFeatures\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_showGeneralFeatures\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_showProjectFeatures\", _descriptor1, this);\n      _initializerDefineProperty(this, \"_showReportFeatures\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_showAllocationsFeatures\", _descriptor11, this);\n      _initializerDefineProperty(this, \"_showSchedulingFeatures\", _descriptor12, this);\n      _defineProperty(this, \"initChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.userChangeSet = (0, _emberChangeset.Changeset)({\n            firstName: '',\n            lastName: '',\n            email: '',\n            phoneNumber: ''\n          }, validateContent, userValidationMap);\n        }\n      }), null, \"initChangeset\", null));\n      _defineProperty(this, \"inviteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          yield changeset.validate();\n          if (changeset.isInvalid) return;\n          try {\n            const {\n              newUserId\n            } = yield this.buildaPrice.inviteUser({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              phoneNumber: changeset.phoneNumber,\n              entity: this.model.entity.last.value.id\n            }, this.featuresChangeset.canUseBuildaPrice, this.featuresChangeset.canUseFinancialReporting);\n            // make the user company admin\n            const [user, manageAttribute] = yield Promise.all([this.store.findRecord('user', newUserId), this.store.findRecord('user-attribute', 'canManageEntity')]);\n            yield this.store.createRecord('user-entity-attribute', {\n              entity: this.model.entity.last.value,\n              user,\n              attribute: manageAttribute\n            }).save();\n            this.openInviteUserModal = false;\n            this.notifications.success('Successfully invited user');\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong while inviting user',\n              error\n            });\n          }\n        }\n      }), null, \"inviteUser\", null));\n      _defineProperty(this, \"saveFeatures\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeSet) {\n          changeSet.execute();\n          try {\n            yield this.buildaPrice.updateCompanyFeatures(this.model.entity.last.value.id, changeSet.data);\n            this.notifications.success('Successfully saved features');\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong while updating features',\n              error\n            });\n          }\n        }\n      }), null, \"saveFeatures\", null));\n      _defineProperty(this, \"saveEntity\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          yield changeset.validate();\n          if (changeset.isInvalid) return;\n          try {\n            changeset.execute();\n            const isNew = this.entity.isNew;\n            const entity = yield changeset.save();\n            if (isNew) {\n              this.router.transitionTo('admin.entities.entity', entity.id);\n            }\n            this.notifications.success('Details saved successfully');\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong saving the entity',\n              error\n            });\n          }\n        }\n      }), null, \"saveEntity\", null));\n    }\n    get brands() {\n      const brands = [];\n      for (const brand of Object.values(_platform.BRANDING)) if (brand.entityBrandEnum) brands.push({\n        value: brand.entityBrandEnum,\n        label: brand.brand\n      });\n      return brands;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: 'admin.entities',\n        pageTitle: 'Entities'\n      }, {\n        route: this.model.basePath,\n        pageTitle: this.entity.isNew ? 'New Entity' : this.model.entity.last.value.name\n      }];\n      return paths;\n    }\n    get isLoading() {\n      return this.model.entity.isRunning || this.model.entityChangeset.isRunning || this.model.entities.isRunning || this.model.featuresChangeset.isRunning;\n    }\n    get entity() {\n      return this.model.entity.last.value;\n    }\n    get buildaPricePermissionsCount() {\n      let count = this.generalFeaturesCount + this.schedulingFeaturesCount + this.allocationsFeaturesCount + this.projectsFeaturesCount + this.reportsFeaturesCount;\n      if (this.featuresChangeset.canUseBuildaPrice) count = count + 1;\n      return count;\n    }\n    get FinancialPortalPermissionsCount() {\n      let count = 0;\n      if (this.featuresChangeset.canUseFinancialReporting) count = count + 1;\n      return count;\n    }\n    get showBuildaPriceFeatures() {\n      if (this._showBuildaPriceFeatures != null) return this._showBuildaPriceFeatures;\n      return this.featuresChangeset.canUseBuildaPrice;\n    }\n    set showBuildaPriceFeatures(value) {\n      this._showBuildaPriceFeatures = value;\n    }\n    get showFinancialPortalFeatures() {\n      if (this._showFinancialPortalFeatures != null) return this._showFinancialPortalFeatures;\n      return this.featuresChangeset.canUseFinancialReporting;\n    }\n    set showFinancialPortalFeatures(value) {\n      this._showFinancialPortalFeatures = value;\n    }\n    get featuresChangeset() {\n      return this.model.featuresChangeset.last.value;\n    }\n    get noFeatures() {\n      return !this.generalFeaturesCount && !this.schedulingFeaturesCount && !this.allocationsFeaturesCount && !this.projectsFeaturesCount && !this.reportsFeaturesCount && !this.featuresChangeset.canUseFinancialReporting && !this.featuresChangeset.canUseBuildaPrice;\n    }\n    clearAllFeatures() {\n      const changeSetData = this.featuresChangeset.get('pendingData');\n      Object.keys(changeSetData).forEach(key => {\n        this.featuresChangeset.set(key, false);\n      });\n    }\n    setAllFeatures() {\n      const changeSetData = this.featuresChangeset.get('pendingData');\n      Object.keys(changeSetData).forEach(key => {\n        if (this.allFeatures.includes(key)) {\n          this.featuresChangeset.set(key, true);\n        } else {\n          this.featuresChangeset.set(key, false);\n        }\n      });\n    }\n    get hasAllFeatures() {\n      const changeSetData = this.featuresChangeset.get('pendingData');\n      return Object.entries(changeSetData).every(([key, value]) => this.allFeatures.includes(key) && value || !this.allFeatures.includes(key) && !value);\n    }\n    get generalFeaturesCount() {\n      return [this.featuresChangeset.canUseDashboards, this.featuresChangeset.canUseFileStorage, this.featuresChangeset.canUseHealthAndSafety, this.featuresChangeset.canUseClientPortal, this.featuresChangeset.canUseIPS, this.featuresChangeset.canUsePlaceMakers, this.featuresChangeset.canUseCarters, this.featuresChangeset.canUseSupport, this.featuresChangeset.canUseGeofencing].filter(attribute => attribute).length;\n    }\n    get showGeneralFeatures() {\n      if (this._showGeneralFeatures != null) return this._showGeneralFeatures;\n      return this.generalFeaturesCount > 0;\n    }\n    set showGeneralFeatures(value) {\n      this._showGeneralFeatures = value;\n    }\n    get projectsFeaturesCount() {\n      return [this.featuresChangeset.canUseProjectFinancials, this.featuresChangeset.canUseProjectProgress, this.featuresChangeset.canUseCsvTaskFileUploader, this.featuresChangeset.canUseProducts, this.featuresChangeset.canUseEstimates, this.featuresChangeset.canUseStagePayments].filter(attribute => attribute).length;\n    }\n    get showProjectFeatures() {\n      if (this._showProjectFeatures != null) return this._showProjectFeatures;\n      return this.projectsFeaturesCount > 0;\n    }\n    set showProjectFeatures(value) {\n      this._showProjectFeatures = value;\n    }\n    get reportsFeaturesCount() {\n      return [this.featuresChangeset.canUseWIPReport, this.featuresChangeset.canUseForecastReport, this.featuresChangeset.canUseProfitMarginsReport, this.featuresChangeset.canUseLabourHoursReport, this.featuresChangeset.canUseBudgetReport, this.featuresChangeset.canUseQuoteReport, this.featuresChangeset.canUseCostReport, this.featuresChangeset.canUseChargeupReport, this.featuresChangeset.canUsePositionReport, this.featuresChangeset.canUseInvoicingReport, this.featuresChangeset.canUseClientReport].filter(attribute => attribute).length;\n    }\n    get showReportFeatures() {\n      if (this._showReportFeatures != null) return this._showReportFeatures;\n      return this.reportsFeaturesCount > 0;\n    }\n    set showReportFeatures(value) {\n      this._showReportFeatures = value;\n    }\n    get allocationsFeaturesCount() {\n      return [this.featuresChangeset.canUseTimesheets, this.featuresChangeset.canUseCrystalPayroll, this.featuresChangeset.canUseSmartPayroll, this.featuresChangeset.canUseKeypay, this.featuresChangeset.canUseNotes, this.featuresChangeset.canUseBills, this.featuresChangeset.canUseStatements, this.featuresChangeset.canUsePurchaseOrders, this.featuresChangeset.canUseInvoicing].filter(attribute => attribute).length;\n    }\n    get showAllocationFeatures() {\n      if (this._showAllocationsFeatures != null) return this._showAllocationsFeatures;\n      return this.allocationsFeaturesCount > 0;\n    }\n    set showAllocationFeatures(value) {\n      this._showAllocationsFeatures = value;\n    }\n    get schedulingFeaturesCount() {\n      return [this.featuresChangeset.canUseScheduling].filter(attribute => attribute).length;\n    }\n    get showSchedulingFeatures() {\n      if (this._showSchedulingFeatures != null) return this._showSchedulingFeatures;\n      return this.schedulingFeaturesCount > 0;\n    }\n    set showSchedulingFeatures(value) {\n      this._showSchedulingFeatures = value;\n    }\n    get parentEntityOptions() {\n      return this.model.entities.last.value.filter(e => e !== this.model.entity.last.value);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"openInviteUserModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"userChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_showBuildaPriceFeatures\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_showFinancialPortalFeatures\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"clearAllFeatures\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"clearAllFeatures\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setAllFeatures\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setAllFeatures\"), _class2.prototype), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_showGeneralFeatures\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_showProjectFeatures\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"_showReportFeatures\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"_showAllocationsFeatures\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"_showSchedulingFeatures\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/admin/entities/index\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _tracking, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor2, this);\n      _defineProperty(this, \"pageSizes\", [30, 50, 100]);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor3, this);\n      _initializerDefineProperty(this, \"pageIndex\", _descriptor4, this);\n    }\n    goNewEntity() {\n      this.router.transitionTo('admin.entities.entity', 'new');\n    }\n    get isLoading() {\n      return this.model.entities.isRunning;\n    }\n    get entityTableHeader() {\n      if (this.model.entities.isRunning) return [];\n      const entityHeader = [{\n        value: 'Name',\n        colClass: ' text-left'\n      }, {\n        value: 'Parent company name',\n        colClass: ' text-left'\n      }, {\n        value: 'Region',\n        colClass: 'text-left'\n      }, {\n        value: 'Subscription plan',\n        colClass: 'text-left'\n      }, {\n        value: 'Brand',\n        colClass: 'text-left'\n      }];\n      return entityHeader;\n    }\n    get entityTableData() {\n      if (this.model.entities.isRunning) return [];\n      return this.paginationData.map(entity => {\n        const entityData = [{\n          type: 'BUTTON',\n          textClass: 'btn btn-link',\n          value: entity.name,\n          onClickButton: this.onClickEntityName,\n          extraData: {\n            entity\n          }\n        }, {\n          colClass: 'text-left align-middle',\n          value: entity?.belongsTo('parent')?.value()?.name ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: entity?.region ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: entity?.cbPlanId ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: entity?.brand ?? ' — '\n        }];\n        return {\n          rowData: entityData\n        };\n      });\n    }\n    onChangePageIndex(pageIndex) {\n      this.pageIndex = pageIndex;\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    get totalRecords() {\n      if (this.model.entities.isRunning) return 0;\n      return this.filteredEntities.length;\n    }\n    get entities() {\n      return this.model.entities.last.value || [];\n    }\n    get filteredEntities() {\n      const searchString = this.searchString;\n      const allEntities = this.entities;\n      if (!searchString.length) return allEntities;\n      const searchExp = new RegExp(this.searchString, 'i');\n      return allEntities.filter(entity => `${entity.name || ''}${entity.region || ''}\n        ${entity.cbPlanId || ''}${entity.brand || ''}\n        ${entity.belongsTo('parent')?.value()?.name || ''}`.match(searchExp));\n    }\n    get paginationData() {\n      const offset = Math.max(0, (this.pageIndex - 1) * this.pageSize);\n      const limit = offset + this.pageSize;\n      const paginationData = this.filteredEntities.slice(offset, limit);\n      return paginationData;\n    }\n    onClickEntityName(_row, col) {\n      this.router.transitionTo('admin.entities.entity', col.extraData.entity.id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.pageSizes[0];\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"pageIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 1;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"goNewEntity\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"goNewEntity\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickEntityName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickEntityName\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/admin/licensees/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"ember-changeset\", \"portal/utils/email-validator\", \"portal/config/environment\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _emberChangeset, _emailValidator, _environment, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"portal/utils/email-validator\",0,\"portal/config/environment\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const validateContent = ({\n    key,\n    newValue,\n    oldValue\n  }) => {\n    const value = newValue || oldValue;\n    switch (key) {\n      case 'firstName':\n        return value.length > 1 || 'Please provide a first name';\n      case 'licenseeName':\n        return value.length > 3 || 'Please provide a licensee name';\n      case 'lastName':\n        return value.length > 0 || 'Please provide a last name';\n      case 'email':\n        return (0, _emailValidator.default)(value) || 'Please provide a valid email';\n      default:\n        break;\n    }\n  };\n  const licenseeValidationMap = {\n    firstName: validateContent,\n    lastName: validateContent,\n    email: validateContent,\n    licenseeName: validateContent\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"session\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"showCreateLicenseeModal\", _descriptor5, this);\n      _initializerDefineProperty(this, \"licenseeChangeset\", _descriptor6, this);\n      _initializerDefineProperty(this, \"userList\", _descriptor7, this);\n      _initializerDefineProperty(this, \"usersCurrentPage\", _descriptor8, this);\n      _initializerDefineProperty(this, \"hasNextUsersPage\", _descriptor9, this);\n      _initializerDefineProperty(this, \"userFilter\", _descriptor0, this);\n      _defineProperty(this, \"recordPageSize\", 10);\n      _defineProperty(this, \"debounceTime\", _environment.default.debounceTimeMs);\n      _defineProperty(this, \"initChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.licenseeChangeset = (0, _emberChangeset.Changeset)({\n            licenseeName: '',\n            firstName: '',\n            lastName: '',\n            email: '',\n            customers: ''\n          }, validateContent, licenseeValidationMap);\n\n          // Reset combo-box user search state\n          this.userList = [];\n          this.usersCurrentPage = 0;\n          this.hasNextUsersPage = false;\n        }\n      }), null, \"initChangeset\", null));\n      _defineProperty(this, \"createNewLicensee\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          const partnerFinancialPortalEntityId = '5f88bd41bcf03b06f0878ddd';\n          try {\n            yield changeset.validate();\n            if (!changeset.isValid) return;\n            yield changeset.execute();\n            const body = {\n              user: {\n                email: changeset.email,\n                firstName: changeset.firstName,\n                lastName: changeset.lastName\n              },\n              // the admin user pojo for the new partner entity\n              parentId: partnerFinancialPortalEntityId,\n              // the parent id for the new partner entity\n              partnerName: changeset.licenseeName,\n              // the name of the new partner entity\n              customerIds: (changeset?.customers || []).map(({\n                id\n              }) => id),\n              // the entity ids of each customer\n              callback: _environment.default.urls.app + '/reset-password',\n              // the callback url for the reset password route\n              appURL: _environment.default.urls.app // the base app url\n            };\n            const {\n              partnerId\n            } = yield registerPartnerAjax(body, this.session.data.authenticated.access_token);\n            this.notifications.success('Successfully created new Licensee.');\n            this.router.transitionTo('admin.licensees.licensee', partnerId);\n            this.showCreateLicenseeModal = false;\n            this.licenseeChangeset = null;\n          } catch (error) {\n            this.notifications.error('Something went wrong while creating licensee', error);\n          }\n        }\n      }), null, \"createNewLicensee\", null));\n      _defineProperty(this, \"fetchUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const isFirstPageFetch = this.usersCurrentPage === 0;\n          try {\n            const users = yield this.store.query('user', {\n              filter: this.userFilter,\n              page: {\n                size: this.recordPageSize,\n                number: this.usersCurrentPage + 1\n              },\n              orderBy: 'firstName,lastName'\n            });\n            const current = users?.meta?.currentPage ?? 1;\n            const total = users?.meta?.totalPages ?? 1;\n            const payload = users?.toArray ? users.toArray() : users?.data || [];\n            this.usersCurrentPage = current;\n            this.hasNextUsersPage = current < total;\n            if (isFirstPageFetch) {\n              this.userList = payload;\n            } else {\n              this.userList = [...this.userList, ...payload];\n            }\n          } catch (error) {\n            this.usersCurrentPage = 0;\n            this.hasNextUsersPage = false;\n            this.userList = [];\n            this.notifications.error('Something went wrong loading more users', error);\n          }\n        }\n      }), null, \"fetchUsers\", null));\n      _defineProperty(this, \"onSearchUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          // Reset paging and list on a new search term\n          this.usersCurrentPage = 0;\n          this.userList = [];\n          if (searchTerm.length) {\n            this.userFilter.or = [{\n              field: 'firstName',\n              op: 'ILIKE',\n              value: searchTerm\n            }, {\n              field: 'lastName',\n              op: 'ILIKE',\n              value: searchTerm\n            }, {\n              field: 'email',\n              op: 'ILIKE',\n              value: searchTerm\n            }];\n          } else {\n            this.userFilter.or = [];\n          }\n          yield this.fetchUsers.perform();\n        }\n      }), null, \"onSearchUser\", null));\n    }\n    get isLoading() {\n      return this.model.entities.lastSuccessful === null && this.model.entities.isRunning;\n    }\n    get entities() {\n      return this.model.entities.lastSuccessful?.value || [];\n    }\n    get unclaimedEntities() {\n      const entities = this.entities;\n      return entities.filter(item => !item.belongsTo('partner').id() && !entityIsPartner(item) && !entityIsClaimed(item));\n    }\n    get tableHeader() {\n      return [{\n        value: 'Licensee',\n        colClass: ' text-left'\n      }, {\n        value: 'Customers',\n        colClass: 'text-left'\n      }];\n    }\n    get tableData() {\n      const licensees = [];\n      const customerNamesByLicensee = new Map();\n      for (const e of this.entities) {\n        const pid = e.belongsTo('partner').id();\n        if (pid) {\n          if (!customerNamesByLicensee.has(pid)) customerNamesByLicensee.set(pid, []);\n          customerNamesByLicensee.get(pid).push(e.name);\n        } else if (entityIsPartner(e)) {\n          licensees.push(e);\n          if (!customerNamesByLicensee.has(e.id)) customerNamesByLicensee.set(e.id, []);\n        }\n      }\n      licensees.sort((a, b) => a.name.localeCompare(b.name));\n      return licensees.map(licensee => {\n        const customersList = (customerNamesByLicensee.get(licensee.id) || []).join(', ');\n        const licenseeData = [{\n          type: 'BUTTON',\n          textClass: 'btn btn-link text-nowrap',\n          value: licensee.name,\n          onClickButton: this.onClickLicenseeName,\n          extraData: {\n            licensee\n          }\n        }, {\n          colClass: 'text-left align-middle',\n          value: customersList.length ? customersList : '&mdash;'\n        }];\n        return {\n          rowData: licenseeData\n        };\n      });\n    }\n    onClickLicenseeName(_row, col) {\n      this.router.transitionTo('admin.licensees.licensee', col.extraData.licensee.id);\n    }\n    setUser(user) {\n      this.licenseeChangeset.set('email', user.email || '');\n      this.licenseeChangeset.set('email', user.firstName || '');\n      this.licenseeChangeset.set('email', user.lastName || '');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"showCreateLicenseeModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"licenseeChangeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"userList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"usersCurrentPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"hasNextUsersPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"userFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {\n        and: [{\n          field: 'role',\n          op: 'NE',\n          value: 'admin'\n        }]\n      };\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onClickLicenseeName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickLicenseeName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setUser\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setUser\"), _class2.prototype), _class2);\n  function entityIsPartner(entity) {\n    return entity.includesClaims('canUsePartner');\n  }\n  function entityIsClaimed(entity) {\n    return Boolean(entity.belongsTo('partner').value());\n  }\n  async function registerPartnerAjax(payload, token) {\n    const url = `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/partner-registrations`;\n    const response = await fetch(url, {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json',\n        Authorization: `Bearer ${token}`\n      },\n      body: JSON.stringify(payload)\n    });\n    if (!response.ok) {\n      return response.json().then(err => {\n        throw err;\n      });\n    }\n    return response.json();\n  }\n});","define(\"portal/controllers/admin/licensees/licensee\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"portal/utils/email-validator\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _service, _object, _emberChangeset, _emailValidator, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"portal/utils/email-validator\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const validateContent = ({\n    key,\n    newValue,\n    oldValue\n  }) => {\n    const value = newValue || oldValue;\n    switch (key) {\n      case 'firstName':\n        return value.length > 1 || 'Please provide a first name';\n      case 'lastName':\n        return value.length > 0 || 'Please provide a last name';\n      case 'email':\n        return (0, _emailValidator.default)(value) || 'Please provide a valid email';\n      default:\n        break;\n    }\n  };\n  const licenseeValidationMap = {\n    firstName: validateContent,\n    lastName: validateContent,\n    email: validateContent\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"showAddNewCustomerModal\", _descriptor5, this);\n      _initializerDefineProperty(this, \"newCustomersToAdd\", _descriptor6, this);\n      _initializerDefineProperty(this, \"showAddNewLicenseeModal\", _descriptor7, this);\n      _initializerDefineProperty(this, \"licenseeChangeset\", _descriptor8, this);\n      _initializerDefineProperty(this, \"selectedUser\", _descriptor9, this);\n      _initializerDefineProperty(this, \"userList\", _descriptor0, this);\n      _initializerDefineProperty(this, \"usersCurrentPage\", _descriptor1, this);\n      _initializerDefineProperty(this, \"hasNextUsersPage\", _descriptor10, this);\n      _initializerDefineProperty(this, \"userFilter\", _descriptor11, this);\n      _defineProperty(this, \"recordPageSize\", 10);\n      _defineProperty(this, \"debounceTime\", _environment.default.debounceTimeMs);\n      _defineProperty(this, \"initChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.licenseeChangeset = (0, _emberChangeset.Changeset)({\n            licenseeName: '',\n            firstName: '',\n            lastName: '',\n            email: '',\n            customers: ''\n          }, validateContent, licenseeValidationMap);\n        }\n      }), null, \"initChangeset\", null));\n      _defineProperty(this, \"addNewCustomerToLicensee\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield Promise.all(this.newCustomersToAdd.map(item => {\n              item.partner = this.model.licensee.lastSuccessful.value;\n              return item.save();\n            }));\n            yield this.model.entities.perform();\n            this.showAddNewCustomerModal = false;\n            this.newCustomersToAdd = null;\n            this.notifications.success('Successfully associated new customer/s.');\n          } catch (error) {\n            this.notifications.error('Something went wrong while associating customers', error);\n          }\n        }\n      }), null, \"addNewCustomerToLicensee\", null));\n      _defineProperty(this, \"fetchUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const isFirstPageFetch = this.usersCurrentPage === 0;\n          try {\n            const users = yield this.store.query('user', {\n              filter: this.userFilter,\n              page: {\n                size: this.recordPageSize,\n                number: this.usersCurrentPage + 1\n              },\n              orderBy: 'firstName,lastName'\n            });\n            const current = users?.meta?.currentPage ?? 1;\n            const total = users?.meta?.totalPages ?? 1;\n            const payload = users?.toArray ? users.toArray() : users?.data || [];\n            this.usersCurrentPage = current;\n            this.hasNextUsersPage = current < total;\n            if (isFirstPageFetch) {\n              this.userList = payload;\n            } else {\n              this.userList = [...this.userList, ...payload];\n            }\n          } catch (error) {\n            this.usersCurrentPage = 0;\n            this.hasNextUsersPage = false;\n            this.userList = [];\n            this.notifications.error('Something went wrong loading users', error);\n          }\n        }\n      }), null, \"fetchUsers\", null));\n      _defineProperty(this, \"onSearchUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          // Reset paging and list on a new search term\n          this.usersCurrentPage = 0;\n          this.userList = [];\n          if (searchTerm.length) {\n            this.userFilter.or = [{\n              field: 'firstName',\n              op: 'ILIKE',\n              value: searchTerm\n            }, {\n              field: 'lastName',\n              op: 'ILIKE',\n              value: searchTerm\n            }, {\n              field: 'email',\n              op: 'ILIKE',\n              value: searchTerm\n            }];\n          } else {\n            this.userFilter.or = [];\n          }\n          yield this.fetchUsers.perform();\n        }\n      }), null, \"onSearchUser\", null));\n      _defineProperty(this, \"addNewLicenseeUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.licenseeChangeset.validate();\n            if (!this.licenseeChangeset.isValid) return;\n            yield this.licenseeChangeset.execute();\n            const {\n              email,\n              firstName,\n              lastName\n            } = this.licenseeChangeset;\n            const activeUser = this.selectedUser ? this.selectedUser : yield this.store.createRecord('user', {\n              email,\n              firstName,\n              lastName,\n              role: 'partner'\n            }).save();\n            const attribute = yield this.store.findRecord('user-attribute', 'canManageEntity');\n            yield this.store.createRecord('user-entity-attribute', {\n              entity: this.model.licensee.lastSuccessful.value,\n              user: activeUser,\n              attribute\n            }).save();\n            activeUser.role = 'partner';\n            yield activeUser.save();\n            if (!this.selectedUser) {\n              const accessToken = this.session.data.authenticated.access_token;\n              yield sendPartnerInviteAjax({\n                firstName,\n                lastName,\n                email,\n                entity: this.model.licensee.lastSuccessful.value.id\n              }, accessToken);\n            }\n            this.notifications.success('Successfully added a new user');\n            yield this.model.users.perform(this.model.licensee.lastSuccessful.value.id);\n            this.showAddNewLicenseeModal = false;\n            this.licenseeChangeset = null;\n            this.selectedUser = null;\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong while adding the user',\n              error\n            });\n          }\n        }\n      }), null, \"addNewLicenseeUser\", null));\n    }\n    get isLoading() {\n      return this.model.licensee.lastSuccessful === null && this.model.licensee.isRunning || this.model.entities.lastSuccessful === null && this.model.entities.isRunning || this.model.users.lastSuccessful === null && this.model.users.isRunning;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: 'admin.licensees',\n        pageTitle: 'Licensees'\n      }, {\n        route: this.model.basePath,\n        pageTitle: this.model.licensee.lastSuccessful.value.name\n      }];\n      return paths;\n    }\n    get tableHeader() {\n      return [{\n        value: 'Company name',\n        colClass: 'text-left col-11'\n      }, {\n        value: '',\n        colClass: 'col-1'\n      }];\n    }\n    get tableData() {\n      const currentLicenseeCustomers = this.model.entities.lastSuccessful.value.filter(item => item.belongsTo('partner').id() === this.model.licensee.lastSuccessful.value.id);\n      return currentLicenseeCustomers.map(entity => {\n        const licenseeData = [{\n          colClass: 'text-left align-middle text-nowrap col-11',\n          value: entity.name\n        }, {\n          type: 'BUTTON',\n          textClass: 'btn btn-link text-danger text-nowrap text-decoration-underline',\n          value: 'Remove',\n          onClickButton: this.removeCustomerFromLicensee,\n          extraData: {\n            entity\n          }\n        }];\n        return {\n          rowData: licenseeData\n        };\n      });\n    }\n    get usersTableHeader() {\n      return [{\n        value: 'Email',\n        colClass: 'text-left col-11'\n      }, {\n        value: '',\n        colClass: 'col-1'\n      }];\n    }\n    get usersTableData() {\n      return this.model.users.lastSuccessful.value.map(user => {\n        const userData = [{\n          colClass: 'text-left align-middle text-nowrap col-11',\n          value: user.email\n        }, {\n          type: 'BUTTON',\n          textClass: 'btn btn-link text-danger text-nowrap text-decoration-underline',\n          value: 'Remove',\n          onClickButton: this.removeLicenseeUser,\n          extraData: {\n            user\n          }\n        }];\n        return {\n          rowData: userData\n        };\n      });\n    }\n    get unclaimedEntities() {\n      const entities = this.model.entities.lastSuccessful.value;\n      return entities.filter(item => !item.belongsTo('partner').id() && !entityIsPartner(item) && !entityIsClaimed(item));\n    }\n    async removeCustomerFromLicensee(_row, col) {\n      try {\n        const entity = col.extraData.entity;\n        entity.partner = null;\n        await entity.save();\n        await this.model.entities.perform();\n        this.notifications.success('Successfully removed customer.');\n      } catch (error) {\n        this.notifications.error('Something went wrong while removing customer', error);\n      }\n    }\n    setUser(user) {\n      this.licenseeChangeset.set('email', user.email || '');\n      this.licenseeChangeset.set('firstName', user.firstName || '');\n      this.licenseeChangeset.set('lastName', user.lastName || '');\n      this.selectedUser = user;\n    }\n    async removeLicenseeUser(_row, col) {\n      try {\n        const parterEntityAttribute = await this.store.query('user-entity-attribute', {\n          filter: {\n            and: [{\n              field: 'user',\n              op: 'EQ',\n              value: col.extraData.user.id\n            }, {\n              field: 'attribute',\n              op: 'EQ',\n              value: 'canManageEntity'\n            }, {\n              field: 'entity',\n              op: 'EQ',\n              value: this.model.licensee.lastSuccessful.value.id\n            }]\n          }\n        });\n        if (parterEntityAttribute.length) await parterEntityAttribute.toArray()[0].destroyRecord();\n        this.notifications.success('User removed successfully');\n        await this.model.users.perform(this.model.licensee.lastSuccessful.value.id);\n      } catch (error) {\n        this.notifications.error({\n          message: 'Something went wrong while removing the user',\n          error\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"showAddNewCustomerModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"newCustomersToAdd\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"showAddNewLicenseeModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"licenseeChangeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"selectedUser\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"userList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"usersCurrentPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"hasNextUsersPage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"userFilter\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {\n        and: [{\n          field: 'role',\n          op: 'NE',\n          value: 'admin'\n        }]\n      };\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeCustomerFromLicensee\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeCustomerFromLicensee\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setUser\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setUser\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeLicenseeUser\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeLicenseeUser\"), _class2.prototype), _class2);\n  function entityIsPartner(entity) {\n    return entity.includesClaims('canUsePartner');\n  }\n  function entityIsClaimed(entity) {\n    return Boolean(entity.belongsTo('partner').value());\n  }\n  async function sendPartnerInviteAjax(payload, token) {\n    const url = `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/invite-user/partner`;\n    const response = await fetch(url, {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json',\n        Authorization: `Bearer ${token}`\n      },\n      body: JSON.stringify({\n        ...payload,\n        callback: `${_environment.default.urls.app}/reset-password`,\n        appURL: _environment.default.urls.app\n      })\n    });\n    if (!response.ok) {\n      return response.json().then(err => {\n        throw err;\n      });\n    }\n    return response.json();\n  }\n});","define(\"portal/controllers/application\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let ApplicationController = _exports.default = (_class = class ApplicationController extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"chargebee\", _descriptor3, this);\n      _initializerDefineProperty(this, \"invoicedCosts\", _descriptor4, this);\n    }\n    init() {\n      super.init(...arguments);\n      window.addEventListener('message', this.notifications.handleWindowMessage, false);\n    }\n    willDestroyElement() {\n      window.removeEventListener('message', this.notifications.handleWindowMessage, false);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"chargebee\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"invoicedCosts\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/controllers/complete-registration-cb\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"jquery\", \"portal/config/environment\", \"portal/utils/email-validator\"], function (_exports, _asyncArrowRuntime, _controller, _service, _object, _tracking, _jquery, _environment, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"jquery\",0,\"portal/config/environment\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const APP_ADDRESS = _environment.default.urls.app;\n  const SERVER_REGISTRATION_ENDPOINT = `${_environment.default.urls.api}${_environment.default.urls.apiV2Path}/chargebee/complete-registration-cb`;\n  const SERVER_RESEND_EMAIL = `${_environment.default.urls.api}${_environment.default.urls.apiV2Path}/chargebee/resend-email-registration-cb`;\n  const SERVER_CHANGE_EMAIL = `${_environment.default.urls.api}${_environment.default.urls.apiV2Path}/chargebee/change-email-registration-cb`;\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"platform\", _descriptor2, this);\n      _initializerDefineProperty(this, \"confirmEmailCode\", _descriptor3, this);\n      _initializerDefineProperty(this, \"password\", _descriptor4, this);\n      _initializerDefineProperty(this, \"passwordCheck\", _descriptor5, this);\n      _initializerDefineProperty(this, \"showValidation\", _descriptor6, this);\n      _initializerDefineProperty(this, \"registrationError\", _descriptor7, this);\n      _initializerDefineProperty(this, \"registrationComplete\", _descriptor8, this);\n      _initializerDefineProperty(this, \"showChangeEmailModal\", _descriptor9, this);\n      _initializerDefineProperty(this, \"showNewEmailValidation\", _descriptor0, this);\n      _initializerDefineProperty(this, \"newEmail\", _descriptor1, this);\n      _defineProperty(this, \"resendEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const payload = {\n              appAddress: APP_ADDRESS,\n              token: this.token\n            };\n            yield new Promise((resolve, reject) => {\n              // eslint-disable-next-line ember/no-jquery\n              _jquery.default.ajax({\n                url: SERVER_RESEND_EMAIL,\n                method: 'POST',\n                contentType: 'application/json',\n                data: JSON.stringify(payload)\n              }).then(resolve, reject);\n            });\n            this.notifications.success('Success, please check your inbox in a few moments');\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: 'Something went wrong, please contact support.'\n            });\n          }\n        }\n      }), {\n        drop: true\n      }, \"resendEmail\", null));\n      _defineProperty(this, \"changeEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!this.newEmailIsValid) {\n              this.notifications.info('You must supply a valid address');\n              this.showNewEmailValidation = true;\n              return;\n            }\n            if (this.newEmail.toLowerCase() === this.model.registrationData.value.email.toLowerCase()) {\n              this.notifications.info('New address must be different to the existing address.');\n              return;\n            }\n            const payload = {\n              appAddress: APP_ADDRESS,\n              token: this.token,\n              email: this.newEmail\n            };\n            yield new Promise((resolve, reject) => {\n              // eslint-disable-next-line ember/no-jquery\n              _jquery.default.ajax({\n                url: SERVER_CHANGE_EMAIL,\n                method: 'POST',\n                contentType: 'application/json',\n                data: JSON.stringify(payload)\n              }).then(resolve, reject);\n            });\n            this.notifications.success('Success, please check your inbox in a few moments');\n            this.showChangeEmailModal = false;\n            this.newEmail = '';\n            this.send('refreshRegistrationData');\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: 'Something went wrong. Please contact support.'\n            });\n          }\n        }\n      }), {\n        drop: true\n      }, \"changeEmail\", null));\n      _defineProperty(this, \"sendPasswordReset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth/initiate-password-reset';\n          const callback = _environment.default.urls.app + '/reset-password';\n          const payload = {\n            callback,\n            email: this.model.registrationData.value.email.toLowerCase()\n          };\n          yield new Promise((resolve, reject) => {\n            // eslint-disable-next-line ember/no-jquery\n            _jquery.default.ajax({\n              contentType: 'application/json',\n              method: 'POST',\n              url,\n              data: JSON.stringify(payload)\n            }).then(resolve, reject);\n          });\n          return true;\n        }\n      }), {\n        drop: true\n      }, \"sendPasswordReset\", null));\n      _defineProperty(this, \"submit\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.anyInvalid) {\n            this.showValidation = true;\n            return;\n          }\n          const payload = {\n            token: this.token,\n            confirmEmailCode: this.confirmEmailCode,\n            email: this.model.registrationData.value.email,\n            password: this.password,\n            cbHostedPageId: this.cbHostedPageId\n          };\n          try {\n            yield new Promise((resolve, reject) => {\n              // eslint-disable-next-line ember/no-jquery\n              _jquery.default.ajax({\n                url: SERVER_REGISTRATION_ENDPOINT,\n                method: 'POST',\n                data: JSON.stringify(payload),\n                accepts: 'application/json',\n                contentType: 'application/json'\n              }).then(resolve, reject);\n            });\n            this.registrationComplete = true;\n          } catch (error) {\n            if (!error.responseJSON?.errors?.[0]) {\n              this.notifications.error({\n                message: 'Something went wrong!',\n                error,\n                customData: [`registrationToken: ${this.token}`]\n              });\n            } else if (error.responseJSON.errors[0].code === 'UNKNOWN_EMAIL_CODE') {\n              this.notifications.warning({\n                message: 'The email confirmation code was incorrect.',\n                customData: [`registrationToken: ${this.token}`]\n              });\n            } else {\n              this.notifications.error({\n                error,\n                customData: [`registrationToken: ${this.token}`]\n              });\n              this.registrationError = error.responseJSON.errors[0];\n            }\n          }\n        }\n      }), {\n        drop: true\n      }, \"submit\", null));\n    }\n    get newEmailIsValid() {\n      return (0, _emailValidator.default)(this.newEmail);\n    }\n    get anyInvalid() {\n      return this.passwordInvalid || this.passwordCheckInvalid;\n    }\n    get passwordCheckInvalid() {\n      return this.password !== this.passwordCheck;\n    }\n    get passwordInvalid() {\n      // registrationData is null when the route was hit without a token\n      const {\n        userExists\n      } = this.model.registrationData?.value ?? {};\n      if (userExists && !this.password) return false;\n      if (!this.password || this.password.length < 10) return true;\n      return false;\n    }\n    openEmailChangeModal() {\n      this.showChangeEmailModal = true;\n      this.showNewEmailValidation = false;\n      this.newEmail = '';\n    }\n    closeEmailChangeModal() {\n      this.showChangeEmailModal = false;\n      this.newEmail = '';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"platform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"confirmEmailCode\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"password\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"passwordCheck\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"showValidation\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"registrationError\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"registrationComplete\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"showChangeEmailModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"showNewEmailValidation\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"newEmail\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"openEmailChangeModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openEmailChangeModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeEmailChangeModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeEmailChangeModal\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity-loading\", [\"exports\", \"portal/controllers/entity\"], function (_exports, _entity) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _entity.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity\"eaimeta@70e063a35619d71f\n});","define(\"portal/controllers/entity\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"systemAnnouncements\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"systemAnnouncements\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n    }\n    get tabs() {\n      const tabs = [];\n      const canUseDashboard = this.newFeatureFlags.includesFeatureFlags('canUseDashboardReport');\n      if (canUseDashboard) tabs.push({\n        name: this.intl.t('common.Dashboard'),\n        route: 'entity.builda-price.dashboard',\n        icon: 'tachometer-alt',\n        model: this.sessionData.entity.id\n      });\n\n      // you can view the projects tab if you can manage projects\n      // or if you can view projects and manage estimates\n      // TODO this will need to be extended when we add non-management features\n      // to the project details pages (for example file storage)\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canUseProjects', 'canManageEstimates')) tabs.push({\n        name: this.intl.t('common.Projects'),\n        route: 'entity.builda-price.projects',\n        model: this.sessionData.entity.id,\n        icon: 'building'\n      });\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canUseScheduling')) tabs.push({\n        name: this.intl.t('common.Scheduling'),\n        route: 'entity.builda-price.scheduling',\n        model: this.sessionData.entity.id,\n        icon: 'calendar-alt'\n      });\n      const operationsTab = {\n        name: this.intl.t('common.Operations'),\n        route: 'entity.builda-price.operations',\n        sections: []\n      };\n      const canUseTimesheets = this.newFeatureFlags.includesFeatureFlags('canUseTimesheets');\n      const canUseBills = this.newFeatureFlags.includesFeatureFlags('canUseBills');\n      const canUseStatements = this.newFeatureFlags.includesFeatureFlags('canUseStatements');\n      const canUseLegacyBills = this.newFeatureFlags.includesFeatureFlags('canUseLegacyBills');\n      const canUsePayroll = this.newFeatureFlags.includesFeatureFlags('canUsePayroll');\n      const canUseReportBuilder = this.newFeatureFlags.includesFeatureFlags('canUseReportBuilder');\n      const canUsePurchaseOrders = this.newFeatureFlags.includesFeatureFlags('canUsePurchaseOrders');\n      const canUseInvoices = this.newFeatureFlags.includesFeatureFlags('canUseInvoices');\n      const canUseDocuments = this.newFeatureFlags.includesFeatureFlags('canUseDocumentsPage');\n      const canUseProducts = this.newFeatureFlags.includesFeatureFlags('canUseProducts');\n      const documentsSection = {\n        name: '',\n        routes: []\n      };\n      const incomingSection = {\n        name: this.intl.t('common.Incoming'),\n        routes: []\n      };\n      const outgoingSection = {\n        name: this.intl.t('common.Outgoing'),\n        routes: []\n      };\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canUseDocumentsPage', 'entityCanUseProducts')) {\n        if (canUseDocuments) documentsSection.routes.push({\n          name: this.intl.t('common.Documents'),\n          route: 'entity.builda-price.operations.documents',\n          icon: 'paperclip'\n        });\n        if (canUseProducts) documentsSection.routes.push({\n          name: this.intl.t('common.Products'),\n          route: 'entity.builda-price.operations.products',\n          icon: 'cubes'\n        });\n\n        // Sort the routes by name\n        documentsSection.routes = documentsSection.routes.sort((a, b) => a.name.localeCompare(b.name));\n        operationsTab.sections.push(documentsSection);\n      }\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canUseTimesheets', 'canUseBills', 'entityCanUseStatements')) {\n        if (canUseTimesheets) incomingSection.routes.push({\n          name: this.intl.t('common.Timesheets'),\n          route: 'entity.builda-price.operations.incoming.timesheets',\n          icon: 'clock'\n        });\n        if (canUseBills) {\n          incomingSection.routes.push({\n            name: this.intl.t('common.Bills'),\n            route: 'entity.builda-price.operations.incoming.bills',\n            icon: 'file-invoice-dollar'\n          });\n          if (canUseLegacyBills) incomingSection.routes.push({\n            name: this.intl.t('common.Bills'),\n            route: 'entity.builda-price.operations.incoming.bills-legacy',\n            icon: 'file-invoice-dollar',\n            sup: 'LEGACY'\n          });\n        }\n        if (canUseStatements) {\n          incomingSection.routes.push({\n            name: this.intl.t('common.Statements'),\n            route: 'entity.builda-price.operations.incoming.statements',\n            icon: 'file-lines'\n          });\n        }\n\n        // Sort the routes by name\n        incomingSection.routes = incomingSection.routes.sort((a, b) => a.name.localeCompare(b.name));\n        if (operationsTab.sections.length) incomingSection.topSeparator = true;\n        operationsTab.sections.push(incomingSection);\n      }\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canUsePayroll', 'canUseReportBuilder', 'canUsePurchaseOrders', 'canUseInvoices')) {\n        if (canUsePayroll) outgoingSection.routes.push({\n          name: this.intl.t('common.Payroll'),\n          route: 'entity.builda-price.operations.outgoing.payroll',\n          icon: 'money-bill'\n        });\n        if (canUsePurchaseOrders) outgoingSection.routes.push({\n          name: this.intl.t('common.Purchase orders'),\n          route: 'entity.builda-price.operations.outgoing.purchase-orders',\n          icon: 'shopping-cart'\n        });\n        if (canUseInvoices) outgoingSection.routes.push({\n          name: this.intl.t('common.Invoices'),\n          route: 'entity.builda-price.operations.outgoing.invoices',\n          icon: 'file-invoice-dollar'\n        });\n        if (canUseReportBuilder) outgoingSection.routes.push({\n          name: this.intl.t('common.Report builder'),\n          route: 'entity.builda-price.operations.outgoing.report-builder',\n          icon: 'file-invoice'\n        });\n\n        // Sort the routes by name\n        outgoingSection.routes = outgoingSection.routes.sort((a, b) => a.name.localeCompare(b.name));\n        if (operationsTab.sections.length) outgoingSection.topSeparator = true;\n        operationsTab.sections.push(outgoingSection);\n      }\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canUseDocumentsPage', 'canUseTimesheets', 'canUseBills', 'entityCanUseStatements', 'canUsePayroll', 'canUseReportBuilder', 'canUseNotes', 'canUseProducts', 'canUsePurchaseOrders', 'canUseInvoices')) tabs.push(operationsTab);\n      const canUsePositionReports = this.newFeatureFlags.includesFeatureFlags('canUseEntityPositionReport');\n      const canUseProfitMarginsReport = this.newFeatureFlags.includesFeatureFlags('canUseEntityProfitMarginReport');\n      const canUseLabourHourReports = this.newFeatureFlags.includesFeatureFlags('canUseEntityLabourHourReport');\n      const canUseForecastReports = this.newFeatureFlags.includesFeatureFlags('canUseEntityForecastReport');\n      const canUseWIPReport = this.newFeatureFlags.includesFeatureFlags('canUseEntityWIPReport');\n      const canUseReportProjectPage = this.newFeatureFlags.includesFeatureFlags('canUseReportProjectPage');\n      const reportsTab = {\n        name: this.intl.t('common.Reports'),\n        route: 'entity.builda-price.reports',\n        sections: []\n      };\n      if (canUseReportProjectPage) {\n        const projectReportsSections = {\n          name: this.intl.t('common.Project reports'),\n          routes: []\n        };\n        projectReportsSections.routes.push({\n          name: this.intl.t('common.Projects'),\n          route: 'entity.builda-price.reports.projects',\n          icon: 'building'\n        });\n        reportsTab.sections.push(projectReportsSections);\n      }\n      const companyReportsSections = {\n        name: this.intl.t('common.Company reports'),\n        routes: []\n      };\n      if (canUseWIPReport || canUsePositionReports || canUseLabourHourReports || canUseForecastReports || canUseProfitMarginsReport) {\n        if (canUsePositionReports) {\n          companyReportsSections.routes.push({\n            name: this.intl.t('common.Position'),\n            route: 'entity.builda-price.reports.company.position',\n            icon: 'tasks'\n          });\n        }\n        if (canUseLabourHourReports) {\n          companyReportsSections.routes.push({\n            name: this.intl.t('common.Labour hours'),\n            route: 'entity.builda-price.reports.company.labour-hours',\n            icon: 'user-clock'\n          });\n        }\n        if (canUseForecastReports) {\n          companyReportsSections.routes.push({\n            name: this.intl.t('shared.report.Forecast breakdown'),\n            route: 'entity.builda-price.reports.company.forecast-breakdown',\n            icon: 'chart-line'\n          });\n        }\n        if (canUseProfitMarginsReport) {\n          companyReportsSections.routes.push({\n            name: this.intl.t('entity.builda-price.Profit margin'),\n            route: 'entity.builda-price.reports.company.profit-margins',\n            icon: 'hand-holding-usd'\n          });\n        }\n        if (this.newFeatureFlags.includesFeatureFlags('canUseEntityInvoicingReport')) {\n          companyReportsSections.routes.push({\n            name: this.intl.t('common.Invoicing'),\n            route: 'entity.builda-price.reports.company.invoicing',\n            icon: 'file-invoice-dollar'\n          });\n        }\n        if (this.newFeatureFlags.includesFeatureFlags('canUseTimesheets')) {\n          companyReportsSections.routes.push({\n            name: this.intl.t('common.Notes'),\n            route: 'entity.builda-price.reports.company.notes',\n            icon: 'sticky-note'\n          });\n        }\n        if (canUseWIPReport) {\n          companyReportsSections.routes.push({\n            name: this.intl.t('shared.report.Work in progress'),\n            route: 'entity.builda-price.reports.company.wip',\n            icon: 'balance-scale'\n          });\n        }\n        if (reportsTab.sections.length) companyReportsSections.topSeparator = true;\n        reportsTab.sections.push(companyReportsSections);\n      }\n      if (reportsTab.sections.length) tabs.push(reportsTab);\n      return tabs;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/company/documents/project-file/task-file\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"portal/utils/download\", \"portal/config/environment\", \"jquery\", \"portal/routes/entity/builda-price/operations/documents\"], function (_exports, _controller, _object, _service, _tracking, _download, _environment, _jquery, _documents) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"portal/utils/download\",0,\"portal/config/environment\",0,\"jquery\",0,\"portal/routes/entity/builda-price/operations/documents\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor2, this);\n      _initializerDefineProperty(this, \"uploadModalVisible\", _descriptor3, this);\n    }\n    get path() {\n      if (this.model.basePath.includes('embed')) return 'embed.documents';\n      return 'entity.builda-price.operations.documents';\n    }\n    get isLoading() {\n      return this.model.file.isRunning || this.model.users.isRunning;\n    }\n    get crumbStack() {\n      const paths = [];\n      const makePaths = task => {\n        const taskIds = [];\n        (function getTaskIds(task) {\n          taskIds.unshift(task.id);\n          if (task.belongsTo('parent').id()) getTaskIds(task.belongsTo('parent').value());\n        })(task);\n        const model = taskIds.join(':');\n        paths.unshift({\n          pageTitle: task.name,\n          route: `${this.path}.project-file.task-file`,\n          model\n        });\n        if (task.belongsTo('parent').id()) makePaths(task.belongsTo('parent').value());\n      };\n      makePaths(this.model.task.last.value);\n      paths.unshift({\n        route: `${this.path}.project-file`,\n        pageTitle: this.model.task.last.value.belongsTo('project').value().name,\n        model: this.model.task.last.value.belongsTo('project').id()\n      });\n      paths.unshift({\n        route: this.path,\n        pageTitle: 'Company'\n      });\n      return paths;\n    }\n    get tableData() {\n      if (!this.searchString.length) {\n        return this.model.file.last.value;\n      }\n      return this.onSearch(this.searchString);\n    }\n    onSearch(searchString) {\n      const matchedAttachments = this.model.task.last.value.allAttachments.filter(attachment => {\n        const matchString = `${attachment.filename}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      const matchedTasks = this.model.task.last.value.allActiveChildren.filter(task => {\n        const matchString = `${task.name}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      return new _documents.DocumentData([], matchedTasks, matchedAttachments, this.model.basePath);\n    }\n    async downloadAttachments(file, event) {\n      try {\n        event.preventDefault();\n\n        // we are only downloading one file\n        if (file.href) {\n          (0, _download.downloadUrl)(file);\n          return;\n        }\n\n        // we are downloading all the files\n        const documents = function findHrefs(file) {\n          const document = {\n            name: file.name,\n            contents: file.myAttachments.map(a => a.href)\n          };\n          if (file.activeChildren?.length) {\n            const contents = file.activeChildren.filter(f => f.myAttachments?.length).map(f => findHrefs(f));\n            document.contents.push(...contents);\n          }\n          return document;\n        }(file.value);\n        const zipBlob = await this.getZipBlob(documents);\n        (0, _download.download)(zipBlob, `${file.name}_documents`, 'application/zip');\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingAttachment'),\n          error: error\n        });\n      }\n    }\n    async onUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n\n        // save the new attachments\n        await Promise.all(attachments.map(async a => {\n          a.tasks = [this.model.task.last.value];\n          await a.save({\n            adapterOptions: {\n              meta: {\n                data: a.data\n              }\n            }\n          });\n        }));\n        // put the on the project and save the project\n        this.model.file.last.value.addAttachments(attachments);\n        validationErrors.forEach(error => this.notifications.error(error));\n        if (!validationErrors.length) {\n          this.notifications.success(this.intl.t('shared.notification.Successfully uploaded documents'));\n          this.uploadModalVisible = false;\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n    get project() {\n      return this.model.task.last.value.belongsTo('project').value();\n    }\n    getZipBlob(archiveDescription) {\n      return new Promise((resolve, reject) => _jquery.default.ajax({\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/attachments/zip',\n        method: 'POST',\n        data: JSON.stringify(archiveDescription),\n        contentType: 'application/json',\n        xhr() {\n          // This seems to be the only way to set the response type to blob.\n          // This will allow js to leave the file as a bytestream rather than trying to parse it.\n          const xhr = new XMLHttpRequest();\n          xhr.responseType = 'blob';\n          return xhr;\n        }\n      }).then(resolve, reject));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"uploadModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"downloadAttachments\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"downloadAttachments\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUploadComplete\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/dashboard\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _service.inject)(), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/dashboard/index\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"ember-local-storage\"], function (_exports, _controller, _service, _emberLocalStorage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"ember-local-storage\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor4, this);\n    }\n    get isLoading() {\n      return this.model.dashboardReport.isRunning;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/operations/documents/index\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"portal/utils/download\", \"portal/config/environment\", \"jquery\", \"portal/routes/entity/builda-price/operations/documents\"], function (_exports, _controller, _object, _service, _tracking, _download, _environment, _jquery, _documents) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"portal/utils/download\",0,\"portal/config/environment\",0,\"jquery\",0,\"portal/routes/entity/builda-price/operations/documents\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor5, this);\n      _initializerDefineProperty(this, \"uploadModalVisible\", _descriptor6, this);\n    }\n    get isLoading() {\n      return this.model.users.isRunning || this.model.file.isRunning;\n    }\n    async downloadAttachments(file, event) {\n      try {\n        event.preventDefault();\n        // we are only downloading one file\n        if (file.href) {\n          (0, _download.downloadUrl)(file);\n          return;\n        }\n\n        // we are downloading all the files\n        const documents = function findHrefs(file) {\n          const document = {\n            name: file.name,\n            contents: file.myAttachments.map(a => a.href)\n          };\n          if (file.activeTasks?.length) {\n            const contents = file.activeTasks.filter(f => f.myAttachments?.length).map(f => findHrefs(f));\n            document.contents.push(...contents);\n          }\n          if (file.activeChildren?.length) {\n            const contents = file.activeChildren.filter(f => f.myAttachments?.length).map(f => findHrefs(f));\n            document.contents.push(...contents);\n          }\n          return document;\n        }(file.value);\n        const zipBlob = await this.getZipBlob(documents);\n        (0, _download.download)(zipBlob, `${file.name}_documents`, 'application/zip');\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingAttachment'),\n          error: error\n        });\n      }\n    }\n    get tableData() {\n      if (!this.searchString.length) {\n        return this.model.file.last.value;\n      }\n      return this.onSearch(this.searchString);\n    }\n    onSearch(searchString) {\n      const matchedAttachments = this.sessionData.entity.allAttachments.filter(attachment => {\n        const matchString = `${attachment.filename}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      const matchedProjects = this.model.projects.last.value.filter(project => {\n        const matchString = `${project.name}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      const matchedTasks = this.model.tasks.last.value.filter(task => {\n        const matchString = `${task.name}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      return new _documents.DocumentData(matchedProjects, matchedTasks, matchedAttachments, this.model.documentPath);\n    }\n    async onUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const attachmentResults = await Promise.all(attachments.map(a => a.save({\n          adapterOptions: {\n            meta: {\n              data: a.data\n            }\n          }\n        })));\n        await Promise.all(attachmentResults.map(async attachment => {\n          this.store.createRecord('link-attachment-to-entity', {\n            entity: this.sessionData.entity,\n            attachment\n          }).save();\n        }));\n        this.model.file.last.value.addAttachments(attachments);\n        validationErrors.forEach(error => this.notifications.error(error));\n        if (!validationErrors.length) {\n          this.notifications.success(this.intl.t('shared.notification.Successfully uploaded documents'));\n          this.uploadModalVisible = false;\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n    getZipBlob(archiveDescription) {\n      return new Promise((resolve, reject) => _jquery.default.ajax({\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/attachments/zip',\n        method: 'POST',\n        data: JSON.stringify(archiveDescription),\n        contentType: 'application/json',\n        xhr() {\n          // This seems to be the only way to set the response type to blob.\n          // This will allow js to leave the file as a bytestream rather than trying to parse it.\n          const xhr = new XMLHttpRequest();\n          xhr.responseType = 'blob';\n          return xhr;\n        }\n      }).then(resolve, reject));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"uploadModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"downloadAttachments\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"downloadAttachments\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUploadComplete\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/operations/documents/project-file/index\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"portal/utils/download\", \"portal/config/environment\", \"jquery\", \"portal/routes/entity/builda-price/operations/documents\"], function (_exports, _controller, _object, _service, _tracking, _download, _environment, _jquery, _documents) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"portal/utils/download\",0,\"portal/config/environment\",0,\"jquery\",0,\"portal/routes/entity/builda-price/operations/documents\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uploadModalVisible\", _descriptor5, this);\n    }\n    get isLoading() {\n      return this.model.file.isRunning || this.model.users.isRunning;\n    }\n    get crumbStack() {\n      return [{\n        route: this.model.documentPath,\n        pageTitle: this.intl.t('common.Company')\n      }, {\n        pageTitle: this.model.project.last.value?.name\n      }];\n    }\n    get tableData() {\n      if (!this.searchString.length) {\n        return this.model.file.last.value;\n      }\n      return this.onSearch(this.searchString);\n    }\n    onSearch(searchString) {\n      const matchedAttachments = this.model.project.last.value.allAttachments.filter(attachment => {\n        const matchString = `${attachment.filename}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      const matchedTasks = this.model.project.last.value.activeTasks.filter(task => {\n        const matchString = `${task.name}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      return new _documents.DocumentData([], matchedTasks, matchedAttachments, this.model.documentPath);\n    }\n    async downloadAttachments(file, event) {\n      try {\n        event.preventDefault();\n\n        // we are only downloading one file\n        if (file.href) {\n          (0, _download.downloadUrl)(file);\n          return;\n        }\n\n        // we are downloading all the files\n        const documents = function findHrefs(file) {\n          const document = {\n            name: file.name,\n            contents: file.myAttachments?.map(a => a.href)\n          };\n          if (file.activeChildren?.length) {\n            const contents = file.activeChildren.filter(f => f.myAttachments?.length).map(f => findHrefs(f));\n            document.contents.push(...contents);\n          }\n          return document;\n        }(file.value);\n        const zipBlob = await this.getZipBlob(documents);\n        (0, _download.download)(zipBlob, `${file.name}_documents`, 'application/zip');\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingAttachment'),\n          error: error\n        });\n      }\n    }\n    async onUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const attachmentResults = await Promise.all(attachments.map(a => a.save({\n          adapterOptions: {\n            meta: {\n              data: a.data\n            }\n          }\n        })));\n        await Promise.all(attachmentResults.map(async attachment => {\n          this.store.createRecord('link-attachment-to-project', {\n            project: this.model.project.last.value,\n            attachment\n          }).save();\n        }));\n\n        // put the on the project and save the project\n        this.model.file.last.value.addAttachments(attachments);\n        validationErrors.forEach(error => this.notifications.error(error));\n        if (!validationErrors.length) {\n          this.notifications.success(this.intl.t('shared.notification.Successfully uploaded documents'));\n          this.uploadModalVisible = false;\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n\n    /* eslint-disable ember/no-jquery */\n    getZipBlob(archiveDescription) {\n      return new Promise((resolve, reject) => _jquery.default.ajax({\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/attachments/zip',\n        method: 'POST',\n        data: JSON.stringify(archiveDescription),\n        contentType: 'application/json',\n        xhr() {\n          // This seems to be the only way to set the response type to blob.\n          // This will allow js to leave the file as a bytestream rather than trying to parse it.\n          const xhr = new XMLHttpRequest();\n          xhr.responseType = 'blob';\n          return xhr;\n        }\n      }).then(resolve, reject));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"uploadModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"downloadAttachments\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"downloadAttachments\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUploadComplete\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/operations/documents/project-file/task-file\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"portal/utils/download\", \"portal/config/environment\", \"jquery\", \"portal/routes/entity/builda-price/operations/documents\"], function (_exports, _controller, _object, _service, _tracking, _download, _environment, _jquery, _documents) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"portal/utils/download\",0,\"portal/config/environment\",0,\"jquery\",0,\"portal/routes/entity/builda-price/operations/documents\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor4, this);\n      _initializerDefineProperty(this, \"uploadModalVisible\", _descriptor5, this);\n    }\n    get isLoading() {\n      return this.model.file.isRunning || this.model.users.isRunning;\n    }\n    get crumbStack() {\n      const paths = [];\n      const makePaths = task => {\n        const taskIds = [];\n        (function getTaskIds(task) {\n          taskIds.unshift(task.id);\n          if (task.belongsTo('parent').id()) getTaskIds(task.belongsTo('parent').value());\n        })(task);\n        const model = taskIds.join(':');\n        paths.unshift({\n          pageTitle: task.name,\n          route: `${this.model.documentPath}.project-file.task-file`,\n          model\n        });\n        if (task.belongsTo('parent').id()) makePaths(task.belongsTo('parent').value());\n      };\n      makePaths(this.model.task.last.value);\n      paths.unshift({\n        route: `${this.model.documentPath}.project-file`,\n        pageTitle: this.model.task.last.value.belongsTo('project').value().name,\n        model: this.model.task.last.value.belongsTo('project').id()\n      });\n      paths.unshift({\n        route: this.model.documentPath,\n        pageTitle: this.intl.t('common.Company')\n      });\n      return paths;\n    }\n    get tableData() {\n      if (!this.searchString.length) {\n        return this.model.file.last.value;\n      }\n      return this.onSearch(this.searchString);\n    }\n    onSearch(searchString) {\n      const matchedAttachments = this.model.task.last.value.allAttachments.filter(attachment => {\n        const matchString = `${attachment.filename}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      const matchedTasks = this.model.task.last.value.allActiveChildren.filter(task => {\n        const matchString = `${task.name}`.replace(/\\s/g, '').toLowerCase();\n        return matchString.includes(searchString.replace(/\\s/g, '').toLowerCase());\n      });\n      return new _documents.DocumentData([], matchedTasks, matchedAttachments, this.model.documentPath);\n    }\n    async downloadAttachments(file, event) {\n      try {\n        event.preventDefault();\n        // we are only downloading one file\n        if (file.href) {\n          (0, _download.downloadUrl)(file);\n          return;\n        }\n\n        // we are downloading all the files\n        const documents = function findHrefs(file) {\n          const document = {\n            name: file.name,\n            contents: file.myAttachments.map(a => a.href)\n          };\n          if (file.activeChildren?.length) {\n            const contents = file.activeChildren.filter(f => f.myAttachments?.length).map(f => findHrefs(f));\n            document.contents.push(...contents);\n          }\n          return document;\n        }(file.value);\n        const zipBlob = await this.getZipBlob(documents);\n        (0, _download.download)(zipBlob, `${file.name}_documents`, 'application/zip');\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingAttachment'),\n          error: error\n        });\n      }\n    }\n    async onUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const attachmentResults = await Promise.all(attachments.map(a => a.save({\n          adapterOptions: {\n            meta: {\n              data: a.data\n            }\n          }\n        })));\n        await Promise.all(attachmentResults.map(async attachment => {\n          this.store.createRecord('link-attachment-to-task', {\n            task: this.model.task.last.value,\n            attachment\n          }).save();\n        }));\n        this.model.file.last.value.addAttachments(attachments);\n        validationErrors.forEach(error => this.notifications.error(error));\n        if (!validationErrors.length) {\n          this.notifications.success(this.intl.t('shared.notification.Successfully uploaded documents'));\n          this.uploadModalVisible = false;\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n    get project() {\n      return this.model.task.last.value.belongsTo('project').value();\n    }\n    getZipBlob(archiveDescription) {\n      return new Promise((resolve, reject) => _jquery.default.ajax({\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/attachments/zip',\n        method: 'POST',\n        data: JSON.stringify(archiveDescription),\n        contentType: 'application/json',\n        xhr() {\n          // This seems to be the only way to set the response type to blob.\n          // This will allow js to leave the file as a bytestream rather than trying to parse it.\n          const xhr = new XMLHttpRequest();\n          xhr.responseType = 'blob';\n          return xhr;\n        }\n      }).then(resolve, reject));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"uploadModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"downloadAttachments\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"downloadAttachments\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUploadComplete\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/operations/incoming/bills-legacy\", [\"exports\", \"@ember/controller\", \"@ember/runloop\", \"@ember/service\", \"@ember/object\", \"@ember/array\", \"@ember/object/computed\", \"portal/utils/bill-parsers/csv\", \"portal/utils/bill-parsers/placemakers\", \"portal/utils/bill-parsers/xero\", \"portal/utils/bill-parsers/carters\", \"portal/utils/bill-parsers/mitre\", \"portal/utils/bill-parsers/bunnings\", \"rsvp\", \"moment\", \"lodash\", \"ember-local-storage\", \"@ember/object/evented\", \"portal/utils/auto-map\", \"portal/config/environment\"], function (_exports, _controller, _runloop, _service, _object, _array, _computed, _csv, _placemakers, _xero, _carters, _mitre, _bunnings, _rsvp, _moment, _lodash, _emberLocalStorage, _evented, _autoMap, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/runloop\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/array\",0,\"@ember/object/computed\",0,\"portal/utils/bill-parsers/csv\",0,\"portal/utils/bill-parsers/placemakers\",0,\"portal/utils/bill-parsers/xero\",0,\"portal/utils/bill-parsers/carters\",0,\"portal/utils/bill-parsers/mitre\",0,\"portal/utils/bill-parsers/bunnings\",0,\"rsvp\",0,\"moment\",0,\"lodash\",0,\"ember-local-storage\",0,\"@ember/object/evented\",0,\"portal/utils/auto-map\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    intl: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    xeroIntegration: (0, _service.inject)(),\n    buildaPrice: (0, _service.inject)(),\n    quickbooks: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    invoicedCosts: (0, _service.inject)(),\n    persistedSettings: (0, _emberLocalStorage.storageFor)('settings'),\n    queryParams: ['sortBy', 'filterByDate', 'startDate', 'endDate', 'status', 'unallocatedOnly', 'search'],\n    status: 'ALL',\n    unallocatedOnly: false,\n    search: '',\n    invoices: (0, _object.computed)('model.invoices.@each.{status,issueDate,fullyMapped,isMapped}', 'status', 'filterByDate', 'startDate', 'endDate', 'search', 'unallocatedOnly', function () {\n      let invoices = (0, _object.get)(this, 'model.invoices')?.toArray() || [];\n\n      // get all query params\n      const status = (0, _object.get)(this, 'status');\n      const startDate = (0, _object.get)(this, 'startDate');\n      const endDate = (0, _object.get)(this, 'endDate');\n      const filterByDate = Boolean((0, _object.get)(this, 'filterByDate'));\n      const searchText = ((0, _object.get)(this, 'search') || '').trim().toLowerCase();\n      const unallocatedOnly = Boolean((0, _object.get)(this, 'unallocatedOnly'));\n      const filterByStatus = status && status !== 'ALL';\n      const filterBySearch = Boolean(searchText);\n      const startMoment = filterByDate && startDate ? (0, _moment.default)(startDate).startOf('day') : null;\n      const endMoment = filterByDate && endDate ? (0, _moment.default)(endDate).endOf('day') : null;\n      const results = [];\n      for (const inv of invoices) {\n        if (filterByStatus && (0, _object.get)(inv, 'status') !== status) continue;\n        if (filterByDate) {\n          const issueDate = (0, _moment.default)((0, _object.get)(inv, 'issueDate'));\n          if (!issueDate.isValid()) continue;\n          if (startMoment && issueDate.isBefore(startMoment)) continue;\n          if (endMoment && issueDate.isAfter(endMoment)) continue;\n        }\n        if (filterBySearch) {\n          const matched = ['reference', 'billNumber', 'issuer'].some(field => {\n            const fieldValue = (0, _object.get)(inv, field);\n            return fieldValue && fieldValue.toLowerCase().includes(searchText);\n          });\n          if (!matched) continue;\n        }\n        if (unallocatedOnly && (0, _object.get)(inv, 'fullyMapped')) continue;\n        results.push(inv);\n      }\n      return (0, _array.A)(results);\n    }),\n    sortBy: '-issuedDate,issuer,billNumber',\n    sortedBy: (0, _object.computed)('sortBy', {\n      get() {\n        const sorts = this.sortBy.split(',').map(s => {\n          let sort = s.trim();\n          if (sort.startsWith('-')) sort = `${sort.replace('-', '')}:desc`;else sort = `${sort}:asc`;\n          return sort;\n        });\n        return sorts;\n      },\n      set(_key, [value]) {\n        let sortBy = value;\n        if (sortBy.endsWith(':asc')) sortBy = sortBy.replace(':asc', '');else if (sortBy.endsWith(':desc')) sortBy = `-${sortBy.replace(':desc', '')}`;\n        (0, _object.set)(this, 'sortBy', sortBy);\n        return [value];\n      }\n    }),\n    filterByDate: true,\n    startDate: (0, _moment.default)().subtract(1, 'month').startOf('day').toDate(),\n    endDate: (0, _moment.default)().endOf('day').toDate(),\n    jsFilterByDate: (0, _object.computed)('filterByDate', {\n      get() {\n        return (0, _object.get)(this, 'filterByDate') ?? true;\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'filterByDate', value);\n        return value;\n      }\n    }),\n    jsEndDate: (0, _object.computed)('endDate', {\n      get() {\n        const savedDate = (0, _object.get)(this, 'endDate') || (0, _moment.default)().endOf('isoWeek');\n        return (0, _moment.default)(savedDate).toDate();\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'endDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        return value;\n      }\n    }),\n    jsStartDate: (0, _object.computed)('startDate', {\n      get() {\n        const start = (0, _object.get)(this, 'startDate') || (0, _moment.default)().startOf('isoWeek').subtract(1, 'months');\n        return (0, _moment.default)(start).toDate();\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'startDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        return value;\n      }\n    }),\n    invoiceResponses: [],\n    invoiceTypeResponseHandlerVisible: false,\n    doNotWarnForUnmappedInvoice: (0, _computed.alias)('persistedSettings.invoices:doNotWarnForUnmappedInvoice'),\n    allInvoicesSelected: (0, _object.computed)('invoices.length', 'selectedInvoices.length', function () {\n      return (0, _object.get)(this, 'invoices.length') === (0, _object.get)(this, 'selectedInvoices.length');\n    }),\n    showBadgesColumn: (0, _object.computed)('invoices.@each.{eaccountsFileName,xeroLinked}', function () {\n      return (0, _object.get)(this, 'invoices').find(invoice => (0, _object.get)(invoice, 'eaccountsFileName') || (0, _object.get)(invoice, 'xeroLinked'));\n    }),\n    tableColumns: (0, _object.computed)('invoices', 'showBadgesColumn', function () {\n      const columns = [{\n        name: (0, _object.get)(this, 'intl').t('common.Selected'),\n        width: 1\n      }, {\n        name: (0, _object.get)(this, 'intl').t('common.Number'),\n        key: 'billNumber',\n        width: 10\n      }, {\n        name: (0, _object.get)(this, 'intl').t('common.Issuer'),\n        key: 'issuer',\n        width: 10\n      }, {\n        name: (0, _object.get)(this, 'intl').t('common.Reference'),\n        key: 'reference',\n        width: 10\n      }, {\n        name: (0, _object.get)(this, 'intl').t('common.Type'),\n        key: 'allocationType',\n        width: 10\n      }, {\n        name: (0, _object.get)(this, 'intl').t('common.Status'),\n        key: 'status',\n        width: 10\n      }, {\n        name: (0, _object.get)(this, 'intl').t('common.Issued'),\n        key: 'issueDate',\n        width: 10\n      }, {\n        name: (0, _object.get)(this, 'intl').t('common.Due'),\n        key: 'dueDate',\n        width: 10\n      }, {\n        name: (0, _object.get)(this, 'intl').t('common.Total'),\n        width: 10\n      }];\n\n      // find if we should add the integration icon column\n      if ((0, _object.get)(this, 'showBadgesColumn')) {\n        columns.push({\n          name: (0, _object.get)(this, 'intl').t('common.Integrations'),\n          width: 1\n        });\n      }\n      return columns;\n    }),\n    deleteConfirmText: (0, _object.computed)('selectedInvoices', function () {\n      const selectedInvoices = (0, _object.get)(this, 'selectedInvoices');\n      if (selectedInvoices.length > 1) return `delete ${selectedInvoices.length} bills`;\n      return null;\n    }),\n    groupedInvoices: (0, _object.computed)('invoices.[]', function () {\n      const groupsMap = _lodash.default.groupBy((0, _object.get)(this, 'invoices'), invoice => (0, _object.get)(invoice, 'issuer'));\n      const groupsArray = Object.entries(groupsMap).map(([issuer, invoices]) => ({\n        issuer,\n        invoices\n      }));\n      return groupsArray;\n    }),\n    // Is aliased from a value in local storage that survives refreshes and logouts\n    // In test mode, local storage is ignored for consistency\n    condensedView: _environment.default.environment === 'test' ? false : (0, _computed.alias)('persistedSettings.invoices:condensedView'),\n    setCondensedOnInit: (0, _evented.on)('init', function () {\n      // Ensures that the local storage value is set\n      if ((0, _object.get)(this, 'condensedView') == null) (0, _object.set)(this, 'condensedView', false);\n    }),\n    isSaving: false,\n    isDeleting: false,\n    isXeroLoading: false,\n    isQuickbooksLoading: false,\n    isAllocating: false,\n    isAllocatingAndAccepting: false,\n    isAllocatingAcceptingAndSendingToXero: false,\n    invoiceDeleteConfirmModalVisible: false,\n    unmappedInvoiceWarningModalVisible: false,\n    unmappedInvoicesToConfirm: null,\n    parsers: {\n      csv: _csv.default,\n      placemakers: _placemakers.default,\n      xero: _xero.default,\n      carters: _carters.default,\n      mitre: _mitre.default,\n      bunnings: _bunnings.default\n    },\n    importedInvoices: null,\n    deleteMessages: (0, _object.computed)('deleteConfirmText', function () {\n      if ((0, _object.get)(this, 'deleteConfirmText')) return [(0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.Do you want to delete these bills')];\n      return [(0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.Do you want to delete this bill')];\n    }),\n    // this computed key is wrong but this only needs to run once\n    hasWriteLevel: (0, _object.computed)('newFeatureFlags', function () {\n      return this.newFeatureFlags.includesFeatureFlags('canManageBills');\n    }),\n    selectedInvoices: (0, _computed.filterBy)('invoices', 'checked'),\n    selectedInvoiceItems: (0, _object.computed)('selectedInvoices', function () {\n      return (0, _object.get)(this, 'selectedInvoices').reduce((arr, invoice) => [...arr, ...invoice.hasMany('items').value().toArray()], []);\n    }),\n    isSecondaryAllocating: (0, _object.computed)('isAllocatingAndAccepting', 'isAllocatingAcceptingAndSendingToXero', function () {\n      return (0, _object.get)(this, 'isAllocatingAndAccepting') || (0, _object.get)(this, 'isAllocatingAcceptingAndSendingToXero');\n    }),\n    _commitSearch(value) {\n      (0, _object.set)(this, 'search', value);\n    },\n    actions: {\n      transitionToBill(route, id) {\n        this.router.transitionTo(route, id);\n      },\n      setFocus(e) {\n        (0, _runloop.next)(() => {\n          e.focus();\n        });\n      },\n      onSearchInput(event) {\n        (0, _runloop.debounce)(this, this._commitSearch, event.target.value, 1200);\n      },\n      setDateRange(dates) {\n        const {\n          startDate,\n          endDate\n        } = dates;\n        if (startDate) (0, _object.set)(this, 'jsStartDate', startDate);\n        if (endDate) (0, _object.set)(this, 'jsEndDate', endDate);\n      },\n      async autoMapSelected() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const selected = (0, _object.get)(this, 'selectedInvoices');\n        const count = (0, _object.get)(selected, 'length');\n        if (!(0, _object.get)(selected, 'length')) return;\n        try {\n          const invoiceItems = [];\n          (0, _object.set)(this, 'isAutoMapping', true);\n          let successes = 0;\n          const promises = [];\n          selected.forEach(invoice => {\n            const autoMapSuccessful = this.autoMap(invoice);\n            if (autoMapSuccessful) {\n              invoice.hasMany('items').value().forEach(item => invoiceItems.push(item.toJSON({\n                includeId: true\n              })));\n              promises.push(invoice.save());\n              successes++;\n            }\n          });\n          promises.push(this.buildaPrice.updateInvoiceItems(invoiceItems));\n          await _rsvp.default.all(promises);\n          notifications.success(`${successes} out of ${count} bill${count > 1 ? 's' : ''} were successfully mapped`);\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.There was an error while auto mapping')\n          });\n        } finally {\n          (0, _object.set)(this, 'isAutoMapping', false);\n        }\n      },\n      async sendSelectedInvoicesToXero(unmappedPolicy) {\n        const notifications = (0, _object.get)(this, 'notifications');\n\n        // Check that there are invoices selected\n        let invoices = (0, _object.get)(this, 'selectedInvoices');\n        if (!invoices.length) {\n          notifications.info((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.youHaveNotSelectedAnyInvoicesToSendToXero'));\n          return;\n        }\n\n        // Check that all selected invoices are ready to send\n        const draftCount = invoices.filterBy('status', 'DRAFT').length;\n        if (draftCount) {\n          notifications.info((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.thereAreXSelectedDraftInvoiceInvoicesMustBeAcceptedBeforeBeingSentToXero', {\n            draftCount: draftCount,\n            be: draftCount > 1 ? 'are' : 'is',\n            invoice: draftCount > 1 ? 'invoices' : 'invoice'\n          }));\n          return;\n        }\n\n        // Sort invoices into unsent and sent, if there are no unsent invoices then bail out and inform the user.\n        const sortedInvoices = this.sortXeroInvoicesForSending(invoices);\n        if (!(0, _object.get)(sortedInvoices, 'unsent.length')) {\n          notifications.info(`All ${invoices.length} are already in Xero.`);\n          return;\n        }\n\n        // Check that all credit notes have Xero account codes\n        const creditNotes = invoices.filterBy('isCreditNote');\n        if (!creditNotes.every(invoice => (invoice.hasMany('items').value()?.toArray() || []).every(item => item.belongsTo('glAccount').value()))) {\n          notifications.info((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.allCreditNoteItemsMustHaveAXeroAccountBeforeBeingSentToXero'));\n          return;\n        }\n        if (unmappedPolicy === 'all') {\n          // Just continue\n        } else if (unmappedPolicy === 'mapped') {\n          // Only send the mapped ones\n          invoices = invoices.filterBy('fullyMapped');\n        } else {\n          // Make user confirm if any are unmapped\n          const unmappedInvoices = invoices.rejectBy('fullyMapped');\n          if (unmappedInvoices.length) {\n            (0, _object.set)(this, 'unmappedInvoicesToConfirm', unmappedInvoices);\n            return;\n          }\n        }\n        try {\n          (0, _object.set)(this, 'isXeroLoading', true);\n          const xero = (0, _object.get)(this, 'xeroIntegration');\n\n          // If there are sendable invoices send them\n          if (sortedInvoices.unsent.length) {\n            const allResponses = await xero.sendBills(sortedInvoices.unsent, false);\n            const validResponses = allResponses.filter(Boolean);\n            const hasRejection = validResponses.some(resp => resp.attachments?.some(resp => resp.rejected));\n            if (hasRejection) {\n              (0, _object.set)(this, 'invoiceResponses', validResponses);\n              (0, _object.set)(this, 'invoiceTypeResponseHandlerVisible', true);\n            } else {\n              // Create the Xero outcome message\n              const message = this.makeSendInvoicesToXeroOutcomeMessage(sortedInvoices);\n              notifications.success({\n                message\n              }, 7500);\n            }\n          }\n        } catch (error) {\n          this.send('error', error);\n        } finally {\n          (0, _object.set)(this, 'unmappedInvoicesToConfirm', null);\n          (0, _object.set)(this, 'isXeroLoading', false);\n        }\n      },\n      async sendSelectedInvoicesToQuickbooks(unmappedPolicy) {\n        const notifications = (0, _object.get)(this, 'notifications');\n\n        // Check that there are invoices selected\n        let invoices = (0, _object.get)(this, 'selectedInvoices');\n        if (!invoices.length) {\n          notifications.info((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.youHaveNotSelectedAnyInvoicesToSendToQuickBooks'));\n          return;\n        }\n\n        // Check that all selected invoices are ready to send\n        const draftCount = invoices.filterBy('status', 'DRAFT').length;\n        if (draftCount) {\n          const be = draftCount > 1 ? 'are' : 'is';\n          const invoice = draftCount > 1 ? 'invoices' : 'invoice';\n          notifications.info(`There ${be} ${draftCount} selected draft ${invoice}. Invoices must be accepted before being sent to QuickBooks.`);\n          return;\n        }\n\n        // Sort invoices into unsent and sent, if there are no unsent invoices then bail out and inform the user.\n        const sortedInvoices = this.sortQuickbooksInvoicesForSending(invoices);\n        if (!(0, _object.get)(sortedInvoices, 'unsent.length')) {\n          notifications.info(`All ${invoices.length} are already in QuickBooks.`);\n          return;\n        }\n\n        // Check that all credit notes have Xero account codes\n        const creditNotes = invoices.filterBy('isCreditNote');\n        if (!creditNotes.every(invoice => (invoice.hasMany('items').value()?.toArray() || []).every(item => item.belongsTo('xeroAccount').value()))) {\n          notifications.info('All credit note items must have a QuickBooks account before being sent to QuickBooks.');\n          return;\n        }\n        if (unmappedPolicy === 'all') {\n          // Just continue\n        } else if (unmappedPolicy === 'mapped') {\n          // Only send the mapped ones\n          invoices = invoices.filterBy('fullyMapped');\n        } else {\n          // Make user confirm if any are unmapped\n          const unmappedInvoices = invoices.rejectBy('fullyMapped');\n          if (unmappedInvoices.length) {\n            (0, _object.set)(this, 'unmappedInvoicesToConfirm', unmappedInvoices);\n            return;\n          }\n        }\n        try {\n          (0, _object.set)(this, 'isQuickbooksLoading', true);\n          const quickbooks = (0, _object.get)(this, 'quickbooks');\n\n          // If there are sendable invoices send them\n          if (sortedInvoices.unsent.length) {\n            const response = await quickbooks.sendBills(sortedInvoices.unsent, false);\n            const filterResponses = (response || []).filter(r => Boolean(r));\n            if (filterResponses?.length) {\n              (0, _object.set)(this, 'invoiceResponses', [response]);\n              (0, _object.set)(this, 'invoiceTypeResponseHandlerVisible', true);\n            } else {\n              (0, _object.get)(this, 'notifications').success((0, _object.get)(this, 'intl').t('shared.notification.Sent bill to QuickBooks'));\n            }\n          }\n        } catch (error) {\n          this.send('error', error);\n        } finally {\n          (0, _object.set)(this, 'unmappedInvoicesToConfirm', null);\n          (0, _object.set)(this, 'isQuickbooksLoading', false);\n        }\n      },\n      onInvoiceTypeResponseHandlerCancel() {\n        (0, _object.set)(this, 'invoiceResponses', []);\n        (0, _object.set)(this, 'invoiceTypeResponseHandlerVisible', false);\n      },\n      async acceptSelectedInvoices() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const invoices = (0, _object.get)(this, 'selectedInvoices').filter(invoice => (0, _object.get)(invoice, 'status') === 'DRAFT');\n\n        // Check that invoices are valid for acceptance\n        const invoicesNotValidMessage = this.checkInvoiceIsValid(invoices);\n        if (invoicesNotValidMessage) return notifications.info(invoicesNotValidMessage);\n        const invoiceItems = invoices.reduce((invoiceItems, invoice) => {\n          return [...invoiceItems, ...(invoice.hasMany('items').value()?.toArray() || [])];\n        }, []);\n        const hasUnmapped = invoiceItems.some(i => !i.belongsTo('project').id() && !i.belongsTo('task').id());\n        if (!(0, _object.get)(this, 'doNotWarnForUnmappedInvoice') && hasUnmapped) {\n          const confirmed = await this.confirmInvoiceWarnings();\n          if (!confirmed) return;\n        }\n\n        // Change status and save each invoice\n        (0, _object.set)(this, 'isSaving', true);\n        try {\n          await _rsvp.default.all(invoices.map(invoice => this.acceptAndSaveInvoice(invoice)));\n          notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.Successfully accepted and saved invoices'));\n          // remove from ember data\n          this._postFilterBillsOnClient(invoices);\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.One or more invoices failed to save')\n          });\n        } finally {\n          (0, _object.set)(this, 'isSaving', false);\n        }\n      },\n      async archiveSelectedInvoices() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const invoices = (0, _object.get)(this, 'selectedInvoices').filter(invoice => (0, _object.get)(invoice, 'status') !== 'ARCHIVED');\n        if (!invoices.length) {\n          return notifications.info((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.allTheSelectedBillsAreAlreadyArchived'));\n        }\n\n        // Change status and save each invoice\n        (0, _object.set)(this, 'isSaving', true);\n        try {\n          await _rsvp.default.all(invoices.map(invoice => this.archiveAndSaveInvoice(invoice)));\n          notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.Successfully archived and saved invoices'));\n          // remove from ember data\n          this._postFilterBillsOnClient(invoices);\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.One or more invoices failed to save')\n          });\n        } finally {\n          (0, _object.set)(this, 'isSaving', false);\n        }\n      },\n      async deleteSelectedInvoices() {\n        const hasOneBill = (0, _object.get)(this, 'selectedInvoices.length') === 1;\n        const isInvoiced = (0, _object.get)(this, 'selectedInvoices').some(i => i._meta?.isInvoiced);\n        this.invoicedCosts.requestDelete.perform({\n          isInvoiced,\n          title: (0, _object.get)(this, 'intl').t(hasOneBill ? 'services.invoiced-costs.Delete linked bill' : 'services.invoiced-costs.Delete linked bills'),\n          message: (0, _object.get)(this, 'intl').t(hasOneBill ? 'services.invoiced-costs.billMessage' : 'services.invoiced-costs.billsMessage'),\n          deleteCb: async () => {\n            const invoices = (0, _object.get)(this, 'selectedInvoices');\n            if (!invoices.length) return (0, _object.get)(this, 'notifications').info((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.youHaveNotSelectedAnyInvoicesToDelete'));\n            (0, _object.set)(this, 'isDeleting', true);\n            try {\n              await _rsvp.default.all(invoices.map(inv => inv.destroyRecord()));\n              (0, _object.get)(this, 'model.invoices').removeObjects(invoices);\n              (0, _object.get)(this, 'notifications').success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.Successfully deleted invoices'));\n            } finally {\n              (0, _object.set)(this, 'isDeleting', false);\n              (0, _object.set)(this, 'invoiceDeleteConfirmModalVisible', false);\n            }\n          }\n        });\n      },\n      async handleImportInvoices(data) {\n        const {\n          invoices\n        } = data;\n        const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n        const uniqueBillNumbers = Array.from(new Set((invoices || []).map(inv => (inv.billNumber || '').trim()).filter(billNumber => billNumber)));\n        let existingInvoices = (0, _object.get)(this, 'model.invoices') || [];\n        if (uniqueBillNumbers.length) {\n          try {\n            existingInvoices = await this.store.query('bill', {\n              filter: {\n                and: [{\n                  field: 'entity',\n                  op: 'EQ',\n                  value: entityId\n                }, {\n                  field: 'billNumber',\n                  op: 'IN',\n                  value: uniqueBillNumbers\n                }]\n              },\n              sort: 'issuer',\n              fields: {\n                bills: '_meta.hasDuplicate'\n              }\n            }).then(res => res.toArray ? res.toArray() : res);\n          } catch (_e) {\n            // ignore\n          }\n        }\n        const importedInvoices = invoices.reduce((grouped, invoice) => {\n          const {\n            billNumber,\n            issuer\n          } = invoice;\n          const invoiceIsExisting = existingInvoices.find(existingInvoice => (0, _object.get)(existingInvoice, 'billNumber') === billNumber && (0, _object.get)(existingInvoice, 'issuer') === issuer);\n          if (invoiceIsExisting) {\n            grouped.existing.push(invoice);\n          } else {\n            grouped.new.push(invoice);\n          }\n          return grouped;\n        }, {\n          new: [],\n          existing: [],\n          invoices\n        });\n        if (importedInvoices.existing.length) {\n          (0, _object.set)(this, 'importedInvoices', importedInvoices);\n          return;\n        } else {\n          this.send('importInvoices', invoices);\n        }\n      },\n      async importInvoices(invoices) {\n        const store = (0, _object.get)(this, 'store');\n        const entity = (0, _object.get)(this, 'sessionData.entity');\n\n        // Create the new invoice(s)\n        const newInvoices = invoices.map(inv => {\n          // Create invoice record\n          const invoice = store.createRecord('bill', Object.assign({\n            allocationType: 'MATERIALS'\n          }, inv, {\n            entity,\n            items: []\n          }));\n          // Create item records and add them to the invoice\n          (inv.items || []).forEach(it => store.createRecord('bill-item', {\n            ...it,\n            entity: (0, _object.get)(this, 'sessionData.entity'),\n            bill: invoice\n          }));\n          // Run the autoMapper on the invoice\n          this.autoMap(invoice);\n          // Return the invoice\n          return invoice;\n        });\n        try {\n          await _rsvp.default.all(newInvoices.map(async invoice => {\n            await invoice.save();\n            await _rsvp.default.all(invoice.hasMany('items').value().map(item => item.save()));\n\n            // Notify the parent route that a new invoice needs to be added to the list.\n            this.send('invoiceAdded', invoice);\n          }));\n          (0, _object.set)(this, 'importedInvoices', null);\n          (0, _object.get)(this, 'notifications').success((0, _object.get)(this, 'intl').t('shared.notification.Saved successfully'));\n          this.send('refreshModel');\n        } catch (error) {\n          (0, _object.get)(this, 'notifications').error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.Something went wrong while saving')\n          });\n        }\n      },\n      /**\n       * Applies the allocation to the selectedItems, saves the items,\n       * and refreshes any totals records that may have been affected.\n       * @param {Object} allocation - Contains project and task.\n       * @param {Object} xeroAccountOverride - Contains the xero account override from the allocate modal.\n       * @returns {void}\n       */\n      async allocateSelected(allocation, xeroAccountOverride) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'isAllocating', true);\n          const selectedInvoiceItems = (0, _object.get)(this, 'selectedInvoiceItems');\n\n          // Allocate and save the invoice items\n          await this.allocateAndSaveInvoiceItems(selectedInvoiceItems, allocation, xeroAccountOverride);\n          notifications.success((0, _object.get)(this, 'intl').t('shared.notification.Items successfully allocated'));\n          // remove from ember data\n          this._postFilterBillsOnClient((0, _object.get)(this, 'selectedInvoices'));\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.somethingWentWrongWhileAllocatingItems')\n          });\n        } finally {\n          // Close the allocating dialog\n          (0, _object.set)(this, 'allocatingItems', false);\n          (0, _object.set)(this, 'isAllocating', false);\n        }\n      },\n      async allocateAndAcceptSelected(allocation, xeroAccountOverride) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const invoices = (0, _object.get)(this, 'selectedInvoices');\n\n        // Check that invoices are valid for acceptance\n        const invoicesNotValidMessage = this.checkInvoiceIsValid(invoices);\n        if (invoicesNotValidMessage) return notifications.info(invoicesNotValidMessage);\n        if (!(0, _object.get)(this, 'doNotWarnForUnmappedInvoice') && !allocation) {\n          const confirmed = await this.confirmInvoiceWarnings();\n          if (!confirmed) return;\n        }\n        try {\n          (0, _object.set)(this, 'isAllocatingAndAccepting', true);\n          const selectedInvoiceItems = (0, _object.get)(this, 'selectedInvoiceItems');\n\n          // Allocate and save the invoice items\n          await this.allocateAndSaveInvoiceItems(selectedInvoiceItems, allocation, xeroAccountOverride);\n\n          // Accept and save the invoices\n          await _rsvp.default.all(invoices.map(invoice => this.acceptAndSaveInvoice(invoice)));\n          notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.itemsSuccessfullyAllocatedAndAccepted'));\n          // remove from ember data\n          this._postFilterBillsOnClient(invoices);\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.somethingWentWrongWhileAllocatingAndAcceptingBill')\n          });\n        } finally {\n          // Close the allocating dialog\n          (0, _object.set)(this, 'allocatingItems', false);\n          (0, _object.set)(this, 'isAllocatingAndAccepting', false);\n        }\n      },\n      async allocateAcceptAndSendToXeroSelected(allocation, xeroAccountOverride) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const invoices = (0, _object.get)(this, 'selectedInvoices');\n\n        // Check that invoices are valid for acceptance\n        const invoicesNotValidMessage = this.checkInvoiceIsValid(invoices);\n        if (invoicesNotValidMessage) return notifications.info(invoicesNotValidMessage);\n        if (!(0, _object.get)(this, 'doNotWarnForUnmappedInvoice') && !allocation) {\n          const confirmed = await this.confirmInvoiceWarnings();\n          if (!confirmed) return;\n        }\n        try {\n          (0, _object.set)(this, 'isAllocatingAcceptingAndSendingToXero', true);\n          const xero = (0, _object.get)(this, 'xeroIntegration');\n          const selectedInvoiceItems = (0, _object.get)(this, 'selectedInvoiceItems');\n\n          // Allocate and save the invoice items\n          await this.allocateAndSaveInvoiceItems(selectedInvoiceItems, allocation, xeroAccountOverride);\n\n          // Accept and save the invoices\n          await _rsvp.default.all(invoices.map(invoice => this.acceptAndSaveInvoice(invoice)));\n\n          // Sort invoices into unsent and sent\n          const sortedInvoices = this.sortXeroInvoicesForSending(invoices);\n\n          // If there are sendable invoices send them\n          if (sortedInvoices.unsent.length) {\n            const responses = await xero.sendBills(sortedInvoices.unsent, false);\n            const hasRejection = responses.find(resp => resp.attachments.find(resp => resp.rejected));\n            if (hasRejection) {\n              (0, _object.set)(this, 'invoiceResponses', responses);\n              (0, _object.set)(this, 'invoiceTypeResponseHandlerVisible', true);\n            } else {\n              // Create the Xero outcome message\n              const xeroMessage = this.makeSendInvoicesToXeroOutcomeMessage(sortedInvoices);\n              notifications.success({\n                message: `${(0, _object.get)(this, 'intl').t('shared.notification.billsSuccessfullyAllocatedAndAccepted')} ${xeroMessage}`\n              }, 7500);\n            }\n          } else {\n            notifications.info(`${(0, _object.get)(this, 'intl').t('shared.notification.billsSuccessfullyAllocatedAndAccepted')} ${(0, _object.get)(this, 'intl').t('shared.notification.The bills were already sent to Xero')}`);\n          }\n          // remove from ember data\n          this._postFilterBillsOnClient(invoices);\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.thereWasAProblemAllocatingAcceptingOrSendingTheInvoicesToXero')\n          });\n        } finally {\n          // Close the allocating dialog\n          (0, _object.set)(this, 'allocatingItems', false);\n          (0, _object.set)(this, 'isAllocatingAcceptingAndSendingToXero', false);\n        }\n      },\n      async updateXeroAccounts() {\n        const xero = (0, _object.get)(this, 'xeroIntegration');\n        const entity = (0, _object.get)(this, 'sessionData.entity');\n        (0, _object.set)(this, 'xeroFetching', true);\n        // Update accounts and get results\n        let results;\n        try {\n          results = await xero.getAccounts(entity);\n        } catch (error) {\n          // Abort the action\n          (0, _object.set)(this, 'xeroFetching', false);\n          return;\n        }\n\n        // Apply results to what has been loaded already\n        try {\n          const {\n            created = [],\n            updated = [],\n            removed = []\n          } = results;\n          // Fetch any newly created accounts\n          if (created.length) {\n            await this.handleNewAccounts(created, (0, _object.get)(entity, 'id'));\n          }\n          // Reload any updated accounts\n          if (updated.length) {\n            await this.handleUpdatedAccounts(updated);\n          }\n          // Unload any removed accounts\n          if (removed.length) {\n            await this.handleRemovedAccounts(removed);\n          }\n        } catch (error) {\n          this.send('error', error);\n        } finally {\n          (0, _object.set)(this, 'xeroFetching', false);\n        }\n      },\n      async updateQuickbooksAccounts() {\n        const quickbooks = (0, _object.get)(this, 'quickbooks');\n        const entity = (0, _object.get)(this, 'sessionData.entity');\n        (0, _object.set)(this, 'quickbooksFetching', true);\n        // Update accounts and get results\n        let results;\n        try {\n          results = await quickbooks.getAccounts(entity);\n        } catch (error) {\n          // Abort the action\n          (0, _object.set)(this, 'quickbooksFetching', false);\n          return;\n        }\n\n        // Apply results to what has been loaded already\n        try {\n          const {\n            created = [],\n            updated = [],\n            removed = []\n          } = results;\n          // Fetch any newly created accounts\n          if (created.length) {\n            await this.handleNewQuickbooksAccounts(created, (0, _object.get)(entity, 'id'));\n          }\n          // Reload any updated accounts\n          if (updated.length) {\n            await this.handleUpdatedQuickbooksAccounts(updated);\n          }\n          // Unload any removed accounts\n          if (removed.length) {\n            await this.handleRemovedQuickbooksAccounts(removed);\n          }\n        } catch (error) {\n          this.send('error', error);\n        } finally {\n          (0, _object.set)(this, 'quickbooksFetching', false);\n        }\n      },\n      toggleInvoicesSelected() {\n        const checked = (0, _object.get)(this, 'allInvoicesSelected');\n        (0, _object.get)(this, 'invoices').forEach(invoice => (0, _object.set)(invoice, 'checked', !checked));\n      }\n    },\n    _postFilterBillsOnClient(changedInvoices = []) {\n      const statusFilter = (0, _object.get)(this, 'status');\n      const unallocatedOnly = (0, _object.get)(this, 'unallocatedOnly');\n      if (statusFilter === 'ALL' && !unallocatedOnly) return;\n      const list = (0, _object.get)(this, 'model.invoices');\n      if (!list || !changedInvoices.length) return;\n      const toRemove = changedInvoices.filter(inv => {\n        if (statusFilter !== 'ALL' && (0, _object.get)(inv, 'status') !== statusFilter) return true;\n        if (unallocatedOnly && (0, _object.get)(inv, 'fullyMapped')) return true;\n        return false;\n      });\n      if (toRemove.length) list.removeObjects(toRemove);\n    },\n    async allocateAndSaveInvoiceItems(selectedInvoiceItems, allocation, xeroAccountOverride) {\n      if (!allocation) return this._clearInvoiceItemsAllocation(selectedInvoiceItems, xeroAccountOverride);\n      const allocationIsProject = (0, _object.get)(this, 'model.projects').find(p => p === allocation);\n      if (allocationIsProject) {\n        return this._allocateInvoiceItemsToProject(selectedInvoiceItems, allocation, xeroAccountOverride);\n      } else {\n        return this._allocateInvoiceItemsToTask(selectedInvoiceItems, allocation, xeroAccountOverride);\n      }\n    },\n    async _allocateInvoiceItemsToProject(items, allocation, xeroAccountOverride) {\n      const invoiceItems = items.map(item => {\n        // always clear the other allocation type\n        (0, _object.set)(item, 'project', allocation);\n        (0, _object.set)(item, 'task', null);\n        (0, _object.set)(item, 'glAccount', xeroAccountOverride || allocation.effectivePurchasesGlAccount);\n        return item.toJSON({\n          includeId: true\n        });\n      });\n      await this.buildaPrice.updateInvoiceItems(invoiceItems);\n      return invoiceItems;\n    },\n    async _allocateInvoiceItemsToTask(items, allocation, xeroAccountOverride) {\n      const invoiceItems = items.map(item => {\n        // always clear the other allocation type\n        (0, _object.set)(item, 'task', allocation);\n        (0, _object.set)(item, 'project', null);\n        (0, _object.set)(item, 'glAccount', xeroAccountOverride || allocation.effectivePurchasesGlAccount);\n        return item.toJSON({\n          includeId: true\n        });\n      });\n      await this.buildaPrice.updateInvoiceItems(invoiceItems);\n      return invoiceItems;\n    },\n    async _clearInvoiceItemsAllocation(items, xeroAccountOverride) {\n      const invoiceItems = items.map(item => {\n        (0, _object.set)(item, 'task', null);\n        (0, _object.set)(item, 'project', null);\n        // in this scenario we know all the items are no longer mapped - overwrite the api compted value\n        (0, _object.set)(item, 'isMapped', false);\n        if (xeroAccountOverride) (0, _object.set)(item, 'xeroAccount', xeroAccountOverride);\n        return item.toJSON({\n          includeId: true\n        });\n      });\n      await this.buildaPrice.updateInvoiceItems(invoiceItems);\n      return invoiceItems;\n    },\n    checkInvoiceIsValid(invoices) {\n      // Check all the invoices are valid\n      if (invoices.some(i => !(0, _object.get)(i, 'isValid'))) {\n        return (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.oneOrMoreInvoicesIsNotCompleteAndCannotBeAccepted');\n      }\n      return false;\n    },\n    confirmInvoiceWarnings() {\n      return new Promise(resolve => {\n        const confirmCallback = confirmed => resolve(confirmed);\n        (0, _object.set)(this, 'confirmCallback', confirmCallback);\n        (0, _object.set)(this, 'unmappedInvoiceWarningModalVisible', true);\n      }).then(confirmed => {\n        (0, _object.set)(this, 'unmappedInvoiceWarningModalVisible', false);\n        return confirmed;\n      });\n    },\n    sortXeroInvoicesForSending(invoices) {\n      const unsent = [];\n      const sent = [];\n\n      // If an invoice has already been sent to Xero, push to unsent\n      invoices.forEach(invoice => (0, _object.get)(invoice, 'xeroLinked') ? sent.push(invoice) : unsent.push(invoice));\n      return {\n        unsent,\n        sent\n      };\n    },\n    sortQuickbooksInvoicesForSending(invoices) {\n      const unsent = [];\n      const sent = [];\n\n      // If an invoice has already been sent to quickbooks, push to unsent\n      invoices.forEach(invoice => (0, _object.get)(invoice, 'quickbooksLinked') ? sent.push(invoice) : unsent.push(invoice));\n      return {\n        unsent,\n        sent\n      };\n    },\n    makeSendInvoicesToXeroOutcomeMessage({\n      sent: previouslySent,\n      unsent: previouslyUnsent\n    }) {\n      let message = '';\n      const prevSentCount = (0, _object.get)(previouslySent, 'length');\n      const prevUnsentCount = (0, _object.get)(previouslyUnsent, 'length');\n      if (prevUnsentCount) message += (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.successfullySentXInvoiceToXero', {\n        count: prevUnsentCount,\n        invoice: prevUnsentCount > 1 ? 'invoices' : 'invoice'\n      });\n      if (prevSentCount) message += ` ${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.xInvoiceWereAlreadyImportedToXero', {\n        count: prevSentCount,\n        invoice: prevSentCount > 1 ? 'invoices' : 'invoice'\n      })}`;\n      return message.trim();\n    },\n    makeSendInvoicesToQuickbooksOutcomeMessage({\n      sent: previouslySent,\n      unsent: previouslyUnsent\n    }) {\n      let message = '';\n      const prevSentCount = (0, _object.get)(previouslySent, 'length');\n      const prevUnsentCount = (0, _object.get)(previouslyUnsent, 'length');\n      if (prevUnsentCount) message += `Successfully sent ${prevUnsentCount} ${prevUnsentCount > 1 ? 'invoices' : 'invoice'} to QuickBooks`;\n      if (prevSentCount) message += ` There {be} ${prevSentCount} ${prevSentCount > 1 ? 'invoices' : 'invoice'} already imported to QuickBooks`;\n      return message.trim();\n    },\n    /**\n     * Looks for a project to map to, then either applys the auto mapping and returns true,\n     * or does nothing and returns false.\n     * @param {Object} invoice - The invoice to automap (mutated).\n     * @returns {Boolean} True if changes were made\n     */\n    autoMap(invoice) {\n      // Make sure that there are directives to choose from\n      const allDirectives = (0, _object.get)(this, 'model.directives');\n      if (!(0, _object.get)(allDirectives, 'length')) return false;\n\n      // Get directive from algorithm\n      const directive = (0, _autoMap.default)(invoice, allDirectives);\n\n      // Only attempt a map if we have a directive and something to map to\n      if (directive && directive.belongsTo('project').id()) {\n        (0, _object.set)(invoice, 'isAutoMapped', true);\n        (0, _object.set)(invoice, 'directiveUsed', directive);\n        const project = directive.belongsTo('project').value();\n        invoice.hasMany('items').value().forEach(item => {\n          // Unmap task if we are going to be changing the project\n          if (item.belongsTo('project').id() !== (0, _object.get)(project, 'id')) {\n            (0, _object.set)(item, 'task', null);\n          }\n          // Map the item to the correct project\n          (0, _object.set)(item, 'project', project);\n        });\n        return true;\n      } else {\n        return false;\n      }\n    },\n    async acceptAndSaveInvoice(invoice) {\n      const originalStatus = (0, _object.get)(invoice, 'status');\n      try {\n        (0, _object.set)(invoice, 'status', 'ACCEPTED');\n        await invoice.save();\n      } catch (error) {\n        (0, _object.set)(invoice, 'status', originalStatus);\n        throw error;\n      }\n    },\n    async archiveAndSaveInvoice(invoice) {\n      const originalStatus = (0, _object.get)(invoice, 'status');\n      try {\n        (0, _object.set)(invoice, 'status', 'ARCHIVED');\n        await invoice.save();\n      } catch (error) {\n        (0, _object.set)(invoice, 'status', originalStatus);\n        throw error;\n      }\n    },\n    uncheckInvoices(invoices) {\n      if (!invoices.length) return;\n      for (const invoice of invoices) {\n        (0, _object.set)(invoice, 'checked', false);\n      }\n    },\n    async handleNewAccounts(accounts, entityId) {\n      const newAccounts = await this.store.simpleQuery('gl-account', {\n        entity: entityId,\n        _id: {\n          $in: accounts\n        }\n      });\n      (0, _object.get)(this, 'model.xeroAccounts').pushObjects(newAccounts.toArray().sortBy('code'));\n    },\n    async handleUpdatedAccounts(accounts) {\n      const existingAccounts = (0, _object.get)(this, 'model.xeroAccounts') || [];\n      await _rsvp.default.all(accounts.map(id => {\n        const existingRecord = existingAccounts.find(a => (0, _object.get)(a, 'id') === id);\n        return existingRecord && existingRecord.reload();\n      }));\n    },\n    async handleRemovedAccounts(accounts) {\n      const existingAccounts = (0, _object.get)(this, 'model.xeroAccounts') || [];\n      for (const id of accounts) {\n        const account = existingAccounts.find(a => (0, _object.get)(a, 'id') === id);\n        if (account) {\n          // unload the record\n          existingAccounts.removeObject(account);\n          this.store.unloadRecord(account);\n        }\n      }\n    },\n    async handleNewQuickbooksAccounts(accounts, entityId) {\n      const newAccounts = await this.store.simpleQuery('gl-account', {\n        entity: entityId,\n        _id: {\n          $in: accounts\n        }\n      });\n      (0, _object.get)(this, 'model.quickbooksAccounts').pushObjects(newAccounts.toArray().sortBy('code'));\n    },\n    async handleUpdatedQuickbooksAccounts(accounts) {\n      const existingAccounts = (0, _object.get)(this, 'model.quickbooksAccounts') || [];\n      await _rsvp.default.all(accounts.map(id => {\n        const existingRecord = existingAccounts.find(a => (0, _object.get)(a, 'id') === id);\n        return existingRecord && existingRecord.reload();\n      }));\n    },\n    async handleRemovedQuickbooksAccounts(accounts) {\n      const existingAccounts = (0, _object.get)(this, 'model.quickbooksAccounts') || [];\n      for (const id of accounts) {\n        const account = existingAccounts.find(a => (0, _object.get)(a, 'id') === id);\n        if (account) {\n          // unload the record\n          existingAccounts.removeObject(account);\n          this.store.unloadRecord(account);\n        }\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/builda-price/operations/incoming/bills-legacy/bill\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"rsvp\", \"@ember/service\", \"@ember/object/computed\", \"ember-local-storage\", \"portal/utils/auto-map\", \"lodash\", \"portal/models/attachment\"], function (_exports, _controller, _object, _rsvp, _service, _computed, _emberLocalStorage, _autoMap, _lodash, _attachment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"rsvp\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"ember-local-storage\",0,\"portal/utils/auto-map\",0,\"lodash\",0,\"portal/models/attachment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    intl: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    xeroIntegration: (0, _service.inject)(),\n    quickbooks: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    buildaPrice: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    persistedSettings: (0, _emberLocalStorage.storageFor)('settings'),\n    doNotWarnForUnmappedInvoice: (0, _computed.alias)('persistedSettings.invoices:doNotWarnForUnmappedInvoice'),\n    isEditing: false,\n    isSaving: false,\n    isAccepting: false,\n    isAllocating: false,\n    isAllocatingAndAccepting: false,\n    isAllocatingAcceptingAndSendingToXero: false,\n    selectedItems: null,\n    dirtyRels: null,\n    deletedItems: null,\n    invoiceResponses: [],\n    invoiceTypeResponseHandlerVisible: false,\n    unmappedInvoiceWarningModalVisible: false,\n    acceptedMimeTypes: [..._attachment.shortcutsToMime.image, ..._attachment.shortcutsToMime.text, ..._attachment.shortcutsToMime.document, ..._attachment.shortcutsToMime.archive],\n    pageTitle: (0, _object.computed)('model.invoice.isNew', 'isEditing', 'model.invoice.totalPrice', function () {\n      if ((0, _object.get)(this, 'model.invoice.isNew')) {\n        return (0, _object.get)(this, 'intl').t('common.New bill');\n      } else if ((0, _object.get)(this, 'isEditing') && !(0, _object.get)(this, 'model.invoice.isNew')) {\n        return (0, _object.get)(this, 'intl').t('common.Editing');\n      } else if ((0, _object.get)(this, 'model.invoice.totalPrice') < 0) {\n        return (0, _object.get)(this, 'intl').t('shared.bill.Credit note');\n      } else {\n        return (0, _object.get)(this, 'intl').t('common.Bill');\n      }\n    }),\n    crumbStack: (0, _object.computed)('pageTitle', function () {\n      return [{\n        route: 'entity.builda-price.operations.incoming.bills-legacy.index',\n        pageTitle: (0, _object.get)(this, 'intl').t('common.Bills')\n      }, {\n        pageTitle: (0, _object.get)(this, 'pageTitle')\n      }];\n    }),\n    isDueDateInvalid: (0, _object.computed)('showValidations', 'model.invoice.dueDate', function () {\n      return (0, _object.get)(this, 'showValidations') && !(0, _object.get)(this, 'model.invoice.dueDate');\n    }),\n    isIssueDateInvalid: (0, _object.computed)('showValidations', 'model.invoice.issueDate', function () {\n      return (0, _object.get)(this, 'showValidations') && !(0, _object.get)(this, 'model.invoice.issueDate');\n    }),\n    entityXeroCompanyId: (0, _computed.alias)('xeroIntegration.companyId'),\n    references: (0, _object.computed)('model.invoices.@each.reference', function () {\n      const invoices = (0, _object.get)(this, 'model.invoices').uniqBy('reference').filter(invoice => !(0, _object.get)(invoice, 'hasDirtyAttributes') && (0, _object.get)(invoice, 'reference'));\n      return invoices.sortBy('reference');\n    }),\n    issuerGroupedInvoiceItems: (0, _object.computed)('model.invoice.id', 'model.invoices', function () {\n      const thisInvoiceId = (0, _object.get)(this, 'model.invoice.id');\n      return (0, _object.get)(this, 'model.invoices').reduce((obj, invoice) => {\n        if ((0, _object.get)(invoice, 'id') === thisInvoiceId) return obj;\n        const issuer = (0, _object.get)(invoice, 'issuer') ? (0, _object.get)(invoice, 'issuer').trim() : '';\n        const items = ((0, _object.get)(invoice, 'items').content?.toArray() || []).filter(item => (0, _object.get)(item, 'description'));\n        const existingInvoiceItems = obj[issuer] || [];\n        obj[issuer] = [...existingInvoiceItems, ...items];\n        return obj;\n      }, {});\n    }),\n    names: (0, _object.computed)('issuerGroupedInvoiceItems', 'model.invoice.issuer', function () {\n      const issuer = ((0, _object.get)(this, 'model.invoice.issuer') || '').trim();\n      const items = (0, _object.get)(this, 'issuerGroupedInvoiceItems')[issuer] || [];\n      const uniqueItems = _lodash.default.uniqBy(items, item => (0, _object.get)(item, 'description').trim());\n      const sortedItems = _lodash.default.sortBy(uniqueItems, item => (0, _object.get)(item, 'description').trim());\n      return sortedItems;\n    }),\n    nextInvoice: (0, _object.computed)('model.{invoice,invoices}', function () {\n      const invoices = (0, _object.get)(this, 'model.invoices');\n      const index = invoices.findIndex(invoice => invoice === (0, _object.get)(this, 'model.invoice'));\n      const next = invoices.objectAt(index + 1);\n      const previous = invoices.objectAt(index - 1);\n      return {\n        next: next && (0, _object.get)(next, 'id'),\n        previous: previous && (0, _object.get)(previous, 'id')\n      };\n    }),\n    issuers: (0, _object.computed)('model.suppliers', function () {\n      const suppliers = (0, _object.get)(this, 'model.suppliers');\n      return suppliers.sortBy('name');\n    }),\n    /**\n     * Returns an object who's keys are the indices of the invoice items and values are booleans\n     * which indicate whether that item is selected. e.g.\n     * {\n     *   '0': true,\n     *   '1': false,\n     * }\n     * This is useful for use in the template e.g. {{get isSelected index}}\n     * @type {Object}\n     */\n    isSelected: (0, _object.computed)('model.invoice.sortedItems.[]', 'selectedItems.[]', function () {\n      const selected = (0, _object.get)(this, 'selectedItems');\n      return (0, _object.get)(this, 'model.invoice.sortedItems').reduce((result, item, index) => Object.assign(result, {\n        [index]: selected.includes(item)\n      }), {});\n    }),\n    /**\n     * True if there is at least one item AND all items are selected\n     */\n    allSelected: (0, _object.computed)('model.invoice.activeItems.[]', 'model.invoice.items.[]', 'model.invoice.items.@each.isDeleted', 'selectedItems.length', function () {\n      const itemsCount = (0, _object.get)(this, 'model.invoice.activeItems.length');\n      const selectedCount = (0, _object.get)(this, 'selectedItems.length');\n      return itemsCount && itemsCount === selectedCount;\n    }),\n    invoiceIsValid: (0, _object.computed)('model.invoice.isValid', 'model.invoice.activeItems.[]', 'model.invoice.items.[]', 'model.invoice.items.@each.{isDeleted,isValid}', function () {\n      const invoice = (0, _object.get)(this, 'model.invoice');\n      return (0, _object.get)(invoice, 'isValid') && (0, _object.get)(invoice, 'activeItems').every(i => (0, _object.get)(i, 'isValid'));\n    }),\n    isSecondaryAllocating: (0, _object.computed)('isAllocatingAndAccepting', 'isAllocatingAcceptingAndSendingToXero', function () {\n      return (0, _object.get)(this, 'isAllocatingAndAccepting') || (0, _object.get)(this, 'isAllocatingAcceptingAndSendingToXero');\n    }),\n    actions: {\n      transitionTo(route, id) {\n        this.router.transitionTo(route, id);\n      },\n      setInvoiceIssuer(issuer) {\n        (0, _object.set)(this, 'model.invoice.issuer', issuer);\n        const supplier = ((0, _object.get)(this, 'model.suppliers') || []).find(item => (0, _object.get)(item, 'name') === issuer);\n        const defaultBillAllocationType = supplier ? (0, _object.get)(supplier, 'defaultBillAllocationType') : null;\n        if (defaultBillAllocationType) {\n          (0, _object.set)(this, 'model.invoice.allocationType', defaultBillAllocationType);\n        }\n\n        // If we find a matching supplier with payment terms apply the payment terms to the invoice\n\n        // If we find a matching supplier with payment terms apply the payment terms to the invoice\n        const suppliersWithPaymentTermsHash = (0, _object.get)(this, 'model.suppliersWithPaymentTermsHash') || {};\n        const paymentTermSupplier = suppliersWithPaymentTermsHash[issuer];\n        if (paymentTermSupplier) {\n          const dueDate = paymentTermSupplier.getBillDueDate((0, _object.get)(this, 'model.invoice.issueDate'));\n          (0, _object.set)(this, 'model.invoice.dueDate', dueDate);\n        }\n      },\n      async deleteAttachment(attachment) {\n        try {\n          const billAttachments = (0, _object.get)(this, 'model.invoice').hasMany('attachments').value();\n          const attachmentToBeDeleted = billAttachments.find(item => item.id === attachment.id);\n          await attachmentToBeDeleted?.destroyRecord();\n        } catch (error) {\n          this.notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.somethingWentWrongWhileDeletingTheAttachment')\n          });\n        }\n      },\n      async attachmentsUploadComplete({\n        attachments,\n        validationErrors,\n        error\n      }) {\n        try {\n          if (error) throw error;\n          await Promise.all(attachments.map(async attachment => {\n            return this.store.createRecord('bill-attachment', {\n              bill: this.model.invoice,\n              entity: this.sessionData.entity\n            }).save({\n              adapterOptions: {\n                meta: {\n                  data: attachment.data,\n                  filename: attachment.filename,\n                  fileType: attachment.fileType,\n                  extension: attachment.extension\n                }\n              }\n            });\n          }));\n          validationErrors.forEach(error => this.notifications.error(error));\n        } catch (error) {\n          this.notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.somethingWentWrongWhileSavingAttachments')\n          });\n        }\n      },\n      downloadAttachment(record) {\n        window.open(record.href, '_blank');\n      },\n      /* ---------------------------------- Xero Actions ---------------------------------- */\n      viewInvoiceInXero(entityXeroCompanyId, xeroDeeplinkPath) {\n        window.open(`https://go.xero.com/organisationlogin/default.aspx?shortcode=${entityXeroCompanyId}${xeroDeeplinkPath}`, '_blank');\n      },\n      viewBillInQuickbooks(quickbooksDeeplinkPath) {\n        window.open(quickbooksDeeplinkPath, '_blank');\n      },\n      setItemXeroAccount(item, account) {\n        (0, _object.get)(this, 'dirtyRels').pushObject(item);\n        (0, _object.set)(item, 'glAccount', account);\n      },\n      setItemQuickbooksAccount(item, account) {\n        (0, _object.get)(this, 'dirtyRels').pushObject(item);\n        (0, _object.set)(item, 'glAccount', account);\n      },\n      async updateXeroAccounts() {\n        const xero = (0, _object.get)(this, 'xeroIntegration');\n        const entity = (0, _object.get)(this, 'sessionData.entity');\n        (0, _object.set)(this, 'xeroFetching', true);\n        // Update accounts and get results\n        let results;\n        try {\n          results = await xero.getAccounts(entity);\n        } catch (error) {\n          // Abort the action\n          (0, _object.set)(this, 'xeroFetching', false);\n          return;\n        }\n\n        // Apply results to what has been loaded already\n        try {\n          const {\n            created = [],\n            updated = [],\n            removed = []\n          } = results;\n          // Fetch any newly created accounts\n          if (created.length) {\n            await this.handleNewAccounts(created, (0, _object.get)(entity, 'id'));\n          }\n          // Reload any updated accounts\n          if (updated.length) {\n            await this.handleUpdatedAccounts(updated);\n          }\n          // Unload any removed accounts\n          if (removed.length) {\n            await this.handleRemovedAccounts(removed);\n          }\n        } catch (error) {\n          this.send('error', error);\n        } finally {\n          (0, _object.set)(this, 'xeroFetching', false);\n        }\n      },\n      async updateQuickbooksAccounts() {\n        const quickbooks = (0, _object.get)(this, 'quickbooks');\n        const entity = (0, _object.get)(this, 'sessionData.entity');\n        (0, _object.set)(this, 'quickbooksFetching', true);\n        // Update accounts and get results\n        let results;\n        try {\n          results = await quickbooks.getAccounts(entity);\n        } catch (error) {\n          // Abort the action\n          (0, _object.set)(this, 'quickbooksFetching', false);\n          return;\n        }\n\n        // Apply results to what has been loaded already\n        try {\n          const {\n            created = [],\n            updated = [],\n            removed = []\n          } = results;\n          // Fetch any newly created accounts\n          if (created.length) {\n            await this.handleNewQuickbooksAccounts(created, (0, _object.get)(entity, 'id'));\n          }\n          // Reload any updated accounts\n          if (updated.length) {\n            await this.handleUpdatedQuickbooksAccounts(updated);\n          }\n          // Unload any removed accounts\n          if (removed.length) {\n            await this.handleRemovedQuickbooksAccounts(removed);\n          }\n        } catch (error) {\n          this.send('error', error);\n        } finally {\n          (0, _object.set)(this, 'quickbooksFetching', false);\n        }\n      },\n      async sendToXero(acceptedCreditNoteMessage) {\n        const xero = (0, _object.get)(this, 'xeroIntegration');\n        const invoice = (0, _object.get)(this, 'model.invoice');\n        if ((0, _object.get)(invoice, 'totalPrice') < 0 && !acceptedCreditNoteMessage) {\n          (0, _object.set)(this, 'showCreditNoteMessage', true);\n          return;\n        }\n        (0, _object.set)(this, 'loadingXero', true);\n        try {\n          const response = await xero.sendBill(invoice);\n          const hasRejection = response?.attachments?.some(resp => resp.rejected);\n          if (hasRejection) {\n            (0, _object.set)(this, 'invoiceResponses', [response]);\n            (0, _object.set)(this, 'invoiceTypeResponseHandlerVisible', true);\n          } else if (response) {\n            (0, _object.get)(this, 'notifications').success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.Sent bill to Xero'));\n          }\n          (0, _object.set)(this, 'showCreditNoteMessage', false);\n        } finally {\n          (0, _object.set)(this, 'loadingXero', false);\n        }\n      },\n      async sendToQuickBooks(acceptedCreditNoteMessage) {\n        const quickbooks = (0, _object.get)(this, 'quickbooks');\n        const invoice = (0, _object.get)(this, 'model.invoice');\n        if ((0, _object.get)(invoice, 'totalPrice') < 0 && !acceptedCreditNoteMessage) {\n          (0, _object.set)(this, 'showCreditNoteMessage', true);\n          return;\n        }\n        (0, _object.set)(this, 'loadingQuickbooks', true);\n        try {\n          const response = await quickbooks.sendBill(invoice);\n          const filterResponses = (response || []).filter(r => Boolean(r));\n          if (filterResponses?.length) {\n            (0, _object.set)(this, 'invoiceResponses', [filterResponses]);\n            (0, _object.set)(this, 'invoiceTypeResponseHandlerVisible', true);\n          } else {\n            (0, _object.get)(this, 'notifications').success((0, _object.get)(this, 'intl').t('shared.notification.Sent bill to QuickBooks'));\n          }\n          (0, _object.set)(this, 'showCreditNoteMessage', false);\n        } finally {\n          (0, _object.set)(this, 'loadingQuickbooks', false);\n        }\n      },\n      async acceptInvoiceAndSendToXero(confirmUnmappedItems) {\n        const invoice = (0, _object.get)(this, 'model.invoice');\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'unmappedInvoiceWarningModalVisible', false);\n          (0, _object.set)(this, 'continueActionAfterUnmappedWarning', null);\n          if ((0, _object.get)(invoice, 'status') === 'ACCEPTED') {\n            await this.actions.sendToXero.call(this);\n            return;\n          }\n          await this.actions.acceptInvoice.call(this, confirmUnmappedItems);\n          if ((0, _object.get)(this, 'unmappedInvoiceWarningModalVisible')) {\n            (0, _object.set)(this, 'continueActionAfterUnmappedWarning', 'acceptAndSend');\n            return;\n          }\n          if ((0, _object.get)(invoice, 'status') === 'ACCEPTED') {\n            await this.actions.sendToXero.call(this);\n          }\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.errorWhileSendingToXero')\n          });\n        } finally {\n          if (!(0, _object.get)(this, 'unmappedInvoiceWarningModalVisible')) {\n            (0, _object.set)(this, 'continueActionAfterUnmappedWarning', null);\n          }\n        }\n      },\n      async acceptInvoiceAndSendToQuickbooks(confirmUnmappedItems) {\n        const invoice = (0, _object.get)(this, 'model.invoice');\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'unmappedInvoiceWarningModalVisible', false);\n          (0, _object.set)(this, 'continueActionAfterUnmappedWarning', null);\n          if ((0, _object.get)(invoice, 'status') === 'ACCEPTED') {\n            await this.actions.sendToQuickBooks.call(this);\n            return;\n          }\n          await this.actions.acceptInvoice.call(this, confirmUnmappedItems);\n          if ((0, _object.get)(this, 'unmappedInvoiceWarningModalVisible')) {\n            (0, _object.set)(this, 'continueActionAfterUnmappedWarning', 'acceptAndSend');\n            return;\n          }\n          if ((0, _object.get)(invoice, 'status') === 'ACCEPTED') {\n            await this.actions.sendToQuickBooks.call(this);\n          }\n        } catch (error) {\n          notifications.error({\n            error,\n            message: 'There was an error while accepting or sending the bill to QuickBooks'\n          });\n        } finally {\n          if (!(0, _object.get)(this, 'unmappedInvoiceWarningModalVisible')) {\n            (0, _object.set)(this, 'continueActionAfterUnmappedWarning', null);\n          }\n        }\n      },\n      /* ---------------------------------- Manage Page State ---------------------------------- */\n      nextStep() {\n        (0, _object.set)(this, 'newInvoiceStep', (0, _object.get)(this, 'newInvoiceStep') + 1);\n      },\n      toggleSelectItem(item, event) {\n        // Get selected\n        const selected = (0, _object.get)(this, 'selectedItems');\n\n        // Check whether item is selected\n        if (selected.includes(item)) {\n          selected.removeObject(item);\n        } else {\n          selected.pushObject(item);\n        }\n\n        // Stop event propogation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      toggleSelectAll(event) {\n        // Set selectedItems to a copy of the ivoice's items array\n        if ((0, _object.get)(this, 'allSelected')) {\n          (0, _object.set)(this, 'selectedItems', []);\n        } else {\n          (0, _object.set)(this, 'selectedItems', [...(0, _object.get)(this, 'model.invoice.activeItems')]);\n        }\n\n        // Stop event propogation to disable native checkbox behaviour\n        event.stopPropagation();\n      },\n      cancel() {\n        const invoice = (0, _object.get)(this, 'model.invoice');\n        const invoiceWasNew = (0, _object.get)(invoice, 'isNew');\n\n        // Drop any changes (including entire records if they are new)\n        (0, _object.get)(this, 'deletedItems').forEach(item => item.rollbackAttributes());\n        ((0, _object.get)(invoice, 'items').content?.toArray() || []).forEach(item => item.rollbackAttributes());\n        invoice.rollbackAttributes();\n        (0, _object.set)(this, 'dirtyRels', []);\n        (0, _object.set)(this, 'deletedItems', []);\n        (0, _object.set)(this, 'selectedItems', ((0, _object.get)(invoice, 'items').content?.toArray() || []).filter(item => !(0, _object.get)(item, 'isDeleted')));\n\n        // If the invoice hadn't been saved yet. Then we have no reason to be on this page any more\n        if (invoiceWasNew) {\n          this.router.transitionTo('entity.builda-price.operations.incoming.bills-legacy');\n        } else {\n          // Put the page back in the non editing state\n          (0, _object.set)(this, 'isEditing', false);\n        }\n      },\n      onInvoiceTypeResponseHandlerCancel() {\n        (0, _object.set)(this, 'invoiceResponses', []);\n        (0, _object.set)(this, 'invoiceTypeResponseHandlerVisible', false);\n      },\n      /* ---------------------------------- Manage Invoice ---------------------------------- */\n      async autoMap() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const invoice = (0, _object.get)(this, 'model.invoice');\n        const didMakeChanges = this.autoMap(invoice);\n        if (!didMakeChanges) {\n          notifications.info('Auto mapping had no effect');\n          return;\n        }\n        (0, _object.set)(this, 'isAutoMapping', true);\n        try {\n          const invoiceItems = [];\n          const promises = [];\n          promises.push(invoice.save());\n          invoice.hasMany('items').value().forEach(item => invoiceItems.push(item.toJSON({\n            includeId: true\n          })));\n          promises.push(this.buildaPrice.updateInvoiceItems(invoiceItems));\n          await _rsvp.default.all(promises);\n          notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.Auto mapping successful'));\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.There was an error while auto mapping')\n          });\n        } finally {\n          (0, _object.set)(this, 'isAutoMapping', false);\n        }\n      },\n      async acceptInvoice(confirmUnmappedItems) {\n        const invoice = (0, _object.get)(this, 'model.invoice');\n        const notifications = (0, _object.get)(this, 'notifications');\n        const invoiceItems = (0, _object.get)(invoice, 'activeItems') || [];\n        const unmappedItems = invoiceItems.filter(item => !item.belongsTo('project').id() && !item.belongsTo('task').id());\n        try {\n          // Check invoice is valid for acceptance\n          const invalidInvoiceMessage = this.checkInvoiceIsValid(invoice);\n          if (invalidInvoiceMessage) {\n            notifications.warning(invalidInvoiceMessage);\n            (0, _object.set)(this, 'showValidations', true);\n            return;\n          }\n          // Warn user the invoice is unmapped\n          if (unmappedItems.length && !confirmUnmappedItems && !(0, _object.get)(this, 'doNotWarnForUnmappedInvoice')) {\n            (0, _object.set)(this, 'unmappedInvoiceWarningModalVisible', true);\n            return;\n          } else {\n            (0, _object.set)(this, 'unmappedInvoiceWarningModalVisible', false);\n          }\n          (0, _object.set)(this, 'isAccepting', true);\n          (0, _object.set)(invoice, 'status', 'ACCEPTED');\n          await this.saveInvoice(invoice);\n          notifications.success('Successfully accepted bill');\n        } catch (error) {\n          (0, _object.get)(this, 'notifications').error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.thereWasAnErrorWhileAcceptingTheBill')\n          });\n        } finally {\n          (0, _object.set)(this, 'isAccepting', false);\n        }\n      },\n      changeStatus(status) {\n        (0, _object.set)(this, 'model.invoice.status', status);\n        (0, _object.get)(this, 'model.invoice').save();\n      },\n      addItem() {\n        this.store.createRecord('bill-item', {\n          bill: (0, _object.get)(this, 'model.invoice'),\n          unitPrice: 0,\n          entity: (0, _object.get)(this, 'sessionData.entity')\n        });\n      },\n      deleteItem(item) {\n        (0, _object.get)(this, 'selectedItems')?.removeObject(item);\n        if (!(0, _object.get)(item, 'isNew')) {\n          (0, _object.get)(this, 'deletedItems').addObject(item);\n        }\n        item.deleteRecord();\n      },\n      async save() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const invoice = (0, _object.get)(this, 'model.invoice');\n\n        // Abort if the invoice is not valid\n        const invalidInvoiceMessage = this.checkInvoiceIsValid(invoice);\n        if (invalidInvoiceMessage) {\n          notifications.warning(invalidInvoiceMessage);\n          (0, _object.set)(this, 'showValidations', true);\n          return;\n        }\n        (0, _object.set)(this, 'isSaving', true);\n        try {\n          const invoiceWasNew = (0, _object.get)(invoice, 'isNew');\n          const numberOfSaves = await this.saveInvoice(invoice);\n          (0, _object.set)(this, 'selectedItems', ((0, _object.get)(invoice, 'items').content.toArray() || []).filter(item => !(0, _object.get)(item, 'isDeleted')));\n          (0, _object.set)(this, 'dirtyRels', []);\n          (0, _object.set)(this, 'deletedItems', []);\n          if (numberOfSaves) {\n            notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.Bill successfully saved'));\n          } else {\n            notifications.info((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.Nothing to save'));\n          }\n\n          // if the issuer is not found in suppliers, save the supplier, then ask the user if they would like add any information\n          if (this.checkForNewSupplier(invoice)) {\n            const name = (0, _object.get)(invoice, 'issuer');\n            const entity = (0, _object.get)(this, 'sessionData.entity');\n            const newSupplier = await this.store.createRecord('contact', {\n              name,\n              entity\n            });\n            await newSupplier.save();\n            (0, _object.get)(this, 'model.suppliers').pushObject(newSupplier);\n            (0, _object.set)(this, 'nextNewSupplier', newSupplier);\n            (0, _object.set)(this, 'newSupplierUpdateVisible', true);\n          }\n          (0, _object.set)(this, 'showValidations', false);\n\n          // Tidy up. If the invoice was new, this means transitioning to its unique URL.\n          // If not, then this means putting the page back in the non editing state.\n          if (invoiceWasNew) {\n            await this.store.query('bill', {\n              filter: {\n                and: [{\n                  field: 'entity',\n                  op: 'EQ',\n                  value: (0, _object.get)(this, 'sessionData.entity.id')\n                }, {\n                  field: 'billNumber',\n                  op: 'EQ',\n                  value: (0, _object.get)(invoice, 'billNumber')\n                }]\n              },\n              fields: {\n                bills: '_meta.hasDuplicate'\n              }\n            });\n            this.send('invoiceAdded', invoice);\n            this.router.transitionTo('entity.builda-price.operations.incoming.bills-legacy.bill', (0, _object.get)(invoice, 'id'));\n          } else {\n            (0, _object.set)(this, 'isEditing', false);\n          }\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.There was an error while saving the bill')\n          });\n        } finally {\n          (0, _object.set)(this, 'isSaving', false);\n        }\n      },\n      /**\n       * Applies the allocation to the selectedItems, saves the items,\n       * and refreshes any totals records that may have been affected.\n       * @param {Object} allocation - Contains project and task.\n       * @param {Object} xeroAccountOverride - Contains the xero account override from the allocate modal.\n       * @returns {void}\n       */\n      async allocateSelected(allocation, xeroAccountOverride) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'isAllocating', true);\n          const selectedItems = (0, _object.get)(this, 'selectedItems');\n\n          // Allocate and save the invoice items\n          await this.allocateAndSaveInvoiceItems(selectedItems, allocation, xeroAccountOverride);\n          notifications.success((0, _object.get)(this, 'intl').t('shared.notification.Items successfully allocated'));\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.somethingWentWrongWhileAllocatingItems')\n          });\n        } finally {\n          // Close the allocating dialog\n          (0, _object.set)(this, 'allocatingItems', false);\n          (0, _object.set)(this, 'isAllocating', false);\n        }\n      },\n      async allocateAndAcceptSelected(allocation, xeroAccountOverride) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const invoice = (0, _object.get)(this, 'model.invoice');\n\n        // If invoice is not valid, it can't be accepted\n        const invalidInvoiceMessage = this.checkInvoiceIsValid(invoice);\n        if (invalidInvoiceMessage) {\n          notifications.warning(invalidInvoiceMessage);\n          (0, _object.set)(this, 'showValidations', true);\n          return;\n        }\n        try {\n          const selectedItems = (0, _object.get)(this, 'selectedItems');\n          (0, _object.set)(this, 'isAllocatingAndAccepting', true);\n\n          // Allocate and save the invoice items\n          await this.allocateAndSaveInvoiceItems(selectedItems, allocation, xeroAccountOverride);\n\n          // Accept and save the invoices\n          (0, _object.set)(invoice, 'status', 'ACCEPTED');\n          await this.saveInvoice(invoice);\n          notifications.success((0, _object.get)(this, 'intl').t('shared.notification.billsSuccessfullyAllocatedAndAccepted'));\n        } catch (error) {\n          notifications.error({\n            error,\n            message: (0, _object.get)(this, 'intl').t('shared.notification.somethingWentWrongWhileAllocatingAndAcceptingBill')\n          });\n        } finally {\n          // Close the allocating dialog\n          (0, _object.set)(this, 'isAllocatingAndAccepting', false);\n          (0, _object.set)(this, 'allocatingItems', false);\n        }\n      },\n      async allocateAcceptAndSendToXeroSelected(allocation, xeroAccountOverride) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const xero = (0, _object.get)(this, 'xeroIntegration');\n        const invoice = (0, _object.get)(this, 'model.invoice');\n\n        // If invoice is not valid, it can't be accepted\n        const invalidInvoiceMessage = this.checkInvoiceIsValid(invoice);\n        if (invalidInvoiceMessage) {\n          notifications.warning(invalidInvoiceMessage);\n          (0, _object.set)(this, 'showValidations', true);\n          return;\n        }\n        try {\n          const selectedItems = (0, _object.get)(this, 'selectedItems');\n          (0, _object.set)(this, 'isAllocatingAcceptingAndSendingToXero', true);\n\n          // Allocate and save the invoice items\n          await this.allocateAndSaveInvoiceItems(selectedItems, allocation, xeroAccountOverride);\n\n          // Accept and save the invoices\n          (0, _object.set)(invoice, 'status', 'ACCEPTED');\n          await this.saveInvoice(invoice);\n          if ((0, _object.get)(invoice, 'xeroLinked')) {\n            notifications.info(`${(0, _object.get)(this, 'intl').t('shared.notification.billsSuccessfullyAllocatedAndAccepted')} ${(0, _object.get)(this, 'intl').t('shared.notification.The bills were already sent to Xero')}`);\n            return;\n          }\n          const response = await xero.sendBill(invoice);\n          const hasRejection = response?.attachments?.some(resp => resp.rejected);\n          if (hasRejection) {\n            (0, _object.set)(this, 'invoiceResponses', [response]);\n            (0, _object.set)(this, 'invoiceTypeResponseHandlerVisible', true);\n          } else if (response) {\n            notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.Sent bill to Xero'));\n          }\n\n          // Xero integration will handle its own errors and notifications\n        } catch (error) {\n          if (error === 'xero-company-error') {\n            // Notify the user of the company error by pulling up the modal\n            (0, _object.set)(this, 'wrongXeroCompanyModalVisible', true);\n          } else {\n            // Xero integration will handle its own errors and notifications\n            notifications.error({\n              error,\n              message: (0, _object.get)(this, 'intl').t('shared.notification.thereWasAProblemAllocatingAcceptingOrSendingTheInvoicesToXero')\n            });\n          }\n        } finally {\n          // Close the allocating dialog\n          (0, _object.set)(this, 'allocatingItems', false);\n          (0, _object.set)(this, 'isAllocatingAcceptingAndSendingToXero', false);\n        }\n      },\n      /* ---------------------------------- Supplier ---------------------------------- */\n      async updateNewSupplier(supplier) {\n        if (!supplier) return;\n        (0, _object.set)(this, 'isSaving', true);\n        try {\n          await supplier.save();\n          (0, _object.get)(this, 'notifications').success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.successfullyUpdatedSupplierName', {\n            name: (0, _object.get)(supplier, 'name')\n          }));\n        } catch (err) {\n          this._handleError(err);\n        } finally {\n          (0, _object.set)(this, 'newSupplierUpdateVisible', false);\n          (0, _object.set)(this, 'newSupplierIsBeingUpdated', false);\n          (0, _object.set)(this, 'isSaving', false);\n        }\n      }\n    },\n    async allocateAndSaveInvoiceItems(selectedItems, allocation, xeroAccountOverride) {\n      if (!allocation) return this._clearInvoiceItemsAllocation(selectedItems, xeroAccountOverride);\n      const allocationIsProject = (0, _object.get)(this, 'model.projects').find(p => p === allocation);\n      if (allocationIsProject) {\n        return this._allocateInvoiceItemsToProject(selectedItems, allocation, xeroAccountOverride);\n      } else {\n        return this._allocateInvoiceItemsToTask(selectedItems, allocation, xeroAccountOverride);\n      }\n    },\n    async _allocateInvoiceItemsToProject(items, allocation, xeroAccountOverride) {\n      const invoiceItems = items.map(item => {\n        // always clear the other allocation type\n        (0, _object.set)(item, 'project', allocation);\n        (0, _object.set)(item, 'task', null);\n        (0, _object.set)(item, 'glAccount', xeroAccountOverride || allocation.effectivePurchasesGlAccount);\n        return item.toJSON({\n          includeId: true\n        });\n      });\n      await this.buildaPrice.updateInvoiceItems(invoiceItems);\n      return invoiceItems;\n    },\n    async _allocateInvoiceItemsToTask(items, allocation, xeroAccountOverride) {\n      const invoiceItems = items.map(item => {\n        // always clear the other allocation type\n        (0, _object.set)(item, 'task', allocation);\n        (0, _object.set)(item, 'project', null);\n        (0, _object.set)(item, 'glAccount', xeroAccountOverride || allocation.effectivePurchasesGlAccount);\n        return item.toJSON({\n          includeId: true\n        });\n      });\n      await this.buildaPrice.updateInvoiceItems(invoiceItems);\n      return invoiceItems;\n    },\n    async _clearInvoiceItemsAllocation(items, xeroAccountOverride) {\n      const invoiceItems = items.map(item => {\n        (0, _object.set)(item, 'task', null);\n        (0, _object.set)(item, 'project', null);\n        // in this scenario we know all the items are no longer mapped - overwrite the api compted value\n        (0, _object.set)(item, 'isMapped', false);\n        if (xeroAccountOverride) (0, _object.set)(item, 'glAccount', xeroAccountOverride);\n        return item.toJSON({\n          includeId: true\n        });\n      });\n      await this.buildaPrice.updateInvoiceItems(invoiceItems);\n      return invoiceItems;\n    },\n    async handleNewAccounts(accounts, entityId) {\n      const newAccounts = await this.store.simpleQuery('gl-account', {\n        entity: entityId,\n        _id: {\n          $in: accounts\n        }\n      });\n      (0, _object.get)(this, 'model.xeroAccounts').pushObjects(newAccounts.toArray().sortBy('code'));\n    },\n    async handleUpdatedAccounts(accounts) {\n      const existingAccounts = (0, _object.get)(this, 'model.xeroAccounts') || [];\n      await _rsvp.default.all(accounts.map(id => {\n        const existingRecord = existingAccounts.find(a => (0, _object.get)(a, 'id') === id);\n        return existingRecord && existingRecord.reload();\n      }));\n    },\n    async handleRemovedAccounts(accounts) {\n      const existingAccounts = (0, _object.get)(this, 'model.xeroAccounts') || [];\n      for (const id of accounts) {\n        const account = existingAccounts.find(a => (0, _object.get)(a, 'id') === id);\n        if (account) {\n          // unload the record\n          existingAccounts.removeObject(account);\n          this.store.unloadRecord(account);\n        }\n      }\n    },\n    async handleNewQuickbooksAccounts(accounts, entityId) {\n      const newAccounts = await this.store.simpleQuery('gl-account', {\n        entity: entityId,\n        _id: {\n          $in: accounts\n        }\n      });\n      (0, _object.get)(this, 'model.quickbooksAccounts').pushObjects(newAccounts.toArray().sortBy('code'));\n    },\n    async handleUpdatedQuickbooksAccounts(accounts) {\n      const existingAccounts = (0, _object.get)(this, 'model.quickbooksAccounts') || [];\n      await _rsvp.default.all(accounts.map(id => {\n        const existingRecord = existingAccounts.find(a => (0, _object.get)(a, 'id') === id);\n        return existingRecord && existingRecord.reload();\n      }));\n    },\n    async handleRemovedQuickbooksAccounts(accounts) {\n      const existingAccounts = (0, _object.get)(this, 'model.quickbooksAccounts') || [];\n      for (const id of accounts) {\n        const account = existingAccounts.find(a => (0, _object.get)(a, 'id') === id);\n        if (account) {\n          // unload the record\n          existingAccounts.removeObject(account);\n          this.store.unloadRecord(account);\n        }\n      }\n    },\n    /**\n     * Looks for a project to map to, then either applys the auto mapping and returns true,\n     * or does nothing and returns false.\n     * @param {Object} invoice - The invoice to automap (mutated).\n     * @returns {Boolean} True if changes were made\n     */\n    autoMap(invoice) {\n      // Make sure that there are directives to choose from\n      const allDirectives = (0, _object.get)(this, 'model.directives');\n      if (!(0, _object.get)(allDirectives, 'length')) return false;\n\n      // Get directive from algorithm\n      const directive = (0, _autoMap.default)(invoice, allDirectives);\n\n      // Only attempt a map if we have a directive and something to map to\n      if (directive && directive.belongsTo('project').id()) {\n        (0, _object.set)(invoice, 'isAutoMapped', true);\n        (0, _object.set)(invoice, 'directiveUsed', directive);\n        const project = directive.belongsTo('project').value();\n        invoice.hasMany('items').value().forEach(item => {\n          // Unmap task if we are going to be changing the project\n          if (item.belongsTo('project').id() !== (0, _object.get)(project, 'id')) {\n            (0, _object.set)(item, 'task', null);\n          }\n          // Map the item to the correct project\n          (0, _object.set)(item, 'autoMappedToPm', project);\n          (0, _object.set)(item, 'project', project);\n        });\n        return true;\n      } else {\n        return false;\n      }\n    },\n    /**\n     * Performs the save (including items), does not do any validation\n     * @param {SupplierInvoice} invoice\n     * @returns {Promise<Number>} - Resolves to the number of saves completed\n     */\n    saveInvoice(invoice) {\n      // If the invoice is new, save it first so that we have its id for the relationship\n      const saveInvoice = (0, _object.get)(invoice, 'isNew') ? invoice.save() : _rsvp.default.resolve();\n\n      // Only save each of the items and the invoice,\n      // only if they have dirty attributes.\n      return saveInvoice.then(() => {\n        const invoiceItems = (0, _object.get)(invoice, 'items').content?.toArray() || [];\n        const deletedItems = (0, _object.get)(this, 'deletedItems').filter(record => !invoiceItems.includes(record));\n        return _rsvp.default.all([invoice, ...invoiceItems, ...deletedItems].reduce((saves, record) => {\n          if ((0, _object.get)(record, 'isDeleted') || (0, _object.get)(record, 'hasDirtyAttributes') || (0, _object.get)(this, 'dirtyRels').includes(record)) {\n            return [...saves, record.save()];\n          } else {\n            return saves;\n          }\n        }, [])).then(saves => saves.length);\n      });\n    },\n    /**\n     * checks the invoice for a new supplier.\n     * @param {SupplierInvoice} invoice - The invoice to check\n     * @returns {Boolean} returns \"is the supplier new\"\n     */\n    checkForNewSupplier(invoice) {\n      const issuer = (0, _object.get)(invoice, 'issuer');\n      if (!issuer) return false;\n      const suppliers = (0, _object.get)(this, 'model.suppliers');\n      const supplier = suppliers.find(supplier => (0, _object.get)(supplier, 'name') === issuer);\n      if (supplier) return false;\n      return true;\n    },\n    checkInvoiceIsValid(invoice) {\n      // If invoice is not valid, it can't be accepted\n      if (!(0, _object.get)(invoice, 'isValid')) {\n        return (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.bills-legacy.bill.pleaseCompleteTheRequiredFieldsBeforeAcceptingTheBill');\n      }\n      return false;\n    }\n  });\n});","define(\"portal/controllers/entity/builda-price/operations/incoming/bills\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/runloop\", \"@glimmer/tracking\", \"@ember/service\", \"portal/config/environment\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _runloop, _tracking, _service, _environment, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EntityBuildaPriceOperationsIncomingBillsController = _exports.default = (_class = class EntityBuildaPriceOperationsIncomingBillsController extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"billsData\", _descriptor, this);\n      _initializerDefineProperty(this, \"ips\", _descriptor2, this);\n      _defineProperty(this, \"queryParams\", ['search', 'status', 'sort', 'startDate', 'endDate']);\n      _initializerDefineProperty(this, \"search\", _descriptor3, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor4, this);\n      _initializerDefineProperty(this, \"status\", _descriptor5, this);\n      _initializerDefineProperty(this, \"billType\", _descriptor6, this);\n      _initializerDefineProperty(this, \"allocationType\", _descriptor7, this);\n      _initializerDefineProperty(this, \"sort\", _descriptor8, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor0, this);\n      _initializerDefineProperty(this, \"showPdfUploader\", _descriptor1, this);\n      _initializerDefineProperty(this, \"showBillsUploader\", _descriptor10, this);\n      _initializerDefineProperty(this, \"condensedView\", _descriptor11, this);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n    }\n    updateSearchTerm(value) {\n      this.search = value;\n    }\n    onFromDateChange(e) {\n      this.startDate = e.target.value;\n    }\n    onToDateChange(e) {\n      this.endDate = e.target.value;\n    }\n    get humanReadableStatusPill() {\n      switch (this.status) {\n        case 'DRAFT':\n          return 'Draft';\n        case 'AWAITING_APPROVAL':\n          return 'Awaiting approval';\n        case 'ACCEPTED':\n          return 'Accepted';\n        case 'ARCHIVED':\n          return 'Archived';\n        case 'HELD':\n          return 'Held';\n        case 'PAID':\n          return 'Paid';\n      }\n      return null;\n    }\n    get humanReadableBillTypePill() {\n      switch (this.billType) {\n        case 'BILL':\n          return 'Bill';\n        case 'CREDIT_NOTE':\n          return 'Credit Note';\n      }\n      return '';\n    }\n    get humanReadableAllocationTypePill() {\n      switch (this.allocationType) {\n        case 'LABOUR':\n          return 'Labour';\n        case 'MATERIALS':\n          return 'Materials';\n        case 'SUBCONTRACTORS':\n          return 'Subcontractors';\n      }\n      return '';\n    }\n    async onUploadBillsCSV() {\n      await this.billsData.loadBills.perform(this.model.filter, this.model.fields, this.model.sort, this.model.pageSize);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"billsData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"search\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.search;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"status\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'DRAFT';\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"billType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"allocationType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"sort\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '-dateCreated';\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"showPdfUploader\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"showBillsUploader\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"condensedView\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onFromDateChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onFromDateChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onToDateChange\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onToDateChange\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onUploadBillsCSV\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onUploadBillsCSV\"), _class.prototype), _class);\n});","define(\"portal/controllers/entity/builda-price/operations/incoming/statements\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"portal/config/environment\"], function (_exports, _controller, _service, _tracking, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const STATEMENTS_URL = `${_environment.default.urls.statementReconciliationUrl}/statements`;\n  let EntityBuildaPriceStatementsController = _exports.default = (_class = class EntityBuildaPriceStatementsController extends _controller.default {\n    refreshIframeSrc() {\n      this.iframeSrc = this.buildIframeUrl();\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"ips\", _descriptor2, this);\n      _initializerDefineProperty(this, \"session\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      // Snapshot of the embed url, refreshed by the route on every entry. It is\n      // deliberately not a getter: a background token refresh (or another tab\n      // refreshing it, which replaces `session.content` wholesale) would otherwise\n      // rewrite `src` and reload the embed while the user is working in it. Token\n      // expiry is handled in place by the message handler below.\n      _initializerDefineProperty(this, \"iframeSrc\", _descriptor5, this);\n      _defineProperty(this, \"handleEmbedAuthExpired\", event => {\n        if (event.origin !== new URL(STATEMENTS_URL).origin || event.data?.type !== 'portal-embed-auth-expired' || !event.source) {\n          return;\n        }\n        event.source.location = this.buildIframeUrl();\n      });\n      window.addEventListener('message', this.handleEmbedAuthExpired);\n    }\n    willDestroy() {\n      window.removeEventListener('message', this.handleEmbedAuthExpired);\n      super.willDestroy(...arguments);\n    }\n    buildIframeUrl() {\n      const url = new URL(STATEMENTS_URL);\n      url.searchParams.set('access_token', this.session.data.authenticated.access_token);\n      url.searchParams.set('access_token_expiry_date', this.session.data.authenticated.expires_at);\n      url.searchParams.set('entity', this.sessionData.entity.id);\n\n      // the embed is told what the host allows, not why\n      url.searchParams.set('can_upload_statements', this.ips.ready ? '1' : '0');\n      url.searchParams.set('upload_statements_disabled', this.ips.canSubmitDocuments ? '0' : '1');\n      return url.toString();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"iframeSrc\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/controllers/entity/builda-price/operations/incoming/timesheets\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/object/computed\", \"moment\", \"ember-local-storage\", \"@ember/service\", \"rsvp\"], function (_exports, _controller, _object, _computed, _moment, _emberLocalStorage, _service, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.TimesheetProjectMeta = _exports.TimesheetDayMeta = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"moment\",0,\"ember-local-storage\",0,\"@ember/service\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    acceptingTimesheets: false,\n    allGroupsSelected: false,\n    selectedTimesheetStatus: 'all',\n    persistedSettings: (0, _emberLocalStorage.storageFor)('settings'),\n    startDate: (0, _computed.alias)('persistedSettings.timesheets:startDate'),\n    endDate: (0, _computed.alias)('persistedSettings.timesheets:endDate'),\n    jsEndDate: (0, _object.computed)('endDate', {\n      get() {\n        const savedDate = (0, _object.get)(this, 'endDate') || (0, _moment.default)().endOf('isoWeek');\n        return (0, _moment.default)(savedDate).toDate();\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'endDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        this.send('refreshModel');\n        return value;\n      }\n    }),\n    jsStartDate: (0, _object.computed)('startDate', {\n      get() {\n        const start = (0, _object.get)(this, 'startDate') || (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks');\n        return (0, _moment.default)(start).toDate();\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'startDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        this.send('refreshModel');\n        return value;\n      }\n    }),\n    searchString: '',\n    filteredTimesheets: (0, _object.computed)('model.timesheets.[]', 'searchString', function () {\n      const searchStrings = (0, _object.get)(this, 'searchString').split(' ');\n      const timesheets = (0, _object.get)(this, 'model.timesheets');\n      if (searchStrings[0].length) {\n        return timesheets.filter(timesheet => searchStrings.every(string => {\n          const searchString = new RegExp(string, 'ig');\n          const timesheetString = `\n            ${(0, _object.get)(timesheet, 'worker.firstName') === undefined ? '' : (0, _object.get)(timesheet, 'worker.firstName')}\n            ${(0, _object.get)(timesheet, 'worker.lastName') === undefined ? '' : (0, _object.get)(timesheet, 'worker.lastName')}\n            ${(0, _object.get)(timesheet, 'project.name') === undefined ? '' : (0, _object.get)(timesheet, 'project.name')}\n            ${(0, _object.get)(timesheet, 'project.address') === undefined ? '' : (0, _object.get)(timesheet, 'project.address')}\n            ${(0, _object.get)(timesheet, 'task.name') === undefined ? '' : (0, _object.get)(timesheet, 'task.name')}\n          }`;\n          return timesheetString.match(searchString);\n        }));\n      } else {\n        return timesheets;\n      }\n    }),\n    /*\n     * [{\n     *   date: Date,\n     *   allSelected: Boolean,\n     *   dayMetas: [{\n     *     date: Date,\n     *     worker: Worker,\n     *     timesheetNote: TimesheetNote,\n     *     totalTime: Number,\n     *     isSelected: Boolean,\n     *     projectMetas: [{\n     *       date: Date,\n     *       worker: Worker,\n     *       project: project,\n     *       timesheetStatus: TimesheetStatus,\n     *       totalTime: Number,\n     *       isSelected: Boolean,\n     *       timesheets: [Timesheet]\n     *     }]\n     *   }]\n     * }]\n     */\n    groupedTimesheets: (0, _object.computed)('filteredTimesheets.[]', 'model.timesheetNotes.[]', 'model.timesheetStatuses.[]', 'selectedTimesheetStatus', function () {\n      return buildMetas((0, _object.get)(this, 'model.timesheetNotes'), (0, _object.get)(this, 'model.timesheetStatuses'), (0, _object.get)(this, 'filteredTimesheets'), (0, _object.get)(this, 'selectedTimesheetStatus'), this.newFeatureFlags);\n    }),\n    anySelected: (0, _object.computed)('filteredTimesheets.@each.isSelected', function () {\n      return (0, _object.get)(this, 'filteredTimesheets').some(s => (0, _object.get)(s, 'isSelected'));\n    }),\n    allSelected: (0, _object.computed)('groupedTimesheets.@each.allSelected', function () {\n      return (0, _object.get)(this, 'groupedTimesheets').every(g => (0, _object.get)(g, 'allSelected'));\n    }),\n    nSelected: (0, _object.computed)('groupedTimesheets.@each.nSelected', function () {\n      return (0, _object.get)(this, 'groupedTimesheets').reduce((total, day) => total + (0, _object.get)(day, 'nSelected'), 0);\n    }),\n    showForemanControls: (0, _object.computed)('model.timesheets.@each.project', function () {\n      if (this.newFeatureFlags.includesFeatureFlags('canManageTimesheets')) return true;\n\n      // check if the user has permission to manage timesheets on any projects\n      const projects = [...new Set((0, _object.get)(this, 'model.timesheets').map(timesheet => (0, _object.get)(timesheet, 'project')))];\n      return projects.some(project => this.newFeatureFlags.includesFeatureFlags(project, 'canManageTimesheets'));\n    }),\n    actions: {\n      setDateRange(dates) {\n        const {\n          startDate,\n          endDate\n        } = dates;\n        if (startDate) (0, _object.set)(this, 'jsStartDate', startDate);\n        if (endDate) (0, _object.set)(this, 'jsEndDate', endDate);\n      },\n      toggleGroupSelected(dayMeta) {\n        if (!(0, _object.get)(this, 'showForemanControls') || !(0, _object.get)(dayMeta, 'canBeForeman')) return;\n        const wasSelected = (0, _object.get)(dayMeta, 'isSelected');\n        (0, _object.get)(dayMeta, 'projectMetas').forEach(jm => (0, _object.get)(jm, 'timesheets').forEach(t => (0, _object.set)(t, 'isSelected', !wasSelected)));\n      },\n      toggleGroupExpanded(dayMeta) {\n        const projectMetas = (0, _object.get)(dayMeta, 'projectMetas');\n        const timesheets = projectMetas.reduce((timesheets, meta) => timesheets.concat((0, _object.get)(meta, 'timesheets')), []);\n        const wasExpanded = timesheets.every(({\n          isExpanded\n        }) => isExpanded);\n        timesheets.forEach(ts => (0, _object.set)(ts, 'isExpanded', !wasExpanded));\n      },\n      toggleGroupsSelected() {\n        const wasAllSelected = (0, _object.get)(this, 'allSelected');\n        (0, _object.get)(this, 'model.timesheets').forEach(t => (0, _object.set)(t, 'isSelected', !wasAllSelected));\n      },\n      async acceptSelectedTimesheets() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'acceptingTimesheets', true);\n          const dayMetas = (0, _object.get)(this, 'groupedTimesheets').reduce((dayMetas, day) => dayMetas.concat(day.dayMetas), []);\n          const selectedDayMetas = dayMetas.filter(m => (0, _object.get)(m, 'isSelected') && (0, _object.get)(m, 'canBeForeman'));\n          const projectMetas = selectedDayMetas.reduce((projectMetas, dayMeta) => projectMetas.concat(dayMeta.projectMetas), []);\n          await this._acceptTimesheets(projectMetas);\n          await _rsvp.Promise.all(selectedDayMetas.map(dayMeta => this._lockDay(dayMeta)));\n          const count = selectedDayMetas.length;\n          notifications.success(`${count} timesheet${count === 1 ? '' : 's'} accepted`);\n        } catch (error) {\n          notifications.error({\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.somethingWentWrongWhileAcceptingTheTimesheets'),\n            error\n          });\n        } finally {\n          (0, _object.set)(this, 'acceptingTimesheets', false);\n        }\n      },\n      async acceptAndLockTimesheet(dayMeta) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'acceptingTimesheets', true);\n          await this._acceptTimesheets(dayMeta.projectMetas);\n          await this._lockDay(dayMeta);\n          notifications.success('Timesheet accepted');\n        } catch (error) {\n          notifications.error({\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.somethingWentWrongWhileAcceptingTheTimesheets'),\n            error\n          });\n        } finally {\n          (0, _object.set)(this, 'acceptingTimesheets', false);\n        }\n      },\n      async undoAcceptAndLockTimesheet(dayMeta) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          const projectMetas = (0, _object.get)(dayMeta, 'projectMetas');\n          const timesheetNote = dayMeta.timesheetNote;\n          if (timesheetNote) {\n            (0, _object.set)(timesheetNote, 'dayLocked', false);\n            await timesheetNote.save();\n          }\n          await _rsvp.Promise.all(projectMetas.map(projectMeta => {\n            const timesheetStatus = (0, _object.get)(projectMeta, 'timesheetStatus');\n            if (timesheetStatus && (0, _object.get)(projectMeta, 'canBeForeman')) {\n              (0, _object.set)(timesheetStatus, 'status', 'pending');\n              return timesheetStatus.save();\n            } else {\n              return _rsvp.Promise.resolve();\n            }\n          }));\n          notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.Timesheet returned to pending'));\n        } catch (error) {\n          notifications.error({\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.somethingWentWrongWhileSavingTimesheetStatus'),\n            error\n          });\n        }\n      },\n      async acceptTimesheet(dayMeta) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'acceptingTimesheets', true);\n          await this._acceptTimesheets(dayMeta.projectMetas);\n          notifications.success('Timesheet accepted');\n        } catch (error) {\n          notifications.error({\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.somethingWentWrongWhileAcceptingTheTimesheets'),\n            error\n          });\n        } finally {\n          (0, _object.set)(this, 'acceptingTimesheets', false);\n        }\n      },\n      async undoAcceptSelectedTimesheets() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'acceptingTimesheets', true);\n          const notifications = (0, _object.get)(this, 'notifications');\n          const dayMetas = (0, _object.get)(this, 'groupedTimesheets').reduce((dayMetas, day) => dayMetas.concat(day.dayMetas), []);\n          const selectedDayMetas = dayMetas.filter(m => (0, _object.get)(m, 'isSelected') && (0, _object.get)(m, 'canBeForeman'));\n          const projectMetas = selectedDayMetas.reduce((projectMetas, dayMeta) => projectMetas.concat((0, _object.get)(dayMeta, 'projectMetas')), []);\n          await _rsvp.Promise.all(projectMetas.map(projectMeta => {\n            const timesheetStatus = (0, _object.get)(projectMeta, 'timesheetStatus');\n            if (timesheetStatus && (0, _object.get)(projectMeta, 'canBeForeman')) {\n              (0, _object.set)(timesheetStatus, 'status', 'pending');\n              return timesheetStatus.save();\n            } else {\n              return _rsvp.Promise.resolve();\n            }\n          }), selectedDayMetas.map(dayMeta => {\n            const timesheetNote = dayMeta.timesheetNote;\n            if (timesheetNote) {\n              (0, _object.set)(timesheetNote, 'dayLocked', false);\n              return timesheetNote.save();\n            } else {\n              return _rsvp.Promise.resolve();\n            }\n          }));\n          const count = projectMetas.length;\n          notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.xReturnedToPending', {\n            number: count,\n            timesheet: count === 1 ? 'timesheet' : 'timesheets'\n          }));\n        } catch (error) {\n          notifications.error({\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.somethingWentWrongWhilePendingTimesheets'),\n            error\n          });\n        } finally {\n          (0, _object.set)(this, 'acceptingTimesheets', false);\n        }\n      },\n      async undoAcceptTimesheet(dayMeta) {\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          const projectMetas = (0, _object.get)(dayMeta, 'projectMetas');\n          await _rsvp.Promise.all(projectMetas.map(projectMeta => {\n            const timesheetStatus = (0, _object.get)(projectMeta, 'timesheetStatus');\n            if (timesheetStatus && (0, _object.get)(projectMeta, 'canBeForeman')) {\n              (0, _object.set)(timesheetStatus, 'status', 'pending');\n              return timesheetStatus.save();\n            } else {\n              return _rsvp.Promise.resolve();\n            }\n          }));\n          notifications.success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.Timesheet returned to pending'));\n        } catch (error) {\n          notifications.error({\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.somethingWentWrongWhileSavingTimesheetStatus'),\n            error\n          });\n        }\n      }\n    },\n    _lockDay(dayMeta) {\n      let timesheetNote = (0, _object.get)(dayMeta, 'timesheetNote');\n      if (!timesheetNote) {\n        const worker = (0, _object.get)(dayMeta, 'worker');\n        const entity = (0, _object.get)(this, 'sessionData.entity');\n        timesheetNote = (0, _object.get)(this, 'store').createRecord('timesheet-note', {\n          date: dayMeta.date,\n          worker: worker?.content || worker,\n          dayLocked: true,\n          entity: entity?.content || entity\n        });\n        // make it part of the source that buildMetas reads\n        (0, _object.get)(this, 'model.timesheetNotes').pushObject(timesheetNote);\n        (0, _object.set)(dayMeta, 'timesheetNote', timesheetNote);\n      }\n      (0, _object.set)(timesheetNote, 'dayLocked', true);\n      return (0, _object.get)(timesheetNote, 'hasDirtyAttributes') ? timesheetNote.save() : null;\n    },\n    _acceptTimesheets(projectMetas) {\n      return _rsvp.Promise.all(projectMetas.map(projectMeta => {\n        // Do nothing if the user cannot act as a foreman for the day/project/worker\n        if (!(0, _object.get)(projectMeta, 'canBeForeman')) return _rsvp.Promise.resolve();\n\n        // Get the timesheet-status record from the projectMeta\n        let timesheetStatus = projectMeta.timesheetStatus;\n\n        // If no timesheet-status record exists, then create one\n        if (!timesheetStatus) {\n          const project = (0, _object.get)(projectMeta, 'project');\n          const worker = (0, _object.get)(projectMeta, 'worker');\n          const entity = (0, _object.get)(this, 'sessionData.entity');\n          timesheetStatus = (0, _object.get)(this, 'store').createRecord('timesheet-status', {\n            date: projectMeta.date,\n            // If it's a proxy, use its ID directly to bypass WarpDrive relationship strictness\n            project: project?.content || project,\n            entity: entity?.content || entity\n          });\n          (0, _object.set)(projectMeta, 'timesheetStatus', timesheetStatus);\n          // No idea why but this seems to want to be out here. It was originally in the `createRecord`\n          // but that caused the worker to be null when the status was saved...\n          (0, _object.set)(timesheetStatus, 'worker', worker?.content || worker);\n          // Add the new record to the model\n          this.send('addTimesheetStatuses', [timesheetStatus]);\n        }\n\n        // Set the status to accepted\n        (0, _object.set)(timesheetStatus, 'status', 'accepted');\n        // Save the timesheet-status record if it has been altered\n        return (0, _object.get)(timesheetStatus, 'hasDirtyAttributes') ? timesheetStatus.save() : null;\n      }));\n    }\n  });\n  const TimesheetProjectMeta = _exports.TimesheetProjectMeta = _object.default.extend({\n    newFeatureFlags: null,\n    // a passed in service\n    timesheetStatus: null,\n    project: null,\n    date: null,\n    worker: null,\n    timesheets: null,\n    isSelected: (0, _object.computed)('timesheets.@each.isSelected', function () {\n      return (0, _object.get)(this, 'timesheets').every(m => (0, _object.get)(m, 'isSelected'));\n    }),\n    isExpanded: (0, _object.computed)('timesheets.@each.isExpanded', function () {\n      return (0, _object.get)(this, 'timesheets').every(m => (0, _object.get)(m, 'isExpanded'));\n    }),\n    totalTime: (0, _object.computed)('timesheets.@each.hours', function () {\n      return (0, _object.get)(this, 'timesheets').reduce((total, s) => total + (0, _object.get)(s, 'hours'), 0);\n    }),\n    canBeForeman: (0, _object.computed)('project', function () {\n      // entity admins can do anything\n      if (this.newFeatureFlags.includesFeatureFlags('canManageTimesheets')) return true;\n\n      // check if user has permission to this project\n      if (this.newFeatureFlags.includesFeatureFlags((0, _object.get)(this, 'project'), 'canManageTimesheets')) return true;\n      return false;\n    }),\n    isSelf: (0, _object.computed)('worker', function () {\n      return this.newFeatureFlags.includesFeatureFlags((0, _object.get)(this, 'worker'), 'canManageTimesheets');\n    }),\n    allTimesheetsAreDeleted: (0, _object.computed)('timesheets.@each.isDeleted', function () {\n      return (0, _object.get)(this, 'timesheets').every(timesheet => timesheet.isDeleted);\n    }),\n    hasTasksToSelect: (0, _object.computed)('project.activeTasks.length', 'selectedTasks.length', function () {\n      return (0, _object.get)(this, 'project.activeTasks.length') > (0, _object.get)(this, 'selectedTasks.length');\n    }),\n    timesheetsAreAltered: (0, _object.computed)('timesheets.@each.hasDirtyAttributes', function () {\n      return (0, _object.get)(this, 'timesheets').some(s => (0, _object.get)(s, 'hasDirtyAttributes'));\n    }),\n    isAccepted: (0, _computed.equal)('timesheetStatus.status', 'accepted'),\n    selectedTasks: (0, _object.computed)('project.tasks', 'timesheets.@each.{task,isDeleted}', function () {\n      return ((0, _object.get)(this, 'project.tasks').content?.toArray() || []).filter(t => {\n        return (0, _object.get)(this, 'timesheets').some(ts => {\n          return !(0, _object.get)(ts, 'isDeleted') && ts.belongsTo('task').value() === t;\n        });\n      });\n    })\n  });\n  const TimesheetDayMeta = _exports.TimesheetDayMeta = _object.default.extend({\n    isSelected: (0, _object.computed)('projectMetas.@each.isSelected', function () {\n      return (0, _object.get)(this, 'projectMetas').every(m => (0, _object.get)(m, 'isSelected'));\n    }),\n    isExpanded: (0, _object.computed)('projectMetas.@each.isExpanded', function () {\n      return (0, _object.get)(this, 'projectMetas').every(m => (0, _object.get)(m, 'isExpanded'));\n    }),\n    totalTime: (0, _object.computed)('projectMetas.@each.totalTime', function () {\n      return (0, _object.get)(this, 'projectMetas').reduce((total, m) => total + (0, _object.get)(m, 'totalTime'), 0);\n    }),\n    canBeForeman: (0, _object.computed)('projectMetas.@each.canBeForeman', function () {\n      return (0, _object.get)(this, 'projectMetas').some(m => (0, _object.get)(m, 'canBeForeman'));\n    }),\n    isSelf: (0, _object.computed)('projectMetas', function () {\n      return (0, _object.get)(this, 'projectMetas').every(m => (0, _object.get)(m, 'isSelf'));\n    }),\n    allAccepted: (0, _object.computed)('projectMetas.@each.{isAccepted,canBeForeman}', function () {\n      return (0, _object.get)(this, 'projectMetas').every(m => (0, _object.get)(m, 'isAccepted') || !(0, _object.get)(m, 'canBeForeman'));\n    })\n  });\n  const Day = _object.default.extend({\n    nSelected: (0, _object.computed)('dayMetas.@each.isSelected', function () {\n      // In js, a Number plus a Boolean works like: n + true === n + 1, n + false === n\n      return (0, _object.get)(this, 'dayMetas').reduce((total, m) => total + Boolean((0, _object.get)(m, 'isSelected')), 0);\n    }),\n    allSelected: (0, _object.computed)('dayMetas.@each.isSelected', function () {\n      return (0, _object.get)(this, 'dayMetas').every(m => (0, _object.get)(m, 'isSelected'));\n    }),\n    orderedDayMetas: (0, _object.computed)('dayMetas', function () {\n      return (0, _object.get)(this, 'dayMetas').sortBy('worker.firstName');\n    }),\n    totalTime: (0, _object.computed)('dayMetas.@each.totalTime', function () {\n      return (0, _object.get)(this, 'dayMetas').reduce((total, m) => total + (0, _object.get)(m, 'totalTime'), 0);\n    })\n  });\n  const buildKeyFromValues = (...args) => args.join(':');\n  function buildMetas(_timesheetNotes, _timesheetStatuses, timesheets, selectedStatus, newFeatureFlags) {\n    const timesheetNotes = _timesheetNotes.reduce((notes, note) => {\n      const key = buildKeyFromValues((0, _object.get)(note, 'worker.id'), (0, _object.get)(note, 'date'));\n      return {\n        ...notes,\n        [key]: note\n      };\n    }, {});\n    const timesheetStatuses = _timesheetStatuses.reduce((statuses, status) => {\n      const key = buildKeyFromValues((0, _object.get)(status, 'project.id'), (0, _object.get)(status, 'worker.id'), (0, _object.get)(status, 'date'));\n      return {\n        ...statuses,\n        [key]: status\n      };\n    }, {});\n    const projectMetas = timesheets.reduce((metas, sheet) => {\n      const key = buildKeyFromValues((0, _object.get)(sheet, 'project.id'), (0, _object.get)(sheet, 'worker.id'), (0, _object.get)(sheet, 'date'));\n      const existingMeta = metas[key];\n      if (existingMeta) {\n        (0, _object.get)(existingMeta, 'timesheets').pushObject(sheet);\n        return metas;\n      } else {\n        const timesheetStatus = timesheetStatuses[key];\n        const status = timesheetStatus ? (0, _object.get)(timesheetStatus, 'status') : 'pending';\n        if (selectedStatus !== 'all' && status !== selectedStatus) return metas;\n        return {\n          ...metas,\n          [key]: TimesheetProjectMeta.create({\n            timesheetStatus,\n            project: (0, _object.get)(sheet, 'project'),\n            date: (0, _object.get)(sheet, 'date'),\n            worker: (0, _object.get)(sheet, 'worker'),\n            timesheets: [sheet],\n            newFeatureFlags\n          })\n        };\n      }\n    }, {});\n    const dayMetas = Object.values(projectMetas).reduce((metas, projectMeta) => {\n      const key = buildKeyFromValues((0, _object.get)(projectMeta, 'worker.id'), (0, _object.get)(projectMeta, 'date'));\n      const existingDayMeta = metas[key];\n      if (existingDayMeta) {\n        (0, _object.get)(existingDayMeta, 'projectMetas').pushObject(projectMeta);\n        return metas;\n      } else {\n        const timesheetNote = timesheetNotes[key];\n        return {\n          ...metas,\n          [key]: TimesheetDayMeta.create({\n            timesheetNote,\n            date: (0, _object.get)(projectMeta, 'date'),\n            worker: (0, _object.get)(projectMeta, 'worker'),\n            projectMetas: [projectMeta],\n            newFeatureFlags\n          })\n        };\n      }\n    }, {});\n    const days = Object.values(dayMetas).reduce((days, dayMeta) => {\n      const key = buildKeyFromValues((0, _object.get)(dayMeta, 'date'));\n      const existingDay = days[key];\n      if (existingDay) {\n        (0, _object.get)(existingDay, 'dayMetas').pushObject(dayMeta);\n        return days;\n      } else {\n        return {\n          ...days,\n          [key]: Day.create({\n            date: (0, _object.get)(dayMeta, 'date'),\n            dayMetas: [dayMeta]\n          })\n        };\n      }\n    }, {});\n    return Object.values(days).sortBy('date').reverse();\n  }\n});","define(\"portal/controllers/entity/builda-price/operations/incoming/timesheets/timesheet\", [\"exports\", \"@ember/controller\", \"rsvp\", \"@ember/object\", \"@ember/service\", \"moment\", \"portal/controllers/entity/builda-price/operations/incoming/timesheets\"], function (_exports, _controller, _rsvp, _object, _service, _moment, _timesheets) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"rsvp\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"portal/controllers/entity/builda-price/operations/incoming/timesheets\"eaimeta@70e063a35619d71f\n  // async relationship reads return a proxy, which WarpDrive rejects as a relationship value.\n  const unwrap = value => value?.content || value;\n  var _default = _exports.default = _controller.default.extend({\n    newFeatureFlags: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    invoicedCosts: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    queryParams: ['worker', 'date'],\n    worker: null,\n    date: null,\n    isSaving: false,\n    statuses: (0, _object.computed)('intl.locale', function () {\n      return [{\n        value: 'pending',\n        label: this.intl.t('common.Pending')\n      }, {\n        value: 'accepted',\n        label: this.intl.t('common.Accepted')\n      }];\n    }),\n    _selectedTasks: null,\n    selectedTasks: (0, _object.computed)('_selectedTasks', 'model.timesheets', {\n      set(_key, value) {\n        (0, _object.set)(this, '_selectedTasks', value);\n        return value;\n      },\n      get() {\n        if ((0, _object.get)(this, '_selectedTasks')) return (0, _object.get)(this, '_selectedTasks');\n        const timesheetTaskIds = (0, _object.get)(this, 'model.timesheets').map(timesheet => timesheet.belongsTo('task').id());\n        return timesheetTaskIds;\n      }\n    }),\n    selectedWorker: (0, _object.computed)('worker', 'workers', function () {\n      return (0, _object.get)(this, 'workers').findBy('id', (0, _object.get)(this, 'worker'));\n    }),\n    selectedDate: (0, _object.computed)('date', {\n      get() {\n        return (0, _moment.default)((0, _object.get)(this, 'date')).format('YYYY-MM-DD');\n      },\n      set(key, event) {\n        (0, _object.set)(this, 'date', event.target.value);\n      }\n    }),\n    timesheetsByProject: (0, _object.computed)('date', 'model.note', 'model.statuses.[]', 'model.timesheets.[]', 'selectedWorker', function () {\n      const timesheets = (0, _object.get)(this, 'model.timesheets') || [];\n      const projects = timesheets.mapBy('project').filter(p => p).uniqBy('id');\n      const statuses = (0, _object.get)(this, 'model.statuses') || [];\n      const projectMetas = projects.map(project => _timesheets.TimesheetProjectMeta.create({\n        project,\n        date: (0, _object.get)(this, 'date'),\n        worker: (0, _object.get)(this, 'selectedWorker'),\n        timesheets: timesheets.filterBy('project.id', (0, _object.get)(project, 'id')),\n        timesheetStatus: statuses.findBy('project.id', (0, _object.get)(project, 'id')),\n        newFeatureFlags: this.newFeatureFlags\n      }));\n      return _timesheets.TimesheetDayMeta.create({\n        projectMetas,\n        date: (0, _object.get)(this, 'date'),\n        worker: (0, _object.get)(this, 'selectedWorker'),\n        timesheetNote: (0, _object.get)(this, 'model.note'),\n        newFeatureFlags: this.newFeatureFlags\n      });\n    }),\n    filteredProjectMetas: (0, _object.computed)('timesheetsByProject.projectMetas.@each.allTimesheetsAreDeleted', function () {\n      return (0, _object.get)(this, 'timesheetsByProject.projectMetas').rejectBy('allTimesheetsAreDeleted');\n    }),\n    workerIsSelf: (0, _object.computed)('selectedWorker', function () {\n      return this.newFeatureFlags.includesFeatureFlags((0, _object.get)(this, 'selectedWorker'), 'canManageTimesheets');\n    }),\n    hasWriteLevel: (0, _object.computed)('newFeatureFlags.userIsEntityAdmin', function () {\n      return this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin');\n    }),\n    foremanFor: (0, _object.computed)('model.projects', 'hasWriteLevel', function () {\n      const allProjects = (0, _object.get)(this, 'model.projects');\n      const hasWriteLevel = (0, _object.get)(this, 'hasWriteLevel');\n      if (hasWriteLevel) {\n        return allProjects;\n      } else {\n        return allProjects.filter(j => this.newFeatureFlags.includesFeatureFlags(j, 'canManageTimesheets'));\n      }\n    }),\n    canCurrentlyBeForeman: (0, _object.computed)('timesheetsByProject.projectMetas.@each.canBeForman', function () {\n      const projectMetas = (0, _object.get)(this, 'timesheetsByProject.projectMetas') || [];\n      return projectMetas.some(projectMeta => (0, _object.get)(projectMeta, 'canBeForeman'));\n    }),\n    remainingProjects: (0, _object.computed)('filteredProjectMetas.@each.{allTimesheetsAreDeleted,project}', 'hasWriteLevel', 'model.projects', 'model.note', 'workerIsSelf', function () {\n      const projects = (0, _object.get)(this, 'model.projects');\n      const note = (0, _object.get)(this, 'model.note');\n      const usedIds = (0, _object.get)(this, 'filteredProjectMetas').mapBy('project.id');\n      const canAlwaysLogForWorker = (0, _object.get)(this, 'workerIsSelf') || (0, _object.get)(this, 'hasWriteLevel');\n      let remainingProjects = projects.reject(project => usedIds.includes((0, _object.get)(project, 'id')));\n      if (!canAlwaysLogForWorker || note.dayLocked) {\n        remainingProjects = remainingProjects.filter(j => this.newFeatureFlags.includesFeatureFlags(j, 'canManageTimesheets'));\n      }\n      return remainingProjects.sortBy('sortIndex');\n    }),\n    actions: {\n      clear() {\n        const records = [];\n        if ((0, _object.get)(this, 'model.note')) records.push((0, _object.get)(this, 'model.note'));\n        if ((0, _object.get)(this, 'model.statuses')) records.push(...(0, _object.get)(this, 'model.statuses'));\n        if ((0, _object.get)(this, 'model.timesheets')) records.push(...(0, _object.get)(this, 'model.timesheets'));\n        records.forEach(record => {\n          // if the record is dirty rollback the changes\n          if ((0, _object.get)(record, 'hasDirtyAttributes')) record.rollbackAttributes();\n\n          // special timesheet case\n          // you can not rollback relationship changes so do it manually\n          if ((0, _object.get)(record, 'taskHasChanged')) {\n            (0, _object.set)(record, 'task', unwrap((0, _object.get)(record, 'originalTask')));\n            (0, _object.set)(record, 'taskHasChanged', false);\n            (0, _object.set)(record, 'originalTask', null);\n          }\n        });\n        this.router.transitionTo({\n          queryParams: {\n            worker: null,\n            date: null\n          }\n        });\n      },\n      setWorker(workerId) {\n        const worker = (0, _object.get)(this, 'workers').findBy('id', workerId);\n        (0, _object.set)(this, 'model.timesheet.worker', worker);\n      },\n      setTask(timesheet, newTask) {\n        (0, _object.get)(timesheet, 'project.tasks').then(tasks => {\n          const task = newTask ? tasks.findBy('id', (0, _object.get)(newTask, 'id')) : undefined;\n\n          // Handle for relationship rollback\n          if (!(0, _object.get)(timesheet, 'taskHasChanged')) {\n            (0, _object.set)(timesheet, 'taskHasChanged', true);\n            (0, _object.set)(timesheet, 'originalTask', (0, _object.get)(timesheet, 'task'));\n          }\n          (0, _object.set)(timesheet, 'task', task);\n        });\n      },\n      setNextProject(project) {\n        if (!project) return;\n        this.send('addTask', project);\n      },\n      addTask(projectPromise) {\n        _rsvp.default.resolve(projectPromise).then(project => {\n          const date = (0, _object.get)(this, 'date');\n          const worker = (0, _object.get)(this, 'selectedWorker');\n          const payRate = (0, _object.get)(worker, 'payRate');\n          const costRate = (0, _object.get)(worker, 'costRate');\n          const entity = (0, _object.get)(this, 'sessionData.entity');\n          const timesheet = (0, _object.get)(this, 'store').createRecord('timesheet', {\n            project,\n            entity,\n            worker,\n            date,\n            payRate,\n            costRate\n          });\n          const timesheets = (0, _object.get)(this, 'model.timesheets');\n          timesheets.pushObject(timesheet);\n        });\n      },\n      deleteTimesheet(timesheet) {\n        this.invoicedCosts.requestDelete.perform({\n          isInvoiced: timesheet._meta?.isInvoiced,\n          title: (0, _object.get)(this, 'intl').t('services.invoiced-costs.Delete linked timesheet'),\n          message: (0, _object.get)(this, 'intl').t('services.invoiced-costs.timesheetMessage'),\n          deleteCb: () => {\n            if ((0, _object.get)(timesheet, 'isNew')) {\n              (0, _object.get)(this, 'model.timesheets').removeObject(timesheet);\n              timesheet.unloadRecord();\n              return;\n            }\n            timesheet.deleteRecord();\n          }\n        });\n      },\n      async save(didGiveReason) {\n        // Force user to give reasons if they have edited someone else's timesheets\n        if (!didGiveReason && !(0, _object.get)(this, 'workerIsSelf')) {\n          const didEdit = (0, _object.get)(this, 'timesheetsByProject.projectMetas').some(projectMeta => (0, _object.get)(projectMeta, 'timesheets').some(timesheet => (0, _object.get)(timesheet, 'hasDirtyAttributes')));\n          if (didEdit) return this.send('triggerAccept');\n        }\n        const notifications = (0, _object.get)(this, 'notifications');\n        try {\n          (0, _object.set)(this, 'isSaving', true);\n          await this._save();\n          notifications.success('Saved timesheet');\n        } catch (error) {\n          notifications.warning({\n            message: (0, _object.get)(this, 'intl').t('entity.builda-price.operations.incoming.timesheets.timesheet.pleaseCompleteTheTimesheetBeforeSaving'),\n            error\n          });\n        } finally {\n          (0, _object.set)(this, 'isSaving', false);\n          (0, _object.set)(this, 'showReasonDialog', false);\n        }\n      },\n      triggerAccept() {\n        // Defer to 'save' action if the worker is yourself as no reasons are necessary.\n        if ((0, _object.get)(this, 'workerIsSelf')) return this.send('save');\n\n        // Ensure all of the projectMetas have a timesheetStatus\n        const projectMetas = (0, _object.get)(this, 'timesheetsByProject.projectMetas');\n        projectMetas.forEach(projectMeta => {\n          if ((0, _object.get)(projectMeta, 'canBeForeman') && !(0, _object.get)(projectMeta, 'timesheetStatus')) {\n            (0, _object.set)(projectMeta, 'timesheetStatus', (0, _object.get)(this, 'store').createRecord('timesheet-status', {\n              worker: unwrap(projectMeta.worker),\n              date: projectMeta.date,\n              entity: unwrap((0, _object.get)(this, 'sessionData.entity')),\n              project: unwrap(projectMeta.project),\n              didEdit: true\n            }));\n          }\n        });\n        (0, _object.set)(this, 'showReasonDialog', true);\n      },\n      changeStatus(projectMeta, status) {\n        let timesheetStatus = (0, _object.get)(projectMeta, 'timesheetStatus');\n        if (!timesheetStatus) {\n          // Create a new TimesheetStatus record if one doesn't already exist\n          timesheetStatus = (0, _object.get)(this, 'store').createRecord('timesheet-status', {\n            worker: unwrap(projectMeta.worker),\n            date: projectMeta.date,\n            project: unwrap(projectMeta.project),\n            entity: unwrap((0, _object.get)(this, 'sessionData.entity'))\n          });\n\n          // Put the new record in the projectMeta to keep it up to date\n          (0, _object.set)(projectMeta, 'timesheetStatus', timesheetStatus);\n        }\n        if (status === 'pending') {\n          const note = (0, _object.get)(this, 'model.note');\n          if (note) (0, _object.set)(note, 'dayLocked', false);\n        }\n        // Set the status on the old or newly created record\n        (0, _object.set)(timesheetStatus, 'status', status);\n      }\n    },\n    async _save() {\n      const note = (0, _object.get)(this, 'model.note');\n      const saveNote = note.save();\n      const projectMetas = (0, _object.get)(this, 'timesheetsByProject.projectMetas');\n\n      // Reduce timesheets from projectMetas, skip timesheets you can't save.\n      const timesheets = (0, _object.get)(this, 'timesheetsByProject.projectMetas').reduce((allTimesheets, projectMeta) => {\n        // Skip all timesheets if you can't be the foreman for the project and can't otherwise log for the worker\n        if (!(0, _object.get)(projectMeta, 'isSelf') && !(0, _object.get)(projectMeta, 'canBeForeman')) {\n          return allTimesheets;\n        } else {\n          // Skip timesheets that don't need saving\n          return allTimesheets.concat((0, _object.get)(projectMeta, 'timesheets')); // TODO filter to things that have been updated (including relationships)\n        }\n      }, []);\n      const timesheetStatuses = projectMetas.filter(projectMeta => (0, _object.get)(projectMeta, 'canBeForeman') && (0, _object.get)(projectMeta, 'timesheetStatus')).mapBy('timesheetStatus');\n      const saveTimesheetStatuses = timesheetStatuses.map(timesheetStatus => (0, _object.get)(timesheetStatus, 'hasDirtyAttributes') ? timesheetStatus.save() : Promise.resolve());\n      const saveTimesheets = timesheets.map(async timesheet => {\n        const timesheetWasDeleted = Boolean(timesheet.isDeleted);\n        await timesheet.save();\n        if (timesheetWasDeleted) {\n          // Send an action to the parent route to remove the timesheet from the list.\n          this.send('removeTimesheet', timesheet);\n        }\n      });\n      const newTimesheets = timesheets.filterBy('isNew');\n      const newTimesheetStatuses = timesheetStatuses.filterBy('isNew');\n      await _rsvp.default.all([...saveTimesheetStatuses, ...saveTimesheets, saveNote]);\n      this.send('addTimesheetStatuses', newTimesheetStatuses);\n      this.send('addTimesheets', newTimesheets);\n    }\n  });\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/invoices/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"moment\", \"@ember/object\", \"ember-changeset\", \"ember-concurrency\", \"portal/config/environment\", \"portal/utils/csv-builder\", \"portal/helpers/pagination-callback\", \"portal/utils/search-filter\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _moment, _object, _emberChangeset, _emberConcurrency, _environment, _csvBuilder, _paginationCallback, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"moment\",0,\"@ember/object\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"ember-concurrency\",0,\"portal/config/environment\",0,\"portal/utils/csv-builder\",0,\"portal/helpers/pagination-callback\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"store\", _descriptor8, this);\n      _initializerDefineProperty(this, \"quickbooks\", _descriptor9, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor0, this);\n      _defineProperty(this, \"queryParams\", ['searchTerm', 'startDate', 'endDate', 'status', 'invoiceType', 'sortBy', 'sortDirection', 'contact']);\n      _initializerDefineProperty(this, \"startDate\", _descriptor1, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor10, this);\n      _initializerDefineProperty(this, \"invoiceType\", _descriptor11, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor12, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor13, this);\n      _initializerDefineProperty(this, \"status\", _descriptor14, this);\n      _initializerDefineProperty(this, \"contact\", _descriptor15, this);\n      _initializerDefineProperty(this, \"invoiceChangeSet\", _descriptor16, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor17, this);\n      _initializerDefineProperty(this, \"invoiceSearchTerm\", _descriptor18, this);\n      _defineProperty(this, \"completedInvoices\", []);\n      _defineProperty(this, \"completedInvoicesPage\", void 0);\n      _defineProperty(this, \"completedInvoicesSearchTerm\", void 0);\n      _defineProperty(this, \"contacts\", []);\n      _defineProperty(this, \"contactsPage\", void 0);\n      _defineProperty(this, \"contactsSearchTerm\", void 0);\n      _initializerDefineProperty(this, \"showDownloadCsvModal\", _descriptor19, this);\n      _initializerDefineProperty(this, \"showInvoicesUploader\", _descriptor20, this);\n      _defineProperty(this, \"invoiceTypes\", [{\n        value: 'INVOICE',\n        label: this.intl.t('common.Invoice')\n      }, {\n        value: 'CREDIT_NOTE',\n        label: this.intl.t('common.Credit note')\n      }]);\n      _initializerDefineProperty(this, \"fromDate\", _descriptor21, this);\n      _initializerDefineProperty(this, \"toDate\", _descriptor22, this);\n      _defineProperty(this, \"onLoadMoreInvoices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.model.invoices.perform(this.startDate, this.endDate, this.status, this.searchTerm, this.invoiceType, this.sortBy, this.sortDirection);\n        }\n      }), {\n        drop: true\n      }, \"onLoadMoreInvoices\", null));\n      _defineProperty(this, \"loadCompletedInvoices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.completedInvoicesSearchTerm) {\n              this.completedInvoicesPage = undefined;\n              this.completedInvoices = [];\n              this.completedInvoicesSearchTerm = searchTerm;\n            }\n            const invoiceFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'status',\n                op: 'EQ',\n                value: 'COMPLETED'\n              }, {\n                field: 'invoiceType',\n                op: 'EQ',\n                value: 'INVOICE'\n              }]\n            };\n            if (searchTerm?.length) invoiceFilter.and.push((0, _searchFilter.default)(['toContact.name', 'invoiceNumber'], searchTerm));\n            const nextPageNumber = (this.completedInvoicesPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('invoice', {\n              filter: invoiceFilter,\n              sort: '-dateCreated',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.completedInvoicesPage = nextPage.meta;\n            this.completedInvoices = [...this.completedInvoices, ...nextPage.toArray()];\n            return this.completedInvoices;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.somethingWentWrongLoadingMoreInvoices'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadCompletedInvoices\", null));\n      _defineProperty(this, \"onSaveInvoice\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeSet) {\n          yield changeSet.validate();\n          if (changeSet.isInvalid) {\n            this.notifications.warning(this.intl.t('shared.notification.Please complete the information'));\n            return;\n          }\n          try {\n            changeSet.execute();\n            if (changeSet.referencedInvoice) {\n              const creditNote = yield this.buildaPrice.createCreditNoteFromInvoice({\n                entity: this.sessionData.entity.id,\n                invoice: changeSet.referencedInvoice.id,\n                creditNoteNumber: changeSet.invoiceNumber\n              });\n              yield this.store.findRecord('invoice', creditNote.id, {\n                include: 'items',\n                reload: true\n              });\n              this.router.transitionTo(`entity.builda-price.operations.outgoing.invoices.invoice`, creditNote.id);\n              return;\n            }\n            const invoice = yield changeSet.save();\n            this.router.transitionTo(`entity.builda-price.operations.outgoing.invoices.invoice`, invoice.id);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.creatingInvoiceError'),\n              error\n            });\n          } finally {\n            this.onClose();\n          }\n        }\n      }), null, \"onSaveInvoice\", null));\n      _defineProperty(this, \"_validateInvoiceNumber\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceNumber) {\n          yield (0, _emberConcurrency.timeout)(1000); // delay the api call for validation\n\n          const response = yield this.buildaPrice.validateInvoiceNumber({\n            entity: this.sessionData.entity.id,\n            invoiceNumber\n          });\n          return response;\n        }\n      }), {\n        restartable: true\n      }, \"_validateInvoiceNumber\", null));\n      _defineProperty(this, \"loadContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.contactsSearchTerm) {\n              this.contactsPage = undefined;\n              this.contacts = [];\n              this.contactsSearchTerm = searchTerm;\n            }\n            const contactFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) contactFilter.and.push((0, _searchFilter.default)(['name'], searchTerm));\n            const nextPageNumber = (this.contactsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('contact', {\n              filter: contactFilter,\n              sort: 'name',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.contactsPage = nextPage.meta;\n            this.contacts = [...this.contacts, ...nextPage.toArray()];\n            return this.contacts;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreContacts'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadContacts\", null));\n      _defineProperty(this, \"onChangeInvoiceSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          yield (0, _emberConcurrency.timeout)(_environment.default.debounceTimeMs);\n          const {\n            value\n          } = e.target;\n\n          // the invoiceSearchTerm is already directly set by the input\n          // set the searchTerm param and reload the invoices\n          this.searchTerm = value === '' ? undefined : value;\n        }\n      }), null, \"onChangeInvoiceSearchTerm\", null));\n      _defineProperty(this, \"invoiceValidationMap\", {\n        invoiceNumber: this.validateInvoiceNumber,\n        invoiceType: this.validateInvoiceType,\n        toContact: this.validateToContact\n      });\n      _defineProperty(this, \"invoiceValidator\", async ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue || oldValue;\n        switch (key) {\n          case 'invoiceNumber':\n            return await this.validateInvoiceNumber(value, newValue);\n          case 'invoiceType':\n            return this.validateInvoiceType(newValue);\n          case 'toContact':\n            return this.validateToContact(value);\n          default:\n            return true;\n        }\n      });\n      _defineProperty(this, \"downloadAsCSV\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            // TODO not sure which field dateCreated or issueDate\n            const invoiceFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'dateCreated',\n                op: 'GE',\n                value: (0, _moment.default)(this.fromDate).startOf('day').toISOString()\n              }, {\n                field: 'dateCreated',\n                op: 'LE',\n                value: (0, _moment.default)(this.toDate).endOf('day').toISOString()\n              }],\n              sort: '-dateCreated'\n            };\n            const invoicesInDateRange = yield (0, _paginationCallback.default)(page => this.store.query('invoice', {\n              filter: invoiceFilter,\n              include: 'items',\n              page: {\n                size: 1000,\n                number: page\n              }\n            }));\n            const buyerDetails = `${this.sessionData.entity.name}${this.sessionData.entity.address ? `, ${this.sessionData.entity.address}` : ''}`;\n            const exportedItemsData = (invoicesInDateRange.filter(item => item.totalPrice) || []).flatMap(invoice => {\n              const invoiceItems = invoice.hasMany('items').value().toArray();\n              const contact = invoice.belongsTo('toContact').value();\n              const toContact = contact ? `${contact.name}` : '';\n              const issueDate = invoice.issueDate ? (0, _moment.default)(invoice.issueDate).format(this.intl.t('date.dashDayFirst')) : '';\n              const dueDate = invoice.dueDate ? (0, _moment.default)(invoice.dueDate).format(this.intl.t('date.dashDayFirst')) : '';\n              return invoiceItems.map(invoiceItem => [invoice.invoiceNumber, invoice.statusLabel, `${buyerDetails}`, `${toContact}`, issueDate, dueDate, `${invoiceItem.code ? invoiceItem.code : ''}`, `${invoiceItem.description}`, this.numberFormat.format(invoiceItem.unitPrice, {\n                style: 'currency'\n              }), invoiceItem.quantity, this.numberFormat.format(invoiceItem.taxRate, {\n                style: 'percent',\n                maximumSignificantDigits: 4\n              }), this.numberFormat.format(invoiceItem.unitPrice * invoiceItem.quantity, {\n                style: 'currency'\n              })]);\n            });\n            const table = [[this.intl.t('common.Invoice number'), this.intl.t('common.Status'), this.intl.t('common.From'), this.intl.t('common.To'), this.intl.t('common.Issue date'), this.intl.t('common.Due date'), this.intl.t('common.Code'), this.intl.t('common.Description'), this.intl.t('common.Unit price'), this.intl.t('common.Quantity'), `${this.intl.t('common.Tax')} (%)`, `${this.intl.t('common.Line total')} (excl)`], ...exportedItemsData];\n            const fileName = `Invoices_${(0, _moment.default)(this.fromDate).format(this.intl.t('date.dashDayFirst'))}_to_${(0, _moment.default)(this.toDate).format(this.intl.t('date.dashDayFirst'))}`;\n            (0, _csvBuilder.downloadCSV)(table, fileName);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.somethingWentWrongWhileDownloadInvoices'),\n              error\n            });\n          } finally {\n            this.showDownloadCsvModal = false;\n          }\n        }\n      }), null, \"downloadAsCSV\", null));\n    }\n    // TODO do not copy this code!\n    // we need a paginated search component that doesn't require ember-changeset - when done refactor this\n    get contactFilterModel() {\n      return {\n        contact: this.contact,\n        get: () => []\n      };\n    }\n    setFilterContact(contact) {\n      this.contact = contact?.name;\n    }\n    clearFilterContact() {\n      this.contact = undefined;\n    }\n    get isLoading() {\n      return this.model.invoices.lastSuccessful === null && this.model.invoices.isRunning || this.model.invoiceOptions.lastSuccessful === null && this.model.invoiceOptions.isRunning;\n    }\n    get jsStartDate() {\n      const start = this.startDate || (0, _moment.default)().startOf('isoWeek').subtract(1, 'months');\n      return (0, _moment.default)(start).toDate();\n    }\n    set jsStartDate(value) {\n      this.startDate = (0, _moment.default)(value).format('YYYY-MM-DD');\n      return value;\n    }\n    get jsEndDate() {\n      const end = this.endDate || (0, _moment.default)().endOf('isoWeek');\n      return (0, _moment.default)(end).toDate();\n    }\n    set jsEndDate(value) {\n      this.endDate = (0, _moment.default)(value).format('YYYY-MM-DD');\n      return value;\n    }\n    get nextInvoiceNumber() {\n      const invoiceOptions = this.model.invoiceOptions.last.value;\n      const invoicePrefix = invoiceOptions.invoicePrefix;\n      const nextInvoiceNumber = invoiceOptions.nextInvoiceNumber;\n      const invoiceNumber = invoicePrefix ? `${invoicePrefix}${nextInvoiceNumber}` : nextInvoiceNumber;\n      return invoiceNumber;\n    }\n    get invoiceNumberIconName() {\n      return this.sortBy === 'invoiceNumber' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get toContactIconName() {\n      return this.sortBy === 'toContact' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get issueDateIconName() {\n      return this.sortBy === 'issueDate' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get dateCreatedIconName() {\n      return this.sortBy === 'dateCreated' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get statusIconName() {\n      return this.sortBy === 'status' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get jsExportFromDate() {\n      const from = this.fromDate || (0, _moment.default)().startOf('isoWeek').subtract(1, 'months');\n      return (0, _moment.default)(from).toDate();\n    }\n    set jsExportFromDate(value) {\n      this.fromDate = (0, _moment.default)(value).format('YYYY-MM-DD');\n      return value;\n    }\n    get jsExportToDate() {\n      const to = this.toDate || (0, _moment.default)().endOf('isoWeek');\n      return (0, _moment.default)(to).toDate();\n    }\n    set jsExportToDate(value) {\n      this.toDate = (0, _moment.default)(value).format('YYYY-MM-DD');\n      return value;\n    }\n    sortColumn(columnName) {\n      if (this.sortBy !== columnName) {\n        this.sortBy = columnName;\n        this.sortDirection = 'asc';\n        return;\n      }\n      this.sortBy = columnName;\n      if (this.sortDirection === 'asc') {\n        this.sortDirection = 'desc';\n      } else if (this.sortDirection === 'desc') {\n        this.sortDirection = undefined;\n        this.sortBy = undefined;\n      } else {\n        this.sortDirection = 'asc';\n      }\n    }\n    setReferencedInvoice(value) {\n      this.invoiceChangeSet.set('referencedInvoice', value || null);\n    }\n    setDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.jsStartDate = startDate;\n      if (endDate) this.jsEndDate = endDate;\n    }\n    onClose() {\n      this.invoiceChangeSet = null;\n      this.completedInvoices = [];\n      this.completedInvoicesPage = undefined;\n      this.completedInvoicesSearchTerm = undefined;\n      this.contacts = [];\n      this.contactsPage = undefined;\n      this.contactsSearchTerm = undefined;\n    }\n    setToContact(contact) {\n      this.invoiceChangeSet.set('toContact', contact);\n    }\n    onChangeInvoiceType(typeOrEvent) {\n      const selectedType = typeOrEvent?.target?.value ?? typeOrEvent;\n      const {\n        invoicePrefix,\n        creditNotePrefix,\n        nextInvoiceNumber,\n        nextCreditNoteNumber\n      } = this.model.invoiceOptions.last.value;\n      if (selectedType && this.invoiceChangeSet.get('invoiceType') !== selectedType) {\n        this.invoiceChangeSet.set('invoiceType', selectedType);\n      }\n      const currentInvoiceNumber = this.invoiceChangeSet.get('invoiceNumber') || '';\n      if (currentInvoiceNumber.startsWith(invoicePrefix) || currentInvoiceNumber.startsWith(creditNotePrefix)) {\n        this.invoiceChangeSet.set('invoiceNumber', selectedType === 'INVOICE' ? `${invoicePrefix}${nextInvoiceNumber}` : `${creditNotePrefix}${nextCreditNoteNumber}`);\n      }\n    }\n    openNewInvoiceForm() {\n      const invoiceNumber = this.nextInvoiceNumber;\n      const invoice = this.store.createRecord('invoice', {\n        entity: this.sessionData.entity,\n        invoiceNumber\n      });\n      this.invoiceChangeSet = (0, _emberChangeset.Changeset)(invoice, this.invoiceValidator, this.invoiceValidationMap);\n    }\n    async validateInvoiceNumber(value, newValue) {\n      try {\n        const {\n          isUnique,\n          nextInvoiceNumber\n        } = await this._validateInvoiceNumber.perform(value);\n        if (!isUnique) return `${this.intl.t('validation.Invoice number already exists, use')} ${nextInvoiceNumber ? nextInvoiceNumber : this.intl.t('shared.purchase-order.a different one')}`;\n        return newValue && newValue.length > 0 && isUnique || this.intl.t('validation.Please provide a invoice number');\n      } catch (e) {\n        if (!(0, _emberConcurrency.didCancel)(e)) {\n          throw Error('Error validating invoice number');\n        }\n      }\n      return;\n    }\n    validateInvoiceType(newValue) {\n      return newValue && newValue.length > 0 || this.intl.t('validation.Please select an invoice type');\n    }\n    validateToContact(value) {\n      return Boolean(value.name) || this.intl.t('validation.Please select a contact');\n    }\n    setExportDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.jsExportFromDate = startDate;\n      if (endDate) this.jsExportToDate = endDate;\n    }\n    clearDateRange() {\n      this.startDate = null;\n      this.endDate = null;\n    }\n    async onUploadInvoiceCSV() {\n      await this.model.invoices.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooks\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'ALL';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'dateCreated';\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'desc';\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'ALL';\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"contact\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceSearchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.searchTerm != null ? String(this.searchTerm) : '';\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"showDownloadCsvModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"showInvoicesUploader\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setFilterContact\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setFilterContact\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"clearFilterContact\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"clearFilterContact\"), _class2.prototype), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"fromDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().startOf('isoWeek').subtract(3, 'months').toDate();\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"toDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().endOf('isoWeek').toDate();\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setReferencedInvoice\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setReferencedInvoice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDateRange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClose\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setToContact\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setToContact\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeInvoiceType\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeInvoiceType\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openNewInvoiceForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openNewInvoiceForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setExportDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setExportDateRange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"clearDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"clearDateRange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUploadInvoiceCSV\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUploadInvoiceCSV\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/invoices/invoice\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"lodash\", \"portal/utils/csv-builder\", \"moment\", \"portal/utils/search-filter\", \"ember-changeset\", \"portal/utils/download\", \"@ember/runloop\", \"portal/models/entity-invoice-option\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _lodash, _csvBuilder, _moment, _searchFilter, _emberChangeset, _download, _runloop, _entityInvoiceOption) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"lodash\",0,\"portal/utils/csv-builder\",0,\"moment\",0,\"portal/utils/search-filter\",0,\"ember-changeset\",0,\"portal/utils/download\",0,\"@ember/runloop\",0,\"portal/models/entity-invoice-option\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"router\", _descriptor6, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor7, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor8, this);\n      _initializerDefineProperty(this, \"store\", _descriptor9, this);\n      _initializerDefineProperty(this, \"currentInvoiceItem\", _descriptor0, this);\n      _initializerDefineProperty(this, \"isDeletingInvoice\", _descriptor1, this);\n      _initializerDefineProperty(this, \"isCreatingCreditNote\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isEditingInvoice\", _descriptor11, this);\n      _initializerDefineProperty(this, \"showConfigureBreakdownOptionsModal\", _descriptor12, this);\n      _initializerDefineProperty(this, \"isRevertCompletedToDraftInvoice\", _descriptor13, this);\n      _initializerDefineProperty(this, \"selectedItemIndexes\", _descriptor14, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor15, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor16, this);\n      _initializerDefineProperty(this, \"exportOptions\", _descriptor17, this);\n      _defineProperty(this, \"validateInvoiceItemsSafeToDelete\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceItems) {\n          if (!invoiceItems.length) {\n            return true;\n          }\n          try {\n            // get all the unique project ids on the items\n            const linkedProjectIds = [...new Set(invoiceItems.flatMap(item => {\n              const links = item.hasMany('projects').value()?.toArray();\n              return links.map(link => link.belongsTo('project').id());\n            }))];\n            if (!linkedProjectIds.length) {\n              return true;\n            }\n            const toContactId = this.invoice.belongsTo('toContact').id();\n            const invoiceItemIds = invoiceItems.map(item => item.id);\n\n            // find approved invoice items that aren't these for the projects and contact\n            const relatedInvoiceItems = yield this.store.query('invoice-item', {\n              filter: {\n                and: [{\n                  field: 'entity',\n                  op: 'EQ',\n                  value: this.sessionData.entity.id\n                }, toContactId ? {\n                  field: 'invoice.toContact',\n                  op: 'EQ',\n                  value: toContactId\n                } : {\n                  field: 'invoice.toContact',\n                  op: 'IS_NULL',\n                  value: null\n                }, {\n                  field: 'invoice.status',\n                  op: 'IN',\n                  value: ['APPROVED', 'COMPLETED']\n                }, {\n                  field: 'invoice.dateCreated',\n                  op: 'GT',\n                  value: (0, _moment.default)(this.invoice.dateCreated).toISOString()\n                }, {\n                  field: '_id',\n                  op: 'NOT_IN',\n                  value: invoiceItemIds\n                }]\n              }\n            });\n            const relatedInvoiceItemIds = (relatedInvoiceItems?.toArray() || []).map(item => item.id);\n            if (!relatedInvoiceItemIds.length) {\n              return true;\n            }\n\n            // check if any of those items are linked to the same projects\n            const overlappingLinks = yield this.store.query('link-invoice-item-to-project', {\n              filter: {\n                and: [{\n                  field: 'invoiceItem',\n                  op: 'IN',\n                  value: relatedInvoiceItemIds\n                }, {\n                  field: 'project',\n                  op: 'IN',\n                  value: linkedProjectIds\n                }]\n              },\n              page: {\n                size: 1,\n                number: 1\n              }\n            });\n            return !overlappingLinks?.length;\n          } catch (error) {\n            return false;\n          }\n        }\n      }), null, \"validateInvoiceItemsSafeToDelete\", null));\n      _defineProperty(this, \"validateInvoiceSafeToDelete\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.invoice.last;\n            const currentInvoiceItems = this.invoice.hasMany('items').value()?.toArray() || [];\n            if (!currentInvoiceItems.length) {\n              return true;\n            }\n            return this.validateInvoiceItemsSafeToDelete.perform(currentInvoiceItems);\n          } catch (error) {\n            return false;\n          }\n        }\n      }), null, \"validateInvoiceSafeToDelete\", null));\n      _defineProperty(this, \"invoiceEditButtonId\", 'invoice-edit-button');\n      _defineProperty(this, \"contacts\", []);\n      _defineProperty(this, \"contactsPage\", void 0);\n      _defineProperty(this, \"contactsSearchTerm\", void 0);\n      _defineProperty(this, \"crumbStack\", [{\n        route: 'entity.builda-price.operations.outgoing.invoices.index',\n        pageTitle: this.intl.t('common.Invoices')\n      }, {\n        pageTitle: this.intl.t('common.Invoice')\n      }]);\n      _initializerDefineProperty(this, \"_invoiceItems\", _descriptor18, this);\n      _defineProperty(this, \"loadContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.contactsSearchTerm) {\n              this.contactsPage = undefined;\n              this.contacts = [];\n              this.contactsSearchTerm = searchTerm;\n            }\n            const contactFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) contactFilter.and.push((0, _searchFilter.default)(['name'], searchTerm));\n            const nextPageNumber = (this.contactsPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('contact', {\n              filter: contactFilter,\n              sort: 'name',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.contactsPage = nextPage.meta;\n            this.contacts = [...this.contacts, ...nextPage.toArray()];\n            return this.contacts;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreContacts'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadContacts\", null));\n      _defineProperty(this, \"saveInvoice\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.invoiceChangeSet.validate();\n            if (this.invoiceChangeSet.isInvalid) {\n              // highlight the edit invoice button\n              if (!this.isEditingInvoice) document.getElementById(this.invoiceEditButtonId).focus();\n              this.notifications.warning(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Please complete the invoice information'));\n              return;\n            }\n\n            //TODO need find a way to use changeSet to save the record\n            this.invoiceChangeSet.changes.forEach(({\n              key,\n              value\n            }) => {\n              let safeValue = value;\n              if (value && typeof value === 'object' && 'content' in value) {\n                safeValue = value.content;\n              }\n              this.invoice.set(key, safeValue);\n            });\n            yield this.invoice.save();\n            this.invoiceChangeSet.rollback();\n            this.isEditingInvoice = false;\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Successfully saved invoice'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.somethingWentWrongWhileSavingInvoice'),\n              error\n            });\n          }\n        }\n      }), null, \"saveInvoice\", null));\n      _defineProperty(this, \"onDeleteInvoice\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.invoice.last.value.destroyRecord();\n            this._invoiceItems = null;\n            this.isDeletingInvoice = false;\n            this.router.transitionTo(`entity.builda-price.operations.outgoing.invoices`);\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Successfully deleted invoice'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.somethingWentWrongWhileDeletingInvoice'),\n              error\n            });\n          }\n        }\n      }), null, \"onDeleteInvoice\", null));\n      _defineProperty(this, \"deleteInvoiceItem\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (item) {\n          try {\n            const invoiceCanBeSafelyDeleted = yield this.validateInvoiceItemsSafeToDelete.perform([item]);\n            if (!invoiceCanBeSafelyDeleted && !confirm(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoiceItemCalculationDependencyWarning'))) return;\n            yield item.destroyRecord();\n            const index = this.invoiceItems.indexOf(item);\n            if (index !== -1) {\n              this.invoiceItems.removeObject(item);\n            }\n\n            // TODO it is unsafe to keep these after this\n            // this set should be a set of items, not indexes\n            // refactor if you don't want to do this\n            this.selectedItemIndexes = new Set();\n            this.closeInvoiceItemEditor();\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Successfully deleted item'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Something went wrong deleting item'),\n              error: error\n            });\n          }\n        }\n      }), null, \"deleteInvoiceItem\", null));\n      _defineProperty(this, \"deleteInvoiceItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const itemsToDelete = Array.from(this.selectedItemIndexes).map(index => this.invoiceItems[index]).filter(Boolean);\n            const invoiceCanBeSafelyDeleted = yield this.validateInvoiceItemsSafeToDelete.perform(itemsToDelete);\n            if (!invoiceCanBeSafelyDeleted && !confirm(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoiceItemCalculationDependencyWarning'))) return;\n            yield Promise.all(itemsToDelete.map(item => item.destroyRecord()));\n            this.invoiceItems.removeObjects(itemsToDelete);\n            this.selectedItemIndexes = new Set();\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Successfully deleted items'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Something went wrong deleting items'),\n              error: error\n            });\n          }\n        }\n      }), null, \"deleteInvoiceItems\", null));\n      _initializerDefineProperty(this, \"downloadInvoice\", _descriptor19, this);\n      _defineProperty(this, \"downloadAttachments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const zipBlob = yield this.buildaPrice.getInvoiceBillAttachmentsZip({\n              entity: this.sessionData.entity.id,\n              invoice: this.invoice.id\n            });\n            if (!zipBlob) return;\n            (0, _download.download)(zipBlob, `${this.invoice.invoiceNumber}_bill_documents`, 'application/zip');\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingAttachment'),\n              error: error\n            });\n          }\n        }\n      }), null, \"downloadAttachments\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          // WIP\n          const exportedItemsData = this.exportedData.items.map(item => {\n            return [`${this.invoice.invoiceNumber}`, `${this.exportedData.status}`, `${this.exportedData.fromDetails}`, `${this.exportedData.contactDetails}`, `${this.exportedData.issueDate}`, `${this.exportedData.dueDate}`, `${item.code ? item.code : ''}`, `${item.description}`, `${this.numberFormat.format(item.unitPrice, {\n              style: 'currency',\n              dashZero: true\n            })}`, `${item.quantity}`, `${this.numberFormat.format(item.unitPrice * item.quantity, {\n              style: 'currency'\n            })}`];\n          });\n          const table = [[this.intl.t('common.Invoice number'), this.intl.t('common.Status'), this.intl.t('common.From'), this.intl.t('common.To'), this.intl.t('common.Issue date'), this.intl.t('common.Due date'), this.intl.t('common.Code'), this.intl.t('common.Description'), this.intl.t('common.Unit price'), this.intl.t('common.Quantity'), this.intl.t('common.Line total'), this.intl.t('common.Subtotal'), this.intl.t('common.Tax'), this.intl.t('common.Total')], ...exportedItemsData, ['', '', '', '', '', '', '', '', '', '', '', this.numberFormat.format(this.exportedData.subtotal, {\n            style: 'currency',\n            dashZero: true\n          }), this.numberFormat.format(this.exportedData.taxValue, {\n            style: 'currency',\n            dashZero: true\n          }), this.numberFormat.format(this.exportedData.totalWithTax, {\n            style: 'currency',\n            dashZero: true\n          })]];\n          (0, _csvBuilder.downloadCSV)(table, this.filename);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"downloadAsExcel\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const report = [];\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.Invoice number'), this.invoice.invoiceNumber]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.Status'), this.exportedData.status]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.Issue date'), this.exportedData.issueDate]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.Due date'), this.exportedData.dueDate]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.From'), this.exportedData.fromDetails]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.To'), this.exportedData.contactDetails]\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'invoiceHeading',\n            data: [this.intl.t('common.Description'), this.intl.t('common.Unit price'), this.intl.t('common.Quantity'), this.intl.t('common.Total')]\n          });\n          this.exportedData.items.map(item => {\n            report.push({\n              lineType: 'invoiceItemRow',\n              data: [item.description, Number(item.unitPrice), item.quantity, item.unitPrice * item.quantity]\n            });\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'invoiceItemTotalRow',\n            data: ['', '', this.intl.t('common.Subtotal'), this.exportedData.subtotal]\n          });\n          report.push({\n            lineType: 'invoiceTaxRow',\n            data: ['', '', this.intl.t('common.Tax'), this.exportedData.taxValue]\n          });\n          report.push({\n            lineType: 'invoiceItemTotalRow',\n            data: ['', '', this.intl.t('common.Total'), this.exportedData.totalWithTax]\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'invoiceFooterRow',\n            data: [this.model.invoiceOption.last.value.footerNotes]\n          });\n          yield this.buildaPrice.downloadExcel(this.filename, {\n            data: report,\n            reportType: 'invoice'\n          });\n        }\n      }), null, \"downloadAsExcel\", null));\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.buildaPrice.downloadInvoicePDF(this.filename, {\n              entity: this.sessionData.entity.id,\n              invoice: this.model.invoice.last.value.id\n            });\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingThePDF'),\n              error\n            });\n          }\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadBreakdownAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.buildaPrice.downloadInvoiceBreakdownPDF(this.invoiceBreakdownFileName, {\n              entity: this.sessionData.entity.id,\n              invoice: this.model.invoice.last.value.id\n            });\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingThePDF'),\n              error\n            });\n          }\n        }\n      }), null, \"downloadBreakdownAsPdf\", null));\n      _defineProperty(this, \"changeStatus\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (status, syncToAccountingPackage) {\n          try {\n            yield this.invoiceChangeSet.validate();\n            if (this.invoiceChangeSet.isInvalid) {\n              // highlight the edit invoice button\n              if (!this.isEditingInvoice) document.getElementById(this.invoiceEditButtonId).focus();\n              this.notifications.warning(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Please complete the invoice information'));\n              return;\n            }\n            if (!this.isRevertCompletedToDraftInvoice && status === 'DRAFT' && this.invoiceChangeSet.status === 'COMPLETED') {\n              this.isRevertCompletedToDraftInvoice = true;\n              return;\n            }\n            if (syncToAccountingPackage) {\n              yield this.syncToAccountingPackage.perform();\n            }\n            if (status) {\n              yield new Promise(resolve => setTimeout(resolve, 1000));\n              this.invoiceChangeSet.status = status;\n              yield this.saveInvoice.perform();\n            }\n            this.isRevertCompletedToDraftInvoice = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong changing status'),\n              error\n            });\n            this.isRevertCompletedToDraftInvoice = false;\n          }\n        }\n      }), null, \"changeStatus\", null));\n      _defineProperty(this, \"syncToAccountingPackage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const platform = this.accountingPlatform.activePlatform;\n          if (!platform) return;\n          this.setDownloadInvoice(platform);\n        }\n      }), null, \"syncToAccountingPackage\", null));\n      _defineProperty(this, \"viewInAccountingPackage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.accountingPlatform.viewInvoice(this.invoice);\n        }\n      }), null, \"viewInAccountingPackage\", null));\n      _defineProperty(this, \"createCreditNote\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const invoice = this.model.invoice.last.value;\n            const creditNote = yield this.buildaPrice.createCreditNoteFromInvoice({\n              entity: this.sessionData.entity.id,\n              invoice: invoice.id\n            });\n            this.router.transitionTo(`entity.builda-price.operations.outgoing.invoices.invoice`, creditNote.id);\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Successfully created credit note'));\n            this.isCreatingCreditNote = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.createCreditNoteFailureMessage'),\n              error\n            });\n          }\n        }\n      }), null, \"createCreditNote\", null));\n      _defineProperty(this, \"viewRelatedDocument\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceId) {\n          const url = this.router.urlFor('entity.builda-price.operations.outgoing.invoices.invoice', invoiceId);\n          window.open(url, '_blank');\n        }\n      }), null, \"viewRelatedDocument\", null));\n      _initializerDefineProperty(this, \"invoiceBreakdownOptions\", _descriptor20, this);\n      _defineProperty(this, \"initInvoiceBreakdown\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            let invoiceOptions;\n            const invoiceInvoiceOptions = yield this.store.query('invoice-invoice-option', {\n              filter: {\n                and: [{\n                  field: 'invoice',\n                  op: 'EQ',\n                  value: this.invoice.id\n                }]\n              }\n            });\n            if (!invoiceInvoiceOptions.length) {\n              const entityInvoiceOptions = yield this.store.query('entity-invoice-option', {\n                filter: {\n                  and: [{\n                    field: 'entity',\n                    op: 'EQ',\n                    value: this.sessionData.entity.id\n                  }]\n                }\n              });\n              invoiceOptions = this.store.createRecord('invoice-invoice-option', {\n                invoice: this.invoice,\n                entity: this.sessionData.entity,\n                firstGroupBy: entityInvoiceOptions[0] ? entityInvoiceOptions[0].firstGroupBy : 'TASK',\n                materialsDetail: entityInvoiceOptions[0] ? entityInvoiceOptions[0].materialsDetail : 'TOTAL',\n                labourDetail: entityInvoiceOptions[0] ? entityInvoiceOptions[0].labourDetail : 'TOTAL',\n                subcontractorsDetail: entityInvoiceOptions[0] ? entityInvoiceOptions[0].subcontractorsDetail : 'TOTAL',\n                timesheetDetails: entityInvoiceOptions[0] ? entityInvoiceOptions[0].timesheetDetails : [],\n                includeLabourBillsProfitMargins: entityInvoiceOptions.firstObject ? entityInvoiceOptions.firstObject.includeLabourBillsProfitMargins : false,\n                includeMaterialBillsProfitMargins: entityInvoiceOptions.firstObject ? entityInvoiceOptions.firstObject.includeMaterialBillsProfitMargins : false,\n                includeSubcontractorBillsProfitMargins: entityInvoiceOptions.firstObject ? entityInvoiceOptions.firstObject.includeSubcontractorBillsProfitMargins : false,\n                includeTimesheetsProfitMargins: entityInvoiceOptions.firstObject ? entityInvoiceOptions.firstObject.includeTimesheetsProfitMargins : false,\n                includeTimesheetsCostMargins: entityInvoiceOptions.firstObject ? entityInvoiceOptions.firstObject.includeTimesheetsCostMargins : false,\n                includeBillable: entityInvoiceOptions[0] ? entityInvoiceOptions[0].includeBillable : false,\n                includeInvoiced: entityInvoiceOptions[0] ? entityInvoiceOptions[0].includeInvoiced : false\n              });\n            } else {\n              invoiceOptions = invoiceInvoiceOptions[0];\n            }\n            this.invoiceBreakdownOptions = (0, _emberChangeset.Changeset)(invoiceOptions);\n            yield this.getInvoiceBreakdownHtml.perform();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.loadBreakdownOptionsError'),\n              error\n            });\n          }\n        }\n      }), null, \"initInvoiceBreakdown\", null));\n      _defineProperty(this, \"getInvoiceBreakdownHtml\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.invoiceItems.length) return;\n          return this.buildaPrice.getInvoiceBreakdownHTML(this.filename, {\n            entity: this.sessionData.entity.id,\n            invoice: this.model.invoice.last.value.id,\n            firstGroupBy: this.invoiceBreakdownOptions.firstGroupBy,\n            materialsDetail: this.invoiceBreakdownOptions.materialsDetail,\n            labourDetail: this.invoiceBreakdownOptions.labourDetail,\n            subcontractorsDetail: this.invoiceBreakdownOptions.subcontractorsDetail,\n            breakdownNotes: this.invoiceBreakdownOptions.breakdownNotes,\n            timesheetDetails: this.invoiceBreakdownOptions.timesheetDetails,\n            includeLabourBillsProfitMargins: this.invoiceBreakdownOptions.includeLabourBillsProfitMargins,\n            includeMaterialBillsProfitMargins: this.invoiceBreakdownOptions.includeMaterialBillsProfitMargins,\n            includeSubcontractorBillsProfitMargins: this.invoiceBreakdownOptions.includeSubcontractorBillsProfitMargins,\n            includeTimesheetsProfitMargins: this.invoiceBreakdownOptions.includeTimesheetsProfitMargins,\n            includeTimesheetsCostMargins: this.invoiceBreakdownOptions.includeTimesheetsCostMargins,\n            includeBillable: this.invoiceBreakdownOptions.includeBillable,\n            includeInvoiced: this.invoiceBreakdownOptions.includeInvoiced\n          });\n        }\n      }), null, \"getInvoiceBreakdownHtml\", null));\n      _defineProperty(this, \"saveBreakdownOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.invoiceBreakdownOptions.save();\n            this.showConfigureBreakdownOptionsModal = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.saveBreakdownOptionsError'),\n              error\n            });\n          }\n        }\n      }), null, \"saveBreakdownOptions\", null));\n      _defineProperty(this, \"saveBreakdownOptionsAsCompanyDefault\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const companyOptions = this.companyInvoiceOptions || _entityInvoiceOption.default.defaultOptionsRecord(this.store, this.sessionData.entity);\n            companyOptions.setProperties({\n              breakdownNotes: this.invoiceBreakdownOptions.breakdownNotes,\n              firstGroupBy: this.invoiceBreakdownOptions.firstGroupBy,\n              materialsDetail: this.invoiceBreakdownOptions.materialsDetail,\n              labourDetail: this.invoiceBreakdownOptions.labourDetail,\n              subcontractorsDetail: this.invoiceBreakdownOptions.subcontractorsDetail,\n              // If the invoice is already grouped by task, don't group the timesheets by task again.\n              timesheetDetails: this.invoiceBreakdownOptions.firstGroupBy === 'TASK' ? this.invoiceBreakdownOptions.timesheetDetails.filter(option => option !== 'TASK') : this.invoiceBreakdownOptions.timesheetDetails,\n              includeLabourBillsProfitMargins: this.invoiceBreakdownOptions.includeLabourBillsProfitMargins,\n              includeMaterialBillsProfitMargins: this.invoiceBreakdownOptions.includeMaterialBillsProfitMargins,\n              includeSubcontractorBillsProfitMargins: this.invoiceBreakdownOptions.includeSubcontractorBillsProfitMargins,\n              includeTimesheetsProfitMargins: this.invoiceBreakdownOptions.includeTimesheetsProfitMargins,\n              includeBillable: this.invoiceBreakdownOptions.includeBillable,\n              includeInvoiced: this.invoiceBreakdownOptions.includeInvoiced\n            });\n            yield companyOptions.save();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.saveBreakdownOptionsAsCompanyDefaultError'),\n              error\n            });\n          }\n        }\n      }), null, \"saveBreakdownOptionsAsCompanyDefault\", null));\n    }\n    get invoiceItemEditorHeader() {\n      return this.currentInvoiceItem?.isNew ? this.intl.t('common.Add item') : this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Edit item');\n    }\n    get canManageInvoices() {\n      return this.model.invoicePermissions.last.value?.canManageInvoices;\n    }\n    get canApproveInvoices() {\n      return this.model.invoicePermissions.last.value?.canApproveInvoices;\n    }\n    get canUseFileStorage() {\n      return this.model.invoicePermissions.last.value?.canUseFileStorage;\n    }\n    get canManageFileStorage() {\n      return this.model.invoicePermissions.last.value?.canUseFileStorage;\n    }\n    get invoiceActions() {\n      const actions = {\n        primaryAction: undefined,\n        secondaryActions: []\n      };\n      if (!this.canManageInvoices && !this.invoiceItems.length) return actions;\n\n      // nothing to move along until the total is corrected\n      if (this.isInvoiceTotalInvalid) return actions;\n      if (this.status === 'DRAFT') {\n        actions.primaryAction = {\n          name: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Submit for approval'),\n          action: this.changeStatus,\n          targetStatus: 'AWAITING_APPROVAL'\n        };\n        if (this.canApproveInvoices) actions.secondaryActions.push({\n          name: this.intl.t('common.Approve'),\n          action: this.changeStatus,\n          targetStatus: 'APPROVED'\n        });\n        if (this.canApproveInvoices) actions.secondaryActions.push({\n          name: this.intl.t('common.Complete'),\n          action: this.changeStatus,\n          syncToAccountingPackage: false,\n          targetStatus: 'COMPLETED'\n        });\n        if (this.accountingPlatform.isActive && this.canApproveInvoices) actions.secondaryActions.push({\n          name: `${this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.completeSyncTo')} ${this.accountingPlatform.label}`,\n          action: this.changeStatus,\n          syncToAccountingPackage: true,\n          targetStatus: 'COMPLETED'\n        });\n      } else if (this.canApproveInvoices && this.status === 'AWAITING_APPROVAL') {\n        actions.primaryAction = {\n          name: this.intl.t('common.Approve'),\n          action: this.changeStatus,\n          targetStatus: 'APPROVED'\n        };\n        actions.secondaryActions.push({\n          name: this.intl.t('common.Complete'),\n          action: this.changeStatus,\n          syncToAccountingPackage: false,\n          targetStatus: 'COMPLETED'\n        });\n        if (this.accountingPlatform.isActive) actions.secondaryActions.push({\n          name: `${this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.completeSyncTo')} ${this.accountingPlatform.label}`,\n          action: this.changeStatus,\n          syncToAccountingPackage: true,\n          targetStatus: 'COMPLETED'\n        });\n      } else if (this.status === 'APPROVED') {\n        if (this.accountingPlatform.isActive) {\n          actions.primaryAction = {\n            name: `${this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.completeSyncTo')} ${this.accountingPlatform.label}`,\n            action: this.changeStatus,\n            syncToAccountingPackage: true,\n            targetStatus: 'COMPLETED'\n          };\n          actions.secondaryActions.push({\n            name: this.intl.t('common.Complete'),\n            action: this.changeStatus,\n            syncToAccountingPackage: false,\n            targetStatus: 'COMPLETED'\n          });\n        } else {\n          actions.primaryAction = {\n            name: this.intl.t('common.Complete'),\n            action: this.changeStatus,\n            syncToAccountingPackage: false,\n            targetStatus: 'COMPLETED'\n          };\n        }\n      }\n\n      // sync to account package is always an option\n      if (this.accountingPlatform.isActive) {\n        if (actions.primaryAction) {\n          actions.secondaryActions.push({\n            name: `${this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Sync to')} ${this.accountingPlatform.label}`,\n            action: this.syncToAccountingPackage\n          });\n        } else {\n          actions.primaryAction = {\n            name: `${this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Sync to')} ${this.accountingPlatform.label}`,\n            action: this.syncToAccountingPackage\n          };\n        }\n      }\n      if (actions.primaryAction) {\n        if (this.status !== 'DRAFT' && this.status !== 'COMPLETED') {\n          actions.secondaryActions.push({\n            name: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Revert to draft'),\n            action: this.changeStatus,\n            syncToAccountingPackage: false,\n            targetStatus: 'DRAFT'\n          });\n        }\n      }\n      return actions;\n    }\n    get invoice() {\n      return this.model.invoice.last.value;\n    }\n    get invoiceChangeSet() {\n      return this.model.invoiceChangeSet.last.value;\n    }\n    showConfigureBreakdownOptionsModalDialog() {\n      this.showConfigureBreakdownOptionsModal = true;\n      this.initInvoiceBreakdown.perform();\n    }\n    get invoiceItems() {\n      if (this._invoiceItems) return this._invoiceItems;\n      return this.model.invoiceItems.last.value || [];\n    }\n    set invoiceItems(value) {\n      this._invoiceItems = value;\n    }\n    get lastSortIndex() {\n      const highestSortOrderItem = this.invoiceItems.sortBy('sortIndex').reverse()[0];\n      return highestSortOrderItem?.sortIndex || 0;\n    }\n    get isActionsRunning() {\n      return this.invoiceActions.secondaryActions.some(action => action.action.isRunning) || this.invoiceActions.primaryAction.action.isRunning;\n    }\n    get isInvoiceTotalInvalid() {\n      const {\n        invoiceType,\n        totalPrice\n      } = this.invoice;\n      return this.status === 'DRAFT' && (invoiceType === 'CREDIT_NOTE' && totalPrice > 0 || invoiceType === 'INVOICE' && totalPrice < 0);\n    }\n    get invoiceTotalError() {\n      if (!this.isInvoiceTotalInvalid) return undefined;\n      return this.intl.t(this.invoice.invoiceType === 'CREDIT_NOTE' ? 'entity.builda-price.operations.outgoing.invoices.invoice.A credit note total cannot be positive' : 'entity.builda-price.operations.outgoing.invoices.invoice.An invoice total cannot be negative');\n    }\n    get status() {\n      return this.model.invoice.last.value.status;\n    }\n    get isLoading() {\n      return this.model.invoice.isRunning || this.model.invoiceItems.isRunning || this.model.suppliers.isRunning || this.model.invoiceChangeSet.isRunning || this.model.invoicePermissions.isRunning || this.model.relatedInvoices.isRunning;\n    }\n    get relatedDocuments() {\n      const related = this.model.relatedInvoices.last.value || [];\n      const relatedInvoices = related.map(invoice => ({\n        id: invoice.id,\n        action: this.viewRelatedDocument,\n        label: `${this.intl.t('common.View')} ${invoice.invoiceNumber}`\n      }));\n      const referencedInvoice = this.invoice.belongsTo('referencedInvoice').value();\n      if (referencedInvoice && !relatedInvoices.some(doc => doc.id === referencedInvoice.id)) {\n        relatedInvoices.unshift({\n          id: referencedInvoice.id,\n          action: this.viewRelatedDocument,\n          label: `${this.intl.t('common.View')} ${referencedInvoice.invoiceNumber}`\n        });\n      }\n      return relatedInvoices;\n    }\n    get totalFooter() {\n      if (!this.invoiceItems.length) return null;\n      const {\n        subtotal,\n        tax\n      } = this.invoiceItems.reduce((acc, item) => {\n        const itemSubtotal = item.unitPrice * item.quantity;\n        const itemTax = itemSubtotal * (item.taxRate || 0);\n        acc.subtotal += itemSubtotal;\n        acc.tax += itemTax;\n        return acc;\n      }, {\n        subtotal: 0,\n        tax: 0\n      });\n      const total = subtotal + tax;\n      return {\n        subtotal: this.numberFormat.format(subtotal, {\n          style: 'currency',\n          dashZero: true\n        }),\n        tax: this.numberFormat.format(tax, {\n          style: 'currency',\n          dashZero: true\n        }),\n        total: this.numberFormat.format(total, {\n          style: 'currency',\n          dashZero: true\n        })\n      };\n    }\n    get itemTableData() {\n      return this.invoiceItems.map((item, index) => {\n        const itemData = [{\n          type: 'BUTTON',\n          textClass: 'btn btn-link',\n          onClickButton: () => this.editInvoiceItem(item),\n          value: item.description\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: 'text-right',\n          value: this.numberFormat.format(item.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          })\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: 'text-right',\n          min: '0',\n          max: '1000000',\n          value: item.quantity || 0\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: 'text-nowrap',\n          value: this.numberFormat.format(item.unitPrice * item.quantity, {\n            style: 'currency',\n            dashZero: true\n          })\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: 'text-right',\n          value: this.numberFormat.format(item.taxRate, {\n            style: 'percent',\n            dashZero: true,\n            maximumSignificantDigits: 4\n          })\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: 'text-nowrap',\n          value: this.numberFormat.format(item.unitPrice * item.quantity * (1 + item.taxRate || 0), {\n            style: 'currency',\n            dashZero: true\n          })\n        }];\n        if (this.canEdit) {\n          itemData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectedItemIndexes.has(index),\n            onInputChange: this.selectItem,\n            extraData: {\n              index\n            },\n            disabled: Boolean(item.belongsTo('stagePayment').id())\n          });\n        }\n        return {\n          rowData: itemData\n        };\n      });\n    }\n    get itemTableHeader() {\n      const itemHeader = [{\n        value: this.intl.t('common.Description'),\n        iconName: this.sortBy === 'Description' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left text-nowrap w-50'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        value: this.intl.t('common.Qty'),\n        iconName: this.sortBy === 'Qty' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        value: this.intl.t('common.Subtotal'),\n        iconName: this.sortBy === 'Subtotal' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        value: this.intl.t('common.Tax'),\n        iconName: this.sortBy === 'Tax' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        colClass: 'text-right text-nowrap',\n        value: this.intl.t('common.Total')\n      }];\n      if (this.canEdit && this.invoiceItems.length) {\n        const selectableInvoiceItemLength = this.invoiceItems.reduce((i, ii) => i + (ii.belongsTo('stagePayment').id() ? 0 : 1), 0);\n        itemHeader.unshift({\n          type: 'CHECKBOX_INPUT',\n          colClass: 'text-center align-middle',\n          value: Boolean(selectableInvoiceItemLength && this.selectedItemIndexes.size === selectableInvoiceItemLength),\n          isPartiallySelected: Boolean(this.selectedItemIndexes.size && this.selectedItemIndexes.size !== selectableInvoiceItemLength),\n          onInputChange: this.onSelectCurrentPageItems\n        });\n      }\n      return itemHeader;\n    }\n    get canEdit() {\n      return (this.canManageInvoices || this.canApproveInvoices) && !['COMPLETED', 'APPROVED'].includes(this.status);\n    }\n    get canManageOrApproveInvoice() {\n      return this.canManageInvoices || this.canApproveInvoices;\n    }\n    get canAllocate() {\n      return this.canEdit;\n    }\n    get canAddItems() {\n      const canUseProjects = this.newFeatureFlags.includesFeatureFlags('canUseProjects', 'canUseTasks');\n      return canUseProjects;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${this.invoice.invoiceNumber}_${year}-${month}-${day}`;\n    }\n    get invoiceBreakdownFileName() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${this.invoice.invoiceNumber}_breakdown_${year}-${month}-${day}`;\n    }\n    get exportedData() {\n      const contact = this.invoice.belongsTo('toContact').value();\n      const contactDetails = contact?.name ? `${contact.name}${contact.address ? `, ${contact.address}` : ''}` : '';\n      const items = this.invoice.hasMany('items').value()?.toArray() || [];\n      const {\n        subtotal,\n        subtotalWithTax\n      } = (items || []).reduce((acc, item) => {\n        const quantity = item.quantity ?? 0;\n        const unitPrice = item.unitPrice ?? 0;\n        const taxRate = item.taxRate ?? 0;\n        const totalPrice = quantity * unitPrice;\n        const taxAmount = totalPrice * taxRate;\n        acc.subtotal += totalPrice;\n        acc.subtotalWithTax += totalPrice + taxAmount;\n        return acc;\n      }, {\n        subtotal: 0,\n        subtotalWithTax: 0\n      });\n      const issueDate = this.invoice.issueDate ? (0, _moment.default)(this.invoice.issueDate).format(this.intl.t('date.dashDayFirst')) : '';\n      const dueDate = this.invoice.dueDate ? (0, _moment.default)(this.invoice.dueDate).format(this.intl.t('date.dashDayFirst')) : '';\n      const taxValue = subtotalWithTax - subtotal;\n      const totalWithTax = subtotalWithTax;\n      const fromDetails = `${this.sessionData.entity.name}${this.sessionData.entity.address ? `, ${this.sessionData.entity.address}` : ''}`;\n      return {\n        fromDetails,\n        contactDetails,\n        status: this.invoice.statusLabel,\n        items,\n        subtotal,\n        taxValue,\n        subtotalWithTax,\n        totalWithTax,\n        issueDate,\n        dueDate\n      };\n    }\n    setToContact(contact) {\n      this.invoiceChangeSet.set('toContact', contact);\n    }\n    closeInvoiceEditModal() {\n      this.invoiceChangeSet.rollback();\n      this.isEditingInvoice = false;\n    }\n    editInvoiceItem(item) {\n      this.currentInvoiceItem = item;\n    }\n    async saveInvoiceItem(item, allocations, allocationDate, contractType) {\n      try {\n        await item.save({\n          adapterOptions: {\n            meta: {\n              allocations,\n              startDate: undefined,\n              endDate: allocationDate,\n              contractType\n            }\n          }\n        });\n        const itemIndex = this.invoiceItems.indexOf(item);\n        if (itemIndex > -1) this.invoiceItems[itemIndex] = item;else this.invoiceItems = [...this.invoiceItems, item];\n        this.closeInvoiceItemEditor();\n        this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Successfully saved item'));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('entity.builda-price.operations.outgoing.invoices.invoice.Something went wrong saving item'),\n          error: error\n        });\n      }\n    }\n    addInvoiceItem() {\n      this.currentInvoiceItem = this.store.createRecord('invoice-item', {\n        entity: this.sessionData.entity,\n        invoice: this.model.invoice.last.value,\n        quantity: this.invoice.invoiceType === 'INVOICE' ? 1 : -1,\n        taxRate: this.sessionData.entity.gst,\n        sortIndex: this.lastSortIndex + 1\n      });\n    }\n    closeInvoiceItemEditor() {\n      this.currentInvoiceItem = undefined;\n\n      // closing allocation model leaves the unsaved record in store\n      const invoiceItems = this.store.peekAll('invoice-item');\n      invoiceItems.filter(item => item?.isNew).map(item => item.unloadRecord());\n    }\n    sortColumn(_row, col) {\n      this.sortBy = col.value;\n      if (this.sortBy !== col.value) {\n        this.sortDirection = 'asc';\n      } else {\n        if (this.sortDirection === 'asc') {\n          this.sortDirection = 'desc';\n        } else if (this.sortDirection === 'desc') {\n          this.sortDirection = undefined;\n        } else {\n          this.sortDirection = 'asc';\n        }\n      }\n      let orderBy;\n      if (!this.sortDirection) {\n        orderBy = 'sortIndex';\n      } else {\n        switch (col.value) {\n          case 'Description':\n            orderBy = 'description';\n            break;\n          case 'Tax':\n            orderBy = 'taxRate';\n            break;\n          case 'Unit price':\n            orderBy = 'unitPrice';\n            break;\n          case 'Qty':\n            orderBy = 'quantity';\n            break;\n          default:\n            break;\n        }\n      }\n      this.invoiceItems = _lodash.default.orderBy(this.invoiceItems, orderBy, this.sortDirection);\n    }\n    goToSupplier() {\n      window.open(this.router.urlFor('entity.settings.contacts.contact', this.invoiceChangeSet.toContact.id), '_blank');\n    }\n    onSelectCurrentPageItems(_row, col, e) {\n      const selectedItemIndexes = new Set();\n      if (e.target.checked) {\n        this.invoiceItems.forEach((ii, index) => {\n          if (!ii.belongsTo('stagePayment').id()) selectedItemIndexes.add(index);\n        });\n      }\n      this.selectedItemIndexes = selectedItemIndexes;\n    }\n    selectItem(_row, col, e) {\n      if (e.target.checked) {\n        this.selectedItemIndexes.add(col.extraData.index);\n      } else {\n        this.selectedItemIndexes.delete(col.extraData.index);\n      }\n\n      // set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectedItemIndexes = this.selectedItemIndexes;\n    }\n    async attachmentsUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        await Promise.all(attachments.map(async attachment => {\n          this.store.createRecord('invoice-attachment', {\n            invoice: this.model.invoice.last.value,\n            entity: this.sessionData.entity,\n            data: attachment.data,\n            filename: attachment.filename,\n            fileType: attachment.fileType,\n            extension: attachment.extension\n          }).save();\n        }));\n        validationErrors.forEach(error => this.notifications.error(error));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n    async deleteAttachment(attachment) {\n      try {\n        const invoiceAttachments = this.model.invoice.last.value.hasMany('attachments').value();\n        const attachmentToBeDeleted = invoiceAttachments.find(item => item.id === attachment.id);\n\n        // first we need to delete the link record\n        await attachmentToBeDeleted?.destroyRecord();\n      } catch (error) {\n        this.notifications.error({\n          error,\n          message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingTheAttachment')\n        });\n      }\n    }\n    downloadAttachment(record) {\n      window.open(record.href, '_blank');\n    }\n    download(type) {\n      switch (type) {\n        case 'csv':\n          this.downloadAsCsv.perform();\n          break;\n        case 'excel':\n          this.downloadAsExcel.perform();\n          break;\n        case 'pdf':\n          this.downloadAsPdf.perform();\n          break;\n      }\n    }\n    setDownloadInvoice(type) {\n      if (!this.invoiceItems.length && (type !== 'xero' || type !== 'quickbooks')) {\n        this.download(type);\n        return;\n      }\n      this.exportOptions = [{\n        key: 'includeBreakdown',\n        name: 'Include breakdown',\n        value: false\n      }, {\n        key: 'includeOriginalBills',\n        name: 'Include original bills',\n        value: false\n      }];\n      this.downloadInvoice = async () => {\n        if (type === 'xero' || type === 'quickbooks') {\n          const options = {};\n          this.exportOptions.map(opt => options[opt.key] = opt.value);\n          await this.accountingPlatform.sendInvoice.perform(this.invoice, options);\n          this.downloadInvoice = null;\n          return;\n        }\n        this.download(type);\n        for (const opt of this.exportOptions) {\n          if (!opt.value) continue;\n          if (opt.key === 'includeBreakdown') {\n            await this.downloadBreakdownAsPdf.perform();\n          } else if (opt.key === 'includeOriginalBills') {\n            await this.downloadAttachments.perform();\n          }\n        }\n        this.downloadInvoice = null;\n      };\n    }\n    get isDownloadingInvoice() {\n      return this.downloadAsCsv.isRunning || this.downloadAsExcel.isRunning || this.downloadAsPdf.isRunning || this.downloadAttachments.isRunning || this.downloadBreakdownAsPdf.isRunning || this.accountingPlatform.sendInvoice.isRunning;\n    }\n    toggleProperty(propertyName) {\n      this[propertyName] = !this[propertyName];\n    }\n    onChangeBreakdownOptionCheckbox() {\n      (0, _runloop.next)(() => {\n        this.getInvoiceBreakdownHtml.perform();\n      });\n    }\n    onToggleTimesheetMargin(thisKey, otherKey) {\n      (0, _runloop.next)(() => {\n        if (this.invoiceBreakdownOptions.get(thisKey)) {\n          this.invoiceBreakdownOptions.set(otherKey, false);\n        }\n        this.getInvoiceBreakdownHtml.perform();\n      });\n    }\n    onChangeFirstGroupBy() {\n      if (this.invoiceBreakdownOptions.firstGroupBy === 'TASK') {\n        this.invoiceBreakdownOptions.timesheetDetails = this.invoiceBreakdownOptions.timesheetDetails.filter(option => option !== 'TASK');\n      }\n      this.getInvoiceBreakdownHtml.perform();\n    }\n    get timesheetGroupingOptions() {\n      if (!this.invoiceBreakdownOptions) return [];\n      const options = [{\n        key: 'DAY',\n        name: this.intl.t('common.Day')\n      }, {\n        key: 'WORKER',\n        name: this.intl.t('common.Worker')\n      }];\n      if (this.invoiceBreakdownOptions.firstGroupBy !== 'TASK') options.push({\n        key: 'TASK',\n        name: this.intl.t('common.Task')\n      });\n      return options;\n    }\n    get companyInvoiceOptions() {\n      return this.store.peekAll('entity-invoice-option').find(option => option.belongsTo('entity').id() === this.sessionData.entity.id);\n    }\n    get hasCompanyBreakdownOptionChanges() {\n      if (!this.invoiceBreakdownOptions) return false;\n      if (!this.companyInvoiceOptions) return true;\n      return ['breakdownNotes', 'firstGroupBy', 'materialsDetail', 'labourDetail', 'subcontractorsDetail', 'timesheetDetails', 'includeLabourBillsProfitMargins', 'includeMaterialBillsProfitMargins', 'includeSubcontractorBillsProfitMargins', 'includeTimesheetsProfitMargins', 'includeBillable', 'includeInvoiced'].some(field => !_lodash.default.isEqual(this.invoiceBreakdownOptions[field], this.companyInvoiceOptions[field]));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"currentInvoiceItem\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingInvoice\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"isCreatingCreditNote\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"isEditingInvoice\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"showConfigureBreakdownOptionsModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"isRevertCompletedToDraftInvoice\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"selectedItemIndexes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"exportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"showConfigureBreakdownOptionsModalDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"showConfigureBreakdownOptionsModalDialog\"), _class2.prototype), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"_invoiceItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setToContact\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setToContact\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeInvoiceEditModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeInvoiceEditModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"editInvoiceItem\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"editInvoiceItem\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"saveInvoiceItem\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"saveInvoiceItem\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"addInvoiceItem\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"addInvoiceItem\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeInvoiceItemEditor\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeInvoiceItemEditor\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"goToSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"goToSupplier\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectCurrentPageItems\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectCurrentPageItems\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"selectItem\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"selectItem\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"attachmentsUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"attachmentsUploadComplete\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"deleteAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"deleteAttachment\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"downloadAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"downloadAttachment\"), _class2.prototype), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"downloadInvoice\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setDownloadInvoice\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDownloadInvoice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleProperty\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleProperty\"), _class2.prototype), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceBreakdownOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onChangeBreakdownOptionCheckbox\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeBreakdownOptionCheckbox\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onToggleTimesheetMargin\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onToggleTimesheetMargin\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeFirstGroupBy\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeFirstGroupBy\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/payroll\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@ember/object/computed\", \"lodash\", \"moment\", \"jquery\", \"portal/utils/csv-builder\", \"portal/utils/crystal-csv-generator\", \"portal/utils/smart-payroll-csv-generator\", \"portal/config/environment\"], function (_exports, _controller, _object, _service, _computed, _lodash, _moment, _jquery, _csvBuilder, _crystalCsvGenerator, _smartPayrollCsvGenerator, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"lodash\",0,\"moment\",0,\"jquery\",0,\"portal/utils/csv-builder\",0,\"portal/utils/crystal-csv-generator\",0,\"portal/utils/smart-payroll-csv-generator\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    intl: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    portalApiToken: (0, _computed.alias)('session.data.authenticated.access_token'),\n    xeroIntegration: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    isSyncingToXero: false,\n    isSyncingToQuickbooks: false,\n    portalApiV2: (0, _service.inject)(),\n    skipDayLocking: false,\n    quickbooks: (0, _service.inject)(),\n    queryParams: ['endDate', 'startDate'],\n    // Report defaults to 1 week ending today.\n    jsEndDate: (0, _object.computed)('endDate', {\n      get() {\n        return (0, _moment.default)((0, _object.get)(this, 'endDate')).toDate();\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'endDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        return value;\n      }\n    }),\n    jsStartDate: (0, _object.computed)('startDate', {\n      get() {\n        return (0, _moment.default)((0, _object.get)(this, 'startDate')).toDate();\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'startDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        return value;\n      }\n    }),\n    activeWorkers: (0, _object.computed)('model.workers.@each.isActive', function () {\n      return (0, _object.get)(this, 'model.workers').filterBy('isActive');\n    }),\n    selectedWorker: null,\n    /**\n     * Creates an array with a Date for each day in the report\n     */\n    reportDays: (0, _object.computed)('startDate', 'endDate', function () {\n      const days = [];\n      const end = (0, _object.get)(this, 'endDate');\n      const day = (0, _moment.default)((0, _object.get)(this, 'startDate')).startOf('day');\n      do {\n        days.push(day.format('YYYY-MM-DD'));\n        day.add(1, 'd');\n      } while (day.format('YYYY-MM-DD') <= end); // eslint-disable-line no-unmodified-loop-condition\n\n      return days;\n    }),\n    /*\n    {\n      [workerId]: {\n        [projectId]: {\n          [dateKey]: TimesheetStatus\n        }\n      }\n    }\n    */\n    statuses: (0, _object.computed)('model.timesheetStatuses', 'model.workers', 'model.timesheets', function () {\n      const workers = (0, _object.get)(this, 'model.workers').toArray();\n      const workerTimesheets = _lodash.default.groupBy((0, _object.get)(this, 'model.timesheets').toArray(), ts => ts.belongsTo('worker').id());\n      const workerStatuses = _lodash.default.groupBy((0, _object.get)(this, 'model.timesheetStatuses').toArray(), st => st.belongsTo('worker').id());\n      return workers.reduce((workerProjectStatuses, worker) => {\n        const workerId = (0, _object.get)(worker, 'id');\n        const workersStatuses = workerStatuses[workerId] || [];\n        const workersTimesheets = workerTimesheets[workerId] || [];\n        return {\n          ...workerProjectStatuses,\n          [workerId]: workersTimesheets.reduce((projects, timesheet) => {\n            const projectId = timesheet.belongsTo('project').id();\n            const date = (0, _object.get)(timesheet, 'date');\n            const existingProjectStatuses = projects[projectId] || {};\n            const status = workersStatuses.find(st => st.belongsTo('project').id() === projectId && (0, _moment.default)((0, _object.get)(st, 'date')).isSame(date, 'day')) || {\n              status: 'pending'\n            }; // use a placeholder pending status\n\n            return {\n              ...projects,\n              [projectId]: {\n                ...existingProjectStatuses,\n                [date]: status\n              }\n            };\n          }, {})\n        };\n      }, {});\n    }),\n    unacceptedStatusesMessage: (0, _object.computed)('model.{timesheetStatuses,timesheets,timesheetNotes}', 'selectedWorker.id', function () {\n      const unacceptedDates = new Set();\n      const selectedWorkerId = (0, _object.get)(this, 'selectedWorker.id');\n      const filteredStatus = selectedWorkerId ? (0, _object.get)(this, 'model.timesheetStatuses').filter(status => status.belongsTo('worker').id() === selectedWorkerId) : (0, _object.get)(this, 'model.timesheetStatuses');\n      const filteredTimesheets = selectedWorkerId ? (0, _object.get)(this, 'model.timesheets').filter(timesheet => timesheet.belongsTo('worker').id() === selectedWorkerId) : (0, _object.get)(this, 'model.timesheets');\n      const statuses = filteredStatus.reduce((obj, status) => {\n        const workerId = status.belongsTo('worker').id();\n        const dateKey = (0, _moment.default)((0, _object.get)(status, 'date')).endOf('day').unix();\n        const projectId = status.belongsTo('project').id();\n        const existingWorkerStatuses = obj[workerId] || {};\n        const existingWorkerDateStatuses = obj[workerId] && obj[workerId][dateKey] || {};\n        return Object.assign({}, obj, {\n          [workerId]: {\n            ...existingWorkerStatuses,\n            [dateKey]: {\n              ...existingWorkerDateStatuses,\n              [projectId]: status\n            }\n          }\n        });\n      }, {});\n      filteredTimesheets.sortBy('date').forEach(timesheet => {\n        const workerId = timesheet.belongsTo('worker').id();\n        const date = (0, _moment.default)((0, _object.get)(timesheet, 'date')).endOf('day');\n        const dateKey = date.unix();\n        const projectId = timesheet.belongsTo('project').id();\n        const status = statuses[workerId] && statuses[workerId][dateKey] && statuses[workerId][dateKey][projectId];\n        if (status && (0, _object.get)(status, 'status') === 'accepted') return;\n        unacceptedDates.add(date.format((0, _object.get)(this, 'intl').t('date.dayMonthAbbr')));\n      });\n      if (unacceptedDates.size) {\n        return `${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.thereAreUnacceptedTimesheetsOnTheFollowingDays')}: ${Array.from(unacceptedDates).join(', ')}.`;\n      }\n      return null;\n    }),\n    /**\n     * Creates a report with row attributes.\n     * Each report element represents a row in the table and looks like the following:\n     * ```\n     * {\n     *   totalHours: Number,\n     *   totalPay: Number,\n     *   dayTotals: Number.[],\n     *   worker: Object, // Optional\n     *   project: Object, // Optional\n     *   task: Object, // Optional\n     * }\n     * ```\n     * Where worker, project, and task reference what you want to appear\n     * in the corresponding columns for each row.\n     */\n    report: (0, _object.computed)('endDate', 'model.{tasks,workers.@each.currentChargeOutRate}', 'reportDays', 'selectedWorker', 'startDate', 'statuses', function () {\n      const selectedWorker = (0, _object.get)(this, 'selectedWorker');\n      const workers = selectedWorker ? [selectedWorker] : (0, _object.get)(this, 'model.workers');\n      const reportDays = (0, _object.get)(this, 'reportDays');\n      const tasksByProject = (0, _object.get)(this, 'model.tasks').reduce((group, task) => {\n        const project = (0, _object.get)(task, 'project.id');\n        if (!group[project]) group[project] = [];\n        group[project].push(task);\n        return group;\n      }, {});\n      const report = [];\n\n      // Each worker gets their own part of the table built up.\n      workers.forEach(worker => {\n        // Get all the projects and tasks that this worker has contributed to.\n        const timesheets = (0, _object.get)(worker, 'timesheets').content?.toArray() || [];\n        const projects = timesheets.map(timesheet => timesheet.project).filter(Boolean);\n        const projectsForWorker = [...new Map(projects.map(p => [p.id, p])).values()];\n        const workerStatuses = (0, _object.get)(this, 'statuses')[(0, _object.get)(worker, 'id')];\n        const workerQuery = {\n          start: (0, _object.get)(this, 'startDate'),\n          end: (0, _object.get)(this, 'endDate')\n        };\n\n        // Calculate the work done by the worker over the whole period.\n        const workerReportRow = buildReportRow({\n          worker,\n          query: workerQuery,\n          days: reportDays\n        });\n        (0, _object.set)(workerReportRow, 'worker', worker);\n\n        // If the worker didnt submit any hours, move on to the next one before adding any rows\n        if (!((0, _object.get)(workerReportRow, 'totalHours') || (0, _object.get)(workerReportRow, 'totalPay'))) return;\n\n        // Create a report row to appear in the table, this corresponds to the total\n        // for the worker over the time period.\n        report.push(workerReportRow);\n\n        // Make a project scoped row for each project, very similar to worker row.\n        projectsForWorker.forEach(project => {\n          const projectQuery = {\n            start: (0, _object.get)(this, 'startDate'),\n            end: (0, _object.get)(this, 'endDate'),\n            project\n          };\n          const projectReportRow = buildReportRow({\n            worker,\n            query: projectQuery,\n            days: reportDays,\n            workerStatuses\n          });\n          if (!((0, _object.get)(projectReportRow, 'totalHours') || (0, _object.get)(projectReportRow, 'totalPay'))) return;\n          report.push(projectReportRow);\n\n          // Make a task scoped row for each task, very similar to worker and project rows.\n          const projectTasks = tasksByProject[(0, _object.get)(project, 'id')] || [];\n          projectTasks.forEach(task => {\n            const taskQuery = {\n              start: (0, _object.get)(this, 'startDate'),\n              end: (0, _object.get)(this, 'endDate'),\n              task\n            };\n            const taskReportRow = buildReportRow({\n              worker,\n              query: taskQuery,\n              days: reportDays\n            });\n            if (!((0, _object.get)(taskReportRow, 'totalHours') || (0, _object.get)(taskReportRow, 'totalPay'))) return;\n            report.push(taskReportRow);\n          });\n        });\n      });\n      return report;\n    }),\n    payRateClashNote: (0, _object.computed)('report', function () {\n      const reports = (0, _object.get)(this, 'report').filter(report => (0, _object.get)(report, 'worker'));\n      const clashes = [];\n      let note;\n      for (const report of reports) {\n        const payRate = (0, _object.get)(report, 'worker.payRate');\n        const currentPay = (0, _object.get)(report, 'totalHours') * payRate;\n        if (currentPay !== (0, _object.get)(report, 'totalPay')) {\n          clashes.push((0, _object.get)(report, 'worker'));\n        }\n      }\n      if (clashes.length) {\n        note = '';\n        clashes.forEach((worker, index) => {\n          const name = (0, _object.get)(worker, 'firstName') + ' ' + (0, _object.get)(worker, 'lastName');\n          const and = clashes.length > 1 && index + 1 !== clashes.length ? ` ${(0, _object.get)(this, 'intl').t('common.and')} ` : '';\n          note += name + and;\n        });\n        note += ` ${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.hadTheirPayRateChangedTheReportedTotalsMayNotBalanceAgainstTheCurrentPayRate')}`;\n      }\n      return note;\n    }),\n    shiftDays: (0, _object.action)(function (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: (0, _object.action)(function (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    exportAsCSV: (0, _object.action)(async function (skipValidation) {\n      if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n        return (0, _object.set)(this, 'confirmExportActionName', 'exportAsCSV');\n      } else {\n        (0, _object.set)(this, 'confirmExportActionName', null);\n      }\n      const startDate = (0, _moment.default)((0, _object.get)(this, 'startDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n      const endDate = (0, _moment.default)((0, _object.get)(this, 'endDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n      const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n      const userName = (0, _object.get)(this, 'sessionData.user.email');\n      const days = (0, _object.get)(this, 'reportDays').map(d => (0, _moment.default)(d).format((0, _object.get)(this, 'intl').t('date.dashDayFirst')));\n      // TODO change permissions when new permission is implemented\n      const canSeePayRate = this.newFeatureFlags.includesFeatureFlags('canManagePayroll');\n\n      // Create a 2d array that represents a spreadsheet\n      const headings = [(0, _object.get)(this, 'intl').t('common.Name')];\n      if (canSeePayRate) headings.push((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Pay rate'));\n      headings.push((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Total hours'));\n      if (canSeePayRate) headings.push((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Total pay'));\n      headings.push((0, _object.get)(this, 'intl').t('common.project'), (0, _object.get)(this, 'intl').t('common.task'), ...days);\n      const table = [\n      // Report metadata\n      [(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Payroll report')], [`${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Report for')}:`, entityName], [`${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Generated by')}:`, userName], [`${(0, _object.get)(this, 'intl').t('common.From')}:`, startDate, `${(0, _object.get)(this, 'intl').t('common.to')}:`, endDate], ['', ''],\n      // Table Headings\n      headings,\n      // Table data\n      ...(0, _object.get)(this, 'report').map(row => {\n        const rowArray = [(0, _object.get)(row, 'worker.fullName')];\n        if (canSeePayRate) rowArray.push((0, _object.get)(row, 'worker.payRate'));\n        rowArray.push((0, _object.get)(row, 'totalHours'));\n        if (canSeePayRate) rowArray.push((0, _object.get)(row, 'totalPay'));\n        rowArray.push((0, _object.get)(row, 'project.name'), (0, _object.get)(row, 'task.name'), ...(0, _object.get)(row, 'dayTotals').mapBy('totalHours'));\n        return rowArray;\n      })];\n      if ((0, _object.get)(this, 'payRateClashNote')) table.splice(4, 0, [(0, _object.get)(this, 'payRateClashNote')]);\n      if (!(0, _object.get)(this, 'skipDayLocking')) {\n        await this.acceptAndLockDays();\n      }\n      if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n      const fileName = `payroll-${startDate}-to-${endDate}.csv`;\n      (0, _csvBuilder.downloadCSV)(table, fileName);\n    }),\n    exportAsCrystalCSV: (0, _object.action)(async function (skipValidation) {\n      if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n        return (0, _object.set)(this, 'confirmExportActionName', 'exportAsCrystalCSV');\n      } else {\n        (0, _object.set)(this, 'confirmExportActionName', null);\n      }\n      const canUseCrystalPayroll = this.newFeatureFlags.includesFeatureFlags('entityCanUseCrystalPayroll');\n      const canSeePayRate = this.newFeatureFlags.includesFeatureFlags('canManagePayroll');\n      if (!canSeePayRate || !canUseCrystalPayroll) throw new Error('You do not have the correct permissions to export payroll information');\n\n      /* eslint-disable max-len */\n      if (!confirm((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.crystalPayrollExpectWorkerNamesToMatchExactlyAsIsInTheirSystemWouldYouLikeToContinue'))) return; // eslint-disable-line no-alert\n\n      const startDate = (0, _moment.default)((0, _object.get)(this, 'startDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n      const endDate = (0, _moment.default)((0, _object.get)(this, 'endDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n      const workers = (0, _object.get)(this, 'model.workers');\n      const reportDays = (0, _object.get)(this, 'reportDays');\n      const workerQuery = {\n        start: (0, _object.get)(this, 'startDate'),\n        end: (0, _object.get)(this, 'endDate')\n      };\n      const workersWithComputedHours = workers.map(worker => {\n        return {\n          fullName: `${(0, _object.get)(worker, 'firstName')} ${(0, _object.get)(worker, 'lastName')}`,\n          totals: getHoursByDay({\n            worker,\n            query: workerQuery,\n            days: reportDays\n          }),\n          payRate: (0, _object.get)(worker, 'payRate')\n        };\n      });\n      const crystalCSV = (0, _crystalCsvGenerator.generateCrystalCSV)(workersWithComputedHours, reportDays);\n      if (!(0, _object.get)(this, 'skipDayLocking')) {\n        await this.acceptAndLockDays();\n      }\n      if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n      const fileName = `crystal-payroll-${startDate}-to-${endDate}.csv`;\n      (0, _csvBuilder.downloadCSVCrystal)(crystalCSV, fileName);\n    }),\n    exportAsSmartPayrollCSV: (0, _object.action)(async function (skipValidation) {\n      if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n        return (0, _object.set)(this, 'confirmExportActionName', 'exportAsSmartPayrollCSV');\n      } else {\n        (0, _object.set)(this, 'confirmExportActionName', null);\n      }\n      const canUseSmartPayroll = this.newFeatureFlags.includesFeatureFlags('entityCanUseSmartPayroll');\n      const canSeePayRate = this.newFeatureFlags.includesFeatureFlags('canManagePayroll');\n      if (!canSeePayRate || !canUseSmartPayroll) throw new Error('You do not have the correct permissions to export payroll information');\n      const workerQuery = {\n        start: (0, _object.get)(this, 'startDate'),\n        end: (0, _object.get)(this, 'endDate')\n      };\n      const workerReportData = (0, _object.get)(this, 'model.workers').map(worker => ({\n        smartPayrollEmployeeCode: worker.smartPayrollEmployeeCode,\n        smartPayrollEmployeeDepartmentCode: worker.smartPayrollEmployeeDepartmentCode,\n        dayTotals: getHoursByDay({\n          worker,\n          query: workerQuery,\n          days: (0, _object.get)(this, 'reportDays')\n        })\n      })).filter(({\n        dayTotals\n      }) => dayTotals.find(({\n        totalHours\n      }) => totalHours));\n      const workerReportDataWithCodes = workerReportData.filter(({\n        smartPayrollEmployeeCode\n      }) => smartPayrollEmployeeCode);\n      if (workerReportDataWithCodes.length !== workerReportData.length && !confirm((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.xOfYWorkersDoNotHaveEmployeeCodesAndWillNotBeExportedDoYouWishToContinue', {\n        x: workerReportData.length - workerReportDataWithCodes.length,\n        y: workerReportData.length\n      })) // eslint-disable-line no-alert\n      ) return;\n      const table = (0, _smartPayrollCsvGenerator.generateSmartPayrollCSV)(workerReportDataWithCodes);\n      if (!(0, _object.get)(this, 'skipDayLocking')) {\n        await this.acceptAndLockDays();\n      }\n      const fileName = `payroll-${(0, _moment.default)((0, _object.get)(this, 'startDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'))}-to-${(0, _moment.default)((0, _object.get)(this, 'endDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'))}.csv`;\n      (0, _csvBuilder.downloadCSV)(table, fileName, {\n        includeBOM: false,\n        quoteValues: false\n      });\n      if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n    }),\n    // eslint-disable-next-line complexity\n    exportForXero: (0, _object.action)(async function (skipValidation) {\n      if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n        return (0, _object.set)(this, 'confirmExportActionName', 'exportForXero');\n      } else {\n        (0, _object.set)(this, 'confirmExportActionName', null);\n      }\n      (0, _object.set)(this, 'isSyncingToXero', true);\n      const xero = (0, _object.get)(this, 'xeroIntegration');\n      const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n      const startDate = (0, _object.get)(this, 'startDate');\n      const endDate = (0, _object.get)(this, 'endDate');\n      const selectedProjectId = (0, _object.get)(this, 'selectedProject.id');\n      const selectedWorkerId = (0, _object.get)(this, 'selectedWorker.id');\n      const workers = (0, _object.get)(this, 'model.workers');\n      try {\n        const query = {\n          startDate,\n          endDate,\n          entityId,\n          projectId: selectedProjectId,\n          workerId: selectedWorkerId\n        };\n        const responseData = await xero.createXeroTimesheets(query);\n        const {\n          message,\n          completed,\n          failures,\n          success\n        } = responseData;\n        if (completed && !failures.length) {\n          return (0, _object.get)(this, 'notifications').success(message);\n        }\n        const failuresByWorker = _lodash.default.groupBy(failures, 'worker');\n        const successByWorker = _lodash.default.groupBy(success, 'worker');\n        const workerIds = [...new Set([...Object.keys(failuresByWorker), ...Object.keys(successByWorker)])];\n        const workerSummaries = workerIds.map(workerId => ({\n          worker: workers.findBy('id', workerId),\n          success: successByWorker[workerId] || [],\n          failures: failuresByWorker[workerId] || []\n        }));\n        if (!(0, _object.get)(this, 'skipDayLocking')) {\n          await this.acceptAndLockDays();\n        }\n        if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n        if (completed) (0, _object.get)(this, 'notifications').success((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Timesheets synced with Xero'));else (0, _object.get)(this, 'notifications').error((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Timesheets were not synced with Xero'));\n        (0, _object.set)(this, 'xeroTimesheetsResponseData', {\n          ...responseData,\n          workerSummaries\n        });\n      } catch (error) {\n        if (error.status === 429) return; // error is handled\n        this.send('error', error);\n      } finally {\n        (0, _object.set)(this, 'isSyncingToXero', false);\n      }\n    }),\n    exportForQuickbooks: (0, _object.action)(async function (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    exportAsExcel: (0, _object.action)(async function (skipValidation) {\n      if (!skipValidation && (0, _object.get)(this, 'unacceptedStatusesMessage')) {\n        return (0, _object.set)(this, 'confirmExportActionName', 'exportAsExcel');\n      } else {\n        (0, _object.set)(this, 'confirmExportActionName', null);\n      }\n      const report = [];\n      const startDate = (0, _moment.default)((0, _object.get)(this, 'startDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n      const endDate = (0, _moment.default)((0, _object.get)(this, 'endDate')).format((0, _object.get)(this, 'intl').t('date.dashDayFirst'));\n      const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n      const userName = (0, _object.get)(this, 'sessionData.user.email');\n      const days = (0, _object.get)(this, 'reportDays').map(d => (0, _moment.default)(d).format((0, _object.get)(this, 'intl').t('date.dashDayFirst')));\n      const canSeePayRate = this.newFeatureFlags.includesFeatureFlags('canManagePayroll');\n      report.push({\n        lineType: 'title',\n        data: [(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Payroll report')]\n      });\n      report.push({\n        lineType: 'subtitle',\n        data: [`${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Report for')}:`, entityName]\n      });\n      report.push({\n        lineType: 'subtitle',\n        data: [`${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Generated by')}:`, userName]\n      });\n      report.push({\n        lineType: 'subtitle',\n        data: [`${(0, _object.get)(this, 'intl').t('common.Date range')}:`, `${(0, _object.get)(this, 'intl').t('common.From')} ${startDate} ${(0, _object.get)(this, 'intl').t('common.to')} ${endDate}`]\n      });\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n      if ((0, _object.get)(this, 'payRateClashNote')) {\n        report.push({\n          lineType: 'subtitle',\n          data: [`${(0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Please note')}:`, (0, _object.get)(this, 'payRateClashNote')]\n        });\n        report.push({\n          lineType: 'blank',\n          data: null\n        });\n      }\n      const payRollData = [`${(0, _object.get)(this, 'intl').t('common.Worker')}`, (0, _object.get)(this, 'intl').t('common.Hours')];\n      if (canSeePayRate) {\n        payRollData.push((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Pay rate'));\n        payRollData.push((0, _object.get)(this, 'intl').t('entity.builda-price.operations.outgoing.payroll.Total pay'));\n      }\n      payRollData.push((0, _object.get)(this, 'intl').t('common.Project'), (0, _object.get)(this, 'intl').t('common.Task'), ...days);\n      report.push({\n        lineType: 'payrollHeading',\n        data: payRollData\n      });\n      (0, _object.get)(this, 'report').forEach(row => {\n        const rowArray = [(0, _object.get)(row, 'worker.fullName'), (0, _object.get)(row, 'totalHours')];\n        if (canSeePayRate) {\n          rowArray.push((0, _object.get)(row, 'worker.payRate'));\n          rowArray.push((0, _object.get)(row, 'totalPay'));\n        }\n        rowArray.push((0, _object.get)(row, 'project.name'), (0, _object.get)(row, 'task.name'), ...(0, _object.get)(row, 'dayTotals').mapBy('totalHours'));\n        if ((0, _object.get)(row, 'project.name') === 'All Projects') {\n          report.push({\n            lineType: 'payrollTotalRow',\n            data: rowArray\n          });\n        } else if ((0, _object.get)(row, 'project.name')) {\n          report.push({\n            lineType: 'payrollJobTotalRow',\n            data: rowArray\n          });\n        } else {\n          report.push({\n            lineType: 'payrollCostCenterRow',\n            data: rowArray\n          });\n        }\n      });\n      if (!(0, _object.get)(this, 'skipDayLocking')) {\n        await this.acceptAndLockDays();\n      }\n      return new Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/generate-xlsx',\n          method: 'POST',\n          xhr() {\n            // This seems to be the only way to set the response type to blob.\n            // This will allow js to leave the file as a bytestream rather than trying to parse it.\n            const xhr = new XMLHttpRequest();\n            xhr.responseType = 'blob';\n            return xhr;\n          },\n          headers: {\n            Authorization: `Bearer ${(0, _object.get)(this, 'portalApiToken')}`\n          },\n          data: JSON.stringify({\n            data: report,\n            reportType: 'payroll'\n          }),\n          contentType: 'application/json',\n          accept: 'application/vnd.ms-excel'\n        }).then(resolve, reject);\n      }).then(response => {\n        if ((0, _object.get)(this, 'unacceptedStatusesMessage')) (0, _object.get)(this, 'model.refresh')();\n        const fileName = `payroll-${startDate}-to-${endDate}.xlsx`;\n        return (0, _csvBuilder.downloadXlsx)(response, fileName);\n      });\n    }),\n    exportAsKeypay: (0, _object.action)(async function (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    // The confirm-export modal used {{action this.confirmExportActionName true}},\n    // a runtime string lookup that {{on}}/fn can't express.\n    confirmExport: (0, _object.action)(function () {\n      const actionName = (0, _object.get)(this, 'confirmExportActionName');\n      if (actionName) this[actionName](true);\n    }),\n    confirmExportSkipLocking: (0, _object.action)(function () {\n      (0, _object.set)(this, 'skipDayLocking', true);\n      this.confirmExport();\n    }),\n    cancelConfirmExport: (0, _object.action)(function () {\n      (0, _object.set)(this, 'confirmExportActionName', null);\n    }),\n    acceptAndLockDays: async function () {\n      const startDate = (0, _object.get)(this, 'startDate');\n      const endDate = (0, _object.get)(this, 'endDate');\n      const selectedWorker = (0, _object.get)(this, 'selectedWorker');\n      const workers = selectedWorker ? [selectedWorker] : (0, _object.get)(this, 'activeWorkers');\n      const workerIds = workers.map(x => x.id);\n      await this.portalApiV2.authPost('/timesheets/accept', {\n        startDate,\n        endDate,\n        workerIds\n      });\n      if (this.newFeatureFlags.includesSomeFeatureFlags('canManageEntity', 'canManageTimesheets', 'canManageNotes')) {\n        await this.portalApiV2.authPost('/timesheets/lock', {\n          startDate,\n          endDate,\n          workerIds\n        });\n      }\n    }\n  });\n  function buildReportRow({\n    worker,\n    query,\n    days,\n    workerStatuses\n  }) {\n    const totals = worker.calculateWorkForProject(query);\n    const project = (0, _object.get)(query, 'project');\n    let projectStatuses = {};\n    if (project && workerStatuses) {\n      projectStatuses = workerStatuses[(0, _object.get)(project, 'id')] || {};\n    }\n    let taskBreadcrumbs = '';\n    if ((0, _object.get)(query, 'task.breadcrumbs')) {\n      taskBreadcrumbs += (0, _object.get)(query, 'task.breadcrumbs') + ' > ' + (0, _object.get)(query, 'task.name');\n    }\n    return {\n      project,\n      task: (0, _object.get)(query, 'task'),\n      taskBreadcrumbs,\n      totalHours: (0, _object.get)(totals, 'hours'),\n      totalPay: (0, _object.get)(totals, 'pay'),\n      dayTotals: getHoursByDay({\n        worker,\n        query,\n        days,\n        projectStatuses\n      })\n    };\n  }\n  function getHoursByDay({\n    worker,\n    query,\n    days,\n    projectStatuses = {}\n  }) {\n    return days.map(day => {\n      query.start = day;\n      query.end = day;\n      const dayTotals = worker.calculateWorkForProject(query);\n      const dayInfo = {\n        totalHours: (0, _object.get)(dayTotals, 'hours')\n      };\n      const projectStatus = projectStatuses[day];\n      if (projectStatus) dayInfo.status = projectStatus;\n      return dayInfo;\n    });\n  }\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/purchase-orders/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"moment\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"portal/config/environment\", \"ember-changeset\", \"@ember/runloop\", \"ember-concurrency\", \"portal/utils/search-filter\"], function (_exports, _asyncArrowRuntime, _controller, _moment, _tracking, _object, _service, _environment, _emberChangeset, _runloop, _emberConcurrency, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"ember-changeset\",0,\"@ember/runloop\",0,\"ember-concurrency\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"status\", _descriptor8, this);\n      _initializerDefineProperty(this, \"purchaseOrderChangeSet\", _descriptor9, this);\n      _initializerDefineProperty(this, \"purchaseOrderForm\", _descriptor0, this);\n      _initializerDefineProperty(this, \"addressList\", _descriptor1, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor10, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor11, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor12, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor13, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor14, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor15, this);\n      _defineProperty(this, \"queryParams\", ['searchTerm', 'startDate', 'endDate', 'status']);\n      _defineProperty(this, \"suppliers\", []);\n      _defineProperty(this, \"suppliersPage\", void 0);\n      _defineProperty(this, \"suppliersSearchTerm\", void 0);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"loadSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            if (searchTerm !== this.suppliersSearchTerm) {\n              this.suppliersPage = undefined;\n              this.suppliers = [];\n              this.suppliersSearchTerm = searchTerm;\n            }\n            const supplierFilter = {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) supplierFilter.and.push((0, _searchFilter.default)(['name'], searchTerm));\n            const nextPageNumber = (this.suppliersPage?.currentPage || 0) + 1;\n            const nextPage = yield this.store.query('contact', {\n              filter: supplierFilter,\n              sort: 'name',\n              page: {\n                size: 10,\n                number: nextPageNumber\n              }\n            });\n            this.suppliersPage = nextPage.meta;\n            this.suppliers = [...this.suppliers, ...nextPage.toArray()];\n            return this.suppliers;\n          } catch (e) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreSuppliers'),\n              e\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadSuppliers\", null));\n      _defineProperty(this, \"onSearchAddress\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          this.addressList = this.model.projects.last.value.filter(u => {\n            if (u.address) {\n              const matchString = `${u.address}`.replace(/\\s/g, '').toLowerCase();\n              return matchString.includes(searchTerm.replace(/\\s/g, '').toLowerCase());\n            }\n          });\n        }\n      }), null, \"onSearchAddress\", null));\n      _defineProperty(this, \"onSavePurchaseOrder\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeSet) {\n          yield changeSet.validate();\n          if (!changeSet.isValid) return;\n          const purchaseOrder = yield changeSet.save();\n          this.onClose();\n          this.router.transitionTo(`entity.builda-price.operations.outgoing.purchase-orders.purchase-order`, purchaseOrder.id);\n        }\n      }), null, \"onSavePurchaseOrder\", null));\n      _defineProperty(this, \"_validatePurchaseOrderNumber\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderNumber) {\n          yield (0, _emberConcurrency.timeout)(1000); // delay the api call for validation\n\n          const response = yield this.buildaPrice.validatePurchaseOrderNumber({\n            entity: this.sessionData.entity.id,\n            purchaseOrderNumber\n          });\n          return response;\n        }\n      }), {\n        restartable: true\n      }, \"_validatePurchaseOrderNumber\", null));\n      _defineProperty(this, \"purchaseOrderValidateMap\", {\n        purchaseOrderNumber: this.purchaseOrderNumberValidator,\n        supplier: this.supplierNameValidator\n      });\n      _defineProperty(this, \"purchaseOrderValidator\", async ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue || oldValue;\n        switch (key) {\n          case 'purchaseOrderNumber':\n            return await this.purchaseOrderNumberValidator(value, newValue);\n          case 'supplier':\n            return this.supplierNameValidator(value);\n          default:\n            return true;\n        }\n      });\n    }\n    get isLoading() {\n      return this.model.purchaseOrders.lastSuccessful === null && this.model.purchaseOrders.isRunning || this.model.projects.lastSuccessful === null && this.model.projects.isRunning || this.model.purchaseOrderOptions.lastSuccessful === null && this.model.purchaseOrderOptions.isRunning;\n    }\n    get jsStartDate() {\n      const start = this.startDate || (0, _moment.default)().startOf('isoWeek').subtract(1, 'months');\n      return (0, _moment.default)(start).toDate();\n    }\n    set jsStartDate(value) {\n      this.startDate = (0, _moment.default)(value).format('YYYY-MM-DD');\n      return value;\n    }\n    get jsEndDate() {\n      const end = this.endDate || (0, _moment.default)().endOf('isoWeek');\n      return (0, _moment.default)(end).toDate();\n    }\n    set jsEndDate(value) {\n      this.endDate = (0, _moment.default)(value).format('YYYY-MM-DD');\n      return value;\n    }\n    updateSearchTerm(value) {\n      this.searchTerm = value;\n    }\n    sortColumn(columnName) {\n      if (this.sortBy !== columnName) {\n        this.sortBy = columnName;\n        this.sortDirection = 'asc';\n        return;\n      }\n      this.sortBy = columnName;\n      if (this.sortDirection === 'asc') {\n        this.sortDirection = 'desc';\n      } else if (this.sortDirection === 'desc') {\n        this.sortDirection = undefined;\n      } else {\n        this.sortDirection = 'asc';\n      }\n    }\n    setSupplier(supplier) {\n      this.purchaseOrderChangeSet.set('supplier', supplier);\n    }\n    get filteredPurchaseOrders() {\n      if (this.sortDirection === 'desc') return this.model.purchaseOrders.last.value.sortBy(this.sortBy).reverse();\n      if (this.sortDirection === 'asc') return this.model.purchaseOrders.last.value.sortBy(this.sortBy);\n      return this.model.purchaseOrders.last.value;\n    }\n    get purchaseOrderNumberIconName() {\n      return this.sortBy === 'purchaseOrderNumber' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get supplierIconName() {\n      return this.sortBy === 'supplier.name' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get dateOrderPlacedIconName() {\n      return this.sortBy === 'dateOrderPlaced' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get dateCreatedIconName() {\n      return this.sortBy === 'dateCreated' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get statusIconName() {\n      return this.sortBy === 'status' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    get deliveryStatusIconName() {\n      return this.sortBy === 'deliveryStatus' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined;\n    }\n    setDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.jsStartDate = startDate;\n      if (endDate) this.jsEndDate = endDate;\n    }\n    get nextPurchaseOrderNumber() {\n      const purchaseOrderOptions = this.model.purchaseOrderOptions.last.value;\n      const purchaseOrderNumber = purchaseOrderOptions.prefix ? `${purchaseOrderOptions.prefix}${purchaseOrderOptions.nextPurchaseOrderNumber}` : purchaseOrderOptions.nextPurchaseOrderNumber;\n      return purchaseOrderNumber;\n    }\n    openNewPOForm() {\n      const purchaseOrderNumber = this.nextPurchaseOrderNumber;\n      const purchaseOrder = this.store.createRecord('purchase-order', {\n        entity: this.sessionData.entity,\n        purchaseOrderNumber\n      });\n      this.purchaseOrderChangeSet = (0, _emberChangeset.Changeset)(purchaseOrder, this.purchaseOrderValidator, this.purchaseOrderValidateMap);\n    }\n    setAddress(value) {\n      this.purchaseOrderChangeSet.set('address', value.address);\n    }\n    onClose() {\n      this.purchaseOrderChangeSet = null;\n      this.suppliersCurrentPage = 1;\n    }\n    async purchaseOrderNumberValidator(value, newValue) {\n      try {\n        const {\n          isUnique,\n          nextPoNumber\n        } = await this._validatePurchaseOrderNumber.perform(value);\n        if (!isUnique) return `${this.intl.t('validation.purchaseOrderNumberAlreadyExists')} ${nextPoNumber ? nextPoNumber : this.intl.t('shared.purchase-order.a different one')}`;\n        return newValue && newValue.length > 0 && isUnique || this.intl.t('validation.Please provide a purchase order number');\n      } catch (e) {\n        if (!(0, _emberConcurrency.didCancel)(e)) {\n          throw Error('Error validating purchase order number');\n        }\n      }\n      return;\n    }\n    supplierNameValidator(supplierValue) {\n      return supplierValue.name && supplierValue.name.length > 0 || this.intl.t('validation.Please select a supplier');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'ALL';\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrderChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrderForm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"addressList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().startOf('isoWeek').subtract(1, 'months').toDate();\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().endOf('isoWeek').toDate();\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.searchTerm;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'dateCreated';\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'desc';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setSupplier\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDateRange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openNewPOForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openNewPOForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setAddress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setAddress\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClose\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClose\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/purchase-orders/purchase-order\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"lodash\", \"portal/models/attachment\", \"portal/utils/csv-builder\", \"moment\", \"@ember/runloop\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _lodash, _attachment, _csvBuilder, _moment, _runloop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"lodash\",0,\"portal/models/attachment\",0,\"portal/utils/csv-builder\",0,\"moment\",0,\"@ember/runloop\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"store\", _descriptor8, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor9, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedItemIndexes\", _descriptor1, this);\n      _initializerDefineProperty(this, \"isAddingProducts\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isDeletingProducts\", _descriptor11, this);\n      _initializerDefineProperty(this, \"isDeletingPurchaseOrder\", _descriptor12, this);\n      _initializerDefineProperty(this, \"isCreatingProducts\", _descriptor13, this);\n      _initializerDefineProperty(this, \"itemCreatorSelectedProject\", _descriptor14, this);\n      _initializerDefineProperty(this, \"itemCreatorSelectedTasks\", _descriptor15, this);\n      _initializerDefineProperty(this, \"itemSelectorSelectedProject\", _descriptor16, this);\n      _initializerDefineProperty(this, \"isApproveAndSendEmail\", _descriptor17, this);\n      _initializerDefineProperty(this, \"isSendEmail\", _descriptor18, this);\n      _initializerDefineProperty(this, \"includeAllAttachmentsInSubmissionEmail\", _descriptor19, this);\n      _initializerDefineProperty(this, \"deletedPurchaseOrderItems\", _descriptor20, this);\n      _initializerDefineProperty(this, \"addressList\", _descriptor21, this);\n      _defineProperty(this, \"acceptedMimeTypes\", [..._attachment.shortcutsToMime.image, ..._attachment.shortcutsToMime.text, ..._attachment.shortcutsToMime.document, ..._attachment.shortcutsToMime.archive]);\n      _initializerDefineProperty(this, \"_purchaseOrderItems\", _descriptor22, this);\n      _defineProperty(this, \"crumbStack\", [{\n        route: 'entity.builda-price.operations.outgoing.purchase-orders.index',\n        pageTitle: this.intl.t('common.Purchase orders')\n      }, {\n        pageTitle: this.intl.t('common.Purchase order')\n      }]);\n      _defineProperty(this, \"onSearchAddress\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          this.addressList = this.model.projects.last.value.filter(p => {\n            if (p.address) {\n              const matchString = `${p.address}`.replace(/\\s/g, '').toLowerCase();\n              return matchString.includes(searchTerm.replace(/\\s/g, '').toLowerCase());\n            }\n          });\n        }\n      }), null, \"onSearchAddress\", null));\n      _defineProperty(this, \"onSavePurchaseOrder\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.purchaseOrderChangeSet.validate('purchaseOrderNumber');\n            if (!this.purchaseOrderChangeSet.isValid) return;\n            this.purchaseOrderChangeSet.taxFreightCharges = (1 + this.gst) * (this.purchaseOrderChangeSet.freightCharges ?? 0); // set gst tax value\n\n            yield this.purchaseOrderChangeSet.save();\n            yield Promise.all([...this.purchaseOrderItems.map(i => {\n              if (i.isDeleted) return;\n              i.taxTotal = (1 + this.gst) * (i.unitPrice ?? 0) * (i.quantity ?? 0); // set gst taxTotal column value\n\n              i.save();\n            }), ...this.deletedPurchaseOrderItems.map(item => item.save())]);\n            this.deletedPurchaseOrderItems = [];\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Successfully saved purchase order'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.somethingWentWrongWhileSavingPurchaseOrder'),\n              error\n            });\n          }\n        }\n      }), null, \"onSavePurchaseOrder\", null));\n      _defineProperty(this, \"onDeletePurchaseOrder\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.purchaseOrder.last.value.destroyRecord();\n            this._purchaseOrderItems = null;\n            this.isDeletingPurchaseOrder = false;\n            this.router.transitionTo(`entity.builda-price.operations.outgoing.purchase-orders`);\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Successfully deleted purchase order'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.somethingWentWrongWhileDeletingPurchaseOrder'),\n              error\n            });\n          }\n        }\n      }), null, \"onDeletePurchaseOrder\", null));\n      _defineProperty(this, \"onSavePurchaseOrderItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (data) {\n          const lastSortIndex = this.purchaseOrderItems.length;\n          const newPurchaseOrderItems = [];\n          data.forEach((row, index) => {\n            const taskProduct = row.rowData[0].taskProduct;\n            const orderQty = row.rowData[7].value;\n            if (orderQty) {\n              newPurchaseOrderItems.push(this.store.createRecord('purchase-order-item', {\n                entity: this.sessionData.entity,\n                task: taskProduct.belongsTo('task').value(),\n                purchaseOrder: this.model.purchaseOrder.last.value,\n                taskProduct: taskProduct,\n                sku: taskProduct.sku,\n                description: taskProduct.description,\n                unitPrice: taskProduct.unitPrice,\n                unit: taskProduct.unit,\n                quantity: orderQty,\n                sortIndex: index + lastSortIndex\n              }));\n            }\n          });\n          this.purchaseOrderItems = [...this.purchaseOrderItems, ...newPurchaseOrderItems];\n          (0, _runloop.next)(() => {\n            this.isAddingProducts = false;\n          });\n        }\n      }), null, \"onSavePurchaseOrderItems\", null));\n      _defineProperty(this, \"deleteProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          [...this.selectedItemIndexes].forEach(index => {\n            this.purchaseOrderItems[index].deleteRecord();\n          });\n          this.deletedPurchaseOrderItems = this.purchaseOrderItems.filter(p => p.isDeleted);\n          this.purchaseOrderItems = this.purchaseOrderItems.filter(p => !p.isDeleted);\n          this.selectedItemIndexes = new Set();\n        }\n      }), null, \"deleteProducts\", null));\n      _defineProperty(this, \"updateProductPrices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          [...this.selectedItemIndexes].forEach(index => {\n            if (this.purchaseOrderItems[index].latestUnitPrice) this.purchaseOrderItems[index].unitPrice = this.purchaseOrderItems[index].latestUnitPrice;\n          });\n          this.selectedItemIndexes = new Set();\n        }\n      }), null, \"updateProductPrices\", null));\n      _defineProperty(this, \"updateDeliveryStatus\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          [...this.selectedItemIndexes].forEach(index => {\n            this.purchaseOrderItems[index].deliveredQuantity = this.purchaseOrderItems[index].quantity;\n          });\n          this.selectedItemIndexes = new Set();\n        }\n      }), null, \"updateDeliveryStatus\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const exportedItemsData = this.exportedData.items.map(item => {\n            return [`${this.purchaseOrder.purchaseOrderNumber}`, `${this.exportedData.status}`, `${this.exportedData.buyer}`, `${this.exportedData.seller}`, `${this.exportedData.orderSubmittedDate}`, `${this.exportedData.orderNote}`, `${this.exportedData.requestedDeliveryDate}`, `${this.exportedData.deliveryNote}`, `${this.exportedData.deliveryAddress}`, `${item.sku}`, `${item.description}`, `${item.unit}`, `${item.quantity}`, `${this.numberFormat.format(item.unitPrice, {\n              style: 'currency',\n              dashZero: true\n            })}`, `${this.numberFormat.format(item.unitPrice * item.quantity, {\n              style: 'currency',\n              dashZero: true\n            })}`];\n          });\n          const table = [[this.intl.t('shared.purchase-order.Purchase order number'), this.intl.t('common.Status'), this.intl.t('common.Buyer'), this.intl.t('common.Seller'), this.intl.t('shared.purchase-order.Order submitted date'), this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Order note'), this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery requested date'), this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery note'), this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery address'), this.intl.t('common.SKU'), this.intl.t('shared.task.Product description'), this.intl.t('common.Unit'), this.intl.t('common.Quantity'), this.intl.t('common.Unit price'), this.intl.t('common.Line total'), this.intl.t('common.Subtotal'), this.intl.t('common.Freight'), this.intl.t('common.Tax'), this.intl.t('common.Total')], ...exportedItemsData, ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', this.numberFormat.format(this.exportedData.subtotal, {\n            style: 'currency',\n            dashZero: true\n          }), this.numberFormat.format(this.exportedData.freightCharges, {\n            style: 'currency',\n            dashZero: true\n          }), this.numberFormat.format(this.exportedData.taxValue, {\n            style: 'currency',\n            dashZero: true\n          }), this.numberFormat.format(this.exportedData.totalWithTax, {\n            style: 'currency',\n            dashZero: true\n          })]];\n          (0, _csvBuilder.downloadCSV)(table, this.filename);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"downloadAsExcel\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const report = [];\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('shared.purchase-order.Purchase order number'), this.purchaseOrder.purchaseOrderNumber]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.Status'), this.exportedData.status]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('shared.purchase-order.Order submitted date'), this.exportedData.orderSubmittedDate]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery requested date'), this.exportedData.requestedDeliveryDate]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.Buyer'), this.exportedData.buyer]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('common.Seller'), this.exportedData.seller]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery address'), this.purchaseOrder.address]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery note'), this.exportedData.deliveryNote]\n          });\n          report.push({\n            lineType: 'subtitle',\n            data: [this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Order note'), this.exportedData.orderNote]\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'purchaseOrderHeading',\n            data: [this.intl.t('common.SKU'), this.intl.t('shared.task.Product description'), this.intl.t('common.Unit'), this.intl.t('common.Quantity'), this.intl.t('common.Unit price'), this.intl.t('common.Total')]\n          });\n          this.exportedData.items.map(item => {\n            report.push({\n              lineType: 'purchaseOrderItemRow',\n              data: [item.sku, item.description, item.unit, item.quantity, Number(item.unitPrice), item.unitPrice * item.quantity]\n            });\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'purchaseOrderItemTotalRow',\n            data: ['', '', '', '', this.intl.t('common.Subtotal'), this.exportedData.subtotal]\n          });\n          report.push({\n            lineType: 'purchaseOrderItemTotalRow',\n            data: ['', '', '', '', this.intl.t('common.Freight'), this.exportedData.freightCharges]\n          });\n          report.push({\n            lineType: 'purchaseOrderTaxRow',\n            data: ['', '', '', '', this.intl.t('common.Tax'), this.exportedData.taxValue]\n          });\n          report.push({\n            lineType: 'purchaseOrderItemTotalRow',\n            data: ['', '', '', '', this.intl.t('common.Total'), this.exportedData.totalWithTax]\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'blank',\n            data: null\n          });\n          report.push({\n            lineType: 'purchaseOrderFooterRow',\n            data: [this.model.purchaseOrderOption.last.value.footerNotes]\n          });\n          yield this.buildaPrice.downloadExcel(this.filename, {\n            data: report,\n            reportType: 'purchaseOrder'\n          });\n        }\n      }), null, \"downloadAsExcel\", null));\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.buildaPrice.downloadPurchaseOrderPDF(this.filename, {\n              entity: this.sessionData.entity.id,\n              purchaseOrder: this.model.purchaseOrder.last.value.id\n            });\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingThePDF'),\n              error\n            });\n          }\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"approveAndSend\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.onSavePurchaseOrder.perform();\n            yield this.buildaPrice.sendPurchaseOrder({\n              entity: this.sessionData.entity.id,\n              purchaseOrder: this.model.purchaseOrder.last.value.id,\n              includeAllAttachments: this.includeAllAttachmentsInSubmissionEmail\n            });\n\n            // change status and set order submitted date\n            this.purchaseOrderChangeSet.status = 'SENT';\n            this.purchaseOrderChangeSet.dateOrderPlaced = new Date();\n            yield this.purchaseOrderChangeSet.save();\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.successfullyApprovedAndSubmittedToSupplier'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.somethingWentWrongWhileApprovingAndSending'),\n              error\n            });\n          } finally {\n            this.isApproveAndSendEmail = false;\n          }\n        }\n      }), null, \"approveAndSend\", null));\n      _defineProperty(this, \"sendEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.onSavePurchaseOrder.perform();\n            yield this.buildaPrice.sendPurchaseOrder({\n              entity: this.sessionData.entity.id,\n              purchaseOrder: this.model.purchaseOrder.last.value.id,\n              includeAllAttachments: this.includeAllAttachmentsInSubmissionEmail\n            });\n\n            // change status and set order submitted date\n            this.purchaseOrderChangeSet.status = 'SENT';\n            this.purchaseOrderChangeSet.dateOrderPlaced = new Date();\n            yield this.purchaseOrderChangeSet.save();\n            this.notifications.success(this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Successfully sent to supplier'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Something went wrong while sending'),\n              error\n            });\n          } finally {\n            this.isSendEmail = false;\n          }\n        }\n      }), null, \"sendEmail\", null));\n      _defineProperty(this, \"changeStatus\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (status) {\n          try {\n            this.purchaseOrderChangeSet.status = status;\n            if (status === 'SENT') {\n              this.purchaseOrderChangeSet.dateOrderPlaced = new Date();\n            }\n            yield new Promise(resolve => setTimeout(resolve, 1000));\n            yield this.onSavePurchaseOrder.perform();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong changing status'),\n              error\n            });\n          }\n        }\n      }), null, \"changeStatus\", null));\n      _defineProperty(this, \"openApproveAndSendModal\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.isApproveAndSendEmail = true;\n        }\n      }), null, \"openApproveAndSendModal\", null));\n      _defineProperty(this, \"openSendModal\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.isSendEmail = true;\n        }\n      }), null, \"openSendModal\", null));\n    }\n    get canManagePurchaseOrders() {\n      return this.model.purchaseOrderPermissions.last.value?.canManagePurchaseOrders;\n    }\n    get canApprovePurchaseOrders() {\n      return this.model.purchaseOrderPermissions.last.value?.canApprovePurchaseOrders;\n    }\n    get canUseFileStorage() {\n      return this.model.purchaseOrderPermissions.last.value?.canUseFileStorage;\n    }\n    get canManageFileStorage() {\n      return this.model.purchaseOrderPermissions.last.value?.canUseFileStorage;\n    }\n    get poActions() {\n      const actions = {};\n      actions.secondaryActions = [];\n      if (this.status === 'DRAFT') {\n        if (this.canManagePurchaseOrders && this.purchaseOrderItems.length) actions.primaryAction = {\n          name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Submit for approval'),\n          action: this.changeStatus,\n          targetStatus: 'AWAITING_APPROVAL'\n        };\n        if (this.canApprovePurchaseOrders && this.purchaseOrderItems.length) {\n          actions.secondaryActions.push({\n            name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.approveAndSubmit'),\n            action: this.openApproveAndSendModal\n          }, {\n            name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Approve only'),\n            action: this.changeStatus,\n            targetStatus: 'APPROVED'\n          });\n        }\n      } else if (this.status === 'AWAITING_APPROVAL') {\n        if (this.canApprovePurchaseOrders && this.purchaseOrderItems.length) {\n          actions.primaryAction = {\n            name: this.intl.t('common.Approve'),\n            action: this.changeStatus,\n            targetStatus: 'APPROVED'\n          };\n          actions.secondaryActions.push({\n            name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.approveSend'),\n            action: this.openApproveAndSendModal\n          });\n        }\n      } else if (this.status === 'APPROVED') {\n        if (this.canManagePurchaseOrders && this.purchaseOrderItems.length) {\n          actions.primaryAction = {\n            name: this.intl.t('common.Send'),\n            action: this.openSendModal\n          };\n          actions.secondaryActions.push({\n            name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Mark as sent'),\n            action: this.changeStatus,\n            targetStatus: 'SENT'\n          });\n        }\n      } else if (this.status === 'SENT') {\n        if (this.canManagePurchaseOrders && this.purchaseOrderItems.length) {\n          actions.primaryAction = {\n            name: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Resend'),\n            action: this.openSendModal\n          };\n        }\n      }\n      return actions;\n    }\n    get purchaseOrder() {\n      return this.model.purchaseOrder.last.value;\n    }\n    get purchaseOrderChangeSet() {\n      return this.model.purchaseOrderChangeSet.last.value;\n    }\n    get purchaseOrderItems() {\n      if (this._purchaseOrderItems) return this._purchaseOrderItems;\n      return this.model.purchaseOrderItems.last.value || [];\n    }\n    set purchaseOrderItems(value) {\n      this._purchaseOrderItems = value;\n    }\n    get isActionsRunning() {\n      return this.poActions.secondaryActions.some(action => action.action.isRunning) || this.poActions.primaryAction.action.isRunning;\n    }\n    get status() {\n      return this.model.purchaseOrder.last.value.status;\n    }\n    get isLoading() {\n      return this.model.purchaseOrder.isRunning || this.model.purchaseOrderItems.isRunning || this.model.tasks.isRunning || this.model.projects.isRunning || this.model.purchaseOrderChangeSet.isRunning || this.model.purchaseOrderPermissions.isRunning;\n    }\n    get attachmentsCount() {\n      return this.model.purchaseOrder.last.value.attachments.length;\n    }\n    setAddress(value) {\n      this.purchaseOrderChangeSet.set('address', value.address);\n    }\n    get showUpdatePriceButton() {\n      return this.purchaseOrderItems.some(item => {\n        if (item.latestUnitPrice) return item.unitPrice !== item.latestUnitPrice;\n      });\n    }\n    sortColumn(_row, col) {\n      this.sortBy = col.value;\n      if (this.sortBy !== col.value) {\n        this.sortDirection = 'asc';\n      } else {\n        if (this.sortDirection === 'asc') {\n          this.sortDirection = 'desc';\n        } else if (this.sortDirection === 'desc') {\n          this.sortDirection = undefined;\n        } else {\n          this.sortDirection = 'asc';\n        }\n      }\n      let orderBy;\n      if (!this.sortDirection) {\n        orderBy = 'sortIndex';\n      } else {\n        switch (col.value) {\n          case 'Product':\n            orderBy = 'description';\n            break;\n          case 'Total Qty':\n            orderBy = 'taskProductQuantity';\n            break;\n          case 'SKU':\n            orderBy = 'sku';\n            break;\n          case 'Unit':\n            orderBy = 'unit';\n            break;\n          case 'Unit price':\n            orderBy = 'unitPrice';\n            break;\n          case 'Order Qty':\n            orderBy = 'quantity';\n            break;\n          case 'Delivered Qty':\n            orderBy = 'deliveredQuantity';\n            break;\n          case 'Remaining Qty':\n            orderBy = 'remainingQuantity';\n            break;\n          case 'Path':\n            orderBy = 'breadcrumbs';\n            break;\n          default:\n            break;\n        }\n      }\n      this.purchaseOrderItems = _lodash.default.orderBy(this.purchaseOrderItems, orderBy, this.sortDirection);\n    }\n    get totalPriceFooter() {\n      if (!this.purchaseOrderItems.length) return null;\n      const totalPrice = this.purchaseOrderItems.filter(i => !i.isDeleted).reduce((a, b) => a += b.unitPrice * b.quantity, 0);\n      return this.numberFormat.format(totalPrice, {\n        style: 'currency',\n        dashZero: true\n      });\n    }\n    get gst() {\n      return this.model.purchaseOrder.last.value.belongsTo('entity').value()?.gst;\n    }\n    get supplierContactDetailsExists() {\n      const supplier = this.model.purchaseOrder.last.value.belongsTo('supplier').value();\n      return Boolean(supplier?.contactEmail?.length);\n    }\n    onChangeUnitPrice(_row, col, e) {\n      const purchaseOrderItems = this.purchaseOrderItems;\n      purchaseOrderItems[col.extraData.index].unitPrice = Number(e.target.value.replace(/[^0-9.-]+/g, ''));\n      this.purchaseOrderItems = purchaseOrderItems;\n    }\n    onChangeOrderQty(_row, col, e) {\n      const purchaseOrderItems = this.purchaseOrderItems;\n      const remainingQty = this.purchaseOrderItems[col.extraData.index].remainingQuantity;\n      const remainingQuantity = remainingQty + purchaseOrderItems[col.extraData.index].quantity - Number(e.target.value);\n      if (e.target.value.toString().includes('.')) {\n        const toFixNumber = e.target.value.toString().split('.')[1].length;\n        purchaseOrderItems[col.extraData.index].remainingQuantity = remainingQuantity.toFixed(toFixNumber);\n      } else {\n        purchaseOrderItems[col.extraData.index].remainingQuantity = remainingQuantity;\n      }\n      purchaseOrderItems[col.extraData.index].quantity = Number(e.target.value);\n      this.purchaseOrderItems = purchaseOrderItems;\n    }\n    onChangeDeliveredQty(_row, col, e) {\n      const purchaseOrderItems = this.purchaseOrderItems;\n      purchaseOrderItems[col.extraData.index].deliveredQuantity = Number(e.target.value);\n      this.purchaseOrderItems = purchaseOrderItems;\n    }\n    get productTableData() {\n      return this.purchaseOrderItems.filter(i => !i.isDeleted).map((item, index) => {\n        const itemData = [{\n          colClass: 'align-middle',\n          value: item.breadcrumbs\n        }, {\n          colClass: 'align-middle',\n          value: item.description\n        }, {\n          colClass: 'text-left align-middle',\n          value: item.sku\n        }, {\n          colClass: 'text-left align-middle',\n          value: item.unit\n        }, {\n          colClass: 'text-right align-middle',\n          value: item.taskProductQuantity\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: Number(item.remainingQuantity) < 0 ? 'text-danger' : '',\n          value: item.remainingQuantity\n        }, {\n          type: 'NUMBER_INPUT',\n          colClass: 'text-right align-middle',\n          textClass: 'text-right',\n          min: '0',\n          max: '1000000',\n          disabled: !this.isEditable,\n          value: item.quantity || 0,\n          onInputChange: this.onChangeOrderQty,\n          extraData: {\n            index\n          }\n        }, {\n          type: 'TEXT_INPUT',\n          colClass: 'text-right align-middle',\n          textClass: 'text-right',\n          disabled: !this.isEditable,\n          value: this.numberFormat.format(item.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          }),\n          onInputChange: this.onChangeUnitPrice,\n          extraData: {\n            index\n          }\n        }, {\n          colClass: 'text-right align-middle',\n          textClass: 'text-nowrap',\n          value: this.numberFormat.format(item.unitPrice * item.quantity, {\n            style: 'currency',\n            dashZero: true\n          })\n        }];\n        if (this.purchaseOrder.status === 'SENT') {\n          itemData.push({\n            type: 'NUMBER_INPUT',\n            colClass: 'text-right align-middle',\n            textClass: 'text-right',\n            min: '0',\n            max: '1000000',\n            disabled: !this.isEditable,\n            value: item.deliveredQuantity || 0,\n            onInputChange: this.onChangeDeliveredQty,\n            extraData: {\n              index\n            }\n          });\n        }\n        if (this.isEditable) {\n          itemData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectedItemIndexes.has(index),\n            onInputChange: this.onSelectProduct,\n            extraData: {\n              index\n            }\n          });\n        }\n        return {\n          rowData: itemData\n        };\n      });\n    }\n    get productTableHeader() {\n      const productHeader = [{\n        value: this.intl.t('common.Path'),\n        iconName: this.sortBy === 'Path' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left text-nowrap'\n      }, {\n        value: this.intl.t('common.Product'),\n        iconName: this.sortBy === 'Product' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left text-nowrap'\n      }, {\n        value: this.intl.t('common.SKU'),\n        iconName: this.sortBy === 'SKU' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left text-nowrap'\n      }, {\n        value: this.intl.t('common.Unit'),\n        iconName: this.sortBy === 'Unit' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left text-nowrap'\n      }, {\n        value: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Total Qty'),\n        iconName: this.sortBy === 'Total Qty' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        value: this.intl.t('shared.purchase-order.Remaining Qty'),\n        iconName: this.sortBy === 'Remaining Qty' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        value: this.intl.t('shared.purchase-order.Order Qty'),\n        iconName: this.sortBy === 'Order Qty' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right text-nowrap'\n      }, {\n        colClass: 'text-right text-nowrap',\n        value: this.intl.t('common.Total')\n      }];\n      if (this.purchaseOrder.status === 'SENT') {\n        productHeader.push({\n          iconName: this.sortBy === 'Delivered Qty' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n          onClickCol: this.sortColumn,\n          colClass: 'cursor-pointer text-right text-nowrap',\n          value: this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivered Qty')\n        });\n      }\n      if (this.isEditable && this.purchaseOrderItems.length) productHeader.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        value: Boolean(this.selectedItemIndexes.size === this.purchaseOrderItems.length),\n        isPartiallySelected: Boolean(this.selectedItemIndexes.size && this.selectedItemIndexes.size !== this.purchaseOrderItems.length),\n        onInputChange: this.onSelectCurrentPageProducts\n      });\n      return productHeader;\n    }\n    onSelectCurrentPageProducts(_row, col, e) {\n      const selectedItemIndexes = new Set();\n      if (e.target.checked) {\n        this.purchaseOrderItems.forEach((_p, index) => {\n          selectedItemIndexes.add(index);\n        });\n      }\n      this.selectedItemIndexes = selectedItemIndexes;\n    }\n    onSelectProduct(_row, col, e) {\n      if (e.target.checked) {\n        this.selectedItemIndexes.add(col.extraData.index);\n      } else {\n        this.selectedItemIndexes.delete(col.extraData.index);\n      }\n\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectedItemIndexes = this.selectedItemIndexes;\n    }\n    get isEditable() {\n      return this.canManagePurchaseOrders;\n    }\n    get canAddProducts() {\n      const canUseProjects = this.newFeatureFlags.includesFeatureFlags('canUseProjects', 'canUseTasks');\n      const canUseProducts = this.model.projects.last.value.some(p => this.newFeatureFlags.includesFeatureFlags(p, 'canUseProducts'));\n      return canUseProjects && canUseProducts;\n    }\n    get canManagePurchaseOrderProjects() {\n      return this.model.projects.last.value.filter(p => this.newFeatureFlags.includesFeatureFlags('canManagePurchaseOrders', p));\n    }\n    async attachmentsUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const attachmentResults = await Promise.all(attachments.map(a => a.save({\n          adapterOptions: {\n            meta: {\n              data: a.data\n            }\n          }\n        })));\n        await Promise.all(attachmentResults.map(async attachment => {\n          this.store.createRecord('link-attachment-to-purchase-order', {\n            purchaseOrder: this.model.purchaseOrder.last.value,\n            attachment\n          }).save();\n        }));\n        validationErrors.forEach(error => this.notifications.error(error));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n    async deleteAttachment(attachment) {\n      try {\n        const linkAttachmentsToPurchaseOrders = this.model.purchaseOrder.last.value.hasMany('attachments').value();\n        const linkRecord = linkAttachmentsToPurchaseOrders.find(item => item.belongsTo('attachment').id() === attachment.id);\n\n        // first we need to delete the link record\n        await linkRecord.destroyRecord();\n        await attachment.destroyRecord();\n      } catch (error) {\n        this.notifications.error({\n          error,\n          message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingTheAttachment')\n        });\n      }\n    }\n    downloadAttachment(record) {\n      window.open(record.href, '_blank');\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${this.purchaseOrder.purchaseOrderNumber}_${year}-${month}-${day}`;\n    }\n    toggleProperty(propertyName) {\n      this[propertyName] = !this[propertyName];\n    }\n    get exportedData() {\n      const seller = this.purchaseOrder.belongsTo('supplier').value();\n      let status;\n      switch (this.status) {\n        case 'AWAITING_APPROVAL':\n          {\n            status = 'Awaiting approval';\n            break;\n          }\n        case 'DRAFT':\n          {\n            status = 'Draft';\n            break;\n          }\n        case 'APPROVED':\n          {\n            status = 'Approved';\n            break;\n          }\n        case 'SENT':\n          {\n            status = 'Sent';\n            break;\n          }\n      }\n      const buyerDetails = `${this.sessionData.entity.name}${this.sessionData.entity.address ? `, ${this.sessionData.entity.address}` : ''}`;\n      const sellerDetails = `${seller.name}${seller.address ? `, ${seller.address}` : ''}`;\n      const orderSubmittedDate = this.purchaseOrder.dateOrderPlaced ? (0, _moment.default)(this.purchaseOrder.dateOrderPlaced).format(this.intl.t('date.dashDayFirstWithTime')) : '';\n      const requestedDeliveryDate = this.purchaseOrder.requestedDeliveryDate ? (0, _moment.default)(this.purchaseOrder.requestedDeliveryDate).format(this.intl.t('date.dashDayFirstWithTime')) : '';\n      const _items = this.purchaseOrder.hasMany('items').value()?.toArray() || [];\n      const items = Object.values(groupPurchaseOrderItems(_items));\n      const {\n        subtotal,\n        subtotalWithTax\n      } = (items || []).reduce((acc, item) => {\n        const totalPrice = item.quantity === null || item.unitPrice === null ? 0 : item.quantity * item.unitPrice;\n        acc.subtotal += totalPrice;\n        acc.subtotalWithTax += item.taxTotal;\n        return acc;\n      }, {\n        subtotal: 0,\n        subtotalWithTax: 0\n      });\n      const freightCharges = this.purchaseOrder?.freightCharges || 0;\n      const freightChargesWithTax = this.purchaseOrder.taxFreightCharges || 0;\n      const taxValue = subtotalWithTax + freightChargesWithTax - (subtotal + freightCharges);\n      const orderNote = this.purchaseOrder.orderNote || '';\n      const deliveryNote = this.purchaseOrder.deliveryNote || '';\n      const deliveryAddress = this.purchaseOrder.address || '';\n      const totalWithTax = subtotalWithTax + freightChargesWithTax;\n      return {\n        seller: sellerDetails,\n        buyer: buyerDetails,\n        status,\n        orderSubmittedDate,\n        requestedDeliveryDate,\n        items,\n        freightCharges,\n        freightChargesWithTax,\n        subtotal,\n        subtotalWithTax,\n        taxValue,\n        orderNote,\n        deliveryNote,\n        deliveryAddress,\n        totalWithTax\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"selectedItemIndexes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingPurchaseOrder\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"isCreatingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"itemCreatorSelectedProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"itemCreatorSelectedTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"itemSelectorSelectedProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"isApproveAndSendEmail\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"isSendEmail\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"includeAllAttachmentsInSubmissionEmail\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"deletedPurchaseOrderItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"addressList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"_purchaseOrderItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setAddress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setAddress\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeUnitPrice\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeUnitPrice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeOrderQty\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeOrderQty\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeDeliveredQty\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeDeliveredQty\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"attachmentsUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"attachmentsUploadComplete\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"deleteAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"deleteAttachment\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"downloadAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"downloadAttachment\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleProperty\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleProperty\"), _class2.prototype), _class2);\n  function groupPurchaseOrderItems(items) {\n    return items.reduce((acc, item) => {\n      // Create a unique key using SKU, description, and unit\n      const key = `${item.sku}-${item.description}-${item.unit}`;\n      if (!acc[key]) {\n        acc[key] = {\n          description: item.description,\n          sku: item.sku,\n          unit: item.unit,\n          quantity: item.quantity,\n          unitPrice: item.unitPrice,\n          totalPrice: item.unitPrice * item.quantity,\n          taxTotal: item.taxTotal\n        };\n      } else {\n        acc[key].quantity += item.quantity;\n        acc[key].totalPrice += item.unitPrice * item.quantity;\n        acc[key].taxTotal += item.taxTotal;\n      }\n      return acc;\n    }, {});\n  }\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/report-builder/csv\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"moment\", \"ember-local-storage\", \"@ember/object/computed\", \"@glimmer/tracking\", \"portal/utils/csv-builder\", \"lodash\", \"@ember/service\", \"portal/utils/report-builder-attachments-bundle\", \"portal/utils/report-builder-mark-as-reported\", \"portal/utils/report-builder\", \"portal/routes/entity/builda-price/operations/outgoing/report-builder\"], function (_exports, _asyncArrowRuntime, _controller, _moment, _emberLocalStorage, _computed, _tracking, _csvBuilder, _lodash, _service, _reportBuilderAttachmentsBundle, _reportBuilderMarkAsReported, _reportBuilder, _reportBuilder2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"moment\",0,\"ember-local-storage\",0,\"@ember/object/computed\",0,\"@glimmer/tracking\",0,\"portal/utils/csv-builder\",0,\"ember-concurrency\",0,\"lodash\",0,\"@ember/service\",0,\"portal/utils/report-builder-attachments-bundle\",0,\"portal/utils/report-builder-mark-as-reported\",0,\"portal/utils/report-builder\",0,\"portal/routes/entity/builda-price/operations/outgoing/report-builder\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _dec2 = (0, _computed.alias)('persistedSettings.reportBuilder:markReportedOnExport'), _dec3 = (0, _computed.alias)('persistedSettings.reportBuilder:includeAttachmentsOnExport'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor5, this);\n      _initializerDefineProperty(this, \"markReportedOnExport\", _descriptor6, this);\n      _initializerDefineProperty(this, \"includeAttachmentsOnExport\", _descriptor7, this);\n      _initializerDefineProperty(this, \"downloaded\", _descriptor8, this);\n      _defineProperty(this, \"download\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.markReportedOnExport) {\n            const ok = (0, _reportBuilderMarkAsReported.confirmMarkAsReported)(this.model);\n            if (!ok) return;\n          }\n\n          // do this first otherwise people might leave the tab once the CSV is downloaded\n          if (this.markReportedOnExport) yield (0, _reportBuilderMarkAsReported.markSelectedItemsAsReported)(this.model, this.notifications);\n          const actions = [];\n          actions.push(this.generateAndDownloadCsv(this.model, this.groupReportByCostCenter));\n          if (this.includeAttachmentsOnExport) actions.push((0, _reportBuilderAttachmentsBundle.default)(this.model));\n          yield Promise.all(actions);\n          this.downloaded = true;\n        }\n      }), null, \"download\", null));\n      _defineProperty(this, \"crumbStack\", [{\n        route: 'entity.builda-price.operations.outgoing.report-builder',\n        pageTitle: this.intl.t('common.Report builder')\n      }, {\n        pageTitle: this.intl.t('entity.builda-price.operations.outgoing.report-builder.csv.CSV export')\n      }]);\n    }\n    generateAndDownloadCsv(reportData) {\n      const report = [];\n      const {\n        projectName,\n        endDate,\n        startDate,\n        useChargeOutRates,\n        workers,\n        materialInvoices,\n        labourInvoices,\n        subcontractorInvoices,\n        computedTotals,\n        manualMaterials,\n        manualTimesheets,\n        manualSubcontractors\n      } = reportData;\n      const materialsMarkup = computedTotals.invoice.markupPercent;\n      const labourMarkup = computedTotals.timesheet.markupPercent;\n      const subcontractorMarkup = computedTotals.subcontractor.markupPercent;\n      const groupedMaterialInvoices = groupInvoiceGroupsByTask(materialInvoices);\n      const groupedSubcontractorInvoices = groupInvoiceGroupsByTask(subcontractorInvoices);\n      const groupedLabourInvoices = groupInvoiceGroupsByTask(labourInvoices);\n      const groupedWorkers = groupWorkerGroupsByTask(workers);\n\n      // get the list of tasks from our groups\n      const tasks = getTasks(groupedMaterialInvoices, groupedSubcontractorInvoices, groupedLabourInvoices, groupedWorkers);\n      // add the header row\n      report.push(...generateHeaderRows(this.intl));\n\n      // add the task rows\n      tasks.forEach(taskId => {\n        const task = this.store.peekRecord('task', taskId);\n        const materialInvoiceGroups = groupedMaterialInvoices[taskId];\n        const subcontractorInvoiceGroups = groupedSubcontractorInvoices[taskId];\n        const labourInvoiceGroups = groupedLabourInvoices[taskId];\n        const workerGroups = groupedWorkers[taskId];\n        if (materialInvoiceGroups) report.push(...generateInvoiceTypeRows(this.intl.t('common.Materials'), task, materialInvoiceGroups, materialsMarkup));\n        if (subcontractorInvoiceGroups) report.push(...generateInvoiceTypeRows(this.intl.t('common.Subcontractors'), task, subcontractorInvoiceGroups, subcontractorMarkup));\n        if (labourInvoiceGroups) report.push(...generateInvoiceTypeRows(this.intl.t('common.Labour'), task, labourInvoiceGroups, labourMarkup));\n        if (workerGroups) report.push(...generateLabourTypeRows(this.intl, this.intl.t('common.Labour'), task, workerGroups, useChargeOutRates, labourMarkup));\n        report.push(...generateTaskTotalRows(this.intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Task total'), task, useChargeOutRates, computedTotals, materialInvoiceGroups, subcontractorInvoiceGroups, labourInvoiceGroups, workerGroups));\n      });\n\n      // add the manual items\n      if (manualMaterials) report.push(...generateManualTypeRows(this.intl.t('common.Materials'), manualMaterials, materialsMarkup));\n      if (manualTimesheets) report.push(...generateManualTypeRows(this.intl.t('common.Labour'), manualTimesheets, labourMarkup));\n      if (manualSubcontractors) report.push(...generateManualTypeRows(this.intl.t('common.Subcontractors'), manualSubcontractors, subcontractorMarkup));\n\n      // add the report totals\n      report.push(...generateTotalRows(this.intl.t('shared.report-builder.Report total'), computedTotals));\n      const fileName = `${projectName}_${(0, _moment.default)(startDate).format(this.intl.t('date.slashDayFirst'))}-${(0, _moment.default)(endDate).format(this.intl.t('date.slashDayFirst'))}.csv`;\n      (0, _csvBuilder.downloadCSV)(report, fileName);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"markReportedOnExport\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"includeAttachmentsOnExport\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"downloaded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class2);\n  function generateHeaderRows(intl) {\n    return [[intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Row type'), intl.t('common.Task'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Invoice issuer'), intl.t('common.Invoice number'), intl.t('entity.builda-price.operations.outgoing.report-builder.Invoice reference'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item description'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item product code'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item quantity'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item unit price'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item subtotal'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item margin total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Item total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet worker'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet date'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet hours'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet rate'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet subtotal'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet margin total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Timesheet total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Manual item description'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Manual item subtotal'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Manual item margin total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Manual item total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Task labour hours total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Task subtotal'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Task margin total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Task total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Report labour hours total'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Report subtotal'), intl.t('entity.builda-price.operations.outgoing.report-builder.csv.Report margin total'), intl.t('shared.report-builder.Report total')]];\n  }\n  function generateInvoiceTypeRows(type, task, invoiceGroups, markupPercent) {\n    const rows = [];\n    invoiceGroups.forEach(({\n      invoice,\n      items\n    }) => {\n      items.forEach(invoiceItem => {\n        const subtotal = invoiceItem.totalPrice;\n        const marginTotal = subtotal * markupPercent;\n        const total = subtotal + marginTotal;\n        rows.push([type, task?.name || 'Not assigned', invoice.issuer, invoice.billNumber, invoice.reference, invoiceItem.description, invoiceItem.productCode, invoiceItem.quantity, invoiceItem.unitPrice, subtotal, marginTotal, total]);\n      });\n    });\n    return rows;\n  }\n  function generateLabourTypeRows(intl, type, task, workerGroups, useChargeOutRates, markupPercent) {\n    const rows = [];\n    workerGroups.forEach(({\n      timesheets,\n      worker\n    }) => {\n      timesheets.forEach(timesheet => {\n        const rate = useChargeOutRates ?\n        // Timesheets charge our rate should be used unless there is a current\n        // one present, a current charge out rate of zero should be respected\n        worker.currentChargeOutRate != null ? worker.currentChargeOutRate : timesheet.chargeOutRate : timesheet.costRate;\n        const subtotal = (0, _reportBuilder.getTimesheetTotal)(timesheet, useChargeOutRates, worker.currentChargeOutRate);\n        const marginTotal = subtotal * markupPercent;\n        const total = subtotal + marginTotal;\n        rows.push([type, task.name, '', '', '', '', '', '', '', '', '', '', timesheet.belongsTo('worker').value().fullName, (0, _moment.default)(timesheet.date).format(intl.t('date.shortWithWeekday')), timesheet.hours, rate, subtotal, marginTotal, total]);\n      });\n    });\n    return rows;\n  }\n  function generateTaskTotalRows(type, task, useChargeOutRates, computedTotals, invoiceGroups = [], subcontractorGroups = [], labourInvoiceGroups = [], timesheetGroups = []) {\n    const invoiceSubtotal = _lodash.default.sumBy(invoiceGroups, group => group.selectedTotalPrice);\n    const invoiceMargin = invoiceSubtotal * computedTotals.invoice.markupPercent;\n    const invoiceTotal = invoiceSubtotal + invoiceMargin;\n    const subcontractorSubtotal = _lodash.default.sumBy(subcontractorGroups, group => group.selectedTotalPrice);\n    const subcontractorMargin = subcontractorSubtotal * computedTotals.subcontractor.markupPercent;\n    const subcontractorTotal = subcontractorSubtotal + subcontractorMargin;\n    const labourInvoiceSubtotal = _lodash.default.sumBy(labourInvoiceGroups, group => group.selectedTotalPrice);\n    const timesheetsSubtotal = _lodash.default.sumBy(timesheetGroups, group => _lodash.default.sumBy(group.selectedTimesheets, timesheet => (0, _reportBuilder.getTimesheetTotal)(timesheet, useChargeOutRates, group.currentChargeOutRate)));\n    const timesheetsManHoursTotal = _lodash.default.sumBy(timesheetGroups, group => _lodash.default.sumBy(group.selectedTimesheets, timesheet => timesheet.hours));\n    const labourSubtotal = labourInvoiceSubtotal + timesheetsSubtotal;\n    const labourMargin = labourSubtotal * computedTotals.timesheet.markupPercent;\n    const labourTotal = labourSubtotal + labourMargin;\n    const taskSubtotal = invoiceSubtotal + subcontractorSubtotal + labourSubtotal;\n    const taskMargin = invoiceMargin + subcontractorMargin + labourMargin;\n    const taskTotal = invoiceTotal + subcontractorTotal + labourTotal;\n    const taskManHoursTotal = timesheetsManHoursTotal;\n    return [[type, task?.name || 'Not assigned', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', taskManHoursTotal, taskSubtotal, taskMargin, taskTotal]];\n  }\n  function generateManualTypeRows(type, items, markupPercent) {\n    const rows = [];\n    items.forEach(item => {\n      const subtotal = item.total;\n      const marginTotal = item.total * markupPercent;\n      const total = subtotal + marginTotal;\n      rows.push([type, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', item.description, subtotal, marginTotal, total, '', '', '', '', '', '', '', '']);\n    });\n    return rows;\n  }\n  function generateTotalRows(type, computedTotals) {\n    return [[type, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', computedTotals.timesheet.manHoursTotal, computedTotals.total.subtotal, computedTotals.total.margin, computedTotals.total.total]];\n  }\n  function groupInvoiceGroupsByTask(invoiceGroups) {\n    return invoiceGroups.reduce((group, container) => {\n      const {\n        invoice,\n        items\n      } = container;\n      const selectedItems = items.filter(item => item.selected);\n      const groupedItems = _lodash.default.groupBy(selectedItems, item => item.belongsTo('task').id());\n      Object.entries(groupedItems).forEach(([task, items]) => {\n        const sortedItems = _lodash.default.sortBy(items, item => item.belongsTo('task').value()?.name);\n        const newItem = _reportBuilder2.InvoiceGroup.create({\n          invoice,\n          items: sortedItems\n        });\n        if (group[task]) group[task].push(newItem);else group[task] = [newItem];\n      });\n      return group;\n    }, {});\n  }\n  function groupWorkerGroupsByTask(workerGroups) {\n    return workerGroups.reduce((group, container) => {\n      const {\n        selectedTimesheets,\n        worker,\n        startDate,\n        endDate,\n        project\n      } = container;\n      const groupedTimesheets = _lodash.default.groupBy(selectedTimesheets, timesheet => timesheet.belongsTo('task').id());\n      Object.entries(groupedTimesheets).forEach(([task, timesheets]) => {\n        const newTimesheet = _reportBuilder2.WorkerGroup.create({\n          worker,\n          timesheets,\n          startDate,\n          endDate,\n          project,\n          task: timesheets[0].belongsTo('task').value()\n        });\n        if (group[task]) group[task].push(newTimesheet);else group[task] = [newTimesheet];\n      });\n      return group;\n    }, {});\n  }\n  function getTasks() {\n    return new Set([...arguments].reduce((arr, arg) => [...arr, ...Object.keys(arg)], []));\n  }\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/report-builder/excel\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"moment\", \"jquery\", \"ember-local-storage\", \"@ember/controller\", \"@ember/object\", \"portal/utils/csv-builder\", \"@ember/service\", \"@ember/object/computed\", \"@glimmer/tracking\", \"portal/utils/report-builder-attachments-bundle\", \"portal/utils/report-builder-mark-as-reported\", \"portal/utils/report-builder\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _moment, _jquery, _emberLocalStorage, _controller, _object, _csvBuilder, _service, _computed, _tracking, _reportBuilderAttachmentsBundle, _reportBuilderMarkAsReported, _reportBuilder, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"moment\",0,\"jquery\",0,\"ember-local-storage\",0,\"@ember/controller\",0,\"@ember/object\",0,\"portal/utils/csv-builder\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"portal/utils/report-builder-attachments-bundle\",0,\"portal/utils/report-builder-mark-as-reported\",0,\"portal/utils/report-builder\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _dec2 = (0, _computed.alias)('persistedSettings.reportBuilder:markReportedOnExport'), _dec3 = (0, _computed.alias)('persistedSettings.reportBuilder:includeAttachmentsOnExport'), _dec4 = (0, _computed.alias)('session.data.authenticated.access_token'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor4, this);\n      _initializerDefineProperty(this, \"markReportedOnExport\", _descriptor5, this);\n      _initializerDefineProperty(this, \"includeAttachmentsOnExport\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_portalApiToken\", _descriptor7, this);\n      _initializerDefineProperty(this, \"downloaded\", _descriptor8, this);\n      _defineProperty(this, \"crumbStack\", [{\n        route: 'entity.builda-price.operations.outgoing.report-builder',\n        pageTitle: this.intl.t('common.Report builder')\n      }, {\n        pageTitle: this.intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Excel export')\n      }]);\n      _defineProperty(this, \"download\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.markReportedOnExport) {\n            const ok = (0, _reportBuilderMarkAsReported.confirmMarkAsReported)(this.model);\n            if (!ok) return;\n          }\n\n          // do this first otherwise people might leave the tab once the spreadsheet is downloaded\n          if (this.markReportedOnExport) yield (0, _reportBuilderMarkAsReported.markSelectedItemsAsReported)(this.model, this.notifications);\n          const actions = [];\n          actions.push(generateAndDownloadXlsx(this.model, this.intl));\n          if (this.includeAttachmentsOnExport) actions.push((0, _reportBuilderAttachmentsBundle.default)(this.model));\n          yield Promise.all(actions);\n          this.downloaded = true;\n        }\n      }), null, \"download\", null));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"markReportedOnExport\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"includeAttachmentsOnExport\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_portalApiToken\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"downloaded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class2);\n  /* eslint-disable max-len */\n  /* eslint-disable complexity */\n  function generateAndDownloadXlsx({\n    materialInvoices,\n    workers,\n    labourInvoices,\n    subcontractorInvoices,\n    entityName,\n    projectName,\n    endDate,\n    startDate,\n    computedTotals,\n    useChargeOutRates,\n    manualMaterials,\n    manualTimesheets,\n    manualSubcontractors\n  }, intl, portalApiToken) {\n    const report = [];\n    report.push({\n      lineType: 'title',\n      data: [`${entityName} Report`]\n    });\n    report.push({\n      lineType: 'blank',\n      data: null\n    });\n    report.push({\n      lineType: 'subtitle',\n      data: [intl.t('common.Project'), projectName]\n    });\n    report.push({\n      lineType: 'subtitle',\n      data: [intl.t('common.Date'), (0, _moment.default)().format('LLLL')]\n    });\n    report.push({\n      lineType: 'subtitle',\n      data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Report range'), `${(0, _moment.default)(startDate).format(intl.t('date.shortWithWeekday'))} to ${(0, _moment.default)(endDate).format(intl.t('date.shortWithWeekday'))}`]\n    });\n    report.push({\n      lineType: 'blank',\n      data: null\n    });\n    if ((0, _object.get)(materialInvoices, 'length') || (0, _object.get)(manualMaterials, 'length')) {\n      report.push({\n        lineType: 'sectionTitle',\n        data: [intl.t('common.Materials')]\n      });\n      report.push({\n        lineType: 'invoiceTypeHeader',\n        data: [intl.t('common.Issuer'), intl.t('entity.builda-price.operations.outgoing.report-builder.Invoice reference'), intl.t('common.Invoice number')]\n      });\n      report.push({\n        lineType: 'invoiceTypeItemHeader',\n        data: [intl.t('common.Description'), intl.t('common.Task'), intl.t('shared.report-builder.Product code'), intl.t('common.Quantity'), intl.t('common.Unit price'), intl.t('common.Total')]\n      });\n      materialInvoices.forEach((invoice, index) => {\n        const invoiceTotal = (0, _object.get)(invoice, 'selectedTotalPrice');\n        const items = (0, _object.get)(invoice, 'items').filter(item => (0, _object.get)(item, 'selected'));\n        report.push({\n          lineType: 'invoice',\n          data: [(0, _object.get)(invoice, 'invoice.issuer'), (0, _object.get)(invoice, 'invoice.reference'), (0, _object.get)(invoice, 'invoice.billNumber')]\n        });\n        items.forEach(item => {\n          report.push({\n            lineType: 'invoiceItem',\n            data: [(0, _object.get)(item, 'description'), (0, _object.get)(item, 'task.name'), (0, _object.get)(item, 'productCode'), (0, _object.get)(item, 'quantity'), (0, _object.get)(item, 'unitPrice'), (0, _object.get)(item, 'totalPrice')]\n          });\n        });\n        if (materialInvoices.length === index - 1) {\n          report.push({\n            lineType: 'invoiceTotalLast',\n            data: [invoiceTotal]\n          });\n        } else {\n          report.push({\n            lineType: 'invoiceTotal',\n            data: [invoiceTotal]\n          });\n        }\n      });\n      if ((0, _object.get)(manualMaterials, 'length')) {\n        report.push({\n          lineType: 'blank',\n          data: null\n        });\n        report.push({\n          lineType: 'sectionTitle',\n          data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Extra materials')]\n        });\n        manualMaterials.forEach(manual => {\n          report.push({\n            lineType: 'extraItem',\n            data: [(0, _object.get)(manual, 'description'), (0, _object.get)(manual, 'total')]\n          });\n        });\n      }\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('shared.report-builder.Materials subtotal'), computedTotals.invoice.subtotal]\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Materials margin'), computedTotals.invoice.margin]\n      });\n      report.push({\n        lineType: 'sectionTotalLast',\n        data: [intl.t('shared.report-builder.Materials total'), computedTotals.invoice.total]\n      });\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n    }\n    if (workers.length || (0, _object.get)(manualTimesheets, 'length') || (0, _object.get)(labourInvoices, 'length')) {\n      report.push({\n        lineType: 'sectionTitle',\n        data: [intl.t('common.Labour')]\n      });\n      if (workers.length) {\n        report.push({\n          lineType: 'timesheetTypeHeader',\n          data: [intl.t('common.Worker')]\n        });\n        report.push({\n          lineType: 'timesheetTypeItemHeader',\n          data: [intl.t('common.Date'), intl.t('common.Task'), intl.t('common.Hours'), intl.t('common.Rate'), intl.t('common.Total')]\n        });\n        workers.forEach((workerWrapper, index) => {\n          let totalWorkerHours = 0;\n          let totalWorkerCost = 0;\n          const worker = (0, _object.get)(workerWrapper, 'worker');\n          const workerCurrentChargeOutRate = (0, _object.get)(worker, 'currentChargeOutRate');\n          report.push({\n            lineType: 'timesheet',\n            data: [`${(0, _object.get)(worker, 'firstName')} ${(0, _object.get)(worker, 'lastName')}`]\n          });\n          (0, _object.get)(workerWrapper, 'selectedTimesheets').forEach(timesheet => {\n            const rate = useChargeOutRates ?\n            // Timesheets charge our rate should be used unless there is a current one present, a current charge out rate of zero should be respected\n            workerCurrentChargeOutRate != null ? workerCurrentChargeOutRate : (0, _object.get)(timesheet, 'chargeOutRate') : (0, _object.get)(timesheet, 'costRate');\n            const hours = (0, _object.get)(timesheet, 'hours');\n            const timesheetTotal = (0, _reportBuilder.getTimesheetTotal)(timesheet, useChargeOutRates, workerWrapper.currentChargeOutRate);\n            report.push({\n              lineType: 'timesheetItem',\n              data: [(0, _moment.default)((0, _object.get)(timesheet, 'date')).format(intl.t('date.shortWithWeekday')), (0, _object.get)(timesheet, 'task.name'), hours, rate, timesheetTotal]\n            });\n            totalWorkerHours += hours;\n            totalWorkerCost += timesheetTotal;\n          });\n          if (workers.length === index - 1) {\n            report.push({\n              lineType: 'timesheetTotalLast',\n              data: [totalWorkerHours, totalWorkerCost / (totalWorkerHours || Infinity), totalWorkerCost]\n            });\n          } else {\n            report.push({\n              lineType: 'timesheetTotal',\n              data: [totalWorkerHours, totalWorkerCost / (totalWorkerHours || Infinity), totalWorkerCost]\n            });\n          }\n        });\n      }\n      if ((0, _object.get)(labourInvoices, 'length')) {\n        report.push({\n          lineType: 'invoiceTypeHeader',\n          data: [intl.t('common.Issuer'), intl.t('entity.builda-price.operations.outgoing.report-builder.Invoice reference'), intl.t('common.Invoice number')]\n        });\n        report.push({\n          lineType: 'invoiceTypeItemHeader',\n          data: [intl.t('common.Description'), intl.t('common.Task'), intl.t('shared.report-builder.Product code'), intl.t('common.Quantity'), intl.t('common.Unit price'), intl.t('common.Total')]\n        });\n        labourInvoices.forEach((invoice, index) => {\n          const invoiceTotal = (0, _object.get)(invoice, 'selectedTotalPrice');\n          const items = (0, _object.get)(invoice, 'items').filter(item => (0, _object.get)(item, 'selected'));\n          report.push({\n            lineType: 'invoice',\n            data: [(0, _object.get)(invoice, 'invoice.issuer'), (0, _object.get)(invoice, 'invoice.reference'), (0, _object.get)(invoice, 'invoice.billNumber')]\n          });\n          items.forEach(item => {\n            report.push({\n              lineType: 'invoiceItem',\n              data: [(0, _object.get)(item, 'description'), (0, _object.get)(item, 'task.name'), (0, _object.get)(item, 'productCode'), (0, _object.get)(item, 'quantity'), (0, _object.get)(item, 'unitPrice'), (0, _object.get)(item, 'totalPrice')]\n            });\n          });\n          if (materialInvoices.length === index - 1) {\n            report.push({\n              lineType: 'invoiceTotalLast',\n              data: [invoiceTotal]\n            });\n          } else {\n            report.push({\n              lineType: 'invoiceTotal',\n              data: [invoiceTotal]\n            });\n          }\n        });\n      }\n      if ((0, _object.get)(manualTimesheets, 'length')) {\n        report.push({\n          lineType: 'blank',\n          data: null\n        });\n        report.push({\n          lineType: 'sectionTitle',\n          data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Extra labour')]\n        });\n        manualTimesheets.forEach(manual => {\n          report.push({\n            lineType: 'extraItem',\n            data: [(0, _object.get)(manual, 'description'), (0, _object.get)(manual, 'total')]\n          });\n        });\n      }\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n      report.push({\n        lineType: 'sectionTotalManHours',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Man hours'), computedTotals.timesheet.manHoursTotal]\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('shared.report-builder.Labour subtotal'), computedTotals.timesheet.subtotal]\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Labour margin'), computedTotals.timesheet.margin]\n      });\n      report.push({\n        lineType: 'sectionTotalLast',\n        data: [intl.t('shared.report-builder.Labour total'), computedTotals.timesheet.total]\n      });\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n    }\n    if ((0, _object.get)(subcontractorInvoices, 'length') || (0, _object.get)(manualSubcontractors, 'length')) {\n      report.push({\n        lineType: 'sectionTitle',\n        data: [intl.t('common.Subcontractors')]\n      });\n      report.push({\n        lineType: 'invoiceTypeHeader',\n        data: [intl.t('common.Issuer'), intl.t('entity.builda-price.operations.outgoing.report-builder.Invoice reference'), intl.t('common.Invoice number')]\n      });\n      report.push({\n        lineType: 'invoiceTypeItemHeader',\n        data: [intl.t('common.Description'), intl.t('common.Task'), intl.t('shared.report-builder.Product code'), intl.t('common.Quantity'), intl.t('common.Unit price'), intl.t('common.Total')]\n      });\n      subcontractorInvoices.forEach((invoice, index) => {\n        const invoiceTotal = (0, _object.get)(invoice, 'selectedTotalPrice');\n        const items = (0, _object.get)(invoice, 'items').filter(item => (0, _object.get)(item, 'selected'));\n        report.push({\n          lineType: 'invoice',\n          data: [(0, _object.get)(invoice, 'invoice.issuer'), (0, _object.get)(invoice, 'invoice.reference'), (0, _object.get)(invoice, 'invoice.billNumber')]\n        });\n        items.forEach(item => {\n          report.push({\n            lineType: 'invoiceItem',\n            data: [(0, _object.get)(item, 'description'), (0, _object.get)(item, 'task.name'), (0, _object.get)(item, 'productCode'), (0, _object.get)(item, 'quantity'), (0, _object.get)(item, 'unitPrice'), (0, _object.get)(item, 'totalPrice')]\n          });\n        });\n        if (subcontractorInvoices.length === index - 1) {\n          report.push({\n            lineType: 'invoiceTotalLast',\n            data: [invoiceTotal]\n          });\n        } else {\n          report.push({\n            lineType: 'invoiceTotal',\n            data: [invoiceTotal]\n          });\n        }\n      });\n      if ((0, _object.get)(manualSubcontractors, 'length')) {\n        report.push({\n          lineType: 'blank',\n          data: null\n        });\n        report.push({\n          lineType: 'sectionTitle',\n          data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Extra subcontractors')]\n        });\n        manualSubcontractors.forEach(manual => {\n          report.push({\n            lineType: 'extraItem',\n            data: [(0, _object.get)(manual, 'description'), (0, _object.get)(manual, 'total')]\n          });\n        });\n      }\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Subcontractor subtotal'), computedTotals.subcontractor.subtotal]\n      });\n      report.push({\n        lineType: 'sectionTotal',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Subcontractor margin'), computedTotals.subcontractor.margin]\n      });\n      report.push({\n        lineType: 'sectionTotalLast',\n        data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Subcontractor total'), computedTotals.subcontractor.total]\n      });\n      report.push({\n        lineType: 'blank',\n        data: null\n      });\n    }\n    report.push({\n      lineType: 'sectionTitle',\n      data: [intl.t('common.Total')]\n    });\n    report.push({\n      lineType: 'reportTotalManHours',\n      data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Man hours'), computedTotals.timesheet.manHoursTotal]\n    });\n    report.push({\n      lineType: 'reportTotal',\n      data: [intl.t('common.Total'), computedTotals.total.subtotal]\n    });\n    report.push({\n      lineType: 'reportTotal',\n      data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Total margin'), computedTotals.total.margin]\n    });\n    report.push({\n      lineType: 'reportTotalLast',\n      data: [intl.t('entity.builda-price.operations.outgoing.report-builder.excel.Grand total'), computedTotals.total.total]\n    });\n    return new Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/generate-xlsx',\n        method: 'POST',\n        xhr() {\n          // This seems to be the only way to set the response type to blob.\n          // This will allow js to leave the file as a bytestream rather than trying to parse it.\n          const xhr = new XMLHttpRequest();\n          xhr.responseType = 'blob';\n          return xhr;\n        },\n        headers: {\n          Authorization: `Bearer ${portalApiToken}`\n        },\n        data: JSON.stringify({\n          data: report\n        }),\n        contentType: 'application/json',\n        accept: 'application/vnd.ms-excel'\n      }).then(resolve, reject);\n    }).then(response => {\n      const fileName = `${projectName}_${(0, _moment.default)(startDate).format(intl.t('date.slashDayFirst'))}-${(0, _moment.default)(endDate).format(intl.t('date.slashDayFirst'))}.xlsx`;\n      return (0, _csvBuilder.downloadXlsx)(response, fileName);\n    });\n  }\n  /* eslint-enable max-len */\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/report-builder/index\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/object/computed\", \"@ember/service\", \"portal/utils/report-builder\", \"moment\", \"rsvp\", \"lodash\", \"ember-local-storage\"], function (_exports, _controller, _object, _computed, _service, _reportBuilder, _moment, _rsvp, _lodash, _emberLocalStorage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/service\",0,\"portal/utils/report-builder\",0,\"moment\",0,\"rsvp\",0,\"lodash\",0,\"ember-local-storage\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    persistedSettings: (0, _emberLocalStorage.storageFor)('settings'),\n    markReportedOnExport: (0, _computed.alias)('persistedSettings.reportBuilder:markReportedOnExport'),\n    includeAttachmentsOnExport: (0, _computed.alias)('persistedSettings.reportBuilder:includeAttachmentsOnExport'),\n    _portalApiToken: (0, _computed.alias)('session.data.authenticated.access_token'),\n    materialsSectionExpanded: true,\n    labourSectionExpanded: true,\n    subcontractorsSectionExpanded: true,\n    groupedProjects: (0, _object.computed)('model.projects', function () {\n      const output = [];\n      const groups = _lodash.default.groupBy((0, _object.get)(this, 'model.projects'), 'status');\n      if (groups.OPEN) output.push({\n        groupName: (0, _object.get)(this, 'intl').t('common.Open'),\n        options: groups.OPEN\n      });\n      if (groups.HELD) output.push({\n        groupName: (0, _object.get)(this, 'intl').t('common.Held'),\n        options: groups.HELD\n      });\n      if (groups.CLOSED) output.push({\n        groupName: (0, _object.get)(this, 'intl').t('common.Closed'),\n        options: groups.CLOSED\n      });\n      return output;\n    }),\n    showTaskPopUp: false,\n    queryParams: ['endDate', 'startDate', 'selectedProjectId', 'filterByDate'],\n    filterByDate: true,\n    endDate: (0, _moment.default)().endOf('month').format('YYYY-MM-DD'),\n    jsEndDate: (0, _object.computed)('endDate', {\n      get: function () {\n        return (0, _moment.default)((0, _object.get)(this, 'endDate')).toDate();\n      },\n      set: function (key, value) {\n        (0, _object.set)(this, 'endDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        return value;\n      }\n    }),\n    startDate: (0, _moment.default)().startOf('month').format('YYYY-MM-DD'),\n    jsStartDate: (0, _object.computed)('startDate', {\n      get: function () {\n        return (0, _moment.default)((0, _object.get)(this, 'startDate')).toDate();\n      },\n      set: function (key, value) {\n        (0, _object.set)(this, 'startDate', (0, _moment.default)(value).format('YYYY-MM-DD'));\n        return value;\n      }\n    }),\n    selectedProject: (0, _object.computed)('selectedProjectId', 'model.projects', {\n      get() {\n        return (0, _object.get)(this, 'model.projects').findBy('id', (0, _object.get)(this, 'selectedProjectId'));\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'selectedProjectId', value ? (0, _object.get)(value, 'id') : undefined);\n        return value;\n      }\n    }),\n    selectedTaskIds: [],\n    selectedTasks: (0, _object.computed)('selectedTaskIds', 'selectedProject.tasks', function () {\n      if (!(0, _object.get)(this, 'selectedTaskIds')) return [];\n      return ((0, _object.get)(this, 'selectedProject.tasks').content?.toArray() || []).filter(t => (0, _object.get)(this, 'selectedTaskIds').includes((0, _object.get)(t, 'id')));\n    }),\n    manualMaterials: [],\n    materialInvoices: (0, _computed.alias)('model.materialInvoices'),\n    manualLabour: [],\n    labourInvoices: (0, _computed.alias)('model.labourInvoices'),\n    manualTimesheets: [],\n    workers: (0, _computed.alias)('model.workers'),\n    manualSubcontractors: [],\n    subcontractorInvoices: (0, _computed.alias)('model.subcontractorInvoices'),\n    invoiceProfit: 0,\n    invoiceProfitType: 'margin',\n    invoiceDollarProfit: generateDollarProfit('invoiceProfit', 'invoiceProfitType', 'subtotals.invoice'),\n    invoiceMargin: generateMargin('invoiceProfit', 'invoiceProfitType', 'subtotals.invoice'),\n    invoiceMarkup: generateMarkup('invoiceProfit', 'invoiceProfitType', 'subtotals.invoice'),\n    timesheetProfit: 0,\n    timesheetProfitType: 'margin',\n    timesheetDollarProfit: generateDollarProfit('timesheetProfit', 'timesheetProfitType', 'subtotals.timesheet'),\n    timesheetMargin: generateMargin('timesheetProfit', 'timesheetProfitType', 'subtotals.timesheet'),\n    timesheetMarkup: generateMarkup('timesheetProfit', 'timesheetProfitType', 'subtotals.timesheet'),\n    subcontractorProfit: 0,\n    subcontractorProfitType: 'margin',\n    subcontractorDollarProfit: generateDollarProfit('subcontractorProfit', 'subcontractorProfitType', 'subtotals.subcontractor'),\n    subcontractorMargin: generateMargin('subcontractorProfit', 'subcontractorProfitType', 'subtotals.subcontractor'),\n    subcontractorMarkup: generateMarkup('subcontractorProfit', 'subcontractorProfitType', 'subtotals.subcontractor'),\n    computedTotals: (0, _object.computed)('invoiceDollarProfit', 'invoiceMarkup', 'invoiceProfit', 'invoiceProfitType', 'subcontractorDollarProfit', 'subcontractorMarkup', 'subcontractorProfit', 'subcontractorProfitType', 'subtotals', 'timesheetDollarProfit', 'timesheetMarkup', 'timesheetProfit', 'timesheetProfitType', function () {\n      const invoiceDollarProfit = (0, _object.get)(this, 'invoiceDollarProfit');\n      const timesheetDollarProfit = (0, _object.get)(this, 'timesheetDollarProfit');\n      const subcontractorDollarProfit = (0, _object.get)(this, 'subcontractorDollarProfit');\n      const {\n        invoice,\n        timesheet,\n        manHoursTotal,\n        subcontractor,\n        total\n      } = (0, _object.getProperties)((0, _object.get)(this, 'subtotals'), 'invoice', 'timesheet', 'manHoursTotal', 'subcontractor', 'total');\n      return {\n        invoice: {\n          subtotal: invoice,\n          margin: invoiceDollarProfit,\n          total: invoice + invoiceDollarProfit,\n          markupPercent: this.invoiceMarkup\n        },\n        timesheet: {\n          manHoursTotal,\n          subtotal: timesheet,\n          margin: timesheetDollarProfit,\n          total: timesheet + timesheetDollarProfit,\n          markupPercent: this.timesheetMarkup\n        },\n        subcontractor: {\n          subtotal: subcontractor,\n          margin: subcontractorDollarProfit,\n          total: subcontractor + subcontractorDollarProfit,\n          markupPercent: this.subcontractorMarkup\n        },\n        total: {\n          margin: invoiceDollarProfit + timesheetDollarProfit + subcontractorDollarProfit,\n          subtotal: total,\n          total: total + invoiceDollarProfit + timesheetDollarProfit + subcontractorDollarProfit\n        }\n      };\n    }),\n    subtotals: (0, _object.computed)('manualMaterials.@each.{total,selected}', 'manualTimesheets.@each.{total,selected}', 'manualSubcontractors.@each.{total,selected}', 'materialInvoices.@each.{allSelected,partSelected}', 'materialInvoices.items.@each.{selected,reported}', 'labourInvoices.@each.{allSelected,partSelected}', 'labourInvoices.items.@each.{selected,reported}', 'subcontractorInvoices.@each.{allSelected,partSelected}', 'subcontractorInvoices.items.@each.{selected,reported}', 'workers.@each.{allSelected,partSelected,currentChargeOutRate}', 'workers.timesheets.@each.{selected,reported}', 'useChargeOutRates', function () {\n      const materialInvoices = (0, _object.get)(this, 'materialInvoices');\n      const subcontractorInvoices = (0, _object.get)(this, 'subcontractorInvoices');\n      const labourInvoices = (0, _object.get)(this, 'labourInvoices');\n      const workers = (0, _object.get)(this, 'workers');\n      const manualMaterials = (0, _object.get)(this, 'manualMaterials').filter(manual => (0, _object.get)(manual, 'selected'));\n      const manualTimesheets = (0, _object.get)(this, 'manualTimesheets').filter(manual => (0, _object.get)(manual, 'selected'));\n      const manualSubcontractors = (0, _object.get)(this, 'manualSubcontractors').filter(manual => (0, _object.get)(manual, 'selected'));\n      const useChargeOutRates = (0, _object.get)(this, 'useChargeOutRates');\n      const manualInvoiceTotalPrice = manualMaterials.reduce((total, manual) => total += (0, _object.get)(manual, 'total'), 0);\n      const invoiceTotalPrice = materialInvoices.reduce((total, invoice) => total += (0, _object.get)(invoice, 'selectedTotalPrice'), 0);\n      const manualTimesheetTotalPrice = manualTimesheets.reduce((total, manual) => total += (0, _object.get)(manual, 'total'), 0);\n      const timesheetTotalPrice = workers.reduce((total, workerWrapper) => {\n        return total += workerWrapper.selectedTimesheets.reduce((total, timesheet) => total += (0, _reportBuilder.getTimesheetTotal)(timesheet, useChargeOutRates, workerWrapper.currentChargeOutRate), 0);\n      }, 0);\n      const labourInvoicePrice = labourInvoices.reduce((total, invoice) => total += (0, _object.get)(invoice, 'selectedTotalPrice'), 0);\n      const timesheetTotalManHours = workers.reduce((total, workerWrapper) => {\n        return total += workerWrapper.selectedTimesheets.reduce((total, timesheet) => total += (0, _object.get)(timesheet, 'duration'), 0);\n      }, 0);\n      const manualSubcontractorTotalPrice = manualSubcontractors.reduce((total, manual) => total += (0, _object.get)(manual, 'total'), 0);\n      const subcontractorTotalPrice = subcontractorInvoices.reduce((total, invoice) => total += (0, _object.get)(invoice, 'selectedTotalPrice'), 0);\n      return {\n        invoice: invoiceTotalPrice + manualInvoiceTotalPrice,\n        timesheet: timesheetTotalPrice + labourInvoicePrice + manualTimesheetTotalPrice,\n        manHoursTotal: timesheetTotalManHours / 60,\n        subcontractor: subcontractorTotalPrice + manualSubcontractorTotalPrice,\n        total: invoiceTotalPrice + manualInvoiceTotalPrice + timesheetTotalPrice + labourInvoicePrice + manualTimesheetTotalPrice + subcontractorTotalPrice + manualSubcontractorTotalPrice\n      };\n    }),\n    useChargeOutRates: true,\n    allMaterialsSelected: (0, _object.computed)('materialInvoices.@each.allSelected', function () {\n      return (0, _object.get)(this, 'materialInvoices').every(invoiceWrapper => (0, _object.get)(invoiceWrapper, 'allSelected'));\n    }),\n    partMaterialsSelected: (0, _object.computed)('allMaterialsSelected', 'materialInvoices.@each.partSelected', function () {\n      return !(0, _object.get)(this, 'allMaterialsSelected') && (0, _object.get)(this, 'materialInvoices').some(invoiceWrapper => (0, _object.get)(invoiceWrapper, 'allSelected') || (0, _object.get)(invoiceWrapper, 'partSelected'));\n    }),\n    allTimesheetsSelected: (0, _object.computed)('workers.@each.allSelected', function () {\n      return (0, _object.get)(this, 'workers').every(workerWrapper => (0, _object.get)(workerWrapper, 'allSelected'));\n    }),\n    partTimesheetsSelected: (0, _object.computed)('allTimesheetsSelected', 'workers.@each.partSelected', function () {\n      return !(0, _object.get)(this, 'allTimesheetsSelected') && (0, _object.get)(this, 'workers').some(workerWrapper => (0, _object.get)(workerWrapper, 'allSelected') || (0, _object.get)(workerWrapper, 'partSelected'));\n    }),\n    allSubcontractorsSelected: (0, _object.computed)('subcontractorInvoices.@each.allSelected', function () {\n      return (0, _object.get)(this, 'subcontractorInvoices').every(subcontractorWrapper => (0, _object.get)(subcontractorWrapper, 'allSelected'));\n    }),\n    partSubcontractorsSelected: (0, _object.computed)('allSubcontractorsSelected', 'subcontractorInvoices.@each.partSelected', function () {\n      return !(0, _object.get)(this, 'allSubcontractorsSelected') && (0, _object.get)(this, 'subcontractorInvoices').some(subcontractorWrapper => (0, _object.get)(subcontractorWrapper, 'allSelected') || (0, _object.get)(subcontractorWrapper, 'partSelected'));\n    }),\n    allLabourSelected: (0, _object.computed)('labourInvoices.@each.allSelected', function () {\n      return (0, _object.get)(this, 'labourInvoices').every(labourWrapper => (0, _object.get)(labourWrapper, 'allSelected'));\n    }),\n    partLabourSelected: (0, _object.computed)('allLabourSelected', 'labourInvoices.@each.partSelected', function () {\n      return !(0, _object.get)(this, 'allLabourSelected') && (0, _object.get)(this, 'labourInvoices').some(labourWrapper => (0, _object.get)(labourWrapper, 'allSelected') || (0, _object.get)(labourWrapper, 'partSelected'));\n    }),\n    reportData: (0, _object.computed)('computedTotals', 'endDate', 'labourInvoices', 'manualMaterials', 'manualSubcontractors', 'manualTimesheets', 'materialInvoices', 'selectedProject.{id,name}', 'sessionData.entity.name', 'startDate', 'subcontractorInvoices', 'useChargeOutRates', 'workers', function () {\n      const projectId = (0, _object.get)(this, 'selectedProject.id');\n      const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n      const projectName = (0, _object.get)(this, 'selectedProject.name');\n      const endDate = (0, _object.get)(this, 'endDate');\n      const startDate = (0, _object.get)(this, 'startDate');\n      const computedTotals = (0, _object.get)(this, 'computedTotals');\n      const useChargeOutRates = (0, _object.get)(this, 'useChargeOutRates');\n      const materialInvoices = (0, _object.get)(this, 'materialInvoices').filter(invoiceWrapper => (0, _object.get)(invoiceWrapper, 'allSelected') || (0, _object.get)(invoiceWrapper, 'partSelected'));\n      const manualMaterials = (0, _object.get)(this, 'manualMaterials');\n      const workers = (0, _object.get)(this, 'workers').filter(workerWrapper => (0, _object.get)(workerWrapper, 'allSelected') || (0, _object.get)(workerWrapper, 'partSelected'));\n      const labourInvoices = (0, _object.get)(this, 'labourInvoices').filter(labourWrapper => (0, _object.get)(labourWrapper, 'allSelected') || (0, _object.get)(labourWrapper, 'partSelected'));\n      const manualTimesheets = (0, _object.get)(this, 'manualTimesheets');\n      const subcontractorInvoices = (0, _object.get)(this, 'subcontractorInvoices').filter(subcontractorWrapper => (0, _object.get)(subcontractorWrapper, 'allSelected') || (0, _object.get)(subcontractorWrapper, 'partSelected'));\n      const manualSubcontractors = (0, _object.get)(this, 'manualSubcontractors');\n      return {\n        projectId,\n        materialInvoices,\n        workers,\n        labourInvoices,\n        subcontractorInvoices,\n        entityName,\n        projectName,\n        endDate,\n        startDate,\n        computedTotals,\n        useChargeOutRates,\n        manualMaterials,\n        manualTimesheets,\n        manualSubcontractors\n      };\n    }),\n    removeSelectedTask: (0, _object.action)(function (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: (0, _object.action)(function (value) {\n      (0, _object.set)(this, 'selectedTaskIds', []);\n      (0, _object.set)(this, 'selectedProject', value);\n    }),\n    removeAllTaskFilters: (0, _object.action)(function () {\n      (0, _object.set)(this, 'selectedTaskIds', []);\n      (0, _object.get)(this, 'model.refresh')();\n    }),\n    setSelectedTasks: (0, _object.action)(function (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: (0, _object.action)(function () {\n      (0, _object.set)(this, 'filterByDate', !(0, _object.get)(this, 'filterByDate'));\n    }),\n    setProfitType: (0, _object.action)(function (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: (0, _object.action)(function (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: (0, _object.action)(function (resource) {\n      (0, _object.set)(resource, 'itemsVisible', !(0, _object.get)(resource, 'itemsVisible'));\n    }),\n    toggleTimesheetsSelected: (0, _object.action)(function (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: (0, _object.action)(function (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: (0, _object.action)(function (timesheet, event) {\n      timesheet.toggleProperty('selected');\n      // Stop event propagation to disable native checkbox behaviour\n      event.stopPropagation();\n    }),\n    toggleMaterialsSelected: (0, _object.action)(function (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: (0, _object.action)(function (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: (0, _object.action)(function (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: (0, _object.action)(function () {\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: (0, _object.action)(function () {\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: (0, _object.action)(function () {\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: (0, _object.action)(function (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: (0, _object.action)(function (item, event) {\n      item.toggleProperty('selected');\n      // Stop event propagation to disable native checkbox behaviour\n      event.stopPropagation();\n    }),\n    addManualItem: (0, _object.action)(function (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: (0, _object.action)(function (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    downloadReport: (0, _object.action)(async function (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: (0, _object.action)(function (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: (0, _object.action)(function (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    // Section headers used {{action this.toggleProperty 'key'}}; toggleProperty\n    // is an Observable method, so fn would call it without `this`.\n    toggleSection: (0, _object.action)(function (key) {\n      (0, _object.set)(this, key, !(0, _object.get)(this, key));\n    }),\n    resetPageOverrides() {\n      (0, _object.set)(this, 'invoiceProfit', 0);\n      (0, _object.set)(this, 'timesheetProfit', 0);\n      (0, _object.set)(this, 'subcontractorProfit', 0);\n      (0, _object.set)(this, 'manualMaterials', []);\n      (0, _object.set)(this, 'manualTimesheets', []);\n      (0, _object.set)(this, 'manualSubcontractors', []);\n      (0, _object.get)(this, 'model.workers').forEach(worker => (0, _object.set)(worker, 'currentChargeOutRate', null));\n    }\n  });\n  function generateDollarProfit(profitKey, profitTypeKey, subtotalKey) {\n    return (0, _object.computed)(profitKey, profitTypeKey, subtotalKey, function () {\n      const profit = (0, _object.get)(this, profitKey);\n      const profitType = (0, _object.get)(this, profitTypeKey);\n      const subtotal = (0, _object.get)(this, subtotalKey);\n      switch (profitType) {\n        case 'dollar':\n          return profit;\n        case 'margin':\n          return profit * subtotal / (1 - profit);\n        case 'markup':\n          return profit * subtotal;\n        default:\n          return 0;\n      }\n    });\n  }\n  function generateMargin(profitKey, profitTypeKey, subtotalKey) {\n    return (0, _object.computed)(profitKey, profitTypeKey, subtotalKey, function () {\n      const profit = (0, _object.get)(this, profitKey);\n      const profitType = (0, _object.get)(this, profitTypeKey);\n      const subtotal = (0, _object.get)(this, subtotalKey);\n      switch (profitType) {\n        case 'dollar':\n          return profit / (profit + subtotal) || 0;\n        case 'margin':\n          return profit;\n        case 'markup':\n          return 1 - 1 / (profit + 1);\n        default:\n          return 0;\n      }\n    });\n  }\n  function generateMarkup(profitKey, profitTypeKey, subtotalKey) {\n    return (0, _object.computed)(profitKey, profitTypeKey, subtotalKey, function () {\n      const profit = (0, _object.get)(this, profitKey);\n      const profitType = (0, _object.get)(this, profitTypeKey);\n      const subtotal = (0, _object.get)(this, subtotalKey);\n      switch (profitType) {\n        case 'dollar':\n          return profit / subtotal;\n        case 'margin':\n          return profit / (1 - profit);\n        case 'markup':\n          return profit;\n        default:\n          return 0;\n      }\n    });\n  }\n});","define(\"portal/controllers/entity/builda-price/operations/outgoing/report-builder/pdf\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/object/computed\", \"ember-local-storage\", \"@glimmer/tracking\", \"portal/utils/download\", \"@ember/service\", \"portal/utils/report-builder-attachments-bundle\", \"portal/utils/report-builder-mark-as-reported\", \"portal/config/environment\"], function (_exports, _controller, _object, _computed, _emberLocalStorage, _tracking, _download, _service, _reportBuilderAttachmentsBundle, _reportBuilderMarkAsReported, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"ember-local-storage\",0,\"@glimmer/tracking\",0,\"portal/utils/download\",0,\"@ember/service\",0,\"portal/utils/report-builder-attachments-bundle\",0,\"portal/utils/report-builder-mark-as-reported\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const HTML_TO_PDF_SERVICE_URL = _environment.default.urls.htmlToPdfService;\n  let PdfController = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _dec2 = (0, _computed.alias)('persistedSettings.reportBuilder:markReportedOnExport'), _dec3 = (0, _computed.alias)('persistedSettings.reportBuilder:includeAttachmentsOnExport'), _dec4 = (0, _computed.alias)('session.data.authenticated.access_token'), _class = class PdfController extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isDownloading\", _descriptor4, this);\n      _initializerDefineProperty(this, \"downloaded\", _descriptor5, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"markReportedOnExport\", _descriptor7, this);\n      _initializerDefineProperty(this, \"includeAttachmentsOnExport\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_portalApiToken\", _descriptor9, this);\n      _defineProperty(this, \"crumbStack\", [{\n        route: 'entity.builda-price.operations.outgoing.report-builder',\n        pageTitle: this.intl.t('common.Report builder')\n      }, {\n        pageTitle: this.intl.t('entity.builda-price.operations.outgoing.report-builder.pdf.PDF export')\n      }]);\n    }\n    async download() {\n      try {\n        if (this.markReportedOnExport) {\n          const ok = (0, _reportBuilderMarkAsReported.confirmMarkAsReported)(this.model);\n          if (!ok) return;\n        }\n        this.isDownloading = true;\n        const htmlContent = document.querySelector('.pdf-wrapper').outerHTML;\n        const body = {\n          htmlContent,\n          includeMargins: true\n        };\n        const options = {\n          method: 'POST',\n          body: JSON.stringify(body),\n          headers: {\n            Accept: 'application/pdf',\n            'Content-Type': 'application/json'\n          }\n        };\n        const res = await fetch(HTML_TO_PDF_SERVICE_URL, options);\n        const blob = await res.blob();\n\n        // do this first otherwise people might leave the tab once the PDF is downloaded\n        if (this.markReportedOnExport) await (0, _reportBuilderMarkAsReported.markSelectedItemsAsReported)(this.model, this.notifications);\n        const actions = [];\n        actions.push((0, _download.download)(blob, 'report.pdf', 'application/pdf'));\n        if (this.includeAttachmentsOnExport) {\n          actions.push((0, _reportBuilderAttachmentsBundle.default)(this.model));\n        }\n        await Promise.all(actions);\n        this.downloaded = true;\n      } catch (error) {\n        throw error;\n      } finally {\n        this.isDownloading = false;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isDownloading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"downloaded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"markReportedOnExport\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"includeAttachmentsOnExport\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"_portalApiToken\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class.prototype, \"download\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"download\"), _class.prototype), _class);\n});","define(\"portal/controllers/entity/builda-price/operations/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/runloop\", \"portal/config/environment\", \"ember-changeset\", \"portal/utils/search-filter\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service, _runloop, _environment, _emberChangeset, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/runloop\",0,\"portal/config/environment\",0,\"ember-changeset\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor5, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingProduct\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isDeletingProducts\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isEditingProduct\", _descriptor0, this);\n      _initializerDefineProperty(this, \"pageIndex\", _descriptor1, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor10, this);\n      _initializerDefineProperty(this, \"productChangeSet\", _descriptor11, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor12, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor13, this);\n      _initializerDefineProperty(this, \"selectProductIds\", _descriptor14, this);\n      _initializerDefineProperty(this, \"selectedProductId\", _descriptor15, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor16, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor17, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor18, this);\n      _defineProperty(this, \"suppliers\", []);\n      _defineProperty(this, \"suppliersFilter\", undefined);\n      _defineProperty(this, \"suppliersPage\", undefined);\n      _defineProperty(this, \"suppliersPageSize\", 10);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageIndex', 'sortBy', 'sortDirection', 'searchTerm', 'supplier']);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"onAddProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (product) {\n          try {\n            yield this.store.createRecord('entity-product', {\n              ...product,\n              entity: this.sessionData.entity\n            }).save();\n            this.isAddingProduct = false;\n            yield this.updateProductList.perform();\n          } catch (error) {\n            if (error.errors[0].status === '409') this.notifications.warning(this.intl.t('shared.notification.Product already exists'));\n          }\n        }\n      }), null, \"onAddProduct\", null));\n      _defineProperty(this, \"onSaveProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (productChangeSet) {\n          try {\n            yield productChangeSet.save();\n            this.isEditingProduct = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileSavingProduct'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"onSaveProduct\", null));\n      _defineProperty(this, \"updateProductList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.products.perform(Number(this.model.pageSize), Number(this.model.pageIndex), this.model.sortBy, this.model.sortDirection, this.model.searchTerm);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileReloadProducts'),\n              error\n            });\n          }\n        }\n      }), null, \"updateProductList\", null));\n      _defineProperty(this, \"deleteProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.store.adapterFor('entity-product').deleteBulk('entity-product', [...this.selectProductIds]);\n            this.isDeletingProducts = false;\n            this.selectProductIds = new Set();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingProducts'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"deleteProducts\", null));\n      _defineProperty(this, \"loadMoreSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            const suppliersFilter = {\n              and: [{\n                field: 'entity',\n                operator: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) {\n              suppliersFilter.and.push((0, _searchFilter.default)(['name'], searchTerm, 'operator'));\n            }\n            if (JSON.stringify(suppliersFilter) !== JSON.stringify(this.suppliersFilter)) {\n              this.suppliersPage = undefined;\n              this.suppliersFilter = suppliersFilter;\n              this.suppliers = [];\n            }\n            if (this.suppliersPage && !this.suppliersPage?.hasNextPage) return this.suppliers;\n            const nextPageNumber = (this.suppliersPage?.currentPage || 0) + 1;\n            const nextPage = yield this.portalApiV2.authGet('/search-suppliers', {\n              filter: suppliersFilter,\n              pageSize: this.suppliersPageSize,\n              page: nextPageNumber,\n              orderBy: 'name',\n              orderByDirection: 'desc'\n            });\n            this.suppliersPage = nextPage.pagination;\n            this.suppliers = [...this.suppliers, ...nextPage.data];\n            return this.suppliers;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreSuppliers'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadMoreSuppliers\", null));\n    }\n    get products() {\n      return this.model.products.last.value || [];\n    }\n    get isLoading() {\n      return this.model.products.isRunning || this.deleteProducts.isRunning || this.onSaveProduct.isRunning;\n    }\n    get supplierChangeSet() {\n      return (0, _emberChangeset.Changeset)({\n        supplierName: this.supplier\n      });\n    }\n    updateSearchTerm(value) {\n      this.selectProductIds = new Set();\n      this.pageIndex = 1;\n      this.searchTerm = value;\n    }\n    onChangePageIndex(pageIndex) {\n      this.pageIndex = pageIndex;\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    setPrice(price) {\n      this.productChangeSet.set('unitPrice', price);\n    }\n    get totalRecords() {\n      if (this.model.products.isRunning) return 0;\n      return this.products.meta.totalRecords;\n    }\n    onSelectProduct(_row, col, e) {\n      if (e.target.checked) {\n        this.selectProductIds.add(col.extraData.productId);\n      } else {\n        this.selectProductIds.delete(col.extraData.productId);\n      }\n\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectProductIds = this.selectProductIds;\n    }\n    onClickProductName(_row, col) {\n      this.selectedProductId = col.extraData.productId;\n      this.isEditingProduct = true;\n    }\n    onSelectCurrentPageProducts(_row, col, e) {\n      const selectedProductIds = new Set();\n      if (e.target.checked) {\n        this.products.forEach(p => {\n          selectedProductIds.add(p.id);\n        });\n      }\n      this.selectProductIds = selectedProductIds;\n    }\n    onCreateProduct() {\n      this.selectedProductId = null;\n      this.isEditingProduct = true;\n    }\n    sortColumn(_row, col) {\n      if (this.sortBy !== col.value) {\n        this.sortBy = col.value;\n        this.sortDirection = 'asc';\n        return;\n      }\n      this.sortBy = col.value;\n      if (this.sortDirection === 'asc') {\n        this.sortDirection = 'desc';\n      } else if (this.sortDirection === 'desc') {\n        this.sortDirection = undefined;\n      } else {\n        this.sortDirection = 'asc';\n      }\n    }\n    get productTableHeader() {\n      if (this.model.products.isRunning) return [];\n      const productHeader = [{\n        value: this.intl.t('common.Product'),\n        iconName: this.sortBy === 'Product' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Supplier'),\n        iconName: this.sortBy === 'Supplier' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.SKU'),\n        iconName: this.sortBy === 'SKU' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit'),\n        iconName: this.sortBy === 'Unit' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }];\n      if (this.isEditable && this.products.length) productHeader.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        value: Boolean(this.selectProductIds.size === this.products.length),\n        isPartiallySelected: Boolean(this.selectProductIds.size && this.selectProductIds.size !== this.products.length),\n        onInputChange: this.onSelectCurrentPageProducts\n      });\n      return productHeader;\n    }\n    get showFilters() {\n      return this.productTableData?.length || this.supplierChangeSet.get('supplierName') || this.searchTerm?.length;\n    }\n    get productTableData() {\n      if (this.model.products.isRunning) return [];\n      return this.products.map(product => {\n        const productData = [{\n          colClass: 'text-left align-middle',\n          value: product.supplierName\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.sku\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.unit\n        }, {\n          colClass: 'text-right align-middle',\n          value: this.numberFormat.format(product.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          })\n        }];\n        if (this.isEditable) {\n          productData.unshift({\n            type: 'BUTTON',\n            textClass: 'btn btn-link',\n            value: product.description,\n            onClickButton: this.onClickProductName,\n            extraData: {\n              productId: product.id\n            }\n          });\n          productData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectProductIds.has(product.id),\n            onInputChange: this.onSelectProduct,\n            extraData: {\n              productId: product.id\n            }\n          });\n        } else {\n          productData.unshift({\n            colClass: 'align-middle',\n            value: product.description\n          });\n        }\n        return {\n          rowData: productData\n        };\n      });\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.entity, 'canManageProducts');\n    }\n    setSupplier(value) {\n      const supplierName = value?.supplierName;\n      this.supplier = supplierName;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isEditingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"pageIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"productChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.searchTerm;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"selectProductIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"selectedProductId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setPrice\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setPrice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickProductName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickProductName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onCreateProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onCreateProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setSupplier\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _service.inject)(), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('searchString', 'model.projects.value.@each.sortIndex'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor8, this);\n      _defineProperty(this, \"queryParams\", ['status']);\n      _defineProperty(this, \"status\", 'OPEN');\n      _defineProperty(this, \"attentionSafetyLogoSrc\", '/assets/images/logos/attention-safety-full-50259a0b942c7c43389c731ad3822e2f.svg');\n      _defineProperty(this, \"projectValidationMap\", {\n        name: (_key, val) => val.length > 3 || this.intl.t('validation.Name'),\n        startDate: (_key, val) => Boolean(val) || this.intl.t('validation.Start date'),\n        contractType: (_key, val) => Boolean(val) || this.intl.t('validation.Please select a contract type')\n      });\n      _defineProperty(this, \"contractType\", [{\n        value: 'COST_PLUS',\n        label: this.intl.t('shared.task.Cost plus')\n      }, {\n        value: 'FIXED_PRICE',\n        label: this.intl.t('shared.task.Fixed price')\n      }]);\n      _initializerDefineProperty(this, \"newProjectData\", _descriptor9, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor0, this);\n      _initializerDefineProperty(this, \"addressSuggestions\", _descriptor1, this);\n      _defineProperty(this, \"onAddressChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (val) {\n          if (!val.trim().length) {\n            this.addressSuggestions = [];\n            return;\n          }\n          try {\n            this.addressSuggestions = yield this.portalApiV2.authPost('/places/search', {\n              input: val\n            });\n          } catch {\n            this.addressSuggestions = [];\n          }\n        }\n      }), null, \"onAddressChange\", null));\n      _defineProperty(this, \"onProjectListUpdate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectList) {\n          try {\n            const body = [];\n            projectList.forEach((project, index) => {\n              body.push({\n                projectId: project.id,\n                sortIndex: index\n              });\n              project.sortIndex = index;\n            });\n            yield this.buildaPrice.updateProjectList(body);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.Something went wrong ordering projects'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"onProjectListUpdate\", null));\n      _defineProperty(this, \"createProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectChangeset) {\n          yield projectChangeset.validate();\n          if (projectChangeset.isInvalid) {\n            this.notifications.warning(this.intl.t('shared.notification.Please complete the project information'));\n            return;\n          }\n          try {\n            // commit the changes\n            projectChangeset.execute();\n            const project = this.store.createRecord('project', {\n              entity: this.sessionData.entity,\n              sortIndex: 0,\n              status: 'OPEN',\n              name: this.newProjectData.name,\n              projectReference: this.newProjectData.projectReference,\n              address: this.newProjectData.address,\n              lat: this.newProjectData.lat,\n              lng: this.newProjectData.lng,\n              description: this.newProjectData.description,\n              contractType: this.newProjectData.contractType,\n              startDate: this.newProjectData.startDate ? new Date(this.newProjectData.startDate) : new Date()\n            });\n            yield project.save();\n            const body = [];\n            this.model.projects.value.forEach(project => {\n              const sortIndex = project.sortIndex + 1;\n              body.push({\n                projectId: project.id,\n                sortIndex\n              });\n              project.sortIndex = sortIndex;\n            });\n            yield this.buildaPrice.updateProjectList(body);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.Successfully created new a project'));\n            if (this.newProjectData.openAndSave) {\n              this.closeNewProjectForm();\n              this.router.transitionTo('entity.builda-price.projects.project', project.id);\n              return;\n            }\n            (0, _object.set)(this, 'model.projects.value', [project, ...this.model.projects.value]);\n            this.closeNewProjectForm();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.somethingWentWrongWhileCreatingAProject'),\n              error\n            });\n          }\n        }\n      }), null, \"createProject\", null));\n    }\n    openNewProjectForm() {\n      this.addressSuggestions = [];\n      this.newProjectData = {\n        name: '',\n        address: '',\n        lat: null,\n        lng: null,\n        projectReference: '',\n        description: '',\n        startDate: '',\n        // being passed to \"date\" input\n        contractType: 'COST_PLUS',\n        openAndSave: false\n      };\n    }\n    get canManageProjects() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageProjects');\n    }\n    closeNewProjectForm() {\n      this.newProjectData = null;\n      this.addressSuggestions = [];\n    }\n    async setAddress(projectModel, suggestion) {\n      this.addressSuggestions = [];\n      if (!suggestion) return;\n      const {\n        address,\n        id\n      } = suggestion;\n      projectModel.address = address;\n      try {\n        const {\n          latitude,\n          longitude\n        } = await this.portalApiV2.authGet(`/places/location/${id}`);\n        projectModel.lat = latitude;\n        projectModel.lng = longitude;\n      } catch {\n        projectModel.lat = null;\n        projectModel.lng = null;\n      }\n    }\n    get filteredProjects() {\n      return this.model.projects.value?.filter(project => {\n        const matchString = ((project.name || '') + (project.address || '') + (project.status || '') + (project.projectReference || '')).toLowerCase();\n        return matchString.includes(this.searchString.toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"newProjectData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"addressSuggestions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"openNewProjectForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openNewProjectForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeNewProjectForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeNewProjectForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setAddress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setAddress\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filteredProjects\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredProjects\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/documents\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.attachments.isRunning;\n    }\n    get project() {\n      return this.model.project.last.value;\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.project, 'canManageFileStorage');\n    }\n    get attachments() {\n      // if you can edit the attachments use the relationship directly instead of the model result\n      if (this.isEditable) return this.model.project.last.value.myAttachments;\n      return this.model.attachments.last.value;\n    }\n    async onUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const attachmentResults = await Promise.all(attachments.map(a => a.save({\n          adapterOptions: {\n            meta: {\n              data: a.data\n            }\n          }\n        })));\n        await Promise.all(attachmentResults.map(async attachment => {\n          this.store.createRecord('link-attachment-to-project', {\n            project: this.project,\n            attachment\n          }).save();\n        }));\n        validationErrors.forEach(error => this.notifications.error(error));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUploadComplete\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/estimates\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/entity/builda-price/projects/project/estimates/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"portal/services/pricing\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service, _pricing) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"portal/services/pricing\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.estimates.last.value.[]', 'searchString'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"pricing\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor8, this);\n      _initializerDefineProperty(this, \"deletingEstimateData\", _descriptor9, this);\n      _initializerDefineProperty(this, \"newEstimateData\", _descriptor0, this);\n      _initializerDefineProperty(this, \"editingEstimateData\", _descriptor1, this);\n      _initializerDefineProperty(this, \"duplicateEstimateData\", _descriptor10, this);\n      _initializerDefineProperty(this, \"merchantList\", _descriptor11, this);\n      _initializerDefineProperty(this, \"importTemplateData\", _descriptor12, this);\n      _initializerDefineProperty(this, \"templates\", _descriptor13, this);\n      _initializerDefineProperty(this, \"selectedTemplates\", _descriptor14, this);\n      _initializerDefineProperty(this, \"importMaterialsData\", _descriptor15, this);\n      _initializerDefineProperty(this, \"quotes\", _descriptor16, this);\n      _initializerDefineProperty(this, \"selectedQuote\", _descriptor17, this);\n      _initializerDefineProperty(this, \"estimateForGenerateTasks\", _descriptor18, this);\n      _defineProperty(this, \"queryParams\", ['filter']);\n      _initializerDefineProperty(this, \"selectedUnlinkedEstimates\", _descriptor19, this);\n      _initializerDefineProperty(this, \"showUnlinkedEstimatesDialog\", _descriptor20, this);\n      _initializerDefineProperty(this, \"groupLabourAndMaterialBySubheading\", _descriptor21, this);\n      _initializerDefineProperty(this, \"groupSubcontractorsBySubheading\", _descriptor22, this);\n      _initializerDefineProperty(this, \"groupMiscBySubheading\", _descriptor23, this);\n      _initializerDefineProperty(this, \"groupMiscByHeading\", _descriptor24, this);\n      _initializerDefineProperty(this, \"groupMiscByItems\", _descriptor25, this);\n      _initializerDefineProperty(this, \"groupOverheadBySubheading\", _descriptor26, this);\n      _initializerDefineProperty(this, \"groupOverheadByHeading\", _descriptor27, this);\n      _initializerDefineProperty(this, \"groupOverheadByItems\", _descriptor28, this);\n      _defineProperty(this, \"status\", [{\n        value: 'DRAFT',\n        label: this.intl.t('common.Draft')\n      }, {\n        value: 'APPROVED',\n        label: this.intl.t('common.Approved')\n      }, {\n        value: 'REJECTED',\n        label: this.intl.t('common.Rejected')\n      }, {\n        value: 'IMPORTED',\n        label: this.intl.t('common.Imported')\n      }]);\n      _defineProperty(this, \"createNewEstimateValidationMap\", {\n        name: (_key, val) => val.length > 3 || this.intl.t('validation.Please provide a name for the estimate'),\n        merchant: (_key, val) => Boolean(val) || this.intl.t('validation.estimateMerchant')\n      });\n      _defineProperty(this, \"editEstimateValidationMap\", {\n        name: (_key, val) => val.length > 3 || this.intl.t('validation.Please provide a name for the estimate'),\n        status: (_key, val) => Boolean(val) || this.intl.t('validation.Please provide a status for the estimate')\n      });\n      _defineProperty(this, \"openNewEstimateForm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.newEstimateData = {\n            name: '',\n            merchant: '',\n            dateCreated: '',\n            openAndSave: false\n          };\n          try {\n            const {\n              merchantList\n            } = yield this.pricing.getMerchantList();\n            this.merchantList = merchantList.map(merchant => ({\n              value: `${merchant.id}_${merchant.cdeptname}`,\n              label: merchant.cdeptname\n            }));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.Something went wrong loading merchants'),\n              error\n            });\n          }\n        }\n      }), null, \"openNewEstimateForm\", null));\n      _defineProperty(this, \"createEstimate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (estimateChangeset) {\n          yield estimateChangeset.validate();\n          if (estimateChangeset.isInvalid) {\n            this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.Please complete the estimate information'));\n            return;\n          }\n          try {\n            estimateChangeset.execute();\n            const [pricingMerchantId, pricingMerchantName] = this.newEstimateData.merchant.split('_');\n            const result = yield this.pricing.createPrice({\n              name: this.newEstimateData.name,\n              address: this.model.project.last.value.address,\n              status: 'DRAFT',\n              projectId: this.model.project.last.value.id,\n              pricingMerchantId: pricingMerchantId,\n              pricingMerchantName: pricingMerchantName,\n              entityId: this.sessionData.entity.id\n            });\n            const newEstimate = yield this.store.findRecord('estimate', result.id);\n            this.model.estimates.last.value.pushObject(newEstimate);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Successfully created new estimate'));\n            if (this.newEstimateData.openAndSave) {\n              this.onEstimateRowClick(newEstimate.id);\n            }\n            this.newEstimateData = null;\n          } catch (error) {\n            let message = this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongCreatingTheEstimate');\n            if (error instanceof _pricing.PortalPricingError) {\n              message = error.message;\n            }\n            this.notifications.error({\n              message,\n              error\n            });\n          }\n        }\n      }), null, \"createEstimate\", null));\n      _defineProperty(this, \"editEstimate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (estimateChangeset) {\n          yield estimateChangeset.validate();\n          if (estimateChangeset.isInvalid) {\n            this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.Please complete the estimate information'));\n            return;\n          }\n          try {\n            estimateChangeset.execute();\n            yield this.pricing.editPrice({\n              name: this.editingEstimateData.name,\n              address: this.model.project.last.value.address,\n              status: this.editingEstimateData.status,\n              pricingJobId: this.editingEstimateData.pricingJobId,\n              estimateId: this.editingEstimateData.id,\n              projectId: this.model.project.last.value.id\n            });\n            yield this.store.findRecord('estimate', this.editingEstimateData.id);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Edited estimate successfully'));\n            this.editingEstimateData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongEditingTheEstimate'),\n              error\n            });\n          }\n        }\n      }), null, \"editEstimate\", null));\n      _defineProperty(this, \"duplicateEstimate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const result = yield this.pricing.duplicatePrice({\n              pricingJobId: this.duplicateEstimateData.pricingJobId,\n              estimateId: this.duplicateEstimateData.id,\n              name: this.duplicateEstimateData.name + '_copy',\n              attachToProject: Boolean(this.attachToProject)\n            });\n            if (this.attachToProject) {\n              const duplicatedEstimate = yield this.store.findRecord('estimate', result.id);\n              this.model.estimates.last.value.pushObject(duplicatedEstimate);\n            } else {\n              this.model.unlinkedEstimates.perform();\n            }\n            yield this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Duplicated estimate successfully'));\n            this.duplicateEstimateData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongDuplicatingTheEstimate'),\n              error\n            });\n          }\n        }\n      }), null, \"duplicateEstimate\", null));\n      _defineProperty(this, \"deleteEstimate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.pricing.deletePrice({\n              pricingJobId: this.deletingEstimateData.pricingJobId,\n              estimateId: this.deletingEstimateData.id,\n              projectId: this.model.project.last.value.id\n            });\n            this.store.unloadRecord(this.deletingEstimateData);\n            this.model.estimates.last.value.removeObject(this.deletingEstimateData);\n            yield this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Deleted estimate successfully'));\n            this.deletingEstimateData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongDeletingTheEstimate'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteEstimate\", null));\n      _defineProperty(this, \"getTemplateOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (estimate) {\n          try {\n            this.importTemplateData = estimate;\n            const status = yield this.pricing.getImportStatus({\n              pricingJobId: estimate.pricingJobId\n            });\n            if (!status.canImport) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.youCannotImportTemplatesForDuplicatedEstimates'));\n              this.importTemplateData = null;\n              return;\n            }\n            const result = yield this.pricing.getTemplates({\n              merchantId: estimate.pricingMerchantId\n            });\n            if (result) {\n              this.templates = result;\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileLoadingTemplates'),\n              error\n            });\n          }\n        }\n      }), null, \"getTemplateOptions\", null));\n      _defineProperty(this, \"importSelectedUnlinkedEstimates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!this.selectedUnlinkedEstimates) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.Please select a template'));\n              return;\n            }\n            yield Promise.all(this.selectedUnlinkedEstimates.map(async estimate => {\n              let status = estimate.status?.toUpperCase() || 'DRAFT';\n              if (estimate.status?.toUpperCase() === 'SUBMITTED') status = 'APPROVED';\n              if (estimate.status?.toUpperCase() === 'CLOSED') status = 'REJECTED';\n              const newEstimate = this.store.createRecord('estimate', {\n                pricingMerchantName: estimate.pricingMerchantName,\n                pricingMerchantId: estimate.pricingMerchantId,\n                name: estimate.name,\n                project: this.model.project.last.value,\n                entity: this.sessionData.entity,\n                status,\n                pricingJobId: estimate.pricingJobId\n              });\n              await newEstimate.save();\n              this.model.estimates.last.value.pushObject(newEstimate);\n            }));\n\n            // reload the not imported estimates\n            yield this.model.unlinkedEstimates.perform(this.model.project.last.value.id);\n            this.destroyImportUnlinkedEstimatesData();\n            yield this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Imported estimates successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileImportingEstimates'),\n              error\n            });\n          }\n        }\n      }), null, \"importSelectedUnlinkedEstimates\", null));\n      _defineProperty(this, \"importTemplates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!this.selectedTemplates) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.Please select a template'));\n              return;\n            }\n            const selectedTemplatesString = this.selectedTemplates.map(selectedItem => selectedItem.id).join(',');\n            yield this.pricing.addTemplates({\n              merchantId: this.importTemplateData.pricingMerchantId,\n              pricingJobId: this.importTemplateData.pricingJobId,\n              selectedTemplateIds: selectedTemplatesString\n            });\n            this.selectedTemplates = null;\n            this.importTemplateData = null;\n            yield this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Imported templates successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileImportingTemplates'),\n              error\n            });\n          }\n        }\n      }), null, \"importTemplates\", null));\n      _defineProperty(this, \"getPreloadedQuotes\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (estimate) {\n          try {\n            this.importMaterialsData = estimate;\n            const status = yield this.pricing.getImportStatus({\n              pricingJobId: estimate.pricingJobId\n            });\n            if (!status.canImport) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.youCannotImportMaterialsForDuplicatedEstimates'));\n              this.importMaterialsData = null;\n              return;\n            }\n            const result = yield this.pricing.getPreloadedQuotes({\n              pricingJobId: this.importMaterialsData.pricingJobId\n            });\n            if (result) {\n              this.quotes = result;\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileLoadingQuotes'),\n              error\n            });\n          }\n        }\n      }), null, \"getPreloadedQuotes\", null));\n      _defineProperty(this, \"importMaterials\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!this.selectedQuote) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.estimates.pleaseSelectExistingQuoteOrUploadANewFile'));\n              return;\n            }\n\n            // make sure the file is less that 2MB, 2000000 is in bytes\n            if (this.selectedQuote.file) {\n              if (this.selectedQuote.file.size > 2000000) {\n                this.notifications.error(this.intl.t('entity.builda-price.projects.project.estimates.Please upload a file less than 2MB'));\n                return;\n              }\n            }\n\n            //check the file has been uploaded, else proceed with preloaded quotes\n            if (this.selectedQuote.file) {\n              const base64File = yield this.fileToBase64(this.selectedQuote.file);\n              yield this.pricing.importMaterialsFromFile({\n                pricingJobId: this.importMaterialsData.pricingJobId,\n                pricingMerchantId: this.importMaterialsData.pricingMerchantId,\n                pricingMerchantName: this.importMaterialsData.pricingMerchantName.toUpperCase(),\n                jobFile: base64File,\n                jobFileName: this.selectedQuote.file.name,\n                jobFileType: this.selectedQuote.file.type\n              });\n            } else {\n              yield this.pricing.importMaterialsFromQuote({\n                pricingJobId: this.importMaterialsData.pricingJobId,\n                quoteId: this.selectedQuote.id\n              });\n            }\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Imported materials successfully'));\n            this.destroyImportMaterialsModal();\n          } catch (error) {\n            this.destroyImportMaterialsModal();\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileImportingMaterials'),\n              error\n            });\n          }\n        }\n      }), null, \"importMaterials\", null));\n      _defineProperty(this, \"generateTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.pricing.createTasksFromEstimate({\n              entityId: this.sessionData.entity.id,\n              pricingJobId: this.estimateForGenerateTasks.pricingJobId,\n              projectId: this.model.project.last.value.id,\n              supplier: this.estimateForGenerateTasks.pricingMerchantName,\n              groupLabourAndMaterialBySubheading: this.groupLabourAndMaterialBySubheading,\n              groupSubcontractorsBySubheading: this.groupSubcontractorsBySubheading,\n              groupMiscByHeading: this.groupMiscByHeading,\n              groupMiscBySubheading: this.groupMiscBySubheading,\n              groupOverheadBySubheading: this.groupOverheadBySubheading,\n              groupOverheadByHeading: this.groupOverheadByHeading\n            });\n            this.estimateForGenerateTasks.status = 'IMPORTED';\n            this.estimateForGenerateTasks.save();\n\n            // reference to the current draft project budget etc may have changed - reload the project\n            yield this.model.project.last.value.reload();\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.estimates.Generated tasks successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.estimates.somethingWentWrongWhileGeneratingTasks'),\n              error\n            });\n          } finally {\n            this.closeGenerateTasks();\n          }\n        }\n      }), null, \"generateTasks\", null));\n    }\n    get deleteMessages() {\n      return [this.intl.t('entity.builda-price.projects.project.estimates.Do you want to delete this estimate')];\n    }\n    get filteredEstimates() {\n      return this.model?.estimates?.last?.value?.filter(estimate => {\n        const matchString = `${estimate.name}${estimate.status}`.toLowerCase();\n        return matchString.includes(this.searchString.toLowerCase());\n      }) || [];\n    }\n    get supportedFileFormats() {\n      return this.importMaterialsData?.pricingMerchantName.toLowerCase() === 'carters' ? '.csv, .xlsx' : '.csv';\n    }\n    noop(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    onEstimateRowClick(estimateId) {\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageEstimates')) {\n        this.router.transitionTo('entity.builda-price.projects.project.estimates.estimate', estimateId);\n      }\n    }\n    openEditEstimateForm(estimate) {\n      this.editingEstimateData = {\n        name: estimate.name,\n        status: estimate.status,\n        pricingJobId: estimate.pricingJobId,\n        id: estimate.id,\n        estimate: estimate\n      };\n    }\n    closeDeleteModal(estimate) {\n      this.deletingEstimateData = null;\n      this.openEditEstimateForm(estimate);\n    }\n    openDeleteModal(estimate) {\n      this.deletingEstimateData = estimate;\n      this.editingEstimateData = null;\n    }\n    onFileUpload(file) {\n      this.selectedQuote = {\n        id: '',\n        quoteNumber: file.name,\n        dateCreated: null,\n        file\n      };\n\n      // close the power-select\n      const element = document.getElementById('labelForImportMaterials');\n      element.click();\n    }\n    async fileToBase64(file) {\n      return new Promise((resolve, reject) => {\n        const reader = new FileReader();\n        reader.readAsDataURL(file);\n        reader.onload = () => resolve(reader.result.split(',').pop());\n        reader.onerror = e => reject(e);\n      });\n    }\n    destroyImportMaterialsModal() {\n      this.importMaterialsData = null;\n      this.selectedQuote = null;\n    }\n    destroyImportUnlinkedEstimatesData() {\n      this.selectedUnlinkedEstimates = null;\n      this.showUnlinkedEstimatesDialog = null;\n    }\n    closeGenerateTasks() {\n      this.estimateForGenerateTasks = false;\n      this.groupLabourAndMaterialBySubheading = false;\n      this.groupSubcontractorsBySubheading = false;\n      this.groupMiscBySubheading = false;\n      this.groupMiscByHeading = false;\n      this.groupMiscByItems = true;\n      this.groupOverheadBySubheading = false;\n      this.groupOverheadByHeading = false;\n      this.groupOverheadByItems = true;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"pricing\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"deletingEstimateData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"newEstimateData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"editingEstimateData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"duplicateEstimateData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"merchantList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"importTemplateData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"templates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"selectedTemplates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"importMaterialsData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"quotes\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"selectedQuote\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"estimateForGenerateTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"selectedUnlinkedEstimates\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"showUnlinkedEstimatesDialog\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"groupLabourAndMaterialBySubheading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"groupSubcontractorsBySubheading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"groupMiscBySubheading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"groupMiscByHeading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, \"groupMiscByItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, \"groupOverheadBySubheading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, \"groupOverheadByHeading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, \"groupOverheadByItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredEstimates\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredEstimates\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"noop\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onEstimateRowClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onEstimateRowClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openEditEstimateForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openEditEstimateForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeDeleteModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeDeleteModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openDeleteModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openDeleteModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onFileUpload\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onFileUpload\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"destroyImportMaterialsModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"destroyImportMaterialsModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"destroyImportUnlinkedEstimatesData\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"destroyImportUnlinkedEstimatesData\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeGenerateTasks\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeGenerateTasks\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/financials\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"creatingBudgetVersion\", _descriptor5, this);\n      _initializerDefineProperty(this, \"creatingQuoteVersion\", _descriptor6, this);\n      _defineProperty(this, \"createBudgetVersion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.project.last.value.commit({\n              commitBudget: true,\n              commitQuote: false,\n              commitProgress: false,\n              commitScheduling: false\n            });\n            yield this.model.project.last.value.loadBudget();\n            this.creatingBudgetVersion = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.financials.somethingWentWrongCreatingABudgetVersion'),\n              error\n            });\n          }\n        }\n      }), null, \"createBudgetVersion\", null));\n      _defineProperty(this, \"createQuoteVersion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.project.last.value.commit({\n              commitBudget: false,\n              commitQuote: true,\n              commitProgress: false,\n              commitScheduling: false\n            });\n            yield this.model.project.last.value.loadQuote();\n            this.creatingQuoteVersion = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.financials.somethingWentWrongCreatingAQuoteVersion'),\n              error\n            });\n          }\n        }\n      }), null, \"createQuoteVersion\", null));\n    }\n    get isLoadingBudget() {\n      return this.model.loadBudget.isRunning || this.createBudgetVersion.isRunning;\n    }\n    get isLoadingQuote() {\n      return this.model.loadQuote.isRunning || this.createQuoteVersion.isRunning;\n    }\n    get canManageBudgetVersions() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageBudgetVersions');\n    }\n    get canManageQuoteVersions() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageQuoteVersions');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"creatingBudgetVersion\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"creatingQuoteVersion\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/health-and-safety\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/entity/builda-price/projects/project/people\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get canManageProject() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProjects');\n    }\n    get tabs() {\n      const tabsArray = [];\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canUseUsers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Users'),\n          route: 'entity.builda-price.projects.project.people.users',\n          icon: 'user'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canUseClientPortal', 'canUseUsers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Clients'),\n          route: 'entity.builda-price.projects.project.people.clients',\n          icon: 'user-tie'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canUseSubcontractors')) {\n        tabsArray.push({\n          name: this.intl.t('common.Subcontractors'),\n          route: 'entity.builda-price.projects.project.people.subcontractors',\n          icon: 'hard-hat'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canUseWorkers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Workers'),\n          route: 'entity.builda-price.projects.project.people.workers',\n          icon: 'users'\n        });\n      }\n      return tabsArray;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"portal/routes/entity/builda-price/projects/project/people/clients/client\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _client) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewQuotesAttributes = _exports.canViewProgressAttributes = _exports.canViewFileStorageAttributes = _exports.canViewBudgetsAttributes = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/routes/entity/builda-price/projects/project/people/clients/client\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewTaskBudgets'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewTaskProgress'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewTaskQuotes'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.client.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByACompanyPermission'));\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor9, this);\n      _defineProperty(this, \"deleteClient\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.people.clients.client.removeClientFromProjectConfirm'))) return;\n            // remove all the project and task permissions\n            const taskIds = this.model.project.last.value.hasMany('tasks').ids();\n            const [projectAttributes, taskAttributes] = yield Promise.all([this.store.simpleQuery('user-project-attribute', {\n              user: this.model.client.last.value.id,\n              project: this.model.project.last.value.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.model.client.last.value.id\n            }).then(utas => utas.toArray().filter(uta => taskIds.includes(uta.belongsTo('task').id())))]);\n            yield Promise.all([...projectAttributes.map(pa => pa.destroyRecord()), ...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.clients`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.clients.client.Removed client from project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the client'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteClient\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canViewBudgetFinancialReports) {\n              _client.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _client.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _client.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _client.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _client.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _client.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _client.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _client.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewTasks) {\n              _client.canViewTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n\n              // if can view task is selected, we need to delete all visibility checks of tasks\n              changeset.set('taskAttributes', []);\n            } else {\n              _client.canViewTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _client.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewClientReports) {\n              _client.canViewClientReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewClientReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.taskAttributes) {\n              const originalIds = (changeset._content.taskAttributes || []).map(ta => ta.attr.id);\n              const newIds = (changeset.taskAttributes || []).map(ta => ta.attr.id);\n              const toAdd = newIds.filter(id => !originalIds.includes(id));\n              const toRemove = originalIds.filter(id => !newIds.includes(id));\n              toAdd.forEach(attributesToAdd.add, attributesToAdd);\n              toRemove.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributesForClients([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.client.isRunning || this.model.permissionsChangeset.isRunning || this.model.taskVisibilityOptions.isRunning || this.model.attributes.isRunning;\n    }\n    get permissionsChangeset() {\n      // The template reads the derived counts before the task has a value, so\n      // degrade to an empty set of permissions rather than throwing.\n      return this.model.permissionsChangeset.last?.value ?? {};\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Cost to complete')]: [this.permissionsChangeset.canViewClientReports || this.permissionsChangeset.canViewQuoteReports && this.permissionsChangeset.canViewProgressReports && this.permissionsChangeset.canViewChargeupReports && this.permissionsChangeset.canViewInvoicingReports]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.clients`,\n        pageTitle: this.intl.t('common.Clients')\n      }, {\n        route: `${this.model.basePath}.clients`,\n        model: this.model.client.last.value.id,\n        pageTitle: this.model.client.last.value.fullName\n      }];\n      return paths;\n    }\n    get projectPermissionsCount() {\n      return [this.permissionsChangeset.canViewTasks].filter(attribute => attribute).length + (this.permissionsChangeset.taskAttributes?.length || 0);\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get canSeeTaskVisibilityChecks() {\n      return this.permissionsChangeset.canViewTasks;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports, this.permissionsChangeset.canViewClientReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    async handleAttributesForClients(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: this.model.client.last.value.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      // add and remove entity attribute from the user\n      await this.store.findAll('user-attribute');\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user: this.model.client.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/clients/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToProjectAttributes = ['canViewProjects', 'hasClientRole'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredClients', 'model.clients.last.value.projectClients', 'searchString.length'), _dec2 = (0, _object.computed)('model.clients.last.value.unassignedClients'), _dec3 = (0, _object.computed)('model.clients.last.value.projectClients'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isAddingUserToProject\", _descriptor7, this);\n      _initializerDefineProperty(this, \"clientToAddToProject\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isAddingClientToProject\", _descriptor9, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor0, this);\n      _defineProperty(this, \"addClientToProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForClients(this.clientToAddToProject, addToProjectAttributes, []);\n            yield Promise.all([this.model.clients.perform(this.model.project)]);\n            this.isAddingClientToProject = false;\n            this.clientToAddToProject = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.clients.Added client to project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding client'),\n              error\n            });\n          }\n        }\n      }), null, \"addClientToProject\", null));\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.clients.isRunning;\n    }\n    get filteredClients() {\n      const result = this.model.clients.last.value.projectClients?.filter(client => {\n        const matchString = `${client.firstName}${client.lastName}${client.email}${client.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get unassignedClients() {\n      if (!this.model.clients.last.value) return [];\n      return this.model.clients.last.value.unassignedClients;\n    }\n    get projectClients() {\n      if (!this.model.clients.last.value) return [];\n      return this.model.clients.last.value.projectClients;\n    }\n    async handleAttributesForClients(client, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: client.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user: client,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingUserToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"clientToAddToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingClientToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredClients\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredClients\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedClients\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedClients\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"projectClients\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectClients\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/subcontractors/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToProjectAttributes = ['canViewProjects', 'hasSubcontractorRole'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredSubcontractors', 'model.subcontractors.last.value.projectSubcontractors', 'searchString.length'), _dec2 = (0, _object.computed)('model.subcontractors.last.value.unassignedSubcontractors'), _dec3 = (0, _object.computed)('model.subcontractors.last.value.projectSubcontractors'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isAddingSubcontractorToProject\", _descriptor7, this);\n      _initializerDefineProperty(this, \"subcontractorToAddToProject\", _descriptor8, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor9, this);\n      _defineProperty(this, \"addSubcontractorToProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForSubcontractor(this.subcontractorToAddToProject, addToProjectAttributes, []);\n            yield Promise.all([this.model.subcontractors.perform(this.model.project)]);\n            this.isAddingSubcontractorToProject = false;\n            this.subcontractorToAddToProject = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.subcontractors.Added subcontractor to project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.people.subcontractors.somethingWentWrongAddingSubcontractor'),\n              error\n            });\n          }\n        }\n      }), null, \"addSubcontractorToProject\", null));\n    }\n    get filteredSubcontractors() {\n      const result = this.model.subcontractors.last.value.projectSubcontractors?.filter(subcontractor => {\n        const matchString = `${subcontractor.firstName}${subcontractor.lastName}${subcontractor.email}${subcontractor.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.subcontractors.isRunning;\n    }\n    get unassignedSubcontractors() {\n      if (!this.model.subcontractors.last.value) return [];\n      return this.model.subcontractors.last.value.unassignedSubcontractors;\n    }\n    get projectSubcontractors() {\n      if (!this.model.subcontractors.last.value) return [];\n      return this.model.subcontractors.last.value.projectSubcontractors;\n    }\n    async handleAttributesForSubcontractor(subcontractor, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: subcontractor.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user: subcontractor,\n          attribute\n        }).save();\n      }))]);\n    }\n    get userIsYou() {\n      return this._user === this.sessionData.user;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingSubcontractorToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorToAddToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredSubcontractors\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredSubcontractors\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedSubcontractors\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedSubcontractors\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"projectSubcontractors\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectSubcontractors\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor\", \"portal/routes/entity/settings/people/subcontractors/subcontractor\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _subcontractor, _subcontractor2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor\",0,\"portal/routes/entity/settings/people/subcontractors/subcontractor\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.subcontractor.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_healthAndSafetyPermissionsVisible\", _descriptor1, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByACompanyPermission'));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canManageBudgets) {\n              _subcontractor.canManageBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageEstimates) {\n              _subcontractor.canManageEstimatesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageEstimatesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProducts) {\n              _subcontractor.canManageProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageFileStorage) {\n              _subcontractor.canManageFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProjects) {\n              _subcontractor.canManageProjectsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageProjectsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageQuotes) {\n              _subcontractor.canManageQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageSchedulingReports) {\n              _subcontractor.canManageSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTasks) {\n              _subcontractor.canManageTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTimesheets) {\n              _subcontractor.canManageTimesheetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageTimesheetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              _subcontractor.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _subcontractor.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgets) {\n              _subcontractor.canViewBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgress) {\n              _subcontractor.canViewProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProgress) {\n              _subcontractor.canManageProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _subcontractor.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _subcontractor.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _subcontractor.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProducts) {\n              _subcontractor.canViewProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewFileStorage) {\n              _subcontractor.canViewFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _subcontractor.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _subcontractor.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuotes) {\n              _subcontractor.canViewQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _subcontractor.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewTasks) {\n              _subcontractor.canViewTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canCreateHealthAndSafety) {\n              _subcontractor.canCreateHealthAndSafetyAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canCreateHealthAndSafetyAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageHealthAndSafety) {\n              _subcontractor.canManageHealthAndSafetyAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageHealthAndSafetyAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _subcontractor.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributesForSubcontractor([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.people.subcontractors.subcontractor.removeSubcontractorFromProjectConfirm'))) return;\n\n            // remove all the project and task permissions\n            const taskIds = this.model.project.last.value.hasMany('tasks').ids();\n            const [projectAttributes, taskAttributes] = yield Promise.all([this.store.simpleQuery('user-project-attribute', {\n              user: this.model.subcontractor.last.value.id,\n              project: this.model.project.last.value.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.model.subcontractor.last.value.id\n            }).then(utas => utas.toArray().filter(uta => taskIds.includes(uta.belongsTo('task').id())))]);\n            yield Promise.all([...projectAttributes.map(pa => pa.destroyRecord()), ...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.subcontractors`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.subcontractors.subcontractor.Removed subcontractor from project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.people.subcontractors.subcontractor.somethingWentWrongRemovingTheSubcontractor'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.subcontractor.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Costs')]: [(this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports) && (this.entityCanViewBills || this.entityCanManageBills) && (this.entityCanManageTimesheets || this.entityCanViewTimesheets || this.permissionsChangeset.canManageTimesheets)],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.entityCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.entityCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.entityCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        [this.intl.t('common.Cost to complete')]: [this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.entityCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.subcontractors`,\n        pageTitle: this.intl.t('common.Subcontractors')\n      }, {\n        route: `${this.model.basePath}.subcontractors`,\n        model: this.model.subcontractor.last.value.id,\n        pageTitle: this.model.subcontractor.last.value.fullName\n      }];\n      return paths;\n    }\n    get projectPermissionsCount() {\n      return [this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageEstimates, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageProjects, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canViewProgress, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewTasks].filter(attribute => attribute).length;\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount > 0;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canManageSchedulingReports, this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      return [this.permissionsChangeset.canManageTimesheets].filter(attribute => attribute).length;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get healthAndSafetyPermissionsCount() {\n      return [this.permissionsChangeset.canCreateHealthAndSafety, this.permissionsChangeset.canManageHealthAndSafety].filter(attribute => attribute).length;\n    }\n    get healthAndSafetyPermissionsVisible() {\n      if (this._healthAndSafetyPermissionsVisible != null) return this._healthAndSafetyPermissionsVisible;\n      return this.healthAndSafetyPermissionsCount > 0;\n    }\n    set healthAndSafetyPermissionsVisible(value) {\n      this._healthAndSafetyPermissionsVisible = value;\n    }\n    get userIsEntityAdmin() {\n      return this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, 'canManageEntity');\n    }\n    get entityCanManageTimesheets() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageTimesheetsAttributes);\n    }\n    get entityCanViewTimesheets() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewTimesheetsAttributes);\n    }\n    get entityCanViewBills() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewBillsAttributes);\n    }\n    get entityCanManageBills() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageBillsAttributes);\n    }\n    get entityCanManageProjects() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageProjectsAttributes);\n    }\n    get entityCanViewTasks() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewTasksAttributes);\n    }\n    get entityCanManageTasks() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageTasksAttributes);\n    }\n    get entityCanViewBudgets() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewBudgetsAttributes);\n    }\n    get entityCanViewProgress() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewProgressAttributes);\n    }\n    get entityCanManageProgress() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageProgressAttributes);\n    }\n    get entityCanManageBudgets() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageBudgetsAttributes);\n    }\n    get entityCanViewQuotes() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewQuotesAttributes);\n    }\n    get entityCanManageQuotes() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageQuotesAttributes);\n    }\n    get entityCanViewInvoicingReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewInvoicingReportsAttributes);\n    }\n    get entityCanViewProducts() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewProductsAttributes);\n    }\n    get entityCanManageProducts() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageProductsAttributes);\n    }\n    get entityCanViewFileStorage() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewFileStorageAttributes);\n    }\n    get entityCanManageFileStorage() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageFileStorageAttributes);\n    }\n    get entityCanViewBudgetReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewBudgetReportsAttributes);\n    }\n    get entityCanViewBudgetLabourHourReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewBudgetLabourHourReportsAttributes);\n    }\n    get entityCanViewQuoteReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewQuoteReportsAttributes);\n    }\n    get entityCanViewCostReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewCostReportsAttributes);\n    }\n    get entityCanViewCostLabourHourReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewCostLabourHourReportsAttributes);\n    }\n    get entityCanViewChargeupReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewChargeupReportsAttributes);\n    }\n    get entityCanViewProgressReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewProgressReportsAttributes);\n    }\n    get entityCanViewSchedulingReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canViewSchedulingReportsAttributes);\n    }\n    get entityCanManageSchedulingReports() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageSchedulingReportsAttributes);\n    }\n    get entityCanManageEstimates() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageEstimatesAttributes);\n    }\n    get entityCanCreateHealthAndSafety() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canCreateHealthAndSafetyAttributes);\n    }\n    get entityCanManageHealthAndSafety() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor2.canManageHealthAndSafetyAttributes);\n    }\n    async handleAttributesForSubcontractor(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: this.model.subcontractor.last.value.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user: this.model.subcontractor.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_healthAndSafetyPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/users/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToProjectAttributes = ['canViewProjects'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredUsers', 'model.users.last.value.projectUsers', 'searchString.length'), _dec2 = (0, _object.computed)('model.users.last.value.unassignedUsers'), _dec3 = (0, _object.computed)('model.users.last.value.projectUsers'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isAddingUserToProject\", _descriptor7, this);\n      _initializerDefineProperty(this, \"userToAddToProject\", _descriptor8, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor9, this);\n      _defineProperty(this, \"addUserToProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForUser(this.userToAddToProject, addToProjectAttributes, []);\n            yield Promise.all([this.model.users.perform(this.model.project)]);\n            this.isAddingUserToProject = false;\n            this.userToAddToProject = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.users.Added user to project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding user'),\n              error\n            });\n          }\n        }\n      }), null, \"addUserToProject\", null));\n    }\n    get filteredUsers() {\n      const result = this.model.users.last.value.projectUsers?.filter(user => {\n        const matchString = `${user.firstName}${user.lastName}${user.email}${user.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.users.isRunning;\n    }\n    get unassignedUsers() {\n      if (!this.model.users.last.value) return [];\n      return this.model.users.last.value.unassignedUsers;\n    }\n    get projectUsers() {\n      if (!this.model.users.last.value) return [];\n      return this.model.users.last.value.projectUsers;\n    }\n    async handleAttributesForUser(user, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: user.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingUserToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"userToAddToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredUsers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredUsers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedUsers\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedUsers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"projectUsers\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectUsers\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"portal/routes/entity/builda-price/projects/project/people/users/user\", \"portal/routes/entity/settings/people/users/user\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _user, _user2, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"portal/routes/entity/builda-price/projects/project/people/users/user\",0,\"portal/routes/entity/settings/people/users/user\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_healthAndSafetyPermissionsVisible\", _descriptor1, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByACompanyPermission'));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.people.users.user.removeUserFromProjectConfirm'))) return;\n\n            // remove all the project and task permissions\n            const taskIds = this.model.project.last.value.hasMany('tasks').ids();\n            const [projectAttributes, taskAttributes] = yield Promise.all([this.store.simpleQuery('user-project-attribute', {\n              user: this.model.user.last.value.id,\n              project: this.model.project.last.value.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.model.user.last.value.id\n              // task: { $in: taskIds }, // this would be better but the request could get too large\n            }).then(utas => utas.toArray().filter(uta => taskIds.includes(uta.belongsTo('task').id())))]);\n            yield Promise.all([...projectAttributes.map(pa => pa.destroyRecord()), ...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.users`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.users.user.Removed user from project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the user'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canManageBudgets) {\n              _user.canManageBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageEstimates) {\n              _user.canManageEstimatesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageEstimatesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProducts) {\n              _user.canManageProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageFileStorage) {\n              _user.canManageFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProjects) {\n              _user.canManageProjectsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageProjectsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageQuotes) {\n              _user.canManageQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageSchedulingReports) {\n              _user.canManageSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewAccessReports) {\n              _user.canViewAccessReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewAccessReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTasks) {\n              _user.canManageTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTimesheets) {\n              _user.canManageTimesheetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageTimesheetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              _user.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _user.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgets) {\n              _user.canViewBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgress) {\n              _user.canViewProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProgress) {\n              _user.canManageProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _user.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _user.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _user.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProducts) {\n              _user.canViewProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewFileStorage) {\n              _user.canViewFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _user.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _user.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuotes) {\n              _user.canViewQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _user.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewTasks) {\n              _user.canViewTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canCreateHealthAndSafety) {\n              _user.canCreateHealthAndSafetyAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canCreateHealthAndSafetyAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageHealthAndSafety) {\n              _user.canManageHealthAndSafetyAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageHealthAndSafetyAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoices) {\n              _user.canViewInvoicesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewInvoicesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageInvoices) {\n              _user.canManageInvoicesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageInvoicesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canApproveInvoices) {\n              _user.canApproveInvoicesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canApproveInvoicesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewStagePayments) {\n              _user.canViewStagePaymentsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewStagePaymentsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageStagePayments) {\n              _user.canManageStagePaymentsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageStagePaymentsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewPurchaseOrders) {\n              _user.canViewPurchaseOrdersAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewPurchaseOrdersAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManagePurchaseOrders) {\n              _user.canManagePurchaseOrdersAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManagePurchaseOrdersAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canApprovePurchaseOrders) {\n              _user.canApprovePurchaseOrdersAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canApprovePurchaseOrdersAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _user.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributes([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.users`,\n        pageTitle: this.intl.t('common.Users')\n      }, {\n        route: `${this.model.basePath}.users`,\n        model: this.model.user.last.value.id,\n        pageTitle: this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Costs')]: [(this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports) && (this.entityCanViewBills || this.entityCanManageBills) && (this.entityCanManageTimesheets || this.entityCanViewTimesheets || this.permissionsChangeset.canManageTimesheets)],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.entityCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.entityCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.entityCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.entityCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.entityCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        [this.intl.t('common.Cost to complete')]: [this.entityCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.entityCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.entityCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.entityCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        ['Access']: [this.entityCanViewAccessReports || this.permissionsChangeset.canViewAccessReports]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get projectPermissionsCount() {\n      return [this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageEstimates, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageProjects, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewProgress, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewTasks].filter(attribute => attribute).length;\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount > 0;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canManageSchedulingReports, this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      return [this.permissionsChangeset.canManageTimesheets, this.permissionsChangeset.canViewInvoices, this.permissionsChangeset.canManageInvoices, this.permissionsChangeset.canApproveInvoices, this.permissionsChangeset.canViewPurchaseOrders, this.permissionsChangeset.canManagePurchaseOrders, this.permissionsChangeset.canApprovePurchaseOrders, this.permissionsChangeset.canViewStagePayments, this.permissionsChangeset.canManageStagePayments].filter(attribute => attribute).length;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports, this.permissionsChangeset.canViewAccessReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get healthAndSafetyPermissionsCount() {\n      return [this.permissionsChangeset.canCreateHealthAndSafety, this.permissionsChangeset.canManageHealthAndSafety].filter(attribute => attribute).length;\n    }\n    get healthAndSafetyPermissionsVisible() {\n      if (this._healthAndSafetyPermissionsVisible != null) return this._healthAndSafetyPermissionsVisible;\n      return this.healthAndSafetyPermissionsCount > 0;\n    }\n    set healthAndSafetyPermissionsVisible(value) {\n      this._healthAndSafetyPermissionsVisible = value;\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.user.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get userIsEntityAdmin() {\n      return this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, 'canManageEntity');\n    }\n    get entityCanManageTimesheets() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageTimesheetsAttributes);\n    }\n    get entityCanViewTimesheets() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewTimesheetsAttributes);\n    }\n    get entityCanViewBills() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewBillsAttributes);\n    }\n    get entityCanManageBills() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageBillsAttributes);\n    }\n    get entityCanManageProjects() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageProjectsAttributes);\n    }\n    get entityCanViewTasks() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewTasksAttributes);\n    }\n    get entityCanManageTasks() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageTasksAttributes);\n    }\n    get entityCanViewBudgets() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewBudgetsAttributes);\n    }\n    get entityCanViewProgress() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewProgressAttributes);\n    }\n    get entityCanManageProgress() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageProgressAttributes);\n    }\n    get entityCanManageBudgets() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageBudgetsAttributes);\n    }\n    get entityCanViewQuotes() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewQuotesAttributes);\n    }\n    get entityCanManageQuotes() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageQuotesAttributes);\n    }\n    get entityCanViewProducts() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewProductsAttributes);\n    }\n    get entityCanManageProducts() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageProductsAttributes);\n    }\n    get entityCanViewFileStorage() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewFileStorageAttributes);\n    }\n    get entityCanManageFileStorage() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageFileStorageAttributes);\n    }\n    get entityCanViewBudgetReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewBudgetReportsAttributes);\n    }\n    get entityCanViewBudgetLabourHourReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewBudgetLabourHourReportsAttributes);\n    }\n    get entityCanViewQuoteReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewQuoteReportsAttributes);\n    }\n    get entityCanViewInvoicingReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewInvoicingReportsAttributes);\n    }\n    get entityCanViewCostReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewCostReportsAttributes);\n    }\n    get entityCanViewCostLabourHourReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewCostLabourHourReportsAttributes);\n    }\n    get entityCanViewChargeupReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewChargeupReportsAttributes);\n    }\n    get entityCanViewProgressReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewProgressReportsAttributes);\n    }\n    get entityCanViewSchedulingReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewSchedulingReportsAttributes);\n    }\n    get entityCanManageSchedulingReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageSchedulingReportsAttributes);\n    }\n    get entityCanViewAccessReports() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewAccessReportsAttributes);\n    }\n    get entityCanManageEstimates() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageEstimatesAttributes);\n    }\n    get entityCanCreateHealthAndSafety() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canCreateHealthAndSafetyAttributes);\n    }\n    get entityCanManageHealthAndSafety() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageHealthAndSafetyAttributes);\n    }\n    get entityCanViewInvoices() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewInvoicesAttributes);\n    }\n    get entityCanViewStagePayments() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewStagePaymentsAttributes);\n    }\n    get entityCanManageInvoices() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageInvoicesAttributes);\n    }\n    get entityCanManageStagePayments() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManageStagePaymentsAttributes);\n    }\n    get entityCanApproveInvoices() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canApproveInvoicesAttributes);\n    }\n    get entityCanViewPurchaseOrders() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canViewPurchaseOrdersAttributes);\n    }\n    get entityCanManagePurchaseOrders() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canManagePurchaseOrdersAttributes);\n    }\n    get entityCanApprovePurchaseOrders() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user2.canApprovePurchaseOrdersAttributes);\n    }\n    async handleAttributes(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-project-attribute', {\n        user: this.model.user.last.value.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          user: this.model.user.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_healthAndSafetyPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"lodash\", \"portal/routes/entity/builda-price/projects/project/people/workers\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _lodash, _workers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"lodash\",0,\"portal/routes/entity/builda-price/projects/project/people/workers\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredWorkers', 'model.workers.last.value.projectWorkers', 'searchString.length'), _dec2 = (0, _object.computed)('model.workers.last.value.projectWorkers'), _dec3 = (0, _object.computed)('model.workers.last.value.unassignedWorkers'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_worker\", _descriptor7, this);\n      _initializerDefineProperty(this, \"permissionsChangeset\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isAddingWorkerToProject\", _descriptor9, this);\n      _initializerDefineProperty(this, \"workerToAddToProject\", _descriptor0, this);\n      _initializerDefineProperty(this, \"workerPermissionModal\", _descriptor1, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor10, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByACompanyPermission'));\n      _initializerDefineProperty(this, \"_workersToAddToProject\", _descriptor11, this);\n      _defineProperty(this, \"addWorkerToProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleWorkerProjectAttributes(this.workerToAddToProject, _workers.workerAttributes, []);\n            yield Promise.all([this.model.workers.perform(this.model.project)]);\n            this.isAddingWorkerToProject = false;\n            this.workerToAddToProject = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.workers.Added worker to project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding worker'),\n              error\n            });\n          }\n        }\n      }), null, \"addWorkerToProject\", null));\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.workers.isRunning;\n    }\n    get filteredWorkers() {\n      const result = this.model.workers.last.value.projectWorkers?.filter(worker => {\n        const matchString = `${worker.firstName}${worker.lastName}${worker.email}${worker.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get projectWorkers() {\n      if (!this.model.workers.last.value) return [];\n      return this.model.workers.last.value.projectWorkers;\n    }\n    get unassignedWorkers() {\n      if (!this.model.workers.last.value) return [];\n      return this.model.workers.last.value.unassignedWorkers;\n    }\n    get workersToAddToProject() {\n      if (this._workersToAddToProject) return this._workersToAddToProject;\n      return this.projectWorkers;\n    }\n    set workersToAddToProject(value) {\n      this._workersToAddToProject = value;\n    }\n    get workersToRemoveFromProject() {\n      return _lodash.default.difference(this.projectWorkers, this.workersToAddToProject);\n    }\n    get canManageProject() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProjects');\n    }\n    get canManageWorkers() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageWorkers');\n    }\n    async handleWorkerProjectAttributes(worker, projectAttributesToAdd, _projectAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const projectAttributesToRemove = _projectAttributesToRemove.filter(ar => !projectAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-project-attribute', {\n        worker: worker.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(projectAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(projectAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          worker,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_worker\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"permissionsChangeset\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingWorkerToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"workerToAddToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"workerPermissionModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredWorkers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredWorkers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"projectWorkers\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectWorkers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedWorkers\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedWorkers\"), _class2.prototype), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"_workersToAddToProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"portal/routes/entity/builda-price/projects/project/people/workers/worker\", \"portal/routes/entity/settings/people/workers/worker\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _worker, _worker2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"portal/routes/entity/builda-price/projects/project/people/workers/worker\",0,\"portal/routes/entity/settings/people/workers/worker\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.worker.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByACompanyPermission'));\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_healthAndSafetyPermissionsVisible\", _descriptor8, this);\n      _defineProperty(this, \"saveWorkerPermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canViewTasks) {\n              _worker.canViewTaskAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _worker.canViewTaskAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canCreateHealthAndSafety) {\n              _worker.canCreateHealthAndSafetyAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _worker.canCreateHealthAndSafetyAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleWorkerProjectAttributes([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"saveWorkerPermissions\", null));\n      _defineProperty(this, \"deleteWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.people.workers.worker.removeWorkerFromProjectConfirm'))) return;\n\n            // remove all the project and task permissions\n            const taskIds = this.model.project.last.value.hasMany('tasks').ids();\n            const [projectAttributes, taskAttributes] = yield Promise.all([this.store.simpleQuery('worker-project-attribute', {\n              worker: this.model.worker.last.value.id,\n              project: this.model.project.last.value.id\n            }), this.store.simpleQuery('worker-task-attribute', {\n              worker: this.model.worker.last.value.id\n            }).then(utas => utas.toArray().filter(uta => taskIds.includes(uta.belongsTo('task').id())))]);\n            yield Promise.all([...projectAttributes.map(pa => pa.destroyRecord()), ...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.workers`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.people.workers.worker.Removed worker from project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteWorker\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.worker.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.workers`,\n        pageTitle: this.intl.t('common.Workers')\n      }, {\n        route: `${this.model.basePath}.workers`,\n        model: this.model.worker.last.value.id,\n        pageTitle: this.model.worker.last.value.fullName\n      }];\n      return paths;\n    }\n    get entityCanViewTasks() {\n      return this.userIsEntityAdmin || this.model.worker.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, 'canViewTasks');\n    }\n    get projectPermissionsCount() {\n      return [_worker.canViewTaskAttributes].filter(attrs => this.model.worker.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ...attrs)).length;\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount > 0;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get healthAndSafetyPermissionsCount() {\n      return [_worker.canCreateHealthAndSafetyAttributes].filter(attrs => this.model.worker.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ...attrs)).length;\n    }\n    get healthAndSafetyPermissionsVisible() {\n      if (this._healthAndSafetyPermissionsVisible != null) return this._healthAndSafetyPermissionsVisible;\n      return this.healthAndSafetyPermissionsCount > 0;\n    }\n    set healthAndSafetyPermissionsVisible(value) {\n      this._healthAndSafetyPermissionsVisible = value;\n    }\n    get entityCanCreateHealthAndSafety() {\n      return this.model.worker.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._worker2.workerHealthAndSafetyAttributes);\n    }\n    async handleWorkerProjectAttributes(projectAttributesToAdd, _projectAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const projectAttributesToRemove = _projectAttributesToRemove.filter(ar => !projectAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-project-attribute', {\n        worker: this.model.worker.last.value.id,\n        project: this.model.project.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(projectAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(projectAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-project-attribute', {\n          entity: this.sessionData.entity,\n          project: this.model.project.last.value,\n          worker: this.model.worker.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_healthAndSafetyPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/runloop\", \"portal/config/environment\", \"ember-changeset\", \"portal/utils/search-filter\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service, _runloop, _environment, _emberChangeset, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/runloop\",0,\"portal/config/environment\",0,\"ember-changeset\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor5, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingProduct\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isDeletingProducts\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isEditingProduct\", _descriptor0, this);\n      _initializerDefineProperty(this, \"pageIndex\", _descriptor1, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor10, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor11, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor12, this);\n      _initializerDefineProperty(this, \"selectProductIds\", _descriptor13, this);\n      _initializerDefineProperty(this, \"selectedProductId\", _descriptor14, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor15, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor16, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor17, this);\n      _defineProperty(this, \"suppliers\", []);\n      _defineProperty(this, \"suppliersFilter\", undefined);\n      _defineProperty(this, \"suppliersPage\", undefined);\n      _defineProperty(this, \"suppliersPageSize\", 10);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageIndex', 'sortBy', 'sortDirection', 'searchTerm', 'supplier']);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"onAddProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (product) {\n          try {\n            yield this.store.createRecord('project-product', {\n              ...product,\n              project: this.model.project.last.value,\n              entity: this.sessionData.entity\n            }).save();\n            this.isAddingProduct = false;\n            yield this.updateProductList.perform();\n          } catch (error) {\n            if (error.errors[0].status === '409') this.notifications.warning(this.intl.t('shared.notification.Product already exists'));\n          }\n        }\n      }), null, \"onAddProduct\", null));\n      _defineProperty(this, \"onSaveProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (productChangeSet) {\n          try {\n            yield productChangeSet.save();\n            this.isEditingProduct = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileSavingProduct'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"onSaveProduct\", null));\n      _defineProperty(this, \"updateProductList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.products.perform(this.model.project, Number(this.model.pageSize), Number(this.model.pageIndex), this.model.sortBy, this.model.sortDirection, this.model.searchTerm);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileReloadProducts'),\n              error\n            });\n          }\n        }\n      }), null, \"updateProductList\", null));\n      _defineProperty(this, \"deleteProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.store.adapterFor('project-product').deleteBulk('project-product', [...this.selectProductIds]);\n            this.isDeletingProducts = false;\n            this.selectProductIds = new Set();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingProducts'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"deleteProducts\", null));\n      _defineProperty(this, \"loadMoreSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (searchTerm) {\n          try {\n            const suppliersFilter = {\n              and: [{\n                field: 'entity',\n                operator: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            };\n            if (searchTerm?.length) {\n              suppliersFilter.and.push((0, _searchFilter.default)(['name'], searchTerm, 'operator'));\n            }\n            if (JSON.stringify(suppliersFilter) !== JSON.stringify(this.suppliersFilter)) {\n              this.suppliersPage = undefined;\n              this.suppliersFilter = suppliersFilter;\n              this.suppliers = [];\n            }\n            if (this.suppliersPage && !this.suppliersPage?.hasNextPage) return this.suppliers;\n            const nextPageNumber = (this.suppliersPage?.currentPage || 0) + 1;\n            const nextPage = yield this.portalApiV2.authGet('/search-suppliers', {\n              filter: suppliersFilter,\n              pageSize: this.suppliersPageSize,\n              page: nextPageNumber,\n              orderBy: 'name',\n              orderByDirection: 'desc'\n            });\n            this.suppliersPage = nextPage.pagination;\n            this.suppliers = [...this.suppliers, ...nextPage.data];\n            return this.suppliers;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongLoadingMoreSuppliers'),\n              error\n            });\n          }\n        }\n      }), {\n        restartable: true\n      }, \"loadMoreSuppliers\", null));\n    }\n    get products() {\n      return this.model.products.last.value || [];\n    }\n    get supplierChangeSet() {\n      return (0, _emberChangeset.Changeset)({\n        supplierName: this.supplier\n      });\n    }\n    get isLoading() {\n      return this.model.products.isRunning || this.deleteProducts.isRunning || this.onSaveProduct.isRunning;\n    }\n    updateSearchTerm(value) {\n      this.selectProductIds = new Set();\n      this.pageIndex = 1;\n      this.searchTerm = value;\n    }\n    onChangePageIndex(pageIndex) {\n      this.pageIndex = pageIndex;\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    get totalRecords() {\n      if (this.model.products.isRunning) return 0;\n      return this.products.meta.totalRecords;\n    }\n    onSelectProduct(_row, col, e) {\n      if (e.target.checked) {\n        this.selectProductIds.add(col.extraData.productId);\n      } else {\n        this.selectProductIds.delete(col.extraData.productId);\n      }\n\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectProductIds = this.selectProductIds;\n    }\n    onClickProductName(_row, col) {\n      this.selectedProductId = col.extraData.productId;\n      this.isEditingProduct = true;\n    }\n    onSelectCurrentPageProducts(_row, col, e) {\n      const selectedProductIds = new Set();\n      if (e.target.checked) {\n        this.products.forEach(p => {\n          selectedProductIds.add(p.id);\n        });\n      }\n      this.selectProductIds = selectedProductIds;\n    }\n    onCreateProduct() {\n      this.selectedProductId = null;\n      this.isEditingProduct = true;\n    }\n    sortColumn(_row, col) {\n      if (this.sortBy !== col.value) {\n        this.sortBy = col.value;\n        this.sortDirection = 'asc';\n        return;\n      }\n      this.sortBy = col.value;\n      if (this.sortDirection === 'asc') {\n        this.sortDirection = 'desc';\n      } else if (this.sortDirection === 'desc') {\n        this.sortDirection = undefined;\n      } else {\n        this.sortDirection = 'asc';\n      }\n    }\n    get showFilters() {\n      return this.productTableData?.length || this.supplierChangeSet.get('supplierName') || this.searchTerm?.length;\n    }\n    get productTableHeader() {\n      if (this.model.products.isRunning) return [];\n      const productHeader = [{\n        value: this.intl.t('common.Product'),\n        iconName: this.sortBy === 'Product' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Supplier'),\n        iconName: this.sortBy === 'Supplier' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.SKU'),\n        iconName: this.sortBy === 'SKU' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit'),\n        iconName: this.sortBy === 'Unit' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }];\n      if (this.isEditable && this.products.length) productHeader.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        value: Boolean(this.selectProductIds.size === this.products.length),\n        isPartiallySelected: Boolean(this.selectProductIds.size && this.selectProductIds.size !== this.products.length),\n        onInputChange: this.onSelectCurrentPageProducts\n      });\n      return productHeader;\n    }\n    get productTableData() {\n      if (this.model.products.isRunning) return [];\n      return this.products.map(product => {\n        const productData = [{\n          colClass: 'text-left align-middle',\n          value: product.supplierName\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.sku\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.unit\n        }, {\n          colClass: 'text-right align-middle',\n          value: this.numberFormat.format(product.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          })\n        }];\n        if (this.isEditable) {\n          productData.unshift({\n            type: 'BUTTON',\n            textClass: 'btn btn-link',\n            value: product.description,\n            onClickButton: this.onClickProductName,\n            extraData: {\n              productId: product.id\n            }\n          });\n          productData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectProductIds.has(product.id),\n            onInputChange: this.onSelectProduct,\n            extraData: {\n              productId: product.id\n            }\n          });\n        } else {\n          productData.unshift({\n            colClass: 'align-middle',\n            value: product.description\n          });\n        }\n        return {\n          rowData: productData\n        };\n      });\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProducts');\n    }\n    setSupplier(value) {\n      const supplierName = value?.supplierName;\n      this.supplier = supplierName;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isEditingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"pageIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.searchTerm;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"selectProductIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"selectedProductId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickProductName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickProductName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onCreateProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onCreateProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setSupplier\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/progress\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('progressList.@each.{children,isDifferentFromLastVersion}'), _dec2 = (0, _object.computed)('model.project.last.value', 'newFeatureFlags'), _dec3 = (0, _object.computed)('model.progressList.last.value'), _dec4 = (0, _object.computed)('isSaving', 'isLoading', 'model.progressList.last.value.length'), _dec5 = (0, _object.computed)('model.progressList.last.value'), _dec6 = (0, _object.computed)('model.{project.last.value.draftProgressChangeSet,progressList.last.value.@each.isDirty}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"showCommitProgressModal\", _descriptor6, this);\n      _defineProperty(this, \"saveDraftProgress\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const manageableProjectList = this.progressList.filter(p => p.task.canManageTaskProgress || p.children);\n            const promises = [this.buildaPrice.updateDraftProgressPosition(manageableProjectList)];\n            if (this.canCompleteTasks) {\n              const taskList = function makeTasks(containers) {\n                const tasks = [];\n                for (const container of containers) {\n                  // only send real tasks\n                  if (container.isDirect) continue;\n                  const task = {\n                    task: {\n                      id: container.task.id,\n                      path: container.task.path,\n                      status: container.task.status,\n                      parent: container.task.belongsTo('parent').id(),\n                      isComplete: container.isComplete,\n                      entity: container.task.belongsTo('entity').id()\n                    }\n                  };\n                  if (container.children) task.children = makeTasks(container.children);\n                  tasks.push(task);\n                }\n                return tasks;\n              }(manageableProjectList);\n\n              // this must be done before the commit because the task status changes from draft to active\n              promises.push(this.buildaPrice.updateTaskList(taskList));\n            }\n            yield Promise.all(promises);\n            yield this.model.project.last.value.reload();\n            yield this.model.progressList.perform(this.model.project);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.progress.Successfully saved progress draft'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.progress.somethingWentWrongWhileSavingProgressDraft'),\n              error\n            });\n          }\n        }\n      }), null, \"saveDraftProgress\", null));\n      _defineProperty(this, \"commitProgressVersion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const projectId = this.model.project.last.value.id;\n            const manageableProjectList = this.progressList.filter(p => p.task.canManageTaskProgress || p.children);\n            const promises = [this.buildaPrice.updateDraftProgressPosition(manageableProjectList)];\n            if (this.canCompleteTasks) {\n              const taskList = function makeTasks(containers) {\n                const tasks = [];\n                for (const container of containers) {\n                  // only send real tasks\n                  if (container.isDirect) continue;\n                  const task = {\n                    task: {\n                      id: container.task.id,\n                      path: container.task.path,\n                      status: container.task.status,\n                      parent: container.task.belongsTo('parent').id(),\n                      isComplete: container.isComplete,\n                      entity: container.task.belongsTo('entity').id()\n                    }\n                  };\n                  if (container.children) task.children = makeTasks(container.children);\n                  tasks.push(task);\n                }\n                return tasks;\n              }(manageableProjectList);\n\n              // this must be done before the commit because the task status changes from draft to active\n              promises.push(this.buildaPrice.updateTaskList(taskList));\n            }\n            yield Promise.all(promises);\n            yield this.buildaPrice.commitProject(projectId, {\n              commitBudget: false,\n              commitQuote: false,\n              commitProgress: true,\n              commitScheduling: false\n            });\n            this.showCommitProgressModal = false;\n            (0, _object.set)(this, 'model.project.last.value.draftProgressChangeSet', null);\n            yield this.model.project.last.value.reload();\n            yield this.model.progressList.perform(this.model.project);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.progress.Successfully made progress version'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.progress.somethingWentWrongWhileMakingTheProgressVersion'),\n              error\n            });\n          }\n        }\n      }), null, \"commitProgressVersion\", null));\n    }\n    get isSaving() {\n      return this.saveDraftProgress.isRunning || this.commitProgressVersion.isRunning;\n    }\n    get isLoading() {\n      return this.model.progressList.isRunning;\n    }\n    get canCompleteTasks() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageTasks');\n    }\n    get numberOfChanges() {\n      let count = 0;\n      (function countChanges(containers) {\n        containers.forEach(container => {\n          if (!container.children && container.isDifferentFromLastVersion) count++;\n          if (container.children) countChanges(container.children);\n        });\n      })(this.progressList);\n      return count;\n    }\n    get canSeeCreateVersionButton() {\n      if (!this.model.project.last.value) return true;\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProgressVersions');\n    }\n    get canSeeSaveDraftButton() {\n      if (!this.model.progressList.last.value) return true;\n      const findCanManageTaskProgress = list => {\n        if (list.some(pl => pl.task.canManageTaskProgress)) return true;\n        if (list.children?.length) return findCanManageTaskProgress(list.children);\n      };\n      return findCanManageTaskProgress(this.model.progressList.last.value);\n    }\n    get showTaskControls() {\n      if (this.isSaving) return true;\n      if (this.isLoading) return true;\n      if (this.model.progressList.last.value?.length) return true;\n      return false;\n    }\n    get progressList() {\n      return this.model.progressList.last.value;\n    }\n    get latestVersion() {\n      return this.model.project.last.value?.currentProgressVersion;\n    }\n    get isDraft() {\n      return Boolean(this.model.project.last.value?.belongsTo('draftProgressChangeSet').id() || this.model.progressList.last.value?.some(tc => tc.isDirty));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"showCommitProgressModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"numberOfChanges\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"numberOfChanges\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"canSeeCreateVersionButton\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"canSeeCreateVersionButton\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"canSeeSaveDraftButton\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"canSeeSaveDraftButton\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"showTaskControls\", [_dec4], Object.getOwnPropertyDescriptor(_class2.prototype, \"showTaskControls\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"progressList\", [_dec5], Object.getOwnPropertyDescriptor(_class2.prototype, \"progressList\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"isDraft\", [_dec6], Object.getOwnPropertyDescriptor(_class2.prototype, \"isDraft\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/settings\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"ember-changeset\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _emberChangeset, _service, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-changeset\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/object\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.xeroTrackingOptions.last.value.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor6, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor8, this);\n      _initializerDefineProperty(this, \"store\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isArchivingProject\", _descriptor0, this);\n      _initializerDefineProperty(this, \"isDeletingProject\", _descriptor1, this);\n      _initializerDefineProperty(this, \"addressSuggestions\", _descriptor10, this);\n      _defineProperty(this, \"googleMapAddressFinder\", (0, _emberChangeset.Changeset)({\n        address: null\n      }));\n      _defineProperty(this, \"status\", [{\n        value: 'OPEN',\n        label: this.intl.t('common.Open')\n      }, {\n        value: 'HELD',\n        label: this.intl.t('common.Held')\n      }, {\n        value: 'CLOSED',\n        label: this.intl.t('common.Closed')\n      }, {\n        value: 'ARCHIVED',\n        label: this.intl.t('common.Archived')\n      }]);\n      _defineProperty(this, \"contractType\", [{\n        value: 'COST_PLUS',\n        label: this.intl.t('shared.task.Cost plus')\n      }, {\n        value: 'FIXED_PRICE',\n        label: this.intl.t('shared.task.Fixed price')\n      }]);\n      _defineProperty(this, \"syncXeroTrackingCategoryOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const {\n              removed\n            } = yield this.xeroIntegration.getTrackingCategoryOptions(this.sessionData.entity);\n            const storeTrackingOptions = this.store.peekAll('xero-tracking-option');\n            if (removed.length) {\n              for (const id of removed) {\n                const option = storeTrackingOptions.find(a => a.id === id);\n                if (option) {\n                  // unload the record\n                  this.store.unloadRecord(option);\n                }\n              }\n            }\n            yield this.model.xeroTrackingOptions.perform();\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.settings.Successfully synced tracking categories'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.settings.somethingWentWrongReloadingTrackingCategories'),\n              error\n            });\n          }\n        }\n      }), null, \"syncXeroTrackingCategoryOptions\", null));\n      _defineProperty(this, \"onAddressChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (val) {\n          if (val.trim().length > 0) {\n            const addressSuggestions = yield this.portalApiV2.authPost('/places/search', {\n              input: val\n            });\n            this.addressSuggestions = addressSuggestions;\n          }\n        }\n      }), null, \"onAddressChange\", null));\n      _defineProperty(this, \"deleteProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.project.last.value.delete();\n            this.isDeletingProject = false;\n            this.router.transitionTo('entity.builda-price.projects');\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.settings.Successfully deleted the project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.settings.projectsWithAllocatedCostsOrPurchaseOrdersCanNotBeDeletedInsteadSetTheProjectToArchived'),\n              error\n            }, 5000);\n          }\n        }\n      }), null, \"deleteProject\", null));\n      _defineProperty(this, \"archiveProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.model.project.last.value.status = 'ARCHIVED';\n          try {\n            yield this.model.project.last.value.save();\n            this.isArchivingProject = false;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.settings.Successfully archived the project'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.settings.somethingWentWrongArchivingTheProject'),\n              error\n            });\n          }\n        }\n      }), null, \"archiveProject\", null));\n      _defineProperty(this, \"saveProfitMargin\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectChangeset, profitMarginChangeset) {\n          if (this.canManageProject) {\n            projectChangeset.validate();\n            if (projectChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('shared.notification.Please complete the project information'));\n              return;\n            }\n          }\n\n          // because the profit type changing modifies the percentage validation\n          // we need to force a validate on all fields (including pristine)\n          if (this.canManageProfitMargin) {\n            profitMarginChangeset.validate('profitType', 'labourPercentage', 'materialsPercentage', 'subcontractorsPercentage', 'sumsPercentage');\n            if (profitMarginChangeset.saveProfitMargin) {\n              this.notifications.warning(this.intl.t('shared.notification.pleaseCompleteTheProfitMarginInformation'));\n              return;\n            }\n          }\n          try {\n            // commit the changes\n            if (this.canManageProfitMargin) {\n              profitMarginChangeset.execute();\n              yield profitMarginChangeset.save();\n            }\n            if (this.canManageProject) {\n              projectChangeset.execute();\n              yield projectChangeset.save();\n            }\n            this.notifications.success('Saved successfully');\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingTheProfitMargins'),\n              error\n            });\n          }\n        }\n      }), null, \"saveProfitMargin\", null));\n      _defineProperty(this, \"saveProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectChangeset) {\n          if (this.canManageProject) {\n            projectChangeset.validate('startDate', 'completionDate', 'name', 'status');\n            if (projectChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('shared.notification.Please complete the project information'));\n              return;\n            }\n          }\n          try {\n            const promises = [];\n            if (this.canManageProject) {\n              projectChangeset.execute();\n              promises.push(projectChangeset.save());\n            }\n            yield Promise.all(promises);\n            this.notifications.success(this.intl.t('shared.notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.settings.Something went wrong saving the project'),\n              error\n            });\n          }\n        }\n      }), null, \"saveProject\", null));\n    }\n    clearAddressSuggestions() {\n      this.addressSuggestions = [];\n      this.googleMapAddressFinder.address = null;\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.loadProjectProfitMargin.isRunning || this.model.glAccounts.isRunning;\n    }\n    get canDelete() {\n      return this.model.project.last.value.canDelete;\n    }\n    get canManageProject() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProjects');\n    }\n    get canManageProfitMargin() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageProfitMargin');\n    }\n    get projectClientsString() {\n      return this.model.projectClients.last.value?.map(c => c.fullName).join(', ') || null;\n    }\n    set purchasesGlAccountIsOverridden(value) {}\n    get purchasesGlAccountIsOverridden() {\n      const currentValue = this.model.projectChangeset.last.value.purchasesGlAccount;\n      return currentValue !== null;\n    }\n    set salesGlAccountIsOverridden(value) {}\n    get salesGlAccountIsOverridden() {\n      const currentValue = this.model.projectChangeset.last.value.salesGlAccount;\n      return currentValue !== null;\n    }\n    togglePurchasesGlAccountOverride(projectModel) {\n      const currentValue = projectModel.purchasesGlAccount;\n      const effectivePurchasesGlAccount = this.model.project.lastSuccessful.value.defaultPurchasesGlAccount || this.model.glAccounts.lastSuccessful.value.toArray()[0] || undefined;\n      const newValue = currentValue !== null ? null : effectivePurchasesGlAccount;\n      projectModel.set('purchasesGlAccount', newValue);\n    }\n    toggleSalesGlAccountOverride(projectModel) {\n      const currentValue = projectModel.salesGlAccount;\n      const effectiveSalesGlAccount = this.model.project.lastSuccessful.value.defaultSalesGlAccount || this.model.glAccounts.lastSuccessful.value.toArray()[0] || undefined;\n      const newValue = currentValue !== null ? null : effectiveSalesGlAccount;\n      projectModel.set('salesGlAccount', newValue);\n    }\n    get deleteMessages() {\n      return [this.intl.t('entity.builda-price.projects.project.settings.Do you want to delete this project')];\n    }\n    // power select component options loading state wants a promise\n    get xeroTrackingOptions() {\n      return (async () => {\n        const value = await this.model.xeroTrackingOptions.last;\n        return value;\n      })();\n    }\n    onRadiusChange(rad) {\n      this.model.projectChangeset.last.value.rad = rad;\n    }\n    async setGoogleMapAddress(suggestion) {\n      this.addressSuggestions = [];\n\n      // enter with nothing highlighted selects nothing, the typed text stands\n      if (!suggestion) return;\n      const {\n        address,\n        id\n      } = suggestion;\n      this.googleMapAddressFinder.address = address;\n      const {\n        latitude,\n        longitude\n      } = await this.portalApiV2.authGet(`/places/location/${id}`);\n      this.model.projectChangeset.last.value.lat = latitude;\n      this.model.projectChangeset.last.value.lng = longitude;\n    }\n    async setAddress(suggestion) {\n      this.addressSuggestions = [];\n      if (!suggestion) return;\n      const {\n        address,\n        id\n      } = suggestion;\n      this.model.projectChangeset.last.value.address = address;\n      const {\n        latitude,\n        longitude\n      } = await this.portalApiV2.authGet(`/places/location/${id}`);\n      this.model.projectChangeset.last.value.lat = latitude;\n      this.model.projectChangeset.last.value.lng = longitude;\n    }\n    onClickMap(lat, lng) {\n      this.model.projectChangeset.last.value.lat = lat;\n      this.model.projectChangeset.last.value.lng = lng;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isArchivingProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingProject\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"addressSuggestions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"clearAddressSuggestions\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"clearAddressSuggestions\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"togglePurchasesGlAccountOverride\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"togglePurchasesGlAccountOverride\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleSalesGlAccountOverride\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleSalesGlAccountOverride\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"xeroTrackingOptions\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"xeroTrackingOptions\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onRadiusChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onRadiusChange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setGoogleMapAddress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setGoogleMapAddress\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setAddress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setAddress\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickMap\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickMap\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/stage-payments\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"ember-changeset\", \"portal/models/entity-invoice-option\", \"lodash\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service, _emberChangeset, _entityInvoiceOption, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"portal/models/entity-invoice-option\",0,\"lodash\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let StagePaymentsController = _exports.default = (_class = class StagePaymentsController extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"router\", _descriptor6, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor7, this);\n      _initializerDefineProperty(this, \"store\", _descriptor8, this);\n      _initializerDefineProperty(this, \"showCreateStagesModal\", _descriptor9, this);\n      _initializerDefineProperty(this, \"numberOfStages\", _descriptor0, this);\n      _initializerDefineProperty(this, \"showNameEditor\", _descriptor1, this);\n      _initializerDefineProperty(this, \"showDateEditor\", _descriptor10, this);\n      _initializerDefineProperty(this, \"showValueEditor\", _descriptor11, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor12, this);\n      _initializerDefineProperty(this, \"pageNumber\", _descriptor13, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor14, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor15, this);\n      _initializerDefineProperty(this, \"showChecklistModal\", _descriptor16, this);\n      _initializerDefineProperty(this, \"showTaskSelectorModal\", _descriptor17, this);\n      _initializerDefineProperty(this, \"selectedStages\", _descriptor18, this);\n      _initializerDefineProperty(this, \"showBulkDeleteStagesModal\", _descriptor19, this);\n      _initializerDefineProperty(this, \"showDeleteStageModal\", _descriptor20, this);\n      _initializerDefineProperty(this, \"currentStageLinkedTasks\", _descriptor21, this);\n      _initializerDefineProperty(this, \"currentChecklist\", _descriptor22, this);\n      _initializerDefineProperty(this, \"allStageLinkedTasks\", _descriptor23, this);\n      _initializerDefineProperty(this, \"remainingQuoteValue\", _descriptor24, this);\n      _initializerDefineProperty(this, \"useValueFromTasks\", _descriptor25, this);\n      _initializerDefineProperty(this, \"currentStagePayment\", _descriptor26, this);\n      _initializerDefineProperty(this, \"showBulkActionsModal\", _descriptor27, this);\n      _initializerDefineProperty(this, \"showProjectLevelContractTermsModal\", _descriptor28, this);\n      _initializerDefineProperty(this, \"showDownloadOptions\", _descriptor29, this);\n      _initializerDefineProperty(this, \"includeTasks\", _descriptor30, this);\n      _initializerDefineProperty(this, \"includeCheckListItems\", _descriptor31, this);\n      _defineProperty(this, \"status\", 'ALL');\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageNumber', 'sortBy', 'status', 'sortDirection']);\n      _defineProperty(this, \"stagePaymentValidationMap\", {\n        name: (_key, val) => {\n          if (val?.length > 255) {\n            return this.intl.t('validation.pleaseInputANameLessThan255Characters');\n          }\n          return true;\n        },\n        stageNumber: (_key, val) => {\n          const stageNumber = Number(val);\n          return stageNumber >= 1 && Number.isInteger(stageNumber) && stageNumber <= this.totalRecords || this.intl.t('entity.builda-price.projects.project.stage-payments.stageNumberMustBeGreaterIntThanZeroAndLessThanMaxStageNumber', {\n            max: this.totalRecords\n          });\n        },\n        retention: (_key, val) => {\n          if (typeof val !== 'number') return true;\n\n          // null is valid\n          if (val === null) return true;\n          return val <= 1 || this.intl.t('validation.Please input a value less than 100');\n        }\n      });\n      _defineProperty(this, \"stagePaymentsOptionsValidationMap\", {});\n      _defineProperty(this, \"addNewQuestion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (title) {\n          const newQuestion = yield this.store.createRecord('stage-payment-question', {\n            title: title,\n            complete: false,\n            entity: this.sessionData.entity,\n            stagePayment: this.currentStagePayment\n          }).save();\n          this.currentChecklist = [...this.currentChecklist, newQuestion];\n        }\n      }), null, \"addNewQuestion\", null));\n      _defineProperty(this, \"deleteQuestion\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (questionId) {\n          const question = this.store.peekRecord('stage-payment-question', questionId);\n          yield question.destroyRecord();\n          this.currentChecklist = this.currentChecklist.filter(item => item.id !== questionId);\n        }\n      }), null, \"deleteQuestion\", null));\n      _defineProperty(this, \"loadDataForValueModal\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            this.remainingQuoteValue = 0;\n            this.useValueFromTasks = 0;\n            const {\n              allStages,\n              quoteVersionValues,\n              allStagesLinkedTasks\n            } = yield this.loadDataForEffectivePercentage();\n            const usedQuote = (allStages || []).reduce((acc, stage) => acc + stage.value, 0);\n            const totalQuoteValue = (quoteVersionValues || []).reduce((acc, quote) => acc + quote.labour + quote.materials + quote.subcontractors + quote.sums, 0);\n            this.remainingQuoteValue = Math.max(totalQuoteValue - usedQuote, 0);\n            let useValueFromTasks = 0;\n            const linksByTask = _lodash.default.groupBy(allStagesLinkedTasks, link => link.belongsTo('task').id());\n            for (let taskId of Object.keys(linksByTask)) {\n              const items = linksByTask[taskId];\n              const effectivePercentage = calculateEffectivePercentage(items, this.currentStagePayment);\n              const currentTaskQuote = quoteVersionValues.find(qvv => qvv.belongsTo('task').id() === taskId);\n              const currentTaskShare = effectivePercentage * ((currentTaskQuote?.labour || 0) + (currentTaskQuote?.materials || 0) + (currentTaskQuote?.subcontractors || 0) + (currentTaskQuote?.sums || 0));\n              useValueFromTasks += currentTaskShare || 0;\n            }\n            this.useValueFromTasks = useValueFromTasks;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.Something went wrong while fetching data'),\n              error\n            });\n          }\n        }\n      }), null, \"loadDataForValueModal\", null));\n      _defineProperty(this, \"addStagePayments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (stagesCount) {\n          try {\n            for (let i = 1; i <= stagesCount; i++) {\n              yield this.store.createRecord('stage-payment', {\n                entity: this.sessionData.entity,\n                project: this.model.project.lastSuccessful.value\n              }).save();\n            }\n            yield Promise.all([this.model.stagePayments.perform(this.model.project, this.model.pageNumber, this.model.pageSize, this.model.sortBy, this.model.sortByDirection, this.model.status), this.model.stagePaymentsValues.perform(this.model.project)]);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.stage-payments.successfullyAddedStages', {\n              stage: stagesCount > 1 ? 'stages' : 'stage'\n            }));\n            this.numberOfStages = null;\n            this.showCreateStagesModal = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.somethingWentWrongWhileAddingStages', {\n                stage: stagesCount > 1 ? 'stages' : 'stage'\n              }),\n              error\n            });\n          }\n        }\n      }), null, \"addStagePayments\", null));\n      _defineProperty(this, \"saveCurrentStage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (!changeset.isValid) return;\n            yield changeset.execute();\n            yield changeset.save();\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.stage-payments.Successfully saved stage'));\n            yield this.model.stagePaymentsValues.perform(this.model.project);\n            yield this.model.stagePayments.perform(this.model.project, this.model.pageNumber, this.model.pageSize, this.model.sortBy, this.model.sortByDirection, this.model.status);\n            this.showNameEditor = false;\n            this.showValueEditor = false;\n            this.showDateEditor = false;\n            this.currentStagePayment = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.Something went wrong while saving stage'),\n              error\n            });\n          }\n        }\n      }), null, \"saveCurrentStage\", null));\n      _defineProperty(this, \"deleteStages\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const invoiceLinks = [];\n            for (const record of this.selectedStages) {\n              const invoices = this.model.invoices.lastSuccessful.value.filter(i => i.belongsTo('stagePayment').value() === record);\n              if (invoices.length) {\n                const links = invoices.map(inv => {\n                  const url = this.router.urlFor('entity.builda-price.operations.outgoing.invoices.invoice', inv.id);\n                  return `<a target=\"_blank\" href=\"${url}\">${inv.invoiceNumber}</a>`;\n                });\n                invoiceLinks.push(...links);\n              }\n            }\n            if (invoiceLinks.length) {\n              const joinedLinks = invoiceLinks.join(', ');\n              this.notifications.warning({\n                message: `${this.intl.t('entity.builda-price.projects.project.stage-payments.stagePaymentWithInvoicesDeleteWarn')} ${joinedLinks}`,\n                clearDuration: 10000\n              });\n              return;\n            }\n            const actions = [];\n            for (const record of this.selectedStages) {\n              actions.push(record.destroyRecord());\n            }\n            yield Promise.all(actions);\n            yield Promise.all([this.model.stagePayments.perform(this.model.project, this.model.pageNumber, this.model.pageSize, this.model.sortBy, this.model.sortByDirection, this.model.status), this.model.stagePaymentsValues.perform(this.model.project)]);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.stage-payments.successfullyDeletedStage', {\n              stage: this.selectedStages.size > 1 ? 'stages' : 'stage'\n            }));\n            this.showBulkDeleteStagesModal = false;\n            this.selectedStages = new Set();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.somethingWentWrongWhileDeletingStage', {\n                stage: this.selectedStages.size > 1 ? 'stages' : 'stage'\n              }),\n              error\n            });\n          }\n        }\n      }), null, \"deleteStages\", null));\n      _initializerDefineProperty(this, \"_bulkActionsStageValue\", _descriptor32, this);\n      _initializerDefineProperty(this, \"_computedRemainingQuoteValue\", _descriptor33, this);\n      _defineProperty(this, \"saveBulkActionDistributeValue\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const actions = [];\n            const fixedValue = this.bulkActionsStageValue;\n            this.selectedStages.forEach(record => {\n              record.value = fixedValue;\n              actions.push(record.save());\n            });\n            yield Promise.all(actions);\n            yield this.model.stagePaymentsValues.perform(this.model.project);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.stage-payments.successfullyAppliedTheValuesAcrossStage', {\n              stage: this.selectedStages.size > 1 ? 'stages' : 'stage'\n            }));\n            this.selectedStages = new Set();\n            this.bulkActionsStageValue = null;\n            this.showBulkActionsModal = false;\n            this._computedRemainingQuoteValue = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.somethingWentWrongWhileApplyingValues'),\n              error\n            });\n          }\n        }\n      }), null, \"saveBulkActionDistributeValue\", null));\n      _defineProperty(this, \"setRemainingQuoteValue\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          changeset.set('value', this.remainingQuoteValue);\n        }\n      }), null, \"setRemainingQuoteValue\", null));\n      _defineProperty(this, \"setUseValueFromTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          changeset.set('value', this.useValueFromTasks);\n        }\n      }), null, \"setUseValueFromTasks\", null));\n      _defineProperty(this, \"saveStagePaymentOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (stagePaymentOption) {\n          if (stagePaymentOption.isInvalid) return;\n          try {\n            stagePaymentOption.execute();\n            const wasNew = Boolean(stagePaymentOption.isNew);\n            yield stagePaymentOption.save();\n\n            // if the record was new, we need to setup the relationship with the project\n            if (wasNew) {\n              const project = this.model.project.last.value;\n              yield project.save();\n            }\n            this.showProjectLevelContractTermsModal = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.stage-payments.somethingWentWrongUpdatingProjectNotes'),\n              error\n            });\n          }\n        }\n      }), null, \"saveStagePaymentOptions\", null));\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.buildaPrice.downloadStagePaymentsPDF(this.filename, {\n              entity: this.sessionData.entity.id,\n              project: this.model.project.last.value.id,\n              includeTasks: this.includeTasks,\n              includeCheckListItems: this.includeCheckListItems\n            });\n            this.closeDownloadOptions();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDownloadingThePDF'),\n              error\n            });\n          }\n        }\n      }), null, \"downloadAsPdf\", null));\n    }\n    onChangePage(pageNumber) {\n      this.pageNumber = pageNumber;\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    get pageIsLoading() {\n      return this.model.stagePayments.lastSuccessful === null && this.model.stagePayments.isRunning || this.model.progressVersionValues.lastSuccessful === null && this.model.progressVersionValues.isRunning || this.model.stagePaymentsValues.lastSuccessful === null && this.model.stagePaymentsValues.isRunning || this.model.invoices.lastSuccessful === null && this.model.invoices.isRunning || this.model.stagePaymentOptions.lastSuccessful === null && this.model.stagePaymentOptions.isRunning;\n    }\n    get stagePaymentOption() {\n      return this.model.project.last.value.belongsTo('stagePaymentOption').value();\n    }\n    get tableIsLoading() {\n      return this.model.stagePayments.isRunning;\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.lastSuccessful.value, 'canManageStagePayments');\n    }\n    openNameEditor(_row, col, _e) {\n      this.currentStagePayment = col.currentStagePayment;\n      this.showNameEditor = true;\n    }\n    openDateEditor(_row, col, _e) {\n      this.currentStagePayment = col.currentStagePayment;\n      this.showDateEditor = true;\n    }\n    openValueEditor(_row, col, _e) {\n      this.currentStagePayment = col.currentStagePayment;\n      this.showValueEditor = true;\n    }\n    get totalRecords() {\n      return this.model.stagePayments.lastSuccessful.value.meta?.totalRecords || 0;\n    }\n    get stagePayments() {\n      return this.model.stagePayments.lastSuccessful.value?.toArray() || [];\n    }\n    get progressVersionValues() {\n      return this.model.progressVersionValues.lastSuccessful.value?.toArray() || [];\n    }\n    get selectedStagesValue() {\n      return Array.from(this.selectedStages).reduce((acc, stage) => {\n        return acc += stage.value || 0;\n      }, 0);\n    }\n    openTaskSelector(_row, col) {\n      this.currentStageLinkedTasks = col.currentStageLinkedTasks;\n      this.allStageLinkedTasks = this.store.peekAll('link-task-to-stage-payment').filter(stagePaymentTask => stagePaymentTask.belongsTo('task').value().belongsTo('project').id() === this.model.project.lastSuccessful.value.id);\n      this.currentStagePayment = col.currentStagePayment;\n      this.showTaskSelectorModal = true;\n    }\n    openChecklist(_row, col) {\n      this.currentChecklist = col.currentStageLinkedQuestions;\n      this.currentStagePayment = col.currentStagePayment;\n      this.showChecklistModal = true;\n    }\n    get tableHeader() {\n      return [{\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle col',\n        onInputChange: this.onSelectAllStages,\n        value: this.selectedStages.size,\n        isPartiallySelected: Boolean(this.selectedStages.size && this.selectedStages.size < this.stagePayments.filter(item => item.status !== 'CLAIMED').length)\n      }, {\n        value: this.intl.t('entity.builda-price.projects.project.stage-payments.Stage'),\n        iconName: this.getSortIcon('Stage'),\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-center col'\n      }, {\n        value: this.intl.t('common.Name'),\n        iconName: this.getSortIcon('Name'),\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left col-5'\n      }, {\n        value: this.intl.t('common.Due date'),\n        iconName: this.getSortIcon('Due date'),\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left col'\n      }, {\n        value: this.intl.t('entity.builda-price.projects.project.stage-payments.Included tasks'),\n        colClass: 'text-left col'\n      }, {\n        value: this.intl.t('common.Checklist'),\n        colClass: 'text-left col'\n      }, {\n        value: this.intl.t('common.Value'),\n        iconName: this.getSortIcon('Value'),\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right col'\n      }, {\n        value: this.intl.t('common.Status'),\n        iconName: this.getSortIcon('Status'),\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left col'\n      }, {\n        value: this.intl.t('common.Actions'),\n        colClass: 'text-center col'\n      }];\n    }\n    get tableData() {\n      const allStageLinkedTasks = this.store.peekAll('link-task-to-stage-payment').filter(task => task.belongsTo('task').value().belongsTo('project').id() === this.model.project.lastSuccessful.value.id);\n      return this.stagePayments.map(payment => {\n        const stageStatus = payment.status === 'CLAIMED' ? this.intl.t('common.Claimed') : this.intl.t('common.Unclaimed');\n        const currentStageInvoices = this.model.invoices.lastSuccessful.value.filter(item => item.belongsTo('stagePayment').id() === payment.id);\n        const currentStageLinkedTasks = allStageLinkedTasks.filter(task => task.belongsTo('stagePayment').id() === payment.id);\n        const completedTaskIds = currentStageLinkedTasks.reduce((completedTaskIds, task) => {\n          const progress = this.progressVersionValues.find(pvv => pvv.belongsTo('task').id() === task.belongsTo('task').id());\n          if (progress && progress.progress >= task.completionPercentage) return [...completedTaskIds, task.id];\n          return completedTaskIds;\n        }, []);\n        const currentStageLinkedQuestions = this.store.peekAll('stage-payment-question').filter(question => question.belongsTo('stagePayment').id() === payment.id).sortBy('dateCreated');\n        const completedQuestions = currentStageLinkedQuestions.filter(question => question.complete).length;\n        const dueDate = payment.dueDate ? this.intl.formatDate(payment.dueDate) : null;\n        const value = this.numberFormat.format(payment.value, {\n          style: 'currency'\n        });\n        const hasDueDate = !!payment.dueDate;\n        const hasTasks = currentStageLinkedTasks.length > 0;\n        const hasQuestions = currentStageLinkedQuestions.length > 0;\n        const dueDateCondition = hasDueDate ? new Date(payment.dueDate) < new Date() : true;\n        const tasksCondition = hasTasks ? currentStageLinkedTasks.length === completedTaskIds.length : true;\n        const questionsCondition = hasQuestions ? currentStageLinkedQuestions.length === completedQuestions : true;\n\n        // Ensure all present conditions are satisfied\n        const allConditionsMet = (!hasDueDate || dueDateCondition) && (!hasTasks || tasksCondition) && (!hasQuestions || questionsCondition);\n        const isReadyToBeClaimed = (hasDueDate || hasTasks || hasQuestions) && payment.value > 0 && payment.status !== 'CLAIMED' && allConditionsMet;\n        const taskTooltip = currentStageLinkedTasks.sort((a, b) => a.belongsTo('task').value()?.path > b.belongsTo('task').value()?.path ? 1 : -1).map(link => `${link.belongsTo('task').value()?.name} (${this.numberFormat.format(link.completionPercentage, {\n          style: 'percent',\n          dashZero: false,\n          maximumSignificantDigits: 4\n        })})`).join(', ');\n        const checklistTooltip = currentStageLinkedQuestions.map(question => question.title).join(', ');\n        const rowData = [{\n          colClass: 'text-center align-middle col',\n          value: payment.stageNumber\n        }, {\n          colClass: 'text-left align-middle col-5',\n          value: payment.name,\n          badgeValue: isReadyToBeClaimed ? this.intl.t('entity.builda-price.projects.project.stage-payments.Ready to be claimed') : null,\n          badgeClass: isReadyToBeClaimed ? 'badge bg-primary fs-8' : null\n        }, {\n          colClass: `text-left align-middle col ${payment.status !== 'CLAIMED' && payment.dueDate && new Date(payment.dueDate) < new Date() ? 'text-danger' : ''}`,\n          value: dueDate || '&mdash;'\n        }, {\n          tooltip: taskTooltip,\n          colClass: 'text-left align-middle col',\n          value: currentStageLinkedTasks.length ? this.intl.t('entity.builda-price.projects.project.stage-payments.xOfYComplete', {\n            complete: completedTaskIds.length,\n            total: currentStageLinkedTasks.length\n          }) : '&mdash;'\n        }, {\n          tooltip: checklistTooltip,\n          colClass: 'text-left align-middle col',\n          value: currentStageLinkedQuestions.length ? this.intl.t('entity.builda-price.projects.project.stage-payments.xOfYComplete', {\n            complete: completedQuestions,\n            total: currentStageLinkedQuestions.length\n          }) : '&mdash;'\n        }, {\n          colClass: 'text-right align-middle col',\n          value: value,\n          onClickButton: this.openValueEditor,\n          currentStagePayment: payment\n        }, {\n          colClass: 'text-left align-middle col',\n          value: stageStatus\n        }];\n        const popOverActions = {\n          primary: {\n            iconName: 'ellipsis-h'\n          },\n          secondary: []\n        };\n        if (payment.status === 'UNCLAIMED' && this.isEditable) {\n          popOverActions.secondary.push({\n            items: [{\n              name: this.intl.t('entity.builda-price.projects.project.stage-payments.Claim stage'),\n              iconName: 'check',\n              onClickButton: this.toggleStageStatus\n            }]\n          });\n          if (!currentStageInvoices.length && this.newFeatureFlags.includesFeatureFlags(this.model.project.lastSuccessful.value, 'canManageInvoices')) {\n            popOverActions.secondary.push({\n              items: [{\n                name: this.intl.t('entity.builda-price.projects.project.stage-payments.claimAndInvoice'),\n                iconName: 'check',\n                onClickButton: this.claimAndInvoiceStage\n              }]\n            });\n          }\n        }\n\n        // Edit details\n        if (payment.status !== 'CLAIMED') {\n          popOverActions.secondary.push({\n            items: [{\n              name: this.isEditable ? this.intl.t('entity.builda-price.projects.project.stage-payments.Edit details') : this.intl.t('entity.builda-price.projects.project.stage-payments.View details'),\n              iconName: 'pen',\n              onClickButton: this.openNameEditor\n            }]\n          });\n        }\n\n        // Constraints section\n        const constraintItems = [];\n        if (this.isEditable && payment.status !== 'CLAIMED') {\n          constraintItems.push({\n            name: this.intl.t('entity.builda-price.projects.project.stage-payments.Edit value'),\n            iconName: 'dollar-sign',\n            onClickButton: this.openValueEditor\n          }, {\n            name: this.intl.t('entity.builda-price.projects.project.stage-payments.Edit due date'),\n            iconName: 'calendar',\n            onClickButton: this.openDateEditor\n          });\n        }\n        constraintItems.push({\n          name: this.isEditable ? this.intl.t('entity.builda-price.projects.project.stage-payments.Edit included tasks') : this.intl.t('entity.builda-price.projects.project.stage-payments.View included tasks'),\n          iconName: 'tasks',\n          onClickButton: this.openTaskSelector\n        });\n        if (this.isEditable || currentStageLinkedQuestions.length) {\n          constraintItems.push({\n            name: this.isEditable ? this.intl.t('entity.builda-price.projects.project.stage-payments.Edit checklist') : this.intl.t('entity.builda-price.projects.project.stage-payments.View checklist'),\n            iconName: 'tasks',\n            onClickButton: this.openChecklist\n          });\n        }\n        if (this.isEditable && payment.status !== 'CLAIMED') {\n          constraintItems.push({\n            name: this.intl.t('entity.builda-price.projects.project.stage-payments.Delete stage'),\n            iconName: 'trash',\n            onClickButton: this.deleteIndividualStage\n          });\n        }\n        if (constraintItems.length) {\n          popOverActions.secondary.push({\n            items: constraintItems\n          });\n        }\n\n        // CLAIMED + editable actions\n        if (payment.status === 'CLAIMED' && this.isEditable) {\n          popOverActions.secondary.push({\n            sectionName: '',\n            items: [{\n              name: this.intl.t('entity.builda-price.projects.project.stage-payments.Revert to unclaimed'),\n              iconName: 'undo',\n              onClickButton: this.toggleStageStatus\n            }]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags(this.model.project.lastSuccessful.value, 'canManageInvoices')) popOverActions.secondary.push({\n            sectionName: '',\n            items: [{\n              name: this.intl.t('entity.builda-price.projects.project.stage-payments.createInvoice'),\n              iconName: 'file-invoice',\n              onClickButton: this.claimAndInvoiceStage\n            }]\n          });\n        }\n        const invoices = currentStageInvoices.map(invoice => {\n          const navigateToInvoice = (_row, _col) => {\n            const url = this.router.urlFor('entity.builda-price.operations.outgoing.invoices.invoice', invoice.id);\n            window.open(url, '_blank');\n          };\n          return {\n            name: this.intl.t(invoice.invoiceType === 'INVOICE' ? 'entity.builda-price.projects.project.stage-payments.viewInvoiceNumber' : 'entity.builda-price.projects.project.stage-payments.viewCreditNoteInvoiceNumber', {\n              invoiceNumber: invoice.invoiceNumber\n            }),\n            iconName: 'file-invoice',\n            onClickButton: navigateToInvoice\n          };\n        });\n        if (invoices.length && this.newFeatureFlags.includesFeatureFlags(this.model.project.lastSuccessful.value, 'canUseInvoices')) {\n          popOverActions.secondary.push({\n            sectionName: '',\n            items: invoices\n          });\n        }\n        // Add main popover row\n        rowData.push({\n          type: 'POPOVER',\n          currentStagePayment: payment,\n          invoices: currentStageInvoices,\n          currentStageLinkedTasks,\n          currentStageLinkedQuestions,\n          popOverActions,\n          value: payment.status === 'CLAIMED' ? this.intl.t('common.Rollback') : this.intl.t('common.Complete'),\n          colClass: 'align-middle col'\n        });\n\n        // Add checkbox or empty column\n        if (payment.status !== 'CLAIMED') {\n          rowData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle col',\n            onInputChange: this.onSelectStage,\n            currentStagePayment: payment,\n            disabled: !this.isEditable,\n            value: this.selectedStages.has(payment)\n          });\n        } else {\n          rowData.unshift({\n            value: '',\n            colClass: 'col'\n          });\n        }\n        return {\n          rowData,\n          rowClass: payment.status === 'CLAIMED' ? 'table-light' : ''\n        };\n      });\n    }\n    get bulkActionsStageValue() {\n      return this._bulkActionsStageValue ?? this.selectedStagesValue / this.selectedStages.size;\n    }\n    set bulkActionsStageValue(value) {\n      this._bulkActionsStageValue = value;\n    }\n    get remainingQuote() {\n      return this.model.stagePaymentsValues.lastSuccessful.value?.remainingQuote || 0;\n    }\n    get remainingQuoteValueInContextWithStages() {\n      if (this._computedRemainingQuoteValue !== null) {\n        return this._computedRemainingQuoteValue;\n      }\n      const eachRecordValue = this.remainingQuote / this.selectedStages.size;\n      const stagesValue = this.selectedStagesValue;\n      const adjustedSelectedStagesValue = stagesValue / this.selectedStages.size;\n      return eachRecordValue + adjustedSelectedStagesValue;\n    }\n    distributeRemainingQuoteAcrossStages() {\n      if (!this.remainingQuote || !this.selectedStages.size) return;\n      this._computedRemainingQuoteValue = this.remainingQuoteValueInContextWithStages;\n      this.bulkActionsStageValue = this._computedRemainingQuoteValue;\n    }\n    async toggleStageStatus(_row, col, _e) {\n      const changeset = (0, _emberChangeset.Changeset)(col.currentStagePayment, undefined, this.stagePaymentValidationMap);\n      if (col.currentStagePayment.status === 'CLAIMED') {\n        changeset.set('status', 'UNCLAIMED');\n      } else {\n        changeset.set('status', 'CLAIMED');\n        this.selectedStages.delete(col.currentStagePayment);\n      }\n      await this.saveCurrentStage.perform(changeset);\n    }\n    onSelectStage(_row, col, e) {\n      if (e.target.checked) {\n        this.selectedStages.add(col.currentStagePayment);\n      } else {\n        this.selectedStages.delete(col.currentStagePayment);\n      }\n\n      // eslint-disable-next-line no-self-assign\n      this.selectedStages = this.selectedStages;\n    }\n\n    // this is triggered when you select top level checkbox\n    onSelectAllStages(_row, col, e) {\n      if (e.target.checked) {\n        this.stagePayments.forEach(stage => {\n          if (stage.status !== 'CLAIMED') this.selectedStages.add(stage);\n        });\n      } else {\n        this.stagePayments.forEach(stage => {\n          if (stage.status !== 'CLAIMED') this.selectedStages.delete(stage);\n        });\n      }\n\n      // eslint-disable-next-line no-self-assign\n      this.selectedStages = this.selectedStages;\n    }\n    sortColumn(_row, col) {\n      if (this.sortBy !== col.value) {\n        this.sortBy = col.value;\n        this.sortDirection = 'asc';\n      } else {\n        if (this.sortDirection === 'asc') {\n          this.sortDirection = 'desc';\n        } else if (this.sortDirection === 'desc') {\n          this.sortBy = undefined;\n          this.sortDirection = undefined;\n        } else {\n          this.sortDirection = 'asc';\n        }\n      }\n    }\n    getSortIcon(column) {\n      if (this.sortBy === column && this.sortDirection) {\n        return this.sortDirection === 'desc' ? 'sort-down' : 'sort-up';\n      }\n      return undefined;\n    }\n    preventNegative(event) {\n      let value = event.target.value;\n      if (value <= 0) {\n        event.target.value = 1;\n      }\n    }\n    async deleteIndividualStage(_row, col, _e) {\n      try {\n        if (col.invoices.length) {\n          const links = col.invoices.map(inv => {\n            const url = this.router.urlFor('entity.builda-price.operations.outgoing.invoices.invoice', inv.id);\n            return `<a target=\"_blank\" href=\"${url}\">${inv.invoiceNumber}</a>`;\n          });\n          const joinedLinks = links.join(', ');\n          this.notifications.warning({\n            message: `${this.intl.t('entity.builda-price.projects.project.stage-payments.stagePaymentWithInvoicesDeleteWarn')} ${joinedLinks}`,\n            clearDuration: 5000\n          });\n          return;\n        }\n        await col.currentStagePayment.destroyRecord();\n        await Promise.all([this.model.stagePayments.perform(this.model.project, this.model.pageNumber, this.model.pageSize, this.model.sortBy, this.model.sortByDirection, this.model.status), this.model.stagePaymentsValues.perform(this.model.project)]);\n        this.notifications.success(this.intl.t('entity.builda-price.projects.project.stage-payments.successfullyDeletedStage', {\n          stage: 'stage'\n        }));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('entity.builda-price.projects.project.stage-payments.somethingWentWrongWhileDeletingStage', {\n            stage: 'stage'\n          }),\n          error\n        });\n      }\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${this.model.project.last.value.name}_${year}-${month}-${day}`;\n    }\n    toggleProperty(propertyName) {\n      this[propertyName] = !this[propertyName];\n    }\n    closeDownloadOptions() {\n      this.showDownloadOptions = false;\n      this.includeCheckListItems = false;\n      this.includeTasks = false;\n    }\n    async loadDataForEffectivePercentage() {\n      try {\n        const stagesFilter = {\n          and: [{\n            field: 'project',\n            op: 'EQ',\n            value: this.model.project.lastSuccessful.value.id\n          }, {\n            field: 'entity',\n            op: 'EQ',\n            value: this.sessionData.entity.id\n          }]\n        };\n        const quoteVersionValueFilter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: this.sessionData.entity.id\n          }, {\n            field: 'version',\n            op: 'EQ',\n            value: this.model.project.lastSuccessful.value.belongsTo('currentQuoteVersion').id()\n          }]\n        };\n        const [allStages, quoteVersionValues] = await Promise.all([this.store.query('stage-payment', {\n          filter: stagesFilter\n        }), this.store.query('quote-version-value', {\n          filter: quoteVersionValueFilter\n        })]);\n        const linkTaskToStagePaymentsFilter = {\n          and: [{\n            field: 'stagePayment',\n            op: 'IN',\n            value: allStages.map(stage => stage.id)\n          }]\n        };\n        const allStagesLinkedTasks = await this.store.query('link-task-to-stage-payment', {\n          filter: linkTaskToStagePaymentsFilter,\n          include: 'task'\n        }).then(res => res?.toArray());\n        return {\n          allStages,\n          quoteVersionValues,\n          allStagesLinkedTasks\n        };\n      } catch {\n        //\n      }\n    }\n    async claimAndInvoiceStage(_row, col, _e) {\n      try {\n        let glAccount = undefined;\n        const linkedTasks = this.store.peekAll('link-task-to-stage-payment').filter(link => link.belongsTo('stagePayment').id() === col.currentStagePayment.id);\n        let [invoiceOption, {\n          allStagesLinkedTasks\n        }] = await Promise.all([this.store.query('entity-invoice-option', {\n          filter: {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          }\n        }).then(res => res[0]), this.loadDataForEffectivePercentage(), this.store.query('gl-account', {\n          filter: {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          }\n        })]);\n        if (!invoiceOption) invoiceOption = await _entityInvoiceOption.default.defaultOptionsRecord(this.store, this.sessionData.entity).save();\n        const invoice = await this.store.createRecord('invoice', {\n          invoiceNumber: `${invoiceOption.invoicePrefix}${invoiceOption.nextInvoiceNumber}`,\n          entity: this.sessionData.entity,\n          stagePayment: col.currentStagePayment\n        }).save();\n        const allocations = [];\n        const linksByTask = _lodash.default.groupBy(allStagesLinkedTasks, link => link.belongsTo('task').id());\n        const stageLinks = allStagesLinkedTasks.filter(link => link.belongsTo('stagePayment').id() === col.currentStagePayment.id);\n        for (let link of stageLinks) {\n          const taskId = link.belongsTo('task').id();\n          const allocationPercentage = calculateEffectivePercentage(linksByTask[taskId], col.currentStagePayment);\n          allocations.push({\n            type: 'task',\n            id: taskId,\n            allocation: 'all',\n            checked: true,\n            indeterminate: false,\n            allocationPercentage\n          });\n        }\n        if (!linkedTasks.length) {\n          allocations.push({\n            type: 'project',\n            id: col.currentStagePayment.belongsTo('project').id(),\n            allocation: 'all',\n            checked: true,\n            indeterminate: false\n          });\n          glAccount = col.currentStagePayment.belongsTo('project').value().effectiveSalesGlAccount;\n        } else if (linkedTasks.length === 1) {\n          glAccount = linkedTasks[0].belongsTo('task').value().effectiveSalesGlAccount;\n        } else {\n          const tasks = linkedTasks.map(l => l.belongsTo('task').value());\n\n          // build parents for each task as array [[1, 1.1, 1.1.1], [2, 2.1, 2.1.1]]\n          const tasksParents = tasks.map(t => {\n            let currentTask = t;\n            const currentHierarchy = [];\n            while (currentTask) {\n              currentHierarchy.push(currentTask);\n              currentTask = currentTask.belongsTo('parent').value();\n            }\n            return currentHierarchy;\n          });\n\n          // Iterate each first task's hierarchy and check if every other task's hierarchy also contains that same parent.\n          // If no common parent is found, we'll fall back to the project's GL account.\n          let commonParent = null;\n          for (let task of tasksParents[0]) {\n            if (tasksParents.every(c => c.includes(task))) {\n              commonParent = task;\n              break;\n            }\n          }\n          if (commonParent) {\n            glAccount = commonParent.effectiveSalesGlAccount;\n          } else {\n            // fallback to project GL\n            glAccount = col.currentStagePayment.belongsTo('project').value().effectiveSalesGlAccount;\n          }\n        }\n        let description = `${col.currentStagePayment.belongsTo('project').value().name}:`;\n        description += ` Stage ${col.currentStagePayment.stageNumber}`;\n        if (col.currentStagePayment.name) description += ` - ${col.currentStagePayment.name}`;\n        await this.store.createRecord('invoice-item', {\n          description,\n          unitPrice: col.currentStagePayment.value,\n          quantity: 1,\n          entity: this.sessionData.entity,\n          taxRate: this.sessionData.entity.gst,\n          project: col.currentStagePayment.belongsTo('project').value(),\n          invoice,\n          sortIndex: 0,\n          glAccount,\n          stagePayment: col.currentStagePayment,\n          contractType: 'FIXED_PRICE'\n        }).save({\n          adapterOptions: {\n            meta: {\n              allocations,\n              contractType: 'FIXED_PRICE'\n            }\n          }\n        });\n\n        // change stage status to CLAIMED\n        col.currentStagePayment.status = 'CLAIMED';\n        await col.currentStagePayment.save();\n        this.router.transitionTo('entity.builda-price.operations.outgoing.invoices.invoice', invoice.id);\n      } catch (error) {\n        this.notifications.error({\n          message: 'Something went wrong while creating invoice',\n          error\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"showCreateStagesModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"numberOfStages\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"showNameEditor\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"showDateEditor\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"showValueEditor\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"pageNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"showChecklistModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"showTaskSelectorModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"selectedStages\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"showBulkDeleteStagesModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"showDeleteStageModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"currentStageLinkedTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"currentChecklist\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"allStageLinkedTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"remainingQuoteValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"useValueFromTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"currentStagePayment\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, \"showBulkActionsModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, \"showProjectLevelContractTermsModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor29 = _applyDecoratedDescriptor(_class.prototype, \"showDownloadOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor30 = _applyDecoratedDescriptor(_class.prototype, \"includeTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor31 = _applyDecoratedDescriptor(_class.prototype, \"includeCheckListItems\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"onChangePage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onChangePageSize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openNameEditor\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openNameEditor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openDateEditor\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openDateEditor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openValueEditor\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openValueEditor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openTaskSelector\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openTaskSelector\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openChecklist\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openChecklist\"), _class.prototype), _descriptor32 = _applyDecoratedDescriptor(_class.prototype, \"_bulkActionsStageValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor33 = _applyDecoratedDescriptor(_class.prototype, \"_computedRemainingQuoteValue\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"distributeRemainingQuoteAcrossStages\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"distributeRemainingQuoteAcrossStages\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleStageStatus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleStageStatus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectStage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectStage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onSelectAllStages\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onSelectAllStages\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"sortColumn\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"preventNegative\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"preventNegative\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deleteIndividualStage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteIndividualStage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleProperty\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleProperty\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeDownloadOptions\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeDownloadOptions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"claimAndInvoiceStage\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"claimAndInvoiceStage\"), _class.prototype), _class);\n  function calculateEffectivePercentage(linkedTasks, currentStagePayment) {\n    const data = linkedTasks.map(item => ({\n      percentage: item.completionPercentage,\n      stageId: item.belongsTo('stagePayment').id(),\n      dateCreated: item.belongsTo('stagePayment').value().dateCreated\n    })).sort((a, b) => b.percentage - a.percentage || new Date(b.dateCreated) - new Date(a.dateCreated));\n    const targetIndex = data.findIndex(d => d.stageId === currentStagePayment.id);\n    if (targetIndex === -1) return 0;\n    const currentPercentage = data[targetIndex].percentage;\n    const nextHighestPercentage = data[targetIndex + 1]?.percentage || 0;\n    return currentPercentage - nextHighestPercentage;\n  }\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"portal/routes/entity/builda-price/projects/project/tasks/index\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"portal/routes/entity/builda-price/projects/project/tasks/index\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"addingTasksFromTakeoff\", _descriptor7, this);\n      _initializerDefineProperty(this, \"addingTaskFromTemplate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"firstTaskName\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_taskList\", _descriptor0, this);\n      _defineProperty(this, \"saveNewTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskName, parentTask) {\n          try {\n            if (!taskName) {\n              this.notifications.warning(this.intl.t('shared.notification.Please provide a task name'));\n              return;\n            }\n            const newTask = this.store.createRecord('task', {\n              name: taskName,\n              project: this.model.project.last.value,\n              entity: this.sessionData.entity,\n              taskType: 'TASK'\n            });\n            if (parentTask) {\n              const childrenLength = parentTask.activeChildren.length;\n              newTask.parent = parentTask;\n              newTask.timesheetStatus = parentTask.timesheetStatus;\n              newTask.path = `${parentTask.path}.${String(childrenLength).padStart(3, '0')}`;\n              newTask.taskType = parentTask.taskType;\n            } else {\n              newTask.path = String(this.taskList.length).padStart(3, '0');\n            }\n            this.addTaskToList(newTask);\n            yield newTask.save();\n            this.firstTaskName = ''; // this only needs to happen rarely\n\n            return newTask;\n          } catch (error) {\n            this.reloadTasks();\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.Something went wrong creating a task'),\n              error\n            });\n          }\n        }\n      }), null, \"saveNewTask\", null));\n      _defineProperty(this, \"onTaskListUpdate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (newTaskList) {\n          try {\n            this.taskList = newTaskList;\n            yield this.buildaPrice.updateTaskList(newTaskList);\n\n            // once the JSON:API is fixed we can remove this code\n            const newTasks = function getTasksFromItems(items, tasks = []) {\n              items.forEach(item => {\n                tasks.push(item.task);\n                if (item.children?.length) getTasksFromItems(item.children, tasks);\n              });\n              return tasks;\n            }(newTaskList);\n            yield Promise.all(newTasks.map(async task => {\n              // clear the relationships manually\n              task.parent = null;\n              task.children = [];\n              // reload the relationships\n              await this.store.findRecord('task', task.id, {\n                reload: true\n              });\n            }));\n          } catch (error) {\n            this.reloadTasks();\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.Something went wrong updating tasks'),\n              error\n            });\n          }\n        }\n      }), {\n        keepLatest: true\n      }, \"onTaskListUpdate\", null));\n      _defineProperty(this, \"onLoadTaskTemplate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskTemplate, taskTemplateItems) {\n          this.addingTaskFromTemplate = false;\n          try {\n            yield this.buildaPrice.addTasksFromTemplate(this.model.project.last.value.id, {\n              name: taskTemplate.name,\n              items: taskTemplateItems.filter(t => !t.isDeleted)\n            });\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.Loaded template'));\n            this.taskList = yield this.model.taskList.perform(this.model.project.last.value.id);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.somethingWentWrongCreatingTasksFromATemplate'),\n              error\n            });\n          }\n        }\n      }), null, \"onLoadTaskTemplate\", null));\n      _defineProperty(this, \"onLoadTakeoff\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (items) {\n          try {\n            yield this.buildaPrice.addTasksFromFile(this.model.project.last.value.id, items);\n            const [parentTasks, _project] = yield Promise.all([this.store.query('task', {\n              filter: {\n                and: [{\n                  field: 'entity',\n                  op: 'EQ',\n                  value: this.sessionData.entity.id\n                }, {\n                  field: 'project',\n                  op: 'EQ',\n                  value: this.model.project.last.value.id\n                }, {\n                  field: 'status',\n                  op: 'IN',\n                  value: ['ACTIVE', 'DRAFT_CREATED']\n                }]\n              },\n              fields: {\n                tasks: '_meta.hasBudget,_meta.hasQuote,_meta.hasProducts,_meta.hasAttachments'\n              }\n            }).then(tasks => tasks.toArray().filter(t => !t.belongsTo('parent').id()).sort((a, b) => a.path - b.path)), this.store.findRecord('project', this.model.project.last.value.id, {\n              reload: true\n            })]);\n            yield this.model.project.last.value.loadTaskChanges();\n            const newTaskContainers = parentTasks.map(t => new _index.TaskContainer(t));\n            this.taskList = newTaskContainers;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.Successfully imported tasks'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.Something went wrong importing tasks'),\n              error\n            });\n          }\n        }\n      }), null, \"onLoadTakeoff\", null));\n    }\n    set taskList(value) {\n      this._taskList = value;\n    }\n    get taskList() {\n      if (this._taskList) return this._taskList;\n      return this.model.taskList.last.value;\n    }\n    get parentTasks() {\n      if (this.taskList.length <= 0) return [];\n      const parentTasks = this.taskList.map(container => container.task).sortBy('path');\n      return parentTasks;\n    }\n    get isLoading() {\n      return this.model.project.isRunning || this.model.taskList.isRunning;\n    }\n    get canManageTasks() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.project.last.value, 'canManageTasks');\n    }\n    addTaskToList(task) {\n      const newTaskContainer = new _index.TaskContainer(task);\n\n      // if we don't have a parent push to the top level of the list\n      if (!task.belongsTo('parent').value()) {\n        this.taskList.pushObject(newTaskContainer);\n        return;\n      }\n      const parentTaskId = task.belongsTo('parent').id();\n      let parentTc;\n      const findParentTc = taskList => {\n        taskList.forEach(container => {\n          if (container.task.id === parentTaskId) {\n            parentTc = container;\n          } else if (container.children) {\n            findParentTc(container.children);\n          }\n        });\n      };\n      findParentTc(this.taskList);\n      parentTc.children = [...(parentTc?.children || []), newTaskContainer];\n\n      // this commits the computed property to state - strange but ok\n      this._taskList = this.taskList;\n    }\n    onTaskNameInputKeypress(e) {\n      if (e.key === 'Enter') {\n        this.saveNewTask.perform(this.firstTaskName);\n      }\n    }\n    reloadTasks() {\n      this.taskList = null;\n\n      // unloadAll is very slow for some reason\n      const tasks = this.store.peekAll('task');\n      tasks.forEach(task => task.unloadRecord());\n      this.model.refresh();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"addingTasksFromTakeoff\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"addingTaskFromTemplate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"firstTaskName\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_taskList\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onTaskNameInputKeypress\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onTaskNameInputKeypress\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get tabs() {\n      const tabs = [];\n      if (this.newFeatureFlags.includesSomeFeatureFlags(this.model.task.last.value, 'canUseTaskBudgets', 'canUseTaskQuotes')) tabs.push({\n        name: this.intl.t('common.Financials'),\n        route: 'entity.builda-price.projects.project.tasks.task.financials'\n      });\n      tabs.push({\n        name: this.intl.t('common.Settings'),\n        route: 'entity.builda-price.projects.project.tasks.task.settings'\n      });\n      if (this.newFeatureFlags.includesSomeFeatureFlags(this.model.task.last.value, 'canUseUsers', 'canUseWorkers', 'canUseSubcontractors')) tabs.push({\n        name: this.intl.t('common.People'),\n        route: 'entity.builda-price.projects.project.tasks.task.people'\n      });\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseFileStorage')) tabs.push({\n        name: this.intl.t('common.Documents'),\n        route: 'entity.builda-price.projects.project.tasks.task.documents'\n      });\n      if (this.newFeatureFlags.includesSomeFeatureFlags(this.model.task.last.value, 'canUseProducts')) tabs.push({\n        name: this.intl.t('common.Products'),\n        route: 'entity.builda-price.projects.project.tasks.task.products'\n      });\n      return tabs;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: 'entity.builda-price.projects.project.tasks',\n        pageTitle: this.intl.t('common.Tasks')\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: 'entity.builda-price.projects.project.tasks.task',\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value().name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      })(this.model.task.last.value);\n      taskList.push({\n        route: 'entity.builda-price.projects.project.tasks.task',\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/documents\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n    }\n    get isLoading() {\n      return this.model.task.last.isRunning || this.model.attachments.isRunning;\n    }\n    get task() {\n      return this.model.task.last.value;\n    }\n    get project() {\n      return this.task?.belongsTo('project').value();\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.task, 'canManageFileStorage');\n    }\n    get attachments() {\n      // if you can edit the attachments use the relationship directly instead of the model result\n      if (this.isEditable) return this.model.task.last.value.myAttachments;\n      return this.model.attachments.last.value;\n    }\n    async onUploadComplete({\n      attachments,\n      validationErrors,\n      error\n    }) {\n      try {\n        if (error) throw error;\n        const attachmentResults = await Promise.all(attachments.map(a => a.save({\n          adapterOptions: {\n            meta: {\n              data: a.data\n            }\n          }\n        })));\n        await Promise.all(attachmentResults.map(async attachment => {\n          this.store.createRecord('link-attachment-to-task', {\n            task: this.task,\n            attachment\n          }).save();\n        }));\n        validationErrors.forEach(error => this.notifications.error(error));\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('shared.notification.somethingWentWrongWhileSavingAttachments'),\n          error: error\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onUploadComplete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUploadComplete\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/financials\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"portal/utils/profit-margin\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _service, _object, _profitMargin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"portal/utils/profit-margin\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      // this validator is to validate only profit percentages on Quote data\n      _defineProperty(this, \"validatePercentages\", currentPercentages => (key, newVal, oldVal, _changes, _content) => {\n        if (currentPercentages[key].type === 'MARGIN') {\n          const percentage = newVal || oldVal;\n          if (percentage === null) return true;\n          return percentage < 1 || this.intl.t('validation.Please input a value less than 100');\n        }\n        return true;\n      });\n      // this validator can be used when at least one of any of the form inputs are required\n      _defineProperty(this, \"validateContent\", (_key, newVal, _oldVal, changes, content) => {\n        if (content.labour === 0 && !changes.labour && content.materials === 0 && !changes.materials && content.subcontractors === 0 && !changes.subcontractors && content.sums === 0 && !changes.sums) {\n          // man hours is only on the budget form\n          if (content.manHours != null) {\n            if (content.manHours === 0 && !changes.manHours) return this.intl.t('validation.Please enter a value');\n          } else {\n            return this.intl.t('validation.Please enter a value');\n          }\n        }\n      });\n      _initializerDefineProperty(this, \"updateBudgetData\", _descriptor4, this);\n      _defineProperty(this, \"budgetValidationMap\", {\n        materials: this.validateContent,\n        subcontractors: this.validateContent,\n        labour: this.validateContent,\n        sums: this.validateContent,\n        manHours: this.validateContent\n      });\n      _initializerDefineProperty(this, \"updateQuoteData\", _descriptor5, this);\n      _defineProperty(this, \"updateBudget\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (budgetChangeset) {\n          try {\n            yield budgetChangeset.validate();\n            if (budgetChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.tasks.task.financials.Please complete the budget information'));\n              return;\n            }\n            budgetChangeset.execute();\n            const diff = Object.entries(this.updateBudgetData).reduce((diff, [key, value]) => ({\n              ...diff,\n              [`${key}Diff`]: value - (this.task.budget?.[key] || 0)\n            }), {});\n            yield this.task.update({\n              budget: diff\n            });\n            this.updateBudgetData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.task.financials.Something went wrong updating the budget'),\n              error\n            });\n          }\n        }\n      }), null, \"updateBudget\", null));\n      _defineProperty(this, \"updateQuote\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (quoteChangeset) {\n          try {\n            yield quoteChangeset.validate();\n            if (quoteChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.tasks.task.financials.Please complete the quote information'));\n              return;\n            }\n            quoteChangeset.execute();\n            const quoteData = {\n              manHours: this.task.draftBudget.manHours,\n              labour: this.updateQuoteData.labour,\n              materials: this.updateQuoteData.materials,\n              subcontractors: this.updateQuoteData.subcontractors,\n              sums: this.updateQuoteData.sums\n            };\n            const diff = Object.entries(quoteData).reduce((diff, [key, value]) => ({\n              ...diff,\n              [`${key}Diff`]: (value || 0) - (this.task.quote?.[key] || 0)\n            }), {});\n            yield this.task.update({\n              quote: diff\n            });\n            this.updateQuoteData = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.task.financials.Something went wrong updating the quote'),\n              error\n            });\n          }\n        }\n      }), null, \"updateQuote\", null));\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.loadQuote.isRunning || this.model.loadBudget.isRunning || this.model.loadProfitMargins.isRunning;\n    }\n    get task() {\n      return this.model.task.last.value;\n    }\n    get hasDraftBudgetChanges() {\n      return Boolean(this.task.draftBudgetChange);\n    }\n    get hasDraftQuoteChanges() {\n      return Boolean(this.task.draftQuoteChange);\n    }\n    get hasBothDraftBudgetAndQuoteChanges() {\n      return this.hasDraftBudgetChanges && this.hasDraftQuoteChanges;\n    }\n    get hasBudget() {\n      return [this.task.totalDraftBudgetManHours, this.task.totalDraftBudgetLabour, this.task.totalDraftBudgetMaterials, this.task.totalDraftBudgetSubcontractors, this.task.totalDraftBudgetSums].some(x => x);\n    }\n    get project() {\n      return this.model.task.last.value?.belongsTo('project').value();\n    }\n    get canManageProjectBudgetAndQuote() {\n      return this.newFeatureFlags.includesFeatureFlags(this.project, 'canManageBudgetVersions', 'canManageQuoteVersions');\n    }\n    get canManageProjectBudget() {\n      return this.newFeatureFlags.includesFeatureFlags(this.project, 'canManageBudgetVersions');\n    }\n    get canManageProjectQuote() {\n      return this.newFeatureFlags.includesFeatureFlags(this.project, 'canManageQuoteVersions');\n    }\n    get canManageBudget() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageTaskBudgets');\n    }\n    get canManageQuote() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageTaskQuotes');\n    }\n    get canViewBudget() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseTaskBudgets');\n    }\n    get canViewQuote() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseTaskQuotes');\n    }\n    get totalDraftBudgetCurrency() {\n      return this.task.draftBudgetLabour + this.task.draftBudgetMaterials + this.task.draftBudgetSubcontractors + this.task.draftBudgetSums || 0;\n    }\n    get totalDraftChildrenBudgetCurrency() {\n      return this.task.childrenDraftBudgetLabour + this.task.childrenDraftBudgetMaterials + this.task.childrenDraftBudgetSubcontractors + this.task.childrenDraftBudgetSums || 0;\n    }\n    get totalTotalDraftBudgetCurrency() {\n      return this.task.totalDraftBudgetLabour + this.task.totalDraftBudgetMaterials + this.task.totalDraftBudgetSubcontractors + this.task.totalDraftBudgetSums || 0;\n    }\n    get totalDraftQuoteCurrency() {\n      return this.task.draftQuoteLabour + this.task.draftQuoteMaterials + this.task.draftQuoteSubcontractors + this.task.draftQuoteSums || 0;\n    }\n    get totalDraftChildrenQuoteCurrency() {\n      return this.task.childrenDraftQuoteLabour + this.task.childrenDraftQuoteMaterials + this.task.childrenDraftQuoteSubcontractors + this.task.childrenDraftQuoteSums || 0;\n    }\n    get totalTotalDraftQuoteCurrency() {\n      return this.task.totalDraftQuoteLabour + this.task.totalDraftQuoteMaterials + this.task.totalDraftQuoteSubcontractors + this.task.totalDraftQuoteSums || 0;\n    }\n    get totalProductCurrency() {\n      let totalAmount = 0;\n      this.task.totalProducts.forEach(p => {\n        if (p.unitPrice && p.quantity) totalAmount += p.unitPrice * p.quantity;\n      });\n      return totalAmount;\n    }\n    setMaterialBudgetFromProducts(budgetModel) {\n      budgetModel.set('materials', this.totalProductCurrency);\n      budgetModel.set(`materialsTotal`, this.totalProductCurrency);\n      const total = budgetModel.labourTotal + budgetModel.materialsTotal + budgetModel.subcontractorsTotal + budgetModel.sumsTotal;\n      budgetModel.set('total', total);\n    }\n    openUpdateBudgetForm() {\n      const manHoursTotal = this.task.totalDraftBudgetManHours;\n      const labourTotal = this.task.totalDraftBudgetLabour;\n      const materialsTotal = this.task.totalDraftBudgetMaterials;\n      const subcontractorsTotal = this.task.totalDraftBudgetSubcontractors;\n      const sumsTotal = this.task.totalDraftBudgetSums;\n\n      // TODO refactor this to not pass state to the ember-changeset\n      this.updateBudgetData = {\n        manHours: this.task.draftBudget.manHours,\n        manHoursTotal,\n        labour: this.task.draftBudget.labour,\n        labourTotal,\n        materials: this.task.draftBudget.materials,\n        materialsTotal,\n        subcontractors: this.task.draftBudget.subcontractors,\n        subcontractorsTotal,\n        sums: this.task.draftBudget.sums,\n        sumsTotal,\n        total: labourTotal + materialsTotal + subcontractorsTotal + sumsTotal\n      };\n    }\n    budgetValueChanged(budgetModel, fieldName, value) {\n      const lineTotal = value + this.task.childrenDraftBudget[fieldName];\n      budgetModel.set(`${fieldName}Total`, lineTotal);\n      const total = budgetModel.labourTotal + budgetModel.materialsTotal + budgetModel.subcontractorsTotal + budgetModel.sumsTotal;\n      budgetModel.set('total', total);\n    }\n    get hasQuote() {\n      return [this.task.totalDraftQuoteManHours, this.task.totalDraftQuoteLabour, this.task.totalDraftQuoteMaterials, this.task.totalDraftQuoteSubcontractors, this.task.totalDraftQuoteSums].some(x => x);\n    }\n    openUpdateQuoteForm() {\n      const labourTotal = this.task.totalDraftQuoteLabour;\n      const materialsTotal = this.task.totalDraftQuoteMaterials;\n      const subcontractorsTotal = this.task.totalDraftQuoteSubcontractors;\n      const sumsTotal = this.task.totalDraftQuoteSums;\n\n      // TODO refactor this to not pass state to the ember-changeset\n      this.updateQuoteData = {\n        labour: this.calculateInitialQuoteValues('labour'),\n        labourTotal,\n        materials: this.calculateInitialQuoteValues('materials'),\n        materialsTotal,\n        subcontractors: this.calculateInitialQuoteValues('subcontractors'),\n        subcontractorsTotal,\n        sums: this.calculateInitialQuoteValues('sums'),\n        sumsTotal,\n        labourPercentage: this.calculateInitialProfitPercentages('labour'),\n        materialsPercentage: this.calculateInitialProfitPercentages('materials'),\n        subcontractorsPercentage: this.calculateInitialProfitPercentages('subcontractors'),\n        sumsPercentage: this.calculateInitialProfitPercentages('sums'),\n        total: labourTotal + materialsTotal + subcontractorsTotal + sumsTotal\n      };\n    }\n    get quoteValidationMap() {\n      return {\n        materials: this.validateContent,\n        subcontractors: this.validateContent,\n        labour: this.validateContent,\n        sums: this.validateContent,\n        labourPercentage: this.validatePercentages(this.task.effectiveProfitMargin),\n        materialsPercentage: this.validatePercentages(this.task.effectiveProfitMargin),\n        subcontractorsPercentage: this.validatePercentages(this.task.effectiveProfitMargin),\n        sumsPercentage: this.validatePercentages(this.task.effectiveProfitMargin)\n      };\n    }\n    // calculate quotes values based on profit type & percentages\n    async profitMarginChanged(quoteModel, fieldName, value) {\n      const draftBudget = this.task.draftBudget;\n      const expectedProfitType = this.task.effectiveProfitMargin[`${fieldName}Percentage`];\n      const calculatedValue = (0, _profitMargin.calculateValue)(expectedProfitType.type, draftBudget[fieldName], Number(value));\n      quoteModel.set(fieldName, calculatedValue);\n      const lineTotal = calculatedValue + this.task.childrenDraftQuote[fieldName];\n      quoteModel.set(`${fieldName}Total`, lineTotal);\n      const total = quoteModel.labourTotal + quoteModel.materialsTotal + quoteModel.subcontractorsTotal + quoteModel.sumsTotal;\n      quoteModel.set('total', total);\n    }\n\n    // calculate percentages values based on quote value & profit type\n    async quoteValueChanged(quoteModel, fieldName, value) {\n      // first: update line total and quote total\n      const lineTotal = value + this.task.childrenDraftQuote[fieldName];\n      quoteModel.set(`${fieldName}Total`, lineTotal);\n      const total = quoteModel.labourTotal + quoteModel.materialsTotal + quoteModel.subcontractorsTotal + quoteModel.sumsTotal;\n      quoteModel.set('total', total);\n\n      // second: update margin value\n      const draftBudget = this.task.draftBudget;\n      const expectedProfitType = this.task.effectiveProfitMargin[`${fieldName}Percentage`];\n\n      // if budget or input value is zero, set value to zero\n      if (!draftBudget?.[fieldName]) {\n        quoteModel.set(`${fieldName}Percentage`, 0);\n        return;\n      }\n      const calculatedValue = (0, _profitMargin.calculatePercentage)(expectedProfitType.type, draftBudget[fieldName], Number(value));\n      quoteModel.set(`${fieldName}Percentage`, calculatedValue);\n    }\n\n    // calculate quote values when opening modal\n    calculateInitialQuoteValues(fieldName) {\n      const draftQuote = this.task.draftQuote;\n      const draftBudget = this.task.draftBudget;\n      const expectedProfitType = this.task.effectiveProfitMargin[`${fieldName}Percentage`];\n\n      // if quote value is there return quote value\n      if (draftQuote?.[fieldName]) return draftQuote[fieldName];\n\n      // if budget is not there return zero\n      if (!draftBudget?.[fieldName]) return 0;\n      return (0, _profitMargin.calculateValue)(expectedProfitType.type, draftBudget[fieldName], expectedProfitType.value);\n    }\n\n    // calculate percentages when opening modal\n    calculateInitialProfitPercentages(fieldName) {\n      const draftQuote = this.task.draftQuote;\n      const draftBudget = this.task.draftBudget;\n      const profitMargin = this.task.belongsTo('profitMargin').value();\n      const defaultProfitMargin = this.task.defaultPercentageValues;\n      const expectedProfitType = this.task.effectiveProfitMargin[`${fieldName}Percentage`];\n\n      // if budget is not there return 0\n      if (!draftBudget?.[fieldName]) return 0;\n\n      // if quote value exists calculate percentages\n      if (draftQuote[fieldName]) {\n        return (0, _profitMargin.calculatePercentage)(expectedProfitType.type, draftBudget[fieldName], draftQuote[fieldName]);\n      }\n      return profitMargin?.[`${fieldName}Percentage`] || defaultProfitMargin?.[`${fieldName}Percentage`].value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setMaterialBudgetFromProducts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setMaterialBudgetFromProducts\"), _class2.prototype), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"updateBudgetData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"openUpdateBudgetForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openUpdateBudgetForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"budgetValueChanged\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"budgetValueChanged\"), _class2.prototype), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"updateQuoteData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"openUpdateQuoteForm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openUpdateQuoteForm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"profitMarginChanged\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"profitMarginChanged\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"quoteValueChanged\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"quoteValueChanged\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get canManageTask() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageTasks');\n    }\n    get tabs() {\n      const tabsArray = [];\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseUsers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Users'),\n          route: 'entity.builda-price.projects.project.tasks.task.people.users',\n          icon: 'user'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseClientPortal', 'canUseUsers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Clients'),\n          route: 'entity.builda-price.projects.project.tasks.task.people.clients',\n          icon: 'user-tie'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseSubcontractors')) {\n        tabsArray.push({\n          name: this.intl.t('common.Subcontractors'),\n          route: 'entity.builda-price.projects.project.tasks.task.people.subcontractors',\n          icon: 'hard-hat'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canUseWorkers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Workers'),\n          route: 'entity.builda-price.projects.project.tasks.task.people.workers',\n          icon: 'users'\n        });\n      }\n      return tabsArray;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/client\", \"portal/routes/entity/builda-price/projects/project/people/clients/client\"], function (_exports, _asyncArrowRuntime, _controller, _service, _object, _tracking, _client, _client2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9; // import { tracked } from '@glimmer/tracking';\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/client\",0,\"portal/routes/entity/builda-price/projects/project/people/clients/client\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.client.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByATaskProjectOrCompanyPermission'));\n      _initializerDefineProperty(this, \"_taskPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor9, this);\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.tasks.task.people.clients.client.removeClientFromTaskConfirm'))) return;\n\n            // remove all permissions for this user and this task\n            const taskAttributes = yield this.store.simpleQuery('user-task-attribute', {\n              user: this.model.client.last.value.id,\n              task: this.model.task.last.value.id\n            }).then(utas => utas.toArray());\n            yield Promise.all([...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.clients`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.clients.client.Removed client from task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the client'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canViewBudgetFinancialReports) {\n              _client.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _client.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgets) {\n              _client.canViewBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _client.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _client.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _client.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewFileStorage) {\n              _client.canViewFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _client.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _client.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuotes) {\n              _client.canViewQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgress) {\n              _client.canViewProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _client.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _client.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewClientReports) {\n              _client.canViewClientReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _client.canViewClientReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributes([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.task.isRunning || this.model.client.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        [this.intl.t('common.Cost to complete')]: [this.projectCanViewClientReports || this.permissionsChangeset.canViewClientReports || (this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports) && (this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports) && (this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports) && (this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports)]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.clients`,\n        pageTitle: this.intl.t('common.Clients')\n      }, {\n        route: `${this.model.basePath}.clients`,\n        model: this.model.client.last.value.id,\n        pageTitle: this.model.client.last.value.fullName\n      }];\n      return paths;\n    }\n    get taskPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewProgress].filter(attribute => attribute).length;\n    }\n    get taskPermissionsVisible() {\n      if (this._taskPermissionsVisible != null) return this._taskPermissionsVisible;\n      return this.taskPermissionsCount > 0;\n    }\n    set taskPermissionsVisible(value) {\n      this._taskPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports, this.permissionsChangeset.canViewClientReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get _parentTaskIds() {\n      if (!this.model.task.last.value) return [];\n      const ids = [];\n      const getTaskId = task => {\n        // not loaded yet\n        if (!task) return;\n        ids.push(task.id);\n        if (task.belongsTo('parent').value()) getTaskId(task.belongsTo('parent').value());\n      };\n      getTaskId(this.model.task.last.value.belongsTo('parent').value());\n      return ids;\n    }\n    get projectCanViewTasks() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewTasksAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewTasksAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgets() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewBudgetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewBudgetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuotes() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewQuotesAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewQuotesAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgress() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewProgressAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewProgressAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewFileStorage() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewFileStorageAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewFileStorageAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewBudgetReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewBudgetReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetLabourHourReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewBudgetLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewBudgetLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuoteReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewQuoteReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewQuoteReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewCostReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewCostReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostLabourHourReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewCostLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewCostLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewChargeupReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewChargeupReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewChargeupReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgressReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewProgressReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewProgressReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewInvoicingReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewInvoicingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewInvoicingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewClientReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewClientReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewClientReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewSchedulingReports() {\n      const projectCan = this.model.client.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._client2.canViewSchedulingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.client.last.value.includesClaimsAboutTask(id, ..._client.canViewSchedulingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    async handleAttributes(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: this.model.client.last.value.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user: this.model.client.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_taskPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/clients/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToTaskAttributes = ['canViewTasks', 'hasClientRole'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredClients', 'model.clients.last.value.taskClients', 'searchString.length'), _dec2 = (0, _object.computed)('model.clients.last.value.unassignedClients'), _dec3 = (0, _object.computed)('model.clients.last.value.taskClients'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingClientToTask\", _descriptor8, this);\n      _initializerDefineProperty(this, \"clientToAddToTask\", _descriptor9, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByATaskProjectOrCompanyPermission'));\n      _defineProperty(this, \"addClientToTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForClient(this.clientToAddToTask, addToTaskAttributes, []);\n            this.isAddingClientToTask = false;\n            this.clientToAddToTask = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.clients.Added client to task'));\n            yield Promise.all([this.model.clients.perform(this.model.task)]);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding client'),\n              error\n            });\n          }\n        }\n      }), null, \"addClientToTask\", null));\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.clients.isRunning || this.model.project.isRunning;\n    }\n    get filteredClients() {\n      const result = this.model.clients.last.value.taskClients?.filter(user => {\n        const matchString = `${user.firstName}${user.lastName}${user.email}${user.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get unassignedClients() {\n      if (!this.model.clients.last.value) return [];\n      return this.model.clients.last.value.unassignedClients;\n    }\n    get taskClients() {\n      if (!this.model.clients.last.value) return [];\n      return this.model.clients.last.value.taskClients;\n    }\n    async handleAttributesForClient(client, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: client.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user: client,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingClientToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"clientToAddToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredClients\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredClients\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedClients\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedClients\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"taskClients\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"taskClients\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/subcontractors/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToTaskAttributes = ['canViewTasks', 'hasSubcontractorRole'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredSubcontractors', 'model.subcontractors.last.value.taskSubcontractors', 'searchString.length'), _dec2 = (0, _object.computed)('model.subcontractors.last.value.unassignedSubcontractors'), _dec3 = (0, _object.computed)('model.subcontractors.last.value.taskSubcontractors'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingSubcontractorToTask\", _descriptor8, this);\n      _initializerDefineProperty(this, \"subcontractorToAddToTask\", _descriptor9, this);\n      _defineProperty(this, \"addSubcontractorToTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForSubcontractor(this.subcontractorToAddToTask, addToTaskAttributes, []);\n            this.isAddingSubcontractorToTask = false;\n            this.subcontractorToAddToTask = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.subcontractors.Added subcontractor to task'));\n            yield Promise.all([this.model.subcontractors.perform(this.model.task)]);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding user'),\n              error\n            });\n          }\n        }\n      }), null, \"addSubcontractorToTask\", null));\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.subcontractors.isRunning || this.model.project.isRunning;\n    }\n    get filteredSubcontractors() {\n      const result = this.model.subcontractors.last.value.taskSubcontractors?.filter(subcontractor => {\n        const matchString = `${subcontractor.firstName}${subcontractor.lastName}${subcontractor.email}${subcontractor.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get unassignedSubcontractors() {\n      if (!this.model.subcontractors.last.value) return [];\n      return this.model.subcontractors.last.value.unassignedSubcontractors;\n    }\n    get taskSubcontractors() {\n      if (!this.model.subcontractors.last.value) return [];\n      return this.model.subcontractors.last.value.taskSubcontractors;\n    }\n    async handleAttributesForSubcontractor(subcontractor, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: subcontractor.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user: subcontractor,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingSubcontractorToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorToAddToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredSubcontractors\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredSubcontractors\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedSubcontractors\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedSubcontractors\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"taskSubcontractors\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"taskSubcontractors\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor\", \"portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor\", \"portal/routes/entity/settings/people/subcontractors/subcontractor\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _subcontractor, _subcontractor2, _subcontractor3) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor\",0,\"portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor\",0,\"portal/routes/entity/settings/people/subcontractors/subcontractor\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.subcontractor.last.value.{id,fullName}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByATaskProjectOrCompanyPermission'));\n      _initializerDefineProperty(this, \"_taskPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor0, this);\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canManageBudgets) {\n              _subcontractor.canManageBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProducts) {\n              _subcontractor.canManageProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageFileStorage) {\n              _subcontractor.canManageFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageQuotes) {\n              _subcontractor.canManageQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProgress) {\n              _subcontractor.canManageProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageSchedulingReports) {\n              _subcontractor.canManageSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTasks) {\n              _subcontractor.canManageTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTimesheets) {\n              _subcontractor.canManageTimesheetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canManageTimesheetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              _subcontractor.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _subcontractor.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgets) {\n              _subcontractor.canViewBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _subcontractor.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _subcontractor.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _subcontractor.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProducts) {\n              _subcontractor.canViewProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewFileStorage) {\n              _subcontractor.canViewFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _subcontractor.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _subcontractor.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuotes) {\n              _subcontractor.canViewQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgress) {\n              _subcontractor.canViewProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _subcontractor.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _subcontractor.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _subcontractor.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributes([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.removeSubcontractorFromTaskConfirm'))) return;\n\n            // remove all permissions for this user and this task\n            const taskAttributes = yield this.store.simpleQuery('user-task-attribute', {\n              user: this.model.subcontractor.last.value.id,\n              task: this.model.task.last.value.id\n            }).then(utas => utas.toArray());\n            yield Promise.all([...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.subcontractors`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.Removed subcontractors from task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.somethingWentWrongRemovingTheSubcontractors'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.task.isRunning || this.model.subcontractor.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Costs')]: [(this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports) && (this.projectCanManageTimesheets || this.permissionsChangeset.canManageTimesheets) && (this.entityCanViewBills || this.entityCanManageBills)],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        [this.intl.t('common.Cost to complete')]: [this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.subcontractors`,\n        pageTitle: 'Subcontractor'\n      }, {\n        route: `${this.model.basePath}.subcontractors`,\n        model: this.model.subcontractor.last.value.id,\n        pageTitle: this.model.subcontractor.last.value.fullName\n      }];\n      return paths;\n    }\n    get taskPermissionsCount() {\n      return [this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewProgress].filter(attribute => attribute).length;\n    }\n    get taskPermissionsVisible() {\n      if (this._taskPermissionsVisible != null) return this._taskPermissionsVisible;\n      return this.taskPermissionsCount > 0;\n    }\n    set taskPermissionsVisible(value) {\n      this._taskPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canManageSchedulingReports, this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      return [this.permissionsChangeset.canManageTimesheets].filter(attribute => attribute).length;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get _parentTaskIds() {\n      if (!this.model.task.last.value) return [];\n      const ids = [];\n      const getTaskId = task => {\n        // not loaded yet\n        if (!task) return;\n        ids.push(task.id);\n        if (task.belongsTo('parent').value()) getTaskId(task.belongsTo('parent').value());\n      };\n      getTaskId(this.model.task.last.value.belongsTo('parent').value());\n      return ids;\n    }\n    get entityCanViewBills() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewBillsAttributes);\n    }\n    get entityCanManageBills() {\n      return this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageBillsAttributes);\n    }\n    get projectCanManageTimesheets() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageTimesheetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageTimesheetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageTimesheetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewTasks() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewTasksAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewTasksAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewTasksAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageTasks() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageTasksAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageTasksAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageTasksAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgets() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewBudgetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewBudgetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewBudgetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageBudgets() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageBudgetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageBudgetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageBudgetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuotes() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewQuotesAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewQuotesAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewQuotesAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgress() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewProgressAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewProgressAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewProgressAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageProgress() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageProgressAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageProgressAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageProgressAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageQuotes() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageQuotesAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageQuotesAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageQuotesAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProducts() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewProductsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewProductsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewProductsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewFileStorage() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewFileStorageAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewFileStorageAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewFileStorageAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageProducts() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageProductsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageProductsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewProductsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageFileStorage() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageFileStorageAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageFileStorageAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewFileStorageAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewBudgetReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewBudgetReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewBudgetReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetLabourHourReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewBudgetLabourHourReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewBudgetLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewBudgetLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuoteReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewQuoteReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewQuoteReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewQuoteReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewCostReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewCostReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewCostReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostLabourHourReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewCostLabourHourReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewCostLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewCostLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewChargeupReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewChargeupReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewChargeupReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewChargeupReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgressReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewProgressReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewProgressReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewProgressReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewSchedulingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewSchedulingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewSchedulingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewSchedulingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewInvoicingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canViewInvoicingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canViewInvoicingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canViewInvoicingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageSchedulingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.subcontractor.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._subcontractor3.canManageSchedulingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.subcontractor.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._subcontractor2.canManageSchedulingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.subcontractor.last.value.includesClaimsAboutTask(id, ..._subcontractor.canManageSchedulingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    async handleAttributes(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: this.model.subcontractor.last.value.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user: this.model.subcontractor.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_taskPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/users/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const addToTaskAttributes = ['canViewTasks'];\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredUsers', 'model.users.last.value.taskUsers', 'searchString.length'), _dec2 = (0, _object.computed)('model.users.last.value.unassignedUsers'), _dec3 = (0, _object.computed)('model.users.last.value.taskUsers'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingUserToTask\", _descriptor8, this);\n      _initializerDefineProperty(this, \"userToAddToTask\", _descriptor9, this);\n      _defineProperty(this, \"addUserToTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleAttributesForUser(this.userToAddToTask, addToTaskAttributes, []);\n            this.isAddingUserToTask = false;\n            this.userToAddToTask = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.users.Added user to task'));\n            yield Promise.all([this.model.users.perform(this.model.task)]);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding user'),\n              error\n            });\n          }\n        }\n      }), null, \"addUserToTask\", null));\n    }\n    get filteredUsers() {\n      const result = this.model.users.last.value.taskUsers?.filter(user => {\n        const matchString = `${user.firstName}${user.lastName}${user.email}${user.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get unassignedUsers() {\n      if (!this.model.users.last.value) return [];\n      return this.model.users.last.value.unassignedUsers;\n    }\n    get taskUsers() {\n      if (!this.model.users.last.value) return [];\n      return this.model.users.last.value.taskUsers;\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.users.isRunning || this.model.project.isRunning;\n    }\n    async handleAttributesForUser(user, attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: user.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingUserToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"userToAddToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredUsers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredUsers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedUsers\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedUsers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"taskUsers\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"taskUsers\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"portal/routes/entity/builda-price/projects/project/tasks/task/people/users/user\", \"portal/routes/entity/builda-price/projects/project/people/users/user\", \"portal/routes/entity/settings/people/users/user\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _user, _user2, _user3) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/routes/entity/builda-price/projects/project/tasks/task/people/users/user\",0,\"portal/routes/entity/builda-price/projects/project/people/users/user\",0,\"portal/routes/entity/settings/people/users/user\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_taskPermissionsVisible\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor0, this);\n      _defineProperty(this, \"permissionSupersededMessage\", this.intl.t('shared.notification.thisOptionIsSupersededByATaskProjectOrCompanyPermission'));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.tasks.task.people.users.user.removeUserFromTaskConfirm'))) return;\n\n            // remove all permissions for this user and this task\n            const taskAttributes = yield this.store.simpleQuery('user-task-attribute', {\n              user: this.model.user.last.value.id,\n              task: this.model.task.last.value.id\n            }).then(utas => utas.toArray());\n            yield Promise.all([...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.users`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.users.user.Removed user from task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the user'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const attributesToAdd = new Set();\n            const attributesToRemove = new Set();\n            if (changeset.canManageBudgets) {\n              _user.canManageBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProducts) {\n              _user.canManageProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageFileStorage) {\n              _user.canManageFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageQuotes) {\n              _user.canManageQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageSchedulingReports) {\n              _user.canManageSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTasks) {\n              _user.canManageTasksAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageTasksAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageTimesheets) {\n              _user.canManageTimesheetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageTimesheetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              _user.canViewBudgetReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              _user.canViewBudgetLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewBudgets) {\n              _user.canViewBudgetsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewBudgetsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgress) {\n              _user.canViewProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canManageProgress) {\n              _user.canManageProgressAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canManageProgressAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewChargeupReports) {\n              _user.canViewChargeupReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewChargeupReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              _user.canViewCostReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewCostReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              _user.canViewCostLabourHourReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewCostLabourHourReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProducts) {\n              _user.canViewProductsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProductsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewFileStorage) {\n              _user.canViewFileStorageAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewFileStorageAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewProgressReports) {\n              _user.canViewProgressReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewProgressReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuoteReports) {\n              _user.canViewQuoteReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewQuoteReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewQuotes) {\n              _user.canViewQuotesAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewQuotesAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewSchedulingReports) {\n              _user.canViewSchedulingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewSchedulingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            if (changeset.canViewInvoicingReports) {\n              _user.canViewInvoicingReportsAttributes.forEach(attributesToAdd.add, attributesToAdd);\n            } else {\n              _user.canViewInvoicingReportsAttributes.forEach(attributesToRemove.add, attributesToRemove);\n            }\n            yield this.handleAttributes([...attributesToAdd], [...attributesToRemove]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.users`,\n        pageTitle: this.intl.t('common.Users')\n      }, {\n        route: `${this.model.basePath}.users`,\n        model: this.model.user.last.value.id,\n        pageTitle: this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports],\n        [this.intl.t('common.Chargeup')]: [this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Costs')]: [(this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports) && (this.projectCanManageTimesheets || this.permissionsChangeset.canManageTimesheets) && (this.entityCanViewBills || this.entityCanManageBills)],\n        [this.intl.t('shared.report.Forecast breakdown')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Labour hours')]: [this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports],\n        [this.intl.t('common.Position')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewBudgetLabourHourReports || this.permissionsChangeset.canViewBudgetLabourHourReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewCostLabourHourReports || this.permissionsChangeset.canViewCostLabourHourReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Profit margins')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('common.Quote')]: [this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports],\n        [this.intl.t('shared.report.Work in progress')]: [this.projectCanViewBudgetReports || this.permissionsChangeset.canViewBudgetFinancialReports, this.projectCanViewCostReports || this.permissionsChangeset.canViewCostFinancialReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports],\n        [this.intl.t('common.Invoicing')]: [this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports],\n        [this.intl.t('common.Cost to complete')]: [this.projectCanViewQuoteReports || this.permissionsChangeset.canViewQuoteReports, this.projectCanViewProgressReports || this.permissionsChangeset.canViewProgressReports, this.projectCanViewChargeupReports || this.permissionsChangeset.canViewChargeupReports, this.projectCanViewInvoicingReports || this.permissionsChangeset.canViewInvoicingReports]\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => p));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get taskPermissionsCount() {\n      return [this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewProgress].filter(attribute => attribute).length;\n    }\n    get taskPermissionsVisible() {\n      if (this._taskPermissionsVisible != null) return this._taskPermissionsVisible;\n      return this.taskPermissionsCount > 0;\n    }\n    set taskPermissionsVisible(value) {\n      this._taskPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canManageSchedulingReports, this.permissionsChangeset.canViewSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      return [this.permissionsChangeset.canManageTimesheets].filter(attribute => attribute).length;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.task.isRunning || this.model.user.isRunning || this.model.permissionsChangeset.isRunning;\n    }\n    get _parentTaskIds() {\n      if (!this.model.task.last.value) return [];\n      const ids = [];\n      const getTaskId = task => {\n        // not loaded yet\n        if (!task) return;\n        ids.push(task.id);\n        if (task.belongsTo('parent').value()) getTaskId(task.belongsTo('parent').value());\n      };\n      getTaskId(this.model.task.last.value.belongsTo('parent').value());\n      return ids;\n    }\n    get userIsEntityAdmin() {\n      return this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, 'canManageEntity');\n    }\n    get projectCanManageTimesheets() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageTimesheetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageTimesheetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageTimesheetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get entityCanViewBills() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewBillsAttributes);\n    }\n    get entityCanManageBills() {\n      return this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageBillsAttributes);\n    }\n    get projectCanViewTasks() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewTasksAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewTasksAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewTasksAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageTasks() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageTasksAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageTasksAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageTasksAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgets() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewBudgetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewBudgetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewBudgetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgress() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewProgressAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewProgressAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewProgressAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageProgress() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageProgressAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageProgressAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageProgressAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageBudgets() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageBudgetsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageBudgetsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageBudgetsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuotes() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewQuotesAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewQuotesAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewQuotesAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageQuotes() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageQuotesAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageQuotesAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageQuotesAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProducts() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewProductsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewProductsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewProductsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageProducts() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageProductsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageProductsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewProductsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewFileStorage() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewFileStorageAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewFileStorageAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewFileStorageAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageFileStorage() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageFileStorageAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageFileStorageAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewFileStorageAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewBudgetReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewBudgetReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewBudgetReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewBudgetLabourHourReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewBudgetLabourHourReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewBudgetLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewBudgetLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewQuoteReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewQuoteReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewQuoteReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewQuoteReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewCostReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewCostReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewCostReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewCostLabourHourReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewCostLabourHourReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewCostLabourHourReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewCostLabourHourReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewChargeupReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewChargeupReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewChargeupReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewChargeupReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewInvoicingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewInvoicingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewInvoicingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewInvoicingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewProgressReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewProgressReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewProgressReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewProgressReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanViewSchedulingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canViewSchedulingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canViewSchedulingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canViewSchedulingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    get projectCanManageSchedulingReports() {\n      const entityCan = this.userIsEntityAdmin || this.model.user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ..._user3.canManageSchedulingReportsAttributes);\n      if (entityCan) return true;\n      const projectCan = this.model.user.last.value.includesClaimsAboutProject(this.model.project.last.value.id, ..._user2.canManageSchedulingReportsAttributes);\n      if (projectCan) return true;\n      const tasksCan = this._parentTaskIds.some(id => this.model.user.last.value.includesClaimsAboutTask(id, ..._user.canManageSchedulingReportsAttributes));\n      if (tasksCan) return true;\n      return false;\n    }\n    async handleAttributes(attributesToAdd, _attributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const attributesToRemove = _attributesToRemove.filter(ar => !attributesToAdd.includes(ar));\n      const existingAttributes = await this.store.simpleQuery('user-task-attribute', {\n        user: this.model.user.last.value.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(attributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(attributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          user: this.model.user.last.value,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_taskPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"lodash\", \"portal/routes/entity/builda-price/projects/project/tasks/task/people/workers\"], function (_exports, _asyncArrowRuntime, _controller, _object, _tracking, _service, _lodash, _workers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"lodash\",0,\"ember-concurrency\",0,\"portal/routes/entity/builda-price/projects/project/tasks/task/people/workers\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredWorkers', 'model.workers.last.value.taskWorkers', 'searchString.length'), _dec2 = (0, _object.computed)('model.workers.last.value.taskWorkers'), _dec3 = (0, _object.computed)('model.workers.last.value.unassignedWorkers'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isAddingWorkerToTask\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_workerToAddToTask\", _descriptor9, this);\n      _defineProperty(this, \"addWorkerToTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.handleWorkerTaskAttributes(this.workerToAddToTask, [..._workers.workerTaskAttributes], []);\n            yield this.handleWorkerProjectAttributes(this.workerToAddToTask, [..._workers.workerProjectAttributes], []);\n            yield Promise.all([this.model.workers.perform(this.model.task)]);\n            this.isAddingWorkerToTask = false;\n            this.workerToAddToTask = null;\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.workers.Added worker to task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong adding worker'),\n              error\n            });\n          }\n        }\n      }), null, \"addWorkerToTask\", null));\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.workers.isRunning;\n    }\n    get filteredWorkers() {\n      const result = this.model.workers.last.value.taskWorkers?.filter(worker => {\n        const matchString = `${worker.firstName}${worker.lastName}${worker.email}${worker.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    get projectWorkers() {\n      if (!this.model.workers.last.value) return [];\n      return this.model.workers.last.value.taskWorkers;\n    }\n    get unassignedWorkers() {\n      if (!this.model.workers.last.value) return [];\n      return this.model.workers.last.value.unassignedWorkers;\n    }\n    get workerToAddToTask() {\n      if (this._workerToAddToTask) return this._workerToAddToTask;\n      return this.taskWorkers;\n    }\n    set workerToAddToTask(value) {\n      this._workerToAddToTask = value;\n    }\n    get workerToRemoveFromTask() {\n      return _lodash.default.difference(this.taskWorkers, this.workerToAddToTask);\n    }\n    async handleWorkerProjectAttributes(worker, projectAttributesToAdd, _projectAttributesToRemove) {\n      const project = this.model.task.last.value.belongsTo('project').value();\n      // don't bother removing attributes we're going to add later\n      const projectAttributesToRemove = _projectAttributesToRemove.filter(ar => !projectAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-project-attribute', {\n        worker: worker.id,\n        project: project.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(projectAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(projectAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-project-attribute', {\n          entity: this.sessionData.entity,\n          project,\n          worker,\n          attribute\n        }).save();\n      }))]);\n    }\n    async handleWorkerTaskAttributes(worker, taskAttributesToAdd, _taskAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const taskAttributesToRemove = _taskAttributesToRemove.filter(ar => !taskAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-task-attribute', {\n        worker: worker.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(taskAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(taskAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          worker,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingWorkerToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredWorkers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredWorkers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"projectWorkers\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectWorkers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"unassignedWorkers\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"unassignedWorkers\"), _class2.prototype), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_workerToAddToTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6; // import { tracked } from '@glimmer/tracking';\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.worker.last.value.{fullName,id}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _defineProperty(this, \"deleteWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.builda-price.projects.project.tasks.task.people.workers.worker.removeWorkerFromTaskConfirm'))) return;\n            const taskAttributes = yield this.store.simpleQuery('worker-task-attribute', {\n              worker: this.model.worker.last.value.id,\n              entity: this.sessionData.entity.id,\n              task: this.model.task.last.value.id\n            });\n            yield Promise.all([...taskAttributes.map(ta => ta.destroyRecord())]);\n            this.router.transitionTo(`${this.model.basePath}.workers`);\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.people.workers.worker.Removed worker from task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong removing the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteWorker\", null));\n    }\n    get isRunning() {\n      return this.model.project.isRunning || this.model.task.isRunning || this.model.worker.isRunning;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.workers`,\n        pageTitle: this.intl.t('common.Workers')\n      }, {\n        route: `${this.model.basePath}.workers`,\n        model: this.model.worker.last.value.id,\n        pageTitle: this.model.worker.last.value.fullName\n      }];\n      return paths;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"searchTerm\", _descriptor7, this);\n      _initializerDefineProperty(this, \"productChangeSet\", _descriptor8, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor9, this);\n      _initializerDefineProperty(this, \"pageIndex\", _descriptor0, this);\n      _initializerDefineProperty(this, \"sortBy\", _descriptor1, this);\n      _initializerDefineProperty(this, \"sortDirection\", _descriptor10, this);\n      _initializerDefineProperty(this, \"selectProductIds\", _descriptor11, this);\n      _initializerDefineProperty(this, \"selectedProductId\", _descriptor12, this);\n      _initializerDefineProperty(this, \"isAddingProduct\", _descriptor13, this);\n      _initializerDefineProperty(this, \"isEditingProduct\", _descriptor14, this);\n      _initializerDefineProperty(this, \"isDeletingProducts\", _descriptor15, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor16, this);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageIndex', 'sortBy', 'sortDirection', 'searchTerm']);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"onAddProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (product) {\n          try {\n            yield this.store.createRecord('task-product', {\n              ...product,\n              task: this.model.task.last.value,\n              entity: this.sessionData.entity\n            }).save();\n            this.isAddingProduct = false;\n            yield this.updateProductList.perform();\n          } catch (error) {\n            if (error.errors[0].status === '409') this.notifications.warning(this.intl.t('shared.notification.Product already exists'));\n          }\n        }\n      }), null, \"onAddProduct\", null));\n      _defineProperty(this, \"onSaveProduct\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (productChangeSet) {\n          try {\n            yield productChangeSet.save();\n            this.isEditingProduct = false;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileSavingProduct'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"onSaveProduct\", null));\n      _defineProperty(this, \"updateProductList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.products.perform(this.model.task, Number(this.model.pageSize), Number(this.model.pageIndex), this.model.sortBy, this.model.sortDirection, this.model.searchTerm);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileReloadProducts'),\n              error\n            });\n          }\n        }\n      }), null, \"updateProductList\", null));\n      _defineProperty(this, \"deleteProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.store.adapterFor('task-product').deleteBulk('task-product', [...this.selectProductIds]);\n            this.isDeletingProducts = false;\n            this.selectProductIds = new Set();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingProducts'),\n              error\n            });\n          }\n          yield this.updateProductList.perform();\n        }\n      }), null, \"deleteProducts\", null));\n    }\n    get products() {\n      return this.model.products.last.value || [];\n    }\n    updateSearchTerm(value) {\n      this.selectProductIds = new Set();\n      this.pageIndex = 1;\n      this.searchTerm = value;\n    }\n    onChangePageIndex(pageIndex) {\n      this.pageIndex = pageIndex;\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    setPrice(price) {\n      this.productChangeSet.set('unitPrice', price);\n    }\n    onSelectProduct(_row, col, e) {\n      if (e.target.checked) {\n        this.selectProductIds.add(col.extraData.productId);\n      } else {\n        this.selectProductIds.delete(col.extraData.productId);\n      }\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectProductIds = this.selectProductIds;\n    }\n    onClickProductName(_row, col) {\n      this.selectedProductId = col.extraData.productId;\n      this.isEditingProduct = true;\n    }\n    onSelectCurrentPageProducts(_row, col, e) {\n      const selectedProductIds = new Set();\n      if (e.target.checked) {\n        this.products.forEach(p => {\n          selectedProductIds.add(p.id);\n        });\n      }\n      this.selectProductIds = selectedProductIds;\n    }\n    onCreateProduct() {\n      this.selectedProductId = null;\n      this.isEditingProduct = true;\n    }\n    sortColumn(_row, col) {\n      if (this.sortBy !== col.value) {\n        this.sortBy = col.value;\n        this.sortDirection = 'asc';\n        return;\n      }\n      this.sortBy = col.value;\n      if (this.sortDirection === 'asc') {\n        this.sortDirection = 'desc';\n      } else if (this.sortDirection === 'desc') {\n        this.sortDirection = undefined;\n      } else {\n        this.sortDirection = 'asc';\n      }\n    }\n    onChangeProductQuantity(_row, col, e) {\n      try {\n        const products = this.products.toArray();\n        products[col.extraData.index].quantity = Number(e.target.value);\n        products[col.extraData.index].save();\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('entity.builda-price.projects.project.tasks.task.products.somethingWentWrongWhileSavingTheProductQuantity'),\n          error\n        });\n      }\n    }\n    get showFilters() {\n      return this.productTableData?.length || this.searchTerm?.length;\n    }\n    get productTableHeader() {\n      if (this.model.products.isRunning) return [];\n      const productHeader = [{\n        value: this.intl.t('common.Product'),\n        iconName: this.sortBy === 'Product' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Supplier'),\n        iconName: this.sortBy === 'Supplier' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.SKU'),\n        iconName: this.sortBy === 'SKU' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit'),\n        iconName: this.sortBy === 'Unit' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-left'\n      }, {\n        value: this.intl.t('common.Unit price'),\n        iconName: this.sortBy === 'Unit price' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }, {\n        value: this.intl.t('common.Quantity'),\n        iconName: this.sortBy === 'Quantity' && this.sortDirection ? this.sortDirection === 'desc' ? 'sort-down' : 'sort-up' : undefined,\n        onClickCol: this.sortColumn,\n        colClass: 'cursor-pointer text-right'\n      }, {\n        colClass: 'text-right',\n        value: 'Total'\n      }];\n      if (this.isEditable && this.products.length) productHeader.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        value: Boolean(this.selectProductIds.size === this.products.length),\n        isPartiallySelected: Boolean(this.selectProductIds.size && this.selectProductIds.size !== this.products.length),\n        onInputChange: this.onSelectCurrentPageProducts\n      });\n      return productHeader;\n    }\n    get totalRecords() {\n      if (this.model.products.isRunning) return 0;\n      return this.products.meta.totalRecords;\n    }\n    get productTableData() {\n      if (this.model.products.isRunning) return [];\n      return this.products.map((product, index) => {\n        const productData = [{\n          colClass: 'text-left align-middle',\n          value: product.supplierName\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.sku\n        }, {\n          colClass: 'text-left align-middle',\n          value: product.unit\n        }, {\n          colClass: 'text-right align-middle',\n          value: this.numberFormat.format(product.unitPrice, {\n            style: 'currency',\n            dashZero: true\n          })\n        }, {\n          colClass: 'text-right align-middle',\n          value: this.numberFormat.format(product.unitPrice * product.quantity, {\n            style: 'currency',\n            dashZero: true\n          })\n        }];\n        if (this.isEditable) {\n          productData.unshift({\n            type: 'BUTTON',\n            textClass: 'btn btn-link',\n            value: product.description,\n            onClickButton: this.onClickProductName,\n            extraData: {\n              productId: product.id\n            }\n          });\n          productData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectProductIds.has(product.id),\n            onInputChange: this.onSelectProduct,\n            extraData: {\n              productId: product.id\n            }\n          });\n          productData.splice(productData.length - 1, 0, {\n            type: 'NUMBER_INPUT',\n            colClass: 'text-right align-middle',\n            textClass: 'text-right entity-products__quantity-width',\n            min: '0',\n            max: '1000000',\n            value: product.quantity,\n            onInputChange: this.onChangeProductQuantity,\n            extraData: {\n              index\n            }\n          });\n        } else {\n          productData.unshift({\n            colClass: 'align-middle',\n            value: product.description\n          });\n          productData.splice(productData.length - 1, 0, {\n            colClass: 'text-right align-middle',\n            value: product.quantity\n          });\n        }\n        return {\n          rowData: productData\n        };\n      });\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageProducts');\n    }\n    get isLoading() {\n      return this.model.task.last.isRunning;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"searchTerm\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"productChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"pageIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"sortBy\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"sortDirection\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"selectProductIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"selectedProductId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"isEditingProduct\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingProducts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.searchTerm;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setPrice\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setPrice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickProductName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickProductName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectCurrentPageProducts\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onCreateProduct\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onCreateProduct\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sortColumn\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortColumn\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangeProductQuantity\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangeProductQuantity\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/projects/project/tasks/task/settings\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _initializerDefineProperty(this, \"isDeletingTask\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isDependencyTransferModalOpen\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dependencyTransferDestinationTask\", _descriptor0, this);\n      _defineProperty(this, \"timesheetStatus\", [{\n        value: 'ACTIVE',\n        label: this.intl.t('common.Active')\n      }, {\n        value: 'INACTIVE',\n        label: this.intl.t('common.Inactive')\n      }]);\n      _defineProperty(this, \"taskTypes\", [{\n        value: 'TASK',\n        label: this.intl.t('common.General')\n      }, {\n        value: 'BUILDERS_WORK',\n        label: this.intl.t('common.builderWork')\n      }, {\n        value: 'SUMS',\n        label: this.intl.t('common.Sums')\n      }, {\n        value: 'SUBCONTRACTOR',\n        label: this.intl.t('common.Subcontractors')\n      }, {\n        value: 'PLANT',\n        label: this.intl.t('common.Plant')\n      }, {\n        value: 'INTERNAL',\n        label: this.intl.t('common.Internal')\n      }, {\n        value: 'MILESTONE',\n        label: this.intl.t('common.Milestone')\n      }]);\n      _defineProperty(this, \"contractType\", [{\n        value: 'COST_PLUS',\n        label: this.intl.t('shared.task.Cost plus')\n      }, {\n        value: 'FIXED_PRICE',\n        label: this.intl.t('shared.task.Fixed price')\n      }]);\n      _defineProperty(this, \"deleteTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (dependencyTransferDestinationTask) {\n          const taskToDelete = this.model.task.last.value;\n          try {\n            yield taskToDelete.delete(dependencyTransferDestinationTask?.id);\n            this.isDeletingTask = false;\n            this.isDependencyTransferModalOpen = false;\n            this.dependencyTransferDestinationTask = undefined;\n            yield this.router.transitionTo('entity.builda-price.projects.project.tasks');\n            this.notifications.success(this.intl.t('entity.builda-price.projects.project.tasks.task.settings.Successfully deleted task'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.task.settings.Something went wrong deleting the task'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteTask\", null));\n      _defineProperty(this, \"saveProfitMargin\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskChangeset, profitMarginChangeset) {\n          if (this.canManageTask) {\n            taskChangeset.validate();\n            if (taskChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.tasks.task.settings.Please complete the task information'));\n              return;\n            }\n          }\n          if (this.canManageProfitMargin) {\n            profitMarginChangeset.validate('profitType', 'labourPercentage', 'materialsPercentage', 'subcontractorsPercentage', 'sumsPercentage');\n            if (profitMarginChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('shared.notification.pleaseCompleteTheProfitMarginInformation'));\n              return;\n            }\n          }\n          try {\n            if (this.canManageProfitMargin) {\n              profitMarginChangeset.execute();\n              yield profitMarginChangeset.save();\n            }\n            const promises = [];\n            if (this.canManageTask) {\n              taskChangeset.execute();\n              promises.push(taskChangeset.save());\n            }\n            yield Promise.all(promises);\n            this.notifications.success(this.intl.t('shared.notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingTheProfitMargins'),\n              error\n            });\n          }\n        }\n      }), null, \"saveProfitMargin\", null));\n      _defineProperty(this, \"saveTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskChangeset) {\n          if (this.canManageTask) {\n            taskChangeset.validate();\n            if (taskChangeset.isInvalid) {\n              this.notifications.warning(this.intl.t('entity.builda-price.projects.project.tasks.task.settings.Please complete the task information'));\n              return;\n            }\n          }\n          try {\n            const promises = [];\n            if (this.canManageTask) {\n              taskChangeset.execute();\n              promises.push(taskChangeset.save());\n            }\n            yield Promise.all(promises);\n            this.notifications.success(this.intl.t('shared.notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.projects.project.tasks.task.settings.Something went wrong saving the task'),\n              error\n            });\n          }\n        }\n      }), null, \"saveTask\", null));\n    }\n    get isLoading() {\n      return this.model.task.isRunning || this.model.loadTaskProfitMargin.isRunning || this.model.glAccounts.isRunning;\n    }\n    get hasInactiveParents() {\n      return this.model.task.last.value.hasInactiveParents;\n    }\n    get profitMargin() {\n      return this.model.task.last.value.belongsTo('profitMargin').value();\n    }\n    set contractTypeIsOverridden(value) {}\n    get contractTypeIsOverridden() {\n      return this.model.taskChangeset.last.value.contractType != null;\n    }\n    set purchasesGlAccountIsOverridden(value) {}\n    get purchasesGlAccountIsOverridden() {\n      const currentValue = this.model.taskChangeset.last.value.purchasesGlAccount;\n      return currentValue !== null;\n    }\n    set salesGlAccountIsOverridden(value) {}\n    get salesGlAccountIsOverridden() {\n      const currentValue = this.model.taskChangeset.last.value.salesGlAccount;\n      return currentValue !== null;\n    }\n    get canManageTask() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageTasks');\n    }\n    get canManageProfitMargin() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageProfitMargin');\n    }\n    get canManageWorkers() {\n      return this.newFeatureFlags.includesFeatureFlags(this.model.task.last.value, 'canManageWorkers');\n    }\n    get taskHasDependencies() {\n      return this.model.task.last.value.taskHasDependencies;\n    }\n    get deleteConfirmText() {\n      if (this.model.task.last.value.children.length > 1) return this.intl.t('entity.builda-price.projects.project.tasks.task.settings.deleteXTasks', {\n        // total: itself add its children\n        number: this.model.task.last.value.children.length + 1\n      });\n      if (this.model.task.last.value.children.length === 1 || this.taskHasDependencies) return this.intl.t('entity.builda-price.projects.project.tasks.task.settings.notification.deleteTask');\n      return null;\n    }\n    get deleteMessages() {\n      const messages = [this.intl.t('entity.builda-price.projects.project.tasks.task.settings.doYouWantToDeleteThisTask')];\n      if (this.model.task.last.value.children.length >= 1) {\n        messages.push(this.intl.t('entity.builda-price.projects.project.tasks.task.settings.willDeleteSubtasks', {\n          subtaskNumber: this.model.task.last.value.children.length\n        }));\n      }\n      if (this.taskHasDependencies) {\n        messages.push(this.intl.t('entity.builda-price.projects.project.tasks.task.settings.hasCostAssignedInTask'));\n      }\n      return messages;\n    }\n    get availableDependencyTransferDestinationTasks() {\n      const taskProject = this.model.task.last.value.belongsTo('project').value();\n      return taskProject?.activeTasks || [];\n    }\n    openDeleteModal() {\n      if (!this.taskHasDependencies) {\n        this.isDeletingTask = true;\n        return;\n      }\n      this.isDependencyTransferModalOpen = true;\n    }\n    selectDependencyTransferDestination(destinationTask) {\n      this.dependencyTransferDestinationTask = destinationTask;\n    }\n    closeDependencyTransferModal() {\n      this.dependencyTransferDestinationTask = undefined;\n      this.isDependencyTransferModalOpen = false;\n    }\n    async handleWorkerProjectAttributes(worker, projectAttributesToAdd, _projectAttributesToRemove) {\n      const project = this.model.task.last.value.belongsTo('project').value();\n      // don't bother removing attributes we're going to add later\n      const projectAttributesToRemove = _projectAttributesToRemove.filter(ar => !projectAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-project-attribute', {\n        worker: worker.id,\n        project: project.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(projectAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(projectAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-project-attribute', {\n          entity: this.sessionData.entity,\n          project,\n          worker,\n          attribute\n        }).save();\n      }))]);\n    }\n    async handleWorkerTaskAttributes(worker, taskAttributesToAdd, _taskAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const taskAttributesToRemove = _taskAttributesToRemove.filter(ar => !taskAttributesToAdd.includes(ar));\n      const existingProjectAttributes = await this.store.simpleQuery('worker-task-attribute', {\n        worker: worker.id,\n        task: this.model.task.last.value.id\n      }).then(r => r.toArray());\n\n      // add and remove entity attribute from the worker\n      await this.store.findAll('worker-attribute');\n      await Promise.all([Promise.all(taskAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingProjectAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(taskAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingProjectAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-task-attribute', {\n          entity: this.sessionData.entity,\n          task: this.model.task.last.value,\n          worker,\n          attribute\n        }).save();\n      }))]);\n    }\n    get humanReadableContractType() {\n      const type = this.model.taskChangeset.last.value.contractType || this.model.task.last.value.effectiveContractType;\n      switch (type) {\n        case 'COST_PLUS':\n          return this.intl.t('shared.task.Cost plus');\n        case 'FIXED_PRICE':\n          return this.intl.t('shared.task.Fixed price');\n        default:\n          return type;\n      }\n    }\n    toggleContractTypeOverride(taskModel) {\n      const currentValue = taskModel.contractType;\n      const newValue = currentValue != null ? null : this.model.task.last.value.effectiveContractType;\n      taskModel.set('contractType', newValue);\n    }\n    togglePurchasesGlAccountOverride(taskModel) {\n      const currentValue = taskModel.purchasesGlAccount;\n      const effectivePurchasesGlAccount = this.model.task.lastSuccessful.value.defaultPurchasesGlAccount || this.model.glAccounts.lastSuccessful.value.toArray()[0] || undefined;\n      const newValue = currentValue !== null ? null : effectivePurchasesGlAccount;\n      taskModel.set('purchasesGlAccount', newValue);\n    }\n    toggleSalesGlAccountOverride(taskModel) {\n      const currentValue = taskModel.salesGlAccount;\n      const effectiveSalesGlAccount = this.model.task.lastSuccessful.value.defaultSalesGlAccount || this.model.glAccounts.lastSuccessful.value.toArray()[0] || undefined;\n      const newValue = currentValue !== null ? null : effectiveSalesGlAccount;\n      taskModel.set('salesGlAccount', newValue);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isDependencyTransferModalOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dependencyTransferDestinationTask\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"openDeleteModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openDeleteModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"selectDependencyTransferDestination\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"selectDependencyTransferDestination\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeDependencyTransferModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeDependencyTransferModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleContractTypeOverride\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleContractTypeOverride\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"togglePurchasesGlAccountOverride\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"togglePurchasesGlAccountOverride\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleSalesGlAccountOverride\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleSalesGlAccountOverride\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/forecast-breakdown\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'forecast-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate', 'excludedProjectIds', 'status']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_excludedProjectIds\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_status\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_controllerDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_excludedProjects\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_controllerStatus\", _descriptor1, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.forecastTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.forecastTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.forecastTable.last.value.elements[0].values, saveResource ? this.sessionData.entity : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get selectedDate() {\n      return this._selectedDate;\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n    }\n    get excludedProjectIds() {\n      return this._excludedProjectIds;\n    }\n    set excludedProjectIds(value) {\n      this._excludedProjectIds = value;\n    }\n    get status() {\n      return this._status;\n    }\n    set status(value) {\n      this._status = value;\n    }\n    get controllerDate() {\n      if (this._controllerDate) return this._controllerDate;\n      return this.selectedDate || (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set controllerDate(value) {\n      this._controllerDate = value;\n    }\n    get excludedProjects() {\n      if (this._excludedProjects) return this._excludedProjects;\n      return this.excludedProjectIds.length ? this.model.projects.last.value.filter(p => this.excludedProjectIds.includes(p.id)) : [];\n    }\n    set excludedProjects(value) {\n      this._excludedProjects = value;\n    }\n    get controllerStatus() {\n      if (this._controllerStatus) return this._controllerStatus;\n      return this.status || 'OPEN';\n    }\n    set controllerStatus(value) {\n      this._controllerStatus = value;\n    }\n    get hasFilters() {\n      if (!this.selectedDate && !this.excludedProjectIds.length && !this.status) return false;\n      return this.status !== 'OPEN' || this.excludedProjectIds.length || this.selectedDate !== (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    removeFilter() {\n      this.controllerDate = (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n      this.controllerStatus = 'OPEN';\n      this.excludedProjects = [];\n      this.selectedDate = this.controllerDate;\n      this.status = this.controllerStatus;\n      this.excludedProjectIds = [];\n    }\n    applyFilter() {\n      this.selectedDate = this.controllerDate;\n      this.excludedProjectIds = this.excludedProjects.map(p => p.id);\n      this.status = this.controllerStatus;\n    }\n    filterStatus(value) {\n      this.controllerStatus = value;\n      if (value !== 'ALL') {\n        this.excludedProjects = this.excludedProjects.filter(project => project.status === value);\n      }\n    }\n    get filteredProjects() {\n      if (this.controllerStatus === 'ALL') return this.model.projects.last.value || [];\n      return (this.model.projects.last.value || []).filter(p => p.status === this.controllerStatus);\n    }\n    get isLoading() {\n      return this.model.forecastTable.isRunning || this.model.projects.isRunning;\n    }\n    onDateChange(e) {\n      this.controllerDate = e.target.value;\n    }\n    get title() {\n      return `${this.sessionData.entity.name} forecast report on ${(0, _moment.default)(this.controllerDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_forecast-report`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjectIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_status\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjects\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerStatus\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"applyFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"applyFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filterStatus\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"filterStatus\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onDateChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDateChange\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/invoicing\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'invoice-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.invoiceTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead?.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.sessionData.entity : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.invoiceTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_invoicing-report`;\n    }\n    get title() {\n      return `${this.sessionData.entity.name} invoicing report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.invoiceTable.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/labour-hours\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'labour-hours-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['status', 'selectedDate']);\n      _defineProperty(this, \"status\", 'OPEN');\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const thead = this.model.entityLevelReport.last.value.elements[2].axes.thead.map(i => i.value);\n          const tfoot = this.model.entityLevelReport.last.value.elements[2].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.entityLevelReport.last.value.elements[2].values, saveResource ? this.sessionData.entity : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get showDownloadButton() {\n      return !this.model.basePath?.includes('embed');\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get title() {\n      return `${this.sessionData.entity.name} labour hours report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_labour-hours-report`;\n    }\n    get isLoading() {\n      return this.model.entityLevelReport.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/notes\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'cost-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['startDate', 'endDate', 'filterByDate', 'projectIds', 'workerIds', 'invoiceId']);\n      _initializerDefineProperty(this, \"invoiceId\", _descriptor6, this);\n      _initializerDefineProperty(this, \"filterByDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"workerIds\", _descriptor8, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor0, this);\n      _initializerDefineProperty(this, \"projectIds\", _descriptor1, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.75\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.75\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = ['date', 'worker name', 'project name', 'task name', 'hours', 'note', 'note type'];\n          const tbody = [];\n          if (this.model.noteReport.last?.value?.elements?.[0]?.values) {\n            this.model.noteReport.last.value.elements[0].values.forEach(_row => {\n              let row = [];\n              _row.forEach((cell, index) => {\n                const attachmentsIndex = 4;\n                const linkIndex = 6;\n                const taskProjectNameIndex = 2;\n                if ([attachmentsIndex, linkIndex].includes(index)) return;\n                if (index === taskProjectNameIndex) {\n                  const [projectName, taskName, duration] = cell;\n                  row.push({\n                    format: 'TEXT',\n                    value: projectName.value\n                  });\n                  row.push({\n                    format: 'TEXT',\n                    value: taskName.value\n                  });\n                  row.push({\n                    format: 'TEXT',\n                    value: duration.value\n                  });\n                  return;\n                }\n                row.push(cell);\n              });\n              tbody.push(row);\n            });\n          }\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, undefined, this.title, tbody, saveResource ? this.sessionData.entity : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get showDownloadButton() {\n      return !this.model.basePath?.includes('embed');\n    }\n    get selectedWorkers() {\n      if (!this.workerIds) return null;\n      return (this.model.getWorkers.last?.value?.toArray() || []).filter(w => this.workerIds.includes(w.id));\n    }\n    set selectedWorkers(value) {\n      if (!value?.length) {\n        this.workerIds = null;\n        return;\n      }\n      this.workerIds = value.map(w => w.id);\n    }\n    get selectedProjects() {\n      if (!this.projectIds) return null;\n      return (this.model.getProjects.last?.value?.toArray() || []).filter(p => this.projectIds.includes(p.id));\n    }\n    set selectedProjects(value) {\n      if (!value?.length) {\n        this.projectIds = null;\n        return;\n      }\n      this.projectIds = value.map(p => p.id);\n    }\n    setFilterByDate(e) {\n      this.filterByDate = e.target.checked;\n    }\n    setDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.startDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n      if (endDate) this.endDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n    }\n    get dateRangeSelectorEndDate() {\n      return (0, _moment.default)(this.endDate).toDate();\n    }\n    get dateRangeSelectorStartDate() {\n      return (0, _moment.default)(this.startDate).toDate();\n    }\n    get title() {\n      if (this.filterByDate) {\n        return `Notes report between ${(0, _moment.default)(this.startDate).format(this.intl.t('date.slashDayFirst'))} - ${(0, _moment.default)(this.endDate).format(this.intl.t('date.slashDayFirst'))}`;\n      }\n      return 'Notes report';\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0');\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_notes-report`;\n    }\n    get isLoading() {\n      return this.model.noteReport.isRunning || this.model.getProjects.isRunning || this.model.getWorkers.isRunning;\n    }\n    removeAllProjectFilters() {\n      this.projectIds = null;\n      this.invoiceId = null;\n    }\n    removeAllWorkerFilters() {\n      this.workerIds = null;\n      this.invoiceId = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"filterByDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"workerIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"projectIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setFilterByDate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setFilterByDate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDateRange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeAllProjectFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllProjectFilters\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeAllWorkerFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllWorkerFilters\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/position\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['status', 'selectedDate']);\n      _defineProperty(this, \"status\", 'OPEN');\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor8, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.entityLevelReport.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead ? element.axes.thead.map(i => i.value) : undefined;\n            if (option.name === this.intl.t('common.Labour hours') || option.name === this.intl.t('shared.reports.Financial breakdown')) {\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, undefined, `${this.title}-${tableName}`, values, saveResource ? this.sessionData.entity : null);\n            } else {\n              const tfoot = element.axes.tfoot;\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.sessionData.entity : null);\n            }\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get showDownloadButton() {\n      return !this.model.basePath?.includes('embed');\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.entityLevelReport.last.value.elements.filter(e => e.name === this.intl.t('shared.reports.Financial breakdown') || e.name === this.intl.t('common.Projects') || e.name === this.intl.t('common.Labour hours')).map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.sessionData.entity.name} position report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_position-report`;\n    }\n    get isLoading() {\n      return this.model.entityLevelReport.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/profit-margins\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'profit-margins-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate', 'excludedProjectIds', 'status']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_excludedProjectIds\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_status\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_controllerDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_excludedProjects\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_controllerStatus\", _descriptor1, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.profitMarginsTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.profitMarginsTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.profitMarginsTable.last.value.elements[0].values, false, saveResource ? this.sessionData.entity : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get showDownloadButton() {\n      return !this.model.basePath?.includes('embed');\n    }\n    get selectedDate() {\n      return this._selectedDate;\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n    }\n    get excludedProjectIds() {\n      return this._excludedProjectIds;\n    }\n    set excludedProjectIds(value) {\n      this._excludedProjectIds = value;\n    }\n    get status() {\n      return this._status;\n    }\n    set status(value) {\n      this._status = value;\n    }\n    get controllerDate() {\n      if (this._controllerDate) return this._controllerDate;\n      return this.selectedDate || (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set controllerDate(value) {\n      this._controllerDate = value;\n    }\n    get excludedProjects() {\n      if (this._excludedProjects) return this._excludedProjects;\n      return this.excludedProjectIds.length ? this.model.projects.last.value.filter(p => this.excludedProjectIds.includes(p.id)) : [];\n    }\n    set excludedProjects(value) {\n      this._excludedProjects = value;\n    }\n    get controllerStatus() {\n      if (this._controllerStatus) return this._controllerStatus;\n      return this.status || 'OPEN';\n    }\n    set controllerStatus(value) {\n      this._controllerStatus = value;\n    }\n    get hasFilters() {\n      if (!this.selectedDate && !this.excludedProjectIds.length && !this.status) return false;\n      return this.status !== 'OPEN' || this.excludedProjectIds.length || this.selectedDate !== (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    removeFilter() {\n      this.controllerDate = (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n      this.controllerStatus = 'OPEN';\n      this.excludedProjects = [];\n      this.selectedDate = this.controllerDate;\n      this.status = this.controllerStatus;\n      this.excludedProjectIds = [];\n    }\n    applyFilter() {\n      this.selectedDate = this.controllerDate;\n      this.excludedProjectIds = this.excludedProjects.map(p => p.id);\n      this.status = this.controllerStatus;\n    }\n    filterStatus(value) {\n      this.controllerStatus = value;\n      if (value !== 'ALL') {\n        this.excludedProjects = this.excludedProjects.filter(project => project.status === value);\n      }\n    }\n    get filteredProjects() {\n      if (this.controllerStatus === 'ALL') return this.model.projects.last.value || [];\n      return (this.model.projects.last.value || []).filter(p => p.status === this.controllerStatus);\n    }\n    get isLoading() {\n      return this.model.profitMarginsTable.isRunning || this.model.projects.isRunning;\n    }\n    get title() {\n      return `${this.sessionData.entity.name} profit margins report on ${(0, _moment.default)(this._selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_profit-margins-report`;\n    }\n    onDateChange(e) {\n      this.controllerDate = e.target.value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjectIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_status\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjects\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerStatus\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"applyFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"applyFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filterStatus\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"filterStatus\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onDateChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDateChange\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/company/wip\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'wip-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate', 'excludedProjectIds', 'status']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_excludedProjectIds\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_status\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_controllerDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_excludedProjects\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_controllerStatus\", _descriptor1, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.sessionData.entity);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.wipReportTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.wipReportTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.wipReportTable.last.value.elements[0].values, saveResource ? this.sessionData.entity : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get selectedDate() {\n      return this._selectedDate;\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n    }\n    get excludedProjectIds() {\n      return this._excludedProjectIds;\n    }\n    set excludedProjectIds(value) {\n      this._excludedProjectIds = value;\n    }\n    get status() {\n      return this._status;\n    }\n    set status(value) {\n      this._status = value;\n    }\n    get controllerDate() {\n      if (this._controllerDate) return this._controllerDate;\n      return this.selectedDate || (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set controllerDate(value) {\n      this._controllerDate = value;\n    }\n    get excludedProjects() {\n      if (this._excludedProjects) return this._excludedProjects;\n      return this.excludedProjectIds.length ? this.model.projects.last.value.filter(p => this.excludedProjectIds.includes(p.id)) : [];\n    }\n    set excludedProjects(value) {\n      this._excludedProjects = value;\n    }\n    get controllerStatus() {\n      if (this._controllerStatus) return this._controllerStatus;\n      return this.status || 'OPEN';\n    }\n    set controllerStatus(value) {\n      this._controllerStatus = value;\n    }\n    get hasFilters() {\n      if (!this.selectedDate && !this.excludedProjectIds.length && !this.status) return false;\n      return this.status !== 'OPEN' || this.excludedProjectIds.length || this.selectedDate !== (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    removeFilter() {\n      this.controllerDate = (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n      this.controllerStatus = 'OPEN';\n      this.excludedProjects = [];\n      this.selectedDate = this.controllerDate;\n      this.status = this.controllerStatus;\n      this.excludedProjectIds = [];\n    }\n    applyFilter() {\n      this.selectedDate = this.controllerDate;\n      this.excludedProjectIds = this.excludedProjects.map(p => p.id);\n      this.status = this.controllerStatus;\n    }\n    filterStatus(value) {\n      this.controllerStatus = value;\n      if (value !== 'ALL') {\n        this.excludedProjects = this.excludedProjects.filter(project => project.status === value);\n      }\n    }\n    get filteredProjects() {\n      const hasValueProjects = this.model.projects.last.value.filter(project => project.belongsTo('currentBudgetVersion').id() || project.belongsTo('currentQuoteVersion').id());\n      if (this.controllerStatus === 'ALL') return hasValueProjects || [];\n      return (hasValueProjects || []).filter(p => p.status === this.controllerStatus);\n    }\n    get isLoading() {\n      return this.model.wipReportTable.isRunning || this.model.projects.isRunning;\n    }\n    onDateChange(e) {\n      this.controllerDate = e.target.value;\n    }\n    get title() {\n      return `${this.sessionData.entity.name} work in progress for ${(0, _moment.default)(this.balanceDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_wip-report`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjectIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_status\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_excludedProjects\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_controllerStatus\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"applyFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"applyFilter\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filterStatus\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"filterStatus\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onDateChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDateChange\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/index\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"portal/utils/platform\"], function (_exports, _controller, _tracking, _object, _service, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/utils/platform\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.projectsData.last.value.elements', 'searchString'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", ['status']);\n      _defineProperty(this, \"status\", 'OPEN');\n      _initializerDefineProperty(this, \"searchString\", _descriptor6, this);\n    }\n    get projectsData() {\n      const values = this.model.projectsData.last.value.elements[0].values.filter(row => {\n        const matchString = (row[0].value || '').toLowerCase();\n        return matchString.includes(this.searchString.toLowerCase());\n      });\n      return {\n        ...this.model.projectsData.last.value.elements[0],\n        values\n      };\n    }\n    get attentionSafetyLogoSrc() {\n      return _platform.BRANDING.ATTENTION_SAFETY.logo;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"projectsData\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"projectsData\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/access\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"filterByDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"workerIds\", _descriptor7, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'cost-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['startDate', 'endDate', 'filterByDate', 'workerIds']);\n      _initializerDefineProperty(this, \"endDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor9, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = ['Name', 'Entry time', 'Exit time', 'Time on site'];\n          const tbody = this.model.report.last.value.elements[1].values;\n          this.reportsDownload.downloadAsCsv(this.filename, thead, undefined, this.title, tbody, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedWorkers() {\n      if (!this.workerIds) return [];\n      const workerIds = this.workerIds.split(',');\n      return (this.model.workers.last?.value?.toArray() || []).filter(worker => workerIds.includes(worker.id));\n    }\n    set selectedWorkers(workers) {\n      this.workerIds = workers.length ? workers.map(worker => worker.id).join(',') : null;\n    }\n    removeAllWorkerFilters() {\n      this.workerIds = null;\n    }\n    setDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.startDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n      if (endDate) this.endDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n    }\n    get dateRangeSelectorEndDate() {\n      return (0, _moment.default)(this.endDate).toDate();\n    }\n    get dateRangeSelectorStartDate() {\n      return (0, _moment.default)(this.startDate).toDate();\n    }\n    get title() {\n      let title = `${this.model.project.last.value.name} access report`;\n      if (this.filterByDate) {\n        title += ` between ${(0, _moment.default)(this.startDate).format(this.intl.t('date.slashDayFirst'))} - ${(0, _moment.default)(this.endDate).format(this.intl.t('date.slashDayFirst'))}`;\n      }\n      return title;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_access-report`;\n    }\n    get isLoading() {\n      return this.model.report.isRunning || this.model.project.isRunning || this.model.workers.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"filterByDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"workerIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeAllWorkerFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllWorkerFilters\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDateRange\"), _class2.prototype), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n    }\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/budget/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'budget-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.budgetTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.budgetTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_budget-hours-report`;\n    }\n    get title() {\n      return `${this.model.project.last.value.name} budget report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.budgetTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/budget/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'budget-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.budgetTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.budgetTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get title() {\n      return `${this.model.task.last.value.name} budget report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_budget-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.budgetTable.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/chargeup/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'chargeup-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.chargeupReport.last.value.elements[2].axes.thead.map(i => i.value);\n          const tfoot = this.model.chargeupReport.last.value.elements[2].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.chargeupReport.last.value.elements[2].values, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_chargeup-report`;\n    }\n    get title() {\n      return `${this.model.project.last.value.name} chargeup report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.chargeupReport.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/chargeup/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'chargeup-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.chargeupReport.last.value.elements[2].axes.thead.map(i => i.value);\n          const tfoot = this.model.chargeupReport.last.value.elements[2].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.chargeupReport.last.value.elements[2].values, saveResource ? this.model.task.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      return this.model.quoteTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    get title() {\n      return `${this.model.task.last.value.name} chargeup report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_chargeup-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.chargeupReport.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/cost-to-complete/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'client-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.projectLevelReport.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead ? element.axes.thead.map(i => i.value) : undefined;\n            if (option.name === this.intl.t('common.Tasks')) {\n              const tfoot = element.axes.tfoot;\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n            }\n            if (option.name === this.intl.t('common.Summary')) {\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, undefined, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n            }\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.projectLevelReport.last.value.elements.filter(e => e.name === this.intl.t('common.Summary') || e.name === this.intl.t('common.Tasks')).map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.project.last.value.name} cost to complete report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_cost-to-complete-report`;\n    }\n    get isLoading() {\n      return this.model.projectLevelReport.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/cost-to-complete/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'client-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.taskLevelReport.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead ? element.axes.thead.map(i => i.value) : undefined;\n            if (option.name === this.intl.t('common.Tasks')) {\n              const tfoot = element.axes.tfoot;\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n            }\n            if (option.name === this.intl.t('common.Summary')) {\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, undefined, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n            }\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.taskLevelReport.last.value.elements.filter(e => e.name === this.intl.t('common.Summary') || e.name === this.intl.t('common.Tasks')).map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.task.last.value.name} cost to complete report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_cost-to-complete-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.taskLevelReport.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/cost\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor6, this);\n      _initializerDefineProperty(this, \"showTaskPopUp\", _descriptor7, this);\n      _initializerDefineProperty(this, \"parentId\", _descriptor8, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'cost-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['startDate', 'endDate', 'costType', 'parentId', 'allocationType']);\n      _initializerDefineProperty(this, \"costType\", _descriptor9, this);\n      _initializerDefineProperty(this, \"allocationType\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_filterByDate\", _descriptor1, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor10, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor11, this);\n      _initializerDefineProperty(this, \"_selectedTasks\", _descriptor12, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor13, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          csvOptions.forEach(o => {\n            if (o.value) {\n              const thead = this.model.costTable.last.value.elements[o.index - 1].axes.thead.map(i => i.value);\n              const tfoot = this.model.costTable.last.value.elements[o.index - 1].axes.tfoot;\n              const tableName = this.model.costTable.last.value.elements[o.index - 1].name;\n              this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, this.model.costTable.last.value.elements[o.index - 1].values, saveResource ? this.model.project.last.value : null);\n            }\n          });\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get showAllocationTypeFilter() {\n      return this.allocationType && this.costType !== 'TIMESHEETS';\n    }\n    get allocationTypeLabel() {\n      switch (this.allocationType) {\n        case 'LABOUR':\n          return this.intl.t('common.Labour');\n        case 'MATERIALS':\n          return this.intl.t('common.Materials');\n        case 'SUBCONTRACTORS':\n          return this.intl.t('common.Subcontractors');\n      }\n      return '';\n    }\n    setCostType(costType) {\n      this.costType = costType;\n      if (costType === 'TIMESHEETS') this.allocationType = null;\n    }\n    get filterByDate() {\n      return this._filterByDate;\n    }\n    set filterByDate(value) {\n      this._filterByDate = value;\n      return value;\n    }\n    setFilterByDate(e) {\n      this.filterByDate = e.target.checked;\n      const selectedTasks = this.selectedTasks.map(t => t.id).length ? this.selectedTasks.map(t => t.id) : null;\n      this.model.costTable.perform(this.model.project, this.costType, this.startDate, this.endDate, this.model.selectedTaskIds, this.filterByDate, this.parentId, selectedTasks, this.allocationType);\n    }\n    setDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.startDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n      if (endDate) this.endDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n    }\n    get dateRangeSelectorEndDate() {\n      return (0, _moment.default)(this.endDate).toDate();\n    }\n    get dateRangeSelectorStartDate() {\n      return (0, _moment.default)(this.startDate).toDate();\n    }\n    set selectedTasks(value) {\n      this._selectedTasks = value;\n    }\n    get selectedTasks() {\n      const hasParentSelected = Boolean(this.parentId);\n      if (hasParentSelected) {\n        return this.model.selectedTaskIds.last.value.map(taskId => this.store.peekRecord('task', taskId));\n      }\n      return this._selectedTasks || [];\n    }\n    get title() {\n      if (this.filterByDate) {\n        return `${this.model.project.last.value.name} cost report between ${(0, _moment.default)(this.startDate).format(this.intl.t('date.slashDayFirst'))} - ${(0, _moment.default)(this.endDate).format(this.intl.t('date.slashDayFirst'))}`;\n      }\n      return `${this.model.project.last.value.name} cost report`;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.costTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_cost-report-report`;\n    }\n    get isLoading() {\n      return this.model.costTable.isRunning || this.model.project.isRunning || this.model.tasks.isRunning || this.model.selectedTaskIds.isRunning;\n    }\n    setSelectedTasks(tasks) {\n      this.showTaskPopUp = false;\n      this.selectedTasks = tasks;\n      const taskIds = tasks.map(t => t.id);\n      this.model.costTable.perform(this.model.project, this.costType, this.startDate, this.endDate, this.model.selectedTaskIds, this.filterByDate, null, taskIds, this.allocationType);\n      this.parentId = null;\n    }\n    removeSelectedTask(task) {\n      this.showTaskPopUp = false;\n      const selectedTasks = this.selectedTasks.filter(t => t.id !== task.id);\n      this.selectedTasks = selectedTasks;\n      const selectedTaskIds = selectedTasks.map(t => t.id).length ? selectedTasks.map(t => t.id) : null;\n      this.model.costTable.perform(this.model.project, this.costType, this.startDate, this.endDate, this.model.selectedTaskIds, this.filterByDate, null, selectedTaskIds, this.allocationType);\n\n      // do this at the end so the getter for selectedTasks still returns the parent tasks while we need it\n      this.parentId = null;\n    }\n    removeAllTaskFilters() {\n      this.selectedTasks = null;\n      this.model.costTable.perform(this.model.project, this.costType, this.startDate, this.endDate, this.model.selectedTaskIds, this.filterByDate, null, undefined, this.allocationType);\n      this.parentId = null;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"showTaskPopUp\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"parentId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"costType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'TIMESHEETS';\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"allocationType\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setCostType\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setCostType\"), _class2.prototype), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_filterByDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setFilterByDate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setFilterByDate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDateRange\"), _class2.prototype), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setSelectedTasks\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setSelectedTasks\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeSelectedTask\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeSelectedTask\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeAllTaskFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllTaskFilters\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/forecast-breakdown/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'forecast-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.forecastTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.forecastTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.forecastTable.last.value.elements[0].values, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get title() {\n      return `${this.model.project.last.value.name} forecast report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_forecast-report`;\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get isLoading() {\n      return this.model.forecastTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/forecast-breakdown/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'forecast-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.forecastTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.forecastTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.forecastTable.last.value.elements[0].values, saveResource ? this.model.task.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get title() {\n      return `${this.model.task.last.value.name}forecast report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_forecast-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.forecastTable.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/invoicing/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'invoice-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.invoiceTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.invoiceTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_invoicing-report`;\n    }\n    get title() {\n      return `${this.model.project.last.value.name} invoicing report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.invoiceTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/invoicing/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'invoice-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.invoiceTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.invoiceTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.task.last.value.name} invoicing report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_invoicing-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.invoiceTable.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/labour-hours/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'labour-hours-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), {\n        restartable: true\n      }, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.labourHoursTable.last.value.elements[2].axes.thead.map(i => i.value);\n          const tfoot = this.model.labourHoursTable.last.value.elements[2].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.labourHoursTable.last.value.elements[2].values, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_labour-hours-report`;\n    }\n    get title() {\n      return `${this.model.project.last.value.name} labour hours report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.labourHoursTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/labour-hours/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.taskLevelReport.last.value.elements[2].axes.thead.map(i => i.value);\n          const tfoot = this.model.taskLevelReport.last.value.elements[2].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.taskLevelReport.last.value.elements[2].values, saveResource ? this.model.task.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get title() {\n      return `${this.model.task.last.value.name} labour hours report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_labour-hours-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.taskLevelReport.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/notes\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", ['startDate', 'endDate', 'filterByDate', 'invoiceId', 'workerIds']);\n      _defineProperty(this, \"pdfExportTargetId\", 'cost-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _initializerDefineProperty(this, \"showTaskPopUp\", _descriptor6, this);\n      _initializerDefineProperty(this, \"selectedTasks\", _descriptor7, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"endDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"filterByDate\", _descriptor0, this);\n      _initializerDefineProperty(this, \"invoiceId\", _descriptor1, this);\n      _initializerDefineProperty(this, \"workerIds\", _descriptor10, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.75\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: false,\n            scale: 0.75\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          if (!this.model.noteReport.last?.value) return;\n          const thead = ['date', 'worker name', 'task name', 'hours', 'note', 'note type'];\n          const tbody = [];\n          const elements = this.model.noteReport.last.value.elements;\n          if (elements && elements[0] && elements[0].values) {\n            elements[0].values.forEach(_row => {\n              let row = [];\n              _row.forEach((cell, index) => {\n                const attachmentsIndex = 4;\n                const linkIndex = 6;\n                const taskDurationIndex = 2;\n                if ([attachmentsIndex, linkIndex].includes(index)) return;\n                if (index === taskDurationIndex) {\n                  const [taskName, duration] = cell;\n                  row.push({\n                    format: 'TEXT',\n                    value: taskName.value\n                  });\n                  row.push({\n                    format: 'TEXT',\n                    value: duration.value\n                  });\n                  return;\n                }\n                row.push(cell);\n              });\n              tbody.push(row);\n            });\n          }\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, undefined, this.title, tbody, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateStartDateInput, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedWorkers() {\n      if (!this.workerIds) return null;\n      const ids = typeof this.workerIds === 'string' ? this.workerIds.split(',') : this.workerIds;\n      return (this.model.getWorkers.last.value?.toArray() || []).filter(w => ids.includes(w.id));\n    }\n    set selectedWorkers(value) {\n      if (!value?.length) {\n        this.workerIds = null;\n      } else {\n        this.workerIds = value.map(w => w.id);\n      }\n      this.refreshReport();\n    }\n    refreshReport() {\n      const currentSelectedTaskIds = this.selectedTasks.length ? this.selectedTasks.map(t => t.id) : null;\n      const workerIds = typeof this.workerIds === 'string' ? this.workerIds.split(',') : this.workerIds;\n      this.model.noteReport.perform(this.model.project, this.startDate, this.endDate, this.filterByDate, currentSelectedTaskIds, workerIds, this.invoiceId);\n    }\n    setFilterByDate(e) {\n      this.filterByDate = e.target.checked;\n      this.refreshReport();\n    }\n    setDateRange(dates) {\n      const {\n        startDate,\n        endDate\n      } = dates;\n      if (startDate) this.startDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n      if (endDate) this.endDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n      this.refreshReport();\n    }\n    setSelectedTasks(tasks) {\n      this.showTaskPopUp = false;\n      this.selectedTasks = tasks;\n      this.refreshReport();\n    }\n    removeSelectedTask(task) {\n      this.showTaskPopUp = false;\n      const selectedTasks = this.selectedTasks.filter(t => t.id !== task.id);\n      this.selectedTasks = selectedTasks;\n      this.refreshReport();\n    }\n    removeAllTaskFilters() {\n      this.selectedTasks = [];\n      if (this.invoiceId) {\n        this.invoiceId = null;\n      }\n      this.refreshReport();\n    }\n    removeAllWorkerFilters() {\n      this.workerIds = null;\n      if (this.invoiceId) this.invoiceId = null;\n      this.refreshReport();\n    }\n    get dateRangeSelectorEndDate() {\n      return (0, _moment.default)(this.endDate).toDate();\n    }\n    get dateRangeSelectorStartDate() {\n      return (0, _moment.default)(this.startDate).toDate();\n    }\n    get title() {\n      if (!this.model.project.last?.value) return '';\n      if (this.filterByDate) {\n        return `${this.model.project.last.value.name} notes report between ${(0, _moment.default)(this.startDate).format(this.intl.t('date.slashDayFirst'))} - ${(0, _moment.default)(this.endDate).format(this.intl.t('date.slashDayFirst'))}`;\n      }\n      return `${this.model.project.last.value.name} notes`;\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0');\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_notes-report`;\n    }\n    get isLoading() {\n      return this.model.noteReport.isRunning || this.model.project.isRunning || this.model.tasks.isRunning;\n    }\n    updateStartDateInput(value) {\n      this.startDate = value;\n      this.refreshReport();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"showTaskPopUp\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"selectedTasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"endDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"filterByDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return true;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"workerIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"setFilterByDate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setFilterByDate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDateRange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDateRange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setSelectedTasks\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setSelectedTasks\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeSelectedTask\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeSelectedTask\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeAllTaskFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllTaskFilters\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeAllWorkerFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAllWorkerFilters\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/position/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.projectLevelReport.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead ? element.axes.thead.map(i => i.value) : undefined;\n            if (option.name === this.intl.t('common.Tasks')) {\n              const tfoot = element.axes.tfoot;\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n            }\n            if (option.name === this.intl.t('shared.reports.Financial breakdown') || option.name === this.intl.t('common.Labour hours')) {\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, undefined, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n            }\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.projectLevelReport.last.value.elements.filter(e => e.name === this.intl.t('shared.reports.Financial breakdown') || e.name === this.intl.t('common.Tasks') || e.name === this.intl.t('common.Labour hours')).map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.project.last.value.name} position  report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_position-report`;\n    }\n    get isLoading() {\n      return this.model.projectLevelReport.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/position/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.taskLevelReport.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            if (option.name === this.intl.t('common.Tasks')) {\n              const tfoot = element.axes.tfoot;\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n            }\n            if (option.name === this.intl.t('shared.reports.Financial breakdown') || option.name === this.intl.t('common.Labour hours')) {\n              yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, undefined, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n            }\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.taskLevelReport.last.value.elements.filter(e => e.name === this.intl.t('shared.reports.Financial breakdown') || e.name === this.intl.t('common.Tasks') || e.name === this.intl.t('common.Labour hours')).map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.task.last.value.name} position report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_position-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.taskLevelReport.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/profit-margins/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'profit-margins-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.profitMarginsTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.profitMarginsTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.profitMarginsTable.last.value.elements[0].values, saveResource ? this.model.project.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n    }\n    get title() {\n      return `${this.model.project.last.value.name} profit margins report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_profit-margins-report`;\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get isLoading() {\n      return this.model.profitMarginsTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/profit-margins/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor5, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (saveResource) {\n          const thead = this.model.profitMarginsTable.last.value.elements[0].axes.thead.map(i => i.value);\n          const tfoot = this.model.profitMarginsTable.last.value.elements[0].axes.tfoot;\n          yield this.reportsDownload.downloadAsCsv(this.filename, thead, tfoot, this.title, this.model.profitMarginsTable.last.value.elements[0].values, saveResource ? this.model.task.last.value : null);\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get title() {\n      return `${this.model.task.last.value.name} profit margins report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_profit-margins-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.profitMarginsTable.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/quote/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _moment, _tracking, _runloop, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"moment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'quote-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5\n          }, this.model.project.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.quoteTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.project.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.quoteTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get filename() {\n      const currentDate = new Date();\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_quote-report`;\n    }\n    get title() {\n      return `${this.model.project.last.value.name} quote report on ${(0, _moment.default)(new Date(this.selectedDate)).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get isLoading() {\n      return this.model.quoteTable.isRunning || this.model.project.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/reports/projects/project/quote/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"moment\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _moment, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('model.basePath', 'model.task.last.value.{id,name}'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"reportsDownload\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"pdfExportTargetId\", 'position-report-pdf-export-target');\n      _defineProperty(this, \"pdfExportHideClass\", 'pdf-export-hide');\n      _defineProperty(this, \"queryParams\", ['selectedDate']);\n      _initializerDefineProperty(this, \"_selectedDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_csvOptions\", _descriptor7, this);\n      _defineProperty(this, \"downloadAsPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAsPdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            landscape: true,\n            scale: 0.5\n          });\n        }\n      }), null, \"downloadAsPdf\", null));\n      _defineProperty(this, \"downloadAndSavePdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          yield this.reportsDownload.downloadAndSavePdf(this.pdfExportTargetId, this.filename, this.title, this.pdfExportHideClass, {\n            scale: 0.5,\n            landscape: true\n          }, this.model.task.last.value);\n        }\n      }), null, \"downloadAndSavePdf\", null));\n      _defineProperty(this, \"downloadAsCsv\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (csvOptions, saveResource) {\n          const reportElements = this.model.quoteTable.last.value.elements;\n          for (const option of csvOptions) {\n            if (!option.value) continue;\n            const element = reportElements[option.index - 1];\n            const tableName = element.name;\n            const values = element.values;\n            const thead = element.axes.thead.map(i => i.value);\n            const tfoot = element.axes.tfoot;\n            yield this.reportsDownload.downloadAsCsv(`${this.filename}-${tableName}`, thead, tfoot, `${this.title}-${tableName}`, values, saveResource ? this.model.task.last.value : null);\n          }\n          this.csvExportOptions = false;\n        }\n      }), null, \"downloadAsCsv\", null));\n      _defineProperty(this, \"onDateChange\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSelectedDate, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onDateChange\", null));\n    }\n    get selectedDate() {\n      if (this._selectedDate) return this._selectedDate;\n      return (0, _moment.default)(new Date()).format('YYYY-MM-DD');\n    }\n    set selectedDate(value) {\n      this._selectedDate = value;\n      return value;\n    }\n    get csvOptions() {\n      if (this._csvOptions) return this._csvOptions;\n      return this.model.quoteTable.last.value.elements.filter(e => e.elementType === 'TABLE').map(i => {\n        return {\n          name: i.name,\n          value: false,\n          index: i.index\n        };\n      });\n    }\n    set csvOptions(value) {\n      this._csvOptions = value;\n      return value;\n    }\n    get isExportDisabled() {\n      return this.downloadAsCsv.isRunning || !this.csvOptions.some(item => item.value);\n    }\n    toggleCsvOption(optionIndex, event) {\n      this.csvOptions = this.csvOptions.map((option, index) => {\n        if (index !== optionIndex) return option;\n        return {\n          ...option,\n          value: event.target.checked\n        };\n      });\n    }\n    get title() {\n      return `${this.model.task.last.value.name} quote report on ${(0, _moment.default)(this.selectedDate).format(this.intl.t('date.slashDayFirst'))}`;\n    }\n    get filename() {\n      const currentDate = new Date(this.selectedDate);\n      const year = currentDate.getFullYear();\n      const month = (currentDate.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-based\n      const day = currentDate.getDate().toString().padStart(2, '0');\n      return `${year}-${month}-${day}_quote-report`;\n    }\n    get crumbStack() {\n      const projectPath = this.model.basePath.split('.task')[0];\n      const basePath = this.model.basePath;\n      const paths = [{\n        route: projectPath,\n        model: this.model.task.last.value.belongsTo('project').id(),\n        pageTitle: this.model.task.last.value.belongsTo('project').value()?.name\n      }];\n      const taskList = [];\n      (function generatePathsFromTask(task) {\n        if (task.belongsTo('parent').value()) {\n          taskList.unshift({\n            route: basePath,\n            model: task.belongsTo('parent').id(),\n            pageTitle: task.belongsTo('parent').value()?.name\n          });\n          generatePathsFromTask(task.belongsTo('parent').value());\n        }\n      }).bind(this)(this.model.task.last.value);\n      taskList.push({\n        route: this.model.basePath,\n        model: this.model.task.last.value.id,\n        pageTitle: this.model.task.last.value.name\n      });\n      return paths.concat(taskList);\n    }\n    get isLoading() {\n      return this.model.quoteTable.isRunning || this.model.task.isRunning || this.model.parentTasks.isRunning;\n    }\n    updateSelectedDate(value) {\n      this.selectedDate = value;\n    }\n    closeCSVExport() {\n      this.csvExportOptions = false;\n      this.csvOptions = this.csvOptions.map(i => {\n        return {\n          ...i,\n          value: false\n        };\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"reportsDownload\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"_selectedDate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"_csvOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleCsvOption\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleCsvOption\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeCSVExport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeCSVExport\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/builda-price/scheduling\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _service.inject)(), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/builda-price/scheduling/timeline\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/object\", \"@ember/controller\", \"@bryntum/gantt\", \"@ember/service\", \"portal/config/environment\", \"@ember/runloop\", \"@glimmer/tracking\", \"ember-local-storage\", \"@bryntum/gantt/locales/gantt.locale.ZhCn.js\"], function (_exports, _asyncArrowRuntime, _object, _controller, _gantt, _service, _environment, _runloop, _tracking, _emberLocalStorage, _ganttLocaleZhCn) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/object\",0,\"@ember/controller\",0,\"@bryntum/gantt\",0,\"@ember/service\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"@ember/runloop\",0,\"@glimmer/tracking\",0,\"ember-local-storage\",0,\"ember-concurrency\",0,\"@bryntum/gantt/locales/gantt.locale.ZhCn.js\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _dec2 = (0, _object.computed)('selected_projects', 'model.projects.last.value', 'projectsById'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor6, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor7, this);\n      _initializerDefineProperty(this, \"ganttChart\", _descriptor8, this);\n      _initializerDefineProperty(this, \"taskImportModalVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"searchFilterRegex\", _descriptor0, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor1, this);\n      _initializerDefineProperty(this, \"undoCount\", _descriptor10, this);\n      _initializerDefineProperty(this, \"redoCount\", _descriptor11, this);\n      _initializerDefineProperty(this, \"ganttIsLoading\", _descriptor12, this);\n      _defineProperty(this, \"queryParams\", ['selected_projects']);\n      _initializerDefineProperty(this, \"selected_projects\", _descriptor13, this);\n      _initializerDefineProperty(this, \"_ganttFillTicksEnabled\", _descriptor14, this);\n      _initializerDefineProperty(this, \"_ganttSubGridConfigsEnabled\", _descriptor15, this);\n      _initializerDefineProperty(this, \"_ganttTableCollapsed\", _descriptor16, this);\n      _initializerDefineProperty(this, \"_ganttDependenciesEnabled\", _descriptor17, this);\n      _initializerDefineProperty(this, \"_ganttLabelsEnabled\", _descriptor18, this);\n      _initializerDefineProperty(this, \"_ganttCriticalPathsEnabled\", _descriptor19, this);\n      _initializerDefineProperty(this, \"_ganttNonWorkingTimeEnabled\", _descriptor20, this);\n      _initializerDefineProperty(this, \"_ganttColumnLinesEnabled\", _descriptor21, this);\n      _initializerDefineProperty(this, \"_ganttRollupsEnabled\", _descriptor22, this);\n      _initializerDefineProperty(this, \"_ganttProgressLineEnabled\", _descriptor23, this);\n      _initializerDefineProperty(this, \"_ganttParentAreaEnabled\", _descriptor24, this);\n      _defineProperty(this, \"onSyncGantt\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            this.ganttChart.readOnly = true;\n            yield this.ganttChart.project.sync();\n            this.ganttChart.project.stm.resetQueue();\n            this.ganttChart.project.stm.disable();\n            this.ganttChart.project.stm.enable();\n          } catch (error) {\n            yield this.ganttChart.project.doAutoLoad();\n            this.notifications.error({\n              message: this.intl.t('entity.builda-price.scheduling.timeline.somethingWentWrongSyncingTheTimeline'),\n              error\n            });\n          } finally {\n            this.ganttChart.readOnly = false;\n          }\n        }\n      }), null, \"onSyncGantt\", null));\n      _defineProperty(this, \"initializeGanttChart\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projectIds = this.selectedProjects?.map(p => p.id);\n          if (!projectIds?.length) {\n            this.ganttChart = null;\n            return;\n          }\n\n          // don't create the gantt chart again if we already have one\n          if (this.ganttChart) {\n            yield this.ganttChart.project.load({\n              request: {\n                params: {\n                  subjectEntityId: this.sessionData.entity.id,\n                  entityIds: [this.sessionData.entity.id],\n                  projectIds\n                }\n              }\n            });\n            return;\n          }\n          const _this = this;\n          const hasSchedulingTask = this.selectedProjects.every(p => p.isSchedulingEnabled());\n          if (!hasSchedulingTask) {\n            this.ganttChart = null;\n            return;\n          }\n          const canManageUsersAndWorkers = this.selectedProjects.every(p => this.newFeatureFlags.includesFeatureFlags(p, 'canManageWorkers', 'canManageUsers'));\n          const canViewUsersAndWorkers = canManageUsersAndWorkers || this.selectedProjects.every(p => this.newFeatureFlags.includesFeatureFlags(p, 'canUseWorkers', 'canUseUsers'));\n          const canUseProgress = this.selectedProjects.every(p => this.newFeatureFlags.includesFeatureFlags(p, 'canUseProgressPage'));\n          const columns = [{\n            type: 'name',\n            width: 250\n          }, {\n            type: 'startdate'\n          }, {\n            type: 'enddate',\n            hidden: true\n          }, {\n            type: 'duration'\n          }];\n          if (canViewUsersAndWorkers) {\n            columns.push({\n              type: 'resourceassignment',\n              width: 120,\n              showAvatars: true\n            });\n          } else if (canManageUsersAndWorkers) {\n            columns.push({\n              type: 'resourceassignment',\n              width: 120,\n              showAvatars: true,\n              readOnly: true,\n              editor: {\n                readOnly: true,\n                picker: false\n              }\n            });\n          }\n          if (canUseProgress) columns.push({\n            type: 'percentdone',\n            showCircle: true,\n            readOnly: true,\n            width: 70\n          });\n          const taskMenu = {\n            items: {\n              cut: false,\n              copy: false,\n              paste: false,\n              add: false,\n              indent: false,\n              outdent: false\n            }\n          };\n          if (canUseProgress && this.showSetProgressRedirect) taskMenu.items.progress = {\n            separator: true,\n            text: this.intl.t('entity.builda-price.scheduling.timeline.Set progress'),\n            icon: 'fa fa-percent',\n            onItem({\n              taskRecord\n            }) {\n              window.open(_this.router.urlFor('entity.builda-price.projects.project.progress', taskRecord.data.project), '_blank');\n            }\n          };\n          if (this.model.user.last.value?.language?.toLowerCase().startsWith('zh')) {\n            _gantt.LocaleManager.applyLocale('ZhCN', _ganttLocaleZhCn.default);\n          } else {\n            _gantt.LocaleManager.applyLocale('En', {\n              DateHelper: {\n                locale: 53 // http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry\n              },\n              ProjectLines: {\n                'Project Start': 'Start Date',\n                'Project End': 'End Date'\n              }\n            });\n          }\n          (0, _runloop.next)(() => {\n            this.ganttChart = new _gantt.Gantt({\n              smoothZoom: true,\n              visibleDate: {\n                date: new Date(),\n                block: 'center'\n              },\n              appendTo: 'gantt-chart-container',\n              scrollTaskIntoViewOnCellClick: {\n                block: 'start',\n                animate: true,\n                highlight: true\n              },\n              columns,\n              project: {\n                autoLoad: true,\n                autoSync: false,\n                trackProjectSettings: false,\n                listeners: {\n                  loadStart: () => this.ganttIsLoading = true,\n                  load: () => this.ganttIsLoading = false,\n                  loadFail: () => this.ganttIsLoading = false,\n                  loadCanceled: () => this.ganttIsLoading = false\n                },\n                stm: {\n                  autoRecord: true,\n                  listeners: {\n                    recordingstop: ({\n                      stm\n                    }) => {\n                      this.redoCount = stm.length - stm.position;\n                      this.undoCount = stm.position;\n                    },\n                    restoringstop: ({\n                      stm\n                    }) => {\n                      this.redoCount = stm.length - stm.position;\n                      this.undoCount = stm.position;\n                    },\n                    queueReset: () => {\n                      this.redoCount = 0;\n                      this.undoCount = 0;\n                    }\n                  }\n                },\n                resetUndoRedoQueuesAfterLoad: true,\n                silenceInitialCommit: false,\n                // https://bryntum.com/products/schedulerpro/docs/api/Scheduler/model/ProjectModel#config-silenceInitialCommit\n                autoCalculatePercentDoneForParentTasks: false,\n                transport: {\n                  load: {\n                    url: `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/gantt-chart/get-data`,\n                    method: 'GET',\n                    mode: 'cors',\n                    cache: 'no-cache',\n                    credentials: 'same-origin',\n                    referrerPolicy: 'no-referrer',\n                    params: {\n                      subjectEntityId: this.sessionData.entity.id,\n                      entityIds: [this.sessionData.entity.id],\n                      projectIds\n                    },\n                    headers: {\n                      'Content-Type': 'application/json',\n                      Authorization: `Bearer ${this.session.data.authenticated.access_token}`\n                    }\n                  },\n                  sync: {\n                    url: `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/gantt-chart/sync-data`,\n                    method: 'POST',\n                    mode: 'cors',\n                    cache: 'no-cache',\n                    credentials: 'same-origin',\n                    referrerPolicy: 'no-referrer',\n                    params: {\n                      subjectEntityId: this.sessionData.entity.id\n                    },\n                    headers: {\n                      'Content-Type': 'application/json',\n                      Authorization: `Bearer ${this.session.data.authenticated.access_token}`\n                    }\n                  }\n                }\n              },\n              /* start feature flags */\n              fillTicks: this.ganttFillTicksEnabled,\n              subGridConfigs: {\n                locked: {\n                  collapsed: this.ganttTableCollapsed && !this.ganttSubGridConfigsEnabled\n                },\n                normal: {\n                  collapsed: this.ganttSubGridConfigsEnabled\n                }\n              },\n              listeners: {\n                subGridCollapse: event => this.syncSubGridSetting(event, true),\n                subGridExpand: event => this.syncSubGridSetting(event, false)\n              },\n              showTaskColorPickers: true,\n              features: {\n                filter: true,\n                cellEdit: {\n                  addNewAtEnd: false // https://bryntum.com/products/grid/docs/#Grid/feature/CellEdit#config-addNewAtEnd\n                },\n                dependencyEdit: true,\n                // enable double clicking of dependency to edit to enable or disable dependencies\n                dependencies: {\n                  disabled: !this.ganttDependenciesEnabled\n                },\n                labels: {\n                  disabled: !this.ganttLabelsEnabled,\n                  left: {\n                    field: 'name'\n                  }\n                },\n                criticalPaths: {\n                  disabled: !this.ganttCriticalPathsEnabled\n                },\n                nonWorkingTime: {\n                  disabled: !this.ganttNonWorkingTimeEnabled\n                },\n                columnLines: {\n                  disabled: !this.ganttColumnLinesEnabled\n                },\n                rollups: {\n                  disabled: !this.ganttRollupsEnabled\n                },\n                progressLine: {\n                  disabled: !this.ganttProgressLineEnabled\n                },\n                parentArea: {\n                  disabled: !this.ganttParentAreaEnabled\n                },\n                /* start custom feature config */\n                timeRanges: {\n                  showCurrentTimeLine: {\n                    name: 'Today',\n                    cls: 'fa fa-flag'\n                  }\n                },\n                projectLines: {\n                  'Project Start': 'start date',\n                  'Project End': 'end date'\n                },\n                percentBar: {\n                  allowResize: false\n                },\n                rowReorder: false,\n                pdfExport: {\n                  exportDialog: {\n                    items: {\n                      orientationField: {\n                        value: 'landscape'\n                      },\n                      rowsRangeField: {\n                        hidden: true\n                      },\n                      // export what's on screen (e.g. after Fit to screen) instead of the whole buffered time axis\n                      scheduleRangeField: {\n                        hidden: true,\n                        value: 'currentview'\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 showDownloadButton() {\n      return !this.model.basePath?.includes('embed');\n    }\n    get showImportTasksButton() {\n      return !this.model.basePath?.includes('embed');\n    }\n    get showSetProgressRedirect() {\n      return !this.model.basePath?.includes('embed');\n    }\n    get projectsById() {\n      if (!this.model.projects.last.value) return {};\n      return this.model.projects.last.value.reduce((projects, p) => ({\n        ...projects,\n        [p.id]: p\n      }), {});\n    }\n    get selectedProjects() {\n      if (!this.model.projects.last.value) return [];\n      const projectIds = this.selected_projects?.split(',') || [];\n      const projects = [];\n      projectIds.forEach(projectId => {\n        const project = this.projectsById[projectId];\n        if (project) projects.push(project);\n      });\n      return projects;\n    }\n    set selectedProjects(projects = []) {\n      if (!projects.length) {\n        (0, _object.set)(this, 'selected_projects', null);\n        return;\n      }\n      const projectIds = projects.map(p => p.id).join(',');\n      (0, _object.set)(this, 'selected_projects', projectIds);\n    }\n    get isLoading() {\n      return this.model.projects.isRunning || this.model.user.isRunning;\n    }\n    get projectIsSetting() {\n      return this.onSetProjects.isRunning || this.onSyncGantt.isRunning || this.ganttIsLoading;\n    }\n    get ganttChartIsVisible() {\n      return this.selectedProjects.length > 0;\n    }\n    get manageableProjects() {\n      // TODO this is the wrong permission probably\n      return this.selectedProjects?.filter(p => this.newFeatureFlags.includesSomeFeatureFlags(p, 'canManageTasks')) || [];\n    }\n    get canUseImportAndManage() {\n      return this.manageableProjects.length > 0;\n    }\n    get ganttFillTicksEnabled() {\n      return this._ganttFillTicksEnabled;\n    }\n    set ganttFillTicksEnabled(value) {\n      this._ganttFillTicksEnabled = value;\n      this.persistedSettings.set('ganttFillTicksEnabled', value);\n      this.ganttChart.fillTicks = value;\n    }\n    get ganttSubGridConfigsEnabled() {\n      return this._ganttSubGridConfigsEnabled;\n    }\n    set ganttSubGridConfigsEnabled(value) {\n      this._ganttSubGridConfigsEnabled = value;\n      this.persistedSettings.set('ganttSubGridConfigsEnabled', value);\n      this.ganttChart.subGrids.normal.collapsed = value;\n\n      // the table and the schedule can't both be hidden\n      if (value && this.ganttTableCollapsed) this.ganttTableCollapsed = false;\n    }\n    get ganttTableCollapsed() {\n      return this._ganttTableCollapsed;\n    }\n    set ganttTableCollapsed(value) {\n      this._ganttTableCollapsed = value;\n      this.persistedSettings.set('ganttTableCollapsed', value);\n      this.ganttChart.subGrids.locked.collapsed = value;\n      if (value && this.ganttSubGridConfigsEnabled) this.ganttSubGridConfigsEnabled = false;\n    }\n    get ganttDependenciesEnabled() {\n      return this._ganttDependenciesEnabled;\n    }\n    set ganttDependenciesEnabled(value) {\n      this._ganttDependenciesEnabled = value;\n      this.persistedSettings.set('ganttDependenciesEnabled', value);\n      this.ganttChart.features.dependencies.disabled = !value;\n    }\n    get ganttLabelsEnabled() {\n      return this._ganttLabelsEnabled;\n    }\n    set ganttLabelsEnabled(value) {\n      this._ganttLabelsEnabled = value;\n      this.persistedSettings.set('ganttLabelsEnabled', value);\n      this.ganttChart.features.labels.disabled = !value;\n    }\n    get ganttCriticalPathsEnabled() {\n      return this._ganttCriticalPathsEnabled;\n    }\n    set ganttCriticalPathsEnabled(value) {\n      this._ganttCriticalPathsEnabled = value;\n      this.persistedSettings.set('ganttCriticalPathsEnabled', value);\n      this.ganttChart.features.criticalPaths.disabled = !value;\n    }\n    get ganttNonWorkingTimeEnabled() {\n      return this._ganttNonWorkingTimeEnabled;\n    }\n    set ganttNonWorkingTimeEnabled(value) {\n      this._ganttNonWorkingTimeEnabled = value;\n      this.persistedSettings.set('ganttNonWorkingTimeEnabled', value);\n      this.ganttChart.features.nonWorkingTime.disabled = !value;\n    }\n    get ganttColumnLinesEnabled() {\n      return this._ganttColumnLinesEnabled;\n    }\n    set ganttColumnLinesEnabled(value) {\n      this._ganttColumnLinesEnabled = value;\n      this.persistedSettings.set('ganttColumnLinesEnabled', value);\n      this.ganttChart.features.columnLines.disabled = !value;\n    }\n    get ganttRollupsEnabled() {\n      return this._ganttRollupsEnabled;\n    }\n    set ganttRollupsEnabled(value) {\n      this._ganttRollupsEnabled = value;\n      this.persistedSettings.set('ganttRollupsEnabled', value);\n      this.ganttChart.features.rollups.disabled = !value;\n    }\n    get ganttProgressLineEnabled() {\n      return this._ganttProgressLineEnabled;\n    }\n    set ganttProgressLineEnabled(value) {\n      this._ganttProgressLineEnabled = value;\n      this.persistedSettings.set('ganttProgressLineEnabled', value);\n      this.ganttChart.features.progressLine.disabled = !value;\n    }\n    get ganttParentAreaEnabled() {\n      return this._ganttParentAreaEnabled;\n    }\n    set ganttParentAreaEnabled(value) {\n      this._ganttParentAreaEnabled = value;\n      this.persistedSettings.set('ganttParentAreaEnabled', value);\n      this.ganttChart.features.parentArea.disabled = !value;\n    }\n    toggleSetting(key, event) {\n      this[key] = !this[key];\n      event.stopPropagation();\n      event.preventDefault();\n    }\n\n    // the splitter's own collapse buttons go straight to the gantt, so mirror\n    // them back without re-running the setters\n    syncSubGridSetting({\n      subGrid\n    }, collapsed) {\n      const key = {\n        locked: 'ganttTableCollapsed',\n        normal: 'ganttSubGridConfigsEnabled'\n      }[subGrid.region];\n      if (!key) return;\n      this[`_${key}`] = collapsed;\n      this.persistedSettings.set(key, collapsed);\n    }\n    noop(event) {\n      event.stopPropagation();\n      event.preventDefault();\n    }\n    onZoomInClick() {\n      this.ganttChart.zoomIn();\n    }\n    onZoomOutClick() {\n      this.ganttChart.zoomOut();\n    }\n    onCollapseAllClick() {\n      this.ganttChart.expandAll();\n    }\n    onUndo() {\n      if (this.ganttChart.project.stm.canUndo) this.ganttChart.project.stm.undo();\n    }\n    onRedo() {\n      if (this.ganttChart.project.stm.canRedo) this.ganttChart.project.stm.redo();\n    }\n    onExpandAllClick() {\n      this.ganttChart.collapseAll();\n    }\n    onShiftPreviousClick() {\n      this.ganttChart.shiftPrevious();\n    }\n    onShiftNextClick() {\n      this.ganttChart.shiftNext();\n    }\n    onZoomToFitClick() {\n      this.ganttChart.zoomToFit({\n        leftMargin: 50,\n        rightMargin: 50\n      });\n    }\n    onGoToTodayClick() {\n      this.ganttChart.visibleDate = {\n        date: new Date(),\n        block: 'center'\n      };\n    }\n    onSearchChange(event) {\n      this.searchString = event.target.value;\n      if (event.target.value === '') {\n        this.searchFilterRegex = new RegExp('(.*?)');\n      } else {\n        const searchValue = event.target.value.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n        this.searchFilterRegex = new RegExp(searchValue, 'i');\n      }\n      this.ganttChart.store.filter({\n        filters: task => task.name.match(this.searchFilterRegex),\n        replace: true\n      });\n    }\n\n    // copy from gantt.module.js\n    formatDuration(duration, nbrDecimals) {\n      const multiplier = Math.pow(10, nbrDecimals);\n      return Math.round(duration * multiplier) / multiplier;\n    }\n    downloadPDF() {\n      this.ganttChart.features.pdfExport.showExportDialog();\n    }\n    async onTaskImportModalClose(reloadProject) {\n      if (reloadProject) await this.initializeGanttChart.perform();\n      this.taskImportModalVisible = false;\n    }\n    onSetProjects(projects) {\n      const confirmChange = Boolean(this.selectedProjects.length && this.undoCount);\n      if (confirmChange && !confirm(this.intl.t('entity.builda-price.scheduling.timeline.youHaveUnsavedChangesThatWillBeLostIfYouDecideToSelectAnotherProjectDoYouWantContinue'))) return;\n      this.undoCount = 0;\n      this.redoCount = 0;\n      this.selectedProjects = projects;\n\n      // treat this like a side effect so people can keep selecting projects without waiting for the gantt to load\n      this.initializeGanttChart.perform();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"ganttChart\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"taskImportModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"searchFilterRegex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new RegExp('(.*?)');\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"undoCount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"redoCount\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 0;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"ganttIsLoading\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"selected_projects\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"selectedProjects\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"selectedProjects\"), _class2.prototype), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttFillTicksEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttFillTicksEnabled');\n    }\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttSubGridConfigsEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttSubGridConfigsEnabled');\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttTableCollapsed\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttTableCollapsed');\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttDependenciesEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttDependenciesEnabled') ?? true;\n    }\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttLabelsEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttLabelsEnabled') ?? true;\n    }\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttCriticalPathsEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttCriticalPathsEnabled');\n    }\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttNonWorkingTimeEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttNonWorkingTimeEnabled') ?? true;\n    }\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttColumnLinesEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttColumnLinesEnabled') ?? true;\n    }\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttRollupsEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttRollupsEnabled');\n    }\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttProgressLineEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttProgressLineEnabled');\n    }\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"_ganttParentAreaEnabled\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.persistedSettings.get('ganttParentAreaEnabled');\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleSetting\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleSetting\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"syncSubGridSetting\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"syncSubGridSetting\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"noop\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"noop\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onZoomInClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onZoomInClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onZoomOutClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onZoomOutClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onCollapseAllClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onCollapseAllClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onUndo\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onUndo\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onRedo\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onRedo\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onExpandAllClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onExpandAllClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onShiftPreviousClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onShiftPreviousClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onShiftNextClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onShiftNextClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onZoomToFitClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onZoomToFitClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onGoToTodayClick\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onGoToTodayClick\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSearchChange\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSearchChange\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"downloadPDF\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"downloadPDF\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onTaskImportModalClose\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onTaskImportModalClose\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSetProjects\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSetProjects\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/disabled\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\"], function (_exports, _controller, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _service.inject)(), _dec2 = (0, _service.inject)(), _dec3 = (0, _service.inject)(), _dec4 = (0, _service.inject)(), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"chargebee\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n    }\n    get hasChargebeeSubscription() {\n      // TODO also check if the user is able to manage the subscription\n      return this.chargebee.ready;\n    }\n    logout() {\n      this.session.invalidate();\n    }\n    openChargebee() {\n      try {\n        this.chargebee.open();\n      } catch (error) {\n        this.notifications.error({\n          message: 'Could not open subscription management portal',\n          error\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"chargebee\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"logout\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"logout\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openChargebee\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openChargebee\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/financials\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"portal/utils/platform\"], function (_exports, _controller, _service, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"portal/utils/platform\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n    get buildaPriceLogoSrc() {\n      return _platform.BRANDING.BUILDA_PRICE.logo;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/financials/chart-of-accounts\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/utils\", \"@ember/object\", \"rsvp\", \"jquery\", \"portal/utils/nest\"], function (_exports, _controller, _service, _utils, _object, _rsvp, _jquery, _nest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/utils\",0,\"@ember/object\",0,\"rsvp\",0,\"jquery\",0,\"portal/utils/nest\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    isLoading: false,\n    isSaving: false,\n    nestedAccounts: (0, _object.computed)('debitCredit', 'model.[]', 'parent.debitCredit', function () {\n      var accounts = (0, _object.get)(this, 'model');\n      if ((0, _utils.isEmpty)(accounts)) {\n        return [];\n      }\n      accounts.forEach(account => {\n        account.setProperties({\n          tmpId: (0, _object.get)(account, 'id') || Math.floor(Math.random() * Math.pow(10, 10)).toString(),\n          debitCreditMatchesParent: (0, _object.computed)('debitCredit', 'parent.debitCredit', function () {\n            return (0, _object.get)(this, 'debitCredit') === (0, _object.get)(this, 'parent.debitCredit');\n          })\n        });\n      });\n      var childAccounts = accounts.filter(account => {\n        return (0, _utils.isEmpty)((0, _object.get)(account, 'parent').content);\n      });\n      accounts = {\n        'profit-and-loss': (0, _nest.default)(childAccounts.filterBy('category', 'profit-and-loss'), accounts, 'tmpId'),\n        'balance-sheet': (0, _nest.default)(childAccounts.filterBy('category', 'balance-sheet'), accounts, 'tmpId'),\n        'other-data': (0, _nest.default)(childAccounts.filterBy('category', 'other-data'), accounts, 'tmpId')\n      };\n      return accounts;\n    }),\n    actions: {\n      addLine(category) {\n        category = category || 'profit-and-loss';\n        const accounts = (0, _object.get)(this, 'model').filterBy('category', category).sortBy('sortIndex');\n        const lastAccount = accounts.objectAt(accounts.length - 1);\n        const highestIndex = lastAccount ? (0, _object.get)(lastAccount, 'sortIndex') : -1;\n        const account = this.store.createRecord('account', {\n          sortIndex: highestIndex + 1,\n          debitCredit: lastAccount ? (0, _object.get)(lastAccount, 'debitCredit') || 'CREDIT' : 'CREDIT',\n          category: category,\n          parent: lastAccount ? (0, _object.get)(lastAccount, 'parent') || null : null,\n          status: 'ACTIVE',\n          format: 'CURRENCY',\n          periodic: category !== 'balance-sheet',\n          entity: (0, _object.get)(this, 'sessionData.entity')\n        });\n        (0, _object.get)(this, 'model').pushObject(account);\n      },\n      createChildAccount(account) {\n        var newAccount = {\n          name: '',\n          debitCredit: (0, _object.get)(account, 'debitCredit') || 'CREDIT',\n          isHeading: false,\n          sortIndex: (0, _object.get)(account, 'sortIndex') + 1,\n          category: (0, _object.get)(account, 'category'),\n          periodic: (0, _object.get)(account, 'periodic'),\n          parent: account,\n          status: 'ACTIVE',\n          format: (0, _object.get)(account, 'format') || 'CURRENCY',\n          entity: (0, _object.get)(this, 'sessionData.entity')\n        };\n        const createAccount = this.store.createRecord('account', newAccount);\n        (0, _object.get)(this, 'model').pushObject(createAccount);\n      },\n      deleteAccount(account) {\n        if ((0, _object.get)(account, 'isNew')) {\n          // If the account hasn't been saved yet, just remove it from the model.\n          (0, _object.get)(this, 'model').removeObject(account);\n          (0, _object.get)(this, 'notifications').success('Successfully removed account.');\n          return;\n        }\n        // Check cases where account should not be deleted.\n        if ((0, _object.get)(account, 'label') != null) {\n          // If the account is used in a kpi, do not let it be deleted.\n          (0, _object.get)(this, 'notifications').error('This account is used in a KPI calculation, it is unable to be deleted.');\n          return;\n        }\n        if ((0, _object.get)(account, 'children.length')) {\n          // If the account has children, do not let it be deleted.\n          (0, _object.get)(this, 'notifications').error('You are not able to delete an account with children.');\n          return;\n        }\n        (0, _object.set)(this, 'accountToDelete', account);\n        this.toggleProperty('isDeleting');\n      },\n      cancelDelete() {\n        (0, _object.set)(this, 'accountToDelete', null);\n        this.toggleProperty('isDeleting');\n      },\n      // This will be called after checking that the account can be deleted.\n      doDelete() {\n        const account = (0, _object.get)(this, 'accountToDelete');\n        const parentAccount = (0, _object.get)(this, 'model').findBy('id', (0, _object.get)(account, 'parent.id'));\n        if (!account || (0, _object.get)(account, 'isNew')) {\n          this.toggleProperty('isDeleting');\n          return;\n        }\n        (0, _object.set)(this, 'isSaving', true);\n        account.destroyRecord().then(() => {\n          (0, _object.get)(this, 'model').removeObject(account);\n          const remainingChildren = (0, _object.get)(this, 'model').filter(a => (0, _object.get)(a, 'parent.id') === (parentAccount, 'id'));\n          if ((0, _object.get)(remainingChildren, 'length')) return;\n          (0, _object.set)(parentAccount, 'isHeading', false);\n          return parentAccount.save();\n        }).then(() => {\n          (0, _object.get)(this, 'notifications').success('Successfully removed account.');\n          this.toggleProperty('isDeleting');\n          (0, _object.set)(this, 'isSaving', false);\n        }).catch(err => {\n          (0, _object.get)(this, 'notifications').error('Deletion of this account failed.');\n          this.toggleProperty('isDeleting');\n          (0, _object.set)(this, 'isSaving', false);\n          throw err;\n        });\n      },\n      save() {\n        const accounts = this.store.peekAll('account').filterBy('entity.id', (0, _object.get)(this, 'sessionData.entity.id'));\n        const profitAndLossData = (0, _jquery.default)('.coa-editor > ol.profit-and-loss-list').nestedSortable('toArray');\n        const balanceSheetData = (0, _jquery.default)('.coa-editor > ol.balance-sheet-list').nestedSortable('toArray');\n        const otherDataData = (0, _jquery.default)('.coa-editor > ol.other-data-list').nestedSortable('toArray');\n        (0, _object.set)(this, 'isSaving', true);\n        function setAccountProperties(line) {\n          const account = accounts.findBy('tmpId', line.item_id);\n          const parent = accounts.findBy('tmpId', line.parent_id);\n          if (account) {\n            (0, _object.set)(account, 'parent', parent);\n            (0, _object.set)(account, 'sortIndex', line.left);\n          }\n          if (parent) {\n            (0, _object.set)(parent, 'isHeading', true);\n          }\n        }\n        accounts.beginPropertyChanges();\n        profitAndLossData.forEach(setAccountProperties);\n        balanceSheetData.forEach(setAccountProperties);\n        otherDataData.forEach(setAccountProperties);\n        accounts.endPropertyChanges();\n        queuedSave(accounts).then(() => {\n          (0, _object.set)(this, 'isSaving', false);\n          (0, _object.get)(this, 'notifications').success('Accounts saved successfully.');\n        }, () => {\n          (0, _object.set)(this, 'isSaving', false);\n          (0, _object.get)(this, 'notifications').error('Accounts failed to save.');\n        });\n      },\n      toggleDebitCredit(account) {\n        var debitCredit = (0, _object.get)(account, 'debitCredit');\n        (0, _object.set)(account, 'debitCredit', debitCredit === 'CREDIT' ? 'DEBIT' : 'CREDIT');\n      }\n    }\n  });\n  function queuedSave(accounts) {\n    const promises = [];\n    accounts.forEach(account => {\n      // It the account doesn't have an unIDed parent\n      if ((0, _object.get)(account, 'parent').content === null || !(0, _utils.isEmpty)((0, _object.get)(account, 'parent.id'))) {\n        if ((0, _object.get)(account, 'hasDirtyAttributes')) {\n          const save = account.save();\n          promises.push(save);\n\n          // If this account is new\n          if ((0, _utils.isEmpty)((0, _object.get)(account, 'id'))) {\n            // Find its children\n            var children = accounts.filterBy('parent.tmpId', (0, _object.get)(account, 'tmpId'));\n            if (children.length) {\n              // And save them after this has finished saving\n              save.then(function () {\n                queuedSave(children, 1);\n              });\n            }\n          }\n        }\n      }\n    });\n    return _rsvp.default.all(promises);\n  }\n});","define(\"portal/controllers/entity/financials/dashboard-loading\", [\"exports\", \"portal/controllers/entity/financials/dashboard\"], function (_exports, _dashboard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _dashboard.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/dashboard\"eaimeta@70e063a35619d71f\n});","define(\"portal/controllers/entity/financials/dashboard\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)()\n  });\n});","define(\"portal/controllers/entity/financials/general\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"portal/mixins/edit-record\", \"moment\"], function (_exports, _computed, _controller, _object, _service, _editRecord, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/mixins/edit-record\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend(_editRecord.default, {\n    sessionData: (0, _service.inject)(),\n    firstClosedPeriodLabel: (0, _object.computed)('sessionData.entity.parent.id', function () {\n      const isTopLevel = !(0, _object.get)(this, 'sessionData.entity.parent.id');\n      return isTopLevel ? 'Hide group reports on and after' : 'Withhold data from groups on and after';\n    }),\n    firstClosedPeriodExplanation: (0, _object.computed)('sessionData.entity.parent.id', function () {\n      const isTopLevel = !(0, _object.get)(this, 'sessionData.entity.parent.id');\n      return isTopLevel ? 'Setting the First Closed Period will prevent branches from seeing group reports on or before the given period' : \"Setting the First Closed Period will prevent your branch's data from being included in group reports on or before the given period\";\n    }),\n    openAllPeriods: (0, _object.computed)('firstClosedPeriod', {\n      set(key, value) {\n        if (value) {\n          // Open all periods by clearing the firstClosedPeriod option\n          (0, _object.set)(this, 'model.firstClosedPeriod', null);\n        } else {\n          const month = (0, _object.get)(this, 'firstClosedMonth');\n          const year = (0, _object.get)(this, 'firstClosedYear');\n          this.setFirstClosedPeriod(month, year);\n        }\n        return value;\n      },\n      get() {\n        return (0, _object.get)(this, 'firstClosedPeriod') == null;\n      }\n    }),\n    firstClosedPeriod: (0, _computed.alias)('model.firstClosedPeriod'),\n    setFirstClosedPeriod(month, year) {\n      // Minus 1 because moment expects a 0-based month index\n      const firstClosedPeriod = (0, _moment.default)().month(month - 1).year(year).endOf('month').toDate();\n      (0, _object.set)(this, 'firstClosedPeriod', firstClosedPeriod);\n    },\n    firstClosedMonth: (0, _object.computed)('firstClosedPeriod', {\n      get() {\n        // Add 1 because moment returns a 0-based month index\n        return (0, _moment.default)((0, _object.get)(this, 'firstClosedPeriod') || new Date()).month() + 1;\n      },\n      set(key, month) {\n        this.setFirstClosedPeriod(month, (0, _object.get)(this, 'firstClosedYear'));\n        return month;\n      }\n    }),\n    firstClosedYear: (0, _object.computed)('firstClosedPeriod', {\n      get() {\n        return (0, _moment.default)((0, _object.get)(this, 'firstClosedPeriod') || new Date()).year();\n      },\n      set(key, year) {\n        this.setFirstClosedPeriod((0, _object.get)(this, 'firstClosedMonth'), year);\n        return year;\n      }\n    }),\n    balanceDate: (0, _object.computed)('model.balanceDate', {\n      get() {\n        return (0, _object.get)(this, 'model.balanceDate') || 0;\n      },\n      set(key, value) {\n        (0, _object.set)(this, 'model.balanceDate', value);\n        return value;\n      }\n    }),\n    years: (0, _object.computed)(function () {\n      const years = [];\n      const currentYear = (0, _moment.default)().year();\n      for (let i = -4; i < 2; i++) {\n        years.push(currentYear + i);\n      }\n      return years;\n    }),\n    months: [{\n      name: 'Not Set',\n      value: 0\n    }, {\n      name: 'January',\n      value: 1\n    }, {\n      name: 'February',\n      value: 2\n    }, {\n      name: 'March',\n      value: 3\n    }, {\n      name: 'April',\n      value: 4\n    }, {\n      name: 'May',\n      value: 5\n    }, {\n      name: 'June',\n      value: 6\n    }, {\n      name: 'July',\n      value: 7\n    }, {\n      name: 'August',\n      value: 8\n    }, {\n      name: 'September',\n      value: 9\n    }, {\n      name: 'October',\n      value: 10\n    }, {\n      name: 'November',\n      value: 11\n    }, {\n      name: 'December',\n      value: 12\n    }],\n    record: (0, _computed.alias)('model')\n  });\n});","define(\"portal/controllers/entity/financials/groups/access\", [\"exports\", \"portal/controllers/entity/financials/groups/membership\"], function (_exports, _membership) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/groups/membership\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _membership.default.extend({\n    propertyToToggle: 'canAccessGroup'\n  });\n});","define(\"portal/controllers/entity/financials/groups/membership\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"rsvp\", \"@ember/utils\", \"@ember/object\"], function (_exports, _computed, _controller, _service, _rsvp, _utils, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"rsvp\",0,\"@ember/utils\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    // If true, do not allow saving, editing, or deleting.\n    noEditGroups: (0, _object.computed)('newFeatureFlags.userCanNotEditFPGroups', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.userCanNotEditFPGroups');\n    }),\n    propertyToToggle: 'isInGroup',\n    tableContent: (0, _object.computed)('group.canBeAccessedBy', 'group.members', 'model.branches.[]', 'model.groups.[]', 'propertyToToggle', function () {\n      const store = (0, _object.get)(this, 'store');\n      const groups = (0, _object.get)(this, 'model.groups');\n      const propertyName = (0, _object.get)(this, 'propertyToToggle');\n      const content = (0, _object.get)(this, 'model.branches').map(branch => {\n        const branchId = (0, _object.get)(branch, 'id');\n        (0, _object.set)(branch, 'groupData', []);\n        groups.forEach(group => {\n          const data = _object.default.extend({\n            group: group,\n            branch: branch,\n            isInGroup: (0, _object.computed)('group.members.[]', 'group.members.@each.isDeleted', {\n              get() {\n                const members = ((0, _object.get)(this, 'group').hasMany('members').value() || []).map(item => (0, _object.get)(item, 'entity'));\n                return members.findBy('id', branchId) != null;\n              },\n              set(key, value) {\n                const groupMembers = (0, _object.get)(this, 'group').hasMany('members').value();\n                const existingMember = groupMembers.find(item => {\n                  const entity = (0, _object.get)(item, 'entity');\n                  return (0, _object.get)(entity, 'id') === branchId;\n                });\n                if (value) {\n                  if (!existingMember) {\n                    const member = store.createRecord('link-entity-group-member', {\n                      entity: branch,\n                      entityGroup: group\n                    });\n                    groupMembers.pushObject(member);\n                  } else if ((0, _object.get)(existingMember, 'isDeleted')) {\n                    existingMember.rollbackAttributes();\n                  }\n                  return value;\n                }\n                if (!existingMember || (0, _object.get)(existingMember, 'isDeleted')) {\n                  return value;\n                }\n                if ((0, _object.get)(existingMember, 'isNew')) {\n                  groupMembers.removeObject(existingMember);\n                  existingMember.unloadRecord();\n                } else {\n                  existingMember.deleteRecord();\n                }\n                return value;\n              }\n            }),\n            canAccessGroup: (0, _object.computed)('group.canBeAccessedBy.[]', 'group.canBeAccessedBy.@each.isDeleted', {\n              get() {\n                const canBeAccessedBy = ((0, _object.get)(this, 'group').hasMany('canBeAccessedBy').value() || []).map(item => (0, _object.get)(item, 'entity'));\n                return canBeAccessedBy.findBy('id', branchId) != null;\n              },\n              set(key, value) {\n                const accessItems = (0, _object.get)(this, 'group').hasMany('canBeAccessedBy').value();\n                const existingAccess = accessItems.find(item => {\n                  const entity = (0, _object.get)(item, 'entity');\n                  return (0, _object.get)(entity, 'id') === branchId;\n                });\n                if (value) {\n                  if (!existingAccess) {\n                    const access = store.createRecord('link-entity-group-can-be-accessed-by', {\n                      entity: branch,\n                      entityGroup: group\n                    });\n                    accessItems.pushObject(access);\n                  } else if ((0, _object.get)(existingAccess, 'isDeleted')) {\n                    existingAccess.rollbackAttributes();\n                  }\n                  return value;\n                }\n                if (!existingAccess || (0, _object.get)(existingAccess, 'isDeleted')) {\n                  return value;\n                }\n                if ((0, _object.get)(existingAccess, 'isNew')) {\n                  accessItems.removeObject(existingAccess);\n                  existingAccess.unloadRecord();\n                } else {\n                  existingAccess.deleteRecord();\n                }\n                return value;\n              }\n            }),\n            propertyToToggle: (0, _computed.alias)(propertyName)\n          }).create();\n          (0, _object.get)(branch, 'groupData').pushObject(data);\n        });\n        return branch;\n      });\n      return content.sortBy('name');\n    }),\n    actions: {\n      addNewGroup() {\n        // If noEditGroups is set, then don't let them be created.\n        if ((0, _object.get)(this, 'noEditGroups')) return;\n        const group = this.store.createRecord('entity-group', {\n          parentEntity: (0, _object.get)(this, 'sessionData.entity')\n        });\n        (0, _object.get)(this, 'model.groups').pushObject(group);\n      },\n      deleteGroup(group) {\n        // If noEditGroups is set, then don't let them be deleted.\n        if ((0, _object.get)(this, 'noEditGroups')) return;\n        (0, _object.set)(this, 'groupBeingDeleted', group);\n      },\n      cancelDeleteGroup() {\n        (0, _object.set)(this, 'groupBeingDeleted', null);\n      },\n      confirmDeleteGroup(group) {\n        (0, _object.set)(this, 'isDeleting', true);\n        group.destroyRecord().then(() => {\n          (0, _object.set)(this, 'groupBeingDeleted', null);\n          (0, _object.get)(this, 'model.groups').removeObject(group);\n          (0, _object.set)(this, 'isDeleting', false);\n        }, reason => {\n          this.send('error', reason);\n          (0, _object.set)(this, 'groupBeingDeleted', null);\n          (0, _object.set)(this, 'isDeleting', false);\n        });\n      },\n      save() {\n        // If noEditGroups is set, then don't let them be saved.\n        if ((0, _object.get)(this, 'noEditGroups')) return;\n        const saveGroups = [];\n        const saveLinks = [];\n        const groups = (0, _object.get)(this, 'model.groups');\n\n        // If any group does not have a name\n        if (groups.map(group => (0, _utils.isEmpty)((0, _object.get)(group, 'name'))).includes(true)) {\n          (0, _object.get)(this, 'notifications').error('One of your groups does not have a name. Please give it a name before saving.');\n          return;\n        }\n        (0, _object.set)(this, 'isSaving', true);\n        groups.forEach(group => {\n          if ((0, _object.get)(group, 'isNew') || (0, _object.get)(group, 'hasDirtyAttributes')) {\n            saveGroups.push(group.save());\n          }\n          (0, _object.get)(group, 'members').forEach(item => {\n            if (item.isNew || item.isDeleted) {\n              saveLinks.push(item);\n            }\n          });\n          (0, _object.get)(group, 'canBeAccessedBy').forEach(item => {\n            if (item.isNew || item.isDeleted) {\n              saveLinks.push(item);\n            }\n          });\n        });\n        _rsvp.default.all(saveGroups).then(() => _rsvp.default.all(saveLinks.map(item => item.save()))).then(() => (0, _object.get)(this, 'notifications').success('All groups have been saved.')).catch(reason => this.send('error', reason)).finally(() => (0, _object.set)(this, 'isSaving', false));\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/groups/order\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"rsvp\"], function (_exports, _controller, _service, _object, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    // If true, do not allow saving.\n    noEditGroups: (0, _object.computed)('newFeatureFlags.userCanNotEditFPGroups', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.userCanNotEditFPGroups');\n    }),\n    isSaving: false,\n    actions: {\n      save() {\n        // Do not allow a save if noEditGroups is true.\n        if ((0, _object.get)(this, 'noEditGroups')) return;\n        const saveAll = (0, _object.get)(this, 'model.groups').map(group => group.save());\n        (0, _object.set)(this, 'isSaving', true);\n        _rsvp.default.all(saveAll).then(() => (0, _object.get)(this, 'notifications').success('Group order has been saved.')).catch(reason => this.send('error', reason)).finally(() => (0, _object.set)(this, 'isSaving', false));\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/import\", [\"exports\", \"@ember/controller\", \"@ember/object\"], function (_exports, _controller, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    hasOtherData: (0, _object.computed)('model.[]', function () {\n      const otherDataAccounts = (0, _object.get)(this, 'model').filterBy('category', 'other-data');\n      return (0, _object.get)(otherDataAccounts, 'length') > 0;\n    })\n  });\n});","define(\"portal/controllers/entity/financials/import/data\", [\"exports\", \"@ember/object/computed\", \"@ember/service\", \"@ember/controller\", \"@ember/object\", \"@ember/utils\", \"rsvp\", \"jquery\", \"portal/utils/balance-calculator\", \"portal/config/environment\"], function (_exports, _computed, _service, _controller, _object, _utils, _rsvp, _jquery, balanceCalculator, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/service\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/utils\",0,\"rsvp\",0,\"jquery\",0,\"portal/utils/balance-calculator\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  const {\n    default: calcBalances,\n    addValue\n  } = balanceCalculator;\n  var _default = _exports.default = _controller.default.extend({\n    application: (0, _controller.inject)(),\n    importController: (0, _controller.inject)('entity.financials.import'),\n    cache: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    /*\n     * Keeps track of maps that have been edited since the page was loaded.\n     * Push map objects here so that they will be saved when save and continue is clicked.\n     * Should be cleared after either saving (if save & continue was clicked),\n     * or refreshing (if step skipped or other step navigated to).\n     *\n     * This is in lieu of an Ember Data feature for tracking changes to relationships ala hasDirtyAttributes.\n     */\n    editedMaps: [],\n    steps: ['profit-and-loss', 'balance-sheet', 'other-data'],\n    stepName: (0, _object.computed)('step', function () {\n      return (0, _object.get)(this, 'step').replace(/-/g, ' ').replace(/^(\\w)|\\s(\\w)/g, w => w.toUpperCase());\n    }),\n    systems: [{\n      key: 'xero-csv',\n      label: 'Xero (CSV)',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'xero-api',\n      label: 'Xero (integration)',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'banklink',\n      label: 'BankLink',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'api',\n      label: 'Connected Application',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'eaccounts',\n      label: 'eAccounts',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'empower',\n      label: 'Empower',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'maxim',\n      label: 'Maxim',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'myob',\n      label: 'MYOB / MYOB AR',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'myob-ao',\n      label: 'MYOB AO',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'frameworks',\n      label: 'Frameworks',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'prostix',\n      label: 'ProStix',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'rees',\n      label: 'Rees',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'itm-manual',\n      label: 'ITM Manual',\n      multipleFiles: false,\n      visible: true\n    }, {\n      key: 'gj-gardner',\n      label: 'GJ Gardner',\n      multipleFiles: true,\n      visible: false\n    }],\n    visibleSystems: (0, _computed.filterBy)('systems', 'visible', true),\n    selectedSystem: (0, _object.computed)('model.import.system', 'sessionData.entity.system', 'systems', function () {\n      const systems = (0, _object.get)(this, 'systems');\n      const importSystem = systems.findBy('key', (0, _object.get)(this, 'model.import.system'));\n      const entitySystem = systems.findBy('key', (0, _object.get)(this, 'sessionData.entity.system'));\n      return importSystem || entitySystem || null;\n    }),\n    switchSystem: (0, _object.observer)('selectedSystem', function () {\n      const getBranch = (0, _object.get)(this, 'sessionData.branch');\n      if (getBranch) {\n        getBranch.then(branch => {\n          if (branch && (0, _object.get)(branch, 'hasDirtyAttributes')) {\n            branch.save();\n          }\n        });\n      }\n    }),\n    isConfiguring: (0, _object.computed)('selectedSystem', 'lastImport.length', function () {\n      const hasSelectedSystem = !(0, _utils.isEmpty)((0, _object.get)(this, 'selectedSystem'));\n      const hasImported = (0, _object.get)(this, 'lastImport.length') > 0;\n      return hasSelectedSystem && hasImported;\n    }),\n    unusedMaps: (0, _object.computed)('model.import.externalBalances.[]', 'model.maps.@each.account', 'step', function () {\n      const maps = (0, _object.get)(this, 'model.maps').rejectBy('account.id');\n      const extBals = (0, _object.get)(this, 'model.import.externalBalances') || [];\n      maps.forEach(map => {\n        const extBal = extBals.findBy('externalId', (0, _object.get)(map, 'externalId'));\n        if (extBal && (0, _object.get)(map, 'sourceBalance') !== extBal || (0, _object.get)(this, 'step') !== (0, _object.get)(map, 'step')) {\n          addValue(map, extBal, (0, _object.get)(this, 'step'));\n        }\n      });\n      return maps;\n    }),\n    accountList: (0, _object.computed)('isHeading', 'model.accounts', 'model.import.externalBalances.[]', 'model.maps.@each.account', 'step', function () {\n      const accounts = (0, _object.get)(this, 'model.accounts');\n      const maps = (0, _object.get)(this, 'model.maps');\n      const imp = (0, _object.get)(this, 'model.import');\n      const step = (0, _object.get)(this, 'step');\n      const balances = calcBalances(accounts, imp, maps, step);\n      accounts.forEach(account => {\n        const isHeading = (0, _object.get)(this, 'isHeading');\n        const colspan = isHeading ? 4 : 0;\n        const depth = this._getAccountDepth(account);\n        account.setProperties({\n          colspan,\n          depth\n        });\n        if (!isHeading) {\n          (0, _object.set)(account, 'balance', balances.findBy('account.id', (0, _object.get)(account, 'id')));\n        }\n      });\n      return accounts.sortBy('sortIndex');\n    }),\n    _getAccountDepth(account) {\n      let line = (0, _object.get)(account, 'parent');\n      let depth = 0;\n      while ((0, _object.get)(line, 'id') && depth <= 5) {\n        line = (0, _object.get)(line, 'parent');\n        depth += 1;\n      }\n      return depth;\n    },\n    importMaps(newMaps) {\n      const maps = (0, _object.get)(this, 'model.maps');\n\n      // Only add new maps if they don't already exist\n      newMaps.forEach(map => {\n        const mapsForSystem = maps.filterBy('system', map.system);\n        if (!mapsForSystem.findBy('externalId', map.externalId)) {\n          map.entity = (0, _object.get)(this, 'sessionData.entity');\n          const mapRecord = this.store.createRecord('account-map', map);\n          maps.pushObject(mapRecord);\n\n          // Queue the new map up for saving by considering it edited.\n          this.send('onEditMap', mapRecord);\n        }\n      });\n    },\n    importBalances(balances) {\n      const system = (0, _object.get)(this, 'selectedSystem') || {};\n      const systemKey = (0, _object.get)(system, 'key');\n      const previousSystemKey = (0, _object.get)(this, 'model.import.system');\n      (0, _object.set)(this, 'lastImport', balances);\n      (0, _object.set)(this, 'model.import.system', systemKey);\n      let newBalances = balances;\n      const shouldCombineBalances = (0, _object.get)(system, 'multipleFiles') && systemKey === previousSystemKey;\n      if (shouldCombineBalances) {\n        const oldBalances = (0, _object.get)(this, 'model.import.externalBalances') || [];\n        newBalances = this.combineBalances(oldBalances, newBalances);\n      }\n      (0, _object.set)(this, 'model.import.externalBalances', newBalances);\n    },\n    combineBalances(oldBals, newBals) {\n      const newBalExtIds = newBals.mapBy('externalId');\n      return [\n      // Filter out old balances that are also in the new balances\n      ...oldBals.filter(oldBal => !newBalExtIds.includes((0, _object.get)(oldBal, 'externalId'))), ...newBals];\n    },\n    actions: {\n      invertMap(...args) {\n        this.send('invertMap', ...args);\n      },\n      selectSystem(key) {\n        (0, _object.set)(this, 'model.import.system', key);\n        (0, _object.set)(this, 'sessionData.entity.system', key);\n      },\n      onEditMap(map) {\n        // Add the map to the list of edited maps if it isn't already there.\n        if (!(0, _object.get)(this, 'editedMaps').includes(map)) {\n          (0, _object.get)(this, 'editedMaps').pushObject(map);\n        }\n      },\n      toggleEditing() {\n        this.toggleProperty('isEditing');\n      },\n      toggleConfigPane(account) {\n        const id = (0, _object.get)(account, 'id');\n        (0, _jquery.default)('[data-account-id=' + id + ']').toggleClass('closed');\n      },\n      remap(mapId, balance, system) {\n        const map = (0, _object.get)(this, 'model.maps').find(item => item.get('externalId') === mapId && item.get('system') === system);\n        if (!map) {\n          this.send('error');\n          return;\n        }\n\n        // If this map has already been assigned to an account, remove the old relationship\n        const currentId = (0, _object.get)(map, 'account.id');\n        if (!(0, _utils.isEmpty)(currentId)) {\n          const account = (0, _object.get)(this, 'accountList').findBy('id', currentId);\n          const oldMaps = (0, _object.get)(account, 'balance.maps');\n          const oldMap = oldMaps.findBy('id', (0, _object.get)(map, 'id'));\n          oldMaps.removeObject(oldMap);\n        }\n\n        // Update the map to link to the new account (or nothing)\n        (0, _object.set)(map, 'account', balance ? (0, _object.get)(balance, 'account') : null);\n        if (!(0, _utils.isEmpty)(balance)) {\n          // Add map to account\n          (0, _object.get)(balance, 'maps').pushObject(map);\n        }\n        this.send('onEditMap', map);\n      },\n      import(data) {\n        this.importMaps(data.maps);\n        this.importBalances(data.balances);\n      },\n      save() {\n        const imp = (0, _object.get)(this, 'model.import');\n        const step = (0, _object.get)(this, 'step');\n        const allMaps = (0, _object.get)(this, 'model.maps');\n        // Only save maps that have been created or edited since arriving at this page.\n        const mapsToSave = [...(0, _object.get)(this, 'editedMaps'), ...allMaps.filterBy('hasDirtyAttributes')].uniq();\n        switch (step) {\n          case 'profit-and-loss':\n            (0, _object.set)(imp, 'includesProfitAndLoss', true);\n            break;\n          case 'balance-sheet':\n            (0, _object.set)(imp, 'includesBalanceSheet', true);\n            break;\n          case 'other-data':\n            (0, _object.set)(imp, 'includesOtherData', true);\n        }\n\n        // Get a list of manual balances from other steps\n        const accountList = (0, _object.get)(this, 'accountList');\n        const accountIds = accountList.mapBy('id');\n        const manBals = ((0, _object.get)(imp, 'manualBalances') || []).filter(b => !accountIds.includes(b.account));\n        // Fill in the manual balances on this page\n        (0, _object.get)(this, 'accountList').filterBy('balance.isManual').forEach(account => {\n          manBals.push({\n            account: (0, _object.get)(account, 'id'),\n            value: (0, _object.get)(account, 'balance.value')\n          });\n        });\n        (0, _object.set)(imp, 'manualBalances', manBals);\n        (0, _object.set)(this, 'isImporting', true);\n        const saveImport = imp.save();\n        const saveMaps = mapsToSave.map(map => map.save());\n        _rsvp.default.all([saveImport, ...saveMaps]).then(() => {\n          (0, _object.get)(this, 'cache').clear('reports'); // wipe the local cache\n\n          const branch = (0, _object.get)(this, 'sessionData.entity.id');\n          const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + `/reports/update?entity=${branch}`;\n          const headers = {\n            Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n          };\n          return _jquery.default.ajax({\n            contentType: 'application/json',\n            method: 'POST',\n            url,\n            headers\n          });\n        }).then(() => (0, _object.set)(this, 'editedMaps', [])).then(() => this.send('advance')).catch(reason => this.send('error', reason)).finally(() => (0, _object.set)(this, 'isImporting', false));\n      },\n      advance() {\n        const steps = (0, _object.get)(this, 'steps');\n        const step = (0, _object.get)(this, 'step');\n        const currentStep = steps.indexOf(step);\n        const hasOtherData = (0, _object.get)(this, 'importController.hasOtherData');\n        if (currentStep === steps.length - (hasOtherData ? 1 : 2)) {\n          this.router.transitionTo('entity.financials.import.done');\n        } else {\n          this.router.transitionTo('entity.financials.import.data', steps[currentStep + 1]);\n        }\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/import/start\", [\"exports\", \"@ember/service\", \"@ember/controller\"], function (_exports, _service, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    importController: (0, _controller.inject)('entity.financials.import'),\n    actions: {\n      advance() {\n        this.router.transitionTo('entity.financials.import.data', 'profit-and-loss');\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/kpis\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"jquery\", \"rsvp\", \"@ember/object\"], function (_exports, _controller, _service, _jquery, _rsvp, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"jquery\",0,\"rsvp\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    isSaving: false,\n    cache: (0, _service.inject)(),\n    sort() {\n      (0, _jquery.default)('.master-detail > aside li').each((index, li) => {\n        const id = (0, _jquery.default)(li).attr('data-id');\n        const item = (0, _object.get)(this, 'content').findBy('id', id);\n        if (item) {\n          (0, _object.set)(item, 'sortIndex', index);\n        }\n      });\n    },\n    actions: {\n      save() {\n        const saveAll = (0, _object.get)(this, 'model').map(kpi => kpi.save());\n        (0, _object.set)(this, 'isSaving', true);\n        _rsvp.default.all(saveAll).then(() => (0, _object.get)(this, 'notifications').success('KPI was saved successfully.')).then(() => (0, _object.get)(this, 'cache').clear('reports')).catch(reason => this.send('error', reason)).finally(() => (0, _object.set)(this, 'isSaving', false));\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/kpis/kpi\", [\"exports\", \"@ember/controller\", \"@ember/object/computed\", \"portal/mixins/edit-record\"], function (_exports, _controller, _computed, _editRecord) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object/computed\",0,\"portal/mixins/edit-record\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend(_editRecord.default, {\n    record: (0, _computed.alias)('model'),\n    messages: {\n      save: {\n        success: 'The KPI was saved successfully.',\n        error: 'The KPI failed to save.'\n      },\n      delete: {\n        success: 'The KPI was deleted successfully.',\n        error: 'The KPI failed to delete.'\n      }\n    },\n    transitionToOnSave: '',\n    transitionToOnDelete: ''\n  });\n});","define(\"portal/controllers/entity/financials/planning/strategies\", [\"exports\", \"@ember/controller\", \"@ember/array\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"@ember/utils\", \"moment\", \"portal/models/account\", \"portal/models/kpi\", \"portal/utils/sort-accounts\"], function (_exports, _controller, _array, _service, _object, _rsvp, _utils, _moment, _account, _kpi, _sortAccounts) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/array\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"@ember/utils\",0,\"moment\",0,\"portal/models/account\",0,\"portal/models/kpi\",0,\"portal/utils/sort-accounts\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    monthVisible: true,\n    ytdVisible: true,\n    focusToggle: true,\n    targets: (0, _object.computed)('model.targets.[]', function () {\n      const model = (0, _object.get)(this, 'model.targets');\n      const targets = [];\n      model.forEach(source => {\n        const breakdown = (0, _array.A)((0, _object.get)(source, 'breakdown') || []);\n        let sourceValues = (0, _array.A)((0, _object.get)(source, 'values') || []);\n        if (!sourceValues.length) {\n          sourceValues = (0, _array.A)([{\n            periodType: 'month',\n            targetValue: 0,\n            actualValue: 0\n          }, {\n            periodType: 'ytd',\n            targetValue: 0,\n            actualValue: 0\n          }]);\n        }\n        (0, _object.set)(source, 'breakdown', breakdown);\n        (0, _object.set)(source, 'values', sourceValues);\n        const isBalanceTarget = (0, _object.get)(source, 'account.id') != null;\n        const isKpiTarget = (0, _object.get)(source, 'kpi.id') != null;\n        const metric = isBalanceTarget ? (0, _object.get)(source, 'account') : (0, _object.get)(source, 'kpi');\n        const category = (0, _object.get)(source, 'account.category');\n        const debitCredit = (0, _object.get)(source, 'account.debitCredit');\n        const target = _object.default.extend({\n          id: (0, _object.get)(source, 'id'),\n          name: (0, _object.get)(metric, 'name'),\n          showYtd: isKpiTarget || (0, _object.get)(metric, 'periodic'),\n          metric,\n          isBalanceTarget,\n          isKpiTarget,\n          hasBreakdown: isKpiTarget,\n          showBreakdown: false,\n          breakdown,\n          increaseIsGood: !isBalanceTarget || category === 'balance-sheet' === (debitCredit === 'DEBIT'),\n          values: (0, _object.computed)('source.values', function () {\n            return (0, _object.get)(source, 'values');\n          }),\n          monthTarget: (0, _object.computed)('values.@each.targetValue', computedValue('month', 'targetValue')),\n          monthActual: (0, _object.computed)('values.@each.actualValue', computedValue('month', 'actualValue')),\n          monthDifference: (0, _object.computed)('monthTarget', 'monthActual', computedDifference('monthActual', 'monthTarget')),\n          monthArrowClasses: (0, _object.computed)('monthDifference', computedArrow('monthDifference')),\n          ytdTarget: (0, _object.computed)('values.@each.targetValue', computedValue('ytd', 'targetValue')),\n          ytdActual: (0, _object.computed)('values.@each.actualValue', computedValue('ytd', 'actualValue')),\n          ytdDifference: (0, _object.computed)('ytdTarget', 'ytdActual', computedDifference('ytdActual', 'ytdTarget')),\n          ytdArrowClasses: (0, _object.computed)('ytdDifference', computedArrow('ytdDifference'))\n        }).create();\n        targets.pushObject(target);\n      });\n      return targets;\n    }),\n    accountTargets: (0, _object.computed)('targets', function () {\n      const balanceTargets = (0, _object.get)(this, 'targets').filterBy('isBalanceTarget');\n      return (0, _sortAccounts.default)(balanceTargets, 'metric.sortIndex', 'metric.category');\n    }),\n    untargetedAccounts: untargeted('model.accounts', 'accountTargets'),\n    kpiTargets: (0, _object.computed)('targets', function () {\n      return (0, _object.get)(this, 'targets').filterBy('isKpiTarget').sortBy('metric.sortIndex');\n    }),\n    untargetedKPIs: untargeted('model.kpis', 'kpiTargets'),\n    checkingEmpty(targets) {\n      const arrayOfResults = [];\n      targets.forEach(target => {\n        (0, _array.A)((0, _object.get)(target, 'values') || []).forEach(value => {\n          arrayOfResults.push(Boolean((0, _object.get)(value, 'targetValue')));\n        });\n      });\n      return arrayOfResults;\n    },\n    actions: {\n      addTarget(metric) {\n        const entity = (0, _object.get)(this, 'sessionData.entity');\n        let account, kpi;\n        if (metric instanceof _account.default) {\n          account = metric;\n        } else if (metric instanceof _kpi.default) {\n          kpi = metric;\n        }\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const date = (0, _moment.default)(period, 'YYYY-MM').endOf('month').toDate();\n        const newTarget = this.store.createRecord('target', {\n          date,\n          entity: entity,\n          account,\n          kpi\n        });\n        newTarget.save().then(savedTarget => {\n          (0, _object.get)(this, 'model.targets').pushObject(savedTarget);\n        });\n      },\n      removeTarget(target) {\n        const targets = (0, _object.get)(this, 'model.targets');\n        const targetRecord = targets.findBy('id', (0, _object.get)(target, 'id'));\n\n        // Remove from the table\n        targets.removeObject(targetRecord);\n\n        // Delete server-side\n        return targetRecord.destroyRecord();\n      },\n      purgeEmptyBreakdownLines(target) {\n        const breakdown = (0, _array.A)((0, _object.get)(target, 'breakdown') || []);\n        const emptyLines = [];\n        breakdown.forEach(line => {\n          let empty = true;\n          Object.keys(line).forEach(field => {\n            if (!(0, _utils.isEmpty)(line[field])) {\n              empty = false;\n            }\n          });\n          if (empty) {\n            emptyLines.push(line);\n          }\n        });\n        emptyLines.forEach(line => {\n          breakdown.removeObject(line);\n        });\n      },\n      save() {\n        (0, _object.get)(this, 'model.targets').forEach(target => {\n          this.send('purgeEmptyBreakdownLines', target);\n        });\n        const empties = this.checkingEmpty((0, _object.get)(this, 'model.targets'));\n        if (!empties.includes(false)) {\n          const saveAll = (0, _object.get)(this, 'model.targets').map(target => target.save());\n          return _rsvp.default.all(saveAll).then(() => (0, _object.get)(this, 'notifications').success('Targets were saved successfully.')).catch(err => this.send('error', err));\n        } else {\n          (0, _object.get)(this, 'notifications').error('Some Targets were not completely filled in.');\n        }\n      }\n    }\n  });\n  function computedValue(periodType, field) {\n    return {\n      get() {\n        const values = (0, _object.get)(this, 'values').findBy('periodType', periodType);\n        if (!values) return null;\n        return (0, _object.get)(values, field);\n      },\n      set(key, value) {\n        const values = (0, _object.get)(this, 'values').findBy('periodType', periodType);\n        if (values) {\n          (0, _object.set)(values, field, Number(value));\n        }\n        return value;\n      }\n    };\n  }\n  function computedDifference(field1, field2) {\n    return function () {\n      const value1 = (0, _object.get)(this, field1);\n      const value2 = (0, _object.get)(this, field2);\n      if (isNaN(value1) || isNaN(value2) || value1 == null || value2 == null) {\n        return null;\n      }\n      return value1 - value2;\n    };\n  }\n  function computedArrow(field) {\n    return function () {\n      const value = (0, _object.get)(this, field);\n      const classes = ['fa'];\n      if (value > 0) {\n        classes.push('increase fa-arrow-up');\n      } else if (value < 0) {\n        classes.push('decrease fa-arrow-down');\n      } else if (value === 0) {\n        classes.push('constant');\n      }\n      return classes.join(' ');\n    };\n  }\n  function untargeted(metricsKey, targetedKey) {\n    return (0, _object.computed)(metricsKey, targetedKey, function () {\n      const metrics = (0, _object.get)(this, metricsKey);\n      const targeted = (0, _object.get)(this, targetedKey).map(target => (0, _object.get)(target, 'metric.id'));\n      return metrics.reject(metric => targeted.includes((0, _object.get)(metric, 'id')));\n    });\n  }\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/balance-sheet\", [\"exports\", \"portal/controllers/entity/financials/reports/general-ledger/generic\"], function (_exports, _generic) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/reports/general-ledger/generic\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _generic.default.extend({\n    category: 'balance-sheet',\n    dataKeyPrefix: 'b-s'\n  });\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/generic\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"lodash\", \"portal/utils/csv-builder\"], function (_exports, _computed, _controller, _service, _object, _lodash, _csvBuilder) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"lodash\",0,\"portal/utils/csv-builder\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    accountSettings: [],\n    dataKeyPrefix: null,\n    monthVisible: true,\n    ytdVisible: true,\n    showBreakdown: false,\n    selectedMetric: null,\n    selectedGroup: null,\n    hideChildrenKey: (0, _object.computed)('dataKeyPrefix', function () {\n      return `${(0, _object.get)(this, 'dataKeyPrefix')}HideChildren`;\n    }),\n    canSeeBreakdown: (0, _object.computed)('newFeatureFlags.userCanSeeFPBreakdown', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.userCanSeeFPBreakdown');\n    }),\n    colSpan: (0, _object.computed)('monthVisible', 'ytdVisible', function () {\n      return Math.max(1, (0, _object.get)(this, 'monthVisible') + (0, _object.get)(this, 'ytdVisible')); // boolean addition, min 1\n    }),\n    // Collection of entities, sorted initially but sort index.\n    orderedEntities: [],\n    initOrderedEntities: (0, _object.observer)('sessionData.branch.id', 'model.groups', function () {\n      if ((0, _object.get)(this, 'model')) {\n        (0, _object.set)(this, 'orderedEntities', (0, _object.get)(this, 'model.entities').sortBy('sortIndex'));\n      }\n    }),\n    // Take the list of accounts\n    accountsSortedByEntity: (0, _object.computed)('accountSettings', 'hideChildrenKey', 'model.nestedAccounts', 'orderedEntities', function () {\n      const accountSettings = (0, _object.get)(this, 'accountSettings');\n      const hideChildrenKey = (0, _object.get)(this, 'hideChildrenKey');\n\n      // function definition\n      const applySetting = function (account) {\n        const setting = accountSettings.find(setting => (0, _object.get)(setting, 'id') === (0, _object.get)(account, 'id')) || {};\n        const hide = (0, _object.get)(setting, hideChildrenKey) == null || (0, _object.get)(setting, hideChildrenKey);\n        (0, _object.set)(account, 'hideChildren', hide);\n        ((0, _object.get)(account, 'children') || []).forEach(applySetting);\n      };\n      if ((0, _object.get)(this, 'model')) {\n        const accounts = _lodash.default.cloneDeep((0, _object.get)(this, 'model.nestedAccounts'));\n        accounts.forEach(applySetting);\n        const orderedEntities = (0, _object.get)(this, 'orderedEntities');\n        sortByEntity(accounts, orderedEntities);\n        return accounts;\n      }\n    }),\n    profitAndLoss: (0, _computed.filterBy)('accountsSortedByEntity', 'category', 'profit-and-loss'),\n    balanceSheet: (0, _computed.filterBy)('accountsSortedByEntity', 'category', 'balance-sheet'),\n    otherData: (0, _computed.filterBy)('accountsSortedByEntity', 'category', 'other-data'),\n    // Can be overwritten if for non devault behavior\n    pageAsCSV(meta) {\n      // Use default CSV builder\n      return (0, _csvBuilder.default)(meta, (0, _object.get)(this, 'orderedEntities'), (0, _object.get)(this, 'accountsSortedByEntity'));\n    },\n    actions: {\n      downloadSheet() {\n        const category = (0, _object.get)(this, 'category');\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const meta = {\n          entityName: (0, _object.get)(this, 'sessionData.entity.name'),\n          userEmail: (0, _object.get)(this, 'sessionData.user.email'),\n          category,\n          period\n        };\n        const file = this.pageAsCSV(meta);\n        const fileName = `${entityName}-${category}-${period}.csv`;\n        (0, _csvBuilder.downloadCSV)(file, fileName);\n      },\n      toggleShowChildren(account) {\n        const hideChildrenKey = (0, _object.get)(this, 'hideChildrenKey');\n\n        // account.toggleProperty('hideChildren');\n        (0, _object.set)(account, 'hideChildren', Boolean(!(0, _object.get)(account, 'hideChildren')));\n        const accountSettings = (0, _object.get)(this, 'accountSettings');\n        const existingSetting = accountSettings.findBy('id', (0, _object.get)(account, 'id'));\n        if (existingSetting) {\n          existingSetting[hideChildrenKey] = (0, _object.get)(account, 'hideChildren');\n        } else {\n          const setting = {\n            id: (0, _object.get)(account, 'id'),\n            name: (0, _object.get)(account, 'name')\n          };\n          setting[hideChildrenKey] = (0, _object.get)(account, 'hideChildren');\n          accountSettings.push(setting);\n        }\n      },\n      togglePrintableTrue(balance) {\n        balance.toggleProperty('printable', true);\n      },\n      toggleShowBreakdown(metric, groupNumber, periodType) {\n        const group = (0, _object.get)(this, 'orderedEntities')[groupNumber];\n        (0, _object.set)(this, 'selectedMetric', metric);\n        (0, _object.set)(this, 'selectedGroup', group);\n        (0, _object.set)(this, 'selectedPeriodType', periodType);\n        this.toggleProperty('showBreakdown');\n      },\n      shiftFarLeft(entity) {\n        const orderedEntities = (0, _object.get)(this, 'orderedEntities');\n        const scopedToGroup = false; // todo - get(this, 'scope.stack.1.type') === 'group';\n\n        if (scopedToGroup) {\n          (0, _object.set)(this, 'orderedEntities', [entity, ...orderedEntities.removeObject(entity)]);\n          return;\n        }\n        if (entity === orderedEntities[0]) return;\n        const scopedEntity = orderedEntities[0];\n        const otherEntities = orderedEntities.removeObject(entity).removeObject(scopedEntity);\n        (0, _object.set)(this, 'orderedEntities', [scopedEntity, entity, ...otherEntities]);\n      }\n    }\n  });\n  function sortByEntity(accounts, orderedEntities) {\n    (accounts || []).forEach(account => {\n      const values = (0, _object.get)(account, 'data');\n      const hideChildren = (0, _object.get)(account, 'hideChildren');\n      const sortedValues = [];\n      orderedEntities.forEach(entity => {\n        const value = values.findBy('entity', (0, _object.get)(entity, 'id'));\n        sortedValues.push(value || {});\n      });\n      (0, _object.set)(account, 'data', sortedValues);\n      (0, _object.set)(account, 'hideChildren', hideChildren);\n      if ((0, _object.get)(account, 'children')) {\n        sortByEntity((0, _object.get)(account, 'children'), orderedEntities);\n      }\n    });\n  }\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/itm-profit-and-loss\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"jquery\", \"portal/config/environment\", \"portal/utils/csv-builder\", \"portal/utils/email-validator\"], function (_exports, _controller, _service, _object, _jquery, _environment, csvBuilder, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"jquery\",0,\"portal/config/environment\",0,\"portal/utils/csv-builder\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  const {\n    generateMetaDataRows,\n    downloadCSV\n  } = csvBuilder;\n  var _default = _exports.default = _controller.default.extend({\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    queryParams: ['selectedEntityIds', 'selectedGroupIds'],\n    ytdVisible: true,\n    monthVisible: true,\n    lastYearVisible: true,\n    percentageVisible: true,\n    profitAndLossTableVisible: true,\n    selectedGroupIds: [],\n    selectedGroups: [],\n    selectedEntityIds: [],\n    selectedEntities: [],\n    newUserData: {\n      firstName: '',\n      lastName: '',\n      email: ''\n    },\n    allowedEntities: (0, _object.computed)('sessionData.allowedEntities', 'sessionData.entity.parent.id', 'sessionData.entity.id', function () {\n      const parentId = (0, _object.get)(this, 'sessionData.entity.parent.id') || (0, _object.get)(this, 'sessionData.entity.id');\n      return (0, _object.get)(this, 'sessionData.allowedEntities').filter(e => e.includesClaims('canUseFinancialReporting') && (0, _object.get)(e, 'parent.id') === parentId).sortBy('name');\n    }),\n    financialsTableColspan: (0, _object.computed)('ytdVisible', 'monthVisible', 'lastYearVisible', 'percentageVisible', function () {\n      let result = 1;\n      if ((0, _object.get)(this, 'ytdVisible') && (0, _object.get)(this, 'monthVisible')) result = result * 2;\n      if ((0, _object.get)(this, 'lastYearVisible')) result = result * 2;\n      return result;\n    }),\n    actions: {\n      createNewUser() {\n        const {\n          firstName,\n          lastName,\n          email\n        } = (0, _object.get)(this, 'newUserData');\n        const notifications = (0, _object.get)(this, 'notifications');\n        if (!firstName) return notifications.warning('You must supply a first name');\n        if (!email) return notifications.warning('You must supply an email address');\n        if (!(0, _emailValidator.default)(email)) return notifications.warning('You must supply a valid email address');\n        const payload = {\n          firstName,\n          lastName,\n          email,\n          entity: (0, _object.get)(this, 'sessionData.entity.id'),\n          isItmPLInvite: true\n        };\n        (0, _object.set)(this, 'isCreatingNewUser', true);\n        return createUserAjax(payload, (0, _object.get)(this, 'session.data.authenticated.access_token')).then(() => {\n          (0, _object.get)(this, 'notifications').success('The invitation has been sent. They have been notified by email.');\n          (0, _object.set)(this, 'userCreateModalVisible', false);\n          (0, _object.set)(this, 'newUserData', {});\n        }).catch(err => this.send('error', err)).finally(() => {\n          (0, _object.set)(this, 'isCreatingNewUser', false);\n        });\n      },\n      selectEntity(data) {\n        (0, _object.set)(this, 'selectedEntityIds', data.mapBy('id'));\n      },\n      selectGroup(data) {\n        (0, _object.set)(this, 'selectedGroupIds', data.mapBy('id'));\n      },\n      toggleShowChildren(account) {\n        (0, _object.set)(account, 'hideChildren', Boolean(!(0, _object.get)(account, 'hideChildren')));\n      },\n      setProfitAndLossTableVisible(boolean) {\n        (0, _object.set)(this, 'profitAndLossTableVisible', boolean);\n      },\n      toggleYtdVisible() {\n        (0, _object.set)(this, 'ytdVisible', !(0, _object.get)(this, 'ytdVisible'));\n        if (!(0, _object.get)(this, 'ytdVisible') && !(0, _object.get)(this, 'monthVisible')) {\n          (0, _object.set)(this, 'monthVisible', true);\n        }\n      },\n      toggleMonthVisible() {\n        (0, _object.set)(this, 'monthVisible', !(0, _object.get)(this, 'monthVisible'));\n        if (!(0, _object.get)(this, 'ytdVisible') && !(0, _object.get)(this, 'monthVisible')) {\n          (0, _object.set)(this, 'ytdVisible', true);\n        }\n      },\n      downloadSheet() {\n        const category = 'itm-custom-profit-and-loss';\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const meta = {\n          entityName: (0, _object.get)(this, 'sessionData.entity.name'),\n          userEmail: (0, _object.get)(this, 'sessionData.user.email'),\n          category,\n          period\n        };\n        const num = (num, percent) => {\n          if (isNaN(num) || Math.abs(Number(num)) < 0.0001) return '0';\n          return percent ? `${Number(num) * 100}%` : String(num);\n        };\n        const createRows = (data, depth = 0, options = {}) => {\n          const {\n            recurse = true,\n            percentSales = false,\n            percentParent = false,\n            percentages = true,\n            totalTitle = null\n          } = options;\n          const getPercentValue = (data, type, index) => {\n            if (percentSales) return num(data[`${type}PercentSales`][index], true);\n            if (percentParent) return num(data[`${type}PercentParent`][index], true);\n            return '';\n          };\n          const arr = [];\n          arr.push(totalTitle ? totalTitle : '    '.repeat(depth) + data.name || 'unnamed account');\n          data.month.forEach((val, i) => {\n            if (percentages) {\n              arr.push(num(data.month[i]));\n              arr.push(getPercentValue(data, 'month', i));\n              arr.push(num(data.monthPrev[i]));\n              arr.push(getPercentValue(data, 'monthPrev', i));\n              arr.push(num(data.ytd[i]));\n              arr.push(getPercentValue(data, 'ytd', i));\n              arr.push(num(data.ytdPrev[i]));\n              arr.push(getPercentValue(data, 'ytdPrev', i));\n            } else {\n              arr.push(...[num(data.month[i]), '']);\n              arr.push(...[num(data.monthPrev[i]), '']);\n              arr.push(...[num(data.ytd[i]), '']);\n              arr.push(...[num(data.ytdPrev[i]), '']);\n            }\n          });\n          if (data.children && data.children.length && recurse) {\n            return [arr].concat(...data.children.map(c => createRows(c, depth + 1, options)));\n          } else {\n            return [arr];\n          }\n        };\n        const getSelectedItemName = item => (0, _object.get)(item || {}, 'name') || (0, _object.get)(item || {}, 'data.name') || '';\n\n        /* eslint-disable max-len */\n        const csv = [...generateMetaDataRows(meta)];\n        const entityNames = [''];\n        if ((0, _object.get)(this, 'sessionData.entity.parent.id')) entityNames.push(...['', entityName, '', '', '', '', '', '', '']);\n        entityNames.push(...(0, _object.get)(this, 'selectedEntities').reduce((arr, entity) => [...arr, getSelectedItemName(entity), '', '', '', '', '', '', ''], []));\n        entityNames.push(...(0, _object.get)(this, 'selectedGroups').reduce((arr, group) => [...arr, getSelectedItemName(group), '', '', '', '', '', '', ''], []));\n        csv.push(entityNames);\n        const percentSalesHeadings = ['Current Monthly', '% of Sales', 'Last Year Monthly', '% of Sales', 'Current YTD', '% of Sales', 'Last Year YTD', '% of Sales'];\n        const pAndLHeadingRow = [''];\n        if ((0, _object.get)(this, 'sessionData.entity.parent.id')) pAndLHeadingRow.push(...percentSalesHeadings);\n        (0, _object.get)(this, 'selectedEntities').forEach(() => pAndLHeadingRow.push(...percentSalesHeadings));\n        (0, _object.get)(this, 'selectedGroups').forEach(() => pAndLHeadingRow.push(...percentSalesHeadings));\n        csv.push(pAndLHeadingRow);\n        const pAndLContent = [...createRows((0, _object.get)(this, 'model.sales'), 0, {\n          percentages: false,\n          recurse: false\n        }), ...createRows((0, _object.get)(this, 'model.costOfSales'), 0, {\n          percentSales: true\n        }), ...createRows((0, _object.get)(this, 'model.systemMargin'), 0, {\n          totalTitle: 'Total System Margin',\n          percentSales: true\n        })];\n        (0, _object.get)(this, 'model.stockVariation.children').forEach(child => {\n          pAndLContent.push(...createRows(child, 0, {\n            percentSales: true\n          }));\n        });\n        pAndLContent.push(...createRows((0, _object.get)(this, 'model.achievedMargin'), 0, {\n          totalTitle: 'Total Achived Margin',\n          percentSales: true\n        }));\n        (0, _object.get)(this, 'model.loyaltiesAndFreight.children').forEach(child => {\n          pAndLContent.push(...createRows(child, 0, {\n            percentSales: true\n          }));\n        });\n        pAndLContent.push(...createRows((0, _object.get)(this, 'model.grossMargin'), 0, {\n          totalTitle: 'Final Gross Margin',\n          percentSales: true\n        }));\n        (0, _object.get)(this, 'model.expenses.children').forEach(child => {\n          pAndLContent.push(...createRows(child, 1, {\n            percentSales: true,\n            recurse: false\n          }));\n        });\n        pAndLContent.push(...createRows((0, _object.get)(this, 'model.expenses'), 0, {\n          totalTitle: 'Total Expenses',\n          percentages: false,\n          recurse: false\n        }), ...createRows((0, _object.get)(this, 'model.ebitda'), 0, {\n          totalTitle: 'EBITDA',\n          percentages: false,\n          recurse: false\n        }));\n        (0, _object.get)(this, 'model.otherIncomeAndDepreciation.children').forEach(child => {\n          pAndLContent.push(...createRows(child, 0, {\n            percentSales: true\n          }));\n        });\n        pAndLContent.push(...createRows((0, _object.get)(this, 'model.netProfit'), 0, {\n          totalTitle: 'Net Operating Profit',\n          percentSales: true\n        }));\n        csv.push(...pAndLContent);\n\n        // Add a blank line\n        csv.push([]);\n        const expensesHeadingRow = [''];\n        if ((0, _object.get)(this, 'sessionData.entity.parent.id')) expensesHeadingRow.push(...percentSalesHeadings);\n        (0, _object.get)(this, 'selectedEntities').forEach(() => expensesHeadingRow.push(...percentSalesHeadings));\n        (0, _object.get)(this, 'selectedGroups').forEach(() => expensesHeadingRow.push(...percentSalesHeadings));\n        csv.push(expensesHeadingRow);\n        const expensesContent = [...createRows((0, _object.get)(this, 'model.expenses'), 0, {\n          totalTitle: 'Total Expenses',\n          recurse: false,\n          percentSales: true\n        })];\n        (0, _object.get)(this, 'model.expenses.children').forEach(child => {\n          expensesContent.push(...createRows(child, 1, {\n            percentSales: true\n          }));\n        });\n        csv.push(...expensesContent);\n        const fileName = `${entityName}-${category}-${period}.csv`;\n        downloadCSV(csv, fileName);\n      }\n    }\n  });\n  function createUserAjax(payload, token) {\n    return new Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/financials',\n        data: JSON.stringify(Object.assign(payload, {\n          callback: _environment.default.urls.app + '/reset-password',\n          appURL: _environment.default.urls.app\n        })),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/other-data\", [\"exports\", \"portal/controllers/entity/financials/reports/general-ledger/generic\"], function (_exports, _generic) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/reports/general-ledger/generic\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _generic.default.extend({\n    category: 'other-data',\n    dataKeyPrefix: 'o-d'\n  });\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/personal-data\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"portal/utils/csv-builder\", \"moment\"], function (_exports, _computed, _controller, _service, _object, csvBuilder, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"portal/utils/csv-builder\",0,\"moment\"eaimeta@70e063a35619d71f\n  const {\n    generateMetaDataRows,\n    generateDataRows,\n    downloadCSV\n  } = csvBuilder;\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    category: 'personal-data',\n    dataKeyPrefix: 'p-d',\n    queryParams: ['interval', 'duration'],\n    interval: 1,\n    duration: 1,\n    dateRange: (0, _object.computed)('sessionData.period', 'interval', 'duration', function () {\n      const currentDate = (0, _object.get)(this, 'sessionData.period');\n      const dateRange = [];\n      const interval = (0, _object.get)(this, 'interval');\n      const duration = (0, _object.get)(this, 'duration');\n      for (let i = 0; i < duration; i++) {\n        const age = interval * i;\n        dateRange.unshift((0, _moment.default)(currentDate, 'YYYY-MM').subtract(age, 'months').format('YYYY-MM'));\n      }\n      return dateRange;\n    }),\n    durationOptions: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],\n    intervalOptions: [{\n      name: '1 month',\n      value: 1\n    }, {\n      name: '3 months',\n      value: 3\n    }, {\n      name: '6 months',\n      value: 6\n    }, {\n      name: '12 months',\n      value: 12\n    }],\n    accountSettings: [],\n    monthVisible: true,\n    ytdVisible: true,\n    showBreakdown: false,\n    selectedMetric: null,\n    selectedGroup: null,\n    // This just needs to run each time you revisit the route.\n    applyAccountSettings() {\n      const accountSettings = (0, _object.get)(this, 'accountSettings');\n      const hideChildrenKey = (0, _object.get)(this, 'hideChildrenKey');\n      const applySetting = function (account) {\n        const setting = accountSettings.find(setting => (0, _object.get)(setting, 'id') === (0, _object.get)(account, 'id')) || {};\n        const hide = (0, _object.get)(setting, hideChildrenKey) == null || (0, _object.get)(setting, hideChildrenKey);\n        (0, _object.set)(account, 'hideChildren', hide);\n        ((0, _object.get)(account, 'children') || []).forEach(applySetting);\n      };\n      const accounts = (0, _object.get)(this, 'model.nestedAccounts');\n      accounts.forEach(applySetting);\n      return accounts;\n    },\n    profitAndLoss: (0, _computed.filterBy)('model.nestedAccounts', 'category', 'profit-and-loss'),\n    balanceSheet: (0, _computed.filterBy)('model.nestedAccounts', 'category', 'balance-sheet'),\n    hideChildrenKey: (0, _object.computed)('dataKeyPrefix', function () {\n      return `${(0, _object.get)(this, 'dataKeyPrefix')}HideChildren`;\n    }),\n    colSpan: (0, _object.computed)('monthVisible', 'ytdVisible', function () {\n      return Math.max(1, (0, _object.get)(this, 'monthVisible') + (0, _object.get)(this, 'ytdVisible')); // boolean addition, maximum 1\n    }),\n    intervalCount: (0, _object.computed)('duration', function () {\n      return new Array((0, _object.get)(this, 'duration')).fill(undefined);\n    }),\n    pageAsCSV(meta) {\n      // Build the spreadsheet manually\n      const rows = [...generateMetaDataRows(meta),\n      // Header for profit and loss\n      ['Profit And Loss Sheet', ''], ['Account Name', 'Month', 'YTD'], ...generateDataRows((0, _object.get)(this, 'profitAndLoss')), ['', ''],\n      // Header for Balance Sheet\n      ['Balance Sheet', ''], ['Account Name', 'Month', 'YTD'], ...generateDataRows((0, _object.get)(this, 'balanceSheet'))];\n      return rows;\n    },\n    actions: {\n      downloadSheet() {\n        const category = (0, _object.get)(this, 'category');\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const meta = {\n          entityName: (0, _object.get)(this, 'sessionData.entity.name'),\n          userEmail: (0, _object.get)(this, 'sessionData.user.email'),\n          category,\n          period\n        };\n        const file = this.pageAsCSV(meta);\n        const fileName = `${entityName}-${category}-${period}.csv`;\n        downloadCSV(file, fileName);\n      },\n      toggleShowChildren(account) {\n        const hideChildrenKey = (0, _object.get)(this, 'hideChildrenKey');\n\n        // account.toggleProperty('hideChildren');\n        (0, _object.set)(account, 'hideChildren', Boolean(!(0, _object.get)(account, 'hideChildren')));\n        const accountSettings = (0, _object.get)(this, 'accountSettings');\n        const existingSetting = accountSettings.findBy('id', (0, _object.get)(account, 'id'));\n        if (existingSetting) {\n          existingSetting[hideChildrenKey] = (0, _object.get)(account, 'hideChildren');\n        } else {\n          const setting = {\n            id: (0, _object.get)(account, 'id'),\n            name: (0, _object.get)(account, 'name')\n          };\n          setting[hideChildrenKey] = (0, _object.get)(account, 'hideChildren');\n          accountSettings.push(setting);\n        }\n      },\n      togglePrintableTrue(balance) {\n        balance.toggleProperty('printable', true);\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/financials/reports/general-ledger/profit-and-loss\", [\"exports\", \"portal/controllers/entity/financials/reports/general-ledger/generic\"], function (_exports, _generic) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/controllers/entity/financials/reports/general-ledger/generic\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _generic.default.extend({\n    category: 'profit-and-loss',\n    dataKeyPrefix: 'p-and-l'\n  });\n});","define(\"portal/controllers/entity/financials/reports/kpis/index\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"lodash\", \"portal/utils/csv-builder\"], function (_exports, _computed, _controller, _service, _object, _lodash, _csvBuilder) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"lodash\",0,\"portal/utils/csv-builder\",0,\"portal/utils/csv-builder\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    isLoading: false,\n    category: 'kpis',\n    monthVisible: true,\n    ytdVisible: true,\n    showBreakdown: false,\n    selectedMetric: null,\n    selectedGroup: null,\n    formattedStyle: {\n      PERCENTAGE: 'percent',\n      NUMBER: 'decimal',\n      CURRENCY: 'currency'\n    },\n    noEditGroups: (0, _object.computed)('newFeatureFlags.userCanNotEditFPGroups', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.userCanNotEditFPGroups');\n    }),\n    colSpan: (0, _object.computed)('monthVisible', 'ytdVisible', function () {\n      return Math.max(1, (0, _object.get)(this, 'monthVisible') + (0, _object.get)(this, 'ytdVisible')); // boolean addition, min 1\n    }),\n    linkToDetail: (0, _computed.alias)('sessionData.entity.parent.id'),\n    // Collection of entities, sorted initially but sort index.\n    orderedEntities: [],\n    initOrderedEntities: (0, _object.observer)('model.groups', function () {\n      if ((0, _object.get)(this, 'model')) {\n        let entity = (0, _object.get)(this, 'sessionData.entity');\n\n        // TODO bit hacky, someone with more time fix this.\n        // It just stops the entity from coming up if you are on a top level entity.\n        // can probably just be removed once reports for top level entities is implemented.\n        const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n        if (!parentEntity) entity = null;\n        const entities = [];\n        if (entity) {\n          entities.push(entity);\n        }\n        entities.push(...(0, _object.get)(this, 'model.groups'));\n        (0, _object.set)(this, 'orderedEntities', entities);\n      }\n    }),\n    // Take the list of kpis\n    kpisSortedByEntity: (0, _object.computed)('model.kpis', 'orderedEntities', function () {\n      const kpis = _lodash.default.cloneDeep((0, _object.get)(this, 'model.kpis'));\n      const orderedEntities = (0, _object.get)(this, 'orderedEntities');\n      sortByEntity(kpis, orderedEntities);\n      return kpis;\n    }),\n    actions: {\n      downloadSheet() {\n        const category = (0, _object.get)(this, 'category');\n        const entityName = (0, _object.get)(this, 'sessionData.entity.name');\n        const period = (0, _object.get)(this, 'sessionData.period');\n        const meta = {\n          entityName: (0, _object.get)(this, 'sessionData.entity.name'),\n          userEmail: (0, _object.get)(this, 'sessionData.user.email'),\n          category,\n          period\n        };\n        const file = (0, _csvBuilder.default)(meta, (0, _object.get)(this, 'orderedEntities'), (0, _object.get)(this, 'kpisSortedByEntity'));\n\n        // Use a data URL to specify the contents rather than the location of a resource.\n        const fileName = `${entityName}-${category}-${period}.csv`;\n        (0, _csvBuilder.downloadCSV)(file, fileName);\n      },\n      shiftFarLeft(entity) {\n        const orderedEntities = (0, _object.get)(this, 'orderedEntities');\n        const scopedToGroup = false; // todo - get(this, 'scope.stack.1.type') === 'group';\n\n        if (scopedToGroup) {\n          (0, _object.set)(this, 'orderedEntities', [entity, ...orderedEntities.removeObject(entity)]);\n          return;\n        }\n        if (entity === orderedEntities[0]) return;\n        const scopedEntity = orderedEntities[0];\n        const otherEntities = orderedEntities.removeObject(entity).removeObject(scopedEntity);\n        (0, _object.set)(this, 'orderedEntities', [scopedEntity, entity, ...otherEntities]);\n      },\n      toggleShowBreakdown(kpi, groupId, periodType) {\n        const group = (0, _object.get)(this, 'model.groups').findBy('id', groupId);\n        (0, _object.set)(this, 'selectedMetric', kpi);\n        (0, _object.set)(this, 'selectedGroup', group);\n        (0, _object.set)(this, 'selectedPeriodType', periodType);\n        this.toggleProperty('showBreakdown');\n      }\n    }\n  });\n  function sortByEntity(kpis, orderedEntities) {\n    (kpis || []).forEach(kpi => {\n      const values = (0, _object.get)(kpi, 'data');\n      const sortedValues = [];\n      orderedEntities.forEach(entity => {\n        const value = values.findBy('entity', (0, _object.get)(entity, 'id'));\n        sortedValues.push(value || {});\n      });\n      (0, _object.set)(kpi, 'data', sortedValues);\n      if ((0, _object.get)(kpi, 'children')) {\n        sortByEntity((0, _object.get)(kpi, 'children'), orderedEntities);\n      }\n    });\n  }\n});","define(\"portal/controllers/entity/financials/reports/kpis/kpi\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@ember/array\", \"@ember/utils\", \"moment\"], function (_exports, _computed, _controller, _service, _object, _array, _utils, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/array\",0,\"@ember/utils\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    sessionData: (0, _service.inject)(),\n    periodType: 'month',\n    period: (0, _computed.alias)('sessionData.period'),\n    periodTypeOptions: [{\n      value: 'month',\n      label: 'Monthly'\n    }, {\n      value: 'ytd',\n      label: 'YTD'\n    }],\n    formattedStyle: {\n      PERCENTAGE: 'percent',\n      NUMBER: 'decimal',\n      CURRENCY: 'currency'\n    },\n    currentStats: (0, _object.computed)('model.stats', 'periodType', function () {\n      const periodType = (0, _object.get)(this, 'periodType');\n      let stats = (0, _object.get)(this, 'model.stats');\n      if (Array.isArray(stats)) {\n        /*\n        TODO I think this is happening because of the caching.\n        Not sure exactly why, could maybe be fixed at its cause at some point.\n        */\n        stats = stats[0].periodTypes;\n      }\n      const currentStats = (0, _object.get)(stats, periodType);\n      return currentStats;\n    }),\n    chartPeriod: (0, _object.computed)('sessionData.period', 'periodType', function () {\n      const end = (0, _object.get)(this, 'sessionData.period');\n      const start = (0, _moment.default)(end, 'YYYY-MM').subtract(11, 'months').format('YYYY-MM');\n      const type = (0, _object.get)(this, 'periodType');\n      return {\n        start,\n        end,\n        type\n      };\n    }),\n    selectedPeriodData: (0, _object.computed)('model.kpi.series', 'sessionData.entity.id', 'sessionData.period', function () {\n      const periodDate = (0, _moment.default)((0, _object.get)(this, 'sessionData.period'), 'YYYY-MM').endOf('month').toDate();\n      const series = (0, _object.get)(this, 'model.kpi.series');\n      if (!(0, _array.isArray)(series)) {\n        return null;\n      }\n      const branchId = (0, _object.get)(this, 'sessionData.entity.id');\n      const branch = series.findBy('entity', branchId);\n      if (!branch || !(0, _array.isArray)((0, _object.get)(branch, 'periods'))) {\n        return null;\n      }\n      return (0, _object.get)(branch, 'periods').findBy('date', periodDate.toISOString());\n    }),\n    noData: (0, _object.computed)('model.kpi.series', function () {\n      const series = (0, _object.get)(this, 'model.kpi.series');\n      return (0, _utils.isEmpty)(series);\n    }),\n    checked: false,\n    watchchecked: (0, _object.observer)('checked', function () {\n      var currentPeriodType = (0, _object.get)(this, 'periodType');\n      if (currentPeriodType === 'month') {\n        (0, _object.set)(this, 'checked', true);\n        return (0, _object.set)(this, 'periodType', 'ytd');\n      } else {\n        (0, _object.set)(this, 'checked', false);\n        return (0, _object.set)(this, 'periodType', 'month');\n      }\n    })\n  });\n});","define(\"portal/controllers/entity/index\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({});\n});","define(\"portal/controllers/entity/module-dashboard\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\"], function (_exports, _controller, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"modules\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n    }\n    goToModule(mod) {\n      if (mod.outsideLink) return window.open(mod.outsideLink, '_blank');\n      this.router.transitionTo(`entity.${mod.slug}`);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"goToModule\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"goToModule\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/auto-mapping\", [\"exports\", \"@ember/controller\", \"@ember/object/computed\", \"@ember/service\", \"@ember/object\", \"rsvp\"], function (_exports, _controller, _computed, _service, _object, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object/computed\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    store: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    notifications: (0, _service.inject)(),\n    intl: (0, _service.inject)(),\n    selectedDisplayOption: 'reference',\n    displayOptions: [{\n      value: 'reference',\n      label: 'Invoice reference'\n    }, {\n      value: 'account',\n      label: 'Merchant account'\n    }],\n    readyToDelete: null,\n    deleting: false,\n    showInvalid: false,\n    referenceDirectives: (0, _computed.filterBy)('model.directives', 'kind', 'reference'),\n    openReferenceDirectives: (0, _object.computed)('referenceDirectives', function () {\n      return (0, _object.get)(this, 'referenceDirectives').filter(d => ((0, _object.get)(d, 'project.id') == null || d.belongsTo('project').value()) && !['CLOSED', 'ARCHIVED'].includes((0, _object.get)(d, 'project.status')));\n    }),\n    closedReferenceDirectives: (0, _object.computed)('referenceDirectives.@each.project', function () {\n      return (0, _object.get)(this, 'referenceDirectives').filter(d => !(((0, _object.get)(d, 'project.id') == null || d.belongsTo('project').value()) && !['CLOSED', 'ARCHIVED'].includes((0, _object.get)(d, 'project.status'))));\n    }),\n    accountDirectives: (0, _computed.filterBy)('model.directives', 'kind', 'account'),\n    openAccountDirectives: (0, _object.computed)('accountDirectives', function () {\n      return (0, _object.get)(this, 'accountDirectives').filter(d => ((0, _object.get)(d, 'project.id') == null || d.belongsTo('project').value()) && !['CLOSED', 'ARCHIVED'].includes((0, _object.get)(d, 'project.status')));\n    }),\n    closedAccountDirectives: (0, _object.computed)('accountDirectives.@each.project', function () {\n      return (0, _object.get)(this, 'accountDirectives').filter(d => !(((0, _object.get)(d, 'project.id') == null || d.belongsTo('project').value()) && !['CLOSED', 'ARCHIVED'].includes((0, _object.get)(d, 'project.status'))));\n    }),\n    unusedAccounts: (0, _object.computed)('model.merchantAccounts', 'accountDirectives.@each.value', function () {\n      const usedCodes = (0, _object.get)(this, 'accountDirectives').map(a => (0, _object.get)(a, 'value'));\n      return (0, _object.get)(this, 'model.merchantAccounts').filter(account => !usedCodes.includes((0, _object.get)(account, 'code')));\n    }),\n    /**\n     * Builds a hash table where the keys are the all the reference values on the page, and the values\n     * are booleans showing whether that reference value is a duplicate.\n     * The reason for this structure is to be easy to find. e.g. {{get duplicates directive.value}};\n     * This only needs to be checked for reference directives as the UI can prevent a user from using the\n     * same account twice by omitting it from the select list.\n     * @type {Object}\n     */\n    duplicates: (0, _object.computed)('referenceDirectives.@each.value', function () {\n      let duplicatesFound = false;\n      const directives = (0, _object.get)(this, 'referenceDirectives');\n      const duplicates = directives.mapBy('lowerValue').reduce((result, val, index, all) => {\n        const isDuplicate = all.slice(index + 1).includes(val);\n        if (isDuplicate) duplicatesFound = true;\n        return Object.assign({\n          [val]: isDuplicate\n        }, result);\n      }, {});\n      (0, _object.set)(this, 'duplicatesPresent', duplicatesFound);\n      return duplicates;\n    }),\n    diplicatesPresent: false,\n    actions: {\n      async save() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const directives = (0, _object.get)(this, 'model.directives');\n        // Check each individual directive is valid\n        if (directives.some(d => !(0, _object.get)(d, 'isValid'))) {\n          (0, _object.set)(this, 'showInvalid', true);\n          notifications.warning((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.allDirectivesMustHaveAProjectAndAReferenceOrAccount'));\n          return;\n        }\n\n        // Check there are no duplicates in the values of the reference directives\n        if ((0, _object.get)(this, 'duplicatesPresent')) {\n          (0, _object.set)(this, 'showInvalid', true);\n          notifications.warning((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.theReferenceValuesUsedMustBeUniqueOneOrMoreDuplicatesWereFound'));\n          return;\n        }\n        (0, _object.set)(this, 'isSaving', true);\n        try {\n          await _rsvp.default.all(directives.map(d => d.save()));\n          (0, _object.set)(this, 'showInvalid', false);\n          notifications.success((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.All directives were saved'));\n        } catch (error) {\n          notifications.error((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.somethingWentWrongSavingTheDirectives'));\n\n          // If there was a problem saving, we don't know what state is reliable,\n          // therefore we should tell the route to refresh the list of directives.\n          this.send('refreshDirectives');\n        } finally {\n          (0, _object.set)(this, 'isSaving', false);\n        }\n      },\n      setProject(directive, projectId) {\n        const project = (0, _object.get)(this, 'model.projects').findBy('id', projectId);\n        (0, _object.set)(directive, 'project', project);\n      },\n      addDirective(kind) {\n        if (kind === 'account' && !(0, _object.get)(this, 'unusedAccounts.length')) {\n          return (0, _object.get)(this, 'notifications').warning((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.thereAreNoMoreMerchantAccountsToUse'));\n        }\n        const newDirective = (0, _object.get)(this, 'store').createRecord('invoice-auto-map-directive', {\n          kind,\n          entity: (0, _object.get)(this, 'sessionData.entity')\n        });\n        (0, _object.get)(this, 'model.directives').unshiftObject(newDirective);\n      },\n      async deleteDirective(directive) {\n        // Put page into a loading state\n        (0, _object.set)(this, 'deleting', true);\n        try {\n          // Delete the record from the database, then remove it from the page\n          await directive.destroyRecord();\n          (0, _object.get)(this, 'model.directives').removeObject(directive);\n        } catch (error) {\n          (0, _object.get)(this, 'notifications').error((0, _object.get)(this, 'intl').t('entity.settings.auto-mapping.somethingWentWrongDeletingTheDirectives'));\n        } finally {\n          // Put the page back into its normal state\n          (0, _object.set)(this, 'deleting', false);\n          (0, _object.set)(this, 'readyToDelete', null);\n        }\n      }\n    }\n  });\n});","define(\"portal/controllers/entity/settings/chart-of-accounts/chart-of-account\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor5, this);\n      _initializerDefineProperty(this, \"onChangeSyncWithXero\", _descriptor6, this);\n      _defineProperty(this, \"glAccountValidationMap\", {\n        name: (_key, val) => Boolean(val) || this.intl.t('entity.settings.chart-of-accounts.chart-of-account.Please provide a name'),\n        code: (_key, val) => Boolean(val) || this.intl.t('entity.settings.chart-of-accounts.chart-of-account.Please provide a code')\n      });\n      _defineProperty(this, \"saveAccount\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          const notifications = this.notifications;\n          yield changeset.validate();\n          if (changeset.isInvalid) return;\n          try {\n            const isNew = this.glAccount.isNew;\n            const account = yield changeset.save();\n            if (isNew) this.router.transitionTo('entity.settings.chart-of-accounts.chart-of-account', account.id);\n            notifications.success(this.intl.t('entity.settings.chart-of-accounts.chart-of-account.Successfully saved account'));\n          } catch (error) {\n            notifications.error({\n              error,\n              message: this.intl.t('entity.settings.chart-of-accounts.chart-of-account.problemWhileSavingAccount')\n            });\n          }\n        }\n      }), null, \"saveAccount\", null));\n      _defineProperty(this, \"deleteAccount\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.glAccount.destroyRecord();\n            this.notifications.success('Successfully deleted account');\n            this.router.transitionTo('entity.settings.chart-of-accounts');\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('entity.settings.chart-of-accounts.chart-of-account.problemWhileDeletingAccount')\n            });\n          }\n        }\n      }), null, \"deleteAccount\", null));\n    }\n    get isLoading() {\n      return this.model.glAccount.isRunning;\n    }\n    get glAccount() {\n      return this.model.glAccount.last.value;\n    }\n    get showSyncIcon() {\n      return this.accountingPlatform.isActive && this.glAccount.isLinkedToActiveAccountingPlatform;\n    }\n    get disableForm() {\n      return this.accountingPlatform.isActive && this.glAccount.isLinkedToActiveAccountingPlatform;\n    }\n    get canEditGlAccounts() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageInvoices') || this.newFeatureFlags.includesFeatureFlags('canManageBills');\n    }\n    get crumbStack() {\n      const paths = [{\n        route: 'entity.settings.chart-of-accounts',\n        pageTitle: this.intl.t('entity.settings.chart-of-accounts.Chart of accounts')\n      }, {\n        route: this.model.basePath,\n        pageTitle: this.glAccount.isNew ? this.intl.t('entity.settings.chart-of-accounts.chart-of-account.New account') : this.model.glAccount.last.value.name\n      }];\n      return paths;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"onChangeSyncWithXero\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.glAccount.isNew ? true : false;\n    }\n  }), _class2);\n});","define(\"portal/controllers/entity/settings/chart-of-accounts/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _object, _tracking, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor8, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor9, this);\n      _initializerDefineProperty(this, \"pageNumber\", _descriptor0, this);\n      _initializerDefineProperty(this, \"selectedAccountIds\", _descriptor1, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor10, this);\n      _initializerDefineProperty(this, \"isDeletingAccounts\", _descriptor11, this);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageNumber', 'searchString']);\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"syncWithAccountingPackage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            let message = '';\n            const {\n              created = [],\n              updated = [],\n              removed = []\n            } = yield this.accountingPlatform.getAccounts.perform(this.sessionData.entity);\n            if (created.length) {\n              message = `Successfully imported ${created.length} ${created.length > 1 ? 'accounts' : 'account'}.`;\n            }\n            if (updated.length) {\n              // force update updated accounts\n              yield this.handleAccountsUpdated(updated);\n              if (message.length) message += ' ';\n              message += `Successfully updated ${updated.length} ${updated.length > 1 ? 'accounts' : 'account'}.`;\n            }\n            if (removed.length) {\n              // remove references to removed accounts\n              yield this.handleAccountsRemoved(removed);\n              if (message.length) message += ' ';\n              message += `Removed ${removed.length} removed ${removed.length > 1 ? 'accounts' : 'account'}.`;\n            }\n            if (message.length) {\n              this.notifications.success(message);\n              yield this.model.glAccounts.perform(this.model.pageSize, this.model.pageNumber);\n              return;\n            }\n            this.notifications.info('No new accounts found.');\n          } catch (error) {\n            this.notifications.error({\n              message: 'Something went wrong while updating accounts',\n              error\n            });\n          }\n        }\n      }), null, \"syncWithAccountingPackage\", null));\n      _defineProperty(this, \"deleteAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const actions = [];\n            this.selectedAccountIds.forEach(record => {\n              const account = this.glAccounts.find(item => item.id === record);\n              actions.push(account?.destroyRecord());\n            });\n            yield Promise.all(actions);\n            yield this.model.glAccounts.perform(this.model.pageSize, this.model.pageNumber);\n            this.notifications.success(`Successfully deleted\n           ${this.selectedAccountIds.size > 1 ? 'accounts' : 'account'}`);\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: 'Something went wrong while deleting accounts'\n            });\n          } finally {\n            this.isDeletingAccounts = false;\n            this.selectedAccountIds = new Set();\n          }\n        }\n      }), null, \"deleteAccounts\", null));\n    }\n    get isLoading() {\n      return this.model.glAccounts.isRunning;\n    }\n    get isEditable() {\n      return true;\n    }\n    get glAccounts() {\n      return this.model.glAccounts.lastSuccessful.value?.toArray() || [];\n    }\n    get tableHeader() {\n      if (this.model.glAccounts.isRunning) return [];\n      const header = [{\n        value: this.intl.t('common.Name'),\n        colClass: ' text-left'\n      }, {\n        value: this.intl.t('common.Code'),\n        colClass: ' text-left'\n      }, {\n        value: this.intl.t('common.Tax rate'),\n        colClass: ' text-right me-2'\n      }];\n      if (this.isEditable && this.glAccounts.length) header.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        onInputChange: this.onSelectAllAccounts,\n        value: this.selectedAccountIds.size,\n        isPartiallySelected: Boolean(this.selectedAccountIds.size && this.selectedAccountIds.size < this.glAccounts.filter(item => !item.isLinkedToActiveAccountingPlatform).length)\n      });\n      return header;\n    }\n    get tableData() {\n      if (this.model.glAccounts.isRunning) return [];\n      return this.glAccounts.map(account => {\n        const data = [{\n          type: 'BUTTON',\n          textClass: 'btn btn-link text-left',\n          value: account.name,\n          onClickButton: this.onClickGlAccountName,\n          iconName: account.isLinkedToActiveAccountingPlatform && this.accountingPlatform.isActive ? 'sync' : '',\n          title: 'This account is synced with your accounting package',\n          extraData: {\n            account\n          }\n        }, {\n          colClass: 'text-left align-middle',\n          value: account?.code ?? ' — '\n        }, {\n          colClass: 'text-right align-middle me-2',\n          value: this.numberFormat.format(account?.taxRate, {\n            style: 'percent',\n            dashZero: true\n          })\n        }];\n        if (this.isEditable) {\n          data.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle gl-accounts__table-checkbox-max-width',\n            onInputChange: this.onSelectAccount,\n            disabled: account.isLinkedToActiveAccountingPlatform ? true : false,\n            value: this.selectedAccountIds.has(account.id),\n            extraData: {\n              account\n            }\n          });\n        }\n        return {\n          rowData: data\n        };\n      });\n    }\n    get totalRecords() {\n      return this.model.glAccounts.lastSuccessful.value.meta?.totalRecords || 0;\n    }\n    addNewGlAccount() {\n      this.router.transitionTo('entity.settings.chart-of-accounts.chart-of-account', 'new');\n    }\n    onChangePageIndex(pageNumber) {\n      this.pageNumber = pageNumber;\n      this.selectedAccountIds = new Set();\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    onSelectAccount(_row, col, e) {\n      if (e.target.checked) {\n        this.selectedAccountIds.add(col.extraData.account.id);\n      } else {\n        this.selectedAccountIds.delete(col.extraData.account.id);\n      }\n\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectedAccountIds = this.selectedAccountIds;\n    }\n    updateSearchTerm(value) {\n      this.selectedAccountIds = new Set();\n      this.searchString = value.trim();\n      this.pageNumber = 1;\n    }\n    async onClickGlAccountName(_row, col) {\n      this.router.transitionTo('entity.settings.chart-of-accounts.chart-of-account', col.extraData.account.id);\n    }\n    async handleAccountsRemoved(items) {\n      const loadedAccounts = this.store.peekAll('gl-account');\n      for (const id of items) {\n        const account = loadedAccounts.find(a => a.id === id);\n        if (account) {\n          // unload the record\n          this.store.unloadRecord(account);\n        }\n      }\n    }\n    async handleAccountsUpdated(items) {\n      const loadedAccounts = this.store.peekAll('gl-account');\n      await Promise.all(items.map(id => {\n        const account = loadedAccounts.find(a => a.id === id);\n        return account && account.reload();\n      }));\n    }\n    onSelectAllAccounts(_row, col, e) {\n      if (e.target.checked) {\n        this.glAccounts.forEach(account => {\n          if (!account.isLinkedToActiveAccountingPlatform) this.selectedAccountIds.add(account.id);\n        });\n      } else {\n        this.glAccounts.forEach(account => {\n          if (!account.isLinkedToActiveAccountingPlatform) this.selectedAccountIds.delete(account.id);\n        });\n      }\n\n      // eslint-disable-next-line no-self-assign\n      this.selectedAccountIds = this.selectedAccountIds;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"pageNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"selectedAccountIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingAccounts\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"addNewGlAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"addNewGlAccount\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectAccount\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectAccount\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"updateSearchTerm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"updateSearchTerm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickGlAccountName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickGlAccountName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectAllAccounts\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectAllAccounts\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/company\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"portal/models/attachment\", \"portal/utils/email-validator\", \"ember-changeset\", \"@ember/runloop\"], function (_exports, _asyncArrowRuntime, _controller, _object, _service, _tracking, _attachment, _emailValidator, _emberChangeset, _runloop) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"portal/models/attachment\",0,\"portal/utils/email-validator\",0,\"ember-changeset\",0,\"@ember/runloop\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"chargebee\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _defineProperty(this, \"validateContent\", (_key, newVal, oldVal, changes, content) => {\n        // check for the currently selected profit type\n        let profitType = changes.profitType || content.profitType;\n        if (profitType === 'MARGIN') {\n          const percentage = newVal || oldVal;\n          // null is valid\n          if (percentage === null) return true;\n          return percentage < 1 || this.intl.t('validation.Please input a value less than 100');\n        }\n        return true;\n      });\n      _defineProperty(this, \"MAX_FILE_SIZE\", 1024 * 1024 * 5);\n      // 5 MB\n      _defineProperty(this, \"ALLOWED_MIME_TYPES\", ['image/png', 'image/jpeg', 'image/gif']);\n      _defineProperty(this, \"profitTypes\", [{\n        value: 'MARGIN',\n        label: this.intl.t('common.Margin')\n      }, {\n        value: 'MARKUP',\n        label: this.intl.t('common.Markup')\n      }]);\n      _defineProperty(this, \"paymentTermType\", [{\n        value: 'OF_FOLLOWING_MONTH',\n        label: this.intl.t('shared.contacts.of the following month')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_DATE',\n        label: this.intl.t('shared.contacts.day(s) after the issue date')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_MONTH',\n        label: this.intl.t('shared.contacts.day(s) after the end of the issue month')\n      }, {\n        value: 'OF_CURRENT_MONTH',\n        label: this.intl.t('shared.contacts.of the current month')\n      }]);\n      _defineProperty(this, \"messages\", {\n        save: {\n          success: this.intl.t('entity.settings.company.The entity was saved successfully'),\n          error: this.intl.t('entity.settings.company.The entity failed to save')\n        },\n        delete: {\n          success: this.intl.t('entity.settings.company.The entity was deleted successfully'),\n          error: this.intl.t('entity.settings.company.The entity failed to delete')\n        }\n      });\n      _initializerDefineProperty(this, \"isSaving\", _descriptor8, this);\n      _defineProperty(this, \"entityValidationMap\", {\n        name: (_key, val) => Boolean(val) || this.intl.t('validation.Name'),\n        address: this.validateEntityContent.bind(this),\n        businessNumber: this.validateEntityContent.bind(this),\n        contactEmail: this.validateEntityContent.bind(this)\n      });\n      _defineProperty(this, \"purchaseOrderValidationMap\", {\n        nextPurchaseOrderNumber: (_key, val) => !isNaN(val) || this.intl.t('validation.purchaseOrderNumber')\n      });\n      _defineProperty(this, \"invoiceValidationMap\", {\n        nextInvoiceNumber: (_key, val) => !isNaN(val) || 'please provide a valid number',\n        nextCreditNoteNumber: (_key, val) => !isNaN(val) || 'please provide a valid number'\n      });\n      _defineProperty(this, \"stagePaymentsOptionsValidationMap\", {});\n      _defineProperty(this, \"profitMarginValidationMap\", {\n        profitType: (_key, val) => Boolean(val) || this.intl.t('validation.profitType'),\n        labourPercentage: this.validateContent,\n        additionalLabourMargin: this.validateContent,\n        materialsPercentage: this.validateContent,\n        subcontractorsPercentage: this.validateContent,\n        sumsPercentage: this.validateContent\n      });\n      _defineProperty(this, \"updateProfitMargins\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (profitMargin) {\n          yield profitMargin.validate('profitType', 'labourPercentage', 'additionalLabourMargin', 'materialsPercentage', 'subcontractorsPercentage', 'sumsPercentage');\n          if (profitMargin.isInvalid) {\n            this.notifications.warning(this.intl.t('shared.notification.Please complete the information'));\n            return;\n          }\n          try {\n            profitMargin.execute();\n            const wasNew = Boolean(profitMargin.isNew);\n            yield profitMargin.save();\n\n            // if the record was new, we need to setup the relationship with the entity\n            if (wasNew) {\n              const entity = this.sessionData.entity;\n              yield entity.save();\n            }\n            this.notifications.success(this.intl.t('entity.settings.company.Profit margins saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.somethingWentWrongWhileUpdatingProfitMargins'),\n              error\n            });\n          }\n        }\n      }), null, \"updateProfitMargins\", null));\n      _defineProperty(this, \"saveEntity\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          yield entity.validate();\n          if (entity.isInvalid) return;\n          try {\n            // Applies the valid changes to the underlying Object.\n            entity.execute();\n            const companyLogo = entity.get('data').safeBelongsToValue('companyLogo');\n            if (companyLogo?.isNew) {\n              const lastLogo = this.model.companyLogo.last.value;\n              if (lastLogo?.id) {\n                yield lastLogo.destroyRecord();\n              }\n              yield companyLogo.save({\n                adapterOptions: {\n                  meta: {\n                    data: companyLogo.data\n                  }\n                }\n              });\n            } else if (!companyLogo) {\n              const lastLogo = this.model.companyLogo.last.value;\n              if (lastLogo?.id) {\n                yield lastLogo.destroyRecord();\n              }\n            }\n            const updatedEntity = yield entity.save();\n            yield this.model.companyLogo.perform(updatedEntity);\n            this.notifications.success(this.intl.t('entity.settings.company.Company details saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.somethingWentWrongWhileUpdatingCompanyDetails'),\n              error\n            });\n          }\n        }\n      }), null, \"saveEntity\", null));\n      _defineProperty(this, \"savePurchaseOrderOption\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderOption) {\n          yield purchaseOrderOption.validate();\n          if (purchaseOrderOption.isInvalid) return;\n          try {\n            // Applies the valid changes to the underlying Object.\n            purchaseOrderOption.execute();\n            yield purchaseOrderOption.save();\n            this.notifications.success(this.intl.t('entity.settings.company.purchaseOrderDetailsSavedSuccessfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.somethingWentWrongWhileSavingPurchaseOrderDetails'),\n              error\n            });\n          }\n        }\n      }), null, \"savePurchaseOrderOption\", null));\n      _defineProperty(this, \"saveInvoiceOption\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceOption) {\n          yield invoiceOption.validate();\n          if (invoiceOption.isInvalid) return;\n          try {\n            // Applies the valid changes to the underlying Object.\n            invoiceOption.execute();\n            yield invoiceOption.save();\n            this.notifications.success(this.intl.t('entity.settings.company.Invoice details saved successfully'));\n          } catch (error) {\n            if (error.errors[0]?.title === 'Invoice number already in use') {\n              this.notifications.warning(this.intl.t('entity.settings.company.Invoice number already in use'));\n              return;\n            }\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.saveInvoiceDetailError'),\n              error\n            });\n          }\n        }\n      }), null, \"saveInvoiceOption\", null));\n      _defineProperty(this, \"saveStagePaymentOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (stagePaymentOption) {\n          if (stagePaymentOption.isInvalid) return;\n          try {\n            stagePaymentOption.execute();\n            const wasNew = Boolean(stagePaymentOption.isNew);\n            yield stagePaymentOption.save();\n\n            // if the record was new, we need to setup the relationship with the entity\n            if (wasNew) {\n              const entity = this.sessionData.entity;\n              yield entity.save();\n            }\n            this.notifications.success(this.intl.t('entity.settings.company.Stage payment details saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.saveStageError'),\n              error\n            });\n          }\n        }\n      }), null, \"saveStagePaymentOptions\", null));\n      _defineProperty(this, \"saveBreakdownOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.invoiceBreakdownOptions.firstGroupBy === 'TASK') {\n            this.invoiceBreakdownOptions.timesheetDetails = this.invoiceBreakdownOptions.timesheetDetails.filter(option => option !== 'TASK');\n          }\n          try {\n            yield this.invoiceBreakdownOptions.save();\n            this.invoiceBreakdownOptions = null;\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.company.saveBreakdownOptionsError'),\n              error\n            });\n          }\n        }\n      }), null, \"saveBreakdownOptions\", null));\n      _initializerDefineProperty(this, \"invoiceBreakdownOptions\", _descriptor9, this);\n    }\n    get businessNumberLabel() {\n      let businessNumberLabel;\n      switch (this.model.entity.region) {\n        case 'NZL':\n          businessNumberLabel = this.intl.t('entity.settings.company.New Zealand business number');\n          break;\n        case 'AUS':\n          businessNumberLabel = this.intl.t('entity.settings.company.Australian business number');\n          break;\n        case 'GBR':\n          businessNumberLabel = this.intl.t('entity.settings.company.Company registration number');\n          break;\n        default:\n          businessNumberLabel = this.intl.t('entity.settings.company.Business number');\n          break;\n      }\n      return businessNumberLabel;\n    }\n    get taxNumberLabel() {\n      let taxNumberLabel;\n      switch (this.model.entity.region) {\n        case 'NZL':\n          taxNumberLabel = this.intl.t('entity.settings.company.GST number');\n          break;\n        case 'GBR':\n          taxNumberLabel = this.intl.t('entity.settings.company.VAT number');\n          break;\n      }\n      return taxNumberLabel;\n    }\n    async save() {\n      const notifications = this.notifications;\n      this.isSaving = true;\n\n      // If the logo is saved successfully, continue saving the record\n      this.record.save().then(() => {\n        this.isSaving = false;\n        notifications.success({\n          message: this.messages.save.success,\n          autoClear: true\n        });\n      }).catch(err => {\n        this.isSaving = false;\n        notifications.error(err.responseJSON.errors[0].title === undefined ? this.messages.save.error : err.responseJSON.errors[0].title);\n      });\n    }\n    async openChargebee() {\n      try {\n        this.chargebee.open();\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('entity.settings.company.couldNotOpenSubscriptionManagementPortal'),\n          error\n        });\n      }\n    }\n    validateEntityContent(key, newVal, _oldVal, _changes, _content) {\n      if (key === 'businessNumber' && newVal) {\n        switch (this.model.entity.region) {\n          case 'NZL':\n            return !(newVal.length < 13) || this.intl.t('validation.nzBusinessNumber');\n          case 'AUS':\n            return !(newVal.length < 11) || this.intl.t('validation.auBusinessNumber');\n          case 'GBR':\n            return !(newVal.length < 8) || this.intl.t('validation.companyRegistrationNumber');\n        }\n      }\n      if (key === 'contactEmail' && newVal) {\n        return (0, _emailValidator.default)(newVal) || this.intl.t('validation.Email');\n      }\n    }\n    get profitMargin() {\n      return this.model.entity.belongsTo('profitMargin').value();\n    }\n    toggleAdditionalLabourMargin(profitMarginModel) {\n      const newValue = profitMarginModel.additionalLabourMargin != null ? null : Number(this.profitMargin?.additionalLabourMargin || 0);\n      profitMarginModel.set('additionalLabourMargin', newValue);\n    }\n    get stagePaymentOption() {\n      return this.model.entity.belongsTo('stagePaymentOption').value();\n    }\n    async updateLogo(entityModel, event) {\n      try {\n        const [file] = event.target.files;\n        if (!file) return;\n        if (!this.ALLOWED_MIME_TYPES.includes(file.type)) {\n          this.notifications.info(this.intl.t('entity.settings.company.invalidLogoFormatPleaseUseJpegPngOrGif'));\n          return;\n        }\n        if (file.size > this.MAX_FILE_SIZE) {\n          this.notifications.info(this.intl.t('entity.settings.company.The selected logo file is too big'));\n          return;\n        }\n        entityModel.get('data').companyLogo = await _attachment.default.fromFileInput(file, this.store, this.sessionData.entity);\n        const reader = new FileReader();\n        reader.onload = function (e) {\n          const previewImage = document.getElementById('image-preview');\n          if (previewImage) {\n            previewImage.src = e.target.result;\n            previewImage.style.display = 'block';\n          }\n        };\n        reader.readAsDataURL(file);\n      } catch (error) {\n        this.notifications.error({\n          message: this.intl.t('entity.settings.company.somethingWentWrongWhileUploadingLogo'),\n          error\n        });\n      }\n    }\n    clearLogo(entityModel) {\n      entityModel.get('data').companyLogo = null;\n    }\n\n    // the two timesheet margins are mutually exclusive\n    onToggleTimesheetMargin(thisKey, otherKey) {\n      (0, _runloop.next)(() => {\n        if (this.invoiceBreakdownOptions.get(thisKey)) {\n          this.invoiceBreakdownOptions.set(otherKey, false);\n        }\n      });\n    }\n    get timesheetGroupingOptions() {\n      const options = [{\n        key: 'DAY',\n        name: this.intl.t('common.Day')\n      }, {\n        key: 'WORKER',\n        name: this.intl.t('common.Worker')\n      }];\n      if (this.invoiceBreakdownOptions.firstGroupBy !== 'TASK') options.push({\n        key: 'TASK',\n        name: this.intl.t('common.Task')\n      });\n      return options;\n    }\n    initInvoiceBreakdown() {\n      this.invoiceBreakdownOptions = (0, _emberChangeset.Changeset)(this.model.invoiceOptions.last.value);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"chargebee\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"isSaving\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"save\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"save\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openChargebee\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openChargebee\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleAdditionalLabourMargin\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleAdditionalLabourMargin\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"updateLogo\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"updateLogo\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"clearLogo\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"clearLogo\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onToggleTimesheetMargin\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onToggleTimesheetMargin\"), _class2.prototype), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceBreakdownOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"initInvoiceBreakdown\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initInvoiceBreakdown\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/contacts/contact\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"portal/utils/search-term-escape\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _searchTermEscape) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"portal/utils/search-term-escape\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"onChangeSyncWithAccountingPlatform\", _descriptor8, this);\n      _initializerDefineProperty(this, \"isDeletingSupplier\", _descriptor9, this);\n      _initializerDefineProperty(this, \"showAddAliasModal\", _descriptor0, this);\n      _initializerDefineProperty(this, \"aliasNameInput\", _descriptor1, this);\n      _defineProperty(this, \"paymentTermType\", [{\n        value: 'OFFOLLOWINGMONTH',\n        label: this.intl.t('shared.contacts.of the following month')\n      }, {\n        value: 'DAYSAFTERBILLDATE',\n        label: this.intl.t('shared.contacts.day(s) after the bill date')\n      }, {\n        value: 'DAYSAFTERBILLMONTH',\n        label: this.intl.t('shared.contacts.day(s) after the end of the bill month')\n      }, {\n        value: 'OFCURRENTMONTH',\n        label: this.intl.t('shared.contacts.of the current month')\n      }]);\n      _defineProperty(this, \"salesPaymentTermType\", [{\n        value: 'OF_FOLLOWING_MONTH',\n        label: this.intl.t('shared.contacts.of the following month')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_DATE',\n        label: this.intl.t('shared.contacts.day(s) after the issue date')\n      }, {\n        value: 'DAYS_AFTER_ISSUE_MONTH',\n        label: this.intl.t('shared.contacts.day(s) after the end of the issue month')\n      }, {\n        value: 'OF_CURRENT_MONTH',\n        label: this.intl.t('shared.contacts.of the current month')\n      }]);\n      _defineProperty(this, \"updateSingleContact\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.accountingPlatform.updateContacts.perform(this.sessionData.entity, this.supplier);\n            yield this.store.findRecord('contact', this.supplier.id, {\n              reload: true\n            });\n            this.notifications.success(this.intl.t('shared.notification.Contact has been updated'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('shared.notification.Something went wrong updating contact(s)')\n            });\n          }\n        }\n      }), null, \"updateSingleContact\", null));\n      _defineProperty(this, \"saveSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          yield changeset.validate();\n          if (changeset.isInvalid) return;\n          try {\n            const isNew = this.supplier.isNew;\n            const supplier = yield changeset.save();\n            if (isNew) this.router.transitionTo('entity.settings.contacts.contact', supplier.id);\n            // Create a contact in accounting platform if we need to\n            if (!this.supplier.isContactLinkedToAccountingPlatform && this.onChangeSyncWithAccountingPlatform && this.accountingPlatform.isActive) {\n              yield this.accountingPlatform.createContact.perform(this.sessionData.entity, this.supplier);\n              yield this.store.findRecord('contact', supplier.id, {\n                reload: true\n              });\n            }\n            this.notifications.success(this.intl.t('entity.settings.contacts.contact.Successfully saved contact'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('entity.settings.contacts.contact.Something went wrong saving the contact')\n            });\n          }\n        }\n      }), null, \"saveSupplier\", null));\n      _defineProperty(this, \"addNewAlias\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const raw = this.aliasNameInput ?? '';\n          const aliasName = raw.trim();\n          if (!aliasName) {\n            this.notifications.error(this.intl.t('entity.settings.contacts.contact.Please enter an alias'));\n            return;\n          }\n          const results = yield this.store.query('contact', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'aliases',\n                op: 'CONTAINS_ILIKE',\n                value: `${(0, _searchTermEscape.searchTermEscape)(this.aliasNameInput)}`\n              }]\n            }\n          });\n          if (results?.toArray()?.length) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.contacts.contact.duplicateAliasLinkedToAnotherContact')\n            });\n            return;\n          }\n          try {\n            const changeset = this.model.supplierChangeset.last.value;\n            const currentAliases = changeset.get('aliases') || this.model.supplier.last.value?.aliases || [];\n            const isDuplicate = currentAliases.some(a => (a ?? '').trim().toLowerCase() === aliasName.toLowerCase());\n            if (isDuplicate) {\n              this.notifications.error({\n                message: this.intl.t('entity.settings.contacts.contact.Alias already exists')\n              });\n              return;\n            }\n            changeset.set('aliases', [...currentAliases, aliasName]);\n            this.showAddAliasModal = false;\n            this.aliasNameInput = null;\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('entity.settings.contacts.contact.Something went wrong saving the contact')\n            });\n          }\n        }\n      }), null, \"addNewAlias\", null));\n      _defineProperty(this, \"deleteSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.supplier.destroyRecord();\n            this.notifications.success(this.intl.t('entity.settings.contacts.contact.Successfully deleted contact'));\n            this.isDeletingSupplier = false;\n            this.router.transitionTo('entity.settings.contacts');\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingContacts')\n            });\n          }\n        }\n      }), null, \"deleteSupplier\", null));\n    }\n    get aliasesTableData() {\n      const changeset = this.model.supplierChangeset.last.value;\n      const aliases = changeset?.get('aliases') || this.model.supplier.last.value?.aliases || [];\n      return aliases.map(alias => {\n        const userData = [{\n          colClass: 'text-left align-middle text-nowrap col-11',\n          value: alias\n        }, {\n          type: 'BUTTON',\n          textClass: 'btn btn-link text-danger text-nowrap text-decoration-underline',\n          value: 'Remove',\n          onClickButton: this.removeAlias,\n          extraData: {\n            alias\n          }\n        }];\n        return {\n          rowData: userData\n        };\n      });\n    }\n    get aliasesTableHeader() {\n      return [];\n    }\n    get crumbStack() {\n      const paths = [{\n        route: 'entity.settings.contacts',\n        pageTitle: this.intl.t('common.contacts')\n      }, {\n        route: this.model.basePath,\n        pageTitle: this.supplier.isNew ? this.intl.t('entity.settings.contacts.contact.New contact') : this.model.supplier.last.value.name\n      }];\n      return paths;\n    }\n    get disableForm() {\n      return !this.canEditSupplier || this.saveSupplier.isRunning || this.deleteSupplier.isRunning || this.supplier.isContactLinkedToAccountingPlatform;\n    }\n    get canEditSupplier() {\n      return this.newFeatureFlags.includesFeatureFlags(this.sessionData.entity, 'canManageSuppliers');\n    }\n    get supplier() {\n      return this.model.supplier.last.value;\n    }\n    get isLoading() {\n      return this.model.supplier.isRunning || this.model.supplierChangeset.isRunning;\n    }\n    get deleteSupplierDisabledTitle() {\n      let title = null;\n      if (this.supplier.isContactLinkedToAccountingPlatform) {\n        title = this.intl.t('entity.settings.contacts.deleteLinkedToAccountingPlatform', {\n          label: this.accountingPlatform.label\n        });\n      } else if (this.supplier.isLinkedToResources) {\n        title = this.intl.t('entity.settings.contacts.deleteLinkedToResources');\n      }\n      return title;\n    }\n    async removeAlias(_row, col) {\n      const changeset = this.model.supplierChangeset.last.value;\n      const aliases = changeset.get('aliases') || this.model.supplier.last.value?.aliases || [];\n      const filteredAliases = aliases.filter(a => a !== col.extraData.alias);\n      changeset.set('aliases', filteredAliases);\n    }\n    closeAddAliasModal() {\n      this.showAddAliasModal = false;\n      this.aliasNameInput = null;\n    }\n    focusInput(element) {\n      element.focus();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"onChangeSyncWithAccountingPlatform\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return this.supplier.isNew ? true : false;\n    }\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingSupplier\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"showAddAliasModal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"aliasNameInput\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"removeAlias\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeAlias\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeAddAliasModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeAddAliasModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"focusInput\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"focusInput\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/contacts/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"ember-concurrency\", \"@ember/runloop\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _emberConcurrency, _runloop, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _initializerDefineProperty(this, \"quickbooks\", _descriptor8, this);\n      _initializerDefineProperty(this, \"selectedSupplierIds\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isEditingSupplier\", _descriptor0, this);\n      _initializerDefineProperty(this, \"isDeletingSuppliers\", _descriptor1, this);\n      _initializerDefineProperty(this, \"needDeleteXeroSuppliers\", _descriptor10, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor11, this);\n      _initializerDefineProperty(this, \"onMergeDuplicateSuppliers\", _descriptor12, this);\n      _initializerDefineProperty(this, \"pageSize\", _descriptor13, this);\n      _initializerDefineProperty(this, \"pageNumber\", _descriptor14, this);\n      _initializerDefineProperty(this, \"duplicateSuppliers\", _descriptor15, this);\n      _initializerDefineProperty(this, \"mergeIndex\", _descriptor16, this);\n      _initializerDefineProperty(this, \"mergeOptions\", _descriptor17, this);\n      _defineProperty(this, \"queryParams\", ['pageSize', 'pageNumber', 'searchString']);\n      _defineProperty(this, \"syncWithAccountingPackage\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (this.accountingPlatform.isActive) yield this.updateContacts.perform();\n        }\n      }), null, \"syncWithAccountingPackage\", null));\n      _defineProperty(this, \"onChangeSearchTerm\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (e) {\n          (0, _runloop.debounce)(this, this.updateSearchTerm, e.target.value, _environment.default.debounceTimeMs);\n        }\n      }), {\n        restartable: true\n      }, \"onChangeSearchTerm\", null));\n      _defineProperty(this, \"onCheckingDuplicateSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.duplicateSuppliers = yield this.buildaPrice.getDuplicateSuppliers({\n            entityId: this.sessionData.entity.id\n          });\n          this.mergeOptions = [...this.duplicateSuppliers];\n        }\n      }), null, \"onCheckingDuplicateSuppliers\", null));\n      _defineProperty(this, \"deleteSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const needDeleteSuppliers = this.suppliers.filter(s => this.selectedSupplierIds.has(s.id));\n            yield Promise.all(needDeleteSuppliers.map(supplier => supplier.destroyRecord()));\n            this.isDeletingSuppliers = false;\n            this.selectedSupplierIds = new Set();\n            this.needDeleteXeroSuppliers = [];\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongWhileDeletingContacts'),\n              error\n            });\n          }\n          yield this.updateSupplierList.perform();\n        }\n      }), null, \"deleteSuppliers\", null));\n      _defineProperty(this, \"updateSupplierList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.model.suppliers.perform(this.model.pageSize, this.model.pageNumber, this.searchString);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.contacts.somethingWentWrongWhileReloadSuppliers'),\n              error\n            });\n          }\n        }\n      }), null, \"updateSupplierList\", null));\n      _defineProperty(this, \"mergeDuplicatedSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.buildaPrice.mergeDuplicateSuppliers(this.mergeOptions[0][0].actionData);\n            const cardDom = document.getElementsByClassName(`suppliers__duplicate-suppliers-card-0`)[0];\n            cardDom.classList.add('suppliers__duplicate-suppliers-list-fade-out');\n            yield (0, _emberConcurrency.timeout)(500);\n            this.mergeOptions = this.mergeOptions.slice(1);\n            this.notifications.success(this.intl.t('shared.notification.Contact has been updated'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.contacts.somethingWentWrongWhileMergingSupplier'),\n              error\n            });\n          }\n        }\n      }), null, \"mergeDuplicatedSupplier\", null));\n      _defineProperty(this, \"mergeAndUseDuplicatedSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (options, index) {\n          try {\n            const optionsIndex = this.mergeOptions.indexOf(options);\n            this.mergeIndex = optionsIndex;\n            const actionData = this.mergeOptions[optionsIndex][index].actionData;\n            yield this.buildaPrice.mergeDuplicateSuppliers(actionData);\n            const cardDom = document.getElementsByClassName(`suppliers__duplicate-suppliers-card-${optionsIndex}`)[0];\n            cardDom.classList.add('suppliers__duplicate-suppliers-list-fade-out');\n            yield (0, _emberConcurrency.timeout)(500);\n            this.mergeOptions.splice(optionsIndex, 1);\n            if (this.mergeOptions.length) {\n              this.mergeOptions = [...this.mergeOptions];\n            } else {\n              this.mergeOptions = [];\n            }\n            this.notifications.success(this.intl.t('shared.notification.Contact has been updated'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.contacts.somethingWentWrongWhileMergingAndUsingSupplier'),\n              error\n            });\n          }\n        }\n      }), null, \"mergeAndUseDuplicatedSupplier\", null));\n      _defineProperty(this, \"updateContacts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const changes = yield this.accountingPlatform.updateContacts.perform(this.sessionData.entity);\n            if (changes.updated.length) {\n              const updateIds = changes.updated;\n              this.suppliers.forEach(supplier => {\n                if (updateIds.includes(supplier.id)) {\n                  supplier.unloadRecord();\n                }\n              });\n            }\n            yield this.updateSupplierList.perform();\n            this.notifications.success(changes.created.length || changes.updated.length ? this.intl.t('entity.settings.contacts.importedXNewSuppliersAndUpdateX', {\n              created: changes.created.length || 0,\n              updated: changes.updated.length || 0\n            }) : this.intl.t('entity.settings.contacts.All suppliers were already up to date'));\n          } catch (error) {\n            this.notifications.error({\n              error,\n              message: this.intl.t('shared.notification.Something went wrong updating contact(s)')\n            });\n          }\n        }\n      }), null, \"updateContacts\", null));\n    }\n    get isEditable() {\n      return this.newFeatureFlags.includesFeatureFlags(this.sessionData.entity, 'canManageSuppliers');\n    }\n    onChangePageIndex(pageNumber) {\n      this.pageNumber = pageNumber;\n      this.selectedSupplierIds = new Set();\n    }\n    onChangePageSize(pageSize) {\n      this.pageSize = pageSize;\n    }\n    get totalRecords() {\n      return this.model.suppliers.lastSuccessful.value.meta?.totalRecords || 0;\n    }\n    updateSearchTerm(value) {\n      this.selectedSupplierIds = new Set();\n      this.searchString = value.trim();\n      this.pageNumber = 1;\n    }\n    get suppliers() {\n      return this.model.suppliers.lastSuccessful.value.toArray() || [];\n    }\n    get selectableSuppliers() {\n      return this.paginationData.filter(supplier => !(supplier.isLinkedToActiveAccountingPlatform && this.accountingPlatform.isActive || supplier.isLinkedToResources));\n    }\n    get supplierTableHeader() {\n      if (this.model.suppliers.isRunning) return [];\n      const supplierHeader = [{\n        value: this.intl.t('common.Name'),\n        colClass: ' text-left'\n      }, {\n        value: 'Connection',\n        colClass: ' text-left'\n      }, {\n        value: this.intl.t('shared.contacts.Contact person'),\n        colClass: ' text-left'\n      }, {\n        value: this.intl.t('shared.contacts.Contact number'),\n        colClass: 'text-left'\n      }, {\n        value: this.intl.t('common.Email'),\n        colClass: 'text-left'\n      }, {\n        value: this.intl.t('common.Address'),\n        colClass: 'text-left'\n      }];\n      if (this.isEditable && this.suppliers.length) supplierHeader.unshift({\n        type: 'CHECKBOX_INPUT',\n        colClass: 'text-center align-middle',\n        value: Boolean(this.selectableSuppliers.length && this.selectedSupplierIds.size === this.selectableSuppliers.length),\n        isPartiallySelected: Boolean(this.selectableSuppliers.length && this.selectedSupplierIds.size && this.selectedSupplierIds.size !== this.selectableSuppliers.length),\n        onInputChange: this.onSelectAllSuppliers\n      });\n      return supplierHeader;\n    }\n    get isLoading() {\n      return this.model.suppliers.isRunning;\n    }\n    get paginationData() {\n      return this.model.suppliers.lastSuccessful.value?.toArray() || [];\n    }\n    get supplierTableData() {\n      if (this.model.suppliers.isRunning) return [];\n      return this.paginationData.map(supplier => {\n        const isLinkedToAccountingPlatform = supplier.isLinkedToActiveAccountingPlatform;\n        let selectionDisabledTitle = '';\n        if (isLinkedToAccountingPlatform) {\n          selectionDisabledTitle = this.intl.t('entity.settings.contacts.deleteLinkedToAccountingPlatform', {\n            label: this.accountingPlatform.label\n          });\n        } else if (supplier.isLinkedToResources) {\n          selectionDisabledTitle = this.intl.t('entity.settings.contacts.deleteLinkedToResources');\n        }\n        const supplierData = [{\n          type: 'BUTTON',\n          textClass: 'btn btn-link',\n          value: supplier.name,\n          onClickButton: this.onClickSupplierName,\n          extraData: {\n            supplier\n          }\n        }, isLinkedToAccountingPlatform ? {\n          type: 'BUTTON',\n          textClass: 'btn btn-link',\n          value: supplier.viewContactLabel,\n          onClickButton: this.onClickViewAccountingPlatform,\n          iconName: 'sync',\n          title: this.intl.t('entity.settings.contacts.thisSupplierIsSyncedWithYourAccountingPackage'),\n          extraData: {\n            supplier\n          }\n        } : {\n          colClass: 'text-left align-middle text-muted',\n          value: '&mdash;'\n        }, {\n          colClass: 'text-left align-middle',\n          value: supplier?.contactPerson ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: supplier?.contactNumber ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: supplier?.contactEmail ?? ' — '\n        }, {\n          colClass: 'text-left align-middle',\n          value: supplier?.address ?? ' — '\n        }];\n        if (this.isEditable) {\n          supplierData.unshift({\n            type: 'CHECKBOX_INPUT',\n            colClass: 'text-center align-middle',\n            value: this.selectedSupplierIds.has(supplier.id),\n            disabled: isLinkedToAccountingPlatform || supplier.isLinkedToResources ? true : false,\n            title: selectionDisabledTitle,\n            onInputChange: this.onSelectSupplier,\n            extraData: {\n              supplier\n            }\n          });\n        }\n        return {\n          rowData: supplierData\n        };\n      });\n    }\n    onDeletingSuppliers() {\n      this.needDeleteXeroSuppliers = this.suppliers.filter(s => this.selectedSupplierIds.has(s.id) && s.xeroContactId);\n      this.isDeletingSuppliers = true;\n    }\n    async onClickSupplierName(_row, col) {\n      this.router.transitionTo('entity.settings.contacts.contact', col.extraData.supplier.id);\n    }\n    onClickViewAccountingPlatform(_row, col) {\n      const contact = col.extraData?.supplier;\n      const url = contact?.viewContactUrl;\n      if (!url) return;\n      window.open(url, '_blank', 'noopener,noreferrer');\n    }\n    onSelectSupplier(_row, col, e) {\n      if (e.target.checked) {\n        this.selectedSupplierIds.add(col.extraData.supplier.id);\n      } else {\n        this.selectedSupplierIds.delete(col.extraData.supplier.id);\n      }\n\n      // Set is not supported by tracked\n      // eslint-disable-next-line no-self-assign\n      this.selectedSupplierIds = this.selectedSupplierIds;\n    }\n    openMergeDuplicateSuppliersDialog() {\n      this.onMergeDuplicateSuppliers = true;\n      this.onCheckingDuplicateSuppliers.perform();\n    }\n    closeDuplicateSupplierModal() {\n      if (this.duplicateSuppliers.length !== this.mergeOptions.length) {\n        this.model.suppliers.perform(this.model.pageSize, this.model.pageNumber, this.searchString);\n      }\n      this.model.hasDuplicateSuppliers.perform();\n      this.onMergeDuplicateSuppliers = false;\n    }\n    goNewSupplier() {\n      this.router.transitionTo('entity.settings.contacts.contact', 'new');\n    }\n    onSelectAllSuppliers(_row, _col, e) {\n      if (e.target.checked) {\n        this.selectableSuppliers.forEach(supplier => {\n          this.selectedSupplierIds.add(supplier.id);\n        });\n      } else {\n        this.selectableSuppliers.forEach(supplier => {\n          this.selectedSupplierIds.delete(supplier.id);\n        });\n      }\n\n      // eslint-disable-next-line no-self-assign\n      this.selectedSupplierIds = this.selectedSupplierIds;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooks\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"selectedSupplierIds\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return new Set();\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isEditingSupplier\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"isDeletingSuppliers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"needDeleteXeroSuppliers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"onMergeDuplicateSuppliers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"pageSize\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"pageNumber\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"duplicateSuppliers\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"mergeIndex\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"mergeOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageIndex\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onChangePageSize\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onChangePageSize\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"updateSearchTerm\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"updateSearchTerm\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onDeletingSuppliers\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onDeletingSuppliers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickSupplierName\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickSupplierName\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onClickViewAccountingPlatform\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onClickViewAccountingPlatform\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectSupplier\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openMergeDuplicateSuppliersDialog\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openMergeDuplicateSuppliersDialog\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"closeDuplicateSupplierModal\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"closeDuplicateSupplierModal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"goNewSupplier\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"goNewSupplier\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"onSelectAllSuppliers\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"onSelectAllSuppliers\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/gl-accounts\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/entity/settings/integrations\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"portal/validators/ips-connection\", \"jquery\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _controller, _service, _tracking, _object, _ipsConnection, _jquery, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"portal/validators/ips-connection\",0,\"jquery\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor5, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor6, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor7, this);\n      _initializerDefineProperty(this, \"ips\", _descriptor8, this);\n      _initializerDefineProperty(this, \"router\", _descriptor9, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor0, this);\n      _initializerDefineProperty(this, \"quickbooks\", _descriptor1, this);\n      _defineProperty(this, \"xeroValidationMap\", {});\n      _defineProperty(this, \"itmValidationMap\", {});\n      _defineProperty(this, \"defaultInvoiceStatusOptions\", [{\n        value: 'DRAFT',\n        label: this.intl.t('common.Draft')\n      }, {\n        value: 'SUBMITTED',\n        label: this.intl.t('common.Awaiting approval')\n      }, {\n        value: 'AUTHORISED',\n        label: this.intl.t('entity.settings.integrations.Awaiting payment')\n      }]);\n      _defineProperty(this, \"defaultCreditNoteStatusOptions\", [{\n        value: 'SUBMITTED',\n        label: this.intl.t('common.Submitted')\n      }, {\n        value: 'AUTHORISED',\n        label: this.intl.t('entity.settings.integrations.Awaiting payment')\n      }]);\n      _defineProperty(this, \"defaultTimesheetStatusOptions\", [{\n        value: 'DRAFT',\n        label: this.intl.t('common.Draft')\n      }, {\n        value: 'APPROVED',\n        label: this.intl.t('common.Approved')\n      }]);\n      _defineProperty(this, \"updateCompanyFeatures\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeSet) {\n          changeSet.execute();\n          try {\n            yield this.setEntityFeatures(changeSet.data);\n            yield this.model.entity.reload();\n            yield this.model.entity.hasMany('attributes').ids();\n            yield this.store.simpleQuery('entity', {\n              _id: this.model.entity.id\n            });\n            this.notifications.success(this.intl.t('entity.settings.integrations.Successfully updated integration options'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.integrations.somethingWentWrongWhileUpdatingIntegrationOptions'),\n              error\n            });\n          }\n        }\n      }), null, \"updateCompanyFeatures\", null));\n      _defineProperty(this, \"saveIpsConnection\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          const isNew = changeset.isNew;\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) {\n              this.notifications.warning(this.intl.t('shared.notification.Please complete the information'));\n              return;\n            }\n            yield changeset.save();\n\n            // the connection is what makes IPS ready, so the meter needs fresh usage\n            yield this.ips.getUsage();\n            this.notifications.success(isNew ? this.intl.t('entity.settings.integrations.Successfully set up IPS') : this.intl.t('entity.settings.integrations.Successfully updated IPS contact email'));\n          } catch (error) {\n            this.notifications.error({\n              message: isNew ? this.intl.t('entity.settings.integrations.somethingWentWrongWhileSettingUpIPS') : this.intl.t('entity.settings.integrations.somethingWentWrongWhileUpdatingIPSContactEmail'),\n              error\n            });\n          }\n        }\n      }), null, \"saveIpsConnection\", null));\n      _defineProperty(this, \"removeXeroCompany\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.xeroIntegration.disconnect();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.integrations.Failed to disconnect Xero organisation'),\n              error\n            });\n          }\n        }\n      }), null, \"removeXeroCompany\", null));\n      _defineProperty(this, \"saveXeroConnection\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            changeset.validate();\n            if (changeset.isInvalid) {\n              this.notifications.warning(this.intl.t('shared.notification.Please complete the information'));\n              return;\n            }\n            changeset.execute();\n            yield changeset.save();\n            this.notifications.success(this.intl.t('shared.notification.Saved successfully'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong while saving'),\n              error\n            });\n          }\n        }\n      }), null, \"saveXeroConnection\", null));\n      _initializerDefineProperty(this, \"selectedItmStores\", _descriptor10, this);\n      _defineProperty(this, \"setXeroCompany\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.xeroIntegration.connect(); // this causes navigation away from the app\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.integrations.Failed to authenticate to Xero'),\n              error\n            });\n          }\n        }\n      }), null, \"setXeroCompany\", null));\n      _defineProperty(this, \"setQuickBooksCompany\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.quickbooks.connect(); // this causes navigation away from the app\n          } catch (error) {\n            this.notifications.error({\n              message: 'failed to connect to quickbooks',\n              error\n            });\n          }\n        }\n      }), null, \"setQuickBooksCompany\", null));\n      _defineProperty(this, \"removeQuickBooksCompany\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.quickbooks.disconnect();\n          } catch (error) {\n            this.notifications.error({\n              message: 'Failed to disconnect quickbooks',\n              error\n            });\n          }\n        }\n      }), null, \"removeQuickBooksCompany\", null));\n      _defineProperty(this, \"requestItmStores\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const token = this.session.data.authenticated.access_token;\n          const payload = {\n            entity: this.sessionData.entity.id,\n            stores: this.selectedItmStores.map(store => store.id)\n          };\n          if (payload.stores.length < 1) {\n            return this.notifications.warning({\n              message: this.intl.t('entity.settings.integrations.pleaseSelectEntitiesForTheRequest')\n            });\n          }\n          this.selectedItmStores = [];\n          try {\n            yield requestIntegrationAjax(token, payload);\n            yield this.store.simpleQuery('entity', {\n              _id: this.sessionData.entity.id\n            }, {\n              include: 'eaccountsInvoiceIntegration'\n            });\n            yield this.model.itmSuppliers.perform();\n            this.notifications.success(this.intl.t('entity.settings.integrations.Successfully made integration request'));\n          } catch (err) {\n            if (err.statusText === 'Bad Request') this.notifications.warning(this.intl.t('entity.settings.integrations.pleaseEnsureYouHaveCompletedTheForm'));else this.send('error', err);\n          }\n        }\n      }), null, \"requestItmStores\", null));\n      _defineProperty(this, \"updatePlaceMakersIntegration\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (enabled) {\n          try {\n            yield this.setEntityFeatures({\n              canUsePlaceMakers: enabled\n            });\n            yield this.store.simpleQuery('entity', {\n              _id: this.model.entity.id\n            });\n            if (enabled) {\n              this.notifications.success(this.intl.t('entity.settings.integrations.successfullyEnabledPlaceMakersIntegration'));\n            } else {\n              this.notifications.success(this.intl.t('entity.settings.integrations.successfullyDisabledPlaceMakersIntegration'));\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.integrations.somethingWentWrongWhileUpdatingPlaceMakersIntegration'),\n              error\n            });\n          }\n        }\n      }), null, \"updatePlaceMakersIntegration\", null));\n    }\n    get xeroCompanyId() {\n      return this.xeroIntegration.companyId;\n    }\n    get xeroCompanyName() {\n      return this.xeroIntegration.companyName;\n    }\n    get shortCode() {\n      return this.xeroCompanyId;\n    }\n    get allowedXeroIntegration() {\n      return this.xeroIntegration.ready;\n    }\n    get quickbooksUrl() {\n      return _environment.default.urls.quickbooksUrl;\n    }\n    get xeroConnection() {\n      return this.xeroIntegration.connection;\n    }\n    get ipsConnectionValidator() {\n      return (0, _ipsConnection.default)(this.intl);\n    }\n    async setEntityFeatures(features) {\n      const entity = this.model.entity;\n      const links = entity.hasMany('attributes').value() || [];\n      await Promise.all(Object.entries(features).map(async ([key, enabled]) => {\n        const link = links.find(item => item.belongsTo('attribute').id() === key);\n        if (!enabled) return link?.destroyRecord();\n        if (link) return;\n        const attribute = await this.store.findRecord('entity-attribute', key);\n        return this.store.createRecord('link-entity-to-entity-attribute', {\n          entity,\n          attribute\n        }).save();\n      }));\n    }\n    get eaccountsInvoiceIntegration() {\n      // TODO when this relationships is fixed this will be one record\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n\n      const eaccountsInvoiceIntegration = this.sessionData.entity.hasMany('eaccountsInvoiceIntegration').value() || [];\n      if (eaccountsInvoiceIntegration[0]) return eaccountsInvoiceIntegration[0];\n\n      // if you don't have one already, return a fake one\n      return {\n        allowed: true,\n        requests: [],\n        entity: this.sessionData.entity\n      };\n    }\n    get requestableItmStores() {\n      return this.model.itmSuppliers.last.value;\n    }\n    get requestedItmStores() {\n      return this.eaccountsInvoiceIntegration.requests;\n    }\n    addItmStoreRequest(stores) {\n      this.selectedItmStores = stores;\n    }\n    contactSupport() {\n      const helpCenter = this.helpCenter;\n      if (helpCenter?.helpCenterActive) {\n        helpCenter.openHelpCenter();\n      }\n    }\n    cancelItmStoreRequest(store) {\n      this.eaccountsInvoiceIntegration.requests = this.eaccountsInvoiceIntegration.requests.map(request => {\n        if (request.supplier !== store.supplier) return request;\n        return {\n          ...request,\n          status: 'Canceled'\n        };\n      });\n      this.eaccountsInvoiceIntegration.save();\n    }\n    reconnectITmStoreRequest(store) {\n      this.eaccountsInvoiceIntegration.requests = this.eaccountsInvoiceIntegration.requests.map(request => {\n        if (request.supplier !== store.supplier) return request;\n        return {\n          ...request,\n          status: 'Pending'\n        };\n      });\n      this.eaccountsInvoiceIntegration.save();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooks\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"selectedItmStores\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"addItmStoreRequest\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"addItmStoreRequest\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"contactSupport\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"contactSupport\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"cancelItmStoreRequest\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"cancelItmStoreRequest\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"reconnectITmStoreRequest\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"reconnectITmStoreRequest\"), _class2.prototype), _class2);\n  function requestIntegrationAjax(token, payload) {\n    return new Promise((resolve, reject) => {\n      // eslint-disable-next-line ember/no-jquery\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/eaccounts/setup-invoice-imports',\n        data: JSON.stringify(payload),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/people\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n    }\n    get tabs() {\n      const tabsArray = [];\n      if (this.newFeatureFlags.includesFeatureFlags('canUseUsers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Users'),\n          route: 'entity.settings.people.users',\n          icon: 'user'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags('canUseClientPortal')) {\n        tabsArray.push({\n          name: this.intl.t('common.Clients'),\n          route: 'entity.settings.people.clients',\n          icon: 'user-tie'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags('canUseSubcontractors')) {\n        tabsArray.push({\n          name: this.intl.t('common.Subcontractors'),\n          route: 'entity.settings.people.subcontractors',\n          icon: 'hard-hat'\n        });\n      }\n      if (this.newFeatureFlags.includesFeatureFlags('canUseWorkers')) {\n        tabsArray.push({\n          name: this.intl.t('common.Workers'),\n          route: 'entity.settings.people.workers',\n          icon: 'users'\n        });\n      }\n      return tabsArray;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/controllers/entity/settings/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _controller, _service, _rsvp, _jquery, _environment, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}', 'user.isNew'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"router\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _defineProperty(this, \"saveUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const wasNew = Boolean(this.user.isNew);\n\n            //validate the any users exists with same email id in different type of user\n            if (wasNew) {\n              const user = yield this.store.simpleQuery('user', {\n                email: changeset.email.toLowerCase()\n              }).then(res => res[0]);\n              if (user) {\n                const userEntityAttribute = yield this.store.simpleQuery('user-entity-attribute', {\n                  user: user.id,\n                  entity: this.sessionData.entity.id\n                });\n                if (userEntityAttribute.length) return this.notifications.warning(this.intl.t('shared.notification.emailAddressAlreadyExists'));\n              }\n            }\n            const response = yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              phoneNumber: changeset.phoneNumber,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token);\n            this.router.transitionTo(`${this.model.basePath}.clients.client`, response.newUserId);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved user'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong saving the user'),\n              error\n            });\n          }\n        }\n      }), null, \"saveUser\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('entity.settings.people.clients.client.areYouSureYouWantToDeleteThisClient'))) return;\n\n            // fetch the user attributes again so we have all the attributes\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            })]);\n\n            // destroy all the attributes for this entity\n            const destroyAttribute = attribute => {\n              // only destroy attributes for this entity\n              if (attribute.belongsTo('entity').value() === this.sessionData.entity) return attribute.destroyRecord();\n            };\n            // for some reason we need to look up the relationships using old school getters\n            yield Promise.all([Promise.all((this.user.hasMany('entityAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('projectAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('taskAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('workerAttributes').value() || []).map(destroyAttribute))]);\n\n            // if you have deleted someone else, go back to the clients index to reload the clients list\n            this.router.transitionTo(`${this.model.basePath}.clients.index`);\n            this.notifications.success(this.intl.t('entity.settings.people.clients.client.Successfully deleted user'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong deleting the user'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"sendPasswordResetEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            // this will have the effect of sending a password reset email\n            yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSendingTheReminderEmail'),\n              error\n            });\n          }\n        }\n      }), null, \"sendPasswordResetEmail\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.clients`,\n        pageTitle: this.intl.t('common.Clients')\n      }, {\n        route: `${this.model.basePath}.clients`,\n        pageTitle: this.user.isNew ? this.intl.t('entity.settings.people.clients.client.New client') : this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get isRunning() {\n      return this.model.user.isRunning || this.model.userChangeset.isRunning;\n    }\n    get user() {\n      return this.model.user.last.value;\n    }\n    get canManageUser() {\n      return this.userIsYou || this.newFeatureFlags.includesFeatureFlags(this.user, 'canManageUsers');\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _class2);\n  function inviteUserAjax(payload, token) {\n    const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/builda-price-client';\n    return new _rsvp.default.Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: url,\n        data: JSON.stringify(Object.assign(payload, {\n          callback: _environment.default.urls.app + '/reset-password',\n          appURL: _environment.default.urls.app\n        })),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/people/clients/index\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _tracking, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredClients', 'model.{basePath,clients.last.value}', 'searchString.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"searchString\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"session\", _descriptor5, this);\n    }\n    get isLoading() {\n      return this.model.clients.isRunning;\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n    get filteredClients() {\n      const result = this.model.clients.last.value?.filter(client => {\n        const matchString = `${client.firstName}${client.lastName}${client.email}${client.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filteredClients\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredClients\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/people/subcontractors/index\", [\"exports\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _tracking, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredSubcontractors', 'model.{basePath,subcontractors.last.value}', 'searchString.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"searchString\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor4, this);\n      _initializerDefineProperty(this, \"session\", _descriptor5, this);\n    }\n    get isLoading() {\n      return this.model.subcontractors.isRunning;\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n    get filteredSubcontractors() {\n      const result = this.model.subcontractors.last.value?.filter(subcontractor => {\n        const matchString = `${subcontractor.firstName}${subcontractor.lastName}${subcontractor.email}${subcontractor.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"filteredSubcontractors\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredSubcontractors\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"@glimmer/tracking\", \"@ember/object\", \"portal/routes/entity/settings/people/subcontractors/subcontractor\"], function (_exports, _asyncArrowRuntime, _controller, _service, _rsvp, _jquery, _environment, _tracking, _object, _subcontractor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/routes/entity/settings/people/subcontractors/subcontractor\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}', 'user.isNew'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor1, this);\n      _initializerDefineProperty(this, \"_settingsPermissionsVisible\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_healthAndSafetyPermissionsVisible\", _descriptor11, this);\n      _defineProperty(this, \"saveUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const wasNew = Boolean(this.user.isNew);\n\n            //validate the any users exists with same email id in different type of user\n            if (wasNew) {\n              const user = yield this.store.simpleQuery('user', {\n                email: changeset.email.toLowerCase()\n              }).then(res => res[0]);\n              if (user) {\n                const userEntityAttribute = yield this.store.simpleQuery('user-entity-attribute', {\n                  user: user.id,\n                  entity: this.sessionData.entity.id\n                });\n                if (userEntityAttribute.length) return this.notifications.warning(this.intl.t('shared.notification.emailAddressAlreadyExists'));\n              }\n            }\n            const response = yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              phoneNumber: changeset.phoneNumber,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token);\n            this.router.transitionTo(`${this.model.basePath}.subcontractors.subcontractor`, response.newUserId);\n            this.notifications.success(this.intl.t('entity.settings.people.subcontractors.subcontractor.Successfully saved subcontractor'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.subcontractors.subcontractor.somethingWentWrongSavingTheSubcontractor'),\n              error\n            });\n          }\n        }\n      }), null, \"saveUser\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.userIsYou ? this.intl.t('shared.notification.areYouSureYouWantToRemoveYourselfFromThisCompany') : this.intl.t('entity.settings.people.subcontractors.subcontractor.areYouSureYouWantToDeleteThisSubcontractor'))) return;\n\n            // fetch the user attributes again so we have all the attributes\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            })]);\n\n            // destroy all the attributes for this entity\n            const destroyAttribute = attribute => {\n              // only destroy attributes for this entity\n              if (attribute.belongsTo('entity').value() === this.sessionData.entity) return attribute.destroyRecord();\n            };\n            // for some reason we need to look up the relationships using old school getters\n            yield Promise.all([Promise.all((this.user.hasMany('entityAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('projectAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('taskAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('workerAttributes').value() || []).map(destroyAttribute))]);\n\n            // if you have deleted yourself, go back to index to refresh permissions and entities\n            if (this.userIsYou) this.router.transitionTo('index');else {\n              // if you have deleted someone else, go back to the users index to reload the users list\n              this.router.transitionTo(`${this.model.basePath}.subcontractors.index`);\n              this.notifications.success('Successfully deleted subcontractor');\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.userIsYou ? this.intl.t('shared.notification.somethingWentWrongRemovingYouFromTheCompany') : this.intl.t('entity.settings.people.subcontractors.subcontractor.somethingWentWrongDeletingTheSubcontractor'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const entityAttributesToAdd = [];\n            const entityAttributesToRemove = [];\n            const workersToAdd = [];\n            if (changeset.isCompanyAdministrator) {\n              entityAttributesToAdd.push(..._subcontractor.administratorAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.administratorAttributes);\n            }\n            if (changeset.canManageEverything) {\n              entityAttributesToAdd.push(..._subcontractor.managerAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.managerAttributes);\n            }\n            if (changeset.canViewBills) {\n              entityAttributesToAdd.push(..._subcontractor.canViewBillsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewBillsAttributes);\n            }\n            if (changeset.canManageBills) {\n              entityAttributesToAdd.push(..._subcontractor.canManageBillsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageBillsAttributes);\n            }\n            if (changeset.canViewTimesheets) {\n              entityAttributesToAdd.push(..._subcontractor.canViewTimesheetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewTimesheetsAttributes);\n            }\n            if (changeset.canManageTimesheets) {\n              entityAttributesToAdd.push(..._subcontractor.canManageTimesheetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageTimesheetsAttributes);\n            }\n            if (changeset.canViewProjects) {\n              entityAttributesToAdd.push(..._subcontractor.canViewProjectsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewProjectsAttributes);\n            }\n            if (changeset.canManageProjects) {\n              entityAttributesToAdd.push(..._subcontractor.canManageProjectsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageProjectsAttributes);\n            }\n            if (changeset.canViewTasks) {\n              entityAttributesToAdd.push(..._subcontractor.canViewTasksAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewTasksAttributes);\n            }\n            if (changeset.canManageTasks) {\n              entityAttributesToAdd.push(..._subcontractor.canManageTasksAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageTasksAttributes);\n            }\n            if (changeset.canViewBudgets) {\n              entityAttributesToAdd.push(..._subcontractor.canViewBudgetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewBudgetsAttributes);\n            }\n            if (changeset.canManageBudgets) {\n              entityAttributesToAdd.push(..._subcontractor.canManageBudgetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageBudgetsAttributes);\n            }\n            if (changeset.canViewProgress) {\n              entityAttributesToAdd.push(..._subcontractor.canViewProgressAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewProgressAttributes);\n            }\n            if (changeset.canManageProgress) {\n              entityAttributesToAdd.push(..._subcontractor.canManageProgressAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageProgressAttributes);\n            }\n            if (changeset.canViewQuotes) {\n              entityAttributesToAdd.push(..._subcontractor.canViewQuotesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewQuotesAttributes);\n            }\n            if (changeset.canManageQuotes) {\n              entityAttributesToAdd.push(..._subcontractor.canManageQuotesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageQuotesAttributes);\n            }\n            if (changeset.canViewProducts) {\n              entityAttributesToAdd.push(..._subcontractor.canViewProductsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewProductsAttributes);\n            }\n            if (changeset.canManageProducts) {\n              entityAttributesToAdd.push(..._subcontractor.canManageProductsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageProductsAttributes);\n            }\n            if (changeset.canViewFileStorage) {\n              entityAttributesToAdd.push(..._subcontractor.canViewFileStorageAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewFileStorageAttributes);\n            }\n            if (changeset.canManageFileStorage) {\n              entityAttributesToAdd.push(..._subcontractor.canManageFileStorageAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageFileStorageAttributes);\n            }\n            if (changeset.canManageWorkers) {\n              entityAttributesToAdd.push(..._subcontractor.canManageWorkersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageWorkersAttributes);\n            }\n            if (changeset.canViewWorkers) {\n              entityAttributesToAdd.push(..._subcontractor.canViewWorkersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewWorkersAttributes);\n            }\n            if (changeset.canViewPayrollReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewPayrollReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewPayrollReportsAttributes);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewBudgetReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewBudgetReportsAttributes);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewBudgetLabourHourReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewBudgetLabourHourReportsAttributes);\n            }\n            if (changeset.canViewQuoteReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewQuoteReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewQuoteReportsAttributes);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewCostReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewCostReportsAttributes);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewCostLabourHourReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewCostLabourHourReportsAttributes);\n            }\n            if (changeset.canViewChargeupReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewChargeupReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewChargeupReportsAttributes);\n            }\n            if (changeset.canViewProgressReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewProgressReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewProgressReportsAttributes);\n            }\n            if (changeset.canEstimate) {\n              entityAttributesToAdd.push(..._subcontractor.canManageEstimatesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageEstimatesAttributes);\n            }\n            if (changeset.canManageEstimateSettings) {\n              entityAttributesToAdd.push(..._subcontractor.canManageEstimateSettingsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageEstimateSettingsAttributes);\n            }\n            if (changeset.canViewSchedulingReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewSchedulingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewSchedulingReportsAttributes);\n            }\n            if (changeset.canManageSchedulingReports) {\n              entityAttributesToAdd.push(..._subcontractor.canManageSchedulingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageSchedulingReportsAttributes);\n            }\n            if (changeset.canUseReportBuilderReport) {\n              entityAttributesToAdd.push(..._subcontractor.canUseReportBuilderReportAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canUseReportBuilderReportAttributes);\n            }\n            if (changeset.canCreateHealthAndSafety) {\n              entityAttributesToAdd.push(..._subcontractor.canCreateHealthAndSafetyAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canCreateHealthAndSafetyAttributes);\n            }\n            if (changeset.canManageHealthAndSafety) {\n              entityAttributesToAdd.push(..._subcontractor.canManageHealthAndSafetyAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageHealthAndSafetyAttributes);\n            }\n            if (changeset.canManageIntegrations) {\n              entityAttributesToAdd.push(..._subcontractor.canManageIntegrationsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canManageIntegrationsAttributes);\n            }\n            if (changeset.canViewInvoicingReports) {\n              entityAttributesToAdd.push(..._subcontractor.canViewInvoicingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._subcontractor.canViewInvoicingReportsAttributes);\n            }\n\n            // workers are set every time\n            workersToAdd.push(...changeset.workers);\n            yield Promise.all([this.handleEntityAttributes([...new Set(entityAttributesToAdd)], [...new Set(entityAttributesToRemove)]), this.handleWorkers([...new Set(workersToAdd)])]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"sendPasswordResetEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            // this will have the effect of sending a password reset email\n            yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSendingTheReminderEmail'),\n              error\n            });\n          }\n        }\n      }), null, \"sendPasswordResetEmail\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.subcontractors`,\n        pageTitle: this.intl.t('common.Subcontractors')\n      }, {\n        route: `${this.model.basePath}.subcontractors`,\n        pageTitle: this.user.isNew ? this.intl.t('entity.settings.people.subcontractors.subcontractor.New subcontractor') : this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get isRunning() {\n      return this.model.user.isRunning || this.model.userChangeset.isRunning || this.model.permissionsChangeset.isRunning || this.model.workers.isRunning;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports'],\n        [this.intl.t('common.Chargeup')]: ['canViewChargeupReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Costs')]: ['canViewCostFinancialReports', 'canViewBills', 'canViewTimesheets'],\n        [this.intl.t('shared.report.Forecast breakdown')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Labour hours')]: ['canViewBudgetLabourHourReports', 'canViewCostLabourHourReports', 'canViewProgressReports'],\n        [this.intl.t('common.Position')]: ['canViewBudgetFinancialReports', 'canViewBudgetLabourHourReports', 'canViewCostFinancialReports', 'canViewCostLabourHourReports', 'canViewProgressReports', 'canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Profit margins')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Quote')]: ['canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('shared.report.Work in progress')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Invoicing')]: ['canViewInvoicingReports'],\n        [this.intl.t('common.Cost to complete')]: ['canViewQuoteReports', 'canViewProgressReports', 'canViewChargeupReports', 'canViewInvoicingReports']\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => this.permissionsChangeset[p]));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get projectPermissionsCount() {\n      return [this.permissionsChangeset.canEstimate, this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageEstimateSettings, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canManageProjects, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewProgress, this.permissionsChangeset.canViewProjects, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewTasks].filter(attribute => attribute).length;\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount > 0;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canViewSchedulingReports, this.permissionsChangeset.canManageSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      const workerCount = this.model.workers.last.value.toArray().filter(w => this.model.user.last.value.includesClaimsAboutWorker(w.id, 'canManageTimesheets')).length;\n      const permissionCount = [this.permissionsChangeset.canManageBills, this.permissionsChangeset.canManageTimesheets, this.permissionsChangeset.canManageNotes, this.permissionsChangeset.canViewBills, this.permissionsChangeset.canViewTimesheets, this.permissionsChangeset.canViewNotes].filter(attribute => attribute).length;\n      return permissionCount + workerCount;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canUseReportBuilderReport, this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewPayrollReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get settingsPermissionsCount() {\n      return [this.permissionsChangeset.canViewWorkers].filter(attribute => attribute).length;\n    }\n    get settingsPermissionsVisible() {\n      if (this._settingsPermissionsVisible != null) return this._settingsPermissionsVisible;\n      return this.settingsPermissionsCount > 0;\n    }\n    set settingsPermissionsVisible(value) {\n      this._settingsPermissionsVisible = value;\n    }\n    get healthAndSafetyPermissionsCount() {\n      return [this.permissionsChangeset.canCreateHealthAndSafety, this.permissionsChangeset.canManageHealthAndSafety].filter(attribute => attribute).length;\n    }\n    get healthAndSafetyPermissionsVisible() {\n      if (this._healthAndSafetyPermissionsVisible != null) return this._healthAndSafetyPermissionsVisible;\n      return this.healthAndSafetyPermissionsCount > 0;\n    }\n    set healthAndSafetyPermissionsVisible(value) {\n      this._healthAndSafetyPermissionsVisible = value;\n    }\n    get user() {\n      return this.model.user.last.value;\n    }\n    get userIsYou() {\n      return this.user === this.sessionData.user;\n    }\n    get canEditUser() {\n      return this.user.isNew || this.userIsYou;\n    }\n    get canManageUser() {\n      return this.userIsYou || this.newFeatureFlags.includesFeatureFlags(this.user, 'canManageUsers');\n    }\n    get canManageUserPermissions() {\n      return !this.userIsYou && this.newFeatureFlags.includesFeatureFlags('canManageUsers');\n    }\n    async handleEntityAttributes(entityAttributesToAdd, _entityAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const entityAttributesToRemove = _entityAttributesToRemove.filter(ar => !entityAttributesToAdd.includes(ar));\n      const existingEntityAttributes = await this.store.simpleQuery('user-entity-attribute', {\n        user: this.user.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(entityAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingEntityAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(entityAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingEntityAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-entity-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute\n        }).save();\n      }))]);\n    }\n    async handleWorkers(workersToAdd) {\n      const existingWorkerAttributes = await this.store.simpleQuery('user-worker-attribute', {\n        user: this.user.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n\n      // remove all the old worker attributes\n      await Promise.all(existingWorkerAttributes.map(pa => pa.destroyRecord()));\n      if (workersToAdd.length) {\n        // setup the new workers\n        const [canManageTimesheets, canManageNotes] = await Promise.all([this.store.findRecord('user-attribute', 'canManageTimesheets'), this.store.findRecord('user-attribute', 'canManageNotes')]);\n\n        // create the relationship\n        await Promise.all(workersToAdd.map(worker => Promise.all([this.store.createRecord('user-worker-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute: canManageTimesheets,\n          worker\n        }).save(), this.store.createRecord('user-worker-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute: canManageNotes,\n          worker\n        }).save()])));\n      }\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"_settingsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"_healthAndSafetyPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _class2);\n  function inviteUserAjax(payload, token) {\n    const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/builda-price-subcontractor';\n    return new _rsvp.default.Promise((resolve, reject) => {\n      // eslint-disable-next-line ember/no-jquery\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: url,\n        data: JSON.stringify(Object.assign(payload, {\n          callback: _environment.default.urls.app + '/reset-password',\n          appURL: _environment.default.urls.app\n        })),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/people/users/index\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\"], function (_exports, _controller, _service, _object, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredUsers', 'model.{basePath,users.last.value}', 'searchString.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor6, this);\n      _initializerDefineProperty(this, \"isAddingUser\", _descriptor7, this);\n    }\n    get isLoading() {\n      return this.model.users.isRunning || this.model.workers.isRunning;\n    }\n    get filteredUsers() {\n      const result = this.model.users.last.value?.filter(user => {\n        const matchString = `${user.firstName}${user.lastName}${user.email}${user.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"isAddingUser\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredUsers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredUsers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"@ember/object\", \"@glimmer/tracking\", \"portal/routes/entity/settings/people/users/user\"], function (_exports, _asyncArrowRuntime, _controller, _service, _rsvp, _jquery, _environment, _object, _tracking, _user) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/routes/entity/settings/people/users/user\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.user.last.value.{fullName,id}', 'user.isNew'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"session\", _descriptor4, this);\n      _initializerDefineProperty(this, \"router\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_projectPermissionsVisible\", _descriptor8, this);\n      _initializerDefineProperty(this, \"_schedulingPermissionsVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"_allocationsPermissionsVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"_reportsPermissionsVisible\", _descriptor1, this);\n      _initializerDefineProperty(this, \"_settingsPermissionsVisible\", _descriptor10, this);\n      _initializerDefineProperty(this, \"_healthAndSafetyPermissionsVisible\", _descriptor11, this);\n      _initializerDefineProperty(this, \"_financialReportingPermissionsVisible\", _descriptor12, this);\n      _defineProperty(this, \"saveUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n\n            // you can only modify your own user\n            if (this.userIsYou) {\n              this.user.firstName = changeset.firstName;\n              this.user.lastName = changeset.lastName;\n              this.user.email = changeset.email;\n              this.user.phoneNumber = changeset.phoneNumber;\n              yield this.user.save();\n              return;\n            }\n            const wasNew = Boolean(this.user.isNew);\n            //validate the any users exists with same email id in different type of user\n            if (wasNew) {\n              const user = yield this.store.simpleQuery('user', {\n                email: changeset.email.toLowerCase()\n              }).then(res => res[0]);\n              if (user) {\n                const userEntityAttribute = yield this.store.simpleQuery('user-entity-attribute', {\n                  user: user.id,\n                  entity: this.sessionData.entity.id\n                });\n                if (userEntityAttribute.length) return this.notifications.warning(this.intl.t('shared.notification.emailAddressAlreadyExists'));\n              }\n            }\n            let userId;\n            const response = yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              phoneNumber: changeset.phoneNumber,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token, this.newFeatureFlags.canUseBuildaPrice, this.newFeatureFlags.canUseFinancialReporting);\n            userId = response.newUserId;\n            this.router.transitionTo(`${this.model.basePath}.users.user`, userId);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved user'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.Something went wrong saving the user'),\n              error\n            });\n          }\n        }\n      }), null, \"saveUser\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.userIsYou ? this.intl.t('shared.notification.areYouSureYouWantToRemoveYourselfFromThisCompany') : this.intl.t('entity.settings.people.users.user.areYouSureYouWantToDeleteThisUser'))) return;\n\n            // fetch the user attributes again so we have all the attributes\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            })]);\n\n            // destroy all the attributes for this entity\n            const destroyAttribute = attribute => {\n              // only destroy attributes for this entity\n              if (attribute.belongsTo('entity').value() === this.sessionData.entity) return attribute.destroyRecord();\n            };\n            // for some reason we need to look up the relationships using old school getters\n            yield Promise.all([Promise.all((this.user.hasMany('entityAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('projectAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('taskAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('workerAttributes').value() || []).map(destroyAttribute))]);\n\n            // if you have deleted yourself, go back to index to refresh permissions and entities\n            if (this.userIsYou) this.router.transitionTo('index');else {\n              // if you have deleted someone else, go back to the users index to reload the users list\n              this.router.transitionTo(`${this.model.basePath}.users.index`);\n              this.notifications.success('Successfully deleted user');\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.userIsYou ? this.intl.t('shared.notification.somethingWentWrongRemovingYouFromTheCompany') : this.intl.t('shared.notification.Something went wrong deleting the user'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            yield changeset.validate();\n            if (changeset.isInvalid) return;\n            const entityAttributesToAdd = [];\n            const entityAttributesToRemove = [];\n            const workersToAdd = [];\n            if (changeset.isCompanyAdministrator) {\n              entityAttributesToAdd.push(..._user.administratorAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.administratorAttributes);\n            }\n            if (changeset.canManageEverything) {\n              entityAttributesToAdd.push(..._user.managerAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.managerAttributes);\n            }\n            if (changeset.canViewBills) {\n              entityAttributesToAdd.push(..._user.canViewBillsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewBillsAttributes);\n            }\n            if (changeset.canManageBills) {\n              entityAttributesToAdd.push(..._user.canManageBillsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageBillsAttributes);\n            }\n            if (changeset.canApproveBills) {\n              entityAttributesToAdd.push(..._user.canApproveBillsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canApproveBillsAttributes);\n            }\n            if (changeset.canViewInvoices) {\n              entityAttributesToAdd.push(..._user.canViewInvoicesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewInvoicesAttributes);\n            }\n            if (changeset.canManageInvoices) {\n              entityAttributesToAdd.push(..._user.canManageInvoicesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageInvoicesAttributes);\n            }\n            if (changeset.canApproveInvoices) {\n              entityAttributesToAdd.push(..._user.canApproveInvoicesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canApproveInvoicesAttributes);\n            }\n            if (changeset.canViewPurchaseOrders) {\n              entityAttributesToAdd.push(..._user.canViewPurchaseOrdersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewPurchaseOrdersAttributes);\n            }\n            if (changeset.canManagePurchaseOrders) {\n              entityAttributesToAdd.push(..._user.canManagePurchaseOrdersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManagePurchaseOrdersAttributes);\n            }\n            if (changeset.canViewStagePayments) {\n              entityAttributesToAdd.push(..._user.canViewStagePaymentsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewStagePaymentsAttributes);\n            }\n            if (changeset.canManageStagePayments) {\n              entityAttributesToAdd.push(..._user.canManageStagePaymentsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageStagePaymentsAttributes);\n            }\n            if (changeset.canApprovePurchaseOrders) {\n              entityAttributesToAdd.push(..._user.canApprovePurchaseOrdersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canApprovePurchaseOrdersAttributes);\n            }\n            if (changeset.canViewTimesheets) {\n              entityAttributesToAdd.push(..._user.canViewTimesheetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewTimesheetsAttributes);\n            }\n            if (changeset.canManageTimesheets) {\n              entityAttributesToAdd.push(..._user.canManageTimesheetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageTimesheetsAttributes);\n            }\n            if (changeset.canViewProjects) {\n              entityAttributesToAdd.push(..._user.canViewProjectsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewProjectsAttributes);\n            }\n            if (changeset.canManageProjects) {\n              entityAttributesToAdd.push(..._user.canManageProjectsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageProjectsAttributes);\n            }\n            if (changeset.canViewTasks) {\n              entityAttributesToAdd.push(..._user.canViewTasksAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewTasksAttributes);\n            }\n            if (changeset.canManageTasks) {\n              entityAttributesToAdd.push(..._user.canManageTasksAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageTasksAttributes);\n            }\n            if (changeset.canViewBudgets) {\n              entityAttributesToAdd.push(..._user.canViewBudgetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewBudgetsAttributes);\n            }\n            if (changeset.canManageBudgets) {\n              entityAttributesToAdd.push(..._user.canManageBudgetsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageBudgetsAttributes);\n            }\n            if (changeset.canViewQuotes) {\n              entityAttributesToAdd.push(..._user.canViewQuotesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewQuotesAttributes);\n            }\n            if (changeset.canViewProgress) {\n              entityAttributesToAdd.push(..._user.canViewProgressAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewProgressAttributes);\n            }\n            if (changeset.canManageProgress) {\n              entityAttributesToAdd.push(..._user.canManageProgressAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageProgressAttributes);\n            }\n            if (changeset.canManageQuotes) {\n              entityAttributesToAdd.push(..._user.canManageQuotesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageQuotesAttributes);\n            }\n            if (changeset.canViewProducts) {\n              entityAttributesToAdd.push(..._user.canViewProductsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewProductsAttributes);\n            }\n            if (changeset.canManageProducts) {\n              entityAttributesToAdd.push(..._user.canManageProductsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageProductsAttributes);\n            }\n            if (changeset.canViewFileStorage) {\n              entityAttributesToAdd.push(..._user.canViewFileStorageAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewFileStorageAttributes);\n            }\n            if (changeset.canManageFileStorage) {\n              entityAttributesToAdd.push(..._user.canManageFileStorageAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageFileStorageAttributes);\n            }\n            if (changeset.canManageWorkers) {\n              entityAttributesToAdd.push(..._user.canManageWorkersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageWorkersAttributes);\n            }\n            if (changeset.canViewWorkers) {\n              entityAttributesToAdd.push(..._user.canViewWorkersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewWorkersAttributes);\n            }\n            if (changeset.canViewPayrollReports) {\n              entityAttributesToAdd.push(..._user.canViewPayrollReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewPayrollReportsAttributes);\n            }\n            if (changeset.canViewBudgetFinancialReports) {\n              entityAttributesToAdd.push(..._user.canViewBudgetReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewBudgetReportsAttributes);\n            }\n            if (changeset.canViewBudgetLabourHourReports) {\n              entityAttributesToAdd.push(..._user.canViewBudgetLabourHourReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewBudgetLabourHourReportsAttributes);\n            }\n            if (changeset.canViewQuoteReports) {\n              entityAttributesToAdd.push(..._user.canViewQuoteReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewQuoteReportsAttributes);\n            }\n            if (changeset.canViewCostFinancialReports) {\n              entityAttributesToAdd.push(..._user.canViewCostReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewCostReportsAttributes);\n            }\n            if (changeset.canViewCostLabourHourReports) {\n              entityAttributesToAdd.push(..._user.canViewCostLabourHourReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewCostLabourHourReportsAttributes);\n            }\n            if (changeset.canViewChargeupReports) {\n              entityAttributesToAdd.push(..._user.canViewChargeupReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewChargeupReportsAttributes);\n            }\n            if (changeset.canViewProgressReports) {\n              entityAttributesToAdd.push(..._user.canViewProgressReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewProgressReportsAttributes);\n            }\n            if (changeset.canViewAccessReports) {\n              entityAttributesToAdd.push(..._user.canViewAccessReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewAccessReportsAttributes);\n            }\n            if (changeset.canEstimate) {\n              entityAttributesToAdd.push(..._user.canManageEstimatesAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageEstimatesAttributes);\n            }\n            if (changeset.canManageEstimateSettings) {\n              entityAttributesToAdd.push(..._user.canManageEstimateSettingsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageEstimateSettingsAttributes);\n            }\n            if (changeset.canViewSchedulingReports) {\n              entityAttributesToAdd.push(..._user.canViewSchedulingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewSchedulingReportsAttributes);\n            }\n            if (changeset.canManageSchedulingReports) {\n              entityAttributesToAdd.push(..._user.canManageSchedulingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageSchedulingReportsAttributes);\n            }\n            if (changeset.canUseReportBuilderReport) {\n              entityAttributesToAdd.push(..._user.canUseReportBuilderReportAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canUseReportBuilderReportAttributes);\n            }\n            if (changeset.canCreateHealthAndSafety) {\n              entityAttributesToAdd.push(..._user.canCreateHealthAndSafetyAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canCreateHealthAndSafetyAttributes);\n            }\n            if (changeset.canManageHealthAndSafety) {\n              entityAttributesToAdd.push(..._user.canManageHealthAndSafetyAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageHealthAndSafetyAttributes);\n            }\n            if (changeset.canManageIntegrations) {\n              entityAttributesToAdd.push(..._user.canManageIntegrationsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageIntegrationsAttributes);\n            }\n            if (changeset.canViewUsers) {\n              entityAttributesToAdd.push(..._user.canViewUsersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewUsersAttributes);\n            }\n            if (changeset.canManageUsers) {\n              entityAttributesToAdd.push(..._user.canManageUsersAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageUsersAttributes);\n            }\n            if (changeset.canViewFinancialReporting) {\n              entityAttributesToAdd.push(..._user.canViewFinancialReportingAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewFinancialReportingAttributes);\n            }\n            if (changeset.canManageFinancialReporting) {\n              entityAttributesToAdd.push(..._user.canManageFinancialReportingAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canManageFinancialReportingAttributes);\n            }\n            if (changeset.canViewInvoicingReports) {\n              entityAttributesToAdd.push(..._user.canViewInvoicingReportsAttributes);\n            } else {\n              entityAttributesToRemove.push(..._user.canViewInvoicingReportsAttributes);\n            }\n\n            // workers are set every time\n            workersToAdd.push(...changeset.workers);\n            yield Promise.all([this.handleEntityAttributes([...new Set(entityAttributesToAdd)], [...new Set(entityAttributesToRemove)]), this.handleWorkers([...new Set(workersToAdd)])]);\n            this.notifications.success(this.intl.t('shared.notification.Successfully saved permissions'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSavingThePermissions'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"sendPasswordResetEmail\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (changeset) {\n          try {\n            // this will have the effect of sending a password reset email\n            yield inviteUserAjax({\n              firstName: changeset.firstName,\n              lastName: changeset.lastName,\n              email: changeset.email,\n              entity: this.sessionData.entity.id\n            }, this.session.data.authenticated.access_token, this.newFeatureFlags.canUseBuildaPrice, this.newFeatureFlags.canUseFinancialReporting);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongSendingTheReminderEmail'),\n              error\n            });\n          }\n        }\n      }), null, \"sendPasswordResetEmail\", null));\n    }\n    get permissionsDescription() {\n      if (this.newFeatureFlags.includesFeatureFlags('canUseBuildaPrice')) {\n        return this.intl.t('shared.people-editor.userPermissionsExplanation');\n      }\n      if (this.newFeatureFlags.includesFeatureFlags('canUseFinancialReporting')) {\n        return this.intl.t('entity.settings.people.users.user.userPermissionsAreRulesThatSayWhatAUserCanAndCannotDoInTheSystem');\n      }\n      return false;\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.users`,\n        pageTitle: this.intl.t('common.Users')\n      }, {\n        route: `${this.model.basePath}.users`,\n        pageTitle: this.user.isNew ? this.intl.t('entity.settings.people.users.user.New user') : this.model.user.last.value.fullName\n      }];\n      return paths;\n    }\n    get isRunning() {\n      return this.model.user.isRunning || this.model.userChangeset.isRunning || this.model.permissionsChangeset.isRunning || this.model.workers.isRunning;\n    }\n    get permissionsChangeset() {\n      return this.model.permissionsChangeset.last.value;\n    }\n    get canViewReports() {\n      const reports = {\n        [this.intl.t('common.Budget')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports'],\n        [this.intl.t('common.Chargeup')]: ['canViewChargeupReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Costs')]: ['canViewCostFinancialReports', 'canViewBills', 'canViewTimesheets'],\n        [this.intl.t('shared.report.Forecast breakdown')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Labour hours')]: ['canViewBudgetLabourHourReports', 'canViewCostLabourHourReports', 'canViewProgressReports'],\n        [this.intl.t('common.Position')]: ['canViewBudgetFinancialReports', 'canViewBudgetLabourHourReports', 'canViewCostFinancialReports', 'canViewCostLabourHourReports', 'canViewProgressReports', 'canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Profit margins')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports'],\n        [this.intl.t('common.Quote')]: ['canViewQuoteReports', 'canViewChargeupReports'],\n        [this.intl.t('shared.report.Work in progress')]: ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'],\n        [this.intl.t('common.Invoicing')]: ['canViewInvoicingReports'],\n        [this.intl.t('common.Cost to complete')]: ['canViewQuoteReports', 'canViewProgressReports', 'canViewChargeupReports', 'canViewInvoicingReports'],\n        ['Access']: ['canViewAccessReports']\n      };\n      const allowedReports = Object.keys(reports).filter(key => reports[key].every(p => this.permissionsChangeset[p]));\n      if (!allowedReports.length) return '';\n      return allowedReports.join(', ');\n    }\n    get projectPermissionsCount() {\n      return [this.permissionsChangeset.canEstimate, this.permissionsChangeset.canManageBudgets, this.permissionsChangeset.canManageEstimateSettings, this.permissionsChangeset.canManageFileStorage, this.permissionsChangeset.canManageProducts, this.permissionsChangeset.canManageProgress, this.permissionsChangeset.canManageProjects, this.permissionsChangeset.canManageQuotes, this.permissionsChangeset.canManageTasks, this.permissionsChangeset.canViewBudgets, this.permissionsChangeset.canViewFileStorage, this.permissionsChangeset.canViewProducts, this.permissionsChangeset.canViewProgress, this.permissionsChangeset.canViewProjects, this.permissionsChangeset.canViewQuotes, this.permissionsChangeset.canViewTasks].filter(attribute => attribute).length;\n    }\n    get projectPermissionsVisible() {\n      if (this._projectPermissionsVisible != null) return this._projectPermissionsVisible;\n      return this.projectPermissionsCount > 0;\n    }\n    set projectPermissionsVisible(value) {\n      this._projectPermissionsVisible = value;\n    }\n    get schedulingPermissionsCount() {\n      return [this.permissionsChangeset.canViewSchedulingReports, this.permissionsChangeset.canManageSchedulingReports].filter(attribute => attribute).length;\n    }\n    get schedulingPermissionsVisible() {\n      if (this._schedulingPermissionsVisible != null) return this._schedulingPermissionsVisible;\n      return this.schedulingPermissionsCount > 0;\n    }\n    set schedulingPermissionsVisible(value) {\n      this._schedulingPermissionsVisible = value;\n    }\n    get allocationsPermissionsCount() {\n      const workerCount = this.model.workers.last.value.toArray().filter(w => this.model.user.last.value.includesClaimsAboutWorker(w.id, 'canManageTimesheets')).length;\n      const permissionCount = [this.permissionsChangeset.canManageBills, this.permissionsChangeset.canApproveBills, this.permissionsChangeset.canManageTimesheets, this.permissionsChangeset.canManageNotes, this.permissionsChangeset.canViewBills, this.permissionsChangeset.canViewTimesheets, this.permissionsChangeset.canViewNotes, this.permissionsChangeset.canViewInvoices, this.permissionsChangeset.canManageInvoices, this.permissionsChangeset.canApproveInvoices, this.permissionsChangeset.canViewPurchaseOrders, this.permissionsChangeset.canManagePurchaseOrders, this.permissionsChangeset.canApprovePurchaseOrders, this.permissionsChangeset.canViewStagePayments, this.permissionsChangeset.canManageStagePayments].filter(attribute => attribute).length;\n      return permissionCount + workerCount;\n    }\n    get allocationsPermissionsVisible() {\n      if (this._allocationsPermissionsVisible != null) return this._allocationsPermissionsVisible;\n      return this.allocationsPermissionsCount > 0;\n    }\n    set allocationsPermissionsVisible(value) {\n      this._allocationsPermissionsVisible = value;\n    }\n    get reportsPermissionsCount() {\n      return [this.permissionsChangeset.canUseReportBuilderReport, this.permissionsChangeset.canViewBudgetFinancialReports, this.permissionsChangeset.canViewBudgetLabourHourReports, this.permissionsChangeset.canViewChargeupReports, this.permissionsChangeset.canViewCostFinancialReports, this.permissionsChangeset.canViewCostLabourHourReports, this.permissionsChangeset.canViewPayrollReports, this.permissionsChangeset.canViewQuoteReports, this.permissionsChangeset.canViewProgressReports, this.permissionsChangeset.canViewInvoicingReports, this.permissionsChangeset.canViewAccessReports].filter(attribute => attribute).length;\n    }\n    get reportsPermissionsVisible() {\n      if (this._reportsPermissionsVisible != null) return this._reportsPermissionsVisible;\n      return this.reportsPermissionsCount > 0;\n    }\n    set reportsPermissionsVisible(value) {\n      this._reportsPermissionsVisible = value;\n    }\n    get settingsPermissionsCount() {\n      return [this.permissionsChangeset.canManageWorkers, this.permissionsChangeset.canViewWorkers, this.permissionsChangeset.canManageIntegrations, this.permissionsChangeset.canViewUsers, this.permissionsChangeset.canManageUsers].filter(attribute => attribute).length;\n    }\n    get settingsPermissionsVisible() {\n      if (this._settingsPermissionsVisible != null) return this._settingsPermissionsVisible;\n      return this.settingsPermissionsCount > 0;\n    }\n    set settingsPermissionsVisible(value) {\n      this._settingsPermissionsVisible = value;\n    }\n    get healthAndSafetyPermissionsCount() {\n      return [this.permissionsChangeset.canCreateHealthAndSafety, this.permissionsChangeset.canManageHealthAndSafety].filter(attribute => attribute).length;\n    }\n    get healthAndSafetyPermissionsVisible() {\n      if (this._healthAndSafetyPermissionsVisible != null) return this._healthAndSafetyPermissionsVisible;\n      return this.healthAndSafetyPermissionsCount > 0;\n    }\n    set healthAndSafetyPermissionsVisible(value) {\n      this._healthAndSafetyPermissionsVisible = value;\n    }\n    get financialReportingPermissionsCount() {\n      return [this.permissionsChangeset.canViewFinancialReporting, this.permissionsChangeset.canManageFinancialReporting].filter(attribute => attribute).length;\n    }\n    get financialReportingPermissionsVisible() {\n      if (this._financialReportingPermissionsVisible != null) return this._financialReportingPermissionsVisible;\n      return this.financialReportingPermissionsCount > 0;\n    }\n    set financialReportingPermissionsVisible(value) {\n      this._financialReportingPermissionsVisible = value;\n    }\n    get user() {\n      return this.model.user.last.value;\n    }\n    get userIsYou() {\n      return this.user === this.sessionData.user;\n    }\n    get canEditUser() {\n      return this.user.isNew || this.userIsYou;\n    }\n    get canManageUser() {\n      return this.userIsYou || this.newFeatureFlags.includesFeatureFlags(this.user, 'canManageUsers');\n    }\n    get canManageUserPermissions() {\n      return !this.userIsYou && this.newFeatureFlags.includesFeatureFlags('canManageUsers');\n    }\n    async handleEntityAttributes(entityAttributesToAdd, _entityAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const entityAttributesToRemove = _entityAttributesToRemove.filter(ar => !entityAttributesToAdd.includes(ar));\n      const existingEntityAttributes = await this.store.simpleQuery('user-entity-attribute', {\n        user: this.user.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n      await this.store.findAll('user-attribute');\n      // add and remove entity attribute from the user\n      await Promise.all([Promise.all(entityAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingEntityAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(entityAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingEntityAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('user-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('user-entity-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute\n        }).save();\n      }))]);\n    }\n    async handleWorkers(workersToAdd) {\n      const existingWorkerAttributes = await this.store.simpleQuery('user-worker-attribute', {\n        user: this.user.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n\n      // remove all the old worker attributes\n      await Promise.all(existingWorkerAttributes.map(pa => pa.destroyRecord()));\n      if (workersToAdd.length) {\n        // setup the new workers\n        const [canManageTimesheets, canManageNotes] = await Promise.all([this.store.findRecord('user-attribute', 'canManageTimesheets'), this.store.findRecord('user-attribute', 'canManageNotes')]);\n\n        // create the relationship\n        await Promise.all(workersToAdd.map(worker => Promise.all([this.store.createRecord('user-worker-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute: canManageTimesheets,\n          worker\n        }).save(), this.store.createRecord('user-worker-attribute', {\n          entity: this.sessionData.entity,\n          user: this.user,\n          attribute: canManageNotes,\n          worker\n        }).save()])));\n      }\n    }\n    loginAs(...args) {\n      this.sessionData.loginAs(...args);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"_projectPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"_schedulingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"_allocationsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"_reportsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"_settingsPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"_healthAndSafetyPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"_financialReportingPermissionsVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"loginAs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loginAs\"), _class2.prototype), _class2);\n  function inviteUserAjax(payload, token, canUseBuildaPrice, canUseFinancialReporting) {\n    // TODO it would be good if we could refactor this to be generic or do it server side\n    let url;\n    if (canUseBuildaPrice) url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/builda-price';else if (canUseFinancialReporting) url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/invite-user/financials';else throw new Error('No module available');\n    return new _rsvp.default.Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: url,\n        data: JSON.stringify(Object.assign(payload, {\n          callback: _environment.default.urls.app + '/reset-password',\n          appURL: _environment.default.urls.app\n        })),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _controller, _tracking, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('filteredWorkers', 'model.{basePath,workers.last.value}', 'searchString.length'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"disabledWorkersVisible\", _descriptor, this);\n      _initializerDefineProperty(this, \"searchString\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"session\", _descriptor6, this);\n      _defineProperty(this, \"queryParams\", ['filter']);\n      _defineProperty(this, \"copyAuthCode\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (worker) {\n          // we don't have a code to copy\n          if (!worker.authCode) return;\n          navigator.clipboard.writeText(worker.authCode);\n          // wait one second to show the \"copied\" pop up\n          yield new Promise(resolve => setTimeout(resolve, 750));\n        }\n      }), null, \"copyAuthCode\", null));\n    }\n    get isLoading() {\n      return this.model.workers.isRunning;\n    }\n    get filteredWorkers() {\n      const result = this.model.workers.last.value?.filter(worker => {\n        const matchString = `${worker.firstName}${worker.lastName}${worker.email}${worker.phoneNumber}`.toLowerCase();\n        return matchString.includes(this.searchString.replace(/\\s/g, '').toLowerCase());\n      }).sort((a, b) => a.sortIndex - b.sortIndex) || [];\n      return result;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"disabledWorkersVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"searchString\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"filteredWorkers\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"filteredWorkers\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"jquery\", \"portal/config/environment\", \"@ember/service\", \"portal/routes/entity/settings/people/workers/worker\", \"@ember/object\", \"ember-changeset\", \"@glimmer/tracking\", \"moment\", \"portal/utils/profit-margin\", \"portal/utils/get-default-language\"], function (_exports, _asyncArrowRuntime, _controller, _jquery, _environment, _service, _worker, _object, _emberChangeset, _tracking, _moment, _profitMargin, _getDefaultLanguage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"ember-concurrency\",0,\"jquery\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"portal/routes/entity/settings/people/workers/worker\",0,\"@ember/object\",0,\"ember-changeset\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"moment\",0,\"portal/utils/profit-margin\",0,\"portal/utils/get-default-language\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _object.computed)('intl', 'model.basePath', 'model.worker.last.value.{fullName,id}', 'worker.isNew'), _class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"session\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor5, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor6, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor7, this);\n      _initializerDefineProperty(this, \"store\", _descriptor8, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor9, this);\n      _initializerDefineProperty(this, \"backdateChargeOutRateChangeSet\", _descriptor0, this);\n      _initializerDefineProperty(this, \"backdateCostRateChangeSet\", _descriptor1, this);\n      _defineProperty(this, \"languages\", _getDefaultLanguage.languages);\n      _defineProperty(this, \"saveWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (workerChangeset) {\n          try {\n            yield workerChangeset.validate();\n            if (!workerChangeset.isValid) return;\n            const wasNew = Boolean(this.worker.isNew);\n            yield workerChangeset.save();\n\n            // let workers see everything by default\n            if (wasNew) yield this.handleEntityAttributes(_worker.workerAttributes, []);\n            if (wasNew) {\n              yield this.store.simpleQuery('worker', {\n                entity: this.sessionData.entity.id\n              });\n              this.router.transitionTo(`${this.model.basePath}.workers.worker`, this.worker.id);\n            }\n            this.notifications.success(this.intl.t('entity.settings.people.workers.worker.Successfully saved worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.Something went wrong saving the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"saveWorker\", null));\n      _defineProperty(this, \"savePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (permissionChangeset) {\n          try {\n            yield permissionChangeset.validate();\n            if (!permissionChangeset.isValid) return;\n\n            // if you can see all he projects\n            if (permissionChangeset.get('canSeeProjectsAndTasks')) yield this.handleEntityAttributes(_worker.workerAttributes, []);else yield this.handleEntityAttributes([], _worker.workerAttributes);\n            if (permissionChangeset.get('canCreateHealthAndSafety')) yield this.handleEntityAttributes(_worker.workerHealthAndSafetyAttributes, []);else yield this.handleEntityAttributes([], _worker.workerHealthAndSafetyAttributes);\n            this.notifications.success(this.intl.t('entity.settings.people.workers.worker.Successfully saved worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.Something went wrong saving the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"savePermissions\", null));\n      _defineProperty(this, \"deleteWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            const confirmMessage = this.canDeleteWorker ? this.intl.t('entity.settings.people.workers.worker.areYouSureYouWantToDeleteTheWorker') : this.intl.t('entity.settings.people.workers.worker.areYouSureYouWantToDisableTheWorker');\n            if (!confirm(confirmMessage)) return;\n            if (this.canDeleteWorker) {\n              yield this.worker.destroyRecord();\n            } else {\n              this.worker.isActive = false;\n              yield this.handleEntityAttributes([], [..._worker.workerAttributes, ..._worker.workerHealthAndSafetyAttributes]);\n              yield this.worker.save();\n            }\n            this.router.transitionTo(`${this.model.basePath}.workers`);\n            this.notifications.success(this.canDeleteWorker ? this.intl.t('entity.settings.people.workers.worker.Successfully deleted worker') : this.intl.t('entity.settings.people.workers.worker.Successfully disabled worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.canDeleteWorker ? this.intl.t('entity.settings.people.workers.worker.Something went wrong deleting the worker') : this.intl.t('entity.settings.people.workers.worker.somethingWentWrongDisablingTheWorker'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteWorker\", null));\n      _defineProperty(this, \"enableWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            this.worker.isActive = true;\n            yield this.handleEntityAttributes(_worker.workerAttributes, []);\n            yield this.worker.save();\n            this.notifications.success(this.intl.t('entity.settings.people.workers.worker.Successfully enabled worker'));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.Something went wrong enabling the worker'),\n              error\n            });\n          }\n        }\n      }), null, \"enableWorker\", null));\n      _defineProperty(this, \"validateChargeOutRateContent\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue ?? oldValue;\n        if (key === 'startDate' && this.backdateChargeOutRateChangeSet.endDate && value) {\n          if (Date.parse(value) > Date.parse(this.backdateChargeOutRateChangeSet.endDate)) {\n            return this.intl.t('validation.startDateShouldBeBeforeEndDate');\n          }\n        }\n        if (key === 'endDate' && this.backdateChargeOutRateChangeSet.startDate && value) {\n          if (Date.parse(value) < Date.parse(this.backdateChargeOutRateChangeSet.startDate)) {\n            return this.intl.t('validation.endDateShouldBeAfterStartDate');\n          }\n        }\n        if (key === 'chargeOutRate') {\n          return value >= 0 || this.intl.t('validation.chargeOutRate');\n        }\n        return true;\n      });\n      _defineProperty(this, \"validateCostRateContent\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue ?? oldValue;\n        if (key === 'startDate' && this.backdateCostRateChangeSet.endDate && value) {\n          if (Date.parse(value) > Date.parse(this.backdateCostRateChangeSet.endDate)) {\n            return this.intl.t('validation.startDateShouldBeBeforeEndDate');\n          }\n        }\n        if (key === 'endDate' && this.backdateCostRateChangeSet.startDate && value) {\n          if (Date.parse(value) < Date.parse(this.backdateCostRateChangeSet.startDate)) {\n            return this.intl.t('validation.endDateShouldBeAfterStartDate');\n          }\n        }\n        if (key === 'costRate') {\n          return value >= 0 || this.intl.t('validation.costRate');\n        }\n        return true;\n      });\n      _defineProperty(this, \"backdateChargeOutRateMap\", {\n        startDate: this.validateChargeOutRateContent,\n        endDate: this.validateChargeOutRateContent,\n        chargeOutRate: this.validateChargeOutRateContent\n      });\n      _defineProperty(this, \"backdateCostRateMap\", {\n        startDate: this.validateCostRateContent,\n        endDate: this.validateCostRateContent,\n        costRate: this.validateCostRateContent\n      });\n      _defineProperty(this, \"backdateChargeOutRate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.backdateChargeOutRateChangeSet.validate();\n            if (!this.backdateChargeOutRateChangeSet.isValid) return;\n            yield this.handleEntityAttributes(_worker.workerAttributes, []);\n\n            // perform the backdate\n            const result = yield this.portalApi.authPost('/backdate-charge-out-rates', {\n              entityId: this.sessionData.entity.id,\n              chargeOutRates: [{\n                workerId: this.worker.id,\n                chargeOutRate: this.backdateChargeOutRateChangeSet.get('chargeOutRate')\n              }],\n              startDate: this.backdateChargeOutRateChangeSet.startDate ? (0, _moment.default)(this.backdateChargeOutRateChangeSet.startDate).format('YYYY-MM-DD') : undefined,\n              endDate: this.backdateChargeOutRateChangeSet.endDate ? (0, _moment.default)(this.backdateChargeOutRateChangeSet.endDate).format('YYYY-MM-DD') : undefined\n            });\n            this.backdateChargeOutRateChangeSet = null;\n            this.notifications.success(this.intl.t('shared.people-editor.workers.worker.xTimesheetsBackdated', {\n              number: result.numberOfTimesheetsUpdated,\n              timesheet: result.numberOfTimesheetsUpdated === 1 ? 'timesheet' : 'timesheets'\n            }));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.people-editor.workers.worker.somethingWentWrongBackdatingTimesheets'),\n              error\n            });\n          }\n        }\n      }), null, \"backdateChargeOutRate\", null));\n      _defineProperty(this, \"backdateCostRate\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.backdateCostRateChangeSet.validate();\n            if (!this.backdateCostRateChangeSet.isValid) return;\n            yield this.handleEntityAttributes(_worker.workerAttributes, []);\n\n            // perform the backdate\n            const result = yield this.portalApi.authPost('/backdate-cost-rates', {\n              entityId: this.sessionData.entity.id,\n              costRates: [{\n                workerId: this.worker.id,\n                costRate: this.backdateCostRateChangeSet.get('costRate')\n              }],\n              startDate: this.backdateCostRateChangeSet.startDate ? (0, _moment.default)(this.backdateCostRateChangeSet.startDate).format('YYYY-MM-DD') : undefined,\n              endDate: this.backdateCostRateChangeSet.endDate ? (0, _moment.default)(this.backdateCostRateChangeSet.endDate).format('YYYY-MM-DD') : undefined\n            });\n            this.backdateCostRateChangeSet = null;\n            this.notifications.success(this.intl.t('shared.people-editor.workers.worker.xTimesheetsBackdated', {\n              number: result.numberOfTimesheetsUpdated,\n              timesheet: result.numberOfTimesheetsUpdated === 1 ? 'timesheet' : 'timesheets'\n            }));\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.people-editor.workers.worker.somethingWentWrongBackdatingTimesheets'),\n              error\n            });\n          }\n        }\n      }), null, \"backdateCostRate\", null));\n      _defineProperty(this, \"resetWorkerAuthCode\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield generateAuthCodeAjax({\n              workerId: this.worker.id\n            }, this.session.data.authenticated.access_token);\n            yield this.store.findRecord('worker', this.worker.id);\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.somethingWentWrongSettingWorkerLoginCode'),\n              error\n            });\n          }\n        }\n      }), null, \"resetWorkerAuthCode\", null));\n      _initializerDefineProperty(this, \"copiedAuthCode\", _descriptor10, this);\n      _defineProperty(this, \"reloadEmployees\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.accountingPlatform.getEmployees.perform(this.sessionData.entity);\n            yield this.model.accountingPlatformEmployees.perform();\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.somethingWentWrongReloadingXeroEmployees'),\n              error\n            });\n          }\n        }\n      }), null, \"reloadEmployees\", null));\n      _defineProperty(this, \"reloadEarningsRates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            yield this.accountingPlatform.getEarningRates.perform(this.sessionData.entity);\n            if (this.accountingPlatform.activePlatform === 'xero') {\n              yield this.model.xeroEarningsRates.perform();\n            }\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.people.workers.worker.somethingWentWrongReloadingXeroEarningsRates'),\n              error\n            });\n          }\n        }\n      }), null, \"reloadEarningsRates\", null));\n    }\n    get crumbStack() {\n      const paths = [{\n        route: `${this.model.basePath}.workers`,\n        pageTitle: this.intl.t('common.Workers')\n      }, {\n        route: `${this.model.basePath}.workers`,\n        pageTitle: this.worker.isNew ? this.intl.t('entity.settings.people.workers.worker.New worker') : this.model.worker.last.value.fullName\n      }];\n      return paths;\n    }\n    get canManageWorkers() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageWorkers');\n    }\n    get canUseWorkerType() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseWorkerType');\n    }\n    get canUsePayRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUsePayRate');\n    }\n    get canUseCostRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseCostRate');\n    }\n    get canUseWorkerCostCalculator() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseWorkerCostCalculator');\n    }\n    get canUseChargeOutRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseChargeOutRate');\n    }\n    get canUseBackdateChargeOutRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseBackdateChargeOutRate');\n    }\n    get canUseBackdateCostRate() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseBackdateCostRate');\n    }\n    get isRunning() {\n      return this.model.worker.isRunning || this.model.workersTimesheets.isRunning || this.model.workerChangeset.isRunning || this.model.labourCostCalculators.isRunning || this.model.profitMargin.isRunning;\n    }\n    get worker() {\n      return this.model.worker.last.value;\n    }\n    get workerTypes() {\n      return [{\n        label: 'Hourly worker',\n        value: false\n      }, {\n        label: 'Contractor',\n        value: true\n      }];\n    }\n    get canDeleteWorker() {\n      return this.model.workersTimesheets.last.value.length === 0;\n    }\n    get effectiveProfitMargin() {\n      const calculatedValue = (0, _profitMargin.calculatePercentage)(this.sessionData.entity.effectiveProfitMargin.labourPercentage.type, this.model.workerChangeset.last.value.costRate, this.model.workerChangeset.last.value.chargeOutRate);\n      return calculatedValue;\n    }\n    setDefaultChargeOutRate() {\n      if (!this.model.workerChangeset.last.value.chargeOutRate && this.model.workerChangeset.last.value.costRate) this.setDefaultEffectiveMargin();\n    }\n    setDefaultEffectiveMargin() {\n      const costRate = Number(this.model.workerChangeset.last.value.costRate);\n      const calculatedValue = (0, _profitMargin.calculateValue)(this.sessionData.entity.effectiveProfitMargin.labourPercentage.type, Number.isFinite(costRate) && costRate > 0 ? costRate : 0, this.sessionData.entity.effectiveProfitMargin.labourPercentage.value);\n      this.model.workerChangeset.last.value.set('chargeOutRate', calculatedValue);\n    }\n    initBackdateChargeOutRateChangeset() {\n      this.backdateChargeOutRateChangeSet = (0, _emberChangeset.Changeset)({\n        startDate: null,\n        endDate: new Date(),\n        chargeOutRate: this.model.workerChangeset.last.value.chargeOutRate\n      }, this.validateChargeOutRateContent, this.backdateChargeOutRateMap);\n    }\n    initBackdateCostRateChangeset() {\n      this.backdateCostRateChangeSet = (0, _emberChangeset.Changeset)({\n        startDate: null,\n        endDate: new Date(),\n        costRate: this.model.workerChangeset.last.value.costRate\n      }, this.validateCostRateContent, this.backdateCostRateMap);\n    }\n    copyAuthCode() {\n      if (!this.worker.authCode) return;\n      navigator.clipboard.writeText(this.worker.authCode);\n      this.copiedAuthCode = true;\n      setTimeout(() => this.copiedAuthCode = false, 1500);\n    }\n    async handleEntityAttributes(entityAttributesToAdd, _entityAttributesToRemove) {\n      // don't bother removing attributes we're going to add later\n      const entityAttributesToRemove = _entityAttributesToRemove.filter(ar => !entityAttributesToAdd.includes(ar));\n      const existingEntityAttributes = await this.store.simpleQuery('worker-entity-attribute', {\n        worker: this.worker.id,\n        entity: this.sessionData.entity.id\n      }).then(r => r.toArray());\n      await this.store.findAll('worker-attribute');\n      // add and remove entity attribute from the worker\n      await Promise.all([Promise.all(entityAttributesToRemove.map(async ea => {\n        const matchingExistingAttributes = existingEntityAttributes.filter(a => a.belongsTo('attribute').id() === ea);\n\n        // only remove the attribute if it exists\n        // this can be a singular check once the db constraints are fixed\n        if (matchingExistingAttributes.length) await Promise.all(matchingExistingAttributes.map(a => a.destroyRecord()));\n      })), Promise.all(entityAttributesToAdd.map(async ea => {\n        // don't add if it's already there\n        if (existingEntityAttributes.some(a => a.belongsTo('attribute').id() === ea)) return;\n\n        // fetch and check attribute is valid\n        const attribute = await this.store.peekRecord('worker-attribute', ea);\n        if (!attribute) throw new Error('Tried to create a non-existent attribute');\n\n        // create the relationship\n        await this.store.createRecord('worker-entity-attribute', {\n          entity: this.sessionData.entity,\n          worker: this.worker,\n          attribute\n        }).save();\n      }))]);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"backdateChargeOutRateChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"backdateCostRateChangeSet\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"crumbStack\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"crumbStack\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDefaultChargeOutRate\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDefaultChargeOutRate\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setDefaultEffectiveMargin\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setDefaultEffectiveMargin\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"initBackdateChargeOutRateChangeset\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initBackdateChargeOutRateChangeset\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"initBackdateCostRateChangeset\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initBackdateCostRateChangeset\"), _class2.prototype), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"copiedAuthCode\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"copyAuthCode\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"copyAuthCode\"), _class2.prototype), _class2);\n  function generateAuthCodeAjax(payload, token) {\n    return new Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        contentType: 'application/json',\n        method: 'POST',\n        url: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/generate-worker-code',\n        data: JSON.stringify(payload),\n        headers: {\n          Authorization: 'Bearer ' + token\n        }\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/controllers/entity/settings/profile\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"portal/utils/email-validator\", \"moment\", \"portal/utils/get-default-language\"], function (_exports, _asyncArrowRuntime, _controller, _service, _object, _tracking, _emailValidator, _moment, _getDefaultLanguage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"portal/utils/email-validator\",0,\"moment\",0,\"portal/utils/get-default-language\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"notifications\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"session\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor6, this);\n      _initializerDefineProperty(this, \"store\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor8, this);\n      _initializerDefineProperty(this, \"passwordModalVisible\", _descriptor9, this);\n      _initializerDefineProperty(this, \"termsOfServiceModalVisible\", _descriptor0, this);\n      _initializerDefineProperty(this, \"oldPassword\", _descriptor1, this);\n      _initializerDefineProperty(this, \"newPassword\", _descriptor10, this);\n      _initializerDefineProperty(this, \"confirmPassword\", _descriptor11, this);\n      _initializerDefineProperty(this, \"userCanManageHealthAndSafety\", _descriptor12, this);\n      _defineProperty(this, \"languages\", _getDefaultLanguage.languages);\n      _defineProperty(this, \"userValidationMap\", {\n        firstName: this.validateUserContent.bind(this),\n        lastName: this.validateUserContent.bind(this),\n        email: this.validateUserContent.bind(this),\n        language: (_key, val) => Boolean(val) || 'Please provide a valid language'\n      });\n      _defineProperty(this, \"saveUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user) {\n          yield user.validate();\n          if (user.isInvalid) return;\n          try {\n            // Applies the valid changes to the underlying Object.\n            user.execute();\n            yield user.save();\n            const hasHAndS = this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin', 'entityCanUseHealthAndSafety');\n            if (hasHAndS) yield this.addOrRemoveHAndSPerm(this.userCanManageHealthAndSafety);\n            this.notifications.success(this.intl.t('entity.settings.profile.User details saved successfully'));\n            this.intl.setLocale([user.language]);\n            _moment.default.locale(user.language.toLowerCase());\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('entity.settings.profile.somethingWentWrongWhileUpdatingDetails'),\n              error\n            });\n          }\n        }\n      }), null, \"saveUser\", null));\n      _defineProperty(this, \"deleteUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          try {\n            if (!confirm(this.intl.t('shared.notification.areYouSureYouWantToRemoveYourselfFromThisCompany'))) return;\n\n            // fetch the user attributes again so we have all the attributes\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: this.user.id,\n              entity: this.sessionData.entity.id\n            })]);\n\n            // destroy all the attributes for this entity\n            const destroyAttribute = attribute => {\n              // only destroy attributes for this entity\n              if (attribute.belongsTo('entity').value() === this.sessionData.entity) return attribute.destroyRecord();\n            };\n            yield Promise.all([Promise.all((this.user.hasMany('entityAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('projectAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('taskAttributes').value() || []).map(destroyAttribute)), Promise.all((this.user.hasMany('workerAttributes').value() || []).map(destroyAttribute))]);\n            this.router.transitionTo('index');\n          } catch (error) {\n            this.notifications.error({\n              message: this.intl.t('shared.notification.somethingWentWrongRemovingYouFromTheCompany'),\n              error\n            });\n          }\n        }\n      }), null, \"deleteUser\", null));\n      _defineProperty(this, \"changePassword\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const currentPassword = this.oldPassword;\n          const password = this.newPassword;\n          const confirmPassword = this.confirmPassword;\n          if (password !== confirmPassword) {\n            this.notifications.warning(this.intl.t('entity.settings.profile.Passwords do not match'));\n            return;\n          }\n          try {\n            const payload = {\n              data: {\n                id: this.sessionData.user.id,\n                type: 'users',\n                attributes: {\n                  password\n                }\n              },\n              meta: {\n                currentPassword\n              }\n            };\n            yield this.buildaPrice.changePassword(payload);\n            this.notifications.success(this.intl.t('entity.settings.profile.Password changed successfully'));\n            yield this.closePasswordModal.perform();\n          } catch (error) {\n            const message = error?.responseJSON?.errors?.[0]?.title;\n            if (error.status === 400 && message) {\n              this.notifications.error({\n                message,\n                error\n              });\n              return;\n            }\n            this.notifications.error({\n              message: this.intl.t('entity.settings.profile.somethingWentWrongWhileHangingPassword'),\n              error\n            });\n            this.passwordModalVisible = false;\n          }\n        }\n      }), null, \"changePassword\", null));\n      _defineProperty(this, \"closePasswordModal\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          this.passwordModalVisible = false;\n          this.oldPassword = null;\n          this.newPassword = null;\n          this.confirmPassword = null;\n        }\n      }), null, \"closePasswordModal\", null));\n    }\n    get isLoading() {\n      return this.model.user.isRunning || this.model.terms.isRunning;\n    }\n    get user() {\n      return this.sessionData.user;\n    }\n    initUserCanManageHealthAndSafety() {\n      this.userCanManageHealthAndSafety = this.model.user.lastSuccessful.value?.includesClaimsAboutEntity(this.sessionData.entity.id, 'canManageHealthAndSafety', 'canCreateHealthAndSafety');\n    }\n    validateUserContent(key, newVal, oldVal, _changes, _content) {\n      const value = (newVal ?? oldVal) || '';\n      if (key === 'firstName') {\n        return value.length > 1 || this.intl.t('validation.firstName');\n      }\n      if (key === 'lastName') {\n        return value.length > 0 || this.intl.t('validation.lastName');\n      }\n      if (key === 'email' && newVal) {\n        return (0, _emailValidator.default)(newVal) || this.intl.t('validation.Email');\n      }\n    }\n    async addOrRemoveHAndSPerm(userCanManageHealthAndSafety) {\n      const [[canCreateHealthAndSafety, canManageHealthAndSafety], existingEntityAttributes] = await Promise.all([this.store.query('user-attribute', {\n        filter: {\n          and: [{\n            field: '_id',\n            op: 'IN',\n            value: ['canManageHealthAndSafety', 'canCreateHealthAndSafety']\n          }]\n        },\n        sort: 'attribute'\n      }).then(r => r.toArray()), this.store.query('user-entity-attribute', {\n        filter: {\n          and: [{\n            field: 'user',\n            op: 'EQ',\n            value: this.model.user.lastSuccessful.value.id\n          }, {\n            field: 'entity',\n            op: 'EQ',\n            value: this.sessionData.entity.id\n          }, {\n            field: 'attribute',\n            op: 'IN',\n            value: ['canManageHealthAndSafety', 'canCreateHealthAndSafety']\n          }]\n        }\n      }).then(r => r.toArray())]);\n      if (userCanManageHealthAndSafety) {\n        // add the perms only if they do not already exist\n        const hasManage = existingEntityAttributes.some(attr => attr.belongsTo('attribute').id() === 'canManageHealthAndSafety');\n        const hasCreate = existingEntityAttributes.some(attr => attr.belongsTo('attribute').id() === 'canCreateHealthAndSafety');\n        if (!hasManage) {\n          await this.store.createRecord('user-entity-attribute', {\n            entity: this.sessionData.entity,\n            user: this.model.user.lastSuccessful.value,\n            attribute: canManageHealthAndSafety\n          }).save();\n        }\n        if (!hasCreate) {\n          await this.store.createRecord('user-entity-attribute', {\n            entity: this.sessionData.entity,\n            user: this.model.user.lastSuccessful.value,\n            attribute: canCreateHealthAndSafety\n          }).save();\n        }\n      } else {\n        // remove the perms\n        await Promise.all(existingEntityAttributes.map(attr => attr.destroyRecord()));\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"passwordModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"termsOfServiceModalVisible\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"oldPassword\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"newPassword\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"confirmPassword\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"userCanManageHealthAndSafety\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"initUserCanManageHealthAndSafety\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"initUserCanManageHealthAndSafety\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/entity/settings/suppliers\", [\"exports\", \"@ember/controller\"], function (_exports, _controller) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n  class _default extends _controller.default {}\n  _exports.default = _default;\n});","define(\"portal/controllers/initiate-password-reset\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"jquery\", \"portal/config/environment\", \"portal/utils/email-validator\"], function (_exports, _controller, _service, _object, _jquery, _environment, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"jquery\",0,\"portal/config/environment\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    queryParams: ['email'],\n    actions: {\n      resetPassword() {\n        const email = (0, _object.get)(this, 'email');\n        if (!email) {\n          (0, _object.get)(this, 'notifications').warning('Please enter an email address.');\n          return;\n        }\n        if (!(0, _emailValidator.default)(email)) {\n          (0, _object.get)(this, 'notifications').warning('Please enter a valid email address.');\n          return;\n        }\n        const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth/initiate-password-reset';\n        const callback = _environment.default.urls.app + '/reset-password';\n        const payload = {\n          callback,\n          email: email.toLowerCase()\n        };\n        const headers = {\n          Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n        };\n        (0, _object.set)(this, 'isResettingPassword', true);\n        return _jquery.default.ajax({\n          contentType: 'application/json',\n          method: 'POST',\n          url,\n          data: JSON.stringify(payload),\n          headers\n        }).then(() => {\n          (0, _object.set)(this, 'isResettingPassword', false);\n          (0, _object.get)(this, 'notifications').success(`Please check your inbox for a password reset link (If you do not receive the password reset email check your spam folder).`, 6000);\n        }, reason => {\n          (0, _object.set)(this, 'isResettingPassword', false);\n          if (reason.status === 400) {\n            (0, _object.get)(this, 'notifications').error(reason.responseJSON.errors[0].title);\n          } else if (reason.status === 500) {\n            (0, _object.get)(this, 'notifications').error('Sorry, a password reset email could not be sent. Please contact support or try again later.');\n          } else {\n            this.send('error', reason);\n          }\n        });\n      }\n    }\n  });\n});","define(\"portal/controllers/no-access\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _controller, _object, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _controller.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"orgSelectorOpen\", _descriptor3, this);\n    }\n    signOut() {\n      this.session.invalidate();\n    }\n    changeEntity({\n      id\n    }) {\n      this.sessionData.changeEntity(id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"orgSelectorOpen\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"signOut\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"signOut\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"changeEntity\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"changeEntity\"), _class2.prototype), _class2);\n});","define(\"portal/controllers/reset-password\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"@ember/runloop\", \"jquery\", \"portal/config/environment\"], function (_exports, _controller, _service, _object, _runloop, _jquery, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"jquery\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    queryParams: ['token', 'email'],\n    tokenExpired: false,\n    actions: {\n      resetPasswordForm() {\n        const token = (0, _object.get)(this, 'token');\n        const password = (0, _object.get)(this, 'newPassword');\n        const passwordConfirmation = (0, _object.get)(this, 'confirmPassword');\n        const notifications = (0, _object.get)(this, 'notifications');\n        notifications.clearAll();\n        if (!token) {\n          notifications.error('Password could not be reset. Please click on the link in the email and try again.');\n          return;\n        }\n        if (!password) {\n          notifications.warning('Please enter a new password.');\n          return;\n        }\n        if (password !== passwordConfirmation) {\n          notifications.warning('Passwords do not match.');\n          return;\n        }\n        const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/auth/reset-password';\n        const payload = {\n          password,\n          token\n        };\n        (0, _object.set)(this, 'isResettingPassword', true);\n        return _jquery.default.ajax({\n          contentType: 'application/json',\n          method: 'PATCH',\n          url,\n          data: JSON.stringify(payload)\n        }).then(data => {\n          (0, _runloop.run)(() => {\n            (0, _object.set)(this, 'isResettingPassword', false);\n            notifications.success('Your password has been reset.');\n            (0, _object.get)(this, 'session.session').authenticate('authenticator:push-session', data);\n            this.router.transitionTo('index');\n          });\n        }, reason => {\n          (0, _runloop.run)(() => {\n            (0, _object.set)(this, 'isResettingPassword', false);\n            if (reason.status === 400) {\n              notifications.error(reason.responseJSON.errors[0].title);\n              (0, _object.set)(this, 'tokenExpired', true);\n            } else {\n              this.send('error', reason);\n            }\n          });\n        });\n      },\n      handleRequestPasswordReset() {\n        (0, _object.set)(this, 'tokenExpired', false);\n        this.router.transitionTo('initiate-password-reset', {\n          queryParams: {\n            email: (0, _object.get)(this, 'email').toLowerCase() || ''\n          }\n        });\n      }\n    }\n  });\n});","define(\"portal/controllers/terms-of-service\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _controller.default.extend({\n    notifications: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    actions: {\n      continue() {\n        const notifications = (0, _object.get)(this, 'notifications');\n        const user = (0, _object.get)(this, 'model.user');\n        const terms = (0, _object.get)(user, 'hasAcceptedTerms');\n        notifications.clearAll();\n        if (!terms) {\n          notifications.error('You must agree to the terms and conditions before using the Portal.');\n          return;\n        }\n        (0, _object.set)(this, 'isSubmitting', true);\n        user.save().then(() => this.router.transitionTo('index'), err => this.send('error', err)).finally(() => (0, _object.set)(this, 'isSubmitting', false));\n      }\n    }\n  });\n});","define(\"portal/data-adapter\", [\"exports\", \"@ember-data/debug/data-adapter\"], function (_exports, _dataAdapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _dataAdapter.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/debug/data-adapter\"eaimeta@70e063a35619d71f\n});","define(\"portal/formats\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    time: {\n      hhmmss: {\n        hour: 'numeric',\n        minute: 'numeric',\n        second: 'numeric'\n      }\n    },\n    date: {\n      hhmmss: {\n        hour: 'numeric',\n        minute: 'numeric',\n        second: 'numeric'\n      }\n    },\n    number: {\n      compact: {\n        notation: 'compact'\n      },\n      EUR: {\n        style: 'currency',\n        currency: 'EUR'\n      },\n      USD: {\n        style: 'currency',\n        currency: 'USD'\n      },\n      NZD: {\n        style: 'currency',\n        currency: 'NZD'\n      },\n      CNY: {\n        style: 'currency',\n        currency: 'CNY'\n      },\n      AUD: {\n        style: 'currency',\n        currency: 'AUD'\n      },\n      GBP: {\n        style: 'currency',\n        currency: 'GBP'\n      }\n    }\n  };\n});","define(\"portal/helpers/-base\", [\"exports\", \"ember-moment/helpers/-base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _base.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/-base\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/and\", [\"exports\", \"ember-truth-helpers/helpers/and\"], function (_exports, _and) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _and.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/and\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/app-version\", [\"exports\", \"@ember/component/helper\", \"portal/config/environment\", \"ember-cli-app-version/utils/regexp\"], function (_exports, _helper, _environment, _regexp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.appVersion = appVersion;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"portal/config/environment\",0,\"ember-cli-app-version/utils/regexp\"eaimeta@70e063a35619d71f\n  function appVersion(_, hash = {}) {\n    const version = _environment.default.APP.version;\n    // e.g. 1.0.0-alpha.1+4jds75hf\n\n    // Allow use of 'hideSha' and 'hideVersion' For backwards compatibility\n    let versionOnly = hash.versionOnly || hash.hideSha;\n    let shaOnly = hash.shaOnly || hash.hideVersion;\n    let match = null;\n    if (versionOnly) {\n      if (hash.showExtended) {\n        match = version.match(_regexp.versionExtendedRegExp); // 1.0.0-alpha.1\n      }\n      // Fallback to just version\n      if (!match) {\n        match = version.match(_regexp.versionRegExp); // 1.0.0\n      }\n    }\n    if (shaOnly) {\n      match = version.match(_regexp.shaRegExp); // 4jds75hf\n    }\n    return match ? match[0] : version;\n  }\n  var _default = _exports.default = (0, _helper.helper)(appVersion);\n});","define(\"portal/helpers/assign\", [\"exports\", \"ember-assign-helper/helpers/assign\"], function (_exports, _assign) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _assign.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-assign-helper/helpers/assign\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/bool\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function bool([param]) {\n    return !!param;\n  });\n});","define(\"portal/helpers/camel-case-words\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.camelCaseWords = camelCaseWords;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function camelCaseWords([words]) {\n    return words.split(' ').map(word => {\n      return word[0].toUpperCase() + word.slice(1);\n    }).join(' ');\n  }\n  var _default = _exports.default = (0, _helper.helper)(camelCaseWords);\n});","define(\"portal/helpers/camelize\", [\"exports\", \"ember-cli-string-helpers/helpers/camelize\"], function (_exports, _camelize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"camelize\", {\n    enumerable: true,\n    get: function () {\n      return _camelize.camelize;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _camelize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/camelize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/cancel-all\", [\"exports\", \"ember-concurrency/helpers/cancel-all\"], function (_exports, _cancelAll) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _cancelAll.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/helpers/cancel-all\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/capitalize\", [\"exports\", \"ember-cli-string-helpers/helpers/capitalize\"], function (_exports, _capitalize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"capitalize\", {\n    enumerable: true,\n    get: function () {\n      return _capitalize.capitalize;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _capitalize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/capitalize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/changeset-get\", [\"exports\", \"ember-changeset/helpers/changeset-get\"], function (_exports, _changesetGet) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _changesetGet.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset/helpers/changeset-get\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/changeset-set\", [\"exports\", \"ember-changeset/helpers/changeset-set\"], function (_exports, _changesetSet) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"changesetSet\", {\n    enumerable: true,\n    get: function () {\n      return _changesetSet.changesetSet;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _changesetSet.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset/helpers/changeset-set\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/changeset\", [\"exports\", \"ember-changeset/helpers/changeset\"], function (_exports, _changeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"changeset\", {\n    enumerable: true,\n    get: function () {\n      return _changeset.changeset;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _changeset.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset/helpers/changeset\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/chunk-callback\", [\"exports\", \"lodash\", \"portal/config/environment\", \"portal/utils/collection-to-array\"], function (_exports, _lodash, _environment, _collectionToArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = chunkCallback;\n  0; //eaimeta@70e063a35619d71f0,\"lodash\",0,\"portal/config/environment\",0,\"portal/utils/collection-to-array\"eaimeta@70e063a35619d71f\n  /**\n   * In Node 11+ a default request size limit of 81920 bytes was introduced.\n   * In requests with large arrays, you can easily exceed the limit.\n   * This function is intended to keep request size bellow this limit, by creating multiple requests.\n   * @param {array} list - the array of items to be chunked\n   * @param {number} chunkSize - the chunk size\n   * @param {function} callback - the callback to be run on each chunk\n   * @returns {promise}\n   */\n  function chunkCallback(list = [], chunkSize = _environment.default.chunkCallbackSize, callback = () => null) {\n    const chunks = _lodash.default.chunk(list, chunkSize);\n    return Promise.all(chunks.map(callback)).then(results => results.reduce((arr, item) => [...arr, ...(0, _collectionToArray.default)(item)], []));\n  }\n});","define(\"portal/helpers/classify\", [\"exports\", \"ember-cli-string-helpers/helpers/classify\"], function (_exports, _classify) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"classify\", {\n    enumerable: true,\n    get: function () {\n      return _classify.classify;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _classify.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/classify\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/convert-to-title-case\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.convertToTitleCase = convertToTitleCase;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function convertToTitleCase([str]) {\n    return str?.replace(/\\w\\S*/g, txt => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase());\n  }\n  var _default = _exports.default = (0, _helper.helper)(convertToTitleCase);\n});","define(\"portal/helpers/dasherize\", [\"exports\", \"ember-cli-string-helpers/helpers/dasherize\"], function (_exports, _dasherize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"dasherize\", {\n    enumerable: true,\n    get: function () {\n      return _dasherize.dasherize;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _dasherize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/dasherize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/date-ago\", [\"exports\", \"@ember/component/helper\", \"moment\"], function (_exports, _helper, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.dateAgo = dateAgo;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"moment\"eaimeta@70e063a35619d71f\n  function dateAgo(params) {\n    const thatMoment = params[0];\n    return (0, _moment.default)(thatMoment).fromNow();\n  }\n  var _default = _exports.default = _helper.default.helper(dateAgo);\n});","define(\"portal/helpers/element\", [\"exports\", \"ember-element-helper/helpers/element\"], function (_exports, _element) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _element.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-element-helper/helpers/element\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ellipsis-characters\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.ellipsisTextCharacters = ellipsisTextCharacters;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function ellipsisTextCharacters(params) {\n    const [text = '', maxCharacters = 100] = params;\n    let truncatedText = text.substr(0, maxCharacters);\n    if (truncatedText.length !== text.length) truncatedText += '…';\n    return truncatedText;\n  }\n  var _default = _exports.default = (0, _helper.helper)(ellipsisTextCharacters);\n});","define(\"portal/helpers/ellipsis-words\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.ellipsisTextWords = ellipsisTextWords;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function ellipsisTextWords(params) {\n    const [text = '', maxWords = 30] = params;\n    const words = text.split(' ');\n    const truncatedWords = words.slice(0, maxWords);\n    let truncatedString = truncatedWords.join(' ');\n    if (truncatedWords.length !== words.length) truncatedString += '…';\n    return truncatedString;\n  }\n  var _default = _exports.default = (0, _helper.helper)(ellipsisTextWords);\n});","define(\"portal/helpers/ember-power-calendar-day-classes\", [\"exports\", \"ember-power-calendar/helpers/ember-power-calendar-day-classes\"], function (_exports, _emberPowerCalendarDayClasses) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerCalendarDayClasses.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/helpers/ember-power-calendar-day-classes\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ember-power-select-is-equal\", [\"exports\", \"ember-power-select/helpers/ember-power-select-is-equal\"], function (_exports, _emberPowerSelectIsEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsEqual.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/helpers/ember-power-select-is-equal\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ember-power-select-is-group\", [\"exports\", \"ember-power-select/helpers/ember-power-select-is-group\"], function (_exports, _emberPowerSelectIsGroup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsGroup.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/helpers/ember-power-select-is-group\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ember-power-select-is-selected-present\", [\"exports\", \"ember-power-select/helpers/ember-power-select-is-selected-present\"], function (_exports, _emberPowerSelectIsSelectedPresent) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberPowerSelectIsSelectedPresent.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-select/helpers/ember-power-select-is-selected-present\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ensure-safe-component\", [\"exports\", \"@embroider/util\"], function (_exports, _util) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _util.EnsureSafeComponentHelper;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@embroider/util\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/eq\", [\"exports\", \"ember-truth-helpers/helpers/eq\"], function (_exports, _eq) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _eq.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/eq\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/excludes-feature-flags\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    compute(params) {\n      return this.newFeatureFlags.excludesFeatureFlags(...params);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/excludes-some-feature-flags\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    compute(params) {\n      return this.newFeatureFlags.excludesSomeFeatureFlags(...params);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/file-size-to-string\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.fileSizeToString = fileSizeToString;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function fileSizeToString(params) {\n    let bytes = params[0];\n    let si = params[1] || false;\n    let dp = params[2] || 1;\n    const thresh = si ? 1000 : 1024;\n    if (Math.abs(bytes) < thresh) {\n      return bytes + ' B';\n    }\n    const units = si ? ['KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'] : ['KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'];\n    let u = -1;\n    const r = 10 ** dp;\n    do {\n      bytes /= thresh;\n      ++u;\n    } while (Math.round(Math.abs(bytes) * r) / r >= thresh && u < units.length - 1);\n    return bytes.toFixed(dp) + ' ' + units[u];\n  }\n  var _default = _exports.default = _helper.default.helper(fileSizeToString);\n});","define(\"portal/helpers/format-date\", [\"exports\", \"ember-intl/helpers/format-date\"], function (_exports, _formatDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatDate.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-date\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/format-duration\", [\"exports\", \"@ember/component/helper\", \"portal/utils/duration-input\"], function (_exports, _helper, _durationInput) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"portal/utils/duration-input\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(_durationInput.formatDuration);\n});","define(\"portal/helpers/format-message\", [\"exports\", \"ember-intl/helpers/format-message\"], function (_exports, _formatMessage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatMessage.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-message\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/format-number\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.formatNumber = formatNumber;\n  _exports.parseNumber = parseNumber;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  const MINUS_SIGN = '\\u2212\\u2009';\n  const DASH = '\\u2013';\n  const MIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER || -9007199254740991;\n  const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;\n  function formatNumber(params, options) {\n    options = options || {};\n    var [formatAs, number, rawNumber] = standardizeInput(params);\n\n    // Defaults\n\n    // NaN\n    if (isNaN(number)) {\n      return finalize('', formatAs, number, rawNumber, options);\n    }\n\n    // Too large or small\n    if (number < MIN_SAFE_INTEGER || number > MAX_SAFE_INTEGER) {\n      return finalize('#', formatAs, number, rawNumber, options);\n    }\n    if (options.abs) {\n      number = Math.abs(number);\n    }\n\n    // Convert sigfigs option to a places option\n    const places = calcPlaces(number, formatAs, options);\n\n    // First round the number\n    const rounded = round(number, places);\n\n    // Dash zero (after rounding)\n    if (options.dashZero !== false && Number(rounded) === 0) {\n      return finalize(DASH, formatAs, rounded, rawNumber, options);\n    }\n\n    // Add zeros to meet decimal places requirement\n    const padded = pad(rounded, places);\n\n    // Add commas\n    const commaed = addCommas(padded);\n\n    // Nice minus sign and slight space\n    const formatted = formatNegativeSign(commaed);\n    return finalize(formatted, formatAs, rounded, rawNumber, options);\n  }\n  function finalize(formatted, formatAs, number, rawNumber, options) {\n    if (typeof formatted === 'string' && formatted.match(/\\d/) !== null) {\n      formatted = applyDecoration(formatted, formatAs, options.currencySymbol);\n    }\n    if (!options.flags) {\n      return formatted;\n    }\n    if (formatAs === 'percentage') {\n      number /= 100;\n    }\n    const res = {\n      formatted,\n      raw: rawNumber,\n      parsedInput: number,\n      isNaN: typeof formatted !== 'string' || formatted.match(/\\d/) === null,\n      isZero: rawNumber === 0,\n      roundsToZero: number === 0,\n      isNegative: !isNaN(number) && number < 0\n    };\n    return res;\n  }\n  function standardizeInput(input) {\n    let formatAs, value;\n    if (!Array.isArray(input) || input.length === 1) {\n      value = Array.isArray(input) ? input[0] : input;\n      formatAs = 'number';\n    } else {\n      [formatAs, value] = input;\n    }\n    formatAs = typeof formatAs === 'string' ? formatAs.toLowerCase() : 'number';\n    const rawValue = value;\n    if (typeof value !== 'string') {\n      value = value == null || typeof value === 'boolean' ? NaN : Number(value);\n    } else if (value === '-' || value === DASH) {\n      value = 0;\n    } else {\n      value = parseFloat(value.replace(MINUS_SIGN, '-').replace(/[^\\d.-]*/g, ''));\n    }\n    if (formatAs === 'percentage' && !isNaN(value)) {\n      value *= 100;\n    }\n    return [formatAs, value, rawValue];\n  }\n  function calcPlaces(number, formatAs, options) {\n    if (typeof options.places === 'number' && formatAs !== 'integer') {\n      return options.places;\n    }\n    if (typeof options.sigfigs === 'number') {\n      return options.sigfigs - Math.abs(Math.floor(number)).toString().length;\n    }\n    if (formatAs === 'integer') {\n      return 0;\n    }\n    return 2;\n  }\n  function round(number, places) {\n    const factor = Math.pow(10, places);\n    return Math.round(number * factor) / factor;\n  }\n  function pad(number, places) {\n    // Convert to string\n    let string = number.toString();\n    if (places > 0) {\n      // Add a decimal point, if one doesn't already exist\n      if (string.indexOf('.') === -1) {\n        string += '.';\n      }\n\n      // Find the decimal point\n      const pointIndex = string.indexOf('.');\n\n      // Keep adding zeros until we reach the end\n      while (string.length <= pointIndex + places) {\n        string += '0';\n      }\n    }\n    return string;\n  }\n  function addCommas(string) {\n    var chars = string.split('');\n    var pointIndex = chars.indexOf('.');\n    var left = [];\n    var right = [];\n    if (pointIndex === -1) {\n      left = chars.reverse();\n    } else {\n      left = chars.slice(0, pointIndex).reverse();\n      right = chars.slice(pointIndex + 1);\n    }\n    string = '';\n\n    // Left of decimal point\n    for (let i = 0, len = left.length; i < len; i++) {\n      if (i >= 3 && i % 3 === 0 && left[i] !== '-') {\n        string = ',' + string;\n      }\n      string = left[i] + string;\n    }\n    if (right.length) {\n      string = string + '.';\n\n      // Right of decimal point\n      for (let j = 0, len = right.length; j < len; j++) {\n        if (j >= 3 && j % 3 === 0) {\n          string = string + ',';\n        }\n        string = string + right[j];\n      }\n    }\n    return string;\n  }\n  function formatNegativeSign(string) {\n    if (string[0] === '-') {\n      string = MINUS_SIGN + string.substr(1);\n    }\n    return string;\n  }\n  function applyDecoration(string, formatAs, currencySymbol = '$') {\n    if (!string) {\n      return '';\n    }\n    switch (formatAs) {\n      case 'percentage':\n        return string + '%';\n      case 'currency':\n        return addCurrencySymbol(string, currencySymbol);\n      case 'number':\n      case 'integer':\n      default:\n        return string;\n    }\n  }\n  function addCurrencySymbol(string, symbol) {\n    // Negative values should be formatted like -$1.50 not $-1.50\n    if (string.indexOf(MINUS_SIGN) === 0) {\n      return MINUS_SIGN + (symbol || '') + string.substr(MINUS_SIGN.length);\n    } else {\n      return (symbol || '') + string;\n    }\n  }\n  function parseNumber(input) {\n    if (typeof input !== 'string') {\n      return input == null || typeof input === 'boolean' ? NaN : Number(input);\n    }\n    const string = input.trim();\n    if (string === '-' || string === DASH) {\n      return 0;\n    }\n    const isPercentage = string.match(/%$/) !== null;\n    const number = parseFloat(string.replace(MINUS_SIGN, '-').replace(/[^\\d.-]*/g, ''));\n    return isPercentage && !isNaN(number) ? number / 100 : number;\n  }\n  var _default = _exports.default = _helper.default.helper(formatNumber);\n});","define(\"portal/helpers/format-relative\", [\"exports\", \"ember-intl/helpers/format-relative\"], function (_exports, _formatRelative) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatRelative.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-relative\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/format-shortcut\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let FormatShortcut = _exports.default = (_class = class FormatShortcut extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"os\", _descriptor, this);\n    }\n    compute([key, actionName]) {\n      // If it's a touch device without a fine pointer, don't show tooltip\n      if (!this.os.hasKeyboard) {\n        return undefined;\n      }\n      const mod = key.includes('cmd') ? `${this.os.mainModifier} + ` : '';\n      const displayKey = key.replace('cmd+', '').replace('Arrow', '');\n      return `${actionName} (${mod}${displayKey})`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"os\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/helpers/format-time\", [\"exports\", \"ember-intl/helpers/format-time\"], function (_exports, _formatTime) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _formatTime.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/format-time\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/get-file-icon\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.getFileIcon = getFileIcon;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function getFileIcon(params) {\n    const fileExtension = params[0];\n    const fileMapper = {\n      image: 'file-image',\n      pdf: 'file-pdf',\n      doc: 'file-word',\n      txt: 'file-word',\n      csv: 'file-csv',\n      gz: 'file-archive',\n      rar: 'file-archive',\n      zip: 'file-archive',\n      '7z': 'file-archive'\n    };\n    return fileMapper[fileExtension] || 'file';\n  }\n  var _default = _exports.default = _helper.default.helper(getFileIcon);\n});","define(\"portal/helpers/gt\", [\"exports\", \"ember-truth-helpers/helpers/gt\"], function (_exports, _gt) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _gt.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/gt\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/gte\", [\"exports\", \"ember-truth-helpers/helpers/gte\"], function (_exports, _gte) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _gte.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/gte\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/html-safe\", [\"exports\", \"@ember/component/helper\", \"@ember/template\"], function (_exports, _helper, _template) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.htmlSafe = htmlSafe;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/template\"eaimeta@70e063a35619d71f\n  function htmlSafe(params) {\n    return (0, _template.htmlSafe)(params ?? '');\n  }\n  var _default = _exports.default = _helper.default.helper(htmlSafe);\n});","define(\"portal/helpers/humanize\", [\"exports\", \"ember-cli-string-helpers/helpers/humanize\"], function (_exports, _humanize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _humanize.default;\n    }\n  });\n  Object.defineProperty(_exports, \"humanize\", {\n    enumerable: true,\n    get: function () {\n      return _humanize.humanize;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/humanize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/if-key\", [\"exports\", \"ember-keyboard/helpers/if-key\"], function (_exports, _ifKey) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _ifKey.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-keyboard/helpers/if-key\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ignore-children\", [\"exports\", \"ember-modal-dialog/helpers/ignore-children\"], function (_exports, _ignoreChildren) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _ignoreChildren.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-modal-dialog/helpers/ignore-children\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/inc\", [\"exports\", \"ember-composable-helpers/helpers/inc\"], function (_exports, _inc) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _inc.default;\n    }\n  });\n  Object.defineProperty(_exports, \"inc\", {\n    enumerable: true,\n    get: function () {\n      return _inc.inc;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/inc\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/includes-feature-flags\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    compute(params) {\n      return this.newFeatureFlags.includesFeatureFlags(...params);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/includes-some-feature-flags\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    compute(params) {\n      return this.newFeatureFlags.includesSomeFeatureFlags(...params);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/includes\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function includes([array, value]) {\n    if (!Array.isArray(array)) {\n      return false;\n    }\n    return array.includes(value);\n  });\n});","define(\"portal/helpers/is-active\", [\"exports\", \"ember-router-helpers/helpers/is-active.js\"], function (_exports, _isActive) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isActive.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/is-active.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-after\", [\"exports\", \"ember-moment/helpers/is-after\"], function (_exports, _isAfter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isAfter.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-after\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-array\", [\"exports\", \"ember-truth-helpers/helpers/is-array\"], function (_exports, _isArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isArray.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/is-array\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-before\", [\"exports\", \"ember-moment/helpers/is-before\"], function (_exports, _isBefore) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isBefore.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-before\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-between\", [\"exports\", \"ember-moment/helpers/is-between\"], function (_exports, _isBetween) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isBetween.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-between\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-empty\", [\"exports\", \"ember-truth-helpers/helpers/is-empty\"], function (_exports, _isEmpty) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isEmpty.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/is-empty\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-equal\", [\"exports\", \"ember-truth-helpers/helpers/is-equal\"], function (_exports, _isEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isEqual.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/is-equal\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-hash\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.isHash = isHash;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function isHash(params) {\n    return params !== null && typeof params === 'object' && !Array.isArray(params);\n  }\n  var _default = _exports.default = _helper.default.helper(isHash);\n});","define(\"portal/helpers/is-same-or-after\", [\"exports\", \"ember-moment/helpers/is-same-or-after\"], function (_exports, _isSameOrAfter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isSameOrAfter.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-same-or-after\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-same-or-before\", [\"exports\", \"ember-moment/helpers/is-same-or-before\"], function (_exports, _isSameOrBefore) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isSameOrBefore.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-same-or-before\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/is-same\", [\"exports\", \"ember-moment/helpers/is-same\"], function (_exports, _isSame) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _isSame.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/is-same\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/lowercase\", [\"exports\", \"ember-cli-string-helpers/helpers/lowercase\"], function (_exports, _lowercase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _lowercase.default;\n    }\n  });\n  Object.defineProperty(_exports, \"lowercase\", {\n    enumerable: true,\n    get: function () {\n      return _lowercase.lowercase;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/lowercase\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/lt\", [\"exports\", \"ember-truth-helpers/helpers/lt\"], function (_exports, _lt) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _lt.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/lt\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/lte\", [\"exports\", \"ember-truth-helpers/helpers/lte\"], function (_exports, _lte) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _lte.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/lte\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/map-get\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _helper.helper)(function mapGet([map, key]) {\n    if (map instanceof Map) {\n      return map.get(key);\n    }\n    return undefined;\n  });\n});","define(\"portal/helpers/math\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.math = math;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function math([operand1, operator, operand2]) {\n    operand1 = parseOperand(operand1);\n    operand2 = parseOperand(operand2);\n    switch (operator) {\n      case '+':\n        return operand1 + operand2;\n      case '-':\n        return operand1 - operand2;\n      case '*':\n        return operand1 * operand2;\n      case '/':\n        return operand1 / operand2;\n      default:\n        throw new Error('Unknown operator: ' + operator);\n    }\n  }\n  function parseOperand(value) {\n    if (isNaN(value) || value === null || value === true) {\n      throw new Error('Expected operand passed to math help to be a number, got ' + value);\n    }\n    if (value !== Infinity) {\n      value = parseFloat(value, 10);\n    }\n    return value;\n  }\n  var _default = _exports.default = _helper.default.helper(math);\n});","define(\"portal/helpers/media\", [\"exports\", \"ember-responsive/helpers/media\"], function (_exports, _media) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _media.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-responsive/helpers/media\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-add\", [\"exports\", \"ember-moment/helpers/moment-add\"], function (_exports, _momentAdd) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentAdd.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-add\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-calendar\", [\"exports\", \"ember-moment/helpers/moment-calendar\"], function (_exports, _momentCalendar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentCalendar.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-calendar\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-diff\", [\"exports\", \"ember-moment/helpers/moment-diff\"], function (_exports, _momentDiff) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentDiff.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-diff\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-duration\", [\"exports\", \"ember-moment/helpers/moment-duration\"], function (_exports, _momentDuration) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentDuration.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-duration\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-format\", [\"exports\", \"ember-moment/helpers/moment-format\"], function (_exports, _momentFormat) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentFormat.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-format\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-from-now\", [\"exports\", \"ember-moment/helpers/moment-from-now\"], function (_exports, _momentFromNow) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentFromNow.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-from-now\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-from\", [\"exports\", \"ember-moment/helpers/moment-from\"], function (_exports, _momentFrom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentFrom.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-from\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-subtract\", [\"exports\", \"ember-moment/helpers/moment-subtract\"], function (_exports, _momentSubtract) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentSubtract.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-subtract\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-to-date\", [\"exports\", \"ember-moment/helpers/moment-to-date\"], function (_exports, _momentToDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentToDate.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-to-date\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-to-now\", [\"exports\", \"ember-moment/helpers/moment-to-now\"], function (_exports, _momentToNow) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentToNow.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-to-now\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment-to\", [\"exports\", \"ember-moment/helpers/moment-to\"], function (_exports, _momentTo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _momentTo.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment-to\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/moment\", [\"exports\", \"ember-moment/helpers/moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _moment.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/moment\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/not-eq\", [\"exports\", \"ember-truth-helpers/helpers/not-eq\"], function (_exports, _notEq) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _notEq.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/not-eq\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/not\", [\"exports\", \"ember-truth-helpers/helpers/not\"], function (_exports, _not) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _not.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/not\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/now\", [\"exports\", \"ember-moment/helpers/now\"], function (_exports, _now) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _now.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/now\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/number-format\", [\"exports\", \"@ember/service\", \"@ember/component/helper\"], function (_exports, _service, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let NumberFormat = _exports.default = (_class = class NumberFormat extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor, this);\n    }\n    compute([number], options) {\n      return this.numberFormat.format(number, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/helpers/number-to-char\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  class _default extends _helper.default {\n    compute([n]) {\n      const multiplier = Math.ceil(n / 25) || 1;\n      const index = n % 26;\n      const char = String.fromCharCode(index + 'A'.charCodeAt(0));\n      let str = '';\n      for (let i = 0; i < multiplier; i++) str += char;\n      return str;\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/helpers/object-at\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.objectAt = objectAt;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function objectAt(params /*, hash*/) {\n    const [array, index] = params;\n    if (!Array.isArray(array)) console.warn('object-at must be passed an array as its first argument');\n    if (isNaN(index)) console.warn('object-at must be passed a number as its second argument');\n    return array.objectAt(index);\n  }\n  var _default = _exports.default = _helper.default.helper(objectAt);\n});","define(\"portal/helpers/on-key\", [\"exports\", \"ember-keyboard/helpers/on-key\"], function (_exports, _onKey) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _onKey.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-keyboard/helpers/on-key\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/or\", [\"exports\", \"ember-truth-helpers/helpers/or\"], function (_exports, _or) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _or.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/or\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/ordinal-for\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.ordinalFor = ordinalFor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  function ordinalFor(input) {\n    const number = Number(input);\n    if (isNaN(number) || Math.abs(number) === Infinity || number < 0) {\n      return null;\n    }\n    const string = String(number);\n    const lastDigit = string.charAt(string.length - 1);\n    if (string.indexOf('.') > -1 || string.indexOf('e') > -1) {\n      return null;\n    } else if (lastDigit === '1' && string !== '11') {\n      return 'st';\n    } else if (lastDigit === '2' && string !== '12') {\n      return 'nd';\n    } else if (lastDigit === '3' && string !== '13') {\n      return 'rd';\n    } else {\n      return 'th';\n    }\n  }\n  var _default = _exports.default = _helper.default.helper(ordinalFor);\n});","define(\"portal/helpers/page-title\", [\"exports\", \"ember-page-title/helpers/page-title\"], function (_exports, _pageTitle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pageTitle.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-page-title/helpers/page-title\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/pagination-callback\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = paginationCallback;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  async function paginationCallback(callback) {\n    const fetchPages = async (accumulatedResults = [], page = 1) => {\n      try {\n        const response = await callback(page);\n        if (!response || !response.toArray || !response.meta) {\n          throw new Error('Invalid response structure: Expected { toArray(), meta }');\n        }\n        const updatedResults = [...accumulatedResults, ...response.toArray()];\n        const hasNextPage = response.meta.currentPage < response.meta.totalPages;\n        if (hasNextPage) {\n          return fetchPages(updatedResults, page + 1);\n        }\n        return updatedResults;\n      } catch (error) {\n        throw new Error(`Pagination failed on page ${page}: ${error.message}`);\n      }\n    };\n    return fetchPages();\n  }\n});","define(\"portal/helpers/perform\", [\"exports\", \"ember-concurrency/helpers/perform\"], function (_exports, _perform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _perform.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/helpers/perform\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/pipe\", [\"exports\", \"ember-composable-helpers/helpers/pipe\"], function (_exports, _pipe) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pipe.default;\n    }\n  });\n  Object.defineProperty(_exports, \"pipe\", {\n    enumerable: true,\n    get: function () {\n      return _pipe.pipe;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/pipe\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/pluralize\", [\"exports\", \"ember-inflector/helpers/pluralize\"], function (_exports, _pluralize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pluralize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-inflector/helpers/pluralize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/power-calendar-format-date\", [\"exports\", \"ember-power-calendar/helpers/power-calendar-format-date\"], function (_exports, _powerCalendarFormatDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerCalendarFormatDate.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/helpers/power-calendar-format-date\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/prevent-default\", [\"exports\", \"ember-event-helpers/helpers/prevent-default\"], function (_exports, _preventDefault) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _preventDefault.default;\n    }\n  });\n  Object.defineProperty(_exports, \"preventDefault\", {\n    enumerable: true,\n    get: function () {\n      return _preventDefault.preventDefault;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-event-helpers/helpers/prevent-default\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/profit-type-label\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // `{{profit-type-label type}}` -> \"margin\" / \"markup\"\n  // `{{profit-type-label type effective=true}}` -> \"Effective margin\" / ...\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([profitType], {\n      effective = false\n    } = {}) {\n      if (profitType === 'MARKUP') return effective ? this.intl.t('common.Effective markup') : this.intl.t('common.markup');\n      return effective ? this.intl.t('common.Effective margin') : this.intl.t('common.margin');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/project-status-label\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // Accepts the raw enum ('OPEN') or an already capitalised value ('Open'),\n  // because report cells carry the latter.\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([status]) {\n      switch (String(status ?? '').toUpperCase()) {\n        case 'OPEN':\n          return this.intl.t('common.Open');\n        case 'HELD':\n          return this.intl.t('common.Held');\n        case 'CLOSED':\n          return this.intl.t('common.Closed');\n        case 'ARCHIVED':\n          return this.intl.t('common.Archived');\n      }\n      return status;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/range\", [\"exports\", \"ember-composable-helpers/helpers/range\"], function (_exports, _range) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _range.default;\n    }\n  });\n  Object.defineProperty(_exports, \"range\", {\n    enumerable: true,\n    get: function () {\n      return _range.range;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/range\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/replace-with\", [\"exports\", \"ember-router-helpers/helpers/replace-with.js\"], function (_exports, _replaceWith) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _replaceWith.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/replace-with.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/root-url\", [\"exports\", \"ember-router-helpers/helpers/root-url.js\"], function (_exports, _rootUrl) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _rootUrl.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/root-url.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/round-number\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.round2dp = round2dp;\n  _exports.round6dp = round6dp;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function round2dp(input) {\n    return Math.round((input + Number.EPSILON) * 100) / 100;\n  }\n  function round6dp(input) {\n    return Math.round((input + Number.EPSILON) * 1000000) / 1000000;\n  }\n});","define(\"portal/helpers/route-params\", [\"exports\", \"ember-router-helpers/helpers/route-params.js\"], function (_exports, _routeParams) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _routeParams.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/route-params.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/singularize\", [\"exports\", \"ember-inflector/helpers/singularize\"], function (_exports, _singularize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _singularize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-inflector/helpers/singularize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/sort-accounts\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = sortAccounts;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function sortAccounts(accounts = [], sortKey = 'sortIndex', categoryKey = 'category') {\n    const profitAndLoss = [];\n    const balanceSheet = [];\n    const other = [];\n    accounts.forEach(target => {\n      const category = (0, _object.get)(target, categoryKey);\n      switch (category) {\n        case 'profit-and-loss':\n          profitAndLoss.push(target);\n          break;\n        case 'balance-sheet':\n          balanceSheet.push(target);\n          break;\n        default:\n          other.push(target);\n      }\n    });\n    return [...profitAndLoss.sortBy(sortKey), ...balanceSheet.sortBy(sortKey), ...other.sortBy(sortKey)];\n  }\n});","define(\"portal/helpers/stop-propagation\", [\"exports\", \"ember-event-helpers/helpers/stop-propagation\"], function (_exports, _stopPropagation) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _stopPropagation.default;\n    }\n  });\n  Object.defineProperty(_exports, \"stopPropagation\", {\n    enumerable: true,\n    get: function () {\n      return _stopPropagation.stopPropagation;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-event-helpers/helpers/stop-propagation\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/t\", [\"exports\", \"ember-intl/helpers/t\"], function (_exports, _t) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _t.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/helpers/t\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/helpers/task\", [\"exports\", \"ember-concurrency/helpers/task\"], function (_exports, _task) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _task.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/helpers/task\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/timesheet-status-label\", [\"exports\", \"@ember/component/helper\", \"@ember/service\"], function (_exports, _helper, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // A grouping has no status record until someone sets one; until then it\n  // reads as pending.\n  let _class = _exports.default = (_class2 = class _class2 extends _helper.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n    }\n    compute([status]) {\n      return status === 'accepted' ? this.intl.t('common.Accepted') : this.intl.t('common.Pending');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/helpers/titleize\", [\"exports\", \"ember-cli-string-helpers/helpers/titleize\"], function (_exports, _titleize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _titleize.default;\n    }\n  });\n  Object.defineProperty(_exports, \"titleize\", {\n    enumerable: true,\n    get: function () {\n      return _titleize.titleize;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/titleize\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/toggle-action\", [\"exports\", \"ember-composable-helpers/helpers/toggle-action\"], function (_exports, _toggleAction) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _toggleAction.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/toggle-action\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/toggle\", [\"exports\", \"ember-composable-helpers/helpers/toggle\"], function (_exports, _toggle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _toggle.default;\n    }\n  });\n  Object.defineProperty(_exports, \"toggle\", {\n    enumerable: true,\n    get: function () {\n      return _toggle.toggle;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-composable-helpers/helpers/toggle\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/transition-to\", [\"exports\", \"ember-router-helpers/helpers/transition-to.js\"], function (_exports, _transitionTo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transitionTo.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/transition-to.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/trim\", [\"exports\", \"ember-cli-string-helpers/helpers/trim\"], function (_exports, _trim) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _trim.default;\n    }\n  });\n  Object.defineProperty(_exports, \"trim\", {\n    enumerable: true,\n    get: function () {\n      return _trim.trim;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/trim\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/truncate\", [\"exports\", \"ember-cli-string-helpers/helpers/truncate\"], function (_exports, _truncate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _truncate.default;\n    }\n  });\n  Object.defineProperty(_exports, \"truncate\", {\n    enumerable: true,\n    get: function () {\n      return _truncate.truncate;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/truncate\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/underscore\", [\"exports\", \"ember-cli-string-helpers/helpers/underscore\"], function (_exports, _underscore) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _underscore.default;\n    }\n  });\n  Object.defineProperty(_exports, \"underscore\", {\n    enumerable: true,\n    get: function () {\n      return _underscore.underscore;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/underscore\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/unix\", [\"exports\", \"ember-moment/helpers/unix\"], function (_exports, _unix) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _unix.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/unix\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/uppercase\", [\"exports\", \"ember-cli-string-helpers/helpers/uppercase\"], function (_exports, _uppercase) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _uppercase.default;\n    }\n  });\n  Object.defineProperty(_exports, \"uppercase\", {\n    enumerable: true,\n    get: function () {\n      return _uppercase.uppercase;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/uppercase\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/url-for\", [\"exports\", \"ember-router-helpers/helpers/url-for.js\"], function (_exports, _urlFor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _urlFor.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-router-helpers/helpers/url-for.js\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/utc\", [\"exports\", \"ember-moment/helpers/utc\"], function (_exports, _utc) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _utc.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/helpers/utc\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/w\", [\"exports\", \"ember-cli-string-helpers/helpers/w\"], function (_exports, _w) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _w.default;\n    }\n  });\n  Object.defineProperty(_exports, \"w\", {\n    enumerable: true,\n    get: function () {\n      return _w.w;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/helpers/w\"eaimeta@70e063a35619d71f\n});","define(\"portal/helpers/xor\", [\"exports\", \"ember-truth-helpers/helpers/xor\"], function (_exports, _xor) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _xor.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-truth-helpers/helpers/xor\"eaimeta@70e063a35619d71f\n});","define(\"portal/initializers/am5\", [\"exports\", \"portal/config/environment\", \"@amcharts/amcharts5\"], function (_exports, _environment, am5) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\",0,\"@amcharts/amcharts5\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    name: 'am5',\n    initialize: () => {\n      am5.addLicense(_environment.default.am5LicenseKey);\n    }\n  };\n});","define(\"portal/initializers/app-version\", [\"exports\", \"ember-cli-app-version/initializer-factory\", \"portal/config/environment\"], function (_exports, _initializerFactory, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-app-version/initializer-factory\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  let name, version;\n  if (_environment.default.APP) {\n    name = _environment.default.APP.name;\n    version = _environment.default.APP.version;\n  }\n  var _default = _exports.default = {\n    name: 'App Version',\n    initialize: (0, _initializerFactory.default)(name, version)\n  };\n});","define(\"portal/initializers/deprecation-handler\", [\"exports\", \"portal/utils/deprecation-filter\"], function (_exports, _deprecationFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/deprecation-filter\"eaimeta@70e063a35619d71f\n  // The filter lives in a util rather than here because the test suite installs\n  // it too, and importing an `initializers/` module from the tests tree resolves\n  // a second copy of it — leaving the one ember-load-initializers pulls from the\n  // AMD registry without its default export, which fails the whole tests bundle.\n  function initialize() {\n    (0, _deprecationFilter.installDeprecationFilter)();\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define(\"portal/initializers/ember-cli-mirage\", [\"exports\", \"portal/config/environment\", \"ember-cli-mirage/get-rfc232-test-context\", \"ember-cli-mirage/start-mirage\", \"portal/mirage/config\"], function (_exports, _environment, _getRfc232TestContext, _startMirage, config) {\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,\"ember-cli-mirage/get-rfc232-test-context\",0,\"ember-cli-mirage/start-mirage\",0,\"portal/mirage/config\"eaimeta@70e063a35619d71f\n  const {\n    default: makeServer\n  } = config;\n\n  //\n  // This initializer does two things:\n  //\n  // 1. Pulls the mirage config objects from the application's config and\n  //    registers them in the container so `ember-cli-mirage/start-mirage` can\n  //    find them (since it doesn't have access to the app's namespace).\n  // 2. Provides legacy support for auto-starting mirage in pre-rfc268 acceptance\n  //    tests.\n  //\n  var _default = _exports.default = {\n    name: 'ember-cli-mirage',\n    initialize(application) {\n      if (makeServer) {\n        application.register('mirage:make-server', makeServer, {\n          instantiate: false\n        });\n      }\n      _environment.default['ember-cli-mirage'] = _environment.default['ember-cli-mirage'] || {};\n      if (_shouldUseMirage(_environment.default.environment, _environment.default['ember-cli-mirage'])) {\n        startMirage(application.__container__, _environment.default);\n      }\n    }\n  };\n  function startMirage(owner, env = _environment.default) {\n    return (0, _startMirage.default)(owner, {\n      env,\n      makeServer\n    });\n  }\n  function _shouldUseMirage(env, addonConfig) {\n    if (typeof FastBoot !== 'undefined') {\n      return false;\n    }\n    if ((0, _getRfc232TestContext.default)()) {\n      return false;\n    }\n    let userDeclaredEnabled = typeof addonConfig.enabled !== 'undefined';\n    let defaultEnabled = _defaultEnabled(env, addonConfig);\n    return userDeclaredEnabled ? addonConfig.enabled : defaultEnabled;\n  }\n\n  /*\n    Returns a boolean specifying the default behavior for whether\n    to initialize Mirage.\n  */\n  function _defaultEnabled(env, addonConfig) {\n    let usingInDev = env === 'development' && !addonConfig.usingProxy;\n    let usingInTest = env === 'test';\n    return usingInDev || usingInTest;\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/instance-initializers/ember-cli-mirage-autostart\", [\"exports\", \"ember-cli-mirage/instance-initializers/ember-cli-mirage-autostart\"], function (_exports, _emberCliMirageAutostart) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberCliMirageAutostart.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-mirage/instance-initializers/ember-cli-mirage-autostart\"eaimeta@70e063a35619d71f\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/mirage/attribute-names\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.USER_ATTRIBUTES = _exports.ENTITY_ATTRIBUTES = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  // Every entity flag and user permission the app knows about. The factories and\n  // the demo seed both build from these, so a new flag only has to be added once.\n\n  const ENTITY_ATTRIBUTES = _exports.ENTITY_ATTRIBUTES = ['canManageIPSDocuments', 'canUseBills', 'canUseBudgetReport', 'canUseBuildaPrice', 'canUseBuilding', 'canUseCarters', 'canUseChargeupReport', 'canUseClientPortal', 'canUseCostReport', 'canUseCrystalPayroll', 'canUseCsvTaskFileUploader', 'canUseDashboards', 'canUseEstimates', 'canUseFileStorage', 'canUseFinancialReporting', 'canUseForecastReport', 'canUseHealthAndSafety', 'canUseInvoicing', 'canUseInvoicingReport', 'canUseIPS', 'canUseKeypay', 'canUseLabourHoursReport', 'canUseNotes', 'canUsePartner', 'canUsePlaceMakers', 'canUsePositionReport', 'canUsePricing', 'canUseProducts', 'canUseProfitMarginsReport', 'canUseProjectFinancials', 'canUseProjectProgress', 'canUsePurchaseOrders', 'canUseQuoteReport', 'canUseScheduling', 'canUseSmartPayroll', 'canUseStagePayments', 'canUseStrategies', 'canUseSupport', 'canUseTimesheets', 'canUseWIPReport'];\n  const USER_ATTRIBUTES = _exports.USER_ATTRIBUTES = ['canAdminFinancialReporting', 'canApprovePurchaseOrders', 'canApproveInvoices', 'canApproveBills', 'canCreateHealthAndSafety', 'canDeleteStrategies', 'canManageBills', 'canManageBudgetReports', 'canManageChargeupReports', 'canManageCostReports', 'canManageEntity', 'canManageEstimates', 'canManageEstimatesSettings', 'canManageFileStorage', 'canManageHealthAndSafety', 'canManageIntegrations', 'canManageInvoices', 'canManageInvoicingReports', 'canManageNotes', 'canManagePayrollReports', 'canManageProducts', 'canManageProgressReports', 'canManageProjectBudgetVersions', 'canManageProjectProgressVersions', 'canManageProjectQuoteVersions', 'canManageProjects', 'canManageProjectSchedulingVersions', 'canManagePurchaseOrders', 'canManageQuoteReports', 'canManageSchedulingReports', 'canManageStagePayments', 'canManageSubscriptions', 'canManageSuppliers', 'canManageTaskBudgets', 'canManageTaskProgress', 'canManageTaskQuotes', 'canManageTasks', 'canManageTaskScheduling', 'canManageTimesheets', 'canManageUsers', 'canManageWorkers', 'canUseReportBuilderReport', 'canViewBills', 'canViewBudgetFinancialReports', 'canViewBuildersWorkTasks', 'canViewChargeupReports', 'canViewCostFinancialReports', 'canViewEntity', 'canViewEstimates', 'canViewFileStorage', 'canViewFinancialReporting', 'canViewIntegrations', 'canViewInternalTasks', 'canViewInvoices', 'canViewInvoicingReports', 'canViewMilestoneTasks', 'canViewNotes', 'canViewPayrollReports', 'canViewPlantTasks', 'canViewProducts', 'canViewProgressReports', 'canViewProjectBudgetVersions', 'canViewProjectProgressVersions', 'canViewProjectQuoteVersions', 'canViewProjects', 'canViewProjectSchedulingVersions', 'canViewPurchaseOrders', 'canViewQuoteReports', 'canViewSchedulingReports', 'canViewStagePayments', 'canViewStrategies', 'canViewSubcontractorTasks', 'canViewSubscriptions', 'canViewSumsTasks', 'canViewSuppliers', 'canViewTaskBudgets', 'canViewTaskProgress', 'canViewTaskQuotes', 'canViewTasks', 'canViewTaskScheduling', 'canViewTaskTasks', 'canViewTimesheets', 'canViewUsers', 'canViewWorkers', 'hasClientRole', 'hasSubcontractorRole'];\n});","define(\"portal/mirage/config\", [\"exports\", \"portal/config/environment\", \"moment\", \"portal/mirage/responders/get-with-filter\", \"portal/mirage/responders/v2-get-with-filter\", \"portal/mirage/responders/v2-resources\", \"portal/mirage/responders/auth\", \"portal/mirage/responders/reports\", \"portal/mirage/responders/ad-hoc-report\", \"portal/mirage/responders/gantt-chart\", \"portal/mirage/responders/buildaprice-edit-price\", \"portal/mirage/responders/buildaprice-duplicate-price\", \"portal/mirage/responders/buildaprice-create-price\", \"portal/mirage/responders/buildaprice-get-template\", \"portal/mirage/responders/buildaprice-add-templates\", \"portal/mirage/responders/buildaprice-get-quotes\", \"portal/mirage/responders/buildaprice-import-materials\", \"portal/mirage/responders/buildaprice-get-import-status\", \"portal/mirage/responders/buildaprice-entities\", \"portal/mirage/responders/buildaprice-create-tasks-from-estimate\", \"portal/mirage/responders/buildaprice-import-estimate\", \"portal/mirage/responders/static-content\", \"portal/mirage/responders/ips\", \"portal/utils/path-resolver\", \"portal/mirage/model-names\", \"miragejs\", \"portal/mirage/fixture-sets\", \"portal/mirage/demo/figures\", \"ember-cli-mirage\"], function (_exports, _environment, _moment, _getWithFilter, _v2GetWithFilter, _v2Resources, _auth, _reports, _adHocReport, _ganttChart, _buildapriceEditPrice, _buildapriceDuplicatePrice, _buildapriceCreatePrice, _buildapriceGetTemplate, _buildapriceAddTemplates, _buildapriceGetQuotes, _buildapriceImportMaterials, _buildapriceGetImportStatus, _buildapriceEntities, _buildapriceCreateTasksFromEstimate, _buildapriceImportEstimate, _staticContent, _ips, _pathResolver, _modelNames, _miragejs, _fixtureSets, _figures, _emberCliMirage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\",0,\"moment\",0,\"portal/mirage/responders/get-with-filter\",0,\"portal/mirage/responders/v2-get-with-filter\",0,\"portal/mirage/responders/v2-resources\",0,\"portal/mirage/responders/auth\",0,\"portal/mirage/responders/reports\",0,\"portal/mirage/responders/ad-hoc-report\",0,\"portal/mirage/responders/gantt-chart\",0,\"portal/mirage/responders/buildaprice-edit-price\",0,\"portal/mirage/responders/buildaprice-duplicate-price\",0,\"portal/mirage/responders/buildaprice-create-price\",0,\"portal/mirage/responders/buildaprice-get-template\",0,\"portal/mirage/responders/buildaprice-add-templates\",0,\"portal/mirage/responders/buildaprice-get-quotes\",0,\"portal/mirage/responders/buildaprice-import-materials\",0,\"portal/mirage/responders/buildaprice-get-import-status\",0,\"portal/mirage/responders/buildaprice-entities\",0,\"portal/mirage/responders/buildaprice-create-tasks-from-estimate\",0,\"portal/mirage/responders/buildaprice-import-estimate\",0,\"portal/mirage/responders/static-content\",0,\"portal/mirage/responders/ips\",0,\"portal/utils/path-resolver\",0,\"portal/mirage/model-names\",0,\"miragejs\",0,\"portal/mirage/fixture-sets\",0,\"portal/mirage/demo/figures\",0,\"ember-cli-mirage\"eaimeta@70e063a35619d71f\n  function _default(config) {\n    return (0, _miragejs.createServer)({\n      ...config,\n      models: {\n        ...(0, _emberCliMirage.discoverEmberDataModels)(config.store),\n        ...config.models\n      },\n      routes\n    });\n  }\n  function routes() {\n    // Set PORTAL_API_URL env variable to change.\n    this.urlPrefix = (0, _pathResolver.default)(`${_environment.default.urls.api}`);\n\n    // A second of latency per request reads as sluggish on camera, so it is now\n    // opt-in with MIRAGE=demo,slow. Tests force this to 0 either way.\n    this.timing = (0, _fixtureSets.fixtureSets)().includes('slow') ? 1000 : 0;\n\n    // Just a little helper function to quickly mock all request types for a given resource\n    const defineAll = route => {\n      this.get(`/${_environment.default.urls.apiV1Path}/${route}`, (0, _getWithFilter.default)(route));\n      this.get(`/${_environment.default.urls.apiV1Path}/${route}/:id`);\n      this.post(`/${_environment.default.urls.apiV1Path}/${route}`);\n      this.patch(`/${_environment.default.urls.apiV1Path}/${route}/:id`);\n      this.del(`/${_environment.default.urls.apiV1Path}/${route}`);\n      this.del(`/${_environment.default.urls.apiV1Path}/${route}/:id`);\n      this.get(`/${_environment.default.urls.apiV2Path}/json-api/${route}`, (0, _v2GetWithFilter.default)(route));\n      this.get(`/${_environment.default.urls.apiV2Path}/json-api/${route}/:id`);\n      this.post(`/${_environment.default.urls.apiV2Path}/json-api/${route}`);\n      this.patch(`/${_environment.default.urls.apiV2Path}/json-api/${route}/:id`);\n      this.del(`/${_environment.default.urls.apiV2Path}/json-api/${route}/:id`);\n    };\n    for (const modelName of _modelNames.default) defineAll(modelName);\n\n    // Define an endpoint that lets you log in\n    this.post(`/${_environment.default.urls.apiV1Path}/auth`, _auth.default);\n\n    // Define reporting endpoints\n    // Every caller POSTs its report spec; the GET form is registered because the\n    // responder supports query params, but nothing in the app uses it.\n    this.get(`/${_environment.default.urls.apiV1Path}/reports/balances`, (0, _reports.default)('balances'));\n    this.post(`/${_environment.default.urls.apiV1Path}/reports/balances`, (0, _reports.default)('balances'));\n    this.get(`/${_environment.default.urls.apiV1Path}/reports/kpis`, (0, _reports.default)('kpis'));\n    // The kpi report routes POST their spec rather than GET it.\n    this.post(`/${_environment.default.urls.apiV1Path}/reports/kpis`, (0, _reports.default)('kpis'));\n    // Data Availability walks month ends from the earliest period to the latest\n    // and lights a cell only when an entity's period is exactly that instant, so\n    // these have to be end-of-month local times or the grid renders all blanks.\n    const monthEnd = offset => (0, _moment.default)('2025-01-01').add(offset, 'month').endOf('month').toISOString();\n    this.get(`/${_environment.default.urls.apiV1Path}/reports/periods`, () => ({\n      data: [{\n        entity: '1',\n        entityName: 'Head Office',\n        periods: [monthEnd(0), monthEnd(1), monthEnd(2)]\n      }, {\n        entity: '2',\n        entityName: 'Southern Branch',\n        periods: [monthEnd(0), monthEnd(2)]\n      }]\n    }));\n    // The kpi detail route GETs stats for a single period and reads\n    // data.0.periodTypes, so the envelope needs one populated entry.\n    this.get(`/${_environment.default.urls.apiV1Path}/reports/stats`, (schema, request) => {\n      const requested = request.queryParams.periodTypes || ['month'];\n      const periodTypes = {};\n      for (const periodType of [].concat(requested)) {\n        periodTypes[periodType] = {\n          rankable: true,\n          mean: 0,\n          best: 0,\n          rankings: [{\n            rank: 1,\n            outOf: 1,\n            value: 0\n          }]\n        };\n      }\n      return {\n        data: [{\n          periodTypes\n        }]\n      };\n    });\n\n    // Callers read res.data from these, so the envelope matters.\n    // The progress page builds every task's cost columns from these two. An\n    // empty list left each task defaulting to zero, so the variance arithmetic\n    // beside them never ran on a real figure. Both now answer for whichever task\n    // ids were asked for.\n    //\n    // Asserting the visible effect — the \"more than half under budget\" message —\n    // needs a task whose budgets are non-zero, and those come from\n    // task.currentBudgetValue, which walks\n    // project -> currentBudgetVersion -> values -> the value for this task,\n    // reading .value() at every step. No route in the app loads\n    // currentBudgetVersion or its values; the only mention anywhere in app/routes\n    // is the WIP report reading its id. So unless the API sideloads that version\n    // with the project, every budget on that page is 0, every variance is 0, and\n    // the message can never appear. That is worth confirming against a real\n    // server before seeding it here.\n    this.get(`/${_environment.default.urls.apiV1Path}/task-cost-totals`, (schema, request) => ({\n      data: requestedTaskIds(request).map(id => {\n        const task = schema.tasks.find(id);\n        const metrics = (0, _figures.metricsFor)(schema, task ? [task] : []);\n        return {\n          id,\n          attributes: {\n            materials: metrics.COST_MATERIALS,\n            subcontractors: metrics.COST_SUBCONTRACTORS,\n            invoiceLabour: 0,\n            timesheetLabour: metrics.TIMESHEET_COST\n          }\n        };\n      })\n    }));\n    this.get(`/${_environment.default.urls.apiV1Path}/task-progress-directs`, (schema, request) => ({\n      data: requestedTaskIds(request).map(id => ({\n        id,\n        attributes: {\n          materials: 0,\n          subcontractors: 0,\n          labour: 0\n        }\n      }))\n    }));\n\n    // Deliberately NOT mocking ${oidc.authenticationURL}/.well-known/openid-configuration:\n    // with it mocked, /login proceeds into a real OIDC redirect and navigates the\n    // test browser away, killing the run. Letting it fail fast is what keeps the\n    // login routes contained.\n\n    // Health and safety engine bootstraps against the OSS API.\n    this.get(`${_environment.default.urls.ossApiRoot}/auth/get-current-user`, () => ({}));\n    // findRecord wants a single resource; the collection endpoints want a list.\n    // Register the more specific route first.\n    this.get(`${_environment.default.urls.ossApiRoot}/resources/:type/:id`, (schema, request) => ({\n      data: {\n        id: request.params.id,\n        type: request.params.type,\n        attributes: {}\n      }\n    }));\n    this.get(`${_environment.default.urls.ossApiRoot}/resources/*path`, () => ({\n      data: []\n    }));\n\n    // Define builda price stuff\n    this.post(`/${_environment.default.urls.apiV1Path}/buildaprice/price/create`, _buildapriceCreatePrice.default);\n    this.post(`/${_environment.default.urls.apiV1Path}/buildaprice/price/duplicate`, _buildapriceDuplicatePrice.default);\n    this.post(`/${_environment.default.urls.apiV1Path}/buildaprice/price/edit`, _buildapriceEditPrice.default);\n    this.post(`/${_environment.default.urls.apiV1Path}/buildaprice/template/get`, _buildapriceGetTemplate.default);\n    this.post(`/${_environment.default.urls.apiV1Path}/buildaprice/price/add-templates`, _buildapriceAddTemplates.default);\n    this.get(`/${_environment.default.urls.apiV1Path}/buildaprice/unlinked-estimates`, _buildapriceImportEstimate.default);\n    this.post(`/${_environment.default.urls.apiV1Path}/update/project-list`, () => ({\n      success: true\n    }));\n    this.post(`/${_environment.default.urls.apiV1Path}/update/invoice-items`, () => ({\n      success: true\n    }));\n    this.del(`/${_environment.default.urls.apiV1Path}/delete/task/:id`, () => ({\n      success: true\n    }));\n    this.post(`/${_environment.default.urls.apiV1Path}/buildaprice/price/create-tasks-from-estimate`, _buildapriceCreateTasksFromEstimate.default);\n    this.post(`/${_environment.default.urls.apiV1Path}/buildaprice/price/get-preloaded-quotes`, _buildapriceGetQuotes.default);\n    this.post(`/${_environment.default.urls.apiV1Path}/buildaprice/price/import-materials-from-quote`, _buildapriceImportMaterials.default);\n    this.post(`/${_environment.default.urls.apiV1Path}/buildaprice/price/import-materials-from-file`, _buildapriceImportMaterials.default);\n    this.post(`/${_environment.default.urls.apiV1Path}/buildaprice/price/get-import-status`, _buildapriceGetImportStatus.default);\n    this.get(`/${_environment.default.urls.apiV1Path}/buildaprice/entities`, _buildapriceEntities.default);\n    this.post(`/${_environment.default.urls.apiV1Path}/buildaprice/link-organisation`, () => ({}));\n    this.post(`/${_environment.default.urls.apiV1Path}/buildaprice/price/delete`, () => ({}));\n    this.post(`/${_environment.default.urls.apiV1Path}/buildaprice/merchant/get`, () => ({\n      merchantList: [{\n        id: '1',\n        cdeptname: 'fakeMerchant1'\n      }, {\n        id: '2',\n        cdeptname: 'fakeMerchant2'\n      }, {\n        id: '3',\n        cdeptname: 'fakeMerchant3'\n      }, {\n        id: '4',\n        cdeptname: 'fakeMerchant4'\n      }]\n    }));\n    this.post(`/${_environment.default.urls.apiV1Path}/pricing-session`, () => ({\n      sessionId: 'fakeSessionId'\n    }));\n    this.post(`/${_environment.default.urls.apiV1Path}/buildaprice/roles`, () => [{\n      crolename: 'Admin Role',\n      id: 'role-id'\n    }]);\n    // The scheduling timeline talks to these two directly rather than through\n    // Ember Data, so they answer with Bryntum's own payload shape.\n    this.get(`/${_environment.default.urls.apiV1Path}/gantt-chart/get-data`, _ganttChart.ganttDataResponder);\n    this.post(`/${_environment.default.urls.apiV1Path}/gantt-chart/sync-data`, _ganttChart.ganttSyncResponder);\n    this.get(`/${_environment.default.urls.apiV1Path}/attachments/:id/href`, () => '/assets/placeholder-attachment.pdf');\n\n    // Define requests for static promotional content\n    this.get('https://outtherenz.github.io/product-info/promotions/backcoster-promotion', _staticContent.default);\n    this.get('https://outtherenz.github.io/product-info/promotions/builda-price-pricing-promotion', _staticContent.default);\n    this.get('https://outtherenz.github.io/product-info/promotions/crystal-payroll-promotion', _staticContent.default);\n    this.get('https://outtherenz.github.io/product-info/promotions/out-there-business-solutions-payroll-promotion', _staticContent.default);\n\n    // Terms of service are loaded through fetch in the config panel\n    this.passthrough(`${location.origin}/assets/*`);\n\n    // Allow requests to the PDF generator\n    this.passthrough('https://html-to-pdf.otbs.co.nz/*');\n\n    // IPS specific stuff\n    this.get(`${_environment.default.urls.apiV2Path}/ips/contact-info`, _ips.ipsListResponder);\n    this.get(`${_environment.default.urls.apiV2Path}/ips/usage`, _ips.ipsUsageResponder);\n    this.patch(`${_environment.default.urls.apiV2Path}/ips/contact-email`, _ips.ipsUpdateResponder);\n\n    // Every report page posts a report spec here and renders the elements it\n    // gets back. See responders/ad-hoc-report.js.\n    this.post(`/${_environment.default.urls.apiV1Path}/report-engine/ad-hoc-report`, _adHocReport.default);\n\n    // portalApi.authGet sends dataType: 'json', so the body has to be JSON —\n    // a bare HTML string fails to parse and rejects the request.\n    this.get(`/${_environment.default.urls.apiV1Path}/terms-of-service`, () => JSON.stringify('<p>Terms</p>'));\n\n    // Both the \"Fix duplicates\" button and the modal behind it read this, so an\n    // empty array hid the whole duplicate-supplier feature from every test. Each\n    // entry is one group of suppliers that look like each other; the first of a\n    // group carries the title and description the card shows.\n    this.get(`${_environment.default.urls.apiV2Path}/duplicate-suppliers/find`, () => [[{\n      id: 'sup-1',\n      title: 'Placemakers',\n      text: '2 matching suppliers'\n    }, {\n      id: 'sup-2',\n      title: 'Placemakers Ltd',\n      text: '2 matching suppliers'\n    }]]);\n    // The stage payments page reads its three headline figures off this. An\n    // empty array left all of them blank, so nothing exercised them.\n    this.get(`${_environment.default.urls.apiV2Path}/stage-payments/value/:id`, () => ({\n      quote: 100000,\n      stagesValue: 60000,\n      remainingQuote: 40000\n    }));\n\n    // The estimates engine talks to the pricing service on its own host\n    // (builda-price-client-addon/config/environment.js), not through ENV.urls.\n    // Most endpoints are plain lists, but the misc and overhead pages read\n    // `rows` off an envelope and map over it, so shape those two first.\n    const pricingHost = 'http://localhost:8080/buildPrice';\n    const pricingSections = () => ({\n      defaultdays: 5,\n      defaulthours: 8,\n      rows: []\n    });\n\n    // bpApi.fetch rewrites every pricing URL to `path;jsessionid=<id>?query`,\n    // so a literal `/jobmisc/getData.json` never matches — take the filename as\n    // a dynamic segment and let it swallow the jsessionid suffix.\n    this.get(`${pricingHost}/jobmisc/:file`, pricingSections);\n    this.get(`${pricingHost}/jobpg/:file`, pricingSections);\n    this.get(`${pricingHost}/*path`, () => []);\n    this.post(`${pricingHost}/*path`, () => []);\n\n    // The new-project modal's address picker lists whatever this returns; empty\n    // meant it always said \"No address found\", so the picker below it and the\n    // coordinate lookup were both unreachable.\n    this.post(`${_environment.default.urls.apiV2Path}/places/search`, () => [{\n      id: 'place-1',\n      address: '1 Queen Street, Auckland'\n    }, {\n      id: 'place-2',\n      address: '2 Queen Street, Auckland'\n    }]);\n    this.get(`${_environment.default.urls.apiV2Path}/places/location/:id`, () => ({\n      latitude: -36.848461,\n      longitude: 174.763336\n    }));\n\n    // The product editor reads these three directly rather than through Ember\n    // Data, and expects a `{ data, pagination }` envelope. Without them its\n    // setup task rejects and the editor cannot open at all.\n    const page = data => ({\n      data,\n      pagination: {\n        totalRecords: data.length,\n        hasNextPage: false,\n        totalPages: 1,\n        currentPage: 1\n      }\n    });\n\n    // The product editor's unit and supplier pickers list whatever these return.\n    // Empty pages left both with nothing to choose, so setUnit and setSupplier\n    // were unreachable.\n    this.get(`${_environment.default.urls.apiV2Path}/product-units`, () => page([{\n      unit: 'each'\n    }, {\n      unit: 'metre'\n    }, {\n      unit: 'sheet'\n    }]));\n    // The invoice line editor's allocation tree asks for the billable figures a\n    // project, task, timesheet or bill item can still be invoiced for. Nothing\n    // answered this at all, so every node in that tree read zero and the tree\n    // rendered \"No items\".\n    //\n    // GenericTreeItem reads value.total[costType][allocationType].invoiceable\n    // (and the same under `direct`), where costType is 'total' for a project,\n    // 'timesheets' or 'bills' below it, and allocationType is the lowercased\n    // Allocation type selector — total, labour, subcontractors or materials.\n    const ALLOCATION_TYPES = ['total', 'labour', 'subcontractors', 'materials'];\n    const COST_TYPES = ['total', 'timesheets', 'bills'];\n\n    // Splitting by allocation type keeps the tree's totals agreeing with the\n    // invoicing report, which reads the same figures.\n    const invoiceableBlock = (metrics, scale) => {\n      const shares = {\n        total: 1,\n        labour: ratioOf(metrics.QUOTE_LABOUR, metrics.QUOTE_TOTAL),\n        subcontractors: ratioOf(metrics.QUOTE_SUBCONTRACTORS, metrics.QUOTE_TOTAL),\n        materials: ratioOf(metrics.QUOTE_MATERIALS, metrics.QUOTE_TOTAL)\n      };\n      return Object.fromEntries(COST_TYPES.map(costType => [costType, Object.fromEntries(ALLOCATION_TYPES.map(allocationType => [allocationType, {\n        invoiceable: metrics.INVOICEABLE_TOTAL * shares[allocationType] * scale,\n        invoiced: metrics.INVOICED_TOTAL * shares[allocationType] * scale\n      }]))]));\n    };\n    this.get(`${_environment.default.urls.apiV2Path}/invoices/invoice-item-totals`, (schema, request) => {\n      const ids = [].concat(request.queryParams['projectId[]'] ?? request.queryParams.projectId ?? []);\n      return ids.filter(Boolean).map(projectId => {\n        const project = schema.projects.find(projectId);\n        const metrics = (0, _figures.metricsFor)(schema, project ? [project] : []);\n        return {\n          projectId,\n          total: invoiceableBlock(metrics, 1),\n          direct: invoiceableBlock(metrics, 0.4)\n        };\n      });\n    });\n\n    // The product picker lists whatever this returns, so an empty page left its\n    // table, its search, its supplier filter and its three-state column sort all\n    // unexercised. jQuery serialises the nested payload as bracket keys, which\n    // is why the filter is read that way rather than as JSON.\n    const SEARCH_PRODUCTS = [{\n      id: 'p-1',\n      description: 'Anchor bolt M12',\n      supplierName: 'Placemakers',\n      sku: 'AB12',\n      unit: 'each',\n      unitPrice: 1.2\n    }, {\n      id: 'p-2',\n      description: 'Gib board 10mm',\n      supplierName: 'Mitre 10',\n      sku: 'GIB10',\n      unit: 'sheet',\n      unitPrice: 28.5\n    }, {\n      id: 'p-3',\n      description: 'Pine framing 90x45',\n      supplierName: 'Placemakers',\n      sku: 'PF9045',\n      unit: 'each',\n      unitPrice: 4.85\n    }];\n    function filterValuesFor(queryParams, group, field) {\n      return Object.entries(queryParams).filter(([key, value]) => key.startsWith(`filter[${group}]`) && key.endsWith('[field]') && value === field).map(([key]) => queryParams[key.replace('[field]', '[value]')]).filter(Boolean);\n    }\n    this.get(`${_environment.default.urls.apiV2Path}/search-products`, (schema, request) => {\n      const qp = request.queryParams || {};\n      let rows = [...SEARCH_PRODUCTS];\n      const terms = [...filterValuesFor(qp, 'or', 'sku'), ...filterValuesFor(qp, 'or', 'description')];\n      if (terms.length) {\n        const needle = terms[0].toLowerCase();\n        rows = rows.filter(row => `${row.sku} ${row.description}`.toLowerCase().includes(needle));\n      }\n      const [supplier] = filterValuesFor(qp, 'and', 'supplierName');\n      if (supplier) rows = rows.filter(row => row.supplierName === supplier);\n      const orderBy = qp.orderBy || 'description';\n      const direction = qp.orderByDirection === 'desc' ? -1 : 1;\n      rows.sort((a, b) => String(a[orderBy]).localeCompare(String(b[orderBy]), undefined, {\n        numeric: true\n      }) * direction);\n      return page(rows);\n    });\n    this.get(`${_environment.default.urls.apiV2Path}/search-suppliers`, () => page([{\n      id: 'sup-1',\n      name: 'Placemakers',\n      supplierName: 'Placemakers'\n    }, {\n      id: 'sup-2',\n      name: 'Mitre 10',\n      supplierName: 'Mitre 10'\n    }]));\n\n    // The announcements poll reads this path directly rather than through Ember\n    // Data, and expects a bare array whose items carry the per-user read and\n    // archived flags. Registered before the generic handler below, which shapes\n    // its response for the v2 REST adapter instead.\n    this.get(`${_environment.default.urls.apiV2Path}/resources/system-announcements`, schema => schema.systemAnnouncements.all().models.map(model => ({\n      id: model.id,\n      ...model.attrs\n    })));\n\n    // all version 2 endpoints\n    this.get(`${_environment.default.urls.apiV2Path}/resources/:type`, _v2Resources.default);\n    this.get(`${_environment.default.urls.apiV2Path}/resources/:type/:id`, _v2Resources.v2ResourceResponder);\n  }\n  function ratioOf(part, total) {\n    return total ? part / total : 0;\n  }\n\n  // The two task-cost endpoints are asked for a set of ids as\n  // filter[simple][_id][$in]. Echoing those back keeps a fixture from having to\n  // know which tasks a page happens to load.\n  function requestedTaskIds(request) {\n    const raw = request.queryParams || {};\n\n    // jQuery serialises the id list as filter[simple][_id][$in][]=1&...=2, so\n    // the value may already be an array.\n    const ids = Object.entries(raw).filter(([key]) => key.includes('_id') && key.includes('$in')).flatMap(([, value]) => [].concat(value));\n    if (ids.length) return ids;\n    try {\n      const filter = JSON.parse(raw.filter ?? '{}');\n      return filter?.simple?._id?.$in ?? [];\n    } catch {\n      return [];\n    }\n  }\n});","define(\"portal/mirage/demo/figures\", [\"exports\", \"portal/mirage/demo/random\", \"portal/mirage/demo/vocabulary\"], function (_exports, _random, _vocabulary) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.LABOUR_RATE = _exports.EMPTY = void 0;\n  _exports.baseFor = baseFor;\n  _exports.deriveMetrics = deriveMetrics;\n  _exports.metricsFor = metricsFor;\n  _exports.metricsForTasks = metricsForTasks;\n  _exports.resetFigures = resetFigures;\n  0; //eaimeta@70e063a35619d71f0,\"portal/mirage/demo/random\",0,\"portal/mirage/demo/vocabulary\"eaimeta@70e063a35619d71f\n  // The figures behind every report. Primitives are generated per task in the\n  // same shape the real engine's getTasksData returns, summed up the tree, and\n  // only then turned into metrics using the engine's own formulas — so a\n  // project's totals are exactly its tasks' totals and every percentage on\n  // screen agrees with the dollars beside it.\n  //\n  // See portal-api src/app/controllers/report-engine/metrics for the originals.\n\n  const COST_TYPES = ['labour', 'materials', 'subcontractors', 'sums'];\n  const SERIES = ['Budget', 'Actual', 'ForecastBudget', 'Quote', 'Chargeup', 'ForecastChargeup', 'ForecastQuote', 'CostPlusForecastQuote', 'FixedPriceQuote'];\n  const SCALARS = ['labourHoursActual', 'labourHoursBudget', 'labourHoursForecastBudget', 'labourTimesheetCost', 'labourInvoiceCost', 'invoiced', 'invoiceable'];\n  const LABOUR_RATE = _exports.LABOUR_RATE = 42;\n\n  // How far a stage's ramp spreads beyond its own slice of the programme.\n  const TRADE_OVERLAP = 2.4;\n  const EMPTY = _exports.EMPTY = (() => {\n    const empty = {};\n    for (const costType of COST_TYPES) for (const series of SERIES) empty[`${costType}${series}`] = 0;\n    for (const key of SCALARS) empty[key] = 0;\n    return empty;\n  })();\n  const KEYS = Object.keys(EMPTY);\n  const memo = new Map();\n  function addBases(bases) {\n    const total = {\n      ...EMPTY\n    };\n    for (const base of bases) for (const key of KEYS) total[key] += base[key] || 0;\n    return total;\n  }\n\n  // A report asks for figures as at a date. Treat a project's curated\n  // completion as where it stands today and wind it back pro-rata for anything\n  // earlier, so the date pickers on these pages actually move the numbers.\n  function completionAt(profile, project, asOf) {\n    if (!asOf) return profile.completion;\n    const start = project.startDate ? new Date(project.startDate).getTime() : null;\n    const now = Date.now();\n    if (!start || asOf >= now) return profile.completion;\n    if (asOf <= start) return 0;\n    return (0, _random.clamp)(profile.completion * ((asOf - start) / (now - start)), 0, 1);\n  }\n  function projectProfile(project) {\n    const curated = _vocabulary.PROJECTS.find(p => p.name === project.name);\n    if (curated) return curated;\n    const rng = (0, _random.seededRandom)(`project:${project.id}`);\n    return {\n      value: Math.round((0, _random.between)(rng, 180000, 1500000)),\n      completion: project.status === 'CLOSED' ? 1 : (0, _random.between)(rng, 0.1, 0.95),\n      contractType: project.contractType || 'FIXED_PRICE'\n    };\n  }\n  function orderedTasks(schema, projectId) {\n    return schema.tasks.where({\n      projectId\n    }).models.slice().sort((a, b) => {\n      const byIndex = (a.sortIndex ?? 0) - (b.sortIndex ?? 0);\n      if (byIndex) return byIndex;\n      return String(a.id).localeCompare(String(b.id), undefined, {\n        numeric: true\n      });\n    });\n  }\n  function stageFor(index) {\n    return _vocabulary.TASK_STAGES[index % _vocabulary.TASK_STAGES.length];\n  }\n\n  // `siblings` is passed in when a whole project is being rolled up. Looking it\n  // up per task instead means materialising every task in the world once per\n  // task, which is what made seeding the demo world take ten seconds.\n  function taskBase(schema, task, asOf, siblings) {\n    const project = task.project;\n    if (!project) return {\n      ...EMPTY\n    };\n    const profile = projectProfile(project);\n    const completion = completionAt(profile, project, asOf);\n    siblings = siblings || orderedTasks(schema, project.id);\n    const index = Math.max(0, siblings.findIndex(sibling => sibling.id === task.id));\n    const stages = siblings.map((_, i) => stageFor(i));\n    const totalWeight = stages.reduce((sum, stage) => sum + stage.weight, 0) || 1;\n    const stage = stages[index] || stageFor(index);\n    const weight = stage.weight / totalWeight;\n    const before = stages.slice(0, index).reduce((sum, s) => sum + s.weight, 0) / totalWeight;\n    const rng = (0, _random.seededRandom)(`task:${project.id}:${task.id}`);\n    const margin = (0, _random.between)((0, _random.seededRandom)(`margin:${project.id}`), 0.15, 0.26);\n    const fixedPrice = (profile.contractType || 'FIXED_PRICE') === 'FIXED_PRICE';\n    const quoteTotal = profile.value * weight;\n    const budgetTotal = quoteTotal * (1 - margin);\n\n    // Where this stage sits on the project's S-curve. Trades overlap on a real\n    // site — framing starts before the slab crew have finished — so each stage\n    // ramps across a window wider than its own slice, which leaves several\n    // tasks part-done at any moment rather than exactly one.\n    const span = weight * TRADE_OVERLAP;\n    const rampStart = before - (span - weight) / 2;\n    const progress = (0, _random.clamp)((completion - rampStart) / span, 0, 1);\n\n    // Some stages run over and some under. That spread is the whole point of a\n    // variance column.\n    const efficiency = (0, _random.between)(rng, 0.88, 1.14);\n    const runOut = progress > 0.05 ? efficiency : (0, _random.between)(rng, 0.96, 1.06);\n    const markup = 1 / (1 - margin);\n\n    // A stage can be finished on site while the last supplier invoices are\n    // still to land, so recognised cost trails physical progress. Without this\n    // a finished task's forecast equals its actual to the cent, and every\n    // \"forecast used\" cell in a breakdown reads exactly 100%.\n    const outstanding = progress >= 1 ? (0, _random.between)(rng, 0, 0.06) : 0;\n    const recognised = progress * (1 - outstanding);\n    const invoicedShare = (0, _random.clamp)(recognised - (0, _random.between)(rng, 0.02, 0.18), 0, 1);\n    const base = {\n      ...EMPTY\n    };\n    for (const costType of COST_TYPES) {\n      const share = stage.mix[costType] || 0;\n      if (!share) continue;\n      const budget = budgetTotal * share;\n      const quote = quoteTotal * share;\n      const actual = budget * recognised * efficiency;\n      const forecastBudget = actual + budget * (1 - recognised) * runOut;\n      const chargeup = actual * markup;\n      const forecastChargeup = forecastBudget * markup;\n      base[`${costType}Budget`] = (0, _random.money)(budget);\n      base[`${costType}Actual`] = (0, _random.money)(actual);\n      base[`${costType}ForecastBudget`] = (0, _random.money)(forecastBudget);\n      base[`${costType}Quote`] = (0, _random.money)(quote);\n      base[`${costType}Chargeup`] = (0, _random.money)(chargeup);\n      base[`${costType}ForecastChargeup`] = (0, _random.money)(forecastChargeup);\n      base[`${costType}ForecastQuote`] = (0, _random.money)(fixedPrice ? quote : forecastChargeup);\n      base[`${costType}FixedPriceQuote`] = (0, _random.money)(fixedPrice ? quote : 0);\n      base[`${costType}CostPlusForecastQuote`] = (0, _random.money)(fixedPrice ? 0 : forecastChargeup);\n    }\n    base.labourHoursBudget = Math.round(base.labourBudget / LABOUR_RATE);\n    base.labourHoursActual = Math.round(base.labourActual / LABOUR_RATE);\n    base.labourHoursForecastBudget = Math.round(base.labourForecastBudget / LABOUR_RATE);\n    base.labourTimesheetCost = base.labourActual;\n    base.labourInvoiceCost = 0;\n    base.invoiceable = (0, _random.money)(quoteTotal * progress);\n    base.invoiced = (0, _random.money)(quoteTotal * invoicedShare);\n    return base;\n  }\n  function projectBase(schema, project, asOf) {\n    const tasks = orderedTasks(schema, project.id);\n    if (!tasks.length) return {\n      ...EMPTY\n    };\n    return addBases(tasks.map(task => baseFor(schema, task, asOf, tasks)));\n  }\n  function entityBase(schema, entity, asOf) {\n    const projects = schema.projects.where({\n      entityId: entity.id\n    }).models;\n    return addBases(projects.map(project => baseFor(schema, project, asOf)));\n  }\n\n  // A timesheet, a bill item or an invoice line carries its own figure rather\n  // than deriving one from the S-curve — the cost report lists them one per row\n  // and totals them in its footer, so they have to contribute to the same base\n  // the rolled-up metrics come from.\n  function timesheetBase(timesheet) {\n    const hours = (Number(timesheet.duration) || 0) / 60;\n    const rate = Number(timesheet.costRate ?? timesheet.payRate) || LABOUR_RATE;\n    const cost = (0, _random.money)(hours * rate);\n    return {\n      ...EMPTY,\n      labourActual: cost,\n      labourTimesheetCost: cost,\n      labourHoursActual: hours\n    };\n  }\n  function billItemBase(view) {\n    const value = (0, _random.money)(Number(view.value) || 0);\n    const series = view.allocationType === 'SUBCONTRACTORS' ? 'subcontractorsActual' : 'materialsActual';\n    return {\n      ...EMPTY,\n      [series]: value\n    };\n  }\n  function invoiceItemBase(view) {\n    return {\n      ...EMPTY,\n      invoiced: (0, _random.money)(Number(view.value) || 0)\n    };\n  }\n  function baseFor(schema, record, asOf, siblings) {\n    if (!record) return {\n      ...EMPTY\n    };\n    switch (record.modelName) {\n      // Only the leaf is worth caching. Rolling the levels above it up on every\n      // call is cheap, and it means a project added through the UI shows up in\n      // the company totals straight away.\n      case 'task':\n        return memoized(`${record.id}:${asOf || 'now'}`, () => taskBase(schema, record, asOf, siblings));\n      case 'project':\n        return projectBase(schema, record, asOf);\n      case 'entity':\n        return entityBase(schema, record, asOf);\n      case 'timesheet':\n        return timesheetBase(record);\n      case 'bill-item-view':\n        return billItemBase(record);\n      case 'invoice-item-view':\n        return invoiceItemBase(record);\n      default:\n        return {\n          ...EMPTY\n        };\n    }\n  }\n  function memoized(key, build) {\n    if (!memo.has(key)) memo.set(key, build());\n    return memo.get(key);\n  }\n  function resetFigures() {\n    memo.clear();\n  }\n  function sum(base, series) {\n    return COST_TYPES.reduce((total, costType) => total + base[`${costType}${series}`], 0);\n  }\n\n  // `x / (y || Infinity)` is the engine's own guard against dividing by zero.\n  function ratio(numerator, denominator) {\n    const value = numerator / (denominator || Infinity);\n    return Number.isFinite(value) ? value : 0;\n  }\n\n  // The WIP report builds its own forecast rather than using ForecastBudget.\n  function wipPosition(base) {\n    const forecastLabour = base.labourHoursForecastBudget * (base.labourTimesheetCost / base.labourHoursActual) + base.labourInvoiceCost || 0;\n    const forecastCost = Math.max(base.labourActual || 0, forecastLabour) + Math.max(base.materialsActual, base.materialsBudget) + Math.max(base.subcontractorsActual, base.subcontractorsBudget) + base.sumsBudget;\n    const costTotal = sum(base, 'Actual');\n    const budgetUsed = ratio(costTotal, forecastCost);\n    const quoteTotal = sum(base, 'Quote');\n    return {\n      forecastCost,\n      budgetUsed,\n      position: quoteTotal * budgetUsed - base.invoiced,\n      forecastGrossProfit: quoteTotal - forecastCost || 0\n    };\n  }\n  function deriveMetrics(base) {\n    const budgetTotal = sum(base, 'Budget');\n    const costTotal = sum(base, 'Actual');\n    const forecastBudget = sum(base, 'ForecastBudget');\n    const quoteTotal = sum(base, 'Quote');\n    const chargeupTotal = sum(base, 'Chargeup');\n    const forecastChargeup = sum(base, 'ForecastChargeup');\n    const forecastQuote = sum(base, 'ForecastQuote');\n    const wip = wipPosition(base);\n    const grossProfit = quoteTotal - forecastBudget;\n    return {\n      BUDGET_TOTAL: budgetTotal,\n      BUDGET_LABOUR: base.labourBudget,\n      BUDGET_MATERIALS: base.materialsBudget,\n      BUDGET_SUBCONTRACTORS: base.subcontractorsBudget,\n      BUDGET_SUMS: base.sumsBudget,\n      BUDGET_TOTAL_USED: ratio(costTotal, budgetTotal),\n      BUDGET_LABOUR_USED: ratio(base.labourActual, base.labourBudget),\n      BUDGET_MATERIALS_USED: ratio(base.materialsActual, base.materialsBudget),\n      BUDGET_SUBCONTRACTORS_USED: ratio(base.subcontractorsActual, base.subcontractorsBudget),\n      COST_TOTAL: costTotal,\n      COST_LABOUR: base.labourActual,\n      COST_MATERIALS: base.materialsActual,\n      COST_SUBCONTRACTORS: base.subcontractorsActual,\n      PROJECT_TASKS_COST_TOTAL: costTotal,\n      QUOTE_TOTAL: quoteTotal,\n      QUOTE_LABOUR: base.labourQuote,\n      QUOTE_MATERIALS: base.materialsQuote,\n      QUOTE_SUBCONTRACTORS: base.subcontractorsQuote,\n      QUOTE_SUMS: base.sumsQuote,\n      QUOTE_TOTAL_USED: ratio(chargeupTotal, quoteTotal),\n      QUOTE_LABOUR_USED: ratio(base.labourChargeup, base.labourQuote),\n      QUOTE_MATERIALS_USED: ratio(base.materialsChargeup, base.materialsQuote),\n      QUOTE_SUBCONTRACTORS_USED: ratio(base.subcontractorsChargeup, base.subcontractorsQuote),\n      FIXED_PRICE_QUOTE_TOTAL: sum(base, 'FixedPriceQuote'),\n      CHARGEUP_TOTAL: chargeupTotal,\n      CHARGEUP_LABOUR: base.labourChargeup,\n      CHARGEUP_MATERIALS: base.materialsChargeup,\n      CHARGEUP_SUBCONTRACTORS: base.subcontractorsChargeup,\n      FORECAST_BUDGET: forecastBudget,\n      FORECAST_COST: forecastBudget,\n      FORECAST_LABOUR: base.labourForecastBudget,\n      FORECAST_MATERIALS: base.materialsForecastBudget,\n      FORECAST_SUBCONTRACTORS: base.subcontractorsForecastBudget,\n      FORECAST_CHARGEUP: forecastChargeup,\n      FORECAST_QUOTE: forecastQuote,\n      COST_PLUS_FORECAST_QUOTE: sum(base, 'CostPlusForecastQuote'),\n      FORECAST_QUOTE_NOT_INVOICED: forecastQuote - base.invoiced,\n      FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE: ratio(forecastQuote - base.invoiced, forecastQuote),\n      INVOICED_TOTAL: base.invoiced,\n      INVOICED_LABOUR: base.invoiced * ratio(base.labourQuote, quoteTotal),\n      INVOICED_MATERIALS: base.invoiced * ratio(base.materialsQuote, quoteTotal),\n      INVOICED_SUBCONTRACTORS: base.invoiced * ratio(base.subcontractorsQuote, quoteTotal),\n      INVOICEABLE_TOTAL: base.invoiceable,\n      INVOICEABLE_TOTAL_REMAINING: base.invoiceable - base.invoiced,\n      INVOICEABLE_CURRENTLY_TOTAL: Math.max(0, base.invoiceable - base.invoiced),\n      INVOICE_ITEM_VALUE: base.invoiced,\n      BILL_ITEM_VALUE: base.materialsActual + base.subcontractorsActual,\n      PROGRESS_TOTAL: ratio(base.labourHoursActual, base.labourHoursForecastBudget),\n      FINANCIAL_PROGRESS_TOTAL: ratio(costTotal, forecastBudget),\n      REMAINING_BUDGET: budgetTotal - costTotal || 0,\n      REMAINING_QUOTE: quoteTotal - chargeupTotal || 0,\n      REMAINING_MANHOURS: base.labourHoursForecastBudget - base.labourHoursActual,\n      VARIANCE_BUDGET: ratio(forecastBudget - budgetTotal, budgetTotal),\n      VARIANCE_QUOTE: ratio(forecastChargeup - quoteTotal, quoteTotal),\n      VARIANCE_MANHOURS: ratio(base.labourHoursForecastBudget - base.labourHoursBudget, base.labourHoursBudget),\n      GROSS_PROFIT: grossProfit,\n      GROSS_PROFIT_MARGIN: ratio(grossProfit, quoteTotal),\n      BUDGET_MANHOURS: base.labourHoursBudget,\n      BUDGET_MANHOURS_USED: ratio(base.labourHoursActual, base.labourHoursBudget),\n      COST_MANHOURS: base.labourHoursActual,\n      FORECAST_MANHOURS_TOTAL: base.labourHoursForecastBudget,\n      TIMESHEET_COST: base.labourTimesheetCost,\n      TIMESHEET_DURATION: base.labourHoursActual,\n      WORKERS_AVG_COST: _vocabulary.WORKERS.reduce((total, worker) => total + worker.payRate, 0) / _vocabulary.WORKERS.length,\n      WIP_ASSET: Math.max(0, wip.position),\n      WIP_LIABILITY: Math.min(0, wip.position),\n      WIP_POSITION: wip.position,\n      WIP_BUDGET_FORECAST_USED: wip.budgetUsed,\n      WIP_CURRENT_GROSS_PROFIT: wip.budgetUsed * wip.forecastGrossProfit,\n      WIP_FORECAST_GROSS_PROFIT: wip.forecastGrossProfit,\n      WIP_GROSS_PROFIT_MARGIN: ratio(wip.forecastGrossProfit, quoteTotal)\n    };\n  }\n\n  // For a caller that already holds a project's task list. Passing it in avoids\n  // re-querying the whole task collection once per task, which is the single\n  // most expensive thing the seed can do.\n  function metricsForTasks(schema, tasks) {\n    return deriveMetrics(addBases(tasks.map(task => baseFor(schema, task, undefined, tasks))));\n  }\n  function metricsFor(schema, records, asOf) {\n    const list = [].concat(records).filter(Boolean);\n    return deriveMetrics(addBases(list.map(record => baseFor(schema, record, asOf))));\n  }\n});","define(\"portal/mirage/demo/pdf\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.money = money;\n  _exports.supplierInvoicePdf = supplierInvoicePdf;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  // Supplier invoices as real one page PDFs, so a demo bill previews as the\n  // document it came from rather than as the one placeholder file every\n  // attachment in the app otherwise points at.\n  //\n  // Written out by hand. A PDF this plain is a few text operators and a table\n  // of byte offsets, which is cheaper than pulling a PDF library into the\n  // Mirage build. Everything written here is ASCII, and that is what lets the\n  // cross reference table count bytes with String#length.\n\n  const PAGE_WIDTH = 595;\n  const RULE = {\n    left: 40,\n    right: 555\n  };\n\n  // Helvetica averages about half its point size per character. Enough to\n  // right-align a column of figures; nothing here is typeset to the millimetre.\n  const AVERAGE_GLYPH = 0.5;\n  function ascii(text) {\n    return String(text ?? '').replace(/[^\\x20-\\x7e]/g, '-').replace(/([\\\\()])/g, '\\\\$1');\n  }\n  function text(value, x, y, {\n    size = 9,\n    bold = false,\n    align = 'left'\n  } = {}) {\n    const body = ascii(value);\n    const width = body.length * size * AVERAGE_GLYPH;\n    const left = align === 'right' ? x - width : x;\n    return `BT /${bold ? 'F2' : 'F1'} ${size} Tf ${left.toFixed(1)} ${y} Td (${body}) Tj ET`;\n  }\n  function line(y) {\n    return `0.75 w 0.6 0.6 0.6 RG ${RULE.left} ${y} m ${RULE.right} ${y} l S 0 0 0 RG`;\n  }\n  function money(value) {\n    const [whole, cents] = Math.abs(value).toFixed(2).split('.');\n    return `${value < 0 ? '-' : ''}$${whole.replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',')}.${cents}`;\n  }\n\n  // Six objects: catalogue, page tree, page, content stream, and the two fonts\n  // the content stream names.\n  function pdfDocument(content) {\n    const objects = ['<< /Type /Catalog /Pages 2 0 R >>', '<< /Type /Pages /Kids [3 0 R] /Count 1 >>', `<< /Type /Page /Parent 2 0 R /MediaBox [0 0 ${PAGE_WIDTH} 842] /Resources << /Font << /F1 5 0 R /F2 6 0 R >> >> /Contents 4 0 R >>`, `<< /Length ${content.length} >>\\nstream\\n${content}\\nendstream`, '<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica >>', '<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica-Bold >>'];\n    const offsets = [];\n    let pdf = '%PDF-1.4\\n';\n    objects.forEach((body, index) => {\n      offsets.push(pdf.length);\n      pdf += `${index + 1} 0 obj\\n${body}\\nendobj\\n`;\n    });\n    const startxref = pdf.length;\n    const entries = offsets.map(offset => `${String(offset).padStart(10, '0')} 00000 n \\n`).join('');\n    pdf += `xref\\n0 ${objects.length + 1}\\n0000000000 65535 f \\n${entries}`;\n    pdf += `trailer\\n<< /Size ${objects.length + 1} /Root 1 0 R >>\\n`;\n    pdf += `startxref\\n${startxref}\\n%%EOF\\n`;\n    return pdf;\n  }\n  function invoiceLayout(invoice) {\n    const {\n      supplier,\n      billTo,\n      items\n    } = invoice;\n    const ops = [text(supplier.name, RULE.left, 790, {\n      size: 17,\n      bold: true\n    }), text(supplier.address, RULE.left, 774), text(`GST ${supplier.taxNumber}`, RULE.left, 762), text('TAX INVOICE', RULE.right, 790, {\n      size: 15,\n      bold: true,\n      align: 'right'\n    }), text(invoice.billNumber, RULE.right, 772, {\n      size: 11,\n      align: 'right'\n    }), text('Charge to', RULE.left, 716, {\n      bold: true\n    }), text(billTo.name, RULE.left, 702), text(billTo.address, RULE.left, 690), text('Invoice date', 370, 716, {\n      bold: true\n    }), text(invoice.issueDate, 460, 716), text('Due', 370, 702, {\n      bold: true\n    }), text(invoice.dueDate, 460, 702), text('Your reference', 370, 690, {\n      bold: true\n    }), text(invoice.reference, 460, 690), line(660), text('Code', RULE.left, 646, {\n      bold: true\n    }), text('Description', 110, 646, {\n      bold: true\n    }), text('Qty', 370, 646, {\n      bold: true,\n      align: 'right'\n    }), text('Unit', 400, 646, {\n      bold: true\n    }), text('Price', 480, 646, {\n      bold: true,\n      align: 'right'\n    }), text('Amount', RULE.right, 646, {\n      bold: true,\n      align: 'right'\n    }), line(640)];\n    let y = 624;\n    for (const item of items) {\n      ops.push(text(item.code, RULE.left, y), text(item.description, 110, y), text(item.quantity, 370, y, {\n        align: 'right'\n      }), text(item.unit, 400, y), text(money(item.unitPrice), 480, y, {\n        align: 'right'\n      }), text(money(item.quantity * item.unitPrice), RULE.right, y, {\n        align: 'right'\n      }));\n      y -= 16;\n    }\n    y -= 8;\n    ops.push(line(y + 12));\n    for (const [label, value, bold] of [['Subtotal', invoice.subtotal, false], ['GST 15%', invoice.tax, false], ['Total due', invoice.subtotal + invoice.tax, true]]) {\n      ops.push(text(label, 480, y, {\n        bold,\n        align: 'right'\n      }), text(money(value), RULE.right, y, {\n        bold,\n        align: 'right'\n      }));\n      y -= 16;\n    }\n    ops.push(text(`Direct credit to ${supplier.bankAccount}. Please quote ${invoice.billNumber} with payment.`, RULE.left, 70, {\n      size: 8\n    }), text('Goods remain the property of the supplier until paid in full.', RULE.left, 58, {\n      size: 8\n    }));\n    return ops.join('\\n');\n  }\n\n  // Returned in the shape the attachment models read off `_meta`, so a caller\n  // can hand it straight to Mirage.\n  function supplierInvoicePdf(invoice) {\n    const pdf = pdfDocument(invoiceLayout(invoice));\n    return {\n      filename: `${invoice.billNumber}.pdf`,\n      extension: 'pdf',\n      fileType: 'application/pdf',\n      size: pdf.length,\n      href: `data:application/pdf;base64,${btoa(pdf)}`\n    };\n  }\n});","define(\"portal/mirage/demo/random\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.between = between;\n  _exports.clamp = clamp;\n  _exports.intBetween = intBetween;\n  _exports.money = money;\n  _exports.pick = pick;\n  _exports.seededRandom = seededRandom;\n  _exports.shuffle = shuffle;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  // Every figure in the demo world is a pure function of a record id, so a\n  // reshoot renders exactly the numbers the previous take did.\n  function seededRandom(seed) {\n    let h = 2166136261;\n    for (let i = 0; i < seed.length; i++) {\n      h ^= seed.charCodeAt(i);\n      h = Math.imul(h, 16777619);\n    }\n    return function next() {\n      h += 0x6d2b79f5;\n      let t = h;\n      t = Math.imul(t ^ t >>> 15, t | 1);\n      t ^= t + Math.imul(t ^ t >>> 7, t | 61);\n      return ((t ^ t >>> 14) >>> 0) / 4294967296;\n    };\n  }\n  function between(rng, min, max) {\n    return min + rng() * (max - min);\n  }\n  function intBetween(rng, min, max) {\n    return Math.floor(between(rng, min, max + 1));\n  }\n  function pick(rng, list) {\n    return list[intBetween(rng, 0, list.length - 1)];\n  }\n  function shuffle(rng, list) {\n    const out = [...list];\n    for (let i = out.length - 1; i > 0; i--) {\n      const j = intBetween(rng, 0, i);\n      [out[i], out[j]] = [out[j], out[i]];\n    }\n    return out;\n  }\n  function clamp(value, min, max) {\n    return Math.min(max, Math.max(min, value));\n  }\n  function money(value) {\n    return Math.round(value * 100) / 100;\n  }\n});","define(\"portal/mirage/demo/seed\", [\"exports\", \"portal/mirage/demo/random\", \"portal/mirage/attribute-names\", \"portal/mirage/demo/figures\", \"portal/mirage/demo/vocabulary\", \"portal/mirage/demo/pdf\"], function (_exports, _random, _attributeNames, _figures, _vocabulary, _pdf) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.SESSION_STORAGE_KEY = _exports.ADMIN = void 0;\n  _exports.authenticateDemoUser = authenticateDemoUser;\n  _exports.default = seedDemoWorld;\n  0; //eaimeta@70e063a35619d71f0,\"portal/mirage/demo/random\",0,\"portal/mirage/attribute-names\",0,\"portal/mirage/demo/figures\",0,\"portal/mirage/demo/vocabulary\",0,\"portal/mirage/demo/pdf\"eaimeta@70e063a35619d71f\n  const ADMIN = _exports.ADMIN = {\n    id: 'demo-admin',\n    email: 'demo@rangefield.co.nz',\n    firstName: 'Nathan',\n    lastName: 'Reid',\n    role: 'admin',\n    language: 'en-NZ',\n    hasAcceptedTerms: true,\n    canAccessPortal: true\n  };\n\n  // NOT the key app/session-stores/application.js asks for. That file sets\n  // `localStorageKey` through AdaptiveStore.extend(), but ESA assigns the same\n  // field in its own constructor, so the instance value shadows the prototype\n  // one and the override never takes effect — the store reads and writes ESA's\n  // default. Follow the store, not its stated intent.\n  const SESSION_STORAGE_KEY = _exports.SESSION_STORAGE_KEY = 'ember_simple_auth-session';\n\n  // `projectCount` trims the world without changing the shape of it — every\n  // record type is still built the same way. Tests use a few projects so a\n  // Mirage server, which costs a few milliseconds per record in a debug build,\n  // does not take longer to seed than the browser will wait.\n  function seedDemoWorld(server, {\n    projectCount\n  } = {}) {\n    (0, _figures.resetFigures)();\n    const rng = (0, _random.seededRandom)('demo-world');\n\n    // The operating entity is created first so the app lands on it rather than\n    // on the group parent.\n    // A builder that has been trading for years, not one incorporated this\n    // morning. The factory default is faker.date.recent(), and the reports link\n    // into the cost report with the entity's dateCreated as the range start —\n    // so a recent one collapses that range to a single day.\n    const tradingSince = yearsAgo(6);\n    const entity = server.create('entity', {\n      id: '1',\n      ..._vocabulary.ENTITY,\n      balanceDate: '03-31',\n      dateCreated: tradingSince,\n      dateModified: tradingSince,\n      system: '',\n      selfSignUp: false,\n      infoVerified: true\n    });\n    const parentEntity = server.create('entity', {\n      id: 'rangefield-group',\n      name: 'Rangefield Group',\n      region: 'NZL',\n      dateCreated: tradingSince\n    });\n    entity.update({\n      parent: parentEntity\n    });\n    seedPermissions(server, entity);\n    const user = server.create('user', ADMIN);\n    const workers = _vocabulary.WORKERS.map((worker, index) => {\n      const nextOfKin = _vocabulary.EMERGENCY_CONTACTS[index % _vocabulary.EMERGENCY_CONTACTS.length];\n      return server.create('worker', {\n        id: `w-${index + 1}`,\n        entity,\n        isActive: true,\n        isContractor: index >= _vocabulary.WORKERS.length - 2,\n        email: `${worker.firstName.toLowerCase()}@rangefield.co.nz`,\n        phoneNumber: `021 ${(0, _random.intBetween)(rng, 200, 999)} ${(0, _random.intBetween)(rng, 1000, 9999)}`,\n        address: `${(0, _random.intBetween)(rng, 1, 180)} ${(0, _random.pick)(rng, ['Thornbury', 'Fenwick', 'Bramble', 'Larkspur', 'Ashgrove'])} Road, Christchurch`,\n        language: 'en-NZ',\n        authCode: String(100000 + index),\n        costRate: worker.payRate,\n        emergencyContactNameOne: nextOfKin.name,\n        emergencyContactRelationshipOne: nextOfKin.relationship,\n        emergencyContactPhoneNumberOne: `027 ${(0, _random.intBetween)(rng, 200, 999)} ${(0, _random.intBetween)(rng, 1000, 9999)}`,\n        emergencyContactNameTwo: '',\n        emergencyContactRelationshipTwo: '',\n        emergencyContactPhoneNumberTwo: '',\n        smartPayrollEmployeeCode: '',\n        smartPayrollEmployeeDepartmentCode: '',\n        keypayEmployeeCode: '',\n        ...worker\n      });\n    });\n    const suppliers = _vocabulary.SUPPLIERS.map(({\n      name,\n      allocationType,\n      address\n    }, index) => server.create('contact', {\n      id: `sup-${index + 1}`,\n      entity,\n      name,\n      defaultBillAllocationType: allocationType,\n      contactPerson: 'Trade Desk',\n      contactEmail: `trade@${name.split(' ')[0].toLowerCase()}.co.nz`,\n      contactNumber: `03 ${(0, _random.intBetween)(rng, 340, 349)} ${(0, _random.intBetween)(rng, 1000, 9999)}`,\n      address,\n      eaccountsSupplierCode: `S${1000 + index}`,\n      aliases: [name.split(' ')[0]],\n      paymentTermType: 'OFFOLLOWINGMONTH',\n      paymentTermDay: 20,\n      salesPaymentTermType: 'DAYS_AFTER_ISSUE_DATE',\n      salesPaymentTermDay: 20\n    }));\n    const glAccounts = seedGlAccounts(server, entity);\n    seedProductLibrary(server, entity, suppliers);\n    const chosen = projectCount ? _vocabulary.PROJECTS.slice(0, projectCount) : _vocabulary.PROJECTS;\n    const sites = chosen.map((profile, index) => seedProject(server, {\n      entity,\n      profile,\n      index,\n      rng,\n      suppliers,\n      glAccounts\n    }));\n    seedTimesheets(server, {\n      entity,\n      sites,\n      workers,\n      rng\n    });\n    seedWorkerAllocations(server, {\n      entity\n    });\n    return {\n      entity,\n      parentEntity,\n      user,\n      projects: sites.map(site => site.project),\n      workers,\n      suppliers\n    };\n  }\n  function seedPermissions(server, entity) {\n    for (const flag of _attributeNames.ENTITY_ATTRIBUTES) {\n      // entityLinkedAttributes reads the relationship id, not the attribute\n      // string, so the id has to be the flag name itself.\n      const attribute = server.create('entity-attribute', {\n        id: flag,\n        attribute: flag,\n        deprecated: false\n      });\n      server.create('link-entity-to-entity-attribute', {\n        entity,\n        attribute\n      });\n    }\n    for (const attribute of _attributeNames.USER_ATTRIBUTES) server.create('user-attribute', {\n      id: attribute,\n      attribute,\n      deprecated: false\n    });\n  }\n  function seedGlAccounts(server, entity) {\n    const accounts = [{\n      id: 'gl-200',\n      code: '200',\n      name: 'Construction income'\n    }, {\n      id: 'gl-300',\n      code: '300',\n      name: 'Materials purchased'\n    }, {\n      id: 'gl-310',\n      code: '310',\n      name: 'Subcontractors'\n    }, {\n      id: 'gl-320',\n      code: '320',\n      name: 'Wages'\n    }];\n\n    // taxRate is a rate, but the factory fakes it as an integer up to 9999.\n    return accounts.map(account => server.create('gl-account', {\n      entity,\n      taxRate: 0.15,\n      ...account\n    }));\n  }\n\n  // The product library the pickers and the products screens read from.\n  function seedProductLibrary(server, entity, suppliers) {\n    _vocabulary.PRODUCTS.forEach((product, index) => server.create('entity-product', {\n      id: `prod-${index + 1}`,\n      entity,\n      supplier: suppliers[index % suppliers.length],\n      supplierName: suppliers[index % suppliers.length].name,\n      productLibraryIdentifier: product.sku,\n      currency: 'NZD',\n      manufacturer: '',\n      usage: '',\n      ...product\n    }));\n  }\n  function seedProject(server, context) {\n    const {\n      entity,\n      profile,\n      index,\n      rng,\n      suppliers,\n      glAccounts\n    } = context;\n    const BUILD_DAYS = 420;\n    const startDate = daysAgo(Math.max(3, Math.round(BUILD_DAYS * profile.completion)));\n    const remainingDays = Math.round(BUILD_DAYS * (1 - profile.completion));\n    // A finished job handed over a few weeks back, not one still due.\n    const completionDate = remainingDays > 0 ? daysAhead(remainingDays) : daysAgo(21);\n    const project = server.create('project', {\n      id: String(index + 1),\n      entity,\n      name: profile.name,\n      address: profile.address,\n      description: `${profile.contractType === 'FIXED_PRICE' ? 'Fixed price' : 'Cost plus'} build at ${profile.address}.`,\n      projectReference: `KB-${1000 + index + 1}`,\n      status: profile.status,\n      contractType: profile.contractType,\n      sortIndex: index + 1,\n      startDate,\n      completionDate,\n      dateCreated: startDate,\n      contactName: profile.client,\n      contactEmail: contactEmail(profile.client),\n      contactNumber: `03 ${(0, _random.intBetween)(rng, 300, 399)} ${(0, _random.intBetween)(rng, 1000, 9999)}`,\n      contactAddress: profile.address,\n      geofencingEnabled: true,\n      lat: -43.53 + (0, _random.between)(rng, -0.15, 0.15),\n      lng: 172.63 + (0, _random.between)(rng, -0.2, 0.2),\n      rad: 120\n    });\n    const client = server.create('contact', {\n      id: `client-${index + 1}`,\n      entity,\n      name: profile.client,\n      contactPerson: profile.client,\n      contactEmail: contactEmail(profile.client),\n      contactNumber: `03 ${(0, _random.intBetween)(rng, 300, 399)} ${(0, _random.intBetween)(rng, 1000, 9999)}`,\n      address: profile.address,\n      eaccountsSupplierCode: '',\n      aliases: [],\n      paymentTermType: 'OFFOLLOWINGMONTH',\n      paymentTermDay: 20,\n      salesPaymentTermType: 'DAYS_AFTER_ISSUE_DATE',\n      salesPaymentTermDay: 20\n    });\n    const tasks = _vocabulary.TASK_STAGES.map((stage, stageIndex) => server.create('task', {\n      id: `${project.id}-${stageIndex + 1}`,\n      entity,\n      project,\n      name: stage.name,\n      description: `${stage.name} — ${profile.name}`,\n      status: 'ACTIVE',\n      taskType: stage.taskType,\n      contractType: profile.contractType,\n      path: String(stageIndex),\n      sortIndex: stageIndex + 1,\n      timesheetStatus: 'ACTIVE',\n      pricingUsage: '',\n      isSchedulingEnabled: true,\n      isComplete: stageComplete(profile.completion, stageIndex),\n      dateCreated: startDate\n    }));\n    const totals = (0, _figures.metricsForTasks)(server.schema, tasks);\n    seedScheduling(server, {\n      entity,\n      project,\n      tasks,\n      startDate,\n      completionDate\n    });\n    seedInvoices(server, {\n      entity,\n      project,\n      tasks,\n      client,\n      rng,\n      glAccounts,\n      totals\n    });\n    seedBills(server, {\n      entity,\n      project,\n      tasks,\n      suppliers,\n      rng,\n      glAccounts,\n      totals\n    });\n    seedPurchaseOrders(server, {\n      entity,\n      project,\n      suppliers,\n      rng\n    });\n    seedTaskProducts(server, {\n      entity,\n      tasks,\n      suppliers,\n      rng\n    });\n    server.create('estimate', {\n      id: `est-${project.id}`,\n      entity,\n      project,\n      name: `${profile.name} estimate`,\n      status: 'IMPORTED',\n      pricingMerchantName: 'PlaceMakers Riccarton',\n      dateCreated: startDate,\n      dateModified: startDate\n    });\n    return {\n      project,\n      tasks,\n      profile\n    };\n  }\n\n  // The programme behind the scheduling timeline. Stages run in order across\n  // the project's own build window, each one starting where the last finished,\n  // because the gantt chains them finish to start — bars that overlap their own\n  // dependency are the first thing Bryntum's engine reschedules out from under\n  // you on load.\n  function seedScheduling(server, context) {\n    const {\n      entity,\n      project,\n      tasks,\n      startDate,\n      completionDate\n    } = context;\n    const version = server.create('scheduling-version', {\n      id: `sv-${project.id}`,\n      entity,\n      project,\n      name: 'Programme',\n      versionNumber: 1\n    });\n    const days = Math.max(tasks.length, Math.round((completionDate - startDate) / DAY));\n    const total = _vocabulary.TASK_STAGES.reduce((sum, stage) => sum + stage.weight, 0);\n    let before = 0;\n    tasks.forEach((task, index) => {\n      const weight = (_vocabulary.TASK_STAGES[index]?.weight ?? 0) / total;\n      const from = workingDay(daysAhead(Math.round(days * before), startDate));\n      before += weight;\n      const finish = workingDay(daysAhead(Math.round(days * before), startDate));\n      // A stage narrow enough to round away would be a bar with no width.\n      const to = finish > from ? finish : workingDay(daysAhead(1, from));\n      server.create('scheduling-version-value', {\n        id: `svv-${task.id}`,\n        entity,\n        project,\n        task,\n        version,\n        name: task.name,\n        startDate: from,\n        completionDate: to\n      });\n    });\n  }\n\n  // Which workers a project is charged for. The timesheets already say who was\n  // on site; this is the same list, at the rate the job bills them out at.\n  function seedWorkerAllocations(server, {\n    entity\n  }) {\n    const seen = new Set();\n    for (const timesheet of server.schema.timesheets.all().models) {\n      const key = `${timesheet.projectId}:${timesheet.workerId}`;\n      if (!timesheet.projectId || !timesheet.workerId || seen.has(key)) continue;\n      seen.add(key);\n      server.create('worker-job-allocation', {\n        id: `wja-${timesheet.projectId}-${timesheet.workerId}`,\n        entity,\n        project: timesheet.project,\n        worker: timesheet.worker,\n        chargeOutRate: timesheet.chargeOutRate\n      });\n    }\n  }\n  function seedTaskProducts(server, {\n    entity,\n    tasks,\n    suppliers,\n    rng\n  }) {\n    for (const task of tasks.slice(0, 4)) {\n      for (let line = 0; line < (0, _random.intBetween)(rng, 1, 2); line++) {\n        const product = (0, _random.pick)(rng, _vocabulary.PRODUCTS);\n        const supplier = (0, _random.pick)(rng, suppliers);\n        const quantity = (0, _random.intBetween)(rng, 2, 40);\n        server.create('task-product', {\n          entity,\n          task,\n          supplier,\n          supplierName: supplier.name,\n          productLibraryIdentifier: product.sku,\n          quantity,\n          orderedQuantity: task.isComplete ? quantity : 0,\n          currency: 'NZD',\n          manufacturer: '',\n          usage: '',\n          ...product\n        });\n      }\n    }\n  }\n  function stageComplete(completion, stageIndex) {\n    const before = _vocabulary.TASK_STAGES.slice(0, stageIndex).reduce((sum, stage) => sum + stage.weight, 0);\n    return completion >= before + _vocabulary.TASK_STAGES[stageIndex].weight;\n  }\n\n  // Enough recent days that the timesheet screens have something to page\n  // through, weighted to the tasks that are actually in flight. Durations are\n  // minutes, which is what the timesheet model divides by 60 for its hours.\n  const MIN_LINE_MINUTES = 60;\n  const MAX_LINES = 4;\n  const DAY_MINUTES = [360, 420, 450, 480, 480, 510, 540];\n\n  // A worker's day, split across at most four tasks with nothing under an hour\n  // and every line a whole quarter of one.\n  function splitDay(rng, minutes, taskCount) {\n    const lines = Math.min(taskCount, (0, _random.intBetween)(rng, 1, MAX_LINES), Math.floor(minutes / MIN_LINE_MINUTES));\n    const durations = [];\n    let remaining = minutes;\n    for (let line = lines; line > 1; line--) {\n      const most = remaining - (line - 1) * MIN_LINE_MINUTES;\n      const duration = (0, _random.intBetween)(rng, MIN_LINE_MINUTES / 15, most / 15) * 15;\n      durations.push(duration);\n      remaining -= duration;\n    }\n    durations.push(remaining);\n    return durations;\n  }\n\n  // Dealt out across every site at once rather than per project: a worker can\n  // only be in one place on a Tuesday, and seeding each project on its own gave\n  // the same worker a full day on each of them — a thirty hour week view.\n  function seedTimesheets(server, context) {\n    const {\n      entity,\n      sites,\n      workers,\n      rng\n    } = context;\n    const running = sites.filter(site => site.profile.status !== 'CLOSED').map(site => ({\n      project: site.project,\n      tasks: site.tasks.filter(task => !task.isComplete).slice(0, MAX_LINES)\n    })).filter(site => site.tasks.length);\n    if (!running.length) return;\n    for (let day = 0; day < 14; day++) {\n      const date = daysAgo(day);\n      if ([0, 6].includes(date.getDay())) continue;\n\n      // At least one worker per site, so no job looks abandoned, and never the\n      // same worker twice in a day.\n      const onSite = (0, _random.shuffle)(rng, running);\n      const crew = (0, _random.shuffle)(rng, workers).slice(0, (0, _random.intBetween)(rng, Math.min(onSite.length, workers.length), workers.length));\n      crew.forEach((worker, index) => {\n        const site = onSite[index % onSite.length];\n        const tasks = (0, _random.shuffle)(rng, site.tasks);\n        const durations = splitDay(rng, (0, _random.pick)(rng, DAY_MINUTES), tasks.length);\n        durations.forEach((duration, line) => {\n          server.create('timesheet', {\n            entity,\n            project: site.project,\n            task: tasks[line],\n            worker,\n            date: isoDate(date),\n            duration,\n            payRate: worker.payRate,\n            costRate: worker.payRate,\n            chargeOutRate: worker.chargeOutRate,\n            note: (0, _random.pick)(rng, _vocabulary.TIMESHEET_NOTES),\n            reported: day > 6,\n            actionStatus: 'APPROVED',\n            dateCreated: date\n          });\n        });\n      });\n    }\n  }\n  function seedInvoices(server, context) {\n    const {\n      entity,\n      project,\n      tasks,\n      client,\n      rng,\n      glAccounts,\n      totals\n    } = context;\n    const invoiced = totals.INVOICED_TOTAL;\n    if (invoiced <= 0) return;\n    const count = (0, _random.intBetween)(rng, 2, 3);\n    const share = invoiced / count;\n    for (let index = 0; index < count; index++) {\n      const issueDate = index === count - 1 ? daysAgo((0, _random.intBetween)(rng, 1, 6)) : monthsAgo(count - index);\n      const invoice = server.create('invoice', {\n        id: `inv-${project.id}-${index + 1}`,\n        entity,\n        toContact: client,\n        invoiceNumber: `INV-${project.id}${String(index + 1).padStart(3, '0')}`,\n        status: index === count - 1 ? 'DRAFT' : 'APPROVED',\n        invoiceType: 'INVOICE',\n        issueDate,\n        dueDate: daysAhead(20, issueDate),\n        dateCreated: issueDate\n      });\n      const lines = (0, _random.intBetween)(rng, 1, 3);\n      let remaining = share;\n      for (let line = 0; line < lines; line++) {\n        const task = (0, _random.pick)(rng, tasks);\n        const value = line === lines - 1 ? remaining : (0, _random.money)(remaining / (lines - line));\n        remaining -= value;\n        const item = server.create('invoice-item', {\n          entity,\n          invoice,\n          glAccount: glAccounts[0],\n          code: `KB-${task.sortIndex}`,\n          description: task.name,\n          unit: 'each',\n          quantity: 1,\n          unitPrice: (0, _random.money)(value),\n          taxRate: 0.15,\n          sortIndex: line + 1,\n          allocationType: 'ALL',\n          allocationDate: issueDate,\n          dateCreated: issueDate\n        });\n        server.create('link-invoice-item-to-project', {\n          invoiceItem: item,\n          project,\n          value: (0, _random.money)(value)\n        });\n        server.create('link-invoice-item-to-task', {\n          invoiceItem: item,\n          task,\n          value: (0, _random.money)(value)\n        });\n      }\n    }\n  }\n\n  // A merchant orders a quantity of something at its own price; the total is\n  // whatever those lines add up to. Building the header first and inventing\n  // lines under it is what used to put a five figure sum on a box of nails and\n  // leave the bill's own items disagreeing with it.\n  function materialLines(rng) {\n    return (0, _random.shuffle)(rng, _vocabulary.PRODUCTS).slice(0, (0, _random.intBetween)(rng, 2, 6)).map(product => {\n      const [least, most] = _vocabulary.ORDER_QUANTITIES[product.unit] || [1, 10];\n      return {\n        code: product.sku,\n        description: product.description,\n        unit: product.unit,\n        quantity: (0, _random.intBetween)(rng, least, most),\n        // Trade pricing moves with the account and the week.\n        unitPrice: (0, _random.money)(product.unitPrice * (0, _random.between)(rng, 0.94, 1.07))\n      };\n    });\n  }\n\n  // A subcontractor claims a stage of work as a lump sum, so the quantity is\n  // always one and the price is the claim.\n  function subcontractLines(rng, supplier) {\n    const works = _vocabulary.SUBCONTRACT_WORKS[supplier.name] || [];\n    if (!works.length) return [];\n    return (0, _random.shuffle)(rng, works).slice(0, (0, _random.intBetween)(rng, 1, 2)).map(work => ({\n      code: '',\n      description: work.description,\n      unit: 'each',\n      quantity: 1,\n      unitPrice: Math.round((0, _random.between)(rng, work.value[0], work.value[1]) / 10) * 10\n    }));\n  }\n\n  // Bills are a sample of what a job accumulates, not a reconstruction of every\n  // dollar of it. Recognised cost still comes from the S-curve in figures.js —\n  // covering a project's whole spend at realistic bill sizes would take dozens\n  // of bills per project and several seconds to seed.\n  function seedBills(server, context) {\n    const {\n      entity,\n      project,\n      tasks,\n      suppliers,\n      rng,\n      glAccounts,\n      totals\n    } = context;\n    if (totals.COST_MATERIALS + totals.COST_SUBCONTRACTORS <= 0) return;\n\n    // Nothing gets billed against a stage the crew has not reached.\n    const lastComplete = tasks.reduce((last, task, index) => task.isComplete ? index : last, -1);\n    const started = tasks.slice(0, lastComplete + 2);\n    if (!started.length) return;\n    const count = (0, _random.intBetween)(rng, 3, 6);\n    for (let index = 0; index < count; index++) {\n      const supplier = (0, _random.pick)(rng, suppliers);\n      const materials = supplier.defaultBillAllocationType === 'MATERIALS';\n      const lines = materials ? materialLines(rng) : subcontractLines(rng, supplier);\n      if (!lines.length) continue;\n      const issueDate = daysAgo((0, _random.intBetween)(rng, 1, 90));\n      const subtotal = (0, _random.money)(lines.reduce((total, item) => total + item.quantity * item.unitPrice, 0));\n      const billNumber = `${supplier.name.split(' ')[0].toUpperCase()}-${(0, _random.intBetween)(rng, 10000, 99999)}`;\n      const task = (0, _random.pick)(rng, started);\n      const bill = server.create('bill', {\n        id: `bill-${project.id}-${index + 1}`,\n        entity,\n        issuerContact: supplier,\n        issuer: supplier.name,\n        billNumber,\n        reference: project.projectReference,\n        // The most recent one is still sitting in the inbox unapproved, which\n        // is the state the bills screen is worth looking at in.\n        status: index === 0 ? 'DRAFT' : 'APPROVED',\n        allocationType: supplier.defaultBillAllocationType,\n        billType: 'BILL',\n        issueDate,\n        dueDate: twentiethOfNextMonth(issueDate),\n        subtotal,\n        taxAmount: (0, _random.money)(subtotal * 0.15),\n        source: 'MANUAL',\n        notes: '',\n        eaccountsFileName: '',\n        isAutoMapped: false,\n        dateCreated: issueDate,\n        dateModified: issueDate\n      });\n      lines.forEach((item, line) => {\n        server.create('bill-item', {\n          entity,\n          bill,\n          project,\n          task,\n          glAccount: materials ? glAccounts[1] : glAccounts[2],\n          description: item.description,\n          productCode: item.code,\n          quantity: item.quantity,\n          unitPrice: item.unitPrice,\n          unitTaxAmount: (0, _random.money)(item.unitPrice * 0.15),\n          sortIndex: line + 1,\n          dateCreated: issueDate\n        });\n      });\n      seedBillAttachment(server, {\n        entity,\n        bill,\n        supplier,\n        project,\n        billNumber,\n        issueDate,\n        lines,\n        subtotal\n      });\n    }\n  }\n\n  // The attachment models read filename, fileType, size and href off `_meta`\n  // rather than off attributes of their own, and the app serializer maps the\n  // `_meta` attr to the payload key `meta` — which is exactly what Mirage\n  // camelizes `_meta` to. So seeding `_meta` is all it takes.\n  function seedBillAttachment(server, context) {\n    const {\n      entity,\n      bill,\n      supplier,\n      project,\n      billNumber,\n      issueDate,\n      lines\n    } = context;\n    const subtotal = context.subtotal;\n    server.create('bill-attachment', {\n      entity,\n      bill,\n      dateCreated: issueDate,\n      dateModified: issueDate,\n      _meta: (0, _pdf.supplierInvoicePdf)({\n        supplier: {\n          name: supplier.name,\n          address: supplier.address,\n          ..._vocabulary.SUPPLIERS.find(profile => profile.name === supplier.name)\n        },\n        billTo: {\n          name: _vocabulary.ENTITY.registeredName,\n          address: _vocabulary.ENTITY.billingAddress\n        },\n        billNumber,\n        issueDate: readableDate(issueDate),\n        dueDate: readableDate(twentiethOfNextMonth(issueDate)),\n        reference: project.projectReference,\n        items: lines,\n        subtotal,\n        tax: (0, _random.money)(subtotal * 0.15)\n      })\n    });\n  }\n  function seedPurchaseOrders(server, context) {\n    const {\n      entity,\n      project,\n      suppliers,\n      rng\n    } = context;\n    const count = (0, _random.intBetween)(rng, 1, 3);\n    for (let index = 0; index < count; index++) {\n      const supplier = (0, _random.pick)(rng, suppliers);\n      const placed = daysAgo((0, _random.intBetween)(rng, 1, 45));\n      const order = server.create('purchase-order', {\n        id: `po-${project.id}-${index + 1}`,\n        entity,\n        supplier,\n        purchaseOrderNumber: `PO-${project.id}${String(index + 1).padStart(3, '0')}`,\n        status: (0, _random.pick)(rng, ['DRAFT', 'APPROVED', 'SENT']),\n        address: project.address,\n        deliveryNote: 'Deliver to site, ring ahead.',\n        orderNote: project.name,\n        freightCharges: 85,\n        taxFreightCharges: (0, _random.money)(85 * 0.15),\n        dateOrderPlaced: placed,\n        requestedDeliveryDate: daysAhead((0, _random.intBetween)(rng, 2, 14), placed),\n        dateCreated: placed\n      });\n      for (let line = 0; line < (0, _random.intBetween)(rng, 2, 3); line++) {\n        const product = (0, _random.pick)(rng, _vocabulary.PRODUCTS);\n        const quantity = (0, _random.intBetween)(rng, 4, 60);\n        server.create('purchase-order-item', {\n          entity,\n          purchaseOrder: order,\n          sku: product.sku,\n          description: product.description,\n          unit: product.unit,\n          quantity,\n          deliveredQuantity: order.status === 'DRAFT' ? 0 : quantity,\n          unitPrice: product.unitPrice,\n          taxTotal: (0, _random.money)(product.unitPrice * quantity * 0.15),\n          sortIndex: line + 1\n        });\n      }\n    }\n  }\n  function contactEmail(name) {\n    const first = name.split(/[\\s&]+/)[0].toLowerCase().replace(/[^a-z]/g, '');\n    return `${first}@example.co.nz`;\n  }\n  function isoDate(date) {\n    return date.toISOString().slice(0, 10);\n  }\n  const DAY = 24 * 60 * 60 * 1000;\n  const MONTHS = 'Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec'.split(' ');\n\n  // The gantt's calendar is a five day week, so a bar that starts on a Saturday\n  // is one the engine moves the moment the chart loads.\n  function workingDay(date) {\n    const moved = new Date(date);\n    const shift = {\n      0: 1,\n      6: 2\n    }[moved.getDay()] || 0;\n    moved.setDate(moved.getDate() + shift);\n    return moved;\n  }\n  function readableDate(date) {\n    return `${date.getDate()} ${MONTHS[date.getMonth()]} ${date.getFullYear()}`;\n  }\n  function daysAgo(days, from = new Date()) {\n    const date = new Date(from);\n    date.setHours(0, 0, 0, 0);\n    date.setDate(date.getDate() - days);\n    return date;\n  }\n  function daysAhead(days, from = new Date()) {\n    return daysAgo(-days, from);\n  }\n  function monthsAgo(months, from = new Date()) {\n    const date = new Date(from);\n    date.setHours(0, 0, 0, 0);\n    date.setMonth(date.getMonth() - months);\n    return date;\n  }\n\n  // The trade terms every supplier here is seeded with.\n  function twentiethOfNextMonth(from) {\n    const due = new Date(from);\n    due.setHours(0, 0, 0, 0);\n    due.setDate(1);\n    due.setMonth(due.getMonth() + 1);\n    due.setDate(20);\n    return due;\n  }\n  function yearsAgo(years, from = new Date()) {\n    return monthsAgo(years * 12, from);\n  }\n\n  // Drops the app straight into the demo entity instead of the OIDC login flow,\n  // which has no server to talk to under Mirage.\n  function authenticateDemoUser() {\n    window.localStorage.setItem(SESSION_STORAGE_KEY, JSON.stringify({\n      authenticated: {\n        authenticator: 'authenticator:login-as',\n        access_token: 'demo',\n        token_type: 'bearer',\n        expires_in: 36000,\n        user: ADMIN\n      }\n    }));\n  }\n});","define(\"portal/mirage/demo/views\", [\"exports\", \"portal/mirage/demo/random\", \"portal/mirage/demo/vocabulary\"], function (_exports, _random, _vocabulary) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.accessLogViews = accessLogViews;\n  _exports.billItemViews = billItemViews;\n  _exports.invoiceItemViews = invoiceItemViews;\n  _exports.occupancyViews = occupancyViews;\n  _exports.timesheetNoteViews = timesheetNoteViews;\n  0; //eaimeta@70e063a35619d71f0,\"portal/mirage/demo/random\",0,\"portal/mirage/demo/vocabulary\"eaimeta@70e063a35619d71f\n  // The engine serves these from database views rather than resources Mirage\n  // models, so build them from the seeded workers instead.\n\n  function startOfToday() {\n    const today = new Date();\n    today.setHours(0, 0, 0, 0);\n    return today;\n  }\n  function siteVisits(projectId, days) {\n    const rng = (0, _random.seededRandom)(`access:${projectId}`);\n    const midnight = startOfToday();\n    const visits = [];\n    for (let day = 0; day < days; day++) {\n      const onSite = (0, _random.intBetween)(rng, 2, 4);\n      for (let visit = 0; visit < onSite; visit++) {\n        const worker = (0, _random.pick)(rng, _vocabulary.WORKERS);\n        const entry = new Date(midnight);\n        entry.setDate(entry.getDate() - day);\n        entry.setHours((0, _random.intBetween)(rng, 6, 8), (0, _random.intBetween)(rng, 0, 55));\n        const minutes = (0, _random.intBetween)(rng, 200, 560);\n        const exit = new Date(entry.getTime() + minutes * 60000);\n        visits.push({\n          id: `${projectId}-${day}-${visit}`,\n          actorName: `${worker.firstName} ${worker.lastName}`,\n          entryTime: entry,\n          exitTime: exit,\n          duration: {\n            hours: Math.floor(minutes / 60),\n            minutes: minutes % 60\n          }\n        });\n      }\n    }\n    return visits.sort((a, b) => b.entryTime - a.entryTime);\n  }\n  function accessLogViews(schema, filter) {\n    return siteVisits(filter?.project || 'all', 14);\n  }\n\n  // Who is on site right now — the same shape, trimmed to today's entries that\n  // have no exit yet.\n  function occupancyViews(schema, filter) {\n    return siteVisits(filter?.project || 'all', 1).slice(0, 3).map(visit => ({\n      ...visit,\n      exitTime: null,\n      duration: null\n    }));\n  }\n\n  // `*-views` are database views on the real API: one row per item with the\n  // parent's columns flattened onto it. Mirage models the underlying records, so\n  // flatten them the same way rather than teaching the responder to walk\n  // relationships that only exist on one side.\n\n  function billItemViews(schema) {\n    return schema.billItems.all().models.map(item => {\n      const bill = item.bill;\n      return {\n        modelName: 'bill-item-view',\n        id: item.id,\n        bill: item.billId,\n        billNumber: bill?.billNumber,\n        billName: bill?.reference,\n        issuer: bill?.issuer,\n        status: bill?.status,\n        allocationType: bill?.allocationType,\n        issueDate: bill?.issueDate,\n        dateCreated: bill?.dateCreated,\n        description: item.description,\n        productCode: item.productCode,\n        project: item.projectId,\n        projectName: item.project?.name,\n        task: item.taskId,\n        taskName: item.task?.name,\n        quantity: item.quantity,\n        unitPrice: item.unitPrice,\n        value: (item.quantity || 0) * (item.unitPrice || 0)\n      };\n    });\n  }\n  function invoiceItemViews(schema) {\n    return schema.invoiceItems.all().models.map(item => {\n      const invoice = item.invoice;\n      const link = schema.linkInvoiceItemToProjects?.where({\n        invoiceItemId: item.id\n      }).models?.[0];\n      return {\n        modelName: 'invoice-item-view',\n        id: item.id,\n        invoice: item.invoiceId,\n        invoiceNumber: invoice?.invoiceNumber,\n        status: invoice?.status,\n        issueDate: invoice?.issueDate,\n        dateCreated: invoice?.dateCreated,\n        description: item.description,\n        code: item.code,\n        project: link?.projectId,\n        projectName: link?.project?.name,\n        quantity: item.quantity,\n        unitPrice: item.unitPrice,\n        value: (item.quantity || 0) * (item.unitPrice || 0)\n      };\n    });\n  }\n  function timesheetNoteViews(schema) {\n    return schema.timesheets.all().models.map(timesheet => ({\n      modelName: 'timesheet-note-view',\n      id: timesheet.id,\n      timesheet: timesheet.id,\n      note: timesheet.note,\n      noteType: 'TIMESHEET',\n      date: timesheet.date,\n      dateCreated: timesheet.dateCreated,\n      duration: timesheet.duration,\n      project: timesheet.projectId,\n      task: timesheet.taskId,\n      worker: timesheet.workerId\n    }));\n  }\n});","define(\"portal/mirage/demo/vocabulary\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.WORKERS = _exports.TIMESHEET_NOTES = _exports.TASK_STAGES = _exports.SUPPLIERS = _exports.SUBCONTRACT_WORKS = _exports.PROJECTS = _exports.PRODUCTS = _exports.ORDER_QUANTITIES = _exports.ENTITY = _exports.EMERGENCY_CONTACTS = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  // A Bay of Plenty residential builder. Curated rather than generated so the\n  // names on screen read as a real job list.\n\n  const ENTITY = _exports.ENTITY = {\n    name: 'Rangefield Construction',\n    registeredName: 'Rangefield Construction Limited',\n    address: '9 Foundry Way, Sockburn, Christchurch 8042',\n    billingAddress: 'PO Box 4021, Christchurch 8140',\n    contactEmail: 'accounts@rangefield.co.nz',\n    contactNumber: '03 341 8840',\n    businessNumber: '9429041234567',\n    taxNumber: '114-829-361',\n    // Three letters: services/number-format.js keys its currency table on\n    // NZL/AUS/USA/GBR, and an unrecognised region renders currency as undefined,\n    // which throws out of Intl and takes the whole report down.\n    region: 'NZL'\n  };\n\n  // Real suburbs so the world reads as somewhere, invented street names so no\n  // address resolves to a house someone actually lives in. Clients are people\n  // except where a development needs an entity, and those are named after the\n  // invented streets rather than risking a real company.\n  const PROJECTS = _exports.PROJECTS = [{\n    name: 'Whitmore Residence',\n    address: '42 Thornbury Place, Halswell',\n    client: 'Andrea Whitmore',\n    contractType: 'FIXED_PRICE',\n    status: 'OPEN',\n    value: 845000,\n    completion: 0.72\n  }, {\n    name: 'Marlow Grove Townhouses',\n    address: '8 Marlow Grove, Addington',\n    client: 'Marlow Grove Developments Ltd',\n    contractType: 'FIXED_PRICE',\n    status: 'OPEN',\n    value: 1380000,\n    completion: 0.48\n  }, {\n    name: 'Harrison Villa Renovation',\n    address: '15 Fenwick Rise, St Albans',\n    client: 'Mark & Julia Harrison',\n    contractType: 'COST_PLUS',\n    status: 'OPEN',\n    value: 412000,\n    completion: 0.86\n  }, {\n    name: 'Prebbleton Farmhouse',\n    address: '220 Larkspur Drive, Prebbleton',\n    client: 'R & S Ellery',\n    contractType: 'COST_PLUS',\n    status: 'OPEN',\n    value: 690000,\n    completion: 0.34\n  }, {\n    name: 'Rolleston Show Home',\n    address: '3 Halcyon Drive, Rolleston',\n    client: 'Rangefield Construction',\n    contractType: 'FIXED_PRICE',\n    status: 'OPEN',\n    value: 735000,\n    completion: 0.91\n  }, {\n    name: 'Sumner Beach House',\n    address: '61 Corsair Lane, Sumner',\n    client: 'Nathan & Kate Foley',\n    contractType: 'FIXED_PRICE',\n    status: 'OPEN',\n    value: 968000,\n    completion: 0.24\n  }, {\n    name: 'Wigram Duplex',\n    address: '27 Elmsleigh Place, Wigram',\n    client: 'Elmsleigh Holdings Ltd',\n    contractType: 'FIXED_PRICE',\n    status: 'OPEN',\n    value: 1120000,\n    completion: 0.61\n  }, {\n    name: 'Sinclair Extension',\n    address: '9 Bramble Way, Merivale',\n    client: 'Gordon Sinclair',\n    contractType: 'COST_PLUS',\n    status: 'HELD',\n    value: 268000,\n    completion: 0.41\n  }, {\n    name: 'Wrenbury Lane Stage 2',\n    address: '140 Wrenbury Lane, Lincoln',\n    client: 'Wrenbury Land Company Ltd',\n    contractType: 'FIXED_PRICE',\n    status: 'OPEN',\n    value: 1640000,\n    completion: 0.01\n  }, {\n    name: 'Fairhaven Family Home',\n    address: '52 Fairhaven Rise, Rolleston',\n    client: 'The Ashcroft Family Trust',\n    contractType: 'FIXED_PRICE',\n    status: 'CLOSED',\n    value: 792000,\n    completion: 1\n  }, {\n    name: 'Papanui Kitchen & Bathroom',\n    address: '12 Ashgrove Terrace, Papanui',\n    client: 'Helen Bright',\n    contractType: 'COST_PLUS',\n    status: 'CLOSED',\n    value: 186000,\n    completion: 1\n  }, {\n    name: 'Pipers Way Workshop',\n    address: '1180 Pipers Way, Kaiapoi',\n    client: 'Pipers Way Storage Ltd',\n    contractType: 'FIXED_PRICE',\n    status: 'OPEN',\n    value: 524000,\n    completion: 0.55\n  }];\n\n  // Weights sum to 1 and drive both the value of a stage and where a project's\n  // completion has got to, so an in-flight job shows finished early stages and\n  // untouched late ones.\n  //\n  // Deliberately no prime-cost sums: the report engine has no COST_SUMS metric,\n  // so a breakdown's Actual row leaves the Sums column blank while COST_TOTAL\n  // still includes it — the row stops adding up on screen.\n  const TASK_STAGES = _exports.TASK_STAGES = [{\n    name: 'Site Preparation',\n    weight: 0.04,\n    taskType: 'TASK',\n    mix: {\n      labour: 0.35,\n      materials: 0.15,\n      subcontractors: 0.5\n    }\n  }, {\n    name: 'Foundations & Slab',\n    weight: 0.1,\n    taskType: 'SUBCONTRACTOR',\n    mix: {\n      labour: 0.15,\n      materials: 0.35,\n      subcontractors: 0.5\n    }\n  }, {\n    name: 'Framing',\n    weight: 0.12,\n    taskType: 'TASK',\n    mix: {\n      labour: 0.45,\n      materials: 0.5,\n      subcontractors: 0.05\n    }\n  }, {\n    name: 'Roofing',\n    weight: 0.07,\n    taskType: 'SUBCONTRACTOR',\n    mix: {\n      labour: 0.05,\n      materials: 0.35,\n      subcontractors: 0.6\n    }\n  }, {\n    name: 'Windows & Exterior Doors',\n    weight: 0.05,\n    taskType: 'TASK',\n    mix: {\n      labour: 0.2,\n      materials: 0.8,\n      subcontractors: 0\n    }\n  }, {\n    name: 'Cladding',\n    weight: 0.08,\n    taskType: 'TASK',\n    mix: {\n      labour: 0.4,\n      materials: 0.5,\n      subcontractors: 0.1\n    }\n  }, {\n    name: 'Electrical Rough-in',\n    weight: 0.05,\n    taskType: 'SUBCONTRACTOR',\n    mix: {\n      labour: 0,\n      materials: 0.1,\n      subcontractors: 0.9\n    }\n  }, {\n    name: 'Plumbing Rough-in',\n    weight: 0.05,\n    taskType: 'SUBCONTRACTOR',\n    mix: {\n      labour: 0,\n      materials: 0.15,\n      subcontractors: 0.85\n    }\n  }, {\n    name: 'Insulation',\n    weight: 0.03,\n    taskType: 'TASK',\n    mix: {\n      labour: 0.4,\n      materials: 0.6,\n      subcontractors: 0\n    }\n  }, {\n    name: 'Gib & Stopping',\n    weight: 0.07,\n    taskType: 'SUBCONTRACTOR',\n    mix: {\n      labour: 0,\n      materials: 0.25,\n      subcontractors: 0.75\n    }\n  }, {\n    name: 'Interior Joinery',\n    weight: 0.06,\n    taskType: 'TASK',\n    mix: {\n      labour: 0.4,\n      materials: 0.6,\n      subcontractors: 0\n    }\n  }, {\n    name: 'Kitchen Installation',\n    weight: 0.07,\n    taskType: 'TASK',\n    mix: {\n      labour: 0.2,\n      materials: 0.7,\n      subcontractors: 0.1\n    }\n  }, {\n    name: 'Bathroom Fitout',\n    weight: 0.06,\n    taskType: 'TASK',\n    mix: {\n      labour: 0.15,\n      materials: 0.55,\n      subcontractors: 0.3\n    }\n  }, {\n    name: 'Painting',\n    weight: 0.05,\n    taskType: 'SUBCONTRACTOR',\n    mix: {\n      labour: 0,\n      materials: 0.2,\n      subcontractors: 0.8\n    }\n  }, {\n    name: 'Flooring',\n    weight: 0.05,\n    taskType: 'SUBCONTRACTOR',\n    mix: {\n      labour: 0,\n      materials: 0.5,\n      subcontractors: 0.5\n    }\n  }, {\n    name: 'Landscaping',\n    weight: 0.03,\n    taskType: 'SUBCONTRACTOR',\n    mix: {\n      labour: 0.1,\n      materials: 0.2,\n      subcontractors: 0.7\n    }\n  }, {\n    name: 'Final Clean & Handover',\n    weight: 0.02,\n    taskType: 'MILESTONE',\n    mix: {\n      labour: 0.6,\n      materials: 0,\n      subcontractors: 0.4\n    }\n  }];\n  const WORKERS = _exports.WORKERS = [{\n    firstName: 'Dave',\n    lastName: 'Whitcombe',\n    payRate: 46,\n    chargeOutRate: 78\n  }, {\n    firstName: 'Sione',\n    lastName: 'Tuala',\n    payRate: 41,\n    chargeOutRate: 72\n  }, {\n    firstName: 'Ben',\n    lastName: 'Karaitiana',\n    payRate: 38,\n    chargeOutRate: 68\n  }, {\n    firstName: 'Marcus',\n    lastName: 'Reed',\n    payRate: 44,\n    chargeOutRate: 75\n  }, {\n    firstName: 'Jimmy',\n    lastName: 'Ngata',\n    payRate: 33,\n    chargeOutRate: 62\n  }, {\n    firstName: 'Ashleigh',\n    lastName: 'Cooper',\n    payRate: 36,\n    chargeOutRate: 65\n  }, {\n    firstName: 'Tama',\n    lastName: 'Rewiti',\n    payRate: 29,\n    chargeOutRate: 55\n  }, {\n    firstName: 'Cody',\n    lastName: 'Fraser',\n    payRate: 27,\n    chargeOutRate: 52\n  }, {\n    firstName: 'Hemi',\n    lastName: 'Walker',\n    payRate: 43,\n    chargeOutRate: 74\n  }, {\n    firstName: 'Pete',\n    lastName: 'Vandermeer',\n    payRate: 48,\n    chargeOutRate: 82\n  }];\n\n  // allocationType decides whether a bill lands in materials or subcontractors,\n  // which is what splits the cost and forecast breakdowns. taxNumber and\n  // bankAccount are only ever read by the PDF the demo attaches to a bill, and\n  // are invented in the ranges IRD and the banks actually issue.\n  const SUPPLIERS = _exports.SUPPLIERS = [{\n    name: 'PlaceMakers Riccarton',\n    address: '210 Fernbrook Road, Riccarton, Christchurch',\n    allocationType: 'MATERIALS',\n    taxNumber: '048-221-907',\n    bankAccount: '02-0865-0114227-000'\n  }, {\n    name: 'Carters Christchurch',\n    address: '48 Halbury Street, Sockburn, Christchurch',\n    allocationType: 'MATERIALS',\n    taxNumber: '071-540-338',\n    bankAccount: '03-1592-0447102-000'\n  }, {\n    name: 'Mitre 10 MEGA Hornby',\n    address: '9 Kestrel Way, Hornby, Christchurch',\n    allocationType: 'MATERIALS',\n    taxNumber: '096-113-742',\n    bankAccount: '12-3141-0208866-000'\n  }, {\n    name: 'Bunnings Trade Riccarton',\n    address: '164 Fernbrook Road, Riccarton, Christchurch',\n    allocationType: 'MATERIALS',\n    taxNumber: '023-887-160',\n    bankAccount: '06-0801-0553914-000'\n  }, {\n    name: 'Laser Plumbing Christchurch',\n    address: '7 Tannery Lane, Woolston, Christchurch',\n    allocationType: 'SUBCONTRACTORS',\n    taxNumber: '104-229-518',\n    bankAccount: '02-0800-0361477-000'\n  }, {\n    name: 'Canterbury Electrical Services',\n    address: '33 Marchmont Place, Bromley, Christchurch',\n    allocationType: 'SUBCONTRACTORS',\n    taxNumber: '058-746-201',\n    bankAccount: '03-0855-0219630-000'\n  }, {\n    name: 'Southbridge Roofing',\n    address: '12 Kilverstone Road, Hornby, Christchurch',\n    allocationType: 'SUBCONTRACTORS',\n    taxNumber: '112-604-983',\n    bankAccount: '12-3105-0177248-000'\n  }, {\n    name: 'Selwyn Painters',\n    address: '5 Redvale Street, Rolleston',\n    allocationType: 'SUBCONTRACTORS',\n    taxNumber: '087-315-664',\n    bankAccount: '06-0817-0490335-000'\n  }, {\n    name: 'Christchurch Concrete Cutters',\n    address: '88 Ironside Road, Wigram, Christchurch',\n    allocationType: 'SUBCONTRACTORS',\n    taxNumber: '069-402-877',\n    bankAccount: '02-0812-0308561-000'\n  }, {\n    name: 'Rolleston Scaffolding',\n    address: '24 Quarryman Drive, Rolleston',\n    allocationType: 'SUBCONTRACTORS',\n    taxNumber: '134-058-229',\n    bankAccount: '03-1701-0623094-000'\n  }];\n\n  // A merchant bills for quantities of things, a subcontractor claims a stage\n  // of work as a lump sum. Keyed by supplier so a plumber never invoices for\n  // scaffold hire.\n  const SUBCONTRACT_WORKS = _exports.SUBCONTRACT_WORKS = {\n    'Laser Plumbing Christchurch': [{\n      description: 'Underslab drainage and stormwater connection',\n      value: [4200, 9600]\n    }, {\n      description: 'Plumbing rough-in, progress claim',\n      value: [3400, 7800]\n    }, {\n      description: 'Sanitaryware install and fit-off',\n      value: [2600, 6400]\n    }],\n    'Canterbury Electrical Services': [{\n      description: 'Electrical rough-in and switchboard',\n      value: [3800, 8900]\n    }, {\n      description: 'Lighting and power fit-off',\n      value: [2400, 6200]\n    }, {\n      description: 'Heat pump and ventilation wiring',\n      value: [1500, 3600]\n    }],\n    'Southbridge Roofing': [{\n      description: 'Roof framing paper, longrun install',\n      value: [7200, 18400]\n    }, {\n      description: 'Spouting, downpipes and flashings',\n      value: [2800, 6900]\n    }],\n    'Selwyn Painters': [{\n      description: 'Interior prep, stopping and two coats',\n      value: [5400, 13200]\n    }, {\n      description: 'Exterior weatherboard coating system',\n      value: [4100, 9700]\n    }],\n    'Christchurch Concrete Cutters': [{\n      description: 'Saw cutting and core drilling, site visit',\n      value: [680, 2400]\n    }, {\n      description: 'Slab penetrations for services',\n      value: [900, 3100]\n    }],\n    'Rolleston Scaffolding': [{\n      description: 'Scaffold erect, edge protection',\n      value: [3200, 8600]\n    }, {\n      description: 'Scaffold hire, four weeks',\n      value: [1400, 3900]\n    }, {\n      description: 'Scaffold alteration and dismantle',\n      value: [1100, 2800]\n    }]\n  };\n\n  // What a trade account gets ordered in. A bill for 3 lengths of framing or\n  // 400 lintels reads as generated data the moment anyone looks at it.\n  const ORDER_QUANTITIES = _exports.ORDER_QUANTITIES = {\n    length: [24, 180],\n    sheet: [8, 64],\n    each: [2, 24],\n    m3: [3, 16],\n    metre: [18, 140],\n    pack: [4, 28],\n    box: [2, 10],\n    roll: [2, 12]\n  };\n  const PRODUCTS = _exports.PRODUCTS = [{\n    sku: 'PF9045',\n    description: 'Pine framing 90x45 SG8',\n    unit: 'length',\n    unitPrice: 8.4\n  }, {\n    sku: 'GIB10',\n    description: 'GIB Standard 10mm 2400x1200',\n    unit: 'sheet',\n    unitPrice: 28.5\n  }, {\n    sku: 'LIN2400',\n    description: 'H1.2 SG8 lintel 2400',\n    unit: 'each',\n    unitPrice: 96.2\n  }, {\n    sku: 'CON20',\n    description: 'Concrete 20MPa',\n    unit: 'm3',\n    unitPrice: 315\n  }, {\n    sku: 'CS0.55',\n    description: 'Colorsteel roofing 0.55mm',\n    unit: 'metre',\n    unitPrice: 42.75\n  }, {\n    sku: 'BATT26',\n    description: 'Insulation batts R2.6',\n    unit: 'pack',\n    unitPrice: 68.9\n  }, {\n    sku: 'AB12',\n    description: 'Anchor bolt M12',\n    unit: 'each',\n    unitPrice: 1.2\n  }, {\n    sku: 'PLY17',\n    description: 'Structural ply 17mm',\n    unit: 'sheet',\n    unitPrice: 74.3\n  }, {\n    sku: 'DPC300',\n    description: 'Damp proof course 300mm',\n    unit: 'roll',\n    unitPrice: 21.6\n  }, {\n    sku: 'FIX90',\n    description: 'Galv jolt head nails 90mm',\n    unit: 'box',\n    unitPrice: 39.95\n  }];\n  const EMERGENCY_CONTACTS = _exports.EMERGENCY_CONTACTS = [{\n    name: 'Rachel Whitcombe',\n    relationship: 'Partner'\n  }, {\n    name: 'Mere Tuala',\n    relationship: 'Partner'\n  }, {\n    name: 'Tania Karaitiana',\n    relationship: 'Sister'\n  }, {\n    name: 'Glen Reed',\n    relationship: 'Father'\n  }, {\n    name: 'Aroha Ngata',\n    relationship: 'Mother'\n  }];\n  const TIMESHEET_NOTES = _exports.TIMESHEET_NOTES = ['Framing continued on the north elevation.', 'Waiting on window delivery, moved crew to cladding.', 'Council inspection passed, slab signed off.', 'Wet weather, half day only.', 'Second fix started in the master bedroom.', 'Site tidy and material take-off for next week.'];\n});","define(\"portal/mirage/factories/account-map\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    system() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    code() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    inverted() {\n      return _faker.faker.datatype.boolean();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/account\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    code() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    debitCredit() {\n      return _faker.faker.helpers.arrayElement(['CREDIT', 'DEBIT']);\n    },\n    periodic() {\n      return _faker.faker.datatype.boolean();\n    },\n    label() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    description() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    format() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    category() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    status() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    isHeading() {\n      return _faker.faker.datatype.boolean();\n    },\n    sortIndex() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/attachment-attribute\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    attribute() {\n      return _faker.faker.helpers.arrayElement(['clientsCanViewFileStorage', 'subcontractorsCanViewFileStorage']);\n    },\n    description() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    deprecated() {\n      return _faker.faker.datatype.boolean();\n    }\n  });\n});","define(\"portal/mirage/factories/attachment-project-attribute\", [\"exports\", \"miragejs\"], function (_exports, _miragejs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({});\n});","define(\"portal/mirage/factories/attachment\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    filename() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    extension() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    fileType() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    hash() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    size() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    storageFilePath() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    description() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/bill-item\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    description() {\n      return _faker.faker.commerce.productName();\n    },\n    productCode() {\n      return _faker.faker.string.alphanumeric({\n        length: 6,\n        casing: 'upper'\n      });\n    },\n    // A line off a trade account, not a hundred and fifty of anything at four\n    // figures each.\n    quantity() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 40\n      });\n    },\n    unitPrice() {\n      return _faker.faker.number.float({\n        min: 2,\n        max: 450,\n        fractionDigits: 2\n      });\n    },\n    reported() {\n      return _faker.faker.datatype.boolean();\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/bill\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    reference() {\n      return `KB-${_faker.faker.number.int({\n        min: 1000,\n        max: 9999\n      })}`;\n    },\n    billNumber() {\n      return `INV-${_faker.faker.number.int({\n        min: 10000,\n        max: 99999\n      })}`;\n    },\n    issuer() {\n      return _faker.faker.company.name();\n    },\n    issueDate() {\n      return _faker.faker.date.recent();\n    },\n    dueDate() {\n      return _faker.faker.date.recent();\n    },\n    allocationType() {\n      return _faker.faker.helpers.arrayElement(['MATERIALS', 'SUBCONTRACTORS', 'LABOUR']);\n    },\n    eaccountsFileName() {\n      return `${_faker.faker.string.alphanumeric({\n        length: 8,\n        casing: 'lower'\n      })}.pdf`;\n    },\n    status() {\n      return 'DRAFT';\n      //return faker.helpers.arrayElement(['DRAFT', 'ACCEPTED', 'ARCHIVED', 'HELD']);\n    },\n    isAutoMapped() {\n      return _faker.faker.datatype.boolean();\n    },\n    supplierDebtorAccountCode() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    supplierDebtorAccountName() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    source() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    notes() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    },\n    // The API exposes a searchText field that the bills route filters on with\n    // ILIKE. Derive it here so a search behaves the way it does against the\n    // real API rather than matching nothing.\n    afterCreate(bill) {\n      bill.update({\n        searchText: [bill.billNumber, bill.issuer, bill.reference].filter(Boolean).join(' ')\n      });\n    }\n  });\n});","define(\"portal/mirage/factories/budget-change-set\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    status() {\n      return _faker.faker.helpers.arrayElement(['ACCEPTED', 'DRAFT']);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/budget-change\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    labourDiff() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    manHoursDiff() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    materialsDiff() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    subcontractorsDiff() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    sumsDiff() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/budget-version-value\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    labour() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    manHours() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    materials() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    subcontractors() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    sums() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/budget-version\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    versionNumber() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/contact\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    address() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    contactPerson() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    contactNumber() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    contactEmail() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    eaccountsSupplierCode() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    paymentTermType() {\n      return _faker.faker.helpers.arrayElement(['DAYSAFTERBILLDATE', 'DAYSAFTERBILLMONTH', 'OFCURRENTMONTH', 'OFFOLLOWINGMONTH']);\n    },\n    paymentTermDay() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    salesPaymentTermType() {\n      return _faker.faker.helpers.arrayElement(['DAYS_AFTER_ISSUE_DATE', 'DAYS_AFTER_ISSUE_MONTH', 'OF_CURRENT_MONTH', 'OF_FOLLOWING_MONTH']);\n    },\n    salesPaymentTermDay() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/dashboard-module\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    title() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    visualiser() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    positionX() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    positionY() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    periodType() {\n      return _faker.faker.helpers.arrayElement(['month', 'ytd']);\n    },\n    includeCurrentEntity() {\n      return _faker.faker.datatype.boolean();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/eaccounts-invoice-integration\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    eaccountsLink() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    requests() {\n      return undefined;\n    },\n    allowed() {\n      return _faker.faker.datatype.boolean();\n    }\n  });\n});","define(\"portal/mirage/factories/entity-attribute\", [\"exports\", \"miragejs\", \"@faker-js/faker\", \"portal/mirage/attribute-names\"], function (_exports, _miragejs, _faker, _attributeNames) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\",0,\"portal/mirage/attribute-names\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    attribute() {\n      return _faker.faker.helpers.arrayElement(_attributeNames.ENTITY_ATTRIBUTES);\n    },\n    description() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    deprecated() {\n      return _faker.faker.datatype.boolean();\n    }\n  });\n});","define(\"portal/mirage/factories/entity-group\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    description() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    sortIndex() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    consolidation() {\n      return _faker.faker.datatype.boolean();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/entity-product\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    description() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    sku() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    unit() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    currency() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    unitPrice() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/entity\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    balanceDate() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    system() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    selfSignUp() {\n      return _faker.faker.datatype.boolean();\n    },\n    registeredName() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    billingAddress() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    contactNumber() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    infoVerified() {\n      return _faker.faker.datatype.boolean();\n    },\n    brand() {\n      return undefined;\n      // return faker.helpers.arrayElement([\n      //   'BUILDA_PRICE',\n      //   'STEP',\n      //   'APB',\n      //   'TPB',\n      //   'ITM',\n      //   'ATTENTION_SAFETY',\n      // ]);\n    },\n    region() {\n      return 'NZL';\n      // return faker.helpers.arrayElement([\n      //   'AFG',\n      //   'ALB',\n      //   'DZA',\n      //   'AND',\n      //   'AGO',\n      //   'ATG',\n      //   'ARG',\n      //   'ARM',\n      //   'AUS',\n      //   'AUT',\n      //   'AZE',\n      //   'BHS',\n      //   'BHR',\n      //   'BGD',\n      //   'BRB',\n      //   'BLR',\n      //   'BEL',\n      //   'BLZ',\n      //   'BEN',\n      //   'BTN',\n      //   'BOL',\n      //   'BIH',\n      //   'BWA',\n      //   'BRA',\n      //   'BRN',\n      //   'BGR',\n      //   'BFA',\n      //   'BDI',\n      //   'CPV',\n      //   'KHM',\n      //   'CMR',\n      //   'CAN',\n      //   'CAF',\n      //   'TCD',\n      //   'CHL',\n      //   'CHN',\n      //   'COL',\n      //   'COM',\n      //   'COG',\n      //   'COD',\n      //   'CRI',\n      //   'CIV',\n      //   'HRV',\n      //   'CUB',\n      //   'CYP',\n      //   'CZE',\n      //   'DNK',\n      //   'DJI',\n      //   'DMA',\n      //   'DOM',\n      //   'ECU',\n      //   'EGY',\n      //   'SLV',\n      //   'GNQ',\n      //   'ERI',\n      //   'EST',\n      //   'SWZ',\n      //   'ETH',\n      //   'FJI',\n      //   'FIN',\n      //   'FRA',\n      //   'GAB',\n      //   'GMB',\n      //   'GEO',\n      //   'DEU',\n      //   'GHA',\n      //   'GRC',\n      //   'GRD',\n      //   'GTM',\n      //   'GIN',\n      //   'GNB',\n      //   'GUY',\n      //   'HTI',\n      //   'HND',\n      //   'HUN',\n      //   'ISL',\n      //   'IND',\n      //   'IDN',\n      //   'IRN',\n      //   'IRQ',\n      //   'IRL',\n      //   'ISR',\n      //   'ITA',\n      //   'JAM',\n      //   'JPN',\n      //   'JOR',\n      //   'KAZ',\n      //   'KEN',\n      //   'KIR',\n      //   'PRK',\n      //   'KOR',\n      //   'KWT',\n      //   'KGZ',\n      //   'LAO',\n      //   'LVA',\n      //   'LBN',\n      //   'LSO',\n      //   'LBR',\n      //   'LBY',\n      //   'LIE',\n      //   'LTU',\n      //   'LUX',\n      //   'MDG',\n      //   'MWI',\n      //   'MYS',\n      //   'MDV',\n      //   'MLI',\n      //   'MLT',\n      //   'MHL',\n      //   'MRT',\n      //   'MUS',\n      //   'MEX',\n      //   'FSM',\n      //   'MDA',\n      //   'MCO',\n      //   'MNG',\n      //   'MNE',\n      //   'MAR',\n      //   'MOZ',\n      //   'MMR',\n      //   'NAM',\n      //   'NRU',\n      //   'NPL',\n      //   'NLD',\n      //   'NZL',\n      //   'NIC',\n      //   'NER',\n      //   'NGA',\n      //   'MKD',\n      //   'NOR',\n      //   'OMN',\n      //   'PAK',\n      //   'PLW',\n      //   'PAN',\n      //   'PNG',\n      //   'PRY',\n      //   'PER',\n      //   'PHL',\n      //   'POL',\n      //   'PRT',\n      //   'QAT',\n      //   'ROU',\n      //   'RUS',\n      //   'RWA',\n      //   'KNA',\n      //   'LCA',\n      //   'VCT',\n      //   'WSM',\n      //   'SMR',\n      //   'STP',\n      //   'SAU',\n      //   'SEN',\n      //   'SRB',\n      //   'SYC',\n      //   'SLE',\n      //   'SGP',\n      //   'SVK',\n      //   'SVN',\n      //   'SLB',\n      //   'SOM',\n      //   'ZAF',\n      //   'SSD',\n      //   'ESP',\n      //   'LKA',\n      //   'SDN',\n      //   'SUR',\n      //   'SWE',\n      //   'CHE',\n      //   'SYR',\n      //   'TWN',\n      //   'TJK',\n      //   'TZA',\n      //   'THA',\n      //   'TLS',\n      //   'TGO',\n      //   'TON',\n      //   'TTO',\n      //   'TUN',\n      //   'TUR',\n      //   'TKM',\n      //   'TUV',\n      //   'UGA',\n      //   'UKR',\n      //   'ARE',\n      //   'GBR',\n      //   'USA',\n      //   'URY',\n      //   'UZB',\n      //   'VUT',\n      //   'VEN',\n      //   'VNM',\n      //   'YEM',\n      //   'ZMB',\n      //   'ZWE',\n      // ]);\n    },\n    address() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    contactEmail() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    businessNumber() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    taxNumber() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    bunningsData() {\n      return undefined;\n    },\n    identityProviders() {\n      return undefined;\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/estimate\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    status() {\n      return _faker.faker.helpers.arrayElement(['DRAFT', 'IMPORTED', 'APPROVED', 'REJECTED']);\n    },\n    pricingMerchantName() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/financial-option\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    balanceDate() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    firstClosedPeriod() {\n      return _faker.faker.date.recent();\n    },\n    itmCustomReports() {\n      return undefined;\n    }\n  });\n});","define(\"portal/mirage/factories/gl-account\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    code() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    taxRate() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/import\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    date() {\n      return _faker.faker.date.recent();\n    },\n    system() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    includesProfitAndLoss() {\n      return _faker.faker.datatype.boolean();\n    },\n    includesBalanceSheet() {\n      return _faker.faker.datatype.boolean();\n    },\n    includesOtherData() {\n      return _faker.faker.datatype.boolean();\n    },\n    externalBalances() {\n      return undefined;\n    },\n    manualBalances() {\n      return undefined;\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/invoice-attachment\", [\"exports\", \"miragejs\"], function (_exports, _miragejs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({});\n});","define(\"portal/mirage/factories/invoice-auto-map-directive\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    kind() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    value() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/invoice-item\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    code() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    description() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    unit() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    unitPrice() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    quantity() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    taxRate() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    sortIndex() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/invoice-option\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    invoicePrefix() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    invoiceFooterNotes() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    nextInvoiceNumber() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    paymentTermType() {\n      return _faker.faker.helpers.arrayElement(['DAYS_AFTER_ISSUE_DATE', 'DAYS_AFTER_ISSUE_MONTH', 'OF_CURRENT_MONTH', 'OF_FOLLOWING_MONTH']);\n    },\n    paymentTermDay() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    creditNotePrefix() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    creditNoteFooterNotes() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    nextCreditNoteNumber() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/invoice\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    invoiceNumber() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    status() {\n      return _faker.faker.helpers.arrayElement(['DRAFT', 'AWAITING_APPROVAL', 'APPROVED', 'COMPLETED']);\n    },\n    invoiceType() {\n      return _faker.faker.helpers.arrayElement(['INVOICE', 'CREDIT_NOTE']);\n    },\n    issueDate() {\n      return _faker.faker.date.recent();\n    },\n    dueDate() {\n      return _faker.faker.date.recent();\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/ips-document\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    filename() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    email() {\n      return _faker.faker.internet.email();\n    },\n    status() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    invoiceNumber() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    senderName() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    issueDate() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dueDate() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/itm-supplier\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    address() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    contactPerson() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    contactNumber() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    contactEmail() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    eaccountsSupplierCode() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/kpi\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    calculation() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    introLine() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    description() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    strategies() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    format() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    sortIndex() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    active() {\n      return _faker.faker.datatype.boolean();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/labour-cost-calculator-item\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    label() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    enabled() {\n      return _faker.faker.datatype.boolean();\n    },\n    isSystem() {\n      return _faker.faker.datatype.boolean();\n    },\n    value() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    valueType() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/labour-cost-calculator\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    label() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    workingDaysPerWeek() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    workingHoursPerDay() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/pm-connection\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    accountCode() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    branchCode() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    autoSync() {\n      return _faker.faker.datatype.boolean();\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/pricing-connection\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    connectionName() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    adminRoleName() {\n      return _faker.faker.lorem.sentence(1);\n    }\n  });\n});","define(\"portal/mirage/factories/pricing-role\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    }\n  });\n});","define(\"portal/mirage/factories/profit-margin\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    materialsPercentage() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    subcontractorsPercentage() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    sumsPercentage() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    labourPercentage() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    profitType() {\n      return _faker.faker.helpers.arrayElement(['MARGIN', 'MARKUP']);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/progress-change-set\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    status() {\n      return _faker.faker.helpers.arrayElement(['ACCEPTED', 'DRAFT']);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/progress-change\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    changeType() {\n      return _faker.faker.helpers.arrayElement(['CREATE', 'DELETE', 'MODIFY']);\n    },\n    forecastManHours() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    actualManHours() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    progress() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/progress-version-value\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    forecastManHours() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    actualManHours() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    progress() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/progress-version\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    versionNumber() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/project-attachment-attribute\", [\"exports\", \"miragejs\"], function (_exports, _miragejs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({});\n});","define(\"portal/mirage/factories/project-attribute\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    attribute() {\n      return _faker.faker.helpers.arrayElement(['clientsCanViewFileStorage']);\n    },\n    description() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    deprecated() {\n      return _faker.faker.datatype.boolean();\n    }\n  });\n});","define(\"portal/mirage/factories/project-commit\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    commitNumber() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/project-product\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    description() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    sku() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    unit() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    currency() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    unitPrice() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/project\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    description() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    address() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    startDate() {\n      return _faker.faker.date.recent();\n    },\n    completionDate() {\n      return _faker.faker.date.recent();\n    },\n    status() {\n      return _faker.faker.helpers.arrayElement(['OPEN', 'CLOSED', 'HELD', 'ARCHIVED']);\n    },\n    sortIndex() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    contractType() {\n      return _faker.faker.helpers.arrayElement(['FIXED_PRICE', 'COST_PLUS']);\n    },\n    projectReference() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    contactEmail() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    contactName() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    contactNumber() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    contactAddress() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateCreated() {\n      return _faker.faker.date.past();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/purchase-order-item\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    sku() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    description() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    unit() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    unitPrice() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    quantity() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    deliveredQuantity() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    taxTotal() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    sortIndex() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/purchase-order-option\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    prefix() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    footerNotes() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    nextPurchaseOrderNumber() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/purchase-order\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    purchaseOrderNumber() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    status() {\n      return _faker.faker.helpers.arrayElement(['DRAFT', 'AWAITING_APPROVAL', 'APPROVED', 'SENT']);\n    },\n    address() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    deliveryNote() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    orderNote() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    freightCharges() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    taxFreightCharges() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    dateOrderPlaced() {\n      return _faker.faker.date.recent();\n    },\n    requestedDeliveryDate() {\n      return _faker.faker.date.recent();\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/question\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    complete() {\n      return _faker.faker.datatype.boolean();\n    },\n    title() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    description() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/quote-change-set\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    status() {\n      return _faker.faker.helpers.arrayElement(['ACCEPTED', 'DRAFT']);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/quote-change\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    labourDiff() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    manHoursDiff() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    materialsDiff() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    subcontractorsDiff() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    sumsDiff() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/quote-version-value\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    labour() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    manHours() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    materials() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    subcontractors() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    sums() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/quote-version\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    versionNumber() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/report-export-option\", [\"exports\", \"miragejs\"], function (_exports, _miragejs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\"eaimeta@70e063a35619d71f\n  //import { faker } from '@faker-js/faker';\n  var _default = _exports.default = _miragejs.Factory.extend({\n    companyLogoUrl: null,\n    title: 'Tax Invoice',\n    introduction: null,\n    footnotes: null,\n    materialsDetail: 'item',\n    projectTimesheetsDetail: ['day', 'worker', 'task'],\n    labourInvoicesDetail: 'item',\n    subcontractorInvoicesDetail: 'item',\n    isEntityDefault() {\n      return this.job == null;\n    }\n\n    //isEntityDefault() {\n    //  return faker.datatype.boolean();\n    //},\n    //companyLogoUrl() {\n    //  return faker.lorem.sentence(1);\n    //},\n    //title() {\n    //  return faker.lorem.sentence(1);\n    //},\n    //introduction() {\n    //  return faker.lorem.sentence(1);\n    //},\n    //footnotes() {\n    //  return faker.lorem.sentence(1);\n    //},\n    //materialsDetail() {\n    //  return faker.lorem.sentence(1);\n    //},\n    //timesheetsDetail() {\n    //  return faker.helpers.arrayElement(['Virgo sufficio sortitus vorax.']);\n    //},\n    //labourInvoicesDetail() {\n    //  return faker.helpers.arrayElement(['section', 'invoice', 'item']);\n    //},\n    //subcontractorInvoicesDetail() {\n    //  return faker.helpers.arrayElement(['section', 'invoice', 'item']);\n    //},\n    //marginType() {\n    //  return faker.helpers.arrayElement(['pro-rata', 'total']);\n    //},\n    //projectTimesheetsDetail() {\n    //  return faker.helpers.arrayElement([\n    //    'Capillus cum dolorem cibus hic delego vulgaris quasi.',\n    //  ]);\n    //},\n    //dateCreated() {\n    //  return faker.date.recent();\n    //},\n    //dateModified() {\n    //  return faker.date.recent();\n    //},\n  });\n});","define(\"portal/mirage/factories/resource-event\", [\"exports\", \"miragejs\"], function (_exports, _miragejs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    action: 'UPDATE',\n    description: 'Changed a field',\n    dateCreated() {\n      return new Date();\n    },\n    _meta: () => ({\n      personName: 'Test User'\n    })\n  });\n});","define(\"portal/mirage/factories/scheduling-change-set\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    status() {\n      return _faker.faker.helpers.arrayElement(['DRAFT', 'ACCEPTED']);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/scheduling-change\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    changeType() {\n      return _faker.faker.helpers.arrayElement(['CREATE', 'DELETE', 'MODIFY']);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    },\n    completionDate() {\n      return _faker.faker.date.recent();\n    },\n    startDate() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/scheduling-version-value\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    startDate() {\n      return _faker.faker.date.recent();\n    },\n    completionDate() {\n      return _faker.faker.date.recent();\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/scheduling-version\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    versionNumber() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/stage-payment\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    value() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    retention() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    dueDate() {\n      return _faker.faker.date.recent();\n    },\n    status() {\n      return _faker.faker.helpers.arrayElement(['CLAIMED', 'UNCLAIMED']);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/supplier-debtor-account\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    code() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    isSubAccount() {\n      return _faker.faker.datatype.boolean();\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/target\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    breakdown() {\n      return undefined;\n    },\n    values() {\n      return undefined;\n    },\n    date() {\n      return _faker.faker.date.recent();\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/task-change-set\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    status() {\n      return _faker.faker.helpers.arrayElement(['ACCEPTED', 'DRAFT']);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/task-change\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    changeType() {\n      return _faker.faker.helpers.arrayElement(['CREATE', 'DELETE', 'MODIFY']);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/task-product\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    description() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    sku() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    unit() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    currency() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    quantity() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    unitPrice() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/task-template-item\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    path() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/task-template\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/task\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    description() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    path() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    status() {\n      return _faker.faker.helpers.arrayElement(['DRAFT_CREATED', 'ACTIVE', 'DRAFT_DELETED', 'DELETED']);\n    },\n    taskType() {\n      return _faker.faker.helpers.arrayElement(['TASK', 'SUMS', 'SUBCONTRACTOR', 'PLANT', 'MILESTONE', 'BUILDERS_WORK', 'INTERNAL']);\n    },\n    pricingTab() {\n      return _faker.faker.helpers.arrayElement(['MATERIALS-LABOUR', 'MISC', 'SUBCONTRACTOR', 'SUMS', 'OVERHEAD']);\n    },\n    pricingUsage() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    timesheetStatus() {\n      return _faker.faker.helpers.arrayElement(['ACTIVE', 'INACTIVE']);\n    },\n    isSchedulingEnabled() {\n      return _faker.faker.datatype.boolean();\n    },\n    isComplete() {\n      return _faker.faker.datatype.boolean();\n    },\n    contractType() {\n      return _faker.faker.helpers.arrayElement(['FIXED_PRICE', 'COST_PLUS']);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/timesheet-note\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    body() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    adminNote() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    actionStatus() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    date() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/timesheet-status\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    editNote() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    didEdit() {\n      return _faker.faker.datatype.boolean();\n    },\n    status() {\n      return _faker.faker.helpers.arrayElement(['accepted', 'pending']);\n    },\n    date() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/timesheet\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    // Minutes, in quarter hours, from an hour up to a nine hour day.\n    duration() {\n      return _faker.faker.number.int({\n        min: 4,\n        max: 36\n      }) * 15;\n    },\n    payRate() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    chargeOutRate() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    costRate() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    note() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    date() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    reported() {\n      return _faker.faker.datatype.boolean();\n    },\n    actionStatus() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/user-attachment-attribute\", [\"exports\", \"miragejs\"], function (_exports, _miragejs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({});\n});","define(\"portal/mirage/factories/user-attribute\", [\"exports\", \"miragejs\", \"@faker-js/faker\", \"portal/mirage/attribute-names\"], function (_exports, _miragejs, _faker, _attributeNames) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\",0,\"portal/mirage/attribute-names\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    attribute() {\n      return _faker.faker.helpers.arrayElement(_attributeNames.USER_ATTRIBUTES);\n    },\n    description() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    deprecated() {\n      return _faker.faker.datatype.boolean();\n    }\n  });\n});","define(\"portal/mirage/factories/user-entity-attribute\", [\"exports\", \"miragejs\"], function (_exports, _miragejs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({});\n});","define(\"portal/mirage/factories/user-project-attribute\", [\"exports\", \"miragejs\"], function (_exports, _miragejs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({});\n});","define(\"portal/mirage/factories/user-task-attribute\", [\"exports\", \"miragejs\"], function (_exports, _miragejs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({});\n});","define(\"portal/mirage/factories/user-worker-attribute\", [\"exports\", \"miragejs\"], function (_exports, _miragejs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({});\n});","define(\"portal/mirage/factories/user\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    firstName() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    lastName() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    email() {\n      return _faker.faker.internet.email();\n    },\n    phoneNumber() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    hasAcceptedTerms() {\n      return _faker.faker.datatype.boolean();\n    },\n    canAccessPortal() {\n      return _faker.faker.datatype.boolean();\n    },\n    hashed_password() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    role() {\n      return 'user';\n      // return faker.helpers.arrayElement(['user', 'admin', 'partner']);\n    },\n    mustResetPassword() {\n      return _faker.faker.datatype.boolean();\n    },\n    language() {\n      return 'en-NZ';\n      // return faker.helpers.arrayElement([\n      //   'en-US',\n      //   'zh-Hans',\n      //   'en-GB',\n      //   'en-NZ',\n      //   'en-AU',\n      // ]);\n    },\n    adminFeatures() {\n      return undefined;\n    },\n    lastLoginDate() {\n      return _faker.faker.date.recent();\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/worker-attribute\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    attribute() {\n      return _faker.faker.helpers.arrayElement(['canViewProjects', 'canViewTasks', 'canCreateHealthAndSafety']);\n    },\n    description() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    deprecated() {\n      return _faker.faker.datatype.boolean();\n    }\n  });\n});","define(\"portal/mirage/factories/worker-entity-attribute\", [\"exports\", \"miragejs\"], function (_exports, _miragejs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({});\n});","define(\"portal/mirage/factories/worker-job-allocation\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    chargeOutRate() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 150\n      });\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/worker-project-attribute\", [\"exports\", \"miragejs\"], function (_exports, _miragejs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({});\n});","define(\"portal/mirage/factories/worker-task-attribute\", [\"exports\", \"miragejs\"], function (_exports, _miragejs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({});\n});","define(\"portal/mirage/factories/worker\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    firstName() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    lastName() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    phoneNumber() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    email() {\n      return _faker.faker.internet.email();\n    },\n    isActive() {\n      return _faker.faker.datatype.boolean();\n    },\n    isContractor() {\n      return _faker.faker.datatype.boolean();\n    },\n    payRate() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    costRate() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    chargeOutRate() {\n      return _faker.faker.number.int({\n        min: 1,\n        max: 9999\n      });\n    },\n    authCode() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    smartPayrollEmployeeCode() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    smartPayrollEmployeeDepartmentCode() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    keypayEmployeeCode() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    emergencyContactNameOne() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    emergencyContactRelationshipOne() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    emergencyContactPhoneNumberOne() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    emergencyContactNameTwo() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    emergencyContactRelationshipTwo() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    emergencyContactPhoneNumberTwo() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/xero-connection\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    xeroCompanyName() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    allowed() {\n      return _faker.faker.datatype.boolean();\n    },\n    defaultInvoiceStatus() {\n      return _faker.faker.helpers.arrayElement(['DRAFT', 'AUTHORISED', 'SUBMITTED']);\n    },\n    defaultCreditNoteStatus() {\n      return _faker.faker.helpers.arrayElement(['AUTHORISED', 'SUBMITTED']);\n    },\n    defaultTimesheetStatus() {\n      return _faker.faker.helpers.arrayElement(['DRAFT', 'APPROVED']);\n    }\n  });\n});","define(\"portal/mirage/factories/xero-earnings-rate\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    name() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    earningsType() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    rateType() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    typeOfUnits() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    ratePerUnit() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    multipleOfOrdinaryEarningsRate() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    fixedAmount() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    currentRecord() {\n      return _faker.faker.datatype.boolean();\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/xero-employee\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    xeroPayrollCalendarPeriodStartDate() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    xeroPayrollCalendarPeriodEndDate() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    xeroPayrollCalendarType() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    firstName() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    lastName() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateOfBirth() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    email() {\n      return _faker.faker.internet.email();\n    },\n    phoneNumber() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/factories/xero-tracking-option\", [\"exports\", \"miragejs\", \"@faker-js/faker\"], function (_exports, _miragejs, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.Factory.extend({\n    trackingOptionName() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    status() {\n      return _faker.faker.lorem.sentence(1);\n    },\n    dateCreated() {\n      return _faker.faker.date.recent();\n    },\n    dateModified() {\n      return _faker.faker.date.recent();\n    }\n  });\n});","define(\"portal/mirage/fixture-sets\", [\"exports\", \"portal/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.fixtureSets = fixtureSets;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  // MIRAGE is a comma-separated list of fixture sets. Recognised today:\n  //   demo      the Rangefield Construction world (the default)\n  //   empty     no domain records, just an empty entity to click around\n  //   no-login  leave the login flow alone instead of seeding a session\n  //   slow      keep the 1s response delay rather than answering immediately\n  function fixtureSets() {\n    const sets = String(_environment.default.mirage ?? '').split(',').map(set => set.trim()).filter(Boolean);\n    return sets.length ? sets : ['demo'];\n  }\n});","define(\"portal/mirage/model-names\", [\"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  // can anyone figure out how to lift this from the models?\n  var _default = _exports.default = ['accounts', 'account-maps', 'attachment-attributes', 'attachments', 'attachment-project-attributes', 'base-attachment-models', 'base-models', 'bill-items', 'bills', 'budget-changes', 'budget-change-sets', 'budget-versions', 'budget-version-values', 'contacts', 'dashboard-modules', 'eaccounts-invoice-integrations', 'entity-attributes', 'entity-groups', 'entities', 'entity-products', 'estimates', 'financial-options', 'gl-accounts', 'imports', 'indexes', 'invoice-attachments', 'invoice-auto-map-directives', 'invoice-items', 'invoices', 'ips-connections', 'ips-documents', 'itm-suppliers', 'kpis', 'labour-cost-calculator-items', 'labour-cost-calculators', 'link-attachment-to-entities', 'link-attachment-to-projects', 'link-attachment-to-purchase-orders', 'link-attachment-to-tasks', 'link-dashboard-module-accounts', 'link-dashboard-module-entity-groups', 'link-dashboard-module-entities', 'link-dashboard-module-kpis', 'link-entity-group-can-be-accessed-bys', 'link-entity-group-members', 'link-entity-to-entity-attributes', 'link-invoice-item-to-bill-items', 'link-invoice-item-to-projects', 'link-invoice-item-to-tasks', 'link-invoice-item-to-timesheets', 'link-task-to-stage-payments', 'link-user-to-entity-groups', 'link-user-to-pricing-roles', 'pm-connections', 'pricing-connections', 'pricing-roles', 'profit-margins', 'progress-changes', 'progress-change-sets', 'progress-versions', 'progress-version-values', 'project-commits', 'projects', 'project-products', 'purchase-order-items', 'purchase-orders', 'purchase-order-options', 'quote-changes', 'quote-change-sets', 'quote-versions', 'quote-version-values', 'report-export-options', 'resource-events', 'scheduling-changes', 'scheduling-change-sets', 'scheduling-versions', 'scheduling-version-values', 'stage-payments', 'supplier-debtor-accounts', 'targets', 'task-changes', 'task-change-sets', 'tasks', 'task-products', 'task-template-items', 'task-templates', 'timesheets', 'timesheet-notes', 'timesheet-statuses', 'user-attachment-attributes', 'user-attributes', 'user-entity-attributes', 'users', 'user-project-attributes', 'user-task-attributes', 'user-worker-attributes', 'worker-attributes', 'worker-entity-attributes', 'worker-job-allocations', 'workers', 'worker-project-attributes', 'worker-task-attributes', 'xero-connections', 'xero-earnings-rates', 'xero-employees', 'xero-tracking-options', 'bill-attachments', 'entity-invoice-options', 'invoice-invoice-options', 'quickbooks-employees', 'quickbooks-oauth2-connections', 'stage-payment-options', 'stage-payment-questions', 'system-announcements'];\n});","define(\"portal/mirage/responders/ad-hoc-report\", [\"exports\", \"portal/mirage/demo/figures\", \"portal/mirage/demo/views\"], function (_exports, _figures, _views) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = adHocReportResponder;\n  0; //eaimeta@70e063a35619d71f0,\"portal/mirage/demo/figures\",0,\"portal/mirage/demo/views\"eaimeta@70e063a35619d71f\n  // A working stand-in for portal-api's report engine. The compile/calculate\n  // semantics below mirror src/app/controllers/report-engine/generate.ts —\n  // notably that a row which compiles to a single column collapses to a bare\n  // cell, which is what tells BIG_TEXT apart from a one-column table.\n\n  const FORMATS = {\n    BILL_ITEM_VALUE: 'CURRENCY',\n    BUDGET_LABOUR: 'CURRENCY',\n    BUDGET_LABOUR_USED: 'PERCENTAGE',\n    BUDGET_MANHOURS: 'DURATION',\n    BUDGET_MANHOURS_USED: 'PERCENTAGE',\n    BUDGET_MATERIALS: 'CURRENCY',\n    BUDGET_MATERIALS_USED: 'PERCENTAGE',\n    BUDGET_SUBCONTRACTORS: 'CURRENCY',\n    BUDGET_SUBCONTRACTORS_USED: 'PERCENTAGE',\n    BUDGET_SUMS: 'CURRENCY',\n    BUDGET_TOTAL: 'CURRENCY',\n    BUDGET_TOTAL_USED: 'PERCENTAGE',\n    CHARGEUP_LABOUR: 'CURRENCY',\n    CHARGEUP_MATERIALS: 'CURRENCY',\n    CHARGEUP_SUBCONTRACTORS: 'CURRENCY',\n    CHARGEUP_TOTAL: 'CURRENCY',\n    COST_LABOUR: 'CURRENCY',\n    COST_MANHOURS: 'DURATION',\n    COST_MATERIALS: 'CURRENCY',\n    COST_PLUS_FORECAST_QUOTE: 'CURRENCY',\n    COST_SUBCONTRACTORS: 'CURRENCY',\n    COST_TOTAL: 'CURRENCY',\n    FINANCIAL_PROGRESS_TOTAL: 'PERCENTAGE',\n    FIXED_PRICE_QUOTE_TOTAL: 'CURRENCY',\n    FORECAST_BUDGET: 'CURRENCY',\n    FORECAST_CHARGEUP: 'CURRENCY',\n    FORECAST_COST: 'CURRENCY',\n    FORECAST_LABOUR: 'CURRENCY',\n    FORECAST_MANHOURS_TOTAL: 'DURATION',\n    FORECAST_MATERIALS: 'CURRENCY',\n    FORECAST_QUOTE: 'CURRENCY',\n    FORECAST_QUOTE_NOT_INVOICED: 'CURRENCY',\n    FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE: 'PERCENTAGE',\n    FORECAST_SUBCONTRACTORS: 'CURRENCY',\n    GROSS_PROFIT: 'CURRENCY',\n    GROSS_PROFIT_MARGIN: 'PERCENTAGE',\n    INVOICEABLE_CURRENTLY_TOTAL: 'CURRENCY',\n    INVOICEABLE_TOTAL: 'CURRENCY',\n    INVOICEABLE_TOTAL_REMAINING: 'CURRENCY',\n    INVOICED_LABOUR: 'CURRENCY',\n    INVOICED_MATERIALS: 'CURRENCY',\n    INVOICED_SUBCONTRACTORS: 'CURRENCY',\n    INVOICED_TOTAL: 'CURRENCY',\n    INVOICE_ITEM_VALUE: 'CURRENCY',\n    PROGRESS_TOTAL: 'PERCENTAGE',\n    PROJECT_TASKS_COST_TOTAL: 'CURRENCY',\n    QUOTE_LABOUR: 'CURRENCY',\n    QUOTE_LABOUR_USED: 'PERCENTAGE',\n    QUOTE_MATERIALS: 'CURRENCY',\n    QUOTE_MATERIALS_USED: 'PERCENTAGE',\n    QUOTE_SUBCONTRACTORS: 'CURRENCY',\n    QUOTE_SUBCONTRACTORS_USED: 'PERCENTAGE',\n    QUOTE_SUMS: 'CURRENCY',\n    QUOTE_TOTAL: 'CURRENCY',\n    QUOTE_TOTAL_USED: 'PERCENTAGE',\n    REMAINING_BUDGET: 'CURRENCY',\n    REMAINING_MANHOURS: 'DURATION',\n    REMAINING_QUOTE: 'CURRENCY',\n    TIMESHEET_COST: 'CURRENCY',\n    TIMESHEET_DURATION: 'DURATION',\n    VARIANCE_BUDGET: 'PERCENTAGE',\n    VARIANCE_MANHOURS: 'PERCENTAGE',\n    VARIANCE_QUOTE: 'PERCENTAGE',\n    WIP_ASSET: 'CURRENCY',\n    WIP_BUDGET_FORECAST_USED: 'PERCENTAGE',\n    WIP_CURRENT_GROSS_PROFIT: 'CURRENCY',\n    WIP_FORECAST_GROSS_PROFIT: 'CURRENCY',\n    WIP_GROSS_PROFIT_MARGIN: 'PERCENTAGE',\n    WIP_LIABILITY: 'CURRENCY',\n    WIP_POSITION: 'CURRENCY',\n    WORKERS_AVG_COST: 'CURRENCY'\n  };\n\n  // Resource names the engine serves from database views rather than from a\n  // table Mirage models directly.\n  const SYNTHETIC = {\n    'project-access-log-views': _views.accessLogViews,\n    'project-occupancy-views': _views.occupancyViews,\n    'bill-item-views': _views.billItemViews,\n    'invoice-item-views': _views.invoiceItemViews,\n    'timesheet-note-views': _views.timesheetNoteViews\n  };\n  const DEFAULT_SORT_KEYS = ['sortIndex', 'path', 'name', 'firstName', 'dateCreated'];\n  function adHocReportResponder(schema, request) {\n    let report;\n    try {\n      report = JSON.parse(request.requestBody || '{}');\n    } catch {\n      report = {};\n    }\n    const asOf = report.dateRange?.endDate ? new Date(report.dateRange.endDate).getTime() : undefined;\n    return {\n      name: report.name,\n      elements: (report.subjects || []).map(subject => buildElement(schema, subject, asOf))\n    };\n  }\n  function buildElement(schema, subject, asOf) {\n    const resources = resolveSubject(schema, subject.metricsSubject);\n    const element = {\n      name: subject.name,\n      index: subject.index,\n      elementType: subject.elementType,\n      values: subject.groupType === 'SEPARATE' ? separateValues(schema, subject, resources, asOf) : calculate(schema, compile(subject.metrics || []), resources, asOf)\n    };\n    if (subject.width) element.width = subject.width;\n    if (subject.height) element.height = subject.height;\n    if (subject.borderStyle) element.borderStyle = subject.borderStyle;\n    if (subject.searchEnabled) element.searchEnabled = subject.searchEnabled;\n    if (subject.axes) {\n      element.axes = {};\n      for (const [key, axis] of Object.entries(subject.axes)) element.axes[key] = calculate(schema, axis, resources, asOf);\n    }\n    return element;\n  }\n\n  // One flat row per resource, with children nested inside their parent's row\n  // when the subject asks for a tree.\n  function separateValues(schema, subject, resources, asOf) {\n    const compiled = compile(subject.metrics || []);\n    const rowsById = new Map();\n    for (const resource of resources) {\n      const row = [];\n      for (const cell of calculate(schema, compiled, [resource], asOf)) {\n        if (Array.isArray(cell)) row.push(...cell);else row.push(cell);\n      }\n      rowsById.set(resource.id, {\n        resource,\n        row\n      });\n    }\n    const recursiveKey = subject.metricsSubject?.recursiveKey;\n    if (!recursiveKey) return [...rowsById.values()].map(entry => entry.row);\n    const roots = [];\n    for (const entry of rowsById.values()) {\n      const parentId = foreignKey(entry.resource, recursiveKey);\n      const parent = parentId && rowsById.get(parentId);\n      if (parent) parent.row.push(entry.row);else roots.push(entry.row);\n    }\n    return roots;\n  }\n\n  // generate.ts compileMetric: a layer holding a single column collapses to that\n  // column, so `metrics: [[one]]` becomes a bare cell rather than a one-cell row.\n  function compile(metrics) {\n    const layer = [];\n    for (const row of metrics) compileInto(row, layer);\n    return layer;\n  }\n  function compileInto(row, layer) {\n    const newLayer = [];\n    if (Array.isArray(row)) for (const column of row) compileInto(column, newLayer);else newLayer.push(row);\n    layer.push(newLayer.length > 1 ? newLayer : newLayer[0]);\n  }\n  function calculate(schema, row, resources, asOf) {\n    return (row || []).map(cell => Array.isArray(cell) ? calculate(schema, cell, resources, asOf) : resolveCell(schema, cell, resources, asOf));\n  }\n  function resolveCell(schema, metric, resources, asOf) {\n    if (!metric) return {\n      format: 'STRING',\n      value: ''\n    };\n\n    // Axis metrics carry their own subject; metrics inherit the element's.\n    const subjects = metric.subject ? resolveSubject(schema, metric.subject) : resources;\n    const cell = options(metric, subjects);\n    switch (metric.metric) {\n      case 'TEXT':\n        return {\n          ...cell,\n          format: 'STRING',\n          value: metric.valueOverride ?? ''\n        };\n      case 'NUMBER':\n        return {\n          ...cell,\n          format: 'NUMBER',\n          value: metric.valueOverride\n        };\n      case 'PERCENTAGE':\n        return {\n          ...cell,\n          format: 'PERCENTAGE',\n          value: metric.valueOverride\n        };\n      case 'PROPERTY':\n        return {\n          ...cell,\n          ...propertyValue(subjects[0], metric)\n        };\n      case 'RELATIONSHIP_PROPERTY':\n        return {\n          ...cell,\n          ...relationshipValue(schema, subjects[0], metric)\n        };\n      case 'TASK_PATH':\n        return {\n          ...cell,\n          format: 'STRING',\n          value: oneBasedPath(subjects[0]?.path)\n        };\n      case 'INCLUDED_IN_INVOICE':\n        return {\n          ...cell,\n          format: 'STRING',\n          value: includedInInvoice(schema, subjects) ? 'Invoiced' : ''\n        };\n      default:\n        {\n          const metrics = (0, _figures.metricsFor)(schema, subjects, asOf);\n          if (!(metric.metric in metrics)) warnUnknown(metric.metric);\n          return {\n            ...cell,\n            format: FORMATS[metric.metric] || 'NUMBER',\n            value: metrics[metric.metric] ?? 0\n          };\n        }\n    }\n  }\n  const warned = new Set();\n  function warnUnknown(name) {\n    if (warned.has(name)) return;\n    warned.add(name);\n    console.warn(`[mirage] report metric \"${name}\" is not modelled, answering 0`); // eslint-disable-line no-console\n  }\n  function options(metric, subjects) {\n    const output = {};\n    if (metric.icon) output.icon = metric.icon;\n    if (metric.tooltip) output.tooltip = metric.tooltip;\n    if (metric.showPositiveNegativeIndicator) output.showPositiveNegativeIndicator = metric.showPositiveNegativeIndicator;\n    if (metric.lowerLimit !== undefined) output.lowerLimit = metric.lowerLimit;\n    if (metric.upperLimit !== undefined) output.upperLimit = metric.upperLimit;\n    if (metric.dashZero) output.dashZero = metric.dashZero;\n    if (metric.classes) output.class = classesFor(metric, subjects[0]);\n    if (metric.linkTo) output.linkTo = linkTo(metric, subjects[0]);\n    return output;\n  }\n  function classesFor(metric, subject = {}) {\n    let classes = '';\n    for (const entry of metric.classes) {\n      if (!entry.case) classes += entry.class + ' ';else if (entry.key && entry.case === subject[entry.key]) classes += entry.class + ' ';\n    }\n    return classes;\n  }\n  function linkTo(metric, subject) {\n    const models = (metric.linkTo.modelKeys || []).map(key => identifier(subject, key));\n    const pairs = Object.entries(metric.linkTo.queryParams || {});\n    if (!pairs.length) return {\n      route: metric.linkTo.route,\n      models\n    };\n    const queryParams = {};\n    for (const [key, value] of pairs) {\n      if (value?.key) queryParams[key] = identifier(subject, value.key);\n      if (value?.valueOverride) queryParams[key] = value.valueOverride;\n    }\n    return {\n      route: metric.linkTo.route,\n      models,\n      queryParams\n    };\n  }\n\n  // `modelKeys: ['project', '_id']` wants ids. Mirage answers `record.project`\n  // with the model, so read the foreign key when there is one.\n  function identifier(subject, key) {\n    if (!subject) return undefined;\n    if (key === '_id' || key === 'id') return subject.id;\n    const foreign = subject[`${key}Id`];\n    if (foreign !== undefined) return foreign;\n    const value = subject[key];\n    return value?.id ?? value;\n  }\n  function propertyValue(subject, metric) {\n    let value = metric.key ? readKey(subject, metric.key) : undefined;\n    const format = formatOf(value);\n    if (metric.humanEnums) value = humanEnum(value);\n\n    // A STRING cell whose value is undefined takes the renderer down when the\n    // cell also carries a linkTo, and a subject can legitimately be missing.\n    return {\n      format,\n      value: value ?? (format === 'STRING' ? '' : value)\n    };\n  }\n  function relationshipValue(schema, subject, metric) {\n    if (!metric.key?.includes('.')) return {\n      format: 'STRING',\n      value: ''\n    };\n    const [relationship, key] = metric.key.split('.');\n    const related = subject?.[relationship];\n    const value = related?.[key] ?? '';\n    return {\n      format: formatOf(value),\n      value\n    };\n  }\n  function includedInInvoice(schema, subjects) {\n    if (!subjects.length) return false;\n    return subjects.every(subject => {\n      const links = subject.modelName === 'bill-item-view' ? schema.linkInvoiceItemToBillItems?.where({\n        billItemId: subject.id\n      }) : schema.linkInvoiceItemToTimesheets?.where({\n        timesheetId: subject.id\n      });\n      return Boolean(links?.models.length);\n    });\n  }\n  function readKey(subject, key) {\n    if (!subject) return undefined;\n    if (key === '_id') return subject.id;\n    return subject[key];\n  }\n  function formatOf(value) {\n    switch (typeof value) {\n      case 'string':\n        return 'STRING';\n      case 'number':\n      case 'bigint':\n        return 'NUMBER';\n      case 'boolean':\n        return 'BOOLEAN';\n      case 'object':\n        {\n          if (value === null) return 'STRING';\n          if (value instanceof Date) return 'DATE';\n          if (Array.isArray(value)) return 'FILE_URL_ARRAY';\n          if (value.hours !== undefined || value.minutes !== undefined || value.seconds !== undefined) return 'PG_DURATION';\n          return 'STRING';\n        }\n      default:\n        return 'STRING';\n    }\n  }\n  function humanEnum(value) {\n    if (typeof value !== 'string') return value;\n    return value.toLowerCase().replace(/_/g, ' ').replace(/^\\w/, first => first.toUpperCase());\n  }\n  function oneBasedPath(path) {\n    if (!path) return '';\n    return path.split('.').map(part => (parseInt(part, 10) + 1).toString()).join('.');\n  }\n  function resolveSubject(schema, resourceFilter) {\n    if (!resourceFilter) return [];\n    const {\n      resourceName,\n      filter,\n      sortKey,\n      sortDirection\n    } = resourceFilter;\n    const synthetic = SYNTHETIC[resourceName];\n    const records = synthetic ? synthetic(schema, filter) : collectionFor(schema, resourceName).filter(record => matches(record, filter));\n    return sortRecords(records, sortKey, sortDirection);\n  }\n  function collectionFor(schema, resourceName) {\n    const key = camelize(resourceName);\n    const collection = schema[key];\n    if (!collection) {\n      console.warn(`[mirage] no collection for report resource \"${resourceName}\"`); // eslint-disable-line no-console\n      return [];\n    }\n    return collection.all().models;\n  }\n  function camelize(name) {\n    return name.replace(/-(\\w)/g, (_, letter) => letter.toUpperCase());\n  }\n  function matches(record, filter) {\n    if (!filter) return true;\n    return Object.entries(filter).every(([key, condition]) => {\n      if (key === '$and') return condition.every(f => matches(record, f));\n      if (key === '$or') return condition.some(f => matches(record, f));\n      if (key === '$nor') return !condition.some(f => matches(record, f));\n      if (key === '$not') return !matches(record, condition);\n      return matchesCondition(readField(record, key), condition);\n    });\n  }\n  function readField(record, key) {\n    if (key === '_id') return record.id;\n\n    // Relationship filters name the relationship; Mirage keeps the foreign key.\n    const foreign = foreignKey(record, key);\n    if (foreign !== undefined) return foreign;\n    return record[key];\n  }\n  function foreignKey(record, key) {\n    const value = record[`${key}Id`];\n    return value === undefined ? undefined : value;\n  }\n  function matchesCondition(value, condition) {\n    if (condition === null || typeof condition !== 'object') return String(value) === String(condition);\n    if (Array.isArray(condition)) return condition.map(String).includes(String(value));\n    if ('$in' in condition) return condition.$in.map(String).includes(String(value));\n    if ('$nin' in condition) return !condition.$nin.map(String).includes(String(value));\n    if ('$ne' in condition) return String(value) !== String(condition.$ne);\n    if ('$exists' in condition) return condition.$exists ? value != null : value == null;\n    const [gt, gte, lt, lte] = ['$gt', '$gte', '$lt', '$lte'].map(operator => operator in condition ? comparable(value, condition[operator]) : undefined);\n    if (gt && !(gt[0] > gt[1])) return false;\n    if (gte && !(gte[0] >= gte[1])) return false;\n    if (lt && !(lt[0] < lt[1])) return false;\n    if (lte && !(lte[0] <= lte[1])) return false;\n    return true;\n  }\n\n  // A date bound survives JSON as a string while the record still holds a Date,\n  // so compare them as timestamps rather than letting `>` coerce to NaN.\n  function comparable(value, bound) {\n    const left = asTime(value);\n    const right = asTime(bound);\n    if (left !== null && right !== null) return [left, right];\n    return [value, bound];\n  }\n  function asTime(value) {\n    if (value instanceof Date) return value.getTime();\n    if (typeof value !== 'string') return null;\n    const time = Date.parse(value);\n    return Number.isNaN(time) ? null : time;\n  }\n  function sortRecords(records, sortKey, sortDirection = 'ASC') {\n    const key = sortKey || DEFAULT_SORT_KEYS.find(candidate => records[0]?.[candidate] !== undefined);\n    if (!key) return records;\n    const direction = sortDirection === 'DESC' ? -1 : 1;\n    return [...records].sort((a, b) => {\n      const left = a[key];\n      const right = b[key];\n      if (left === right) return 0;\n      return (left > right ? 1 : -1) * direction;\n    });\n  }\n});","define(\"portal/mirage/responders/auth\", [\"exports\", \"ember\", \"miragejs\"], function (_exports, _ember, _miragejs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = authResponder;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"miragejs\"eaimeta@70e063a35619d71f\n  const {\n    getProperties\n  } = _ember.default;\n  function authResponder(schema, {\n    requestBody\n  }) {\n    console.warning('WARNING: this authentication flow is deprecated');\n    const body = JSON.parse(requestBody);\n    if (body.grant_type === 'authorization_code') {\n      return authCodeResponder(schema.workers, body);\n    } else {\n      return passwordResponder(schema.users, body);\n    }\n  }\n  function authCodeResponder(workers, body) {\n    const authCode = body.code;\n    const worker = workers.all().models.findBy('authCode', authCode);\n    if (!worker) {\n      const error = {\n        status: '401',\n        title: 'Bad email.'\n      };\n      console.info('While Mirage is running, use 123456 to login to a worker'); // eslint-disable-line no-console\n\n      return new _miragejs.Response(401, {}, {\n        errors: [error]\n      });\n    }\n    return {\n      access_token: 'worker',\n      token_type: 'bearer',\n      expires_in: 3600,\n      user: {\n        id: 'worker_pseudo_user:' + worker.id,\n        isWorkerPseudoUser: true,\n        hasAcceptedTerms: true,\n        canAccessPortal: true,\n        firstName: worker.firstName,\n        lastName: worker.lastName,\n        email: worker.email\n      }\n    };\n  }\n  function passwordResponder(users, body) {\n    const email = body.identification;\n    const user = users.all().models.findBy('email', email);\n    if (!user) {\n      const error = {\n        status: '401',\n        title: 'Bad email.'\n      };\n      console.info('While Mirage is running, use mirage@otbs.co.nz with any password to log in'); // eslint-disable-line no-console\n\n      return new _miragejs.Response(401, {}, {\n        errors: [error]\n      });\n    }\n    return {\n      access_token: 'admin',\n      token_type: 'bearer',\n      expires_in: 3600,\n      user: getProperties(user, ['id', 'email', 'hasAcceptedTerms', 'canAccessPortal', 'role'])\n    };\n  }\n});","define(\"portal/mirage/responders/buildaprice-add-templates\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = responder;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function responder() {\n    return {\n      success: true\n    };\n  }\n});","define(\"portal/mirage/responders/buildaprice-create-price\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = responder;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function responder(schema, request) {\n    const body = JSON.parse(request.requestBody);\n    const project = schema.projects.findBy({\n      id: body.project\n    });\n    const entity = schema.entities.findBy({\n      id: body.entity\n    });\n    const newEstimate = schema.estimates.create({\n      pricingMerchantName: body.pricingMerchantName,\n      pricingMerchantId: body.pricingMerchantId,\n      name: body.name,\n      address: body.address,\n      status: body.status,\n      project: project,\n      entity: entity,\n      pricingJobId: '123',\n      dateCreated: new Date()\n    });\n    return {\n      id: newEstimate.id\n    };\n  }\n});","define(\"portal/mirage/responders/buildaprice-create-tasks-from-estimate\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = responder;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function responder() {\n    return {\n      success: true\n    };\n  }\n});","define(\"portal/mirage/responders/buildaprice-duplicate-price\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = responder;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function responder(schema, request) {\n    const body = JSON.parse(request.requestBody);\n    const targetEstimate = schema.estimates.findBy({\n      id: body.estimateId\n    });\n    const copiedEstimate = schema.estimates.create({\n      name: body.name,\n      project: targetEstimate.project,\n      entity: targetEstimate.entity,\n      pricingJobId: body.pricingJobId,\n      pricingMerchantName: targetEstimate.pricingMerchantName,\n      pricingMerchantId: targetEstimate.pricingMerchantId,\n      address: targetEstimate.address,\n      status: targetEstimate.status,\n      dateCreated: new Date()\n    });\n    return {\n      id: copiedEstimate.id\n    };\n  }\n});","define(\"portal/mirage/responders/buildaprice-edit-price\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = responder;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function responder(schema, request) {\n    const body = JSON.parse(request.requestBody);\n    const targetEstimate = schema.estimates.findBy({\n      id: body.estimateId\n    });\n    targetEstimate.name = body.name;\n    targetEstimate.address = body.address;\n    targetEstimate.status = body.status;\n    targetEstimate.pricingJobId = body.pricingJobId;\n    targetEstimate.save();\n    return {\n      success: true\n    };\n  }\n});","define(\"portal/mirage/responders/buildaprice-entities\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = responder;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function responder(schema, request) {\n    if (!request.requestHeaders.Authorization) throw new Error('Auth Required');\n    const entities = [];\n    for (let i = 1; i <= 3; i++) {\n      entities.push({\n        id: i,\n        name: `Pricing Entity ${i}`,\n        eaccountsLink: i > 2 ? null : '123456'\n      });\n    }\n    return {\n      entities\n    };\n  }\n});","define(\"portal/mirage/responders/buildaprice-get-import-status\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = responder;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function responder() {\n    return {\n      canImport: true\n    };\n  }\n});","define(\"portal/mirage/responders/buildaprice-get-quotes\", [\"exports\", \"@faker-js/faker\"], function (_exports, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = responder;\n  0; //eaimeta@70e063a35619d71f0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  function responder(schema, request) {\n    const body = JSON.parse(request.requestBody);\n    if (!body) throw new Error('body Required');\n    const supplierNames = ['Bunnings', 'Cartel', 'PlaceMakers'];\n    const quotes = [];\n    for (let i = 0; i < 5; i++) {\n      quotes.push({\n        dateCreated: new Date(),\n        builderName: _faker.faker.company.name(),\n        supplierName: _faker.faker.random.arrayElement(supplierNames),\n        quoteNumber: _faker.faker.random.number(),\n        quoteVersion: Math.floor(Math.random() * 10) + 1,\n        id: new Date().getTime()\n      });\n    }\n    return quotes;\n  }\n});","define(\"portal/mirage/responders/buildaprice-get-template\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = responder;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function responder(schema, request) {\n    const body = JSON.parse(request.requestBody);\n    const merchantId = body.merchantId;\n    const templates = [];\n    for (let i = 0; i < 10; i++) {\n      templates.push({\n        id: merchantId + i,\n        name: `Template - ${i}`\n      });\n    }\n    return templates;\n  }\n});","define(\"portal/mirage/responders/buildaprice-import-estimate\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = responder;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function responder() {\n    const res = [{\n      name: 'A',\n      optionDescription: 'A-optionDescription',\n      pricingJobId: '123',\n      pricingMerchantId: '123',\n      pricingMerchantName: 'Carters',\n      status: 'Draft'\n    }, {\n      name: 'B',\n      optionDescription: 'B-optionDescription',\n      pricingJobId: '123',\n      pricingMerchantId: '123',\n      pricingMerchantName: 'Carters',\n      status: 'Submitted'\n    }];\n    return res;\n  }\n});","define(\"portal/mirage/responders/buildaprice-import-materials\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = responder;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function responder() {\n    return {\n      success: true\n    };\n  }\n});","define(\"portal/mirage/responders/gantt-chart\", [\"exports\", \"portal/mirage/demo/figures\"], function (_exports, _figures) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.ganttDataResponder = ganttDataResponder;\n  _exports.ganttSyncResponder = ganttSyncResponder;\n  0; //eaimeta@70e063a35619d71f0,\"portal/mirage/demo/figures\"eaimeta@70e063a35619d71f\n  // The Bryntum payload the scheduling timeline loads, assembled the way\n  // portal-api's src/app/controllers/gantt-chart/get.ts assembles it: one top\n  // level row per project, its tasks as children, and the dates coming from\n  // scheduling version values rather than from the task records themselves.\n  //\n  // The gantt has no Ember models behind it — the chart talks to this endpoint\n  // directly — so everything here is plain JSON keyed the way Bryntum wants it,\n  // not the way the JSON:API routes answer.\n\n  // The API's own numbers, including the 24 hour day it calls \"lol\".\n  const HOURS_PER_DAY = 24;\n  const DAYS_PER_WEEK = 5;\n  const DAYS_PER_MONTH = 20;\n  const CALENDARS = {\n    '5-day-week': {\n      id: '5-day-week',\n      name: '5 day week',\n      intervals: [{\n        recurrentStartDate: 'on Sat at 0:00',\n        recurrentEndDate: 'on Mon at 0:00',\n        isWorking: false\n      }]\n    },\n    '7-day-week': {\n      id: '7-day-week',\n      name: '7 day week',\n      intervals: []\n    }\n  };\n\n  // The engine only schedules tasks that are live and opted in.\n  const SCHEDULED_STATUSES = ['ACTIVE', 'DRAFT_CREATED'];\n\n  // The front end's resource avatar takes the first and last character of the\n  // first and last word, so the suffix is joined on with a non-breaking space to\n  // stop \"(worker)\" being read as the surname.\n  const NBSP = ' ';\n  function requestedIds(request, key) {\n    const raw = request.queryParams?.[key] ?? request.queryParams?.[`${key}[]`];\n    return [].concat(raw ?? []).flatMap(value => String(value).split(',')).filter(Boolean);\n  }\n  function isoDay(date) {\n    return date instanceof Date ? date.toISOString() : date;\n  }\n  function addDays(date, days) {\n    const moved = new Date(date);\n    moved.setDate(moved.getDate() + days);\n    return moved;\n  }\n\n  // A stage with no labour in its mix is a stage a subcontractor owns outright,\n  // and it has no man hours to measure progress against — it would read 0% on\n  // the bar beside a neighbour at 95%. Cost against forecast is what is left to\n  // go on, and it is the same fallback the engine's own progress data makes.\n  function percentDone(metrics) {\n    const progress = metrics.PROGRESS_TOTAL || metrics.FINANCIAL_PROGRESS_TOTAL || 0;\n    return Math.max(0, Math.min(100, Math.round(progress * 100)));\n  }\n  function scheduledTasks(schema, projectId) {\n    return schema.tasks.where({\n      projectId\n    }).models.filter(task => task.isSchedulingEnabled && SCHEDULED_STATUSES.includes(task.status)).sort((a, b) => (a.sortIndex ?? 0) - (b.sortIndex ?? 0));\n  }\n\n  // A pending change outranks the accepted programme, which is what lets the\n  // timeline show a proposed move before anyone commits to it.\n  function taskWindow(schema, task, project) {\n    const change = schema.schedulingChanges?.findBy({\n      taskId: task.id\n    });\n    const value = schema.schedulingVersionValues?.findBy({\n      taskId: task.id\n    });\n    const startDate = change?.startDate || value?.startDate || project.startDate || new Date();\n    const completionDate = change?.completedDate || value?.completionDate || addDays(startDate, 1);\n    return {\n      startDate: isoDay(startDate),\n      endDate: isoDay(new Date(completionDate) < new Date(startDate) ? startDate : completionDate)\n    };\n  }\n  function ganttTasks(schema, projects) {\n    return projects.map(project => ({\n      id: `gt-p-${project.id}`,\n      project: project.id,\n      task: null,\n      name: project.name,\n      calendar: CALENDARS['5-day-week'].id,\n      startDate: isoDay(project.startDate),\n      percentDone: percentDone((0, _figures.metricsFor)(schema, [project])),\n      expanded: true,\n      // The top level row is pinned to the project start so it does not drift\n      // off the gantt's own imaginary project start.\n      constraintType: 'startnoearlierthan',\n      constraintDate: isoDay(project.startDate),\n      readOnly: false,\n      children: scheduledTasks(schema, project.id).map(task => {\n        const metrics = (0, _figures.metricsFor)(schema, [task]);\n        return {\n          id: `gt-${task.id}`,\n          project: project.id,\n          task: task.id,\n          name: task.name,\n          calendar: CALENDARS['5-day-week'].id,\n          ...taskWindow(schema, task, project),\n          percentDone: percentDone(metrics),\n          effort: metrics.BUDGET_MANHOURS || 0,\n          readOnly: false\n        };\n      })\n    }));\n  }\n\n  // Nobody has drawn a link that crosses projects, so each project's stages\n  // chain to the one after them: finish to start, no lag.\n  function ganttDependencies(schema, projects) {\n    return projects.flatMap(project => {\n      const tasks = scheduledTasks(schema, project.id);\n      return tasks.slice(1).map((task, index) => ({\n        id: `gd-${tasks[index].id}-${task.id}`,\n        type: 2,\n        lag: 0,\n        active: true,\n        fromTask: `gt-${tasks[index].id}`,\n        toTask: `gt-${task.id}`\n      }));\n    });\n  }\n  function ganttResources(schema, entityId) {\n    const users = schema.users.all().models.map(user => ({\n      id: user.id,\n      name: `${user.firstName} ${user.lastName}${NBSP}(user)`,\n      eventColor: 'violet',\n      readOnly: false\n    }));\n    const workers = schema.workers.where({\n      entityId\n    }).models.map(worker => ({\n      id: worker.id,\n      name: `${worker.firstName} ${worker.lastName}${NBSP}(${worker.isActive ? '' : 'inactive '}worker)`,\n      eventColor: 'blue',\n      readOnly: false\n    }));\n    return [...users, ...workers].sort((a, b) => a.name > b.name ? 1 : -1);\n  }\n\n  // Who is on a task is not stored anywhere the demo world seeds, but who has\n  // booked time to one is: the timesheets already say which worker was on which\n  // task, so the assignments are read back off those.\n  function ganttAssignments(schema, projects) {\n    const projectIds = new Set(projects.map(project => project.id));\n    const seen = new Set();\n    return schema.timesheets.all().models.filter(timesheet => projectIds.has(timesheet.projectId) && timesheet.taskId && timesheet.workerId).map(timesheet => ({\n      id: `ga-${timesheet.taskId}-${timesheet.workerId}`,\n      event: `gt-${timesheet.taskId}`,\n      resource: timesheet.workerId,\n      units: 100,\n      readOnly: false\n    })).filter(assignment => {\n      if (seen.has(assignment.id)) return false;\n      seen.add(assignment.id);\n      return true;\n    });\n  }\n  function earliestStart(projects) {\n    const starts = projects.map(project => project.startDate || project.dateCreated).filter(Boolean).map(date => new Date(date).getTime());\n    return new Date(starts.length ? Math.min(...starts) : Date.now());\n  }\n  function ganttDataResponder(schema, request) {\n    const entityId = request.queryParams?.subjectEntityId;\n    const projects = requestedIds(request, 'projectIds').map(id => schema.projects.find(id)).filter(Boolean);\n    return {\n      success: true,\n      project: {\n        calendar: CALENDARS['5-day-week'].id,\n        startDate: isoDay(earliestStart(projects)),\n        hoursPerDay: HOURS_PER_DAY,\n        daysPerWeek: DAYS_PER_WEEK,\n        daysPerMonth: DAYS_PER_MONTH\n      },\n      calendars: {\n        rows: Object.values(CALENDARS)\n      },\n      tasks: {\n        rows: ganttTasks(schema, projects)\n      },\n      dependencies: {\n        rows: ganttDependencies(schema, projects)\n      },\n      resources: {\n        rows: ganttResources(schema, entityId)\n      },\n      assignments: {\n        rows: ganttAssignments(schema, projects)\n      },\n      timeRanges: {\n        rows: []\n      }\n    };\n  }\n\n  // Accepting the change without writing it back: the demo world is rebuilt on\n  // reload anyway, and answering with the shape the real endpoint answers with\n  // is what stops the chart reporting a failed save.\n  function ganttSyncResponder() {\n    return {\n      success: true,\n      tasks: {\n        rows: [],\n        removed: []\n      },\n      dependencies: {\n        rows: [],\n        removed: []\n      },\n      assignments: {\n        rows: [],\n        removed: []\n      }\n    };\n  }\n});","define(\"portal/mirage/responders/get-with-filter\", [\"exports\", \"ember\", \"moment\", \"portal/mirage/responders/resolve-model-key\"], function (_exports, _ember, _moment, _resolveModelKey) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = makeResponderForRoute;\n  0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"moment\",0,\"portal/mirage/responders/resolve-model-key\"eaimeta@70e063a35619d71f\n  const {\n    get\n  } = _ember.default;\n  const paramPattern = /^filter\\[simple\\]\\[(\\w+)\\](\\[\\$\\w+\\])?$/;\n\n  /**\n   * Builds a closure function to handle requests for the given route.\n   *\n   * @param  {String} route - The name of the route.\n   * @return {Function} - Mirage request handler.\n   */\n  function makeResponderForRoute(route) {\n    /**\n     * A Mirage GET request handler that also applies filter[simple][<field_name>] query params.\n     * Does not handle the filter[simple][<field_name>][<mongo_operator>] format.\n     *\n     * @param  {Schema} schema\n     * @param  {Request} request\n     * @return {Object} - Mirage record object.\n     */\n    return function getWithFilterResponder(schema, request) {\n      const modelKey = (0, _resolveModelKey.default)(schema, route);\n      if (!schema[modelKey]) throw new Error(`No schema found for route '${route}'`);\n      const records = schema[modelKey].all();\n      if (!records.models.length) return records;\n\n      // Extract a list of relationship names for the model\n      const foreignKeys = records.models[0].fks.map(key => key.replace(/Id$/, ''));\n\n      // Build a collection representing the filtering requirements\n      const filters = Object.keys(request.queryParams)\n      // Check the param is one of the supported types\n      .filter(param => param.match(paramPattern) !== null)\n      // Extract the field name\n      .map(param => param.match(paramPattern).slice(1))\n      // Add 'Id' to the key if it is a relationship, and extract the constraining value\n      .map(([key, operator]) => ({\n        key: foreignKeys.includes(key) ? key + 'Id' : key,\n        constraint: request.queryParams[`filter[simple][${key}]${operator ? operator : ''}`],\n        operator\n      }));\n\n      // Apply the filters\n      filters.forEach(({\n        key,\n        constraint,\n        operator\n      }) => {\n        // Mongo uses _id, Mirage uses id\n        if (key === '_id') {\n          key = 'id';\n        }\n        records.models = records.models.filter(record => {\n          let value = get(record, key);\n          if (value instanceof Date) {\n            constraint = (0, _moment.default)(new Date(constraint)).valueOf();\n            value = (0, _moment.default)(value).valueOf();\n          }\n          switch (operator) {\n            case '[$gt]':\n              return value > constraint;\n            case '[$gte]':\n              return value >= constraint;\n            case '[$lt]':\n              return value < constraint;\n            case '[$lte]':\n              return value <= constraint;\n            case '[$in]':\n              return constraint.includes(value);\n            case '[$ne]':\n              return value !== constraint;\n            case '[$like]':\n              // The v2 responder already supports LIKE; the app uses $like for\n              // search on purchase orders and notes.\n              return String(value ?? '').toLowerCase().includes(String(constraint).toLowerCase());\n            default:\n              // If constraint is 'true' then it should be enough for the value to be truthy\n              // If constraint is 'false' then it should be enough for the value to be falsey\n              // Otherwise they must exactly match\n              return constraint === 'true' && value || constraint === 'false' && !value || value === constraint;\n          }\n        });\n      });\n      return records;\n    };\n  }\n});","define(\"portal/mirage/responders/ips\", [\"exports\", \"@faker-js/faker\"], function (_exports, _faker) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.ipsListResponder = ipsListResponder;\n  _exports.ipsUpdateResponder = ipsUpdateResponder;\n  _exports.ipsUsageResponder = ipsUsageResponder;\n  0; //eaimeta@70e063a35619d71f0,\"@faker-js/faker\"eaimeta@70e063a35619d71f\n  const ipsConnections = new Array(5).fill(null).map((_, _i) => {\n    const entityName = _faker.faker.company.name();\n    return {\n      contactEmail: _faker.faker.internet.email(),\n      email: `${entityName.replaceAll(' ', '').replaceAll(',', '').toLowerCase()}@ips.buildaadmin.com`\n    };\n  });\n  function ipsListResponder() {\n    return ipsConnections;\n  }\n  function ipsUpdateResponder() {\n    return {\n      success: true\n    };\n  }\n\n  // a company partway through its allowance\n  function ipsUsageResponder() {\n    const now = Math.floor(Date.now() / 1000);\n    return {\n      used: 4,\n      limit: 15,\n      remaining: 11,\n      periodStart: new Date((now - 5 * 86400) * 1000).toISOString(),\n      periodEnd: new Date((now + 25 * 86400) * 1000).toISOString(),\n      hasActiveTerm: true,\n      isMetered: false,\n      canUpgrade: true,\n      isConnected: true\n    };\n  }\n});","define(\"portal/mirage/responders/reports\", [\"exports\", \"@ember/utils\", \"moment\", \"lodash\"], function (_exports, _utils, _moment, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = fakeReporter;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"moment\",0,\"lodash\"eaimeta@70e063a35619d71f\n  // Generate fake balance and KPI reports\n  function fakeReporter(type) {\n    return function (schema, request) {\n      // The kpi report routes POST their spec as a JSON body; the balance\n      // routes pass the same fields as query params.\n      const params = {\n        ...request.queryParams,\n        ...parseBody(request)\n      };\n      const periods = buildPeriods(params);\n      const series = buildSeries(schema, params, periods);\n      const data = buildMetrics(type, schema, params, series);\n      populateReport(data);\n\n      // The real API wraps the report in a meta envelope. The general ledger\n      // routes default it to {} when it is missing, but itm-profit-and-loss\n      // reads meta.firstClosedPeriod straight off the response, so leaving it\n      // out took that whole report down.\n      return {\n        data,\n        meta: {}\n      };\n    };\n  }\n  function parseBody({\n    requestBody\n  }) {\n    if (!requestBody) return {};\n    try {\n      return JSON.parse(requestBody);\n    } catch {\n      return {};\n    }\n  }\n\n  /*\n   * Builds a collection of period objects, let the smallest component of a report.\n   */\n  function buildPeriods(qp) {\n    let currentPeriod = (0, _moment.default)(qp.periodStart, 'YYYY-MM').endOf('month');\n    const lastPeriod = (0, _moment.default)(qp.periodEnd, 'YYYY-MM').endOf('month');\n    const periods = [];\n\n    // Generate an a list of dates to be included\n    do {\n      periods.push(currentPeriod.toDate().toISOString());\n      currentPeriod = currentPeriod.add(1, 'month').endOf('month');\n    } while (currentPeriod.isSameOrBefore(lastPeriod));\n\n    // Turn that list into an empty data structure\n    return periods.map(period => {\n      period = {\n        date: period,\n        organisation: qp.organisation,\n        periodTypes: {}\n      };\n      qp.periodTypes = qp.periodTypes || [];\n      const includeMonth = qp.periodTypes.includes('month');\n      const includeYTD = qp.periodTypes.includes('ytd');\n\n      // Include month data if asked for, or as a default if nothing was asked for\n      if (includeMonth || !includeMonth && !includeYTD) {\n        period.periodTypes.month = {\n          value: null\n        };\n      }\n\n      // Only include YTD data if asked for explicitly\n      if (includeYTD) {\n        period.periodTypes.ytd = {\n          value: null\n        };\n      }\n      return period;\n    });\n  }\n\n  /*\n   * Builds a collection of series objects, representing branches and groups. Each of these\n   * include a period object. They form the middle level of the report hierarchy.\n   */\n  function buildSeries(schema, qp, periods) {\n    const series = [];\n    const entities = (qp.entity ? [qp.entity] : qp.entities) || [];\n    const groups = (qp.entityGroup ? [qp.entityGroup] : qp.entityGroups) || [];\n\n    // Take the periods we generated earlier and use them to populate branch lists\n    entities.forEach(entity => {\n      series.push({\n        entity,\n        meta: {\n          name: _lodash.default.get(schema.entities.find(entity), 'name')\n        },\n        periods: _lodash.default.cloneDeep(periods)\n      });\n    });\n    groups.forEach(group => {\n      series.push({\n        group,\n        meta: {\n          name: _lodash.default.get(schema.entityGroups.find(group), 'name')\n        },\n        periods: _lodash.default.cloneDeep(periods)\n      });\n    });\n    return series;\n  }\n\n  /*\n   * Builds a collection of metrics, the top level of the report heirarchy.\n   */\n  function buildMetrics(type, schema, qp, series) {\n    let metrics = qp.metrics || qp.accounts;\n    if ((0, _utils.isEmpty)(metrics)) {\n      if (type === 'balances') {\n        metrics = schema.accounts.all().models.map(account => account.id);\n      } else {\n        metrics = schema.kpis.all().models.map(kpi => kpi.id);\n      }\n    }\n    const schemaName = type === 'balances' ? 'accounts' : 'kpis';\n    return (metrics || []).map(metric => {\n      const record = schema[schemaName].find(metric);\n      const meta = Object.assign({}, record.attrs);\n      meta._id = record.id;\n      meta.parent = meta.parentId;\n      return {\n        metric,\n        meta,\n        series: _lodash.default.cloneDeep(series)\n      };\n    });\n  }\n\n  /*\n   * Assigns random values to an otherwise-complete report\n   */\n  function populateReport(metrics) {\n    metrics.forEach(metric => {\n      metric.series.forEach(s => {\n        s.periods.forEach(period => {\n          if (period.periodTypes.month) {\n            if (metric.meta.format === 'PERCENTAGE') {\n              period.periodTypes.month.value = Math.random();\n            } else {\n              period.periodTypes.month.value = Math.random() * Math.pow(10, 5);\n            }\n          }\n          if (period.periodTypes.ytd) {\n            if (metric.meta.format === 'PERCENTAGE') {\n              period.periodTypes.ytd.value = Math.random();\n            } else {\n              period.periodTypes.ytd.value = Math.random() * Math.pow(10, 5);\n            }\n          }\n        });\n      });\n    });\n  }\n});","define(\"portal/mirage/responders/resolve-model-key\", [\"exports\", \"@ember/string\", \"ember-inflector\"], function (_exports, _string, _emberInflector) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = resolveModelKey;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/string\",0,\"ember-inflector\"eaimeta@70e063a35619d71f\n  // ember-inflector and Mirage's inflector disagree on some plurals — the app\n  // asks for `link-entity-group-can-be-accessed-bys` while Mirage registers the\n  // collection as `linkEntityGroupCanBeAccessedBies`. Ask Mirage what it calls\n  // the collection rather than guessing, so a route never 500s over inflection.\n  function resolveModelKey(schema, routeName) {\n    const direct = (0, _string.camelize)(routeName);\n    if (schema[direct]) return direct;\n    const collection = schema.toCollectionName((0, _emberInflector.singularize)(routeName));\n    return schema[collection] ? collection : undefined;\n  }\n});","define(\"portal/mirage/responders/static-content\", [\"exports\", \"miragejs\"], function (_exports, _miragejs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\"eaimeta@70e063a35619d71f\n  function _default(schema, request) {\n    return new _miragejs.Response(200, {\n      'Content-Type': 'text/html'\n    }, `\n    <h1>Pretend Static Content</h1>\n    <p>Original url: ${request.url}</p>\n  `);\n  }\n});","define(\"portal/mirage/responders/v2-get-with-filter\", [\"exports\", \"@ember/object\", \"portal/mirage/responders/resolve-model-key\"], function (_exports, _object, _resolveModelKey) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = makeJsonApiFilterResponder;\n  _exports.parseFilterParams = parseFilterParams;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/mirage/responders/resolve-model-key\"eaimeta@70e063a35619d71f\n  function makeJsonApiFilterResponder(routeName) {\n    return function (schema, request) {\n      const modelKey = (0, _resolveModelKey.default)(schema, routeName);\n      if (!schema[modelKey]) {\n        throw new Error(`no schema found for route '${routeName}'`);\n      }\n      const collection = schema[modelKey].all();\n\n      // build nested filter object from query params\n      const filterObj = request.queryParams.filter ? JSON.parse(request.queryParams.filter) : {};\n      Object.assign(filterObj, parseFilterParams(request.queryParams));\n      const hasFilter = Boolean(filterObj.and || filterObj.or);\n\n      // checks if an object is a simple condition\n      const isCondition = obj => 'field' in obj && 'op' in obj && 'value' in obj;\n\n      // evaluate a single condition against a record\n      function testCondition(record, cond) {\n        let actual = (0, _object.get)(record, cond.field);\n\n        // _id on the server vs client\n        if (cond.field === '_id') actual = record.id;\n\n        // hack for checking if relationship\n        if (actual?.id) actual = actual.id;\n        let expected = cond.value;\n        if (['true', 'false'].includes(expected)) expected = expected === 'true' ? true : false;\n        if (actual instanceof Date && !isNaN(Date.parse(expected))) {\n          expected = new Date(expected);\n        }\n        switch (cond.op) {\n          case 'GT':\n            return actual > expected;\n          case 'GE':\n            return actual >= expected;\n          case 'LT':\n            return actual < expected;\n          case 'LE':\n            return actual <= expected;\n          case 'NE':\n            return actual !== expected;\n          case 'EQ':\n            return actual === expected;\n          // match wildcard patterns case-sensitive\n          case 'LIKE':\n            {\n              if (typeof actual !== 'string' || typeof expected !== 'string') return false;\n              const likePattern = '^' + expected.replace(/[-\\\\^$*+?.()|[\\]{}]/g, '\\\\$&').replace(/%/g, '.*').replace(/_/g, '.') + '$';\n              return new RegExp(likePattern).test(actual);\n            }\n          // match wildcard patterns case-insensitive\n          case 'ILIKE':\n            {\n              if (typeof actual !== 'string' || typeof expected !== 'string') return false;\n              const ilikePattern = '^' + expected.replace(/[-\\\\^$*+?.()|[\\]{}]/g, '\\\\$&').replace(/%/g, '.*').replace(/_/g, '.') + '$';\n              // The app sends bare search terms with no wildcards and relies on\n              // the server matching substrings, so only anchor when the caller\n              // actually supplied a pattern.\n              if (!/[%_]/.test(expected)) {\n                return actual.toLowerCase().includes(expected.toLowerCase());\n              }\n              return new RegExp(ilikePattern, 'i').test(actual);\n            }\n          // A collection field (e.g. contact.aliases) containing a match\n          case 'CONTAINS_ILIKE':\n            {\n              const needle = String(expected).replace(/\\\\([%_\\\\])/g, '$1').toLowerCase();\n              const values = Array.isArray(actual) ? actual : [actual];\n              return values.some(value => String(value ?? '').toLowerCase().includes(needle));\n            }\n          case 'IN':\n            return Array.isArray(expected) && expected.includes(actual);\n          case 'NOT_IN':\n            return Array.isArray(expected) && !expected.includes(actual);\n          case 'IS_NULL':\n            return actual == null;\n          // null or undefined\n          case 'IS_NOT_NULL':\n            return actual != null;\n          default:\n            throw new Error(`unsupported operator: ${cond.op}`);\n        }\n      }\n\n      // recursively match nested filters. `and` and `or` can both be present at\n      // the same level — contacts and bills put their scoping conditions in\n      // `and` and their search terms in `or` — so returning on the first one\n      // found silently dropped the search. An empty group matches everything.\n      function matches(record, filter) {\n        const test = clause => isCondition(clause) ? testCondition(record, clause) : matches(record, clause);\n        const andMatches = !filter.and?.length || filter.and.every(test);\n        const orMatches = !filter.or?.length || filter.or.some(test);\n        return andMatches && orMatches;\n      }\n\n      // apply filtering\n      if (collection.models.length && hasFilter) {\n        collection.models = collection.models.filter(model => matches(model, filterObj));\n      }\n      return paginate(this, collection, request.queryParams);\n    };\n  }\n\n  /**\n   * Answers with the page that was asked for, and says which page it is.\n   *\n   * Mirage's own serializer emits no top-level `meta`, but the app pages off it:\n   * the invoices route stops asking once `meta.currentPage >= meta.totalPages`,\n   * and app/helpers/pagination-callback.js throws outright when `meta` is\n   * missing. With no meta the stop condition never held, so InfinityScroll's\n   * fill-the-viewport pass re-fetched page one and appended it to the list it\n   * already had — every invoice rendered twice.\n   *\n   * `page[size]` absent means the caller wants the lot, which is one page.\n   */\n  function paginate(handler, collection, queryParams) {\n    const size = Number(queryParams['page[size]']) || undefined;\n    const requestedPage = Number(queryParams['page[number]']) || 1;\n    const totalRecords = collection.models.length;\n    const totalPages = size ? Math.max(1, Math.ceil(totalRecords / size)) : 1;\n    const currentPage = Math.min(Math.max(requestedPage, 1), totalPages);\n    if (size) {\n      const start = (currentPage - 1) * size;\n      collection.models = collection.models.slice(start, start + size);\n    }\n    const json = handler.serialize(collection);\n    json.meta = {\n      ...json.meta,\n      totalRecords,\n      totalPages,\n      currentPage,\n      hasNextPage: currentPage < totalPages\n    };\n    return json;\n  }\n\n  // Rebuilds an arbitrarily nested filter from its bracket-notation query params,\n  // e.g. filter[and][1][and][0][or][0][field]. app/utils/search-filter.js nests a\n  // group per search word, so a one-level parse silently matched everything.\n  function parseFilterParams(queryParams) {\n    const root = {};\n    for (const [key, value] of Object.entries(queryParams)) {\n      if (!key.startsWith('filter[')) continue;\n      const path = (key.slice('filter'.length).match(/\\[([^\\]]*)\\]/g) || []).map(segment => segment.slice(1, -1));\n      if (!path.length) continue;\n      let node = root;\n      path.forEach((segment, index) => {\n        if (index === path.length - 1) {\n          node[segment] = value;\n          return;\n        }\n        if (node[segment] == null) {\n          node[segment] = /^\\d+$/.test(path[index + 1]) ? [] : {};\n        }\n        node = node[segment];\n      });\n    }\n    return root;\n  }\n});","define(\"portal/mirage/responders/v2-resources\", [\"exports\", \"@ember/object\", \"portal/mirage/responders/resolve-model-key\", \"portal/mirage/responders/v2-get-with-filter\"], function (_exports, _object, _resolveModelKey, _v2GetWithFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = v2ResourcesResponder;\n  _exports.v2ResourceResponder = v2ResourceResponder;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/mirage/responders/resolve-model-key\",0,\"portal/mirage/responders/v2-get-with-filter\"eaimeta@70e063a35619d71f\n  /**\n   * Serves `${apiV2Path}/resources/:type`, the path the v2 REST adapter uses.\n   *\n   * The app's ApiV2Serializer expects `{ data: [{ _id, ...attrs }], pagination }`\n   * with relationships as bare ids under the relationship name, so Mirage's\n   * `entityId` has to be republished as `entity`.\n   *\n   * Filtering follows the same shape as the json-api endpoints. Conditions\n   * spelled with `operator` rather than `op` are honoured too: a little over a\n   * sixth of the app's call sites use that spelling, and silently ignoring them\n   * would make a filtered query look like it returned everything.\n   */\n  function v2ResourcesResponder(schema, request) {\n    const type = request.params.type;\n    const modelKey = (0, _resolveModelKey.default)(schema, type);\n    const empty = {\n      data: [],\n      pagination: {\n        totalRecords: 0,\n        hasNextPage: false,\n        totalPages: 0,\n        currentPage: 1\n      }\n    };\n    if (!modelKey || !schema[modelKey]) return empty;\n\n    // The v2 REST adapter sends the filter as bracket-notation query params\n    // (filter[and][0][field]=...), not as a JSON blob.\n    const filterObj = request.queryParams.filter ? JSON.parse(request.queryParams.filter) : (0, _v2GetWithFilter.parseFilterParams)(request.queryParams);\n    const opOf = cond => cond.op ?? cond.operator;\n    const isCondition = obj => obj && 'field' in obj && 'value' in obj && opOf(obj) !== undefined;\n    const testCondition = (model, cond) => {\n      let actual = (0, _object.get)(model, cond.field);\n      if (cond.field === '_id') actual = model.id;\n      // a belongsTo reads as the related model, compare on its id\n      if (actual?.id !== undefined && typeof actual === 'object') actual = actual.id;\n      const expected = cond.value;\n      switch (opOf(cond)) {\n        case 'EQ':\n          return String(actual) === String(expected);\n        case 'NE':\n          return String(actual) !== String(expected);\n        case 'IN':\n          return Array.isArray(expected) && expected.map(String).includes(String(actual));\n        case 'NOT_IN':\n          return Array.isArray(expected) && !expected.map(String).includes(String(actual));\n        case 'IS_NULL':\n          return actual == null;\n        case 'IS_NOT_NULL':\n          return actual != null;\n        case 'ILIKE':\n        case 'CONTAINS_ILIKE':\n          return String(actual ?? '').toLowerCase().includes(String(expected ?? '').toLowerCase());\n        case 'GT':\n          return actual > expected;\n        case 'GE':\n          return actual >= expected;\n        case 'LT':\n          return actual < expected;\n        case 'LE':\n          return actual <= expected;\n        default:\n          return true;\n      }\n    };\n    const evaluate = (model, node) => {\n      if (!node) return true;\n      if (isCondition(node)) return testCondition(model, node);\n      const and = node.and?.length ? node.and.every(child => evaluate(model, child)) : true;\n      // an empty `or` is \"no preference\", not \"match nothing\"\n      const or = node.or?.length ? node.or.some(child => evaluate(model, child)) : true;\n      return and && or;\n    };\n    const matching = schema[modelKey].all().models.filter(model => evaluate(model, filterObj));\n    const data = matching.map(toResource);\n    return {\n      data,\n      pagination: {\n        totalRecords: data.length,\n        hasNextPage: false,\n        totalPages: data.length ? 1 : 0,\n        currentPage: 1\n      }\n    };\n  }\n\n  /**\n   * Mirage keeps relationships as foreign keys; ApiV2Serializer looks for them\n   * under the relationship name, so republish both.\n   */\n  function toResource(model) {\n    const out = {\n      _id: model.id\n    };\n    for (const [key, value] of Object.entries(model.attrs)) {\n      if (key === 'id') continue;\n      out[key] = value;\n      if (key.endsWith('Ids')) out[`${key.slice(0, -3)}s`] = value;else if (key.endsWith('Id')) out[key.slice(0, -2)] = value;\n    }\n    return out;\n  }\n\n  /**\n   * Serves `${apiV2Path}/resources/:type/:id`. The serializer's findRecord\n   * branch merges the id in itself, so this returns the bare attributes rather\n   * than the `{ data }` envelope the collection endpoint uses.\n   */\n  function v2ResourceResponder(schema, request) {\n    const modelKey = (0, _resolveModelKey.default)(schema, request.params.type);\n    if (!modelKey || !schema[modelKey]) return {};\n    const model = schema[modelKey].find(request.params.id);\n    return model ? toResource(model) : {};\n  }\n});","define(\"portal/mirage/scenarios/default\", [\"exports\", \"portal/mirage/demo/seed\", \"portal/mirage/fixture-sets\"], function (_exports, _seed, _fixtureSets) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = defaultScenario;\n  0; //eaimeta@70e063a35619d71f0,\"portal/mirage/demo/seed\",0,\"portal/mirage/fixture-sets\"eaimeta@70e063a35619d71f\n  function defaultScenario(server) {\n    const sets = (0, _fixtureSets.fixtureSets)();\n    console.log(`Mirage mode on: \\`${sets.join('`, `')}\\``); // eslint-disable-line no-console\n    console.time('Time to build mirage fixtures'); // eslint-disable-line no-console\n\n    if (!sets.includes('empty')) (0, _seed.default)(server);\n    if (!sets.includes('no-login')) (0, _seed.authenticateDemoUser)();\n    console.timeEnd('Time to build mirage fixtures'); // eslint-disable-line no-console\n  }\n});","define(\"portal/mirage/serializers/application\", [\"exports\", \"miragejs\", \"@ember/string\"], function (_exports, _miragejs, _string) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"miragejs\",0,\"@ember/string\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _miragejs.JSONAPISerializer.extend({\n    alwaysIncludeLinkageData: true,\n    keyForAttribute(attr) {\n      return (0, _string.camelize)(attr);\n    },\n    keyForRelationship(attr) {\n      return (0, _string.camelize)(attr);\n    }\n  });\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        (true && (0, _debug.warn)('Menu route mixin expects the defaultRoute field to be set.', false, {\n          id: 'generic-warning'\n        }));\n      }\n    },\n    /**\n     * Handles a user visiting a menu route with a desktop-sized viewport. In this case we\n     * simply want to redirect them to the default option and allow them to choose an\n     * alternative from a sidebar.\n     *\n     * @returns {void}\n     */\n    redirect() {\n      (0, _object.get)(this, 'router').transitionTo(...(0, _object.get)(this, 'transitionArgs'));\n    },\n    /**\n     * Handles the sceanario where a user visits a menu route with a mobile- or\n     * tablet-sized viewport and then enlarges it.\n     */\n    registerViewportModeChangeListener: (0, _evented.on)('activate', function () {\n      (0, _object.get)(this, 'mediaEvents').on('mediaMatchesDidChange', this, this.handleViewportModeChange);\n    }),\n    deregisterViewModeChangeListener: (0, _evented.on)('deactivate', function () {\n      (0, _object.get)(this, 'mediaEvents').off('mediaMatchesDidChange', this, this.handleViewportModeChange);\n    }),\n    handleViewportModeChange() {\n      if ((0, _object.get)(this, 'media.isDesktop')) {\n        (0, _object.get)(this, 'router').replaceWith(...(0, _object.get)(this, 'transitionArgs'));\n      }\n    }\n  });\n});","define(\"portal/mixins/scroll-route\", [\"exports\", \"@ember/runloop\", \"@ember/object/mixin\", \"@ember/object\", \"jquery\"], function (_exports, _runloop, _mixin, _object, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/runloop\",0,\"@ember/object/mixin\",0,\"@ember/object\",0,\"jquery\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _mixin.default.create({\n    actions: {\n      didTransition() {\n        this._super(...arguments);\n\n        // Scroll the page the next time it finishes rendering.\n        (0, _runloop.scheduleOnce)('afterRender', this, () => {\n          const scrollHeight = (0, _object.get)(this, 'scrollHeight') || 0;\n          (0, _jquery.default)(window).scrollTop(scrollHeight);\n        });\n      },\n      willTransition() {\n        this._super(...arguments);\n\n        // Save the scroll height for when you return to the same route.\n        (0, _object.set)(this, 'scrollHeight', (0, _jquery.default)(window).scrollTop());\n      }\n    }\n  });\n});","define(\"portal/models/account-map\", [\"exports\", \"@ember-data/model\", \"portal/utils/calc-map-balance\", \"@ember/object\"], function (_exports, _model, _calcMapBalance, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/utils/calc-map-balance\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('account', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('boolean'), _dec8 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.attr)('date'), _dec1 = (0, _object.computed)('sourceBalance', 'inverted', 'step'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"account\", _descriptor, this);\n      _initializerDefineProperty(this, \"system\", _descriptor2, this);\n      _initializerDefineProperty(this, \"systemId\", _descriptor3, this);\n      _initializerDefineProperty(this, \"externalId\", _descriptor4, this);\n      _initializerDefineProperty(this, \"name\", _descriptor5, this);\n      _initializerDefineProperty(this, \"code\", _descriptor6, this);\n      _initializerDefineProperty(this, \"inverted\", _descriptor7, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n    }\n    /*\n     * This is to support the importer pages. To better understand, look at:\n     * app/controllers/entity/financials/import/data.js\n     * app/utils/balance-calculator.js\n     * app/utils/calc-map-balance.js\n     *\n     * This computed property was being set from addValue() within balance-calculator.js but had\n     * issues when trying to set a second time.\n     */\n    get value() {\n      const source = this.sourceBalance;\n      return (0, _calcMapBalance.default)(this, source);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"account\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"system\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"systemId\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"externalId\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"code\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"inverted\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"value\", [_dec1], Object.getOwnPropertyDescriptor(_class2.prototype, \"value\"), _class2.prototype), _class2);\n});","define(\"portal/models/account\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('boolean'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('boolean'), _dec1 = (0, _model.attr)('number'), _dec10 = (0, _model.belongsTo)('account', {\n    async: true,\n    inverse: null\n  }), _dec11 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.attr)('date'), _dec13 = (0, _model.attr)('date'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"code\", _descriptor2, this);\n      _initializerDefineProperty(this, \"label\", _descriptor3, this);\n      _initializerDefineProperty(this, \"description\", _descriptor4, this);\n      _initializerDefineProperty(this, \"category\", _descriptor5, this);\n      _initializerDefineProperty(this, \"debitCredit\", _descriptor6, this);\n      _initializerDefineProperty(this, \"periodic\", _descriptor7, this);\n      _initializerDefineProperty(this, \"format\", _descriptor8, this);\n      _initializerDefineProperty(this, \"status\", _descriptor9, this);\n      _initializerDefineProperty(this, \"isHeading\", _descriptor0, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor1, this);\n      _initializerDefineProperty(this, \"parent\", _descriptor10, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor11, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor12, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor13, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"code\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"label\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"category\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"debitCredit\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"periodic\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"format\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isHeading\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"parent\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/attachment-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('boolean'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attribute\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"deprecated\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"deprecated\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/attachment-project-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('attachment-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"attachment\", _descriptor2, this);\n      _initializerDefineProperty(this, \"project\", _descriptor3, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"attachment\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/attachment\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"portal/utils/sanitize-filename\", \"portal/models/base-model\", \"@glimmer/tracking\"], function (_exports, _model, _service, _sanitizeFilename, _baseModel, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.shortcutsToMime = _exports.mimeToHumanType = _exports.isMimeSame = _exports.humanTypes = _exports.extensionToMime = _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\",0,\"portal/utils/sanitize-filename\",0,\"portal/models/base-model\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // A collection of types we're likely to encounter\n  // http://www.iana.org/assignments/media-types/media-types.xhtml\n  const extensionToMime = _exports.extensionToMime = {\n    aac: 'audio/aac',\n    abw: 'application/x-abiword',\n    avi: 'video/x-msvideo',\n    csv: 'text/csv',\n    doc: 'application/msword',\n    docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n    gif: 'image/gif',\n    jpeg: 'image/jpeg',\n    jpg: 'image/jpeg',\n    mp3: 'audio/mpeg',\n    mpeg: 'video/mpeg',\n    odp: 'application/vnd.oasis.opendocument.presentation',\n    ods: 'application/vnd.oasis.opendocument.spreadsheet',\n    odt: 'application/vnd.oasis.opendocument.text',\n    png: 'image/png',\n    pdf: 'application/pdf',\n    ppt: 'application/vnd.ms-powerpoint',\n    pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n    rtf: 'application/rtf',\n    tif: 'image/tiff',\n    tiff: 'image/tiff',\n    txt: 'text/plain',\n    weba: 'audio/webm',\n    webm: 'video/webm',\n    webp: 'image/webp',\n    xls: 'application/vnd.ms-excel',\n    xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n    xml: 'application/xml',\n    gz: 'application/gzip',\n    rar: 'application/vnd.rar',\n    zip: 'application/zip',\n    '7z': 'application/x-7z-compressed'\n  };\n  const shortcutsToMime = _exports.shortcutsToMime = {\n    audio: ['audio/*'],\n    image: ['image/*'],\n    video: ['video/*'],\n    text: ['text/*'],\n    document: [extensionToMime.csv, extensionToMime.doc, extensionToMime.docx, extensionToMime.odp, extensionToMime.ods, extensionToMime.odt, extensionToMime.pdf, extensionToMime.ppt, extensionToMime.pptx, extensionToMime.rtf, extensionToMime.xls, extensionToMime.xlsx, extensionToMime.xml],\n    archive: [extensionToMime.gz, extensionToMime.rar, extensionToMime.zip, extensionToMime['7z']]\n  };\n  const humanTypes = _exports.humanTypes = {\n    audio: 'Audio',\n    document: 'Document',\n    presentation: 'Presentation',\n    spreadsheet: 'Spreadsheet',\n    image: 'Image',\n    video: 'Video',\n    archive: 'Archive'\n  };\n  const mimeToHumanType = _exports.mimeToHumanType = {\n    'audio/aac': humanTypes.audio,\n    'application/x-abiword': humanTypes.document,\n    'video/x-msvideo': humanTypes.video,\n    'text/csv': humanTypes.spreadsheet,\n    'application/msword': humanTypes.document,\n    'application/vnd.openxmlformats-officedocument.wordprocessingml.document': humanTypes.document,\n    'image/gif': humanTypes.image,\n    'image/jpeg': humanTypes.image,\n    'audio/mpeg': humanTypes.audio,\n    'video/mpeg': humanTypes.video,\n    'application/vnd.oasis.opendocument.presentation': humanTypes.presentation,\n    'application/vnd.oasis.opendocument.spreadsheet': humanTypes.spreadsheet,\n    'application/vnd.oasis.opendocument.text': humanTypes.document,\n    'image/png': humanTypes.image,\n    'application/pdf': humanTypes.document,\n    'application/vnd.ms-powerpoint': humanTypes.presentation,\n    'application/vnd.openxmlformats-officedocument.presentationml.presentation': humanTypes.presentation,\n    'application/rtf': humanTypes.document,\n    'image/tiff': humanTypes.image,\n    'text/plain': humanTypes.document,\n    'audio/webm': humanTypes.audio,\n    'video/webm': humanTypes.video,\n    'image/webp': humanTypes.image,\n    'application/vnd.ms-excel': humanTypes.spreadsheet,\n    'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': humanTypes.spreadsheet,\n    'application/xml': humanTypes.document,\n    'application/gzip': humanTypes.archive,\n    'application/vnd.rar': humanTypes.archive,\n    'application/zip': humanTypes.archive,\n    'application/x-7z-compressed': humanTypes.archive\n  };\n  const isMimeSame = (testMime, checkMime) => {\n    const regex = new RegExp(`^${testMime.replace('.', '\\\\.').replace('*', '.*').replace('/', '\\\\/')}$`);\n    return regex.test(checkMime);\n  };\n  _exports.isMimeSame = isMimeSame;\n  const toBase64 = file => new Promise((resolve, reject) => {\n    const reader = new FileReader();\n\n    // It so happens that Data URLs are base64 encoded.\n    // https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL\n    reader.readAsDataURL(file);\n    reader.onload = () => {\n      // trim the data:something/something;base64,\n      const base64 = reader.result.split(',').pop();\n      resolve(base64);\n    };\n    reader.onerror = error => reject(error);\n  });\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'allEntityAttachments'\n  }), _dec0 = (0, _model.hasMany)('link-attachment-to-project', {\n    async: true,\n    inverse: null\n  }), _dec1 = (0, _model.hasMany)('link-attachment-to-task', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.hasMany)('link-attachment-to-entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      // send this attribute via adapterOptions.meta\n      _initializerDefineProperty(this, \"data\", _descriptor2, this);\n      // base64\n      _initializerDefineProperty(this, \"filename\", _descriptor3, this);\n      _initializerDefineProperty(this, \"extension\", _descriptor4, this);\n      _initializerDefineProperty(this, \"fileType\", _descriptor5, this);\n      _initializerDefineProperty(this, \"hash\", _descriptor6, this);\n      _initializerDefineProperty(this, \"size\", _descriptor7, this);\n      // bytes\n      _initializerDefineProperty(this, \"description\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor1, this);\n      _initializerDefineProperty(this, \"projects\", _descriptor10, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor11, this);\n      _initializerDefineProperty(this, \"entities\", _descriptor12, this);\n    }\n    static async fromFileInput(file, store, entity) {\n      // we can not trust the file names coming from the system are valid\n      const filename = (0, _sanitizeFilename.default)(file.name);\n      const extension = filename.split('.').pop();\n      const fileType = file.type;\n      const data = await toBase64(file);\n      return store.createRecord('attachment', {\n        filename,\n        extension,\n        fileType,\n        data,\n        entity\n      });\n    }\n    get href() {\n      return this._meta?.href;\n    }\n    get humanType() {\n      const humanType = mimeToHumanType[this.fileType] || 'File';\n      return humanType;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"data\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"filename\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"extension\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"fileType\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"hash\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"size\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"projects\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"tasks\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"entities\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/base-attachment-model\", [\"exports\", \"portal/models/base-model\", \"portal/utils/sanitize-filename\"], function (_exports, _baseModel, _sanitizeFilename) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.shortcutsToMime = _exports.mimeToHumanType = _exports.isMimeSame = _exports.humanTypes = _exports.extensionToMime = _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/models/base-model\",0,\"portal/utils/sanitize-filename\"eaimeta@70e063a35619d71f\n  // A collection of types we're likely to encounter\n  // http://www.iana.org/assignments/media-types/media-types.xhtml\n  const extensionToMime = _exports.extensionToMime = {\n    aac: 'audio/aac',\n    abw: 'application/x-abiword',\n    avi: 'video/x-msvideo',\n    csv: 'text/csv',\n    doc: 'application/msword',\n    docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n    gif: 'image/gif',\n    jpeg: 'image/jpeg',\n    jpg: 'image/jpeg',\n    mp3: 'audio/mpeg',\n    mpeg: 'video/mpeg',\n    odp: 'application/vnd.oasis.opendocument.presentation',\n    ods: 'application/vnd.oasis.opendocument.spreadsheet',\n    odt: 'application/vnd.oasis.opendocument.text',\n    png: 'image/png',\n    pdf: 'application/pdf',\n    ppt: 'application/vnd.ms-powerpoint',\n    pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n    rtf: 'application/rtf',\n    tif: 'image/tiff',\n    tiff: 'image/tiff',\n    txt: 'text/plain',\n    weba: 'audio/webm',\n    webm: 'video/webm',\n    webp: 'image/webp',\n    xls: 'application/vnd.ms-excel',\n    xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n    xml: 'application/xml',\n    gz: 'application/gzip',\n    rar: 'application/vnd.rar',\n    zip: 'application/zip',\n    '7z': 'application/x-7z-compressed'\n  };\n  const shortcutsToMime = _exports.shortcutsToMime = {\n    audio: ['audio/*'],\n    image: ['image/*'],\n    video: ['video/*'],\n    text: ['text/*'],\n    document: [extensionToMime.csv, extensionToMime.doc, extensionToMime.docx, extensionToMime.odp, extensionToMime.ods, extensionToMime.odt, extensionToMime.pdf, extensionToMime.ppt, extensionToMime.pptx, extensionToMime.rtf, extensionToMime.xls, extensionToMime.xlsx, extensionToMime.xml],\n    archive: [extensionToMime.gz, extensionToMime.rar, extensionToMime.zip, extensionToMime['7z']]\n  };\n  const humanTypes = _exports.humanTypes = {\n    audio: 'Audio',\n    document: 'Document',\n    presentation: 'Presentation',\n    spreadsheet: 'Spreadsheet',\n    image: 'Image',\n    video: 'Video',\n    archive: 'Archive'\n  };\n  const mimeToHumanType = _exports.mimeToHumanType = {\n    'audio/aac': humanTypes.audio,\n    'application/x-abiword': humanTypes.document,\n    'video/x-msvideo': humanTypes.video,\n    'text/csv': humanTypes.spreadsheet,\n    'application/msword': humanTypes.document,\n    'application/vnd.openxmlformats-officedocument.wordprocessingml.document': humanTypes.document,\n    'image/gif': humanTypes.image,\n    'image/jpeg': humanTypes.image,\n    'audio/mpeg': humanTypes.audio,\n    'video/mpeg': humanTypes.video,\n    'application/vnd.oasis.opendocument.presentation': humanTypes.presentation,\n    'application/vnd.oasis.opendocument.spreadsheet': humanTypes.spreadsheet,\n    'application/vnd.oasis.opendocument.text': humanTypes.document,\n    'image/png': humanTypes.image,\n    'application/pdf': humanTypes.document,\n    'application/vnd.ms-powerpoint': humanTypes.presentation,\n    'application/vnd.openxmlformats-officedocument.presentationml.presentation': humanTypes.presentation,\n    'application/rtf': humanTypes.document,\n    'image/tiff': humanTypes.image,\n    'text/plain': humanTypes.document,\n    'audio/webm': humanTypes.audio,\n    'video/webm': humanTypes.video,\n    'image/webp': humanTypes.image,\n    'application/vnd.ms-excel': humanTypes.spreadsheet,\n    'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': humanTypes.spreadsheet,\n    'application/xml': humanTypes.document,\n    'application/gzip': humanTypes.archive,\n    'application/vnd.rar': humanTypes.archive,\n    'application/zip': humanTypes.archive,\n    'application/x-7z-compressed': humanTypes.archive\n  };\n  const isMimeSame = (testMime, checkMime) => {\n    const regex = new RegExp(`^${testMime.replace('.', '\\\\.').replace('*', '.*').replace('/', '\\\\/')}$`);\n    return regex.test(checkMime);\n  };\n  _exports.isMimeSame = isMimeSame;\n  const toBase64 = file => new Promise((resolve, reject) => {\n    const reader = new FileReader();\n\n    // It so happens that Data URLs are base64 encoded.\n    // https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL\n    reader.readAsDataURL(file);\n    reader.onload = () => {\n      // trim the data:something/something;base64,\n      const base64 = reader.result.split(',').pop();\n      resolve(base64);\n    };\n    reader.onerror = error => reject(error);\n  });\n  class BaseAttachmentsModel extends _baseModel.default {\n    get data() {\n      return this._data;\n    }\n    set data(value) {\n      this._data = value;\n    }\n    get filename() {\n      return this._meta?.filename || this._filename;\n    }\n    set filename(value) {\n      this._filename = value;\n    }\n    get extension() {\n      return this._meta?.extension || this._extension;\n    }\n    set extension(value) {\n      this._extension = value;\n    }\n    get href() {\n      if (this._meta?.href) return this._meta.href;\n      if (!this.data || !this.fileType) return undefined;\n      return `data:${this.fileType};base64,${this.data}`;\n    }\n    get fileType() {\n      return this._meta?.fileType || this._fileType;\n    }\n    set fileType(value) {\n      this._fileType = value;\n    }\n    get size() {\n      return this._meta?.size || this._size;\n    }\n    set size(value) {\n      this._size = value;\n    }\n    get previewHref() {\n      if (!this.href) return undefined;\n      if (this.href.includes('data')) return this.href;\n      const separator = this.href.includes('?') ? '&' : '?';\n      return `${this.href}${separator}download=false#navpanes=0&view=FitH`;\n    }\n    get attachmentInfo() {\n      return {\n        fileType: this.fileType,\n        filename: this.filename,\n        href: this.href,\n        id: this.id,\n        size: this.size,\n        previewHref: this.previewHref\n      };\n    }\n    async save(options = {}) {\n      const {\n        meta,\n        ...adapterOptions\n      } = options.adapterOptions || {};\n      if (this.isNew) {\n        adapterOptions.meta = {\n          data: this.data,\n          filename: this.filename,\n          fileType: this.fileType,\n          extension: this.extension,\n          ...meta\n        };\n      }\n      return super.save({\n        ...options,\n        adapterOptions\n      });\n    }\n    static async fromFileInput(file, store, entity) {\n      // we can not trust the file names coming from the system are valid\n      const filename = (0, _sanitizeFilename.default)(file.name);\n      const extension = filename.split('.').pop();\n      const fileType = file.type;\n      const size = file.size;\n      const data = await toBase64(file);\n      return store.createRecord('attachment', {\n        filename,\n        extension,\n        fileType,\n        size,\n        data,\n        entity\n      });\n    }\n    get humanType() {\n      const humanType = mimeToHumanType[this.fileType] || 'File';\n      return humanType;\n    }\n  }\n  _exports.default = BaseAttachmentsModel;\n});","define(\"portal/models/base-model\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _BaseModel;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let BaseModel = _exports.default = (_class = (_BaseModel = class BaseModel extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_meta\", _descriptor, this);\n    }\n    safeBelongsToValue(relationName) {\n      // halt if the record has been severed from the store\n      if (this.isDestroyed || this.isDestroying || this.isDeleted) {\n        return null;\n      }\n      return this.belongsTo(relationName).value();\n    }\n    safeHasManyToValue(relationName) {\n      // halt if the record has been severed from the store\n      if (this.isDestroyed || this.isDestroying || this.isDeleted) {\n        return null;\n      }\n      return this.hasMany(relationName).value();\n    }\n    toJSON() {\n      const serialized = this.serialize({\n        includeId: true\n      });\n      const obj = {\n        ...serialized.data.attributes,\n        id: serialized.data.id\n      };\n      Object.entries(serialized.data.relationships).forEach(([key, value]) => {\n        if (Array.isArray(value.data)) {\n          obj[key] = value.data.map(relationship => relationship.id);\n          return;\n        }\n        obj[key] = value.data?.id;\n      });\n      return obj;\n    }\n  }, _defineProperty(_BaseModel, \"requiredMetaFields\", []), _BaseModel), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_meta\", [_model.attr], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/models/bill-attachment\", [\"exports\", \"@ember-data/model\", \"portal/models/base-attachment-model\"], function (_exports, _model, _baseAttachmentModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-attachment-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('bill', {\n    async: true,\n    inverse: 'attachments'\n  }), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseAttachmentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"bill\", _descriptor, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"bill\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/bill-item\", [\"exports\", \"portal/models/base-model\", \"@ember-data/model\", \"@ember/object\"], function (_exports, _baseModel, _model, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  0; //eaimeta@70e063a35619d71f0,\"portal/models/base-model\",0,\"@ember-data/model\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 1\n  }), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec7 = (0, _model.attr)('boolean'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.belongsTo)('bill', {\n    async: true,\n    inverse: 'items'\n  }), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec11 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec13 = (0, _model.belongsTo)('purchase-order-item', {\n    async: true,\n    inverse: null\n  }), _dec14 = (0, _object.computed)('quantity', 'unitPrice'), _dec15 = (0, _object.computed)('glAccount.label'), _dec16 = (0, _object.computed)('isMapped', 'project.id', 'task.id'), _dec17 = (0, _object.computed)('task', 'task.{parent,project}', 'project', 'isMapped'), _dec18 = (0, _object.computed)('isDeleted', 'description', 'productCode', 'quantity', 'unitPrice'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"description\", _descriptor, this);\n      _initializerDefineProperty(this, \"productCode\", _descriptor2, this);\n      _initializerDefineProperty(this, \"quantity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"unitTaxAmount\", _descriptor4, this);\n      _initializerDefineProperty(this, \"unitPrice\", _descriptor5, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor6, this);\n      _initializerDefineProperty(this, \"reported\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor9, this);\n      _initializerDefineProperty(this, \"bill\", _descriptor0, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor1, this);\n      _initializerDefineProperty(this, \"project\", _descriptor10, this);\n      _initializerDefineProperty(this, \"task\", _descriptor11, this);\n      _initializerDefineProperty(this, \"glAccount\", _descriptor12, this);\n      _initializerDefineProperty(this, \"purchaseOrderItem\", _descriptor13, this);\n    }\n    get isMapped() {\n      return this._meta?.isMapped;\n    }\n    set isMapped(value) {\n      // Do nothing\n    }\n    get totalPrice() {\n      return (this.quantity || 0) * (this.unitPrice || 0);\n    }\n    get glAccountLabel() {\n      const glAccount = this.belongsTo('glAccount').value();\n      if (!glAccount) return '–';\n      return glAccount.label;\n    }\n\n    // you can map when the item is not mapped OR you can see the project or task it is mapped to\n    get canMap() {\n      const isMapped = this.isMapped;\n      if (!isMapped) return true;\n      const canSeeProject = Boolean(this.belongsTo('project').id());\n      const canSeeTask = Boolean(this.belongsTo('task').id());\n      return canSeeProject || canSeeTask;\n    }\n    get assignment() {\n      const assignments = [];\n      const task = this.belongsTo('task').value();\n      const project = this.belongsTo('project').value();\n      if (task?.id) {\n        const handleTask = task => {\n          assignments.unshift(task.name);\n          const parent = task.belongsTo?.('parent')?.value?.();\n          if (parent?.id) {\n            handleTask(parent);\n          } else {\n            const project = task.belongsTo?.('project')?.value?.();\n            if (project?.name) {\n              assignments.unshift(project.name);\n            }\n          }\n        };\n        handleTask(task);\n      } else if (project?.id) {\n        assignments.unshift(project.name);\n      } else if (this.isMapped) {\n        return 'Assigned to a project or task you can not see';\n      }\n      return assignments.join(' > ') || ' – ';\n    }\n\n    // To be valid, an item must have:\n    // * A product code or/and a description\n    // * A quantity (may be zero, but not null|undefined)\n    // * A unitPrice (may be zero, but not null|undefined)\n    get isValid() {\n      if (this.isDeleted) return true;\n      return (this.productCode || this.description) && this.quantity != null && this.unitPrice !== null;\n    }\n\n    // we need this because, for valid to determine whether quantity has to be negative or positive\n    get billType() {\n      return this.belongsTo('bill').value()?.billType;\n    }\n    get allocations() {\n      const allocations = this._meta?.allocationPath ?? [];\n      return [allocations];\n    }\n    get purchaseOrderMatchingStatus() {\n      const purchaseOrderDetails = this._meta?.purchaseOrder;\n      let hasError = false;\n      let hasWarning = false;\n      const messages = [];\n      if (!purchaseOrderDetails) {\n        hasError = true;\n        messages.push(`Item is not mapped to po item.`);\n        return {\n          class: hasError ? 'text-danger' : 'text-warning',\n          title: messages.join('</br>')\n        };\n      }\n      const billedQuantity = Number(this.quantity) + Number(purchaseOrderDetails.quantityInOtherBills);\n      const quantityOrdered = Number(purchaseOrderDetails.quantityOrdered);\n      const quantityDelivered = Number(purchaseOrderDetails.quantityDelivered);\n      if (!purchaseOrderDetails.unitPriceMatches) {\n        hasError = true;\n        messages.push(`UnitPrice Status: does not match.`);\n      }\n      if (quantityOrdered !== null) {\n        if (billedQuantity > quantityOrdered) {\n          hasError = true;\n          messages.push(`Ordered Status : billed quantity ${billedQuantity} is more then what has been ordered ${quantityOrdered}.`);\n        } else if (billedQuantity < quantityOrdered) {\n          hasWarning = true;\n          messages.push(`Ordered Status : billed quantity ${billedQuantity} is less then what has been ordered ${quantityOrdered}.`);\n        }\n      }\n      if (quantityDelivered != null) {\n        if (billedQuantity > quantityDelivered) {\n          hasError = true;\n          messages.push(`Delivery Status : billed quantity ${billedQuantity} is more then what has been delivered ${quantityDelivered}.`);\n        } else if (billedQuantity < quantityDelivered) {\n          hasWarning = true;\n          messages.push(`Delivery Status : billed quantity ${billedQuantity} is less then what has been delivered ${quantityDelivered}.`);\n        }\n      }\n      if (!hasError && !hasWarning) return null;\n      return {\n        class: hasError ? 'text-danger' : 'text-warning',\n        title: messages.join('</br>')\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"productCode\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"quantity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"unitTaxAmount\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"unitPrice\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"reported\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"bill\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"glAccount\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrderItem\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"totalPrice\", [_dec14], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalPrice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"glAccountLabel\", [_dec15], Object.getOwnPropertyDescriptor(_class2.prototype, \"glAccountLabel\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"canMap\", [_dec16], Object.getOwnPropertyDescriptor(_class2.prototype, \"canMap\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"assignment\", [_dec17], Object.getOwnPropertyDescriptor(_class2.prototype, \"assignment\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"isValid\", [_dec18], Object.getOwnPropertyDescriptor(_class2.prototype, \"isValid\"), _class2.prototype), _class2);\n});","define(\"portal/models/bill\", [\"exports\", \"@ember-data/model\", \"@ember/object\", \"@ember/service\", \"portal/models/base-model\", \"portal/config/environment\", \"portal/validators/bill\"], function (_exports, _model, _object, _service, _baseModel, _environment, _bill) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/models/base-model\",0,\"portal/config/environment\",0,\"portal/validators/bill\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('string', {\n    defaultValue: 'DRAFT'\n  }), _dec7 = (0, _model.attr)('string', {\n    defaultValue: 'MATERIALS'\n  }), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('string'), _dec12 = (0, _model.attr)('string'), _dec13 = (0, _model.attr)('string'), _dec14 = (0, _model.attr)('string', {\n    defaultValue: 'BILL'\n  }), _dec15 = (0, _model.attr)('number'), _dec16 = (0, _model.attr)('number'), _dec17 = (0, _model.attr)('string'), _dec18 = (0, _model.attr)('date'), _dec19 = (0, _model.attr)('date'), _dec20 = (0, _model.belongsTo)('invoice-auto-map-directive', {\n    async: true,\n    inverse: null\n  }), _dec21 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec22 = (0, _model.belongsTo)('purchase-order', {\n    async: true,\n    inverse: null\n  }), _dec23 = (0, _model.belongsTo)('contact', {\n    async: true,\n    inverse: null\n  }), _dec24 = (0, _model.hasMany)('bill-item', {\n    async: true,\n    inverse: 'bill'\n  }), _dec25 = (0, _model.hasMany)('bill-attachment', {\n    async: true,\n    inverse: 'bill'\n  }), _dec26 = (0, _object.computed)('activeItems.[]', 'items.[]', 'items.@each.{isDeleted,totalPrice}'), _dec27 = (0, _object.computed)('xeroInvoiceId', 'xeroCreditNoteId'), _dec28 = (0, _object.computed)('quickbooksBillId', 'quickbooksCreditNoteId'), _dec29 = (0, _object.computed)('activeItems.[]', 'items.[]', 'items.@each.{isDeleted,isMapped,project,task}'), _dec30 = (0, _object.computed)('activeItems.[]', 'items.[]', 'items.@each.{isDeleted,canMap}'), _dec31 = (0, _object.computed)('activeItems.[]', 'items.[]', 'items.@each.{isDeleted,dateCreated}'), _dec32 = (0, _object.computed)('xeroInvoiceId', 'xeroCreditNoteId'), _dec33 = (0, _object.computed)('quickbooksBillId', 'quickbooksCreditNoteId'), _dec34 = (0, _object.computed)('billNumber', 'name', 'issuer', 'allocationType', 'issueDate', 'dueDate', 'activeItems.[]', 'items.[]', 'items.@each.{isDeleted,isValid}'), _dec35 = (0, _object.computed)('activeItems.[]', 'items.[]', 'items.@each.{isDeleted,isMapped}'), _dec36 = (0, _object.computed)('totalPrice'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor3, this);\n      _initializerDefineProperty(this, \"reference\", _descriptor4, this);\n      _initializerDefineProperty(this, \"billNumber\", _descriptor5, this);\n      _initializerDefineProperty(this, \"issuer\", _descriptor6, this);\n      _initializerDefineProperty(this, \"issueDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dueDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"status\", _descriptor9, this);\n      _initializerDefineProperty(this, \"allocationType\", _descriptor0, this);\n      _initializerDefineProperty(this, \"ipsId\", _descriptor1, this);\n      _initializerDefineProperty(this, \"notes\", _descriptor10, this);\n      _initializerDefineProperty(this, \"eaccountsFileName\", _descriptor11, this);\n      _initializerDefineProperty(this, \"isAutoMapped\", _descriptor12, this);\n      _initializerDefineProperty(this, \"xeroInvoiceId\", _descriptor13, this);\n      _initializerDefineProperty(this, \"xeroCreditNoteId\", _descriptor14, this);\n      _initializerDefineProperty(this, \"quickbooksBillId\", _descriptor15, this);\n      _initializerDefineProperty(this, \"quickbooksCreditNoteId\", _descriptor16, this);\n      _initializerDefineProperty(this, \"billType\", _descriptor17, this);\n      _initializerDefineProperty(this, \"taxAmount\", _descriptor18, this);\n      _initializerDefineProperty(this, \"subtotal\", _descriptor19, this);\n      _initializerDefineProperty(this, \"source\", _descriptor20, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor21, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor22, this);\n      _initializerDefineProperty(this, \"directiveUsed\", _descriptor23, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor24, this);\n      _initializerDefineProperty(this, \"purchaseOrder\", _descriptor25, this);\n      _initializerDefineProperty(this, \"issuerContact\", _descriptor26, this);\n      _initializerDefineProperty(this, \"items\", _descriptor27, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor28, this);\n    }\n    get statusLabel() {\n      switch (this.status) {\n        case 'DRAFT':\n          return this.intl.t('common.Draft');\n        case 'AWAITING_APPROVAL':\n          return this.intl.t('common.Awaiting approval');\n        case 'ACCEPTED':\n          return this.intl.t('common.Accepted');\n        case 'ARCHIVED':\n          return this.intl.t('common.Archived');\n        case 'HELD':\n          return this.intl.t('common.Held');\n        case 'PAID':\n          return this.intl.t('common.Paid');\n      }\n      return null;\n    }\n    get typeLabel() {\n      switch (this.billType) {\n        case 'BILL':\n          return this.intl.t('common.Bill');\n        case 'CREDIT_NOTE':\n          return this.intl.t('common.Credit note');\n      }\n      return null;\n    }\n    get activeItems() {\n      if (this.isDestroyed || this.isDestroying || this.isDeleted) {\n        return [];\n      }\n      const items = this.safeHasManyToValue('items')?.toArray() || [];\n      const availableItems = items.length > 0 ? items : this.safeHasManyToValue('items')?.toArray() || [];\n      return availableItems.filter(item => item && !(0, _object.get)(item, 'isDeleted'));\n    }\n    get totalPrice() {\n      let totalPrice = 0;\n      for (const item of (0, _object.get)(this, 'activeItems')) {\n        totalPrice += item?.totalPrice || 0;\n      }\n      return totalPrice;\n    }\n    get xeroLinked() {\n      return this.xeroInvoiceId || this.xeroCreditNoteId;\n    }\n    set xeroLinked(value) {\n      return value;\n    }\n    get quickbooksLinked() {\n      return this.quickbooksBillId || this.quickbooksCreditNoteId;\n    }\n    set quickbooksLinked(value) {\n      return value;\n    }\n    get fullyMapped() {\n      const activeItems = (0, _object.get)(this, 'activeItems');\n      return activeItems.length > 0 && activeItems.every(item => (0, _object.get)(item, 'isMapped') || (0, _object.get)(item, 'project.id') || (0, _object.get)(item, 'task.id') || item.allocations.some(allocation => allocation.length));\n    }\n    get canMap() {\n      const activeItems = (0, _object.get)(this, 'activeItems');\n      return activeItems.length > 0 && activeItems.every(item => (0, _object.get)(item, 'canMap'));\n    }\n    get sortedItems() {\n      return [...(0, _object.get)(this, 'activeItems')].sort((left, right) => {\n        return ((0, _object.get)(left, 'dateCreated')?.getTime?.() || 0) - ((0, _object.get)(right, 'dateCreated')?.getTime?.() || 0);\n      });\n    }\n    get myAttachments() {\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      const billAttachments = this.safeHasManyToValue('attachments')?.toArray() || [];\n      return billAttachments.map(item => item.attachmentInfo);\n    }\n    get xeroDeeplinkPath() {\n      const xeroInvoiceId = (0, _object.get)(this, 'xeroInvoiceId');\n      const xeroCreditNoteId = (0, _object.get)(this, 'xeroCreditNoteId');\n      if (xeroInvoiceId) {\n        return `&redirecturl=/AccountsPayable/Edit.aspx?InvoiceID=${xeroInvoiceId}`;\n      } else if (xeroCreditNoteId) {\n        return `&redirecturl=/AccountsPayable/ViewCreditNote.aspx?creditNoteID=${xeroCreditNoteId}`;\n      }\n      return '';\n    }\n    xeroDeeplinkUrl(entityXeroCompanyId) {\n      if (!this.xeroDeeplinkPath) return '';\n      return `https://go.xero.com/organisationlogin/default.aspx?shortcode=${entityXeroCompanyId}${this.xeroDeeplinkPath}`;\n    }\n    get quickbooksDeeplinkPath() {\n      const quickbooksBillId = (0, _object.get)(this, 'quickbooksBillId');\n      const quickbooksCreditNoteId = (0, _object.get)(this, 'quickbooksCreditNoteId');\n      if (quickbooksBillId) {\n        return `${_environment.default.urls.quickbooksUrl}/app/bill?txnId=${quickbooksBillId}`;\n      } else if (quickbooksCreditNoteId) {\n        return `${_environment.default.urls.quickbooksUrl}/app/vendorcredit?txnId=${quickbooksCreditNoteId}`;\n      }\n      return '';\n    }\n    get accountingPackageUrl() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        return this.xeroDeeplinkUrl(this.xeroIntegration.companyId);\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        return this.quickbooksDeeplinkPath;\n      }\n      return '';\n    }\n    get isValid() {\n      const activeItems = (0, _object.get)(this, 'activeItems');\n      return ((0, _object.get)(this, 'billNumber') || (0, _object.get)(this, 'name')) && (0, _object.get)(this, 'issuer') && ['MATERIALS', 'SUBCONTRACTORS', 'LABOUR'].includes((0, _object.get)(this, 'allocationType')) && (0, _object.get)(this, 'issueDate') && (0, _object.get)(this, 'dueDate') && activeItems.length > 0 && activeItems.every(it => (0, _object.get)(it, 'isValid'));\n    }\n\n    // TODO this is meant to mirror the validator\n    // TODO this approach is crap - we can't use the validator directly... maybe write a function to run the validator\n    get newIsValid() {\n      if (!this.billNumber || typeof this.billNumber !== 'string' || this.billNumber.trim() === '') {\n        return false;\n      }\n      if (this.billNumber.length > 100) {\n        return false;\n      }\n      if (!this.issuer) return false;\n      if (!this.belongsTo('issuerContact').id()) return false;\n      if (!this.issueDate) return false;\n      if (!this.dueDate) return false;\n      if (!this.status || !_bill.VALID_STATUSES.includes(this.status)) {\n        return false;\n      }\n      if (!this.allocationType || !_bill.VALID_ALLOCATION_TYPES.includes(this.allocationType)) {\n        return false;\n      }\n      if (this.billType === 'CREDIT_NOTE' && this.totalPrice >= 0 || this.billType !== 'CREDIT_NOTE' && this.totalPrice <= 0) {\n        return false;\n      }\n      return true;\n    }\n    get isMapped() {\n      const activeItems = (0, _object.get)(this, 'activeItems');\n      return activeItems.length > 0 && activeItems.every(it => (0, _object.get)(it, 'isMapped'));\n    }\n    get isCreditNote() {\n      return (0, _object.get)(this, 'totalPrice') < 0;\n    }\n    get hasDuplicate() {\n      return this._meta?.hasDuplicate;\n    }\n    get isAcceptedButNotSyncedToAccountingPlatform() {\n      const isNotSynced = Boolean(!this.xeroInvoiceId && !this.xeroCreditNoteId && !this.quickbooksBillId && !this.quickbooksCreditNoteId && this.status === 'ACCEPTED');\n      return isNotSynced;\n    }\n    get allocations() {\n      const allocations = this._meta?.allocationPath ?? [];\n      return allocations.filter(a => Array.isArray(a) && a.length);\n    }\n    get isInvoiced() {\n      return this._meta?.isInvoiced ?? false;\n    }\n    get purchaseOrderDetails() {\n      return this._meta?.purchaseOrder;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"reference\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"billNumber\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"issuer\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"issueDate\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dueDate\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"allocationType\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"ipsId\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"notes\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"eaccountsFileName\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"isAutoMapped\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"xeroInvoiceId\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"xeroCreditNoteId\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksBillId\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksCreditNoteId\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"billType\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"taxAmount\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"subtotal\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"source\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"directiveUsed\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrder\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, \"issuerContact\", [_dec23], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_dec24], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_dec25], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"totalPrice\", [_dec26], Object.getOwnPropertyDescriptor(_class2.prototype, \"totalPrice\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"xeroLinked\", [_dec27], Object.getOwnPropertyDescriptor(_class2.prototype, \"xeroLinked\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"quickbooksLinked\", [_dec28], Object.getOwnPropertyDescriptor(_class2.prototype, \"quickbooksLinked\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"fullyMapped\", [_dec29], Object.getOwnPropertyDescriptor(_class2.prototype, \"fullyMapped\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"canMap\", [_dec30], Object.getOwnPropertyDescriptor(_class2.prototype, \"canMap\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"sortedItems\", [_dec31], Object.getOwnPropertyDescriptor(_class2.prototype, \"sortedItems\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"xeroDeeplinkPath\", [_dec32], Object.getOwnPropertyDescriptor(_class2.prototype, \"xeroDeeplinkPath\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"quickbooksDeeplinkPath\", [_dec33], Object.getOwnPropertyDescriptor(_class2.prototype, \"quickbooksDeeplinkPath\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"isValid\", [_dec34], Object.getOwnPropertyDescriptor(_class2.prototype, \"isValid\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"isMapped\", [_dec35], Object.getOwnPropertyDescriptor(_class2.prototype, \"isMapped\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"isCreditNote\", [_dec36], Object.getOwnPropertyDescriptor(_class2.prototype, \"isCreditNote\"), _class2.prototype), _class2);\n});","define(\"portal/models/budget-change-set\", [\"exports\", \"@ember-data/model\", \"@ember/service\"], function (_exports, _model, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('budget-version', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.hasMany)('budget-change', {\n    async: true,\n    inverse: 'changeSet'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      /* attrs */\n      _initializerDefineProperty(this, \"status\", _descriptor2, this);\n      // enum: ['DRAFT', 'ACCEPTED']\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"version\", _descriptor5, this);\n      _initializerDefineProperty(this, \"changes\", _descriptor6, this);\n    }\n    /* computed */\n    get valuesArray() {\n      return this.hasMany('changes').value()?.toArray?.() || [];\n    }\n    get labourDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.labourDiff, 0);\n    }\n    get manHoursDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.manHoursDiff, 0);\n    }\n    get materialsDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.materialsDiff, 0);\n    }\n    get subcontractorsDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.subcontractorsDiff, 0);\n    }\n    get sumsDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.sumsDiff, 0);\n    }\n\n    /* methods */\n    async findChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      return changes?.find(c => c.belongsTo('task').value() === task);\n    }\n    createChangeForTask(task) {\n      return this.store.createRecord('budget-change', {\n        changeSet: this,\n        task,\n        entity: this.belongsTo('entity').value(),\n        project: this.belongsTo('project').value()\n      });\n    }\n    async deleteChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      const change = changes?.find(c => c.belongsTo('task').value() === task);\n      if (change) await change.destroyRecord();\n      if (changes?.length === 0) await this.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"changes\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/budget-change\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec4 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.belongsTo)('budget-change-set', {\n    async: true,\n    inverse: 'changes'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"labourDiff\", _descriptor, this);\n      _initializerDefineProperty(this, \"manHoursDiff\", _descriptor2, this);\n      _initializerDefineProperty(this, \"materialsDiff\", _descriptor3, this);\n      _initializerDefineProperty(this, \"subcontractorsDiff\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sumsDiff\", _descriptor5, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"task\", _descriptor7, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor8, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"labourDiff\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"manHoursDiff\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"materialsDiff\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorsDiff\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sumsDiff\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/budget-version-value\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec4 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec9 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec0 = (0, _model.belongsTo)('budget-version', {\n    async: true,\n    inverse: 'values'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"labour\", _descriptor2, this);\n      _initializerDefineProperty(this, \"manHours\", _descriptor3, this);\n      _initializerDefineProperty(this, \"materials\", _descriptor4, this);\n      _initializerDefineProperty(this, \"subcontractors\", _descriptor5, this);\n      _initializerDefineProperty(this, \"sums\", _descriptor6, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n      _initializerDefineProperty(this, \"project\", _descriptor8, this);\n      _initializerDefineProperty(this, \"task\", _descriptor9, this);\n      _initializerDefineProperty(this, \"version\", _descriptor0, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"labour\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"manHours\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"materials\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractors\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"sums\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/budget-version\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number'), _dec3 = (0, _model.attr)('number'), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('budget-change-set', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.hasMany)('budget-version-value', {\n    async: true,\n    inverse: 'version'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"versionNumber\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor3, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n      _initializerDefineProperty(this, \"project\", _descriptor5, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor6, this);\n      _initializerDefineProperty(this, \"values\", _descriptor7, this);\n    }\n    /* computed */\n    get valuesArray() {\n      return this.hasMany('values').value()?.toArray?.() || [];\n    }\n    get labour() {\n      return this.valuesArray.reduce((total, v) => total + (v.labour || 0), 0);\n    }\n    get manHours() {\n      return this.valuesArray.reduce((total, v) => total + (v.manHours || 0), 0);\n    }\n    get materials() {\n      return this.valuesArray.reduce((total, v) => total + (v.materials || 0), 0);\n    }\n    get subcontractors() {\n      return this.valuesArray.reduce((total, v) => total + (v.subcontractors || 0), 0);\n    }\n    get sums() {\n      return this.valuesArray.reduce((total, v) => total + (v.sums || 0), 0);\n    }\n    get total() {\n      return this.labour + this.materials + this.subcontractors + this.sums;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"versionNumber\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"values\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/contact\", [\"exports\", \"moment\", \"@ember-data/model\", \"@ember/service\", \"portal/config/environment\", \"portal/models/base-model\"], function (_exports, _moment, _model, _service, _environment, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"@ember-data/model\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('number'), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('number'), _dec12 = (0, _model.attr)('array'), _dec13 = (0, _model.attr)('string'), _dec14 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor2, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor3, this);\n      // attributes\n      _initializerDefineProperty(this, \"name\", _descriptor4, this);\n      _initializerDefineProperty(this, \"contactPerson\", _descriptor5, this);\n      _initializerDefineProperty(this, \"contactNumber\", _descriptor6, this);\n      _initializerDefineProperty(this, \"contactEmail\", _descriptor7, this);\n      _initializerDefineProperty(this, \"address\", _descriptor8, this);\n      _initializerDefineProperty(this, \"eaccountsSupplierCode\", _descriptor9, this);\n      _initializerDefineProperty(this, \"xeroContactId\", _descriptor0, this);\n      _initializerDefineProperty(this, \"quickbooksContactId\", _descriptor1, this);\n      _initializerDefineProperty(this, \"quickbooksVendorId\", _descriptor10, this);\n      _initializerDefineProperty(this, \"paymentTermType\", _descriptor11, this);\n      // enum: ['OFFOLLOWINGMONTH', 'DAYSAFTERBILLDATE', 'DAYSAFTERBILLMONTH', 'OFCURRENTMONTH;\n      _initializerDefineProperty(this, \"paymentTermDay\", _descriptor12, this);\n      _initializerDefineProperty(this, \"salesPaymentTermType\", _descriptor13, this);\n      // enum: ['DAYS_AFTER_ISSUE_DATE', 'DAYS_AFTER_ISSUE_MONTH', 'OF_CURRENT_MONTH', 'OF_FOLLOWING_MONTH'],\n      _initializerDefineProperty(this, \"salesPaymentTermDay\", _descriptor14, this);\n      _initializerDefineProperty(this, \"aliases\", _descriptor15, this);\n      _initializerDefineProperty(this, \"defaultBillAllocationType\", _descriptor16, this);\n      // relationships\n      _initializerDefineProperty(this, \"entity\", _descriptor17, this);\n    }\n    // computed\n    get hasValidPurchasePaymentTerm() {\n      return this.paymentTermType && this.paymentTermDay;\n    }\n    get getPurchaseDisplayPaymentTermType() {\n      switch (this.paymentTermType) {\n        case 'OFFOLLOWINGMONTH':\n          return this.intl.t('shared.contacts.of the following month');\n        case 'DAYSAFTERBILLDATE':\n          return this.intl.t('shared.contacts.day(s) after the bill date');\n        case 'DAYSAFTERBILLMONTH':\n          return this.intl.t('shared.contacts.day(s) after the end of the bill month');\n        case 'OFCURRENTMONTH':\n          return this.intl.t('shared.contacts.of the current month');\n        default:\n          return '';\n      }\n    }\n    get purchaseDisplayPaymentTerm() {\n      return this.hasValidPurchasePaymentTerm ? `${this.paymentTermDay} ${this.getPurchaseDisplayPaymentTermType}` : this.intl.t('shared.contacts.No payment terms');\n    }\n    get hasValidSalesPaymentTerm() {\n      return this.salesPaymentTermType && this.salesPaymentTermDay;\n    }\n    get getSalesDisplayPaymentTermType() {\n      switch (this.salesPaymentTermType) {\n        case 'OF_FOLLOWING_MONTH':\n          return this.intl.t('shared.contacts.of the following month');\n        case 'DAYS_AFTER_ISSUE_DATE':\n          return this.intl.t('shared.contacts.day(s) after the issue date');\n        case 'DAYS_AFTER_ISSUE_MONTH':\n          return this.intl.t('shared.contacts.day(s) after the end of the issue month');\n        case 'OF_CURRENT_MONTH':\n          return this.intl.t('shared.contacts.of the current month');\n        default:\n          return '';\n      }\n    }\n    get salesDisplayPaymentTerm() {\n      return this.hasValidSalesPaymentTerm ? `${this.salesPaymentTermDay} ${this.getSalesDisplayPaymentTermType}` : this.intl.t('shared.contacts.No payment terms');\n    }\n    getBillDueDate(issueDate) {\n      if (!this.hasValidPurchasePaymentTerm) return;\n      switch (this.paymentTermType) {\n        case 'OFFOLLOWINGMONTH':\n          return (0, _moment.default)(issueDate).add(1, 'month').date(this.paymentTermDay).toDate();\n        case 'DAYSAFTERBILLDATE':\n          return (0, _moment.default)(issueDate).add(this.paymentTermDay, 'day').toDate();\n        case 'DAYSAFTERBILLMONTH':\n          return (0, _moment.default)(issueDate).add(1, 'month').date(this.paymentTermDay).toDate();\n        case 'OFCURRENTMONTH':\n          return (0, _moment.default)(issueDate).date(this.paymentTermDay).toDate();\n      }\n    }\n    get isContactLinkedToAccountingPlatform() {\n      return Boolean(this.xeroContactId || this.quickbooksContactId || this.quickbooksVendorId);\n    }\n    get isLinkedToActiveAccountingPlatform() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        return Boolean(this.xeroContactId);\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        return Boolean(this.quickbooksContactId || this.quickbooksVendorId);\n      }\n      return false;\n    }\n    get viewContactUrl() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        if (!this.xeroContactId) return '';\n        return `https://go.xero.com/organisationlogin/default.aspx?shortcode=${this.xeroIntegration.companyId}&redirecturl=/Contacts/View/${this.xeroContactId}`;\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        if (this.quickbooksContactId) {\n          return `${_environment.default.urls.quickbooksUrl}/app/customerdetail?nameId=${this.quickbooksContactId}`;\n        } else if (this.quickbooksVendorId) {\n          return `${_environment.default.urls.quickbooksUrl}/app/vendordetail?nameId=${this.quickbooksVendorId}`;\n        }\n      }\n      return '';\n    }\n    get viewContactLabel() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        if (!this.xeroContactId) return '';\n        return `View in Xero`;\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        if (this.quickbooksContactId) {\n          return 'View in QuickBooks contact';\n        } else if (this.quickbooksVendorId) {\n          return 'View in QuickBooks vendor';\n        }\n      }\n      return '';\n    }\n\n    // this property tells if contact is being used in invoices or purchase orders\n    get isLinkedToResources() {\n      return this._meta?.isLinkedToResources;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"contactPerson\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"contactNumber\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"contactEmail\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"address\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"eaccountsSupplierCode\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"xeroContactId\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksContactId\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksVendorId\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"paymentTermType\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"paymentTermDay\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"salesPaymentTermType\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"salesPaymentTermDay\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"aliases\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"defaultBillAllocationType\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/dashboard-module\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('number'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('boolean'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _dec0 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec1 = (0, _model.hasMany)('link-dashboard-module-kpi', {\n    async: true,\n    inverse: 'dashboardModule'\n  }), _dec10 = (0, _model.hasMany)('link-dashboard-module-account', {\n    async: true,\n    inverse: 'dashboardModule'\n  }), _dec11 = (0, _model.hasMany)('link-dashboard-module-entity-group', {\n    async: true,\n    inverse: 'dashboardModule'\n  }), _dec12 = (0, _model.hasMany)('link-dashboard-module-entity', {\n    async: true,\n    inverse: 'dashboardModule'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"title\", _descriptor, this);\n      _initializerDefineProperty(this, \"visualiser\", _descriptor2, this);\n      _initializerDefineProperty(this, \"positionX\", _descriptor3, this);\n      _initializerDefineProperty(this, \"positionY\", _descriptor4, this);\n      _initializerDefineProperty(this, \"periodType\", _descriptor5, this);\n      _initializerDefineProperty(this, \"includeCurrentEntity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor8, this);\n      _initializerDefineProperty(this, \"user\", _descriptor9, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor0, this);\n      _initializerDefineProperty(this, \"kpis\", _descriptor1, this);\n      _initializerDefineProperty(this, \"accounts\", _descriptor10, this);\n      _initializerDefineProperty(this, \"entityGroups\", _descriptor11, this);\n      _initializerDefineProperty(this, \"entities\", _descriptor12, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"title\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"visualiser\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"positionX\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"positionY\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"periodType\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"includeCurrentEntity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"kpis\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"accounts\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entityGroups\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"entities\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/eaccounts-invoice-integration\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('boolean'), _dec3 = (0, _model.attr)('array'), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'eaccountsInvoiceIntegration'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"eaccountsLink\", _descriptor, this);\n      _initializerDefineProperty(this, \"allowed\", _descriptor2, this);\n      _initializerDefineProperty(this, \"requests\", _descriptor3, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"eaccountsLink\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"allowed\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"requests\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/entity-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('boolean'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attribute\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"deprecated\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"deprecated\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/entity-group\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('boolean'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('date'), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.hasMany)('link-entity-group-member', {\n    async: true,\n    inverse: 'entityGroup'\n  }), _dec9 = (0, _model.hasMany)('link-entity-group-can-be-accessed-by', {\n    async: true,\n    inverse: 'entityGroup'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"consolidation\", _descriptor3, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor6, this);\n      _initializerDefineProperty(this, \"parentEntity\", _descriptor7, this);\n      _initializerDefineProperty(this, \"members\", _descriptor8, this);\n      _initializerDefineProperty(this, \"canBeAccessedBy\", _descriptor9, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"consolidation\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"parentEntity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"members\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"canBeAccessedBy\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/entity-invoice-option\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('number'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('number'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('number'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('string'), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('string'), _dec12 = (0, _model.attr)('array'), _dec13 = (0, _model.attr)('boolean'), _dec14 = (0, _model.attr)('boolean'), _dec15 = (0, _model.attr)('boolean'), _dec16 = (0, _model.attr)('boolean'), _dec17 = (0, _model.attr)('boolean'), _dec18 = (0, _model.attr)('boolean'), _dec19 = (0, _model.attr)('boolean'), _dec20 = (0, _model.attr)('date'), _dec21 = (0, _model.attr)('date'), _dec22 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"invoicePrefix\", _descriptor, this);\n      _initializerDefineProperty(this, \"invoiceFooterNotes\", _descriptor2, this);\n      _initializerDefineProperty(this, \"nextInvoiceNumber\", _descriptor3, this);\n      _initializerDefineProperty(this, \"paymentTermType\", _descriptor4, this);\n      // enum: ['DAYS_AFTER_ISSUE_DATE', 'DAYS_AFTER_ISSUE_MONTH', 'OF_CURRENT_MONTH', 'OF_FOLLOWING_MONTH'],\n      _initializerDefineProperty(this, \"paymentTermDay\", _descriptor5, this);\n      _initializerDefineProperty(this, \"creditNotePrefix\", _descriptor6, this);\n      _initializerDefineProperty(this, \"creditNoteFooterNotes\", _descriptor7, this);\n      _initializerDefineProperty(this, \"nextCreditNoteNumber\", _descriptor8, this);\n      _initializerDefineProperty(this, \"breakdownNotes\", _descriptor9, this);\n      _initializerDefineProperty(this, \"firstGroupBy\", _descriptor0, this);\n      _initializerDefineProperty(this, \"materialsDetail\", _descriptor1, this);\n      _initializerDefineProperty(this, \"labourDetail\", _descriptor10, this);\n      _initializerDefineProperty(this, \"subcontractorsDetail\", _descriptor11, this);\n      _initializerDefineProperty(this, \"timesheetDetails\", _descriptor12, this);\n      _initializerDefineProperty(this, \"includeBillable\", _descriptor13, this);\n      _initializerDefineProperty(this, \"includeInvoiced\", _descriptor14, this);\n      _initializerDefineProperty(this, \"includeLabourBillsProfitMargins\", _descriptor15, this);\n      _initializerDefineProperty(this, \"includeMaterialBillsProfitMargins\", _descriptor16, this);\n      _initializerDefineProperty(this, \"includeSubcontractorBillsProfitMargins\", _descriptor17, this);\n      _initializerDefineProperty(this, \"includeTimesheetsProfitMargins\", _descriptor18, this);\n      _initializerDefineProperty(this, \"includeTimesheetsCostMargins\", _descriptor19, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor20, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor21, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor22, this);\n    }\n    static defaultOptionsRecord(store, entity) {\n      return store.createRecord('entity-invoice-option', {\n        entity: entity,\n        nextInvoiceNumber: 10000,\n        invoicePrefix: 'INV-',\n        nextCreditNoteNumber: 10000,\n        creditNotePrefix: 'CN-',\n        breakdownNotes: '',\n        firstGroupBy: 'TASK',\n        materialsDetail: 'TOTAL',\n        labourDetail: 'TOTAL',\n        subcontractorsDetail: 'TOTAL',\n        timesheetDetails: []\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"invoicePrefix\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceFooterNotes\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"nextInvoiceNumber\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"paymentTermType\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"paymentTermDay\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"creditNotePrefix\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"creditNoteFooterNotes\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"nextCreditNoteNumber\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"breakdownNotes\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"firstGroupBy\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"materialsDetail\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"labourDetail\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorsDetail\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"timesheetDetails\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"includeBillable\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"includeInvoiced\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"includeLabourBillsProfitMargins\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"includeMaterialBillsProfitMargins\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"includeSubcontractorBillsProfitMargins\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"includeTimesheetsProfitMargins\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"includeTimesheetsCostMargins\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/entity-product\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('string', {\n    defaultValue: 'EntityProduct'\n  }), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('date'), _dec10 = (0, _model.attr)('date'), _dec11 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.belongsTo)('contact', {\n    async: true,\n    inverse: null\n  }), _dec13 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"productLibraryIdentifier\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sku\", _descriptor3, this);\n      _initializerDefineProperty(this, \"unitPrice\", _descriptor4, this);\n      _initializerDefineProperty(this, \"source\", _descriptor5, this);\n      _initializerDefineProperty(this, \"supplierName\", _descriptor6, this);\n      _initializerDefineProperty(this, \"unit\", _descriptor7, this);\n      _initializerDefineProperty(this, \"currency\", _descriptor8, this);\n      _initializerDefineProperty(this, \"manufacturer\", _descriptor9, this);\n      _initializerDefineProperty(this, \"usage\", _descriptor0, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor10, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor11, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor12, this);\n      _initializerDefineProperty(this, \"task\", _descriptor13, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"productLibraryIdentifier\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sku\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"unitPrice\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"source\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"supplierName\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"unit\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"currency\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"manufacturer\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"usage\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/entity\", [\"exports\", \"@ember-data/model\", \"@ember/object\", \"@ember/service\", \"portal/models/base-model\", \"portal/utils/collection-to-array\"], function (_exports, _model, _object, _service, _baseModel, _collectionToArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/object\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/models/base-model\",0,\"portal/utils/collection-to-array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('array'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('string'), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('string'), _dec12 = (0, _model.attr)('string'), _dec13 = (0, _model.attr)('date'), _dec14 = (0, _model.attr)('date'), _dec15 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec16 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec17 = (0, _model.belongsTo)('profit-margin', {\n    async: true,\n    inverse: null\n  }), _dec18 = (0, _model.belongsTo)('labour-cost-calculator', {\n    async: true,\n    inverse: null\n  }), _dec19 = (0, _model.hasMany)('link-entity-to-entity-attribute', {\n    async: true,\n    inverse: 'entity'\n  }), _dec20 = (0, _model.hasMany)('project', {\n    async: true,\n    inverse: 'entity'\n  }), _dec21 = (0, _model.hasMany)('pricing-connection', {\n    async: true,\n    inverse: 'entity'\n  }), _dec22 = (0, _model.hasMany)('financial-option', {\n    async: true,\n    inverse: 'entity'\n  }), _dec23 = (0, _model.hasMany)('eaccounts-invoice-integration', {\n    async: true,\n    inverse: 'entity'\n  }), _dec24 = (0, _model.hasMany)('xero-connection', {\n    async: true,\n    inverse: 'entity'\n  }), _dec25 = (0, _model.hasMany)('quickbooks-oauth2-connection', {\n    async: true,\n    inverse: 'entity'\n  }), _dec26 = (0, _model.hasMany)('attachment', {\n    async: true,\n    inverse: 'entity'\n  }), _dec27 = (0, _model.hasMany)('link-attachment-to-entity', {\n    async: true,\n    inverse: 'entity'\n  }), _dec28 = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec29 = (0, _model.belongsTo)('stage-payment-option', {\n    async: true,\n    inverse: null\n  }), _dec30 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec31 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec32 = (0, _object.computed)('myAttachments', 'activeProjects.@each.allAttachments'), _dec33 = (0, _object.computed)('activeProjects.@each.{budgetTotalManhours,budgetTotalLabour,budgetTotalMaterials,budgetTotalSubcontractors,budgetTotalSums,budgetTotalTotal}'), _dec34 = (0, _object.computed)('activeProjects.@each.{quoteTotalManhours,quoteTotalLabour,quoteTotalMaterials,quoteTotalSubcontractors,quoteTotalSums,quoteTotalTotal}'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"name\", _descriptor3, this);\n      _initializerDefineProperty(this, \"region\", _descriptor4, this);\n      _initializerDefineProperty(this, \"system\", _descriptor5, this);\n      _initializerDefineProperty(this, \"canChangeSystem\", _descriptor6, this);\n      _initializerDefineProperty(this, \"firstClosedPeriod\", _descriptor7, this);\n      _initializerDefineProperty(this, \"balanceDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"identityProviders\", _descriptor9, this);\n      _initializerDefineProperty(this, \"brand\", _descriptor0, this);\n      _initializerDefineProperty(this, \"cbPlanId\", _descriptor1, this);\n      _initializerDefineProperty(this, \"cbCustomerId\", _descriptor10, this);\n      _initializerDefineProperty(this, \"contactEmail\", _descriptor11, this);\n      _initializerDefineProperty(this, \"address\", _descriptor12, this);\n      _initializerDefineProperty(this, \"businessNumber\", _descriptor13, this);\n      _initializerDefineProperty(this, \"taxNumber\", _descriptor14, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor15, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor16, this);\n      _initializerDefineProperty(this, \"parent\", _descriptor17, this);\n      _initializerDefineProperty(this, \"partner\", _descriptor18, this);\n      _initializerDefineProperty(this, \"profitMargin\", _descriptor19, this);\n      _initializerDefineProperty(this, \"defaultLabourCostCalculator\", _descriptor20, this);\n      _initializerDefineProperty(this, \"attributes\", _descriptor21, this);\n      _initializerDefineProperty(this, \"projects\", _descriptor22, this);\n      _initializerDefineProperty(this, \"pricingConnection\", _descriptor23, this);\n      _initializerDefineProperty(this, \"financialOptions\", _descriptor24, this);\n      _initializerDefineProperty(this, \"eaccountsInvoiceIntegration\", _descriptor25, this);\n      _initializerDefineProperty(this, \"xeroConnection\", _descriptor26, this);\n      _initializerDefineProperty(this, \"quickBooksConnection\", _descriptor27, this);\n      _initializerDefineProperty(this, \"allEntityAttachments\", _descriptor28, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor29, this);\n      _initializerDefineProperty(this, \"companyLogo\", _descriptor30, this);\n      _initializerDefineProperty(this, \"stagePaymentOption\", _descriptor31, this);\n      _initializerDefineProperty(this, \"purchasesGlAccount\", _descriptor32, this);\n      _initializerDefineProperty(this, \"salesGlAccount\", _descriptor33, this);\n    }\n    // load methods\n    async loadProfitMargins() {\n      const profitMarginRef = this.belongsTo('profitMargin');\n      if (!profitMarginRef.id()) return null;\n      return profitMarginRef.load();\n    }\n    async loadStagePaymentOptions() {\n      await this.belongsTo('stagePaymentOption').load();\n    }\n    async loadCompanyLogo() {\n      await this.belongsTo('companyLogo').load();\n    }\n\n    /* computed */\n    get activeProjectTasks() {\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      return this.activeProjects.flatMap(project => project.activeTasks);\n    }\n    get myAttachments() {\n      const linkAttachmentToEntityRecords = this.safeHasManyToValue('attachments') || [];\n      const attachmentIds = linkAttachmentToEntityRecords.map(item => (0, _object.get)(item, 'attachment.id'));\n      return this.store.peekAll('attachment')?.toArray().filter(item => attachmentIds.includes(item.id));\n    }\n    get allAttachments() {\n      const allProjectAttachments = this.activeProjects.flatMap(project => project.allAttachments);\n      return [...this.myAttachments, ...allProjectAttachments].sort((a, b) => a.dateCreated - b.dateCreated);\n    }\n    get activeProjects() {\n      // Read through the reference: an async hasMany property is a\n      // PromiseManyArray, which has no filter.\n      return this.safeHasManyToValue('projects')?.filter(c => ['OPEN'].includes(c.status)) || [];\n    }\n    get effectiveProfitMargin() {\n      const profitMargin = this.belongsTo('profitMargin').value();\n\n      // if we don't have a profit margin on the entity provide a default profit type\n      // this should be the only place we provide a default profit type\n      // all records will eventually inherit this value\n      return {\n        profitType: profitMargin?.type || 'MARGIN',\n        labourPercentage: {\n          value: profitMargin?.labourPercentage ?? null,\n          type: profitMargin?.profitType || 'MARGIN',\n          route: 'entity.settings.company',\n          model: this.id,\n          record: this\n        },\n        additionalLabourMargin: {\n          value: profitMargin?.additionalLabourMargin ?? null,\n          type: profitMargin?.profitType || 'MARGIN',\n          route: 'entity.settings.company',\n          model: this.id,\n          record: this\n        },\n        materialsPercentage: {\n          value: profitMargin?.materialsPercentage ?? null,\n          type: profitMargin?.profitType || 'MARGIN',\n          route: 'entity.settings.company',\n          model: this.id,\n          record: this\n        },\n        subcontractorsPercentage: {\n          value: profitMargin?.subcontractorsPercentage ?? null,\n          type: profitMargin?.profitType || 'MARGIN',\n          route: 'entity.settings.company',\n          model: this.id,\n          record: this\n        },\n        sumsPercentage: {\n          value: profitMargin?.sumsPercentage ?? null,\n          type: profitMargin?.profitType || 'MARGIN',\n          route: 'entity.settings.company',\n          model: this.id,\n          record: this\n        }\n      };\n    }\n    get budgetTotal() {\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      const projects = this.get('activeProjects') || [];\n      return projects.reduce((total, v) => {\n        total.manHours += v.get('budgetTotalManhours') || 0;\n        total.labour += v.get('budgetTotalLabour') || 0;\n        total.materials += v.get('budgetTotalMaterials') || 0;\n        total.subcontractors += v.get('budgetTotalSubcontractors') || 0;\n        total.sums += v.get('budgetTotalSums') || 0;\n        total.total += v.get('budgetTotalTotal') || 0;\n        return total;\n      }, {\n        manHours: 0,\n        labour: 0,\n        materials: 0,\n        subcontractors: 0,\n        sums: 0,\n        total: 0\n      });\n    }\n    get quoteTotal() {\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      const projects = this.get('activeProjects') || [];\n      return projects.reduce((total, v) => {\n        total.manHours += v.get('quoteTotalManhours') || 0;\n        total.labour += v.get('quoteTotalLabour') || 0;\n        total.materials += v.get('quoteTotalMaterials') || 0;\n        total.subcontractors += v.get('quoteTotalSubcontractors') || 0;\n        total.sums += v.get('quoteTotalSums') || 0;\n        total.total += v.get('quoteTotalTotal') || 0;\n        return total;\n      }, {\n        manHours: 0,\n        labour: 0,\n        materials: 0,\n        subcontractors: 0,\n        sums: 0,\n        total: 0\n      });\n    }\n    get gst() {\n      let gstValue = 0.15;\n      switch (this.sessionData.entity.region) {\n        case 'AUS':\n          gstValue = 0.1;\n          break;\n        case 'NZL':\n          gstValue = 0.15;\n          break;\n        default:\n          break;\n      }\n      return gstValue;\n    }\n    get entityLinkedAttributes() {\n      const attributes = (0, _collectionToArray.default)(this.attributes);\n      return attributes.map(item => item.belongsTo('attribute').id());\n    }\n    get calEducationCouponCode() {\n      return this._meta?.calEducationCouponCode;\n    }\n    includesSomeClaims(...checks) {\n      return checks.some(c => this.entityLinkedAttributes.includes(c));\n    }\n    includesClaims(...checks) {\n      return checks.every(c => this.entityLinkedAttributes.includes(c));\n    }\n    excludesSomeClaims(...checks) {\n      return !checks.some(c => this.entityLinkedAttributes.includes(c));\n    }\n    excludesClaims(...checks) {\n      return checks.every(c => !this.entityLinkedAttributes.includes(c));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"region\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"system\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"canChangeSystem\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"firstClosedPeriod\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"balanceDate\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"identityProviders\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"brand\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"cbPlanId\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"cbCustomerId\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"contactEmail\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"address\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"businessNumber\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"taxNumber\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"parent\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"partner\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"profitMargin\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"defaultLabourCostCalculator\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"attributes\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"projects\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"pricingConnection\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"financialOptions\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, \"eaccountsInvoiceIntegration\", [_dec23], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, \"xeroConnection\", [_dec24], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, \"quickBooksConnection\", [_dec25], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, \"allEntityAttachments\", [_dec26], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_dec27], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor30 = _applyDecoratedDescriptor(_class2.prototype, \"companyLogo\", [_dec28], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor31 = _applyDecoratedDescriptor(_class2.prototype, \"stagePaymentOption\", [_dec29], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor32 = _applyDecoratedDescriptor(_class2.prototype, \"purchasesGlAccount\", [_dec30], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor33 = _applyDecoratedDescriptor(_class2.prototype, \"salesGlAccount\", [_dec31], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"allAttachments\", [_dec32], Object.getOwnPropertyDescriptor(_class2.prototype, \"allAttachments\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"budgetTotal\", [_dec33], Object.getOwnPropertyDescriptor(_class2.prototype, \"budgetTotal\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"quoteTotal\", [_dec34], Object.getOwnPropertyDescriptor(_class2.prototype, \"quoteTotal\"), _class2.prototype), _class2);\n});","define(\"portal/models/estimate\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('string', {\n    defaultValue: 'DRAFT'\n  }), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"pricingJobId\", _descriptor2, this);\n      _initializerDefineProperty(this, \"pricingMerchantName\", _descriptor3, this);\n      _initializerDefineProperty(this, \"pricingMerchantId\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor5, this);\n      _initializerDefineProperty(this, \"status\", _descriptor6, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n      _initializerDefineProperty(this, \"project\", _descriptor8, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"pricingJobId\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"pricingMerchantName\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"pricingMerchantId\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/financial-option\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number'), _dec2 = (0, _model.attr)('date'), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'financialOptions'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"balanceDate\", _descriptor, this);\n      _initializerDefineProperty(this, \"firstClosedPeriod\", _descriptor2, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"balanceDate\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"firstClosedPeriod\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/gl-account\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"portal/config/environment\"], function (_exports, _model, _service, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('number'), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor2, this);\n      _initializerDefineProperty(this, \"name\", _descriptor3, this);\n      _initializerDefineProperty(this, \"code\", _descriptor4, this);\n      _initializerDefineProperty(this, \"xeroAccountId\", _descriptor5, this);\n      _initializerDefineProperty(this, \"quickbooksAccountId\", _descriptor6, this);\n      _initializerDefineProperty(this, \"taxRate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n    }\n    get isLinkedToAccountingPlatform() {\n      return Boolean(this.xeroAccountId || this.quickbooksAccountId);\n    }\n    get isLinkedToActiveAccountingPlatform() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        return Boolean(this.xeroAccountId);\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        return Boolean(this.quickbooksAccountId);\n      }\n      return false;\n    }\n    get viewGlAccountUrl() {\n      if (this.accountingPlatform.activePlatform === 'xero') {\n        if (!this.xeroAccountId) return '';\n        return `https://go.xero.com/organisationlogin/default.aspx?shortcode=${this.xeroIntegration.companyId}&redirecturl=/GeneralLedger/ChartOfAccounts.aspx?q=${this.code}`;\n      }\n      if (this.accountingPlatform.activePlatform === 'quickbooks') {\n        if (this.quickbooksAccountId) {\n          return `${_environment.default.urls.quickbooksUrl}/app/chartofaccounts`;\n        }\n      }\n      return '';\n    }\n    get label() {\n      // we need filter this because, quickbooks does not have code\n      const values = [this.code, this.name].filter(Boolean);\n      return values.join(' - ');\n    }\n    get searchField() {\n      return `${this.code ?? ''} ${this.name ?? ''}`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"code\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"xeroAccountId\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksAccountId\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"taxRate\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/import\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('date'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('boolean'), _dec5 = (0, _model.attr)('boolean'), _dec6 = (0, _model.attr)('boolean'), _dec7 = (0, _model.attr)('array'), _dec8 = (0, _model.attr)('array'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.attr)('date'), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"date\", _descriptor, this);\n      _initializerDefineProperty(this, \"system\", _descriptor2, this);\n      _initializerDefineProperty(this, \"systemId\", _descriptor3, this);\n      _initializerDefineProperty(this, \"includesProfitAndLoss\", _descriptor4, this);\n      _initializerDefineProperty(this, \"includesBalanceSheet\", _descriptor5, this);\n      _initializerDefineProperty(this, \"includesOtherData\", _descriptor6, this);\n      _initializerDefineProperty(this, \"externalBalances\", _descriptor7, this);\n      _initializerDefineProperty(this, \"manualBalances\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor1, this);\n      _initializerDefineProperty(this, \"importer\", _descriptor10, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"date\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"system\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"systemId\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"includesProfitAndLoss\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"includesBalanceSheet\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"includesOtherData\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"externalBalances\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"manualBalances\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"importer\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/index\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  class _default extends _model.default {\n    // write a custom toJSON method that includes the record id in the serialized object\n    toJSON() {\n      const serialized = this.serialize({\n        includeId: true\n      });\n      const obj = {\n        ...serialized.data.attributes,\n        id: serialized.data.id\n      };\n      Object.entries(serialized.data.relationships).forEach(([key, value]) => {\n        if (Array.isArray(value.data)) {\n          obj[key] = value.data.map(relationship => relationship.id);\n          return;\n        }\n        obj[key] = value.data?.id;\n      });\n      return obj;\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/models/invoice-attachment\", [\"exports\", \"@ember-data/model\", \"portal/models/base-attachment-model\"], function (_exports, _model, _baseAttachmentModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-attachment-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('invoice', {\n    async: true,\n    inverse: 'attachments'\n  }), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseAttachmentModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"invoice\", _descriptor, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"invoice\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/invoice-auto-map-directive\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('date'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"value\", _descriptor, this);\n      _initializerDefineProperty(this, \"kind\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor4, this);\n      _initializerDefineProperty(this, \"project\", _descriptor5, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n    }\n    /**\n     * A lower case version of the value for duplicate comparison.\n     */\n    get lowerValue() {\n      return (this.value || '').toLowerCase();\n    }\n    get isValid() {\n      return Boolean(this.value && this.belongsTo('project').id() && this.belongsTo('entity').id() && this.kind);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"value\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"kind\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/invoice-invoice-option\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('array'), _dec7 = (0, _model.attr)('boolean'), _dec8 = (0, _model.attr)('boolean'), _dec9 = (0, _model.attr)('boolean'), _dec0 = (0, _model.attr)('boolean'), _dec1 = (0, _model.attr)('boolean'), _dec10 = (0, _model.attr)('boolean'), _dec11 = (0, _model.attr)('boolean'), _dec12 = (0, _model.attr)('date'), _dec13 = (0, _model.attr)('date'), _dec14 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec15 = (0, _model.belongsTo)('invoice', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"breakdownNotes\", _descriptor, this);\n      _initializerDefineProperty(this, \"firstGroupBy\", _descriptor2, this);\n      _initializerDefineProperty(this, \"materialsDetail\", _descriptor3, this);\n      _initializerDefineProperty(this, \"labourDetail\", _descriptor4, this);\n      _initializerDefineProperty(this, \"subcontractorsDetail\", _descriptor5, this);\n      _initializerDefineProperty(this, \"timesheetDetails\", _descriptor6, this);\n      _initializerDefineProperty(this, \"includeBillable\", _descriptor7, this);\n      _initializerDefineProperty(this, \"includeInvoiced\", _descriptor8, this);\n      _initializerDefineProperty(this, \"includeLabourBillsProfitMargins\", _descriptor9, this);\n      _initializerDefineProperty(this, \"includeMaterialBillsProfitMargins\", _descriptor0, this);\n      _initializerDefineProperty(this, \"includeSubcontractorBillsProfitMargins\", _descriptor1, this);\n      _initializerDefineProperty(this, \"includeTimesheetsProfitMargins\", _descriptor10, this);\n      _initializerDefineProperty(this, \"includeTimesheetsCostMargins\", _descriptor11, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor12, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor13, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor14, this);\n      _initializerDefineProperty(this, \"invoice\", _descriptor15, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"breakdownNotes\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"firstGroupBy\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"materialsDetail\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"labourDetail\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorsDetail\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"timesheetDetails\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"includeBillable\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"includeInvoiced\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"includeLabourBillsProfitMargins\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"includeMaterialBillsProfitMargins\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"includeSubcontractorBillsProfitMargins\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"includeTimesheetsProfitMargins\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"includeTimesheetsCostMargins\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"invoice\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/invoice-item\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('number'), _dec6 = (0, _model.attr)('number'), _dec7 = (0, _model.attr)('number'), _dec8 = (0, _model.attr)('string', {\n    defaultValue: 'ALL'\n  }), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.attr)('string', {\n    defaultValue: 'ALL'\n  }), _dec1 = (0, _model.attr)('date'), _dec10 = (0, _model.attr)('date'), _dec11 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.hasMany)('link-invoice-item-to-project', {\n    async: true,\n    inverse: null\n  }), _dec13 = (0, _model.hasMany)('link-invoice-item-to-task', {\n    async: true,\n    inverse: null\n  }), _dec14 = (0, _model.hasMany)('link-invoice-item-to-timesheet', {\n    async: true,\n    inverse: null\n  }), _dec15 = (0, _model.hasMany)('link-invoice-item-to-bill-item', {\n    async: true,\n    inverse: null\n  }), _dec16 = (0, _model.belongsTo)('invoice', {\n    async: true,\n    inverse: 'items'\n  }), _dec17 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec18 = (0, _model.belongsTo)('stage-payment', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"code\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"unit\", _descriptor3, this);\n      _initializerDefineProperty(this, \"unitPrice\", _descriptor4, this);\n      _initializerDefineProperty(this, \"quantity\", _descriptor5, this);\n      _initializerDefineProperty(this, \"taxRate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor7, this);\n      _initializerDefineProperty(this, \"allocationType\", _descriptor8, this);\n      _initializerDefineProperty(this, \"allocationDate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"contractType\", _descriptor0, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor10, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor11, this);\n      _initializerDefineProperty(this, \"projects\", _descriptor12, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor13, this);\n      _initializerDefineProperty(this, \"timesheets\", _descriptor14, this);\n      _initializerDefineProperty(this, \"billItems\", _descriptor15, this);\n      _initializerDefineProperty(this, \"invoice\", _descriptor16, this);\n      _initializerDefineProperty(this, \"glAccount\", _descriptor17, this);\n      _initializerDefineProperty(this, \"stagePayment\", _descriptor18, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"code\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"unit\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"unitPrice\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"quantity\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"taxRate\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"allocationType\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"allocationDate\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"contractType\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"projects\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"tasks\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"timesheets\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"billItems\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"invoice\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"glAccount\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"stagePayment\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/invoice\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"portal/models/base-model\"], function (_exports, _model, _service, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string', {\n    defaultValue: 'DRAFT'\n  }), _dec3 = (0, _model.attr)('string', {\n    defaultValue: 'INVOICE'\n  }), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('date'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.belongsTo)('stage-payment', {\n    async: true,\n    inverse: null\n  }), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.belongsTo)('contact', {\n    async: true,\n    inverse: null\n  }), _dec11 = (0, _model.belongsTo)('invoice', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.hasMany)('invoice-item', {\n    async: true,\n    inverse: 'invoice'\n  }), _dec13 = (0, _model.hasMany)('invoice-attachment', {\n    async: true,\n    inverse: 'invoice'\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"invoiceNumber\", _descriptor2, this);\n      _initializerDefineProperty(this, \"status\", _descriptor3, this);\n      _initializerDefineProperty(this, \"invoiceType\", _descriptor4, this);\n      _initializerDefineProperty(this, \"xeroInvoiceId\", _descriptor5, this);\n      _initializerDefineProperty(this, \"quickbooksInvoiceId\", _descriptor6, this);\n      _initializerDefineProperty(this, \"issueDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dueDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n      _initializerDefineProperty(this, \"stagePayment\", _descriptor1, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor10, this);\n      _initializerDefineProperty(this, \"toContact\", _descriptor11, this);\n      _initializerDefineProperty(this, \"referencedInvoice\", _descriptor12, this);\n      _initializerDefineProperty(this, \"items\", _descriptor13, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor14, this);\n    }\n    get totalPrice() {\n      return (this.safeHasManyToValue('items')?.toArray() || []).reduce((acc, item) => acc + (item.unitPrice || 0) * (item.quantity || 0), 0);\n    }\n    get statusLabel() {\n      switch (this.status) {\n        case 'COMPLETED':\n          return this.intl.t('common.Completed');\n        case 'AWAITING_APPROVAL':\n          return this.intl.t('common.Awaiting approval');\n        case 'DRAFT':\n          return this.intl.t('common.Draft');\n        case 'APPROVED':\n          return this.intl.t('common.Approved');\n      }\n      return null;\n    }\n    get typeLabel() {\n      switch (this.invoiceType) {\n        case 'INVOICE':\n          return this.intl.t('common.Invoice');\n        case 'CREDIT_NOTE':\n          return this.intl.t('common.Credit note');\n      }\n      return null;\n    }\n    get xeroDeepLinkPath() {\n      switch (this.invoiceType) {\n        case 'INVOICE':\n          return `&redirecturl=/AccountsReceivable/Edit.aspx?InvoiceID=${this.xeroInvoiceId}`;\n        case 'CREDIT_NOTE':\n          return `&redirecturl=/AccountsReceivable/EditCreditNote.aspx?creditNoteID=${this.xeroInvoiceId}`;\n      }\n      return null;\n    }\n    get myAttachments() {\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      const invoiceAttachments = this.safeHasManyToValue('attachments')?.toArray() || [];\n      return invoiceAttachments.map(item => item.attachmentInfo);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceNumber\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceType\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"xeroInvoiceId\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksInvoiceId\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"issueDate\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dueDate\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"stagePayment\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"toContact\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"referencedInvoice\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/ips-connection\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let IpsConnectionModel = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('date'), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class = class IpsConnectionModel extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"ipsEmail\", _descriptor, this);\n      _initializerDefineProperty(this, \"contactEmail\", _descriptor2, this);\n      _initializerDefineProperty(this, \"disabledAt\", _descriptor3, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"ipsEmail\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"contactEmail\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"disabledAt\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/models/ips-document\", [\"exports\", \"moment\", \"@ember-data/model\"], function (_exports, _moment, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"externalId\", _descriptor, this);\n      _initializerDefineProperty(this, \"filename\", _descriptor2, this);\n      _initializerDefineProperty(this, \"email\", _descriptor3, this);\n      _initializerDefineProperty(this, \"status\", _descriptor4, this);\n      _initializerDefineProperty(this, \"invoiceNumber\", _descriptor5, this);\n      _initializerDefineProperty(this, \"senderName\", _descriptor6, this);\n      _initializerDefineProperty(this, \"issueDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dueDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"recipient\", _descriptor0, this);\n      _initializerDefineProperty(this, \"manager\", _descriptor1, this);\n    }\n    get displayAge() {\n      return (0, _moment.default)(this.dateCreated).fromNow();\n    }\n    get displayStatus() {\n      return this.status.split('_').map(w => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()).join(' ');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"externalId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"filename\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"email\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceNumber\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"senderName\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"issueDate\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dueDate\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"recipient\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"manager\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/itm-supplier\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"contactPerson\", _descriptor2, this);\n      _initializerDefineProperty(this, \"contactNumber\", _descriptor3, this);\n      _initializerDefineProperty(this, \"contactEmail\", _descriptor4, this);\n      _initializerDefineProperty(this, \"address\", _descriptor5, this);\n      _initializerDefineProperty(this, \"eaccountsSupplierCode\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"contactPerson\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"contactNumber\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"contactEmail\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"address\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"eaccountsSupplierCode\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/kpi\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('number'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec0 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"introLine\", _descriptor2, this);\n      _initializerDefineProperty(this, \"description\", _descriptor3, this);\n      _initializerDefineProperty(this, \"strategies\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor5, this);\n      _initializerDefineProperty(this, \"format\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor8, this);\n      _initializerDefineProperty(this, \"active\", _descriptor9, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor0, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"introLine\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"strategies\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"format\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"active\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/labour-cost-calculator-item\", [\"exports\", \"@ember-data/model\", \"@ember/object\", \"portal/models/base-model\"], function (_exports, _model, _object, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/object\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string', {\n    defaultValue: ''\n  }), _dec2 = (0, _model.attr)('string', {\n    defaultValue: 'percentOfPayRate'\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec4 = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec5 = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('labour-cost-calculator', {\n    async: true,\n    inverse: 'items'\n  }), _dec8 = (0, _object.computed)('value', 'valueType', 'calculator'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"label\", _descriptor, this);\n      // enum['minutesPerDay', 'daysPerYear', 'percentOfPayRate']\n      _initializerDefineProperty(this, \"valueType\", _descriptor2, this);\n      _initializerDefineProperty(this, \"value\", _descriptor3, this);\n      _initializerDefineProperty(this, \"enabled\", _descriptor4, this);\n      _initializerDefineProperty(this, \"isSystem\", _descriptor5, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"calculator\", _descriptor7, this);\n    }\n    /* computed */\n    get percentage() {\n      switch (this.valueType) {\n        case 'minutesPerDay':\n          return this.value / 60 / (this.belongsTo('calculator').value()?.workingHoursPerDay || Infinity);\n        case 'daysPerYear':\n          return this.value / (this.belongsTo('calculator').value()?.annualWorkingDays || Infinity);\n        case 'percentOfPayRate':\n          return this.value;\n        default:\n          return 0;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"label\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"valueType\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"value\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"enabled\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"isSystem\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"calculator\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"percentage\", [_dec8], Object.getOwnPropertyDescriptor(_class2.prototype, \"percentage\"), _class2.prototype), _class2);\n});","define(\"portal/models/labour-cost-calculator\", [\"exports\", \"@ember-data/model\", \"@ember/object\", \"lodash\", \"portal/models/base-model\"], function (_exports, _model, _object, _lodash, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/object\",0,\"lodash\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 8\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 5\n  }), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.hasMany)('worker', {\n    async: true,\n    inverse: 'costCalculatorUsed'\n  }), _dec6 = (0, _model.hasMany)('labour-cost-calculator-item', {\n    async: true,\n    inverse: 'calculator'\n  }), _dec7 = (0, _object.computed)('workingDaysPerWeek'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"label\", _descriptor, this);\n      _initializerDefineProperty(this, \"workingHoursPerDay\", _descriptor2, this);\n      _initializerDefineProperty(this, \"workingDaysPerWeek\", _descriptor3, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n      _initializerDefineProperty(this, \"usedBy\", _descriptor5, this);\n      _initializerDefineProperty(this, \"items\", _descriptor6, this);\n    }\n    get sortedItems() {\n      const systemItems = [];\n      const otherItems = [];\n      this.items.forEach(item => {\n        if (item.isDeleted) return; // omit deleted items\n\n        (item.isSystem ? systemItems : otherItems).push(item);\n      });\n      return [..._lodash.default.sortBy(systemItems, 'label'), ..._lodash.default.sortBy(otherItems, 'dateCreated')];\n    }\n    get annualWorkingDays() {\n      return this.workingDaysPerWeek * 52;\n    }\n    get extraCostPercentage() {\n      return this.sortedItems.filterBy('enabled', true).reduce((total, item) => total += item.percentage, 0);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"label\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"workingHoursPerDay\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"workingDaysPerWeek\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"usedBy\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"annualWorkingDays\", [_dec7], Object.getOwnPropertyDescriptor(_class2.prototype, \"annualWorkingDays\"), _class2.prototype), _class2);\n});","define(\"portal/models/link-attachment-to-entity\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'attachments'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attachment\", _descriptor, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attachment\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-attachment-to-project\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: 'attachments'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attachment\", _descriptor, this);\n      _initializerDefineProperty(this, \"project\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attachment\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-attachment-to-purchase-order\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('purchase-order', {\n    async: true,\n    inverse: 'attachments'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attachment\", _descriptor, this);\n      _initializerDefineProperty(this, \"purchaseOrder\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attachment\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrder\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-attachment-to-task\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: 'attachments'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attachment\", _descriptor, this);\n      _initializerDefineProperty(this, \"task\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attachment\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-dashboard-module-account\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('account', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('dashboard-module', {\n    async: true,\n    inverse: 'accounts'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"account\", _descriptor, this);\n      _initializerDefineProperty(this, \"dashboardModule\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"account\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dashboardModule\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-dashboard-module-entity-group\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity-group', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('dashboard-module', {\n    async: true,\n    inverse: 'entityGroups'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entityGroup\", _descriptor, this);\n      _initializerDefineProperty(this, \"dashboardModule\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entityGroup\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dashboardModule\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-dashboard-module-entity\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('dashboard-module', {\n    async: true,\n    inverse: 'entities'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"dashboardModule\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dashboardModule\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-dashboard-module-kpi\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('kpi', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('dashboard-module', {\n    async: true,\n    inverse: 'kpis'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"kpi\", _descriptor, this);\n      _initializerDefineProperty(this, \"dashboardModule\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"kpi\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dashboardModule\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-entity-group-can-be-accessed-by\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('entity-group', {\n    async: true,\n    inverse: 'canBeAccessedBy'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"entityGroup\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entityGroup\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-entity-group-member\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('entity-group', {\n    async: true,\n    inverse: 'members'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"entityGroup\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entityGroup\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-entity-to-entity-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'attributes'\n  }), _dec2 = (0, _model.belongsTo)('entity-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-invoice-item-to-bill-item\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\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)('task', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)(), _dec6 = (0, _model.belongsTo)('link-invoice-item-to-bill-item', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('invoice-item', {\n    async: true,\n    inverse: null\n  }), _dec8 = (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      // the task or project this cost sat under when it was invoiced. used to put\n      // the allocation back in the right place in the tree once its cost is deleted\n      _initializerDefineProperty(this, \"allocatedTask\", _descriptor2, this);\n      _initializerDefineProperty(this, \"allocatedProject\", _descriptor3, this);\n      _initializerDefineProperty(this, \"allocationType\", _descriptor4, this);\n      // a copy of the cost, written as it was deleted. null while the bill item\n      // still exists, because then the link reads the cost itself\n      _initializerDefineProperty(this, \"detachedCost\", _descriptor5, this);\n      // the link this one was written to correct, when a later invoice item took up\n      // an allocation whose cost had been deleted\n      _initializerDefineProperty(this, \"correctsLink\", _descriptor6, this);\n      _initializerDefineProperty(this, \"invoiceItem\", _descriptor7, this);\n      _initializerDefineProperty(this, \"billItem\", _descriptor8, 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, \"allocatedTask\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"allocatedProject\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"allocationType\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"detachedCost\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"correctsLink\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceItem\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"billItem\", [_dec8], {\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, _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)('number'), _dec2 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.attr)(), _dec4 = (0, _model.belongsTo)('link-invoice-item-to-timesheet', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('invoice-item', {\n    async: true,\n    inverse: null\n  }), _dec6 = (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      // the task this timesheet sat under when it was invoiced. used to put the\n      // allocation back in the right place in the tree once its cost is deleted\n      _initializerDefineProperty(this, \"allocatedTask\", _descriptor2, this);\n      // a copy of the cost, written as it was deleted. null while the timesheet\n      // still exists, because then the link reads the timesheet itself\n      _initializerDefineProperty(this, \"detachedCost\", _descriptor3, this);\n      // the link this one was written to correct, when a later invoice item took up\n      // an allocation whose cost had been deleted\n      _initializerDefineProperty(this, \"correctsLink\", _descriptor4, this);\n      _initializerDefineProperty(this, \"invoiceItem\", _descriptor5, this);\n      _initializerDefineProperty(this, \"timesheet\", _descriptor6, 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, \"allocatedTask\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"detachedCost\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"correctsLink\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"invoiceItem\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"timesheet\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-task-to-stage-payment\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number'), _dec2 = (0, _model.attr)('date'), _dec3 = (0, _model.attr)('date'), _dec4 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: 'linkTasksToStagePayments'\n  }), _dec5 = (0, _model.belongsTo)('stage-payment', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"completionPercentage\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor3, this);\n      _initializerDefineProperty(this, \"task\", _descriptor4, this);\n      _initializerDefineProperty(this, \"stagePayment\", _descriptor5, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"completionPercentage\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"stagePayment\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-user-to-entity-group\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('entity-group', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: 'entityGroups'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"entityGroup\", _descriptor2, this);\n      _initializerDefineProperty(this, \"user\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entityGroup\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/link-user-to-pricing-role\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('pricing-role', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: 'pricingRoles'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"pricingRole\", _descriptor2, this);\n      _initializerDefineProperty(this, \"user\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"pricingRole\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/pm-connection\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"autoSync\", _descriptor, this);\n      _initializerDefineProperty(this, \"accountCode\", _descriptor2, this);\n      _initializerDefineProperty(this, \"branchCode\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor5, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n    }\n    get isConnected() {\n      return this._meta?.isConnected;\n    }\n    set isConnected(value) {\n      // Replace _meta rather than writing into it: it is an attr, so mutating\n      // the object in place never notifies anything watching isConnected.\n      this._meta = {\n        ...this._meta,\n        isConnected: value\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"autoSync\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"accountCode\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"branchCode\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/pricing-connection\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'pricingConnection'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"connectionId\", _descriptor, this);\n      _initializerDefineProperty(this, \"connectionName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"adminRoleId\", _descriptor3, this);\n      _initializerDefineProperty(this, \"adminRoleName\", _descriptor4, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor5, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"connectionId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"connectionName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"adminRoleId\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"adminRoleName\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/pricing-role\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"roleId\", _descriptor, this);\n      _initializerDefineProperty(this, \"name\", _descriptor2, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"roleId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/profit-margin\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string', {\n    defaultValue: 'MARGIN'\n  }), _dec2 = (0, _model.attr)('number', {\n    defaultValue: null\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: null\n  }), _dec4 = (0, _model.attr)('number', {\n    defaultValue: null\n  }), _dec5 = (0, _model.attr)('number', {\n    defaultValue: null\n  }), _dec6 = (0, _model.attr)('number', {\n    defaultValue: null\n  }), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"profitType\", _descriptor, this);\n      // enum: ['MARGIN', 'MARKUP']\n      _initializerDefineProperty(this, \"labourPercentage\", _descriptor2, this);\n      // applied on top of the charge-out rate; labourPercentage only builds the rate\n      _initializerDefineProperty(this, \"additionalLabourMargin\", _descriptor3, this);\n      _initializerDefineProperty(this, \"materialsPercentage\", _descriptor4, this);\n      _initializerDefineProperty(this, \"subcontractorsPercentage\", _descriptor5, this);\n      _initializerDefineProperty(this, \"sumsPercentage\", _descriptor6, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"profitType\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"labourPercentage\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"additionalLabourMargin\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"materialsPercentage\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorsPercentage\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"sumsPercentage\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/progress-change-set\", [\"exports\", \"@ember-data/model\", \"@ember/service\"], function (_exports, _model, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('progress-version', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.hasMany)('progress-change', {\n    async: true,\n    inverse: 'changeSet'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      /* attrs */\n      _initializerDefineProperty(this, \"status\", _descriptor2, this);\n      // enum: ['DRAFT', 'ACCEPTED']\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"version\", _descriptor5, this);\n      _initializerDefineProperty(this, \"changes\", _descriptor6, this);\n    }\n    /* methods */\n    async findChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      return changes?.find(c => c.belongsTo('task').value() === task);\n    }\n    createChangeForTask(task, changeType) {\n      return this.store.createRecord('progress-change', {\n        changeSet: this,\n        changeType,\n        task,\n        entity: this.belongsTo('entity').value(),\n        project: this.belongsTo('project').value()\n      });\n    }\n    async deleteChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      const change = changes?.find(c => c.belongsTo('task').value() === task);\n      if (change) await change.destroyRecord();\n      if (changes?.length === 0) await this.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"changes\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/progress-change\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('progress-change-set', {\n    async: true,\n    inverse: 'changes'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"forecastManHours\", _descriptor, this);\n      _initializerDefineProperty(this, \"actualManHours\", _descriptor2, this);\n      _initializerDefineProperty(this, \"progress\", _descriptor3, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n      _initializerDefineProperty(this, \"project\", _descriptor5, this);\n      _initializerDefineProperty(this, \"task\", _descriptor6, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor7, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"forecastManHours\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"actualManHours\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"progress\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/progress-version-value\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec4 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec5 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.belongsTo)('progress-version', {\n    async: true,\n    inverse: 'values'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"forecastManHours\", _descriptor2, this);\n      _initializerDefineProperty(this, \"actualManHours\", _descriptor3, this);\n      _initializerDefineProperty(this, \"progress\", _descriptor4, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor5, this);\n      _initializerDefineProperty(this, \"project\", _descriptor6, this);\n      _initializerDefineProperty(this, \"task\", _descriptor7, this);\n      _initializerDefineProperty(this, \"version\", _descriptor8, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"forecastManHours\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"actualManHours\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"progress\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/progress-version\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number'), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('progress-change-set', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.hasMany)('progress-version-value', {\n    async: true,\n    inverse: 'version'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"versionNumber\", _descriptor2, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor5, this);\n      _initializerDefineProperty(this, \"values\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"versionNumber\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"values\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/project-commit\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number'), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('task-change-set', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('budget-change-set', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('quote-change-set', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"commitNumber\", _descriptor, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor2, this);\n      _initializerDefineProperty(this, \"project\", _descriptor3, this);\n      _initializerDefineProperty(this, \"taskChangeSet\", _descriptor4, this);\n      _initializerDefineProperty(this, \"budgetChangeSet\", _descriptor5, this);\n      _initializerDefineProperty(this, \"quoteChangeSet\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"commitNumber\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"taskChangeSet\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"budgetChangeSet\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"quoteChangeSet\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/project-product\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('string', {\n    defaultValue: 'ProjectProduct'\n  }), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('date'), _dec10 = (0, _model.attr)('date'), _dec11 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec13 = (0, _model.belongsTo)('contact', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"productLibraryIdentifier\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sku\", _descriptor3, this);\n      _initializerDefineProperty(this, \"unitPrice\", _descriptor4, this);\n      _initializerDefineProperty(this, \"source\", _descriptor5, this);\n      _initializerDefineProperty(this, \"supplierName\", _descriptor6, this);\n      _initializerDefineProperty(this, \"unit\", _descriptor7, this);\n      _initializerDefineProperty(this, \"currency\", _descriptor8, this);\n      _initializerDefineProperty(this, \"manufacturer\", _descriptor9, this);\n      _initializerDefineProperty(this, \"usage\", _descriptor0, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor10, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor11, this);\n      _initializerDefineProperty(this, \"project\", _descriptor12, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor13, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"productLibraryIdentifier\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sku\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"unitPrice\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"source\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"supplierName\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"unit\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"currency\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"manufacturer\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"usage\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/project\", [\"exports\", \"@ember/object\", \"@ember-data/model\", \"@ember/service\", \"portal/models/base-model\"], function (_exports, _object, _model, _service, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember-data/model\",0,\"@ember/service\",0,\"@ember/object\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('string', {\n    defaultValue: 'OPEN'\n  }), _dec7 = (0, _model.attr)('string', {\n    defaultValue: 'COST_PLUS'\n  }), _dec8 = (0, _model.attr)('number'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('string'), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('string'), _dec12 = (0, _model.attr)('string'), _dec13 = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec14 = (0, _model.attr)('number'), _dec15 = (0, _model.attr)('number'), _dec16 = (0, _model.attr)('number', {\n    defaultValue: 100\n  }), _dec17 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'projects'\n  }), _dec18 = (0, _model.belongsTo)('budget-version', {\n    async: true,\n    inverse: null\n  }), _dec19 = (0, _model.belongsTo)('quote-version', {\n    async: true,\n    inverse: null\n  }), _dec20 = (0, _model.belongsTo)('scheduling-version', {\n    async: true,\n    inverse: null\n  }), _dec21 = (0, _model.belongsTo)('progress-version', {\n    async: true,\n    inverse: null\n  }), _dec22 = (0, _model.belongsTo)('budget-change-set', {\n    async: true,\n    inverse: null\n  }), _dec23 = (0, _model.belongsTo)('quote-change-set', {\n    async: true,\n    inverse: null\n  }), _dec24 = (0, _model.belongsTo)('task-change-set', {\n    async: true,\n    inverse: null\n  }), _dec25 = (0, _model.belongsTo)('scheduling-change-set', {\n    async: true,\n    inverse: null\n  }), _dec26 = (0, _model.belongsTo)('progress-change-set', {\n    async: true,\n    inverse: null\n  }), _dec27 = (0, _model.hasMany)('task', {\n    async: true,\n    inverse: 'project'\n  }), _dec28 = (0, _model.hasMany)('link-attachment-to-project', {\n    async: true,\n    inverse: 'project'\n  }), _dec29 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec30 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec31 = (0, _model.belongsTo)('xero-tracking-option', {\n    async: true,\n    inverse: null\n  }), _dec32 = (0, _model.belongsTo)('profit-margin', {\n    async: true,\n    inverse: null\n  }), _dec33 = (0, _model.belongsTo)('stage-payment-option', {\n    async: true,\n    inverse: null\n  }), _dec34 = (0, _object.computed)('myAttachments', 'activeTasks.@each.attachments'), _dec35 = (0, _object.computed)('budget.{labour,manHours,materials,subcontractors,sums}'), _dec36 = (0, _object.computed)('quote.{labour,manHours,materials,subcontractors,sums}'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor4, this);\n      _initializerDefineProperty(this, \"description\", _descriptor5, this);\n      _initializerDefineProperty(this, \"address\", _descriptor6, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor7, this);\n      _initializerDefineProperty(this, \"completionDate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"status\", _descriptor9, this);\n      _initializerDefineProperty(this, \"contractType\", _descriptor0, this);\n      // enum: ['COST_PLUS', 'FIXED_PRICE']\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor10, this);\n      _initializerDefineProperty(this, \"projectReference\", _descriptor11, this);\n      _initializerDefineProperty(this, \"contactName\", _descriptor12, this);\n      _initializerDefineProperty(this, \"contactEmail\", _descriptor13, this);\n      _initializerDefineProperty(this, \"contactNumber\", _descriptor14, this);\n      _initializerDefineProperty(this, \"contactAddress\", _descriptor15, this);\n      _initializerDefineProperty(this, \"geofencingEnabled\", _descriptor16, this);\n      _initializerDefineProperty(this, \"lat\", _descriptor17, this);\n      _initializerDefineProperty(this, \"lng\", _descriptor18, this);\n      _initializerDefineProperty(this, \"rad\", _descriptor19, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor20, this);\n      _initializerDefineProperty(this, \"currentBudgetVersion\", _descriptor21, this);\n      _initializerDefineProperty(this, \"currentQuoteVersion\", _descriptor22, this);\n      _initializerDefineProperty(this, \"currentSchedulingVersion\", _descriptor23, this);\n      _initializerDefineProperty(this, \"currentProgressVersion\", _descriptor24, this);\n      _initializerDefineProperty(this, \"draftBudgetChangeSet\", _descriptor25, this);\n      _initializerDefineProperty(this, \"draftQuoteChangeSet\", _descriptor26, this);\n      _initializerDefineProperty(this, \"draftTaskChangeSet\", _descriptor27, this);\n      _initializerDefineProperty(this, \"draftSchedulingChangeSet\", _descriptor28, this);\n      _initializerDefineProperty(this, \"draftProgressChangeSet\", _descriptor29, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor30, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor31, this);\n      _initializerDefineProperty(this, \"purchasesGlAccount\", _descriptor32, this);\n      _initializerDefineProperty(this, \"salesGlAccount\", _descriptor33, this);\n      _initializerDefineProperty(this, \"xeroTrackingOption\", _descriptor34, this);\n      _initializerDefineProperty(this, \"profitMargin\", _descriptor35, this);\n      _initializerDefineProperty(this, \"stagePaymentOption\", _descriptor36, this);\n    }\n    /* load methods */\n    async loadTasks(options = {}) {\n      // we cannot use the project reference here because it does not return that users has access\n      await this.store.simpleQuery('task', {\n        project: this.id\n      }, options);\n    }\n    async reloadTasks() {\n      // we cannot use the project reference here because it does not return that users has access\n      const tasks = await this.store.simpleQuery('task', {\n        project: this.id\n      });\n      return tasks;\n    }\n    async loadTaskChanges() {\n      await Promise.all([this.belongsTo('draftTaskChangeSet').load(), this.store.simpleQuery('task-change', {\n        changeSet: this.belongsTo('draftTaskChangeSet').id()\n      })]);\n    }\n    async loadBudget() {\n      await Promise.all([this.belongsTo('currentBudgetVersion').load(), this.store.simpleQuery('budget-version-value', {\n        version: this.belongsTo('currentBudgetVersion').id()\n      }), this.belongsTo('draftBudgetChangeSet').load(), this.store.simpleQuery('budget-change', {\n        changeSet: this.belongsTo('draftBudgetChangeSet').id()\n      })]);\n    }\n    async loadQuote() {\n      await Promise.all([this.belongsTo('currentQuoteVersion').load(), this.store.simpleQuery('quote-version-value', {\n        version: this.belongsTo('currentQuoteVersion').id()\n      }), this.belongsTo('draftQuoteChangeSet').load(), this.store.simpleQuery('quote-change', {\n        changeSet: this.belongsTo('draftQuoteChangeSet').id()\n      })]);\n    }\n    async loadProfitMargins() {\n      const entity = await this.entity;\n      const loads = [];\n      if (this.profitMargin) {\n        loads.push(this.profitMargin);\n      }\n      if (entity) {\n        loads.push(entity.loadProfitMargins());\n      }\n      await Promise.all(loads);\n    }\n    async loadStagePaymentOptions() {\n      await Promise.all([this.belongsTo('stagePaymentOption').load(), this.belongsTo('entity').value().loadStagePaymentOptions()]);\n    }\n    async loadAttachments() {\n      const filter = {\n        and: [{\n          field: 'project',\n          op: 'EQ',\n          value: this.id\n        }]\n      };\n      await this.store.query('link-attachment-to-project', {\n        filter,\n        include: 'attachment'\n      });\n    }\n    async isSchedulingEnabled() {\n      const tasks = await this.store.simpleQuery('task', {\n        project: this.id,\n        status: {\n          $in: ['ACTIVE', 'DRAFT_CREATED']\n        }\n      });\n      if (!tasks.length) return false;\n      return tasks.toArray().some(t => t.isSchedulingEnabled);\n    }\n    get myAttachments() {\n      const linkAttachmentToProjectRecords = this.hasMany('attachments').value()?.toArray?.() || [];\n      const attachmentIds = linkAttachmentToProjectRecords.map(item => item.belongsTo('attachment').id());\n      return (this.store.peekAll('attachment')?.toArray?.() || []).filter(item => attachmentIds.includes(item.id));\n    }\n    get allAttachments() {\n      const activeChildrenAttachments = this.activeTasks.reduce((attachments, task) => {\n        return attachments.concat((task.hasMany('attachments').value()?.toArray?.() || []).map(item => item.belongsTo('attachment').value()));\n      }, []);\n      return [...this.myAttachments, ...activeChildrenAttachments].sort((a, b) => a.dateCreated - b.dateCreated);\n    }\n    get activeTimesheetTasks() {\n      return (this.hasMany('tasks').value()?.toArray?.() || []).filter(c => c.timesheetStatus === 'ACTIVE' && ['ACTIVE', 'DRAFT_CREATED'].includes(c.status));\n    }\n    get canDelete() {\n      return this._meta?.canDelete;\n    }\n    get parentTasks() {\n      return (this.hasMany('tasks').value()?.toArray?.() || []).filter(c => !c.belongsTo('parent').id());\n    }\n    get activeParentTasks() {\n      return (this.hasMany('tasks').value()?.toArray?.() || []).filter(c => !c.belongsTo('parent').id() && ['ACTIVE', 'DRAFT_CREATED'].includes(c.status));\n    }\n    get activeTasks() {\n      return (this.hasMany('tasks').value()?.toArray?.() || []).filter(c => ['ACTIVE', 'DRAFT_CREATED'].includes(c.status));\n    }\n    get budget() {\n      const currentBudgetVersion = this.belongsTo('currentBudgetVersion').value();\n      return {\n        labour: currentBudgetVersion?.labour || 0,\n        manHours: currentBudgetVersion?.manHours || 0,\n        materials: currentBudgetVersion?.materials || 0,\n        subcontractors: currentBudgetVersion?.subcontractors || 0,\n        sums: currentBudgetVersion?.sums || 0,\n        total: (currentBudgetVersion?.labour || 0) + (currentBudgetVersion?.materials || 0) + (currentBudgetVersion?.subcontractors || 0) + (currentBudgetVersion?.sums || 0)\n      };\n    }\n    get quote() {\n      const currentQuoteVersion = this.belongsTo('currentQuoteVersion').value();\n      return {\n        labour: currentQuoteVersion?.labour || 0,\n        manHours: currentQuoteVersion?.manHours || 0,\n        materials: currentQuoteVersion?.materials || 0,\n        subcontractors: currentQuoteVersion?.subcontractors || 0,\n        sums: currentQuoteVersion?.sums || 0,\n        total: (currentQuoteVersion?.labour || 0) + (currentQuoteVersion?.materials || 0) + (currentQuoteVersion?.subcontractors || 0) + (currentQuoteVersion?.sums || 0)\n      };\n    }\n    get draftBudget() {\n      const draftBudgetChangeSet = this.belongsTo('draftBudgetChangeSet').value();\n      return {\n        labour: this.budget.labour + (draftBudgetChangeSet?.labourDiff || 0),\n        manHours: this.budget.manHours + (draftBudgetChangeSet?.manHoursDiff || 0),\n        materials: this.budget.materials + (draftBudgetChangeSet?.materialsDiff || 0),\n        subcontractors: this.budget.subcontractors + (draftBudgetChangeSet?.subcontractorsDiff || 0),\n        sums: this.budget.sums + (draftBudgetChangeSet?.sumsDiff || 0)\n      };\n    }\n    get draftQuote() {\n      const draftQuoteChangeSet = this.belongsTo('draftQuoteChangeSet').value();\n      return {\n        labour: this.quote.labour + (draftQuoteChangeSet?.labourDiff || 0),\n        manHours: this.quote.manHours + (draftQuoteChangeSet?.manHoursDiff || 0),\n        materials: this.quote.materials + (draftQuoteChangeSet?.materialsDiff || 0),\n        subcontractors: this.quote.subcontractors + (draftQuoteChangeSet?.subcontractorsDiff || 0),\n        sums: this.quote.sums + (draftQuoteChangeSet?.sumsDiff || 0)\n      };\n    }\n    get defaultPurchasesGlAccount() {\n      return this.safeBelongsToValue('entity')?.safeBelongsToValue('purchasesGlAccount');\n    }\n    get effectivePurchasesGlAccount() {\n      const purchasesGlAccount = this.safeBelongsToValue('purchasesGlAccount');\n      if (purchasesGlAccount) return purchasesGlAccount;\n      return this.defaultPurchasesGlAccount;\n    }\n    get defaultSalesGlAccount() {\n      return this.safeBelongsToValue('entity')?.safeBelongsToValue('salesGlAccount');\n    }\n    get effectiveSalesGlAccount() {\n      const salesGlAccount = this.safeBelongsToValue('salesGlAccount');\n      if (salesGlAccount) return salesGlAccount;\n      return this.defaultSalesGlAccount;\n    }\n    get effectiveXerSalesGlAccount() {\n      const salesGlAccount = this.belongsTo('salesGlAccount').value();\n      if (!salesGlAccount?.xeroAccountId) return undefined;\n      return salesGlAccount;\n    }\n\n    // get profit margins from entity\n    get defaultPercentageValues() {\n      return this.belongsTo('entity')?.value().effectiveProfitMargin;\n    }\n\n    // get default profit margins from either current task profit margin or from its default values\n    get effectiveProfitMargin() {\n      const profitMargin = this.belongsTo('profitMargin').value();\n      return {\n        profitType: profitMargin?.profitType || this.defaultPercentageValues.profitType,\n        labourPercentage: profitMargin?.labourPercentage != null ? {\n          value: profitMargin?.labourPercentage,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.labourPercentage,\n        additionalLabourMargin: profitMargin?.additionalLabourMargin != null ? {\n          value: profitMargin?.additionalLabourMargin,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.additionalLabourMargin,\n        materialsPercentage: profitMargin?.materialsPercentage != null ? {\n          value: profitMargin?.materialsPercentage,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.materialsPercentage,\n        subcontractorsPercentage: profitMargin?.subcontractorsPercentage != null ? {\n          value: profitMargin?.subcontractorsPercentage,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.subcontractorsPercentage,\n        sumsPercentage: profitMargin?.sumsPercentage != null ? {\n          value: profitMargin?.sumsPercentage,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.sumsPercentage\n      };\n    }\n    get gst() {\n      return this.belongsTo('entity').value()?.gst;\n    }\n\n    /* methods */\n\n    async commit({\n      commitBudget = false,\n      commitQuote = false,\n      commitProgress = false,\n      commitScheduling = false\n    }) {\n      if (![commitBudget, commitQuote, commitProgress, commitScheduling].some(v => v)) throw new Error('Nothing to commit');\n\n      // perform the commit\n      await this.buildaPrice.commitProject(this.id, {\n        commitBudget,\n        commitQuote,\n        commitProgress,\n        commitScheduling\n      });\n      await this.reload();\n      // for some reason when ember receives the record without the relationships it doesn't set them to null in the store\n      this.draftTaskChangeSet = null;\n      if (commitBudget) this.draftBudgetChangeSet = null;\n      if (commitQuote) this.draftQuoteChangeSet = null;\n      if (commitProgress) this.draftProgressChangeSet = null;\n      if (commitScheduling) this.draftSchedulingChangeSet = null;\n      await this.loadBudget();\n    }\n    async delete() {\n      await this.destroyRecord();\n    }\n    async createAndSaveDraftTaskChangeSet() {\n      const changeSet = await this.store.createRecord('task-change-set', {\n        status: 'DRAFT',\n        entity: this.belongsTo('entity').value(),\n        project: this\n      }).save();\n      (0, _object.set)(this, 'draftTaskChangeSet', changeSet);\n      await this.save();\n      return changeSet;\n    }\n    async createAndSaveDraftBudgetChangeSet() {\n      const changeSet = await this.store.createRecord('budget-change-set', {\n        status: 'DRAFT',\n        entity: this.belongsTo('entity').value(),\n        project: this\n      }).save();\n      (0, _object.set)(this, 'draftBudgetChangeSet', changeSet);\n      await this.save();\n      return changeSet;\n    }\n    async createAndSaveDraftQuoteChangeSet() {\n      const changeSet = await this.store.createRecord('quote-change-set', {\n        status: 'DRAFT',\n        entity: this.belongsTo('entity').value(),\n        project: this\n      }).save();\n      (0, _object.set)(this, 'draftQuoteChangeSet', changeSet);\n      await this.save();\n      return changeSet;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"address\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"completionDate\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"contractType\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"projectReference\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"contactName\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"contactEmail\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"contactNumber\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"contactAddress\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"geofencingEnabled\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"lat\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"lng\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"rad\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"currentBudgetVersion\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"currentQuoteVersion\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"currentSchedulingVersion\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"currentProgressVersion\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, \"draftBudgetChangeSet\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, \"draftQuoteChangeSet\", [_dec23], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, \"draftTaskChangeSet\", [_dec24], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, \"draftSchedulingChangeSet\", [_dec25], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, \"draftProgressChangeSet\", [_dec26], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor30 = _applyDecoratedDescriptor(_class2.prototype, \"tasks\", [_dec27], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor31 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_dec28], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor32 = _applyDecoratedDescriptor(_class2.prototype, \"purchasesGlAccount\", [_dec29], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor33 = _applyDecoratedDescriptor(_class2.prototype, \"salesGlAccount\", [_dec30], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor34 = _applyDecoratedDescriptor(_class2.prototype, \"xeroTrackingOption\", [_dec31], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor35 = _applyDecoratedDescriptor(_class2.prototype, \"profitMargin\", [_dec32], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor36 = _applyDecoratedDescriptor(_class2.prototype, \"stagePaymentOption\", [_dec33], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"allAttachments\", [_dec34], Object.getOwnPropertyDescriptor(_class2.prototype, \"allAttachments\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"draftBudget\", [_dec35], Object.getOwnPropertyDescriptor(_class2.prototype, \"draftBudget\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"draftQuote\", [_dec36], Object.getOwnPropertyDescriptor(_class2.prototype, \"draftQuote\"), _class2.prototype), _class2);\n});","define(\"portal/models/purchase-order-item\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _Class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('number'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('number'), _dec7 = (0, _model.attr)('number'), _dec8 = (0, _model.attr)('number'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.attr)('date'), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec11 = (0, _model.belongsTo)('purchase-order', {\n    async: true,\n    inverse: 'items'\n  }), _dec12 = (0, _model.belongsTo)('task-product', {\n    async: true,\n    inverse: null\n  }), _class2 = (_Class = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sku\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"unitPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"quantity\", _descriptor4, this);\n      _initializerDefineProperty(this, \"unit\", _descriptor5, this);\n      _initializerDefineProperty(this, \"deliveredQuantity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"taxTotal\", _descriptor7, this);\n      _initializerDefineProperty(this, \"sortIndex\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor9, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor0, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor1, this);\n      _initializerDefineProperty(this, \"task\", _descriptor10, this);\n      _initializerDefineProperty(this, \"purchaseOrder\", _descriptor11, this);\n      _initializerDefineProperty(this, \"taskProduct\", _descriptor12, this);\n    }\n    get taskProductQuantity() {\n      return this._meta?.taskProductQuantity ?? this.belongsTo('taskProduct').value()?.quantity;\n    }\n    get remainingQuantity() {\n      const taskProduct = this.belongsTo('taskProduct').value();\n      return this._meta?.remainingQuantity ?? taskProduct?.quantity - (taskProduct?.orderedQuantity ?? 0) - (this.quantity ?? 0);\n    }\n    get latestUnitPrice() {\n      return this._meta?.latestUnitPrice;\n    }\n    get breadcrumbs() {\n      const task = this.belongsTo('task').value();\n      const scope = [];\n      if (task) scope.push(task);\n      const unshiftContainerToScope = task => {\n        if (task?.belongsTo('parent').id()) {\n          scope.unshift(task?.belongsTo('parent').value());\n          unshiftContainerToScope(task?.belongsTo('parent').value());\n        }\n      };\n      unshiftContainerToScope(task);\n      if (task?.belongsTo('project').value()) scope.unshift(task?.belongsTo('project').value());\n      const pathArray = scope.map(u => u?.name);\n      if (pathArray.length) return pathArray.join(' > ');\n      return null;\n    }\n  }, _defineProperty(_Class, \"requiredMetaFields\", ['latestUnitPrice', 'remainingQuantity', 'taskProductQuantity']), _Class), _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sku\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"unitPrice\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"quantity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"unit\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"deliveredQuantity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"taxTotal\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"sortIndex\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrder\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"taskProduct\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/purchase-order-option\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('number'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('number'), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"prefix\", _descriptor, this);\n      _initializerDefineProperty(this, \"footerNotes\", _descriptor2, this);\n      _initializerDefineProperty(this, \"nextPurchaseOrderNumber\", _descriptor3, this);\n      _initializerDefineProperty(this, \"matchingPercentageTolerance\", _descriptor4, this);\n      _initializerDefineProperty(this, \"matchingAmountTolerance\", _descriptor5, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n    }\n    static defaultOptionsRecord(store, entity) {\n      return store.createRecord('purchase-order-option', {\n        entity: entity,\n        nextPurchaseOrderNumber: 10000,\n        prefix: 'PO-'\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"prefix\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"footerNotes\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"nextPurchaseOrderNumber\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"matchingPercentageTolerance\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"matchingAmountTolerance\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/purchase-order\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"portal/models/base-model\"], function (_exports, _model, _service, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _Class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string', {\n    defaultValue: 'DRAFT'\n  }), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('number'), _dec7 = (0, _model.attr)('number'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('date'), _dec0 = (0, _model.attr)('date'), _dec1 = (0, _model.attr)('date'), _dec10 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec11 = (0, _model.belongsTo)('contact', {\n    async: true,\n    inverse: null\n  }), _dec12 = (0, _model.hasMany)('link-attachment-to-purchase-order', {\n    async: true,\n    inverse: 'purchaseOrder'\n  }), _dec13 = (0, _model.hasMany)('purchase-order-item', {\n    async: true,\n    inverse: 'purchaseOrder'\n  }), _class2 = (_Class = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"purchaseOrderNumber\", _descriptor2, this);\n      _initializerDefineProperty(this, \"status\", _descriptor3, this);\n      _initializerDefineProperty(this, \"address\", _descriptor4, this);\n      _initializerDefineProperty(this, \"deliveryNote\", _descriptor5, this);\n      _initializerDefineProperty(this, \"orderNote\", _descriptor6, this);\n      _initializerDefineProperty(this, \"freightCharges\", _descriptor7, this);\n      _initializerDefineProperty(this, \"taxFreightCharges\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateOrderPlaced\", _descriptor9, this);\n      _initializerDefineProperty(this, \"requestedDeliveryDate\", _descriptor0, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor10, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor11, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor12, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor13, this);\n      _initializerDefineProperty(this, \"items\", _descriptor14, this);\n    }\n    get totalPrice() {\n      return (this.safeHasManyToValue('items')?.toArray() || []).reduce((acc, item) => acc + (item.unitPrice || 0) * (item.quantity || 0), 0);\n    }\n    get statusLabel() {\n      switch (this.status) {\n        case 'SENT':\n          return this.intl.t('common.Sent');\n        case 'AWAITING_APPROVAL':\n          return this.intl.t('common.Awaiting approval');\n        case 'APPROVED':\n          return this.intl.t('common.Approved');\n        case 'DRAFT':\n          return this.intl.t('common.Draft');\n      }\n      return null;\n    }\n    get deliveryStatus() {\n      return this._meta?.deliveryStatus;\n    }\n\n    // Unrecognised values are shown as they arrived rather than swallowed, so a\n    // status the server adds is still legible here.\n    get deliveryStatusLabel() {\n      switch (this.deliveryStatus) {\n        case 'ORDERED':\n          return this.intl.t('common.Ordered');\n        case 'PARTIALLY_DELIVERED':\n          return this.intl.t('common.Partially delivered');\n        case 'DELIVERED':\n          return this.intl.t('common.Delivered');\n      }\n      return this.deliveryStatus;\n    }\n    get myAttachments() {\n      const linkAttachmentToPurchaseOrderRecords = this.safeHasManyToValue('attachments')?.toArray() || [];\n      const attachmentIds = linkAttachmentToPurchaseOrderRecords.map(item => item.belongsTo('attachment').id());\n      return this.store.peekAll('attachment')?.toArray().filter(item => attachmentIds.includes(item.id));\n    }\n  }, _defineProperty(_Class, \"requiredMetaFields\", ['deliveryStatus']), _Class), _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"purchaseOrderNumber\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"address\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"deliveryNote\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"orderNote\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"freightCharges\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"taxFreightCharges\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateOrderPlaced\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"requestedDeliveryDate\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/quickbooks-employee\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('boolean'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('date'), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"quickbooksEmployeeId\", _descriptor, this);\n      _initializerDefineProperty(this, \"firstName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"lastName\", _descriptor3, this);\n      _initializerDefineProperty(this, \"active\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor6, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n    }\n    get name() {\n      return `${this.firstName} ${this.lastName}`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksEmployeeId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"firstName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"lastName\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"active\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/quickbooks-oauth2-connection\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _Class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'quickBooksConnection'\n  }), _class2 = (_Class = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"quickbooksRealmId\", _descriptor, this);\n      _initializerDefineProperty(this, \"quickbooksCompanyName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"quickbooksCompanyDomain\", _descriptor3, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n    }\n    get isConnected() {\n      return this._meta?.isConnected;\n    }\n  }, _defineProperty(_Class, \"requiredMetaFields\", ['isConnected']), _Class), _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksRealmId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksCompanyName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksCompanyDomain\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/quote-change-set\", [\"exports\", \"@ember-data/model\", \"@ember/service\"], function (_exports, _model, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('quote-version', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.hasMany)('quote-change', {\n    async: true,\n    inverse: 'changeSet'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      /* attrs */\n      _initializerDefineProperty(this, \"status\", _descriptor2, this);\n      // enum: ['DRAFT', 'ACCEPTED']\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"version\", _descriptor5, this);\n      _initializerDefineProperty(this, \"changes\", _descriptor6, this);\n    }\n    /* computed */\n    get valuesArray() {\n      return this.hasMany('changes').value()?.toArray?.() || [];\n    }\n    get labourDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.labourDiff, 0);\n    }\n    get manHoursDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.manHoursDiff, 0);\n    }\n    get materialsDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.materialsDiff, 0);\n    }\n    get subcontractorsDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.subcontractorsDiff, 0);\n    }\n    get sumsDiff() {\n      return this.valuesArray.reduce((total, c) => total + c.sumsDiff, 0);\n    }\n\n    /* methods */\n    async findChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      return changes?.find(c => c.belongsTo('task').value() === task);\n    }\n    createChangeForTask(task) {\n      return this.store.createRecord('quote-change', {\n        changeSet: this,\n        task,\n        entity: this.belongsTo('entity').value(),\n        project: this.belongsTo('project').value()\n      });\n    }\n    async deleteChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      const change = changes?.find(c => c.belongsTo('task').value() === task);\n      if (change) await change.destroyRecord();\n      if (changes?.length === 0) await this.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"changes\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/quote-change\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec4 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.belongsTo)('quote-change-set', {\n    async: true,\n    inverse: 'changes'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"labourDiff\", _descriptor, this);\n      _initializerDefineProperty(this, \"manHoursDiff\", _descriptor2, this);\n      _initializerDefineProperty(this, \"materialsDiff\", _descriptor3, this);\n      _initializerDefineProperty(this, \"subcontractorsDiff\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sumsDiff\", _descriptor5, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"task\", _descriptor7, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor8, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"labourDiff\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"manHoursDiff\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"materialsDiff\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorsDiff\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sumsDiff\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/quote-version-value\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec4 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec9 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec0 = (0, _model.belongsTo)('quote-version', {\n    async: true,\n    inverse: 'values'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"labour\", _descriptor2, this);\n      _initializerDefineProperty(this, \"manHours\", _descriptor3, this);\n      _initializerDefineProperty(this, \"materials\", _descriptor4, this);\n      _initializerDefineProperty(this, \"subcontractors\", _descriptor5, this);\n      _initializerDefineProperty(this, \"sums\", _descriptor6, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n      _initializerDefineProperty(this, \"project\", _descriptor8, this);\n      _initializerDefineProperty(this, \"task\", _descriptor9, this);\n      _initializerDefineProperty(this, \"version\", _descriptor0, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"labour\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"manHours\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"materials\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractors\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"sums\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/quote-version\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number'), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('quote-change-set', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.hasMany)('quote-version-value', {\n    async: true,\n    inverse: 'version'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"versionNumber\", _descriptor2, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor5, this);\n      _initializerDefineProperty(this, \"values\", _descriptor6, this);\n    }\n    /* computed */\n    get valuesArray() {\n      return this.hasMany('values').value()?.toArray?.() || [];\n    }\n    get labour() {\n      return this.valuesArray.reduce((total, v) => total + (v.labour || 0), 0);\n    }\n    get manHours() {\n      return this.valuesArray.reduce((total, v) => total + (v.manHours || 0), 0);\n    }\n    get materials() {\n      return this.valuesArray.reduce((total, v) => total + (v.materials || 0), 0);\n    }\n    get subcontractors() {\n      return this.valuesArray.reduce((total, v) => total + (v.subcontractors || 0), 0);\n    }\n    get sums() {\n      return this.valuesArray.reduce((total, v) => total + (v.sums || 0), 0);\n    }\n    get total() {\n      return this.labour + this.materials + this.subcontractors + this.sums;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"versionNumber\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"values\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/report-export-option\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string', {\n    defaultValue: 'item'\n  }), _dec7 = (0, _model.attr)({\n    defaultValue: () => ['day', 'worker', 'task']\n  }), _dec8 = (0, _model.attr)('string', {\n    defaultValue: 'item'\n  }), _dec9 = (0, _model.attr)('string', {\n    defaultValue: 'item'\n  }), _dec0 = (0, _model.attr)('string', {\n    defaultValue: 'total'\n  }), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"isEntityDefault\", _descriptor, this);\n      _initializerDefineProperty(this, \"companyLogoUrl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"title\", _descriptor3, this);\n      _initializerDefineProperty(this, \"introduction\", _descriptor4, this);\n      _initializerDefineProperty(this, \"footnotes\", _descriptor5, this);\n      _initializerDefineProperty(this, \"materialsDetail\", _descriptor6, this);\n      _initializerDefineProperty(this, \"projectTimesheetsDetail\", _descriptor7, this);\n      _initializerDefineProperty(this, \"labourInvoicesDetail\", _descriptor8, this);\n      _initializerDefineProperty(this, \"subcontractorInvoicesDetail\", _descriptor9, this);\n      _initializerDefineProperty(this, \"marginType\", _descriptor0, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor1, this);\n      _initializerDefineProperty(this, \"project\", _descriptor10, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"isEntityDefault\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"companyLogoUrl\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"title\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"introduction\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"footnotes\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"materialsDetail\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"projectTimesheetsDetail\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"labourInvoicesDetail\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"subcontractorInvoicesDetail\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"marginType\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/resource-event\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _Class;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('date'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: null\n  }), _dec9 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _dec0 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = (_Class = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"description\", _descriptor, this);\n      _initializerDefineProperty(this, \"resourceType\", _descriptor2, this);\n      _initializerDefineProperty(this, \"resource\", _descriptor3, this);\n      _initializerDefineProperty(this, \"targetType\", _descriptor4, this);\n      _initializerDefineProperty(this, \"target\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor6, this);\n      _initializerDefineProperty(this, \"action\", _descriptor7, this);\n      _initializerDefineProperty(this, \"worker\", _descriptor8, this);\n      _initializerDefineProperty(this, \"user\", _descriptor9, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor0, this);\n    }\n  }, _defineProperty(_Class, \"requiredMetaFields\", ['personName']), _Class), _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"resourceType\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"resource\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"targetType\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"target\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"action\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/scheduling-change-set\", [\"exports\", \"@ember-data/model\", \"@ember/service\"], function (_exports, _model, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('scheduling-version', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.hasMany)('scheduling-change', {\n    async: true,\n    inverse: 'changeSet'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      /* attrs */\n      _initializerDefineProperty(this, \"status\", _descriptor2, this);\n      // enum: ['DRAFT', 'ACCEPTED']\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"version\", _descriptor5, this);\n      _initializerDefineProperty(this, \"changes\", _descriptor6, this);\n    }\n    /* methods */\n    async findChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      return changes?.find(c => c.belongsTo('task').value() === task);\n    }\n    createChangeForTask(task, changeType) {\n      return this.store.createRecord('scheduling-change', {\n        changeSet: this,\n        changeType,\n        task,\n        entity: this.belongsTo('entity').value(),\n        project: this.belongsTo('project').value()\n      });\n    }\n    async deleteChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      const change = changes?.find(c => c.belongsTo('task').value() === task);\n      if (change) await change.destroyRecord();\n      if (changes?.length === 0) await this.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"changes\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/scheduling-change\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('Date', {\n    defaultValue: 0\n  }), _dec2 = (0, _model.attr)('Date', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('scheduling-change-set', {\n    async: true,\n    inverse: 'changes'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"startDate\", _descriptor, this);\n      _initializerDefineProperty(this, \"completedDate\", _descriptor2, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"task\", _descriptor5, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"completedDate\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/scheduling-version-value\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('date'), _dec3 = (0, _model.attr)('date'), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('scheduling-version', {\n    async: true,\n    inverse: 'values'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"startDate\", _descriptor2, this);\n      _initializerDefineProperty(this, \"completionDate\", _descriptor3, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n      _initializerDefineProperty(this, \"project\", _descriptor5, this);\n      _initializerDefineProperty(this, \"task\", _descriptor6, this);\n      _initializerDefineProperty(this, \"version\", _descriptor7, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"startDate\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"completionDate\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"version\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/scheduling-version\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number'), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec5 = (0, _model.belongsTo)('scheduling-change-set', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.hasMany)('scheduling-version-value', {\n    async: true,\n    inverse: 'version'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"versionNumber\", _descriptor2, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor5, this);\n      _initializerDefineProperty(this, \"values\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"versionNumber\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"values\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/stage-payment-option\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('date'), _dec3 = (0, _model.attr)('date'), _dec4 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"footerNotes\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor2, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor3, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"footerNotes\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/stage-payment-question\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('boolean'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('stage-payment', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"complete\", _descriptor, this);\n      _initializerDefineProperty(this, \"title\", _descriptor2, this);\n      _initializerDefineProperty(this, \"description\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor5, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"stagePayment\", _descriptor7, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"complete\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"title\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"stagePayment\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/stage-payment\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec3 = (0, _model.attr)('number'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('string', {\n    defaultValue: 'UNCLAIMED'\n  }), _dec6 = (0, _model.attr)('date'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec0 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec1 = (0, _model.hasMany)('link-task-to-stage-payment', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.hasMany)('stage-payment-question', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"value\", _descriptor2, this);\n      _initializerDefineProperty(this, \"retention\", _descriptor3, this);\n      _initializerDefineProperty(this, \"stageNumber\", _descriptor4, this);\n      _initializerDefineProperty(this, \"status\", _descriptor5, this);\n      // enum: ['CLAIMED', 'UNCLAIMED']\n      _initializerDefineProperty(this, \"dueDate\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor8, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor9, this);\n      _initializerDefineProperty(this, \"project\", _descriptor0, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor1, this);\n      _initializerDefineProperty(this, \"questions\", _descriptor10, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"value\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"retention\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"stageNumber\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"dueDate\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"tasks\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"questions\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/supplier-debtor-account\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('boolean'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('itm-supplier', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"code\", _descriptor, this);\n      _initializerDefineProperty(this, \"name\", _descriptor2, this);\n      _initializerDefineProperty(this, \"isSubAccount\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor5, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor7, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"code\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"isSubAccount\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/system-announcement\", [\"exports\", \"portal/models/base-model\", \"@ember-data/model\"], function (_exports, _baseModel, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n  0; //eaimeta@70e063a35619d71f0,\"portal/models/base-model\",0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('boolean'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('date'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('array'), _dec0 = (0, _model.attr)('array'), _dec1 = (0, _model.attr)('array'), _dec10 = (0, _model.attr)('array'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"title\", _descriptor, this);\n      _initializerDefineProperty(this, \"message\", _descriptor2, this);\n      _initializerDefineProperty(this, \"language\", _descriptor3, this);\n      _initializerDefineProperty(this, \"important\", _descriptor4, this);\n      _initializerDefineProperty(this, \"validFrom\", _descriptor5, this);\n      _initializerDefineProperty(this, \"validUntil\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor8, this);\n      _initializerDefineProperty(this, \"entityAttributes\", _descriptor9, this);\n      _initializerDefineProperty(this, \"userAttributes\", _descriptor0, this);\n      _initializerDefineProperty(this, \"requiredChargebeePlans\", _descriptor1, this);\n      _initializerDefineProperty(this, \"excludedChargebeePlans\", _descriptor10, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"title\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"message\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"language\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"important\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"validFrom\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"validUntil\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"entityAttributes\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"userAttributes\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"requiredChargebeePlans\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"excludedChargebeePlans\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/target\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('account', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('kpi', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.attr)(), _dec6 = (0, _model.attr)(), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"account\", _descriptor, this);\n      _initializerDefineProperty(this, \"kpi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"date\", _descriptor4, this);\n      _initializerDefineProperty(this, \"values\", _descriptor5, this);\n      _initializerDefineProperty(this, \"breakdown\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor8, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"account\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"kpi\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"date\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"values\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"breakdown\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/task-change-set\", [\"exports\", \"@ember-data/model\", \"@ember/service\"], function (_exports, _model, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.hasMany)('task-change', {\n    async: true,\n    inverse: 'changeSet'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      /* attrs */\n      _initializerDefineProperty(this, \"status\", _descriptor2, this);\n      // enum: ['DRAFT', 'ACCEPTED']\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"project\", _descriptor4, this);\n      _initializerDefineProperty(this, \"changes\", _descriptor5, this);\n    }\n    /* methods */\n    async findChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      return changes?.find(c => c.belongsTo('task').value() === task);\n    }\n    createChangeForTask(task, changeType) {\n      return this.store.createRecord('task-change', {\n        changeSet: this,\n        changeType,\n        task,\n        entity: this.belongsTo('entity').value(),\n        project: this.belongsTo('project').value()\n      });\n    }\n    async deleteChangeForTask(task) {\n      const changes = await this.hasMany('changes').load();\n      const change = changes?.find(c => c.belongsTo('task').value() === task);\n      if (change) await change.destroyRecord();\n      if (changes?.length === 0) await this.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"changes\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/task-change\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('task-change-set', {\n    async: true,\n    inverse: 'changes'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      // whichever Task changes we want to track\n      _initializerDefineProperty(this, \"changeType\", _descriptor, this);\n      // enum: ['CREATE', 'MODIFY', 'DELETE']\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor2, this);\n      _initializerDefineProperty(this, \"task\", _descriptor3, this);\n      _initializerDefineProperty(this, \"changeSet\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"changeType\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"changeSet\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/task-product\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('number'), _dec5 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec6 = (0, _model.attr)('number'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('string', {\n    defaultValue: 'TaskProduct'\n  }), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('string'), _dec10 = (0, _model.attr)('string'), _dec11 = (0, _model.attr)('date'), _dec12 = (0, _model.attr)('date'), _dec13 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec14 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: 'taskProducts'\n  }), _dec15 = (0, _model.belongsTo)('contact', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"productLibraryIdentifier\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sku\", _descriptor3, this);\n      _initializerDefineProperty(this, \"unitPrice\", _descriptor4, this);\n      _initializerDefineProperty(this, \"quantity\", _descriptor5, this);\n      _initializerDefineProperty(this, \"orderedQuantity\", _descriptor6, this);\n      _initializerDefineProperty(this, \"supplierName\", _descriptor7, this);\n      _initializerDefineProperty(this, \"source\", _descriptor8, this);\n      _initializerDefineProperty(this, \"unit\", _descriptor9, this);\n      _initializerDefineProperty(this, \"currency\", _descriptor0, this);\n      _initializerDefineProperty(this, \"manufacturer\", _descriptor1, this);\n      _initializerDefineProperty(this, \"usage\", _descriptor10, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor11, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor12, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor13, this);\n      _initializerDefineProperty(this, \"task\", _descriptor14, this);\n      _initializerDefineProperty(this, \"supplier\", _descriptor15, this);\n    }\n    get breadcrumbs() {\n      const task = this.belongsTo('task').value();\n      const scope = [];\n      if (task) scope.push(task);\n      const unshiftContainerToScope = task => {\n        if (task?.belongsTo('parent').id()) {\n          scope.unshift(task?.belongsTo('parent').value());\n          unshiftContainerToScope(task?.belongsTo('parent').value());\n        }\n      };\n      unshiftContainerToScope(task);\n      if (task?.belongsTo('project').value()) scope.unshift(task?.belongsTo('project').value());\n      const pathArray = scope.map(u => u?.name);\n      if (pathArray.length) return pathArray.join(' > ');\n      return null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"productLibraryIdentifier\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sku\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"unitPrice\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"quantity\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"orderedQuantity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"supplierName\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"source\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"unit\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"currency\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"manufacturer\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"usage\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"supplier\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/task-template-item\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('task-template', {\n    async: true,\n    inverse: 'items'\n  }), _dec5 = (0, _model.belongsTo)('task-template-item', {\n    async: true,\n    inverse: 'items'\n  }), _dec6 = (0, _model.hasMany)('task-template-item', {\n    async: true,\n    inverse: 'parent'\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      _initializerDefineProperty(this, \"path\", _descriptor2, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"taskTemplate\", _descriptor4, this);\n      _initializerDefineProperty(this, \"parent\", _descriptor5, this);\n      _initializerDefineProperty(this, \"items\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"path\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"taskTemplate\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"parent\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/task-template\", [\"exports\", \"@ember-data/model\", \"portal/models/base-model\"], function (_exports, _model, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.hasMany)('task-template-item', {\n    async: true,\n    inverse: 'taskTemplate'\n  }), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor, this);\n      /* relationships */\n      _initializerDefineProperty(this, \"entity\", _descriptor2, this);\n      _initializerDefineProperty(this, \"items\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"items\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/task\", [\"exports\", \"@ember-data/model\", \"@ember/service\", \"@ember/object\", \"portal/models/base-model\"], function (_exports, _model, _service, _object, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/service\",0,\"@ember/object\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string', {\n    defaultValue: 'ACTIVE'\n  }), _dec8 = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec9 = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec0 = (0, _model.attr)('date'), _dec1 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec10 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: 'tasks'\n  }), _dec11 = (0, _model.hasMany)('worker-task-attribute', {\n    async: true,\n    inverse: 'task'\n  }), _dec12 = (0, _model.hasMany)('user-task-attribute', {\n    async: true,\n    inverse: 'task'\n  }), _dec13 = (0, _model.hasMany)('task', {\n    async: true,\n    inverse: 'parent'\n  }), _dec14 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: 'children'\n  }), _dec15 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec16 = (0, _model.belongsTo)('gl-account', {\n    async: true,\n    inverse: null\n  }), _dec17 = (0, _model.belongsTo)('profit-margin', {\n    async: true,\n    inverse: null\n  }), _dec18 = (0, _model.hasMany)('link-attachment-to-task', {\n    async: true,\n    inverse: 'task'\n  }), _dec19 = (0, _model.hasMany)('task-product', {\n    async: true,\n    inverse: 'task'\n  }), _dec20 = (0, _model.hasMany)('link-task-to-stage-payment', {\n    async: true,\n    inverse: 'task'\n  }), _dec21 = (0, _object.computed)('myAttachments', 'allActiveChildren.@each.attachments'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      /* attrs */\n      _initializerDefineProperty(this, \"name\", _descriptor3, this);\n      _initializerDefineProperty(this, \"description\", _descriptor4, this);\n      _initializerDefineProperty(this, \"status\", _descriptor5, this);\n      // enum: ['DRAFT_CREATED', 'ACTIVE', 'DRAFT_DELETED', 'DELETED']\n      _initializerDefineProperty(this, \"contractType\", _descriptor6, this);\n      // enum: ['COST_PLUS', 'FIXED_PRICE']\n      _initializerDefineProperty(this, \"path\", _descriptor7, this);\n      _initializerDefineProperty(this, \"taskType\", _descriptor8, this);\n      // enum: ['TASK', 'SUMS', 'SUBCONTRACTOR', 'PLANT', 'MILESTONE', 'BUILDERS_WORK', 'INTERNAL']\n      _initializerDefineProperty(this, \"timesheetStatus\", _descriptor9, this);\n      // enum: ['INACTIVE', 'ACTIVE']\n      _initializerDefineProperty(this, \"isSchedulingEnabled\", _descriptor0, this);\n      _initializerDefineProperty(this, \"isComplete\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor10, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor11, this);\n      _initializerDefineProperty(this, \"project\", _descriptor12, this);\n      _initializerDefineProperty(this, \"workerTaskAttributes\", _descriptor13, this);\n      _initializerDefineProperty(this, \"userTaskAttributes\", _descriptor14, this);\n      _initializerDefineProperty(this, \"children\", _descriptor15, this);\n      _initializerDefineProperty(this, \"parent\", _descriptor16, this);\n      _initializerDefineProperty(this, \"purchasesGlAccount\", _descriptor17, this);\n      _initializerDefineProperty(this, \"salesGlAccount\", _descriptor18, this);\n      _initializerDefineProperty(this, \"profitMargin\", _descriptor19, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor20, this);\n      _initializerDefineProperty(this, \"taskProducts\", _descriptor21, this);\n      _initializerDefineProperty(this, \"linkTasksToStagePayments\", _descriptor22, this);\n    }\n    /* load methods */\n    async loadBudget() {\n      const project = await this.belongsTo('project').load();\n      return project.loadBudget();\n    }\n    async loadQuote() {\n      const project = await this.belongsTo('project').load();\n      return project.loadQuote();\n    }\n    async loadTask() {\n      const project = await this.belongsTo('project').load();\n      return project.loadTaskChanges();\n    }\n\n    // technically this works but it's always slower because of the multiple requests\n    // instead you can usually request the projects tasks and filter them client side quicker\n    // async loadTasks(options = {}) {\n    //   const loadTaskAndChildren = async (task) => {\n    //     const children = await this.store.simpleQuery(\n    //       'task',\n    //       { parent: task.id },\n    //       options\n    //     );\n    //     if (children.length)\n    //       return Promise.all(children.map(loadTaskAndChildren));\n    //   };\n    //   await loadTaskAndChildren(this);\n    // }\n\n    // we need to load this record only once, so has to create new method\n\n    async loadCurrentProfitMargin() {\n      await this.belongsTo('profitMargin').reload();\n    }\n    async loadAttachments() {\n      const filter = {\n        and: [{\n          field: 'task',\n          op: 'EQ',\n          value: this.id\n        }]\n      };\n      await this.store.query('link-attachment-to-task', {\n        filter,\n        include: 'attachment'\n      });\n    }\n    async loadProducts() {\n      await this.store.query('task-product', {\n        filter: {\n          and: [{\n            field: 'task',\n            operator: 'EQ',\n            value: this.id\n          }, {\n            field: 'entity',\n            operator: 'EQ',\n            value: this.belongsTo('entity').id()\n          }]\n        }\n      });\n    }\n    async loadProfitMargins(task = this) {\n      const profitMarginRef = task.belongsTo('profitMargin');\n      if (profitMarginRef.id()) await profitMarginRef.load();\n      const parentRef = task.belongsTo('parent');\n      const parentTask = parentRef.id() ? await parentRef.load() : null;\n      if (parentTask) {\n        const parentProfitMarginRef = parentTask.belongsTo('profitMargin');\n        if (parentProfitMarginRef.id()) await parentProfitMarginRef.load();\n        return this.loadProfitMargins(parentTask);\n      }\n      const projectRef = this.belongsTo('project');\n      const project = projectRef.id() ? await projectRef.load() : null;\n      if (project) await project.loadProfitMargins();\n    }\n\n    /* computed */\n    get totalProducts() {\n      return this.taskProducts || [];\n    }\n    get canManageTaskProgress() {\n      return this.newFeatureFlags.includesFeatureFlags(this, 'canManageTaskProgress');\n    }\n    get myAttachments() {\n      const linkAttachmentToTaskRecords = this.hasMany('attachments').value()?.toArray?.() || [];\n      const attachmentIds = linkAttachmentToTaskRecords.map(item => item.belongsTo('attachment').id());\n      return (this.store.peekAll('attachment')?.toArray?.() || []).filter(item => attachmentIds.includes(item.id));\n    }\n    get allAttachments() {\n      const activeChildrenAttachments = this.allActiveChildren.reduce((attachments, task) => {\n        return attachments.concat((task.hasMany('attachments').value()?.toArray?.() || []).map(item => item.belongsTo('attachment').value()));\n      }, []);\n      return [...this.myAttachments, ...activeChildrenAttachments].sort((a, b) => a.dateCreated - b.dateCreated);\n    }\n\n    // computed property to get only direct children\n    get activeChildren() {\n      return (this.hasMany('children').value()?.toArray() || []).filter(c => ['ACTIVE', 'DRAFT_CREATED'].includes(c.status));\n    }\n\n    // computed property to get indefinite depth of children\n    get allActiveChildren() {\n      const allActiveChildrenArray = [];\n      this.getAllActiveChildren(this, allActiveChildrenArray);\n      return allActiveChildrenArray;\n    }\n    get draftProgressChange() {\n      const changes = this.belongsTo('project').value()?.belongsTo('draftProgressChangeSet').value()?.hasMany('changes').value()?.toArray?.() || [];\n      return changes.find(v => v.belongsTo('task').value() === this);\n    }\n    get currentProgressChange() {\n      const values = this.belongsTo('project').value()?.belongsTo('currentProgressVersion').value()?.hasMany('values').value()?.toArray?.() || [];\n      return values.find(v => v.belongsTo('task').value() === this);\n    }\n    get currentBudgetValue() {\n      const values = this.belongsTo('project').value()?.belongsTo('currentBudgetVersion').value()?.hasMany('values').value()?.toArray?.() || [];\n      return values.find(v => v.belongsTo('task').value() === this);\n    }\n    get currentQuoteValue() {\n      const values = this.belongsTo('project').value()?.belongsTo('currentQuoteVersion').value()?.hasMany('values').value()?.toArray?.() || [];\n      return values.find(v => v.belongsTo('task').value() === this);\n    }\n\n    // ===== Committed budget =====\n\n    get budgetManHours() {\n      return this.currentBudgetValue?.manHours || 0;\n    }\n    get budgetLabour() {\n      return this.currentBudgetValue?.labour || 0;\n    }\n    get budgetMaterials() {\n      return this.currentBudgetValue?.materials || 0;\n    }\n    get budgetSubcontractors() {\n      return this.currentBudgetValue?.subcontractors || 0;\n    }\n    get budgetSums() {\n      return this.currentBudgetValue?.sums || 0;\n    }\n    get budget() {\n      console.warn('the budget method is deprecated, use specific values instead');\n      return {\n        manHours: this.budgetManHours,\n        labour: this.budgetLabour,\n        materials: this.budgetMaterials,\n        subcontractors: this.budgetSubcontractors,\n        sums: this.budgetSums,\n        total: this.budgetLabour + this.budgetMaterials + this.budgetSubcontractors + this.budgetSums\n      };\n    }\n    get breadcrumbs() {\n      const scope = [];\n      const unshiftContainerToScope = task => {\n        if (task?.belongsTo('parent').id()) {\n          scope.unshift(task?.belongsTo('parent').value());\n          unshiftContainerToScope(task?.belongsTo('parent').value());\n        }\n      };\n      unshiftContainerToScope(this);\n      if (this.belongsTo('project').value()) scope.unshift(this.belongsTo('project').value());\n      const pathArray = scope.map(u => u?.name);\n      if (pathArray.length) return pathArray.join(' > ');\n      return null;\n    }\n    get hasDirectBudget() {\n      return this._meta?.hasBudget === 'DIRECT';\n    }\n    get hasTaskChildrenBudget() {\n      return this._meta?.hasBudget === 'INDIRECT';\n    }\n    get hasDirectProducts() {\n      return this._meta?.hasProducts === 'DIRECT';\n    }\n    get hasTaskChildrenProducts() {\n      return this._meta?.hasProducts === 'INDIRECT';\n    }\n    get hasDirectAttachments() {\n      return this._meta?.hasAttachments === 'DIRECT';\n    }\n    get hasTaskChildrenAttachments() {\n      return this._meta?.hasAttachments === 'INDIRECT';\n    }\n    get hasDirectQuote() {\n      return this._meta?.hasQuote === 'DIRECT';\n    }\n    get hasTaskChildrenQuote() {\n      return this._meta?.hasQuote === 'INDIRECT';\n    }\n    get allChildrenAttachments() {\n      return this.allActiveChildren.reduce((attachments, task) => {\n        return attachments.concat(task.hasMany('attachments').value()?.toArray?.() || []);\n      }, []);\n    }\n    get activeTaskChildrenProducts() {\n      const activeChildrenProducts = this.allActiveChildren.reduce((products, task) => {\n        return products.concat(task.hasMany('taskProducts').value()?.toArray?.() || []);\n      }, []);\n      return activeChildrenProducts;\n    }\n    // ===== Committed quote =====\n    get quoteManHours() {\n      return this.currentQuoteValue?.manHours || 0;\n    }\n    get quoteLabour() {\n      return this.currentQuoteValue?.labour || 0;\n    }\n    get quoteMaterials() {\n      return this.currentQuoteValue?.materials || 0;\n    }\n    get quoteSubcontractors() {\n      return this.currentQuoteValue?.subcontractors || 0;\n    }\n    get quoteSums() {\n      return this.currentQuoteValue?.sums || 0;\n    }\n    get quote() {\n      console.warn('the quote method is deprecated, use specific values instead');\n      return {\n        manHours: this.quoteManHours,\n        labour: this.quoteLabour,\n        materials: this.quoteMaterials,\n        subcontractors: this.quoteSubcontractors,\n        sums: this.quoteSums\n      };\n    }\n    get _parents() {\n      const parents = [];\n      const getParents = task => {\n        // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n        const parent = task.get('parent');\n        if (parent) {\n          parents.push(parent);\n          getParents(parent);\n        }\n      };\n      getParents(this);\n      return parents;\n    }\n    get hasInactiveParents() {\n      const parents = this._parents;\n      return parents.some(\n      // the reference API does not work well with computed properties and glimmer tracking https://github.com/emberjs/data/issues/7102\n      parent => parent.get('timesheetStatus') === 'INACTIVE');\n    }\n\n    // ===== Draft budget =====\n\n    get draftBudgetChange() {\n      const changes = this.belongsTo('project').value()?.belongsTo('draftBudgetChangeSet').value()?.hasMany('changes').value()?.toArray?.() || [];\n      return changes.find(c => c.belongsTo('task').value() === this);\n    }\n    get draftBudgetManHours() {\n      return this.budgetManHours + (this.draftBudgetChange?.manHoursDiff || 0);\n    }\n    get draftBudgetLabour() {\n      return this.budgetLabour + (this.draftBudgetChange?.labourDiff || 0);\n    }\n    get draftBudgetMaterials() {\n      return this.budgetMaterials + (this.draftBudgetChange?.materialsDiff || 0);\n    }\n    get draftBudgetSubcontractors() {\n      return this.budgetSubcontractors + (this.draftBudgetChange?.subcontractorsDiff || 0);\n    }\n    get draftBudgetSums() {\n      return this.budgetSums + (this.draftBudgetChange?.sumsDiff || 0);\n    }\n    get draftBudget() {\n      console.warn('the draftBudget method is deprecated, use specific values instead');\n      return {\n        labour: this.draftBudgetLabour,\n        manHours: this.draftBudgetManHours,\n        materials: this.draftBudgetMaterials,\n        subcontractors: this.draftBudgetSubcontractors,\n        sums: this.draftBudgetSums\n      };\n    }\n\n    // ===== Draft total budget =====\n\n    get childrenDraftBudgetManHours() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftBudgetManHours, 0);\n    }\n    get totalDraftBudgetManHours() {\n      return this.draftBudgetManHours + this.childrenDraftBudgetManHours;\n    }\n    get childrenDraftBudgetLabour() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftBudgetLabour, 0);\n    }\n    get totalDraftBudgetLabour() {\n      return this.draftBudgetLabour + this.childrenDraftBudgetLabour;\n    }\n    get childrenDraftBudgetMaterials() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftBudgetMaterials, 0);\n    }\n    get totalDraftBudgetMaterials() {\n      return this.draftBudgetMaterials + this.childrenDraftBudgetMaterials;\n    }\n    get childrenDraftBudgetSubcontractors() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftBudgetSubcontractors, 0);\n    }\n    get totalDraftBudgetSubcontractors() {\n      return this.draftBudgetSubcontractors + this.childrenDraftBudgetSubcontractors;\n    }\n    get childrenDraftBudgetSums() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftBudgetSums, 0);\n    }\n    get totalDraftBudgetSums() {\n      return this.draftBudgetSums + this.childrenDraftBudgetSums;\n    }\n    get childrenDraftBudget() {\n      console.warn('the childrenDraftBudget method is deprecated, use specific values instead');\n      return {\n        labour: this.childrenDraftBudgetLabour,\n        manHours: this.childrenDraftBudgetManHours,\n        materials: this.childrenDraftBudgetMaterials,\n        subcontractors: this.childrenDraftBudgetSubcontractors,\n        sums: this.childrenDraftBudgetSums\n      };\n    }\n    get totalDraftBudget() {\n      console.warn('the totalDraftBudget method is deprecated, use specific values instead');\n      return {\n        manHours: this.totalDraftBudgetManHours,\n        labour: this.totalDraftBudgetLabour,\n        materials: this.totalDraftBudgetMaterials,\n        subcontractors: this.totalDraftBudgetSubcontractors,\n        sums: this.totalDraftBudgetSums\n      };\n    }\n\n    // ===== Draft quote =====\n    get draftQuoteChange() {\n      const changes = this.belongsTo('project').value()?.belongsTo('draftQuoteChangeSet').value()?.hasMany('changes').value()?.toArray?.() || [];\n      return changes.find(c => c.belongsTo('task').value() === this);\n    }\n    get draftQuoteLabour() {\n      return this.quoteLabour + (this.draftQuoteChange?.labourDiff || 0);\n    }\n    get draftQuoteMaterials() {\n      return this.quoteMaterials + (this.draftQuoteChange?.materialsDiff || 0);\n    }\n    get draftQuoteSubcontractors() {\n      return this.quoteSubcontractors + (this.draftQuoteChange?.subcontractorsDiff || 0);\n    }\n    get draftQuoteSums() {\n      return this.quoteSums + (this.draftQuoteChange?.sumsDiff || 0);\n    }\n    get draftQuote() {\n      console.warn('the draftQuote method is deprecated, use specific values instead');\n      return {\n        labour: this.draftQuoteLabour,\n        manHours: this.draftQuoteManHours,\n        materials: this.draftQuoteMaterials,\n        subcontractors: this.draftQuoteSubcontractors,\n        sums: this.draftQuoteSums\n      };\n    }\n\n    // ===== Draft total quote =====\n\n    get childrenDraftQuoteLabour() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftQuoteLabour, 0);\n    }\n    get totalDraftQuoteLabour() {\n      return this.draftQuoteLabour + this.childrenDraftQuoteLabour;\n    }\n    get childrenDraftQuoteMaterials() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftQuoteMaterials, 0);\n    }\n    get totalDraftQuoteMaterials() {\n      return this.draftQuoteMaterials + this.childrenDraftQuoteMaterials;\n    }\n    get childrenDraftQuoteSubcontractors() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftQuoteSubcontractors, 0);\n    }\n    get totalDraftQuoteSubcontractors() {\n      return this.draftQuoteSubcontractors + this.childrenDraftQuoteSubcontractors;\n    }\n    get childrenDraftQuoteSums() {\n      return this.activeChildren.reduce((acc, child) => acc + child.totalDraftQuoteSums, 0);\n    }\n    get totalDraftQuoteSums() {\n      return this.draftQuoteSums + this.childrenDraftQuoteSums;\n    }\n    get taskHasDependencies() {\n      return this._meta?.taskHasDependencies;\n    }\n    get childrenDraftQuote() {\n      console.warn('the childrenDraftQuote method is deprecated, use specific values instead');\n      return {\n        labour: this.childrenDraftQuoteLabour,\n        materials: this.childrenDraftQuoteMaterials,\n        subcontractors: this.childrenDraftQuoteSubcontractors,\n        sums: this.childrenDraftQuoteSums\n      };\n    }\n    get totalDraftQuote() {\n      console.warn('the totalDraftQuote method is deprecated, use specific values instead');\n      return {\n        labour: this.totalDraftQuoteLabour,\n        materials: this.totalDraftQuoteMaterials,\n        subcontractors: this.totalDraftQuoteSubcontractors,\n        sums: this.totalDraftQuoteSums\n      };\n    }\n\n    // ===== Profit margins =====\n\n    // get profit margins from parent task or project or entity\n    get defaultPercentageValues() {\n      return {\n        labourPercentage: this.getDefaultValues(this, 'labourPercentage'),\n        additionalLabourMargin: this.getDefaultValues(this, 'additionalLabourMargin'),\n        materialsPercentage: this.getDefaultValues(this, 'materialsPercentage'),\n        subcontractorsPercentage: this.getDefaultValues(this, 'subcontractorsPercentage'),\n        sumsPercentage: this.getDefaultValues(this, 'sumsPercentage'),\n        profitType: this.getDefaultValues(this, 'profitType')\n      };\n    }\n\n    // get default profit margins from either current task profit margin or from its default values\n    get effectiveProfitMargin() {\n      // the effectiveProfitMargin method is deprecated, use specific values instead\n      const profitMargin = this.belongsTo('profitMargin').value();\n      return {\n        profitType: profitMargin?.profitType || this.defaultPercentageValues.profitType,\n        labourPercentage: profitMargin?.labourPercentage != null ? {\n          value: profitMargin?.labourPercentage,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.tasks.task.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.labourPercentage,\n        additionalLabourMargin: profitMargin?.additionalLabourMargin != null ? {\n          value: profitMargin?.additionalLabourMargin,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.tasks.task.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.additionalLabourMargin,\n        materialsPercentage: profitMargin?.materialsPercentage != null ? {\n          value: profitMargin?.materialsPercentage,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.tasks.task.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.materialsPercentage,\n        subcontractorsPercentage: profitMargin?.subcontractorsPercentage != null ? {\n          value: profitMargin?.subcontractorsPercentage,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.tasks.task.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.subcontractorsPercentage,\n        sumsPercentage: profitMargin?.sumsPercentage != null ? {\n          value: profitMargin?.sumsPercentage,\n          type: profitMargin?.profitType || null,\n          route: 'entity.builda-price.projects.project.tasks.task.settings',\n          model: this.id,\n          record: this\n        } : this.defaultPercentageValues.sumsPercentage\n      };\n    }\n    get defaultPurchasesGlAccount() {\n      return this.getDefaultPurchasesGlAccount(this);\n    }\n    get effectivePurchasesGlAccount() {\n      const purchasesGlAccount = this.belongsTo('purchasesGlAccount').value();\n      if (purchasesGlAccount) return purchasesGlAccount;\n      return this.defaultPurchasesGlAccount;\n    }\n    get defaultSalesGlAccount() {\n      return this.getDefaultSalesGlAccount(this);\n    }\n    get effectiveSalesGlAccount() {\n      const salesGlAccount = this.belongsTo('salesGlAccount').value();\n      if (salesGlAccount) return salesGlAccount;\n      return this.defaultSalesGlAccount;\n    }\n    get effectiveXeroSalesGlAccount() {\n      const salesGlAccount = this.effectiveSalesGlAccount;\n      if (!salesGlAccount?.xeroAccountId) return undefined;\n      return salesGlAccount;\n    }\n    get effectiveContractType() {\n      const contractType = this.contractType;\n      if (contractType) return contractType;\n      return this.getDefaultContractType(this);\n    }\n    get gst() {\n      return this.belongsTo('entity').value()?.gst;\n    }\n\n    /* methods */\n    async save() {\n      // this is extending the Model save\n      if (!this.isNew) return super.save(...arguments);\n\n      // before the update make sure we have an up to date project changeset reference\n      let project = await this.belongsTo('project').load();\n      let isMissingTaskChangeSet = Boolean(await project.belongsTo('draftTaskChangeSet').load());\n      if (isMissingTaskChangeSet) project = await this.belongsTo('project').reload();\n      this.status = 'DRAFT_CREATED';\n      await super.save(...arguments); // the task must be created before we make the task-change\n      await this._updateTask('CREATE');\n      return this;\n    }\n    async update(diffs, hasRetried = false) {\n      const {\n        // task, TODO task diffs will be implemented\n        budget,\n        quote\n      } = diffs;\n\n      // before the update make sure we have an up to date project changeset reference\n      let project = await this.belongsTo('project').load();\n      let isMissingTaskChangeSet = Boolean(await project.belongsTo('draftTaskChangeSet').load());\n      let isMissingBudgetChangeSet = budget ? Boolean(await project.belongsTo('draftBudgetChangeSet').load()) : false;\n      let isMissingQuoteChangeSet = quote ? Boolean(await project.belongsTo('draftQuoteChangeSet').load()) : false;\n      let shouldReloadProject = isMissingTaskChangeSet || isMissingBudgetChangeSet || isMissingQuoteChangeSet;\n      if (shouldReloadProject) project = await this.belongsTo('project').reload();\n      const actions = [this._updateTask('MODIFY'\n      // task, TODO task diffs will be implemented\n      )];\n      // if we have a budget diff update the budget\n      if (budget) actions.push(this._updateBudget(budget));\n      // if we have a quote diff update the quote\n      if (quote) actions.push(this._updateQuote(quote));\n\n      // Ensure all requests complete regardless of individual failures.\n      // A 409 Conflict indicates the server identified and resolved an orphaned changeset.\n      // In this case, a single retry is performed to complete the original operation.\n      const results = await Promise.allSettled(actions);\n      const conflictResult = results.find(result => {\n        return result.reason?.errors?.[0]?.code === '409';\n      });\n      if (conflictResult && !hasRetried) {\n        await this.belongsTo('project').reload();\n        return this.update(diffs, true);\n      }\n      const rejectedResult = results.find(result => {\n        return result.status === 'rejected';\n      });\n      if (rejectedResult) {\n        throw rejectedResult.reason;\n      }\n    }\n    async delete(moveDependenciesToTaskId) {\n      const project = await this.belongsTo('project').load();\n      const descendantTasksToUnload = this.safeHasManyToValue('children')?.toArray() ?? [];\n      const deleteTaskMetadata = moveDependenciesToTaskId ? {\n        moveDependenciesToTaskId\n      } : undefined;\n      this.deleteRecord();\n      await this.save({\n        adapterOptions: {\n          meta: deleteTaskMetadata\n        }\n      });\n      await project.reload();\n      this.unloadRecord();\n      (function unloadTasks(tasksToUnload) {\n        for (const taskToUnload of tasksToUnload) {\n          const childTasksToUnload = taskToUnload.safeHasManyToValue('children')?.toArray() ?? [];\n          taskToUnload.unloadRecord();\n          unloadTasks(childTasksToUnload);\n        }\n      })(descendantTasksToUnload);\n    }\n\n    /* private methods */\n    async _updateTask(method\n    // nextDiffs\n    ) {\n      let project = await this.belongsTo('project').load();\n      let changeSet = await project.belongsTo('draftTaskChangeSet').load();\n      if (!changeSet) {\n        try {\n          changeSet = await project.createAndSaveDraftTaskChangeSet();\n        } catch (error) {\n          if (error?.errors?.[0]?.code !== '409') throw error;\n          project = await this.belongsTo('project').reload();\n          changeSet = await project.belongsTo('draftTaskChangeSet').load();\n        }\n      }\n      let change = await changeSet.findChangeForTask(this);\n      switch (method) {\n        case 'CREATE':\n          if (change) throw new Error('Task creation is already tracked');\n          change = changeSet.createChangeForTask(this, 'CREATE');\n          break;\n        case 'MODIFY':\n          // TODO deal with the nextDiffs when implemented\n          if (!change) change = changeSet.createChangeForTask(this, 'MODIFY');\n          break;\n        case 'DELETE':\n          if (!change) change = changeSet.createChangeForTask(this, 'DELETE');\n          change.changeType = 'DELETE';\n          break;\n        default:\n          throw new Error('Invalid method provided');\n      }\n      await change.save();\n    }\n    async _updateBudget(nextDiffs) {\n      let project = await this.belongsTo('project').load();\n      let changeSet = await project.belongsTo('draftBudgetChangeSet').load();\n      if (!changeSet) changeSet = await project.createAndSaveDraftBudgetChangeSet();\n      let change = await changeSet.findChangeForTask(this);\n      if (!change) change = changeSet.createChangeForTask(this);\n      change.labourDiff = nextDiffs.labourDiff;\n      change.manHoursDiff = nextDiffs.manHoursDiff;\n      change.materialsDiff = nextDiffs.materialsDiff;\n      change.subcontractorsDiff = nextDiffs.subcontractorsDiff;\n      change.sumsDiff = nextDiffs.sumsDiff;\n      await change.save();\n    }\n    async _updateQuote(nextDiffs) {\n      let project = await this.belongsTo('project').load();\n      let changeSet = await project.belongsTo('draftQuoteChangeSet').load();\n      if (!changeSet) changeSet = await project.createAndSaveDraftQuoteChangeSet();\n      let change = await changeSet.findChangeForTask(this);\n      if (!change) change = changeSet.createChangeForTask(this);\n      change.labourDiff = nextDiffs.labourDiff;\n      change.manHoursDiff = nextDiffs.manHoursDiff;\n      change.materialsDiff = nextDiffs.materialsDiff;\n      change.subcontractorsDiff = nextDiffs.subcontractorsDiff;\n      change.sumsDiff = nextDiffs.sumsDiff;\n      await change.save();\n    }\n    async _destroy() {\n      // we can destroy all the diffs and the task itself because it has never been committed to the project\n      const project = await this.belongsTo('project').load();\n      const [taskChangeSet, budgetChangeSet, quoteChangeSet, schedulingChangeSet] = await Promise.all([project.belongsTo('draftTaskChangeSet').load(), project.belongsTo('draftBudgetChangeSet').load(), project.belongsTo('draftQuoteChangeSet').load(), project.belongsTo('draftSchedulingChangeSet').load()]);\n\n      // delete the change\n      const actions = [];\n      if (taskChangeSet) actions.push(taskChangeSet.deleteChangeForTask(this));\n      if (budgetChangeSet) actions.push(budgetChangeSet.deleteChangeForTask(this));\n      if (quoteChangeSet) actions.push(quoteChangeSet.deleteChangeForTask(this));\n      if (schedulingChangeSet) actions.push(schedulingChangeSet.deleteChangeForTask(this));\n      await Promise.all(actions);\n\n      // delete the task\n      await this.destroyRecord();\n    }\n    // recursive function to get all the active children of a task\n    getAllActiveChildren(currentTask, allActiveChildrenArray = []) {\n      const children = currentTask.hasMany('children').value()?.toArray?.().filter(c => ['ACTIVE', 'DRAFT_CREATED'].includes(c.status)) || [];\n      children.forEach(child => {\n        allActiveChildrenArray.push(child);\n        this.getAllActiveChildren(child, allActiveChildrenArray);\n      });\n      return allActiveChildrenArray;\n    }\n\n    // recursive function to fetch profit margins from parent task or project or entity\n    getDefaultValues(task, fieldName) {\n      const parentTask = task.belongsTo('parent')?.value();\n      if (!parentTask) {\n        const project = task.belongsTo('project').value();\n        return project.effectiveProfitMargin[fieldName];\n      }\n      const parentTaskMargin = parentTask.belongsTo('profitMargin').value();\n      if (!parentTaskMargin) return this.getDefaultValues(parentTask, fieldName);\n      return parentTaskMargin?.[fieldName] != null ? {\n        value: parentTaskMargin?.[fieldName],\n        type: parentTaskMargin?.profitType || null,\n        route: 'entity.builda-price.projects.project.tasks.task.settings',\n        model: parentTask.id\n      } : this.getDefaultValues(parentTask, fieldName);\n    }\n    getDefaultPurchasesGlAccount(task) {\n      const parentTask = task.belongsTo('parent')?.value();\n      if (!parentTask) {\n        const project = task.belongsTo('project').value();\n        return project.effectivePurchasesGlAccount;\n      }\n      const parentTaskGlAccount = parentTask.belongsTo('purchasesGlAccount').value();\n      if (!parentTaskGlAccount) return this.getDefaultPurchasesGlAccount(parentTask);\n      return parentTaskGlAccount;\n    }\n    getDefaultSalesGlAccount(task) {\n      const parentTask = task.belongsTo('parent')?.value();\n      if (!parentTask) {\n        const project = task.belongsTo('project').value();\n        return project.effectiveSalesGlAccount;\n      }\n      const parentTaskGlAccount = parentTask.belongsTo('salesGlAccount').value();\n      if (!parentTaskGlAccount) return this.getDefaultSalesGlAccount(parentTask);\n      return parentTaskGlAccount;\n    }\n    getDefaultContractType(task) {\n      const parentTask = task.belongsTo('parent')?.value();\n      if (!parentTask) {\n        const project = task.belongsTo('project').value();\n        return project.contractType;\n      }\n      const parentTaskContractType = parentTask.contractType;\n      if (!parentTaskContractType) return this.getDefaultContractType(parentTask);\n      return parentTaskContractType;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"contractType\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"path\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"taskType\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"timesheetStatus\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"isSchedulingEnabled\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"isComplete\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"workerTaskAttributes\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"userTaskAttributes\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"children\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"parent\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"purchasesGlAccount\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"salesGlAccount\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"profitMargin\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"attachments\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"taskProducts\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"linkTasksToStagePayments\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"allAttachments\", [_dec21], Object.getOwnPropertyDescriptor(_class2.prototype, \"allAttachments\"), _class2.prototype), _class2);\n});","define(\"portal/models/timesheet-note\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('boolean'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"body\", _descriptor, this);\n      _initializerDefineProperty(this, \"adminNote\", _descriptor2, this);\n      _initializerDefineProperty(this, \"actionStatus\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dayLocked\", _descriptor4, this);\n      _initializerDefineProperty(this, \"date\", _descriptor5, this);\n      _initializerDefineProperty(this, \"worker\", _descriptor6, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"body\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"adminNote\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"actionStatus\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"dayLocked\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"date\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/timesheet-status\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string', {\n    defaultValue: 'accepted'\n  }), _dec5 = (0, _model.attr)('boolean'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.attr)('date'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      // Rels/attr that link this status to a set of timesheets\n      _initializerDefineProperty(this, \"worker\", _descriptor, this);\n      _initializerDefineProperty(this, \"project\", _descriptor2, this);\n      _initializerDefineProperty(this, \"date\", _descriptor3, this);\n      // Attrs\n      _initializerDefineProperty(this, \"status\", _descriptor4, this);\n      // enum (pending, accepted status;\n      _initializerDefineProperty(this, \"didEdit\", _descriptor5, this);\n      _initializerDefineProperty(this, \"editNote\", _descriptor6, this);\n      // Extra, deterministic relationship (never set this)\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor8, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor9, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"date\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"didEdit\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"editNote\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/timesheet\", [\"exports\", \"@ember-data/model\", \"@glimmer/tracking\", \"@ember/object\", \"portal/models/base-model\"], function (_exports, _model, _tracking, _object, _baseModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"portal/models/base-model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('date'), _dec2 = (0, _model.attr)('date'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: 'timesheets'\n  }), _dec5 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec6 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: null\n  }), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec8 = (0, _model.attr)('number'), _dec9 = (0, _object.computed)('duration'), _dec0 = (0, _model.attr)('number'), _dec1 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec10 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec11 = (0, _model.attr)('string'), _dec12 = (0, _model.attr)('boolean'), _dec13 = (0, _model.attr)('string'), _dec14 = (0, _model.attr)('string'), _dec15 = (0, _object.computed)('chargeOutRate', 'costRate', 'currentChargeOutRate', 'hours', 'payRate'), _class2 = class _class2 extends _baseModel.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor2, this);\n      _initializerDefineProperty(this, \"date\", _descriptor3, this);\n      _initializerDefineProperty(this, \"worker\", _descriptor4, this);\n      _initializerDefineProperty(this, \"project\", _descriptor5, this);\n      _initializerDefineProperty(this, \"task\", _descriptor6, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n      /**\n       * Duration stored as the number of minutes of the timesheet.\n       * This should usually be an integer.\n       */\n      _initializerDefineProperty(this, \"duration\", _descriptor8, this);\n      _initializerDefineProperty(this, \"payRate\", _descriptor9, this);\n      _initializerDefineProperty(this, \"chargeOutRate\", _descriptor0, this);\n      _initializerDefineProperty(this, \"costRate\", _descriptor1, this);\n      _initializerDefineProperty(this, \"note\", _descriptor10, this);\n      _initializerDefineProperty(this, \"reported\", _descriptor11, this);\n      _initializerDefineProperty(this, \"xeroTimesheetLineId\", _descriptor12, this);\n      _initializerDefineProperty(this, \"actionStatus\", _descriptor13, this);\n      // Volatile attributes\n      _initializerDefineProperty(this, \"currentChargeOutRate\", _descriptor14, this);\n    }\n    get hours() {\n      return this.duration / 60;\n    }\n    set hours(valueInHours) {\n      (0, _object.set)(this, 'duration', valueInHours * 60);\n      return valueInHours;\n    }\n    get totals() {\n      const hours = this.hours; // Use direct property access\n      const payRate = this.payRate;\n      const costRate = this.costRate;\n      const chargeOutRate = this.chargeOutRate;\n      const currentChargeOutRate = this.currentChargeOutRate;\n      return {\n        payTotal: payRate * hours,\n        costTotal: costRate * hours,\n        chargeOutTotal: chargeOutRate * hours,\n        currentChargeOutRateTotal: currentChargeOutRate * hours\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"date\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"duration\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"hours\", [_dec9], Object.getOwnPropertyDescriptor(_class2.prototype, \"hours\"), _class2.prototype), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"payRate\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"chargeOutRate\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"costRate\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"note\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"reported\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"xeroTimesheetLineId\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"actionStatus\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"currentChargeOutRate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class2.prototype, \"totals\", [_dec15], Object.getOwnPropertyDescriptor(_class2.prototype, \"totals\"), _class2.prototype), _class2);\n});","define(\"portal/models/user-attachment-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('attachment', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('user-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"user\", _descriptor2, this);\n      _initializerDefineProperty(this, \"attachment\", _descriptor3, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"attachment\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/user-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('boolean'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attribute\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"deprecated\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"deprecated\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/user-entity-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: 'entityAttributes'\n  }), _dec3 = (0, _model.belongsTo)('user-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"user\", _descriptor2, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/user-project-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('user-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"user\", _descriptor2, this);\n      _initializerDefineProperty(this, \"project\", _descriptor3, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/user-task-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: 'userTaskAttributes'\n  }), _dec4 = (0, _model.belongsTo)('user-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"user\", _descriptor2, this);\n      _initializerDefineProperty(this, \"task\", _descriptor3, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/user-worker-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('user-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"user\", _descriptor2, this);\n      _initializerDefineProperty(this, \"worker\", _descriptor3, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/user\", [\"exports\", \"@ember/object\", \"@ember-data/model\", \"portal/utils/email-validator\", \"@ember/service\", \"portal/utils/get-default-language\", \"portal/utils/collection-to-array\"], function (_exports, _object, _model, _emailValidator, _service, _getDefaultLanguage, _collectionToArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember-data/model\",0,\"portal/utils/email-validator\",0,\"@ember/service\",0,\"portal/utils/get-default-language\",0,\"portal/utils/collection-to-array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string', {\n    defaultValue: ''\n  }), _dec2 = (0, _model.attr)('string', {\n    defaultValue: ''\n  }), _dec3 = (0, _model.attr)('string', {\n    defaultValue: ''\n  }), _dec4 = (0, _model.attr)('string', {\n    defaultValue: ''\n  }), _dec5 = (0, _model.attr)('string', {\n    defaultValue: (0, _getDefaultLanguage.getDefaultUserOrWorkerLanguage)()\n  }), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string', {\n    defaultValue: 'user'\n  }), _dec8 = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec9 = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec0 = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec1 = (0, _model.attr)('date'), _dec10 = (0, _model.attr)('date'), _dec11 = (0, _model.attr)('date'), _dec12 = (0, _model.attr)('array'), _dec13 = (0, _model.hasMany)('link-user-to-entity-group', {\n    async: true,\n    inverse: 'user'\n  }), _dec14 = (0, _model.hasMany)('link-user-to-pricing-role', {\n    async: true,\n    inverse: 'user'\n  }), _dec15 = (0, _model.hasMany)('user-entity-attribute', {\n    async: true,\n    inverse: 'user'\n  }), _dec16 = (0, _model.hasMany)('user-project-attribute', {\n    async: true,\n    inverse: null\n  }), _dec17 = (0, _model.hasMany)('user-task-attribute', {\n    async: true,\n    inverse: null\n  }), _dec18 = (0, _model.hasMany)('user-worker-attribute', {\n    async: true,\n    inverse: null\n  }), _dec19 = (0, _model.hasMany)('user-attachment-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"firstName\", _descriptor4, this);\n      _initializerDefineProperty(this, \"lastName\", _descriptor5, this);\n      _initializerDefineProperty(this, \"email\", _descriptor6, this);\n      _initializerDefineProperty(this, \"phoneNumber\", _descriptor7, this);\n      _initializerDefineProperty(this, \"language\", _descriptor8, this);\n      _initializerDefineProperty(this, \"password\", _descriptor9, this);\n      _initializerDefineProperty(this, \"role\", _descriptor0, this);\n      _initializerDefineProperty(this, \"hasAcceptedTerms\", _descriptor1, this);\n      _initializerDefineProperty(this, \"mustResetPassword\", _descriptor10, this);\n      _initializerDefineProperty(this, \"canAccessPortal\", _descriptor11, this);\n      _initializerDefineProperty(this, \"lastLoginDate\", _descriptor12, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor13, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor14, this);\n      _initializerDefineProperty(this, \"adminFeatures\", _descriptor15, this);\n      _initializerDefineProperty(this, \"entityGroups\", _descriptor16, this);\n      _initializerDefineProperty(this, \"pricingRoles\", _descriptor17, this);\n      _initializerDefineProperty(this, \"entityAttributes\", _descriptor18, this);\n      _initializerDefineProperty(this, \"projectAttributes\", _descriptor19, this);\n      _initializerDefineProperty(this, \"taskAttributes\", _descriptor20, this);\n      _initializerDefineProperty(this, \"workerAttributes\", _descriptor21, this);\n      _initializerDefineProperty(this, \"attachmentAttributes\", _descriptor22, this);\n    }\n    get name() {\n      return `${this.firstName} ${this.lastName} - ${this.email}`;\n    }\n    get fullName() {\n      return `${this.firstName} ${this.lastName || ''}`.trim();\n    }\n\n    /* permissions */\n    get pricingRole() {\n      // you can only access this property when an entity is selected\n      if (!this.sessionData.entity) return undefined;\n\n      // if you're an admin or entity admin, you get the entity admin role\n      if (this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin')) {\n        const adminRole = this.sessionData.entity?.hasMany('pricingConnection').value()[0];\n        if (adminRole) return adminRole;\n      }\n\n      // otherwise find a pricing role you have for this entity\n      const activeRole = this.hasMany('pricingRoles').value()?.find(role =>\n      // this can be passed proxy objects so we need to use old school getters\n      role.belongsTo('entity').id() === (0, _object.get)(this, 'sessionData.entity.id'));\n      return activeRole;\n    }\n    _getEntityAttributes(entityId) {\n      // using old school getters here fixed an issue when saving on the profile page\n      const entityAttributes = (0, _collectionToArray.default)((0, _object.get)(this, 'entityAttributes'));\n      const entitiesAttributes = entityAttributes.filter(\n      // this can be passed proxy objects so we need to use old school getters\n      ea => (0, _object.get)(ea, 'entity.id') === entityId);\n      const attributes = entitiesAttributes.map(ea => ea.belongsTo('attribute').id());\n      return attributes;\n    }\n    _getProjectAttributes(projectId) {\n      // using old school getters here fixed an issue when saving on the profile page\n      const projectAttributes = (0, _collectionToArray.default)((0, _object.get)(this, 'projectAttributes'));\n      const projectsAttributes = projectAttributes.filter(\n      // this can be passed proxy objects so we need to use old school getters\n      ea => ea.belongsTo('project').id() === projectId);\n      const attributes = projectsAttributes.map(a => a.belongsTo('attribute').id());\n      return attributes;\n    }\n    _getTaskAttributes(taskId) {\n      // using old school getters here fixed an issue when saving on the profile page\n      const taskAttributes = (0, _collectionToArray.default)((0, _object.get)(this, 'taskAttributes'));\n      const tasksAttributes = taskAttributes.filter(\n      // this can be passed proxy objects so we need to use old school getters\n      ea => ea.belongsTo('task').id() === taskId);\n      const attributes = tasksAttributes.map(a => a.belongsTo('attribute').id());\n      return attributes;\n    }\n    _getWorkerAttributes(workerId) {\n      // using old school getters here fixed an issue when saving on the profile page\n      const workerAttributes = (0, _collectionToArray.default)((0, _object.get)(this, 'workerAttributes'));\n      const workersAttributes = workerAttributes.filter(\n      // this can be passed proxy objects so we need to use old school getters\n      ea => ea.belongsTo('worker').id() === workerId);\n      const attributes = workersAttributes.map(a => a.belongsTo('attribute').id());\n      return attributes;\n    }\n    includesSomeClaimsAboutEntity(entityId = '', ...checks) {\n      if (typeof entityId !== 'string') throw new Error('You must pass an id to includesSomeClaimsAboutEntity');\n      const attributes = this._getEntityAttributes(entityId);\n      return checks.some(c => attributes.includes(c));\n    }\n    includesClaimsAboutEntity(entityId = '', ...checks) {\n      if (typeof entityId !== 'string') throw new Error('You must pass an id to includesClaimsAboutEntity');\n      const attributes = this._getEntityAttributes(entityId);\n      return checks.every(c => attributes.includes(c));\n    }\n    excludesSomeClaimsAboutEntity(entityId = '', ...checks) {\n      if (typeof entityId !== 'string') throw new Error('You must pass an id to excludesSomeClaimsAboutEntity');\n      const attributes = this._getEntityAttributes(entityId);\n      return !checks.some(c => attributes.includes(c));\n    }\n    excludesClaimsAboutEntity(entityId = '', ...checks) {\n      if (typeof entityId !== 'string') throw new Error('You must pass an id to excludesClaimsAboutEntity');\n      const attributes = this._getEntityAttributes(entityId);\n      return checks.every(c => !attributes.includes(c));\n    }\n    includesSomeClaimsAboutProject(projectId = '', ...checks) {\n      if (typeof projectId !== 'string') throw new Error('You must pass an id to includesSomeClaimsAboutProject');\n      const attributes = this._getProjectAttributes(projectId);\n      return checks.some(c => attributes.includes(c));\n    }\n    includesClaimsAboutProject(projectId = '', ...checks) {\n      if (typeof projectId !== 'string') throw new Error('You must pass an id to includesClaimsAboutProject');\n      const attributes = this._getProjectAttributes(projectId);\n      return checks.every(c => attributes.includes(c));\n    }\n    excludesSomeClaimsAboutProject(projectId = '', ...checks) {\n      if (typeof projectId !== 'string') throw new Error('You must pass an id to excludesSomeClaimsAboutProject');\n      const attributes = this._getProjectAttributes(projectId);\n      return !checks.some(c => attributes.includes(c));\n    }\n    excludesClaimsAboutProject(projectId = '', ...checks) {\n      if (typeof projectId !== 'string') throw new Error('You must pass an id to excludesClaimsAboutProject');\n      const attributes = this._getProjectAttributes(projectId);\n      return checks.every(c => !attributes.includes(c));\n    }\n    includesSomeClaimsAboutTask(taskId = '', ...checks) {\n      if (typeof taskId !== 'string') throw new Error('You must pass an id to includesSomeClaimsAboutTask');\n      const taskIds = [];\n      const handleTask = taskId => {\n        taskIds.push(taskId);\n        const task = this.store.peekRecord('task', taskId);\n        if (task?.belongsTo('parent').id()) handleTask(task.belongsTo('parent').id());\n      };\n      handleTask(taskId);\n      const attributes = taskIds.map(taskId => this._getTaskAttributes(taskId)).flat();\n      return checks.some(c => attributes.includes(c));\n    }\n    includesClaimsAboutTask(taskId = '', ...checks) {\n      if (typeof taskId !== 'string') throw new Error('You must pass an id to includesSomeClaimsAboutTask');\n      const taskIds = [];\n      const handleTask = taskId => {\n        taskIds.push(taskId);\n        const task = this.store.peekRecord('task', taskId);\n        if (task?.belongsTo('parent').id()) handleTask(task.belongsTo('parent').id());\n      };\n      handleTask(taskId);\n      const attributes = taskIds.map(taskId => this._getTaskAttributes(taskId)).flat();\n      return checks.every(c => attributes.includes(c));\n    }\n    excludesSomeClaimsAboutTask(taskId = '', ...checks) {\n      if (typeof taskId !== 'string') throw new Error('You must pass an id to excludesSomeClaimsAboutTask');\n      const attributes = this._getTaskAttributes(taskId);\n      return !checks.some(c => attributes.includes(c));\n    }\n    excludesClaimsAboutTask(taskId = '', ...checks) {\n      if (typeof taskId !== 'string') throw new Error('You must pass an id to excludesClaimsAboutTask');\n      const attributes = this._getTaskAttributes(taskId);\n      return checks.every(c => !attributes.includes(c));\n    }\n    includesSomeClaimsAboutWorker(workerId = '', ...checks) {\n      if (typeof workerId !== 'string') throw new Error('You must pass an id to includesSomeClaimsAboutWorker');\n      const attributes = this._getWorkerAttributes(workerId);\n      return checks.some(c => attributes.includes(c));\n    }\n    includesClaimsAboutWorker(workerId = '', ...checks) {\n      if (typeof workerId !== 'string') throw new Error('You must pass an id to includesClaimsAboutWorker');\n      const attributes = this._getWorkerAttributes(workerId);\n      return checks.every(c => attributes.includes(c));\n    }\n    excludesSomeClaimsAboutWorker(workerId = '', ...checks) {\n      if (typeof workerId !== 'string') throw new Error('You must pass an id to excludesSomeClaimsAboutWorker');\n      const attributes = this._getWorkerAttributes(workerId);\n      return !checks.some(c => attributes.includes(c));\n    }\n    excludesClaimsAboutWorker(workerId = '', ...checks) {\n      if (typeof workerId !== 'string') throw new Error('You must pass an id to excludesClaimsAboutWorker');\n      const attributes = this._getWorkerAttributes(workerId);\n      return checks.every(c => !attributes.includes(c));\n    }\n    get isValid() {\n      return Boolean((0, _object.get)(this, 'firstName.length')) && Boolean((0, _object.get)(this, 'lastName.length')) && (0, _emailValidator.default)((0, _object.get)(this, 'email'));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"firstName\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"lastName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"email\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"phoneNumber\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"language\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"password\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"role\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"hasAcceptedTerms\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"mustResetPassword\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"canAccessPortal\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"lastLoginDate\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"adminFeatures\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"entityGroups\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"pricingRoles\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"entityAttributes\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"projectAttributes\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"taskAttributes\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"workerAttributes\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"attachmentAttributes\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/worker-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('boolean'), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"attribute\", _descriptor, this);\n      _initializerDefineProperty(this, \"description\", _descriptor2, this);\n      _initializerDefineProperty(this, \"deprecated\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"description\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"deprecated\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/worker-entity-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('worker-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"worker\", _descriptor2, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor3, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/worker-job-allocation\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"project\", _descriptor, this);\n      _initializerDefineProperty(this, \"worker\", _descriptor2, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor3, this);\n      _initializerDefineProperty(this, \"chargeOutRate\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"chargeOutRate\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/worker-project-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('project', {\n    async: true,\n    inverse: null\n  }), _dec4 = (0, _model.belongsTo)('worker-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"worker\", _descriptor2, this);\n      _initializerDefineProperty(this, \"project\", _descriptor3, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"project\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/worker-task-attribute\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec2 = (0, _model.belongsTo)('worker', {\n    async: true,\n    inverse: null\n  }), _dec3 = (0, _model.belongsTo)('task', {\n    async: true,\n    inverse: 'workerTaskAttributes'\n  }), _dec4 = (0, _model.belongsTo)('worker-attribute', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"entity\", _descriptor, this);\n      _initializerDefineProperty(this, \"worker\", _descriptor2, this);\n      _initializerDefineProperty(this, \"task\", _descriptor3, this);\n      _initializerDefineProperty(this, \"attribute\", _descriptor4, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"worker\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"task\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"attribute\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/worker\", [\"exports\", \"@ember/object\", \"@ember-data/model\", \"@glimmer/tracking\", \"portal/utils/get-default-language\", \"portal/utils/collection-to-array\"], function (_exports, _object, _model, _tracking, _getDefaultLanguage, _collectionToArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember-data/model\",0,\"@glimmer/tracking\",0,\"portal/utils/get-default-language\",0,\"portal/utils/collection-to-array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('date'), _dec4 = (0, _model.attr)(), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('string'), _dec1 = (0, _model.attr)('string'), _dec10 = (0, _model.attr)('string', {\n    defaultValue: (0, _getDefaultLanguage.getDefaultUserOrWorkerLanguage)()\n  }), _dec11 = (0, _model.attr)('string'), _dec12 = (0, _model.attr)('string'), _dec13 = (0, _model.attr)('string'), _dec14 = (0, _model.attr)('string'), _dec15 = (0, _model.attr)('string'), _dec16 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec17 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec18 = (0, _model.attr)('number', {\n    defaultValue: 0\n  }), _dec19 = (0, _model.attr)('boolean', {\n    defaultValue: true\n  }), _dec20 = (0, _model.attr)('boolean', {\n    defaultValue: false\n  }), _dec21 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _dec22 = (0, _model.hasMany)('worker-entity-attribute', {\n    async: true,\n    inverse: null\n  }), _dec23 = (0, _model.hasMany)('worker-project-attribute', {\n    async: true,\n    inverse: null\n  }), _dec24 = (0, _model.hasMany)('worker-task-attribute', {\n    async: true,\n    inverse: null\n  }), _dec25 = (0, _model.belongsTo)('xero-employee', {\n    async: true,\n    inverse: null\n  }), _dec26 = (0, _model.belongsTo)('quickbooks-employee', {\n    async: true,\n    inverse: null\n  }), _dec27 = (0, _model.belongsTo)('xero-earnings-rate', {\n    async: true,\n    inverse: null\n  }), _dec28 = (0, _model.hasMany)('timesheet', {\n    async: true,\n    inverse: 'worker'\n  }), _dec29 = (0, _model.belongsTo)('user', {\n    async: true,\n    inverse: null\n  }), _dec30 = (0, _model.belongsTo)('labour-cost-calculator', {\n    async: true,\n    inverse: 'usedBy'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      // Volatile attributes\n      _initializerDefineProperty(this, \"currentChargeOutRate\", _descriptor, this);\n      _initializerDefineProperty(this, \"firstName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"lastName\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dateOfBirth\", _descriptor4, this);\n      _initializerDefineProperty(this, \"address\", _descriptor5, this);\n      _initializerDefineProperty(this, \"phoneNumber\", _descriptor6, this);\n      _initializerDefineProperty(this, \"emergencyContactNameOne\", _descriptor7, this);\n      _initializerDefineProperty(this, \"emergencyContactRelationshipOne\", _descriptor8, this);\n      _initializerDefineProperty(this, \"emergencyContactPhoneNumberOne\", _descriptor9, this);\n      _initializerDefineProperty(this, \"emergencyContactNameTwo\", _descriptor0, this);\n      _initializerDefineProperty(this, \"emergencyContactRelationshipTwo\", _descriptor1, this);\n      _initializerDefineProperty(this, \"emergencyContactPhoneNumberTwo\", _descriptor10, this);\n      _initializerDefineProperty(this, \"language\", _descriptor11, this);\n      _initializerDefineProperty(this, \"email\", _descriptor12, this);\n      _initializerDefineProperty(this, \"authCode\", _descriptor13, this);\n      _initializerDefineProperty(this, \"smartPayrollEmployeeCode\", _descriptor14, this);\n      _initializerDefineProperty(this, \"smartPayrollEmployeeDepartmentCode\", _descriptor15, this);\n      _initializerDefineProperty(this, \"keypayEmployeeCode\", _descriptor16, this);\n      _initializerDefineProperty(this, \"payRate\", _descriptor17, this);\n      _initializerDefineProperty(this, \"chargeOutRate\", _descriptor18, this);\n      _initializerDefineProperty(this, \"costRate\", _descriptor19, this);\n      _initializerDefineProperty(this, \"isActive\", _descriptor20, this);\n      _initializerDefineProperty(this, \"isContractor\", _descriptor21, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor22, this);\n      _initializerDefineProperty(this, \"entityAttributes\", _descriptor23, this);\n      _initializerDefineProperty(this, \"projectAttributes\", _descriptor24, this);\n      _initializerDefineProperty(this, \"taskAttributes\", _descriptor25, this);\n      _initializerDefineProperty(this, \"xeroEmployee\", _descriptor26, this);\n      _initializerDefineProperty(this, \"quickbooksEmployee\", _descriptor27, this);\n      _initializerDefineProperty(this, \"xeroEarningsRate\", _descriptor28, this);\n      _initializerDefineProperty(this, \"timesheets\", _descriptor29, this);\n      _initializerDefineProperty(this, \"user\", _descriptor30, this);\n      _initializerDefineProperty(this, \"costCalculatorUsed\", _descriptor31, this);\n    }\n    _getEntityAttributes(entityId) {\n      return (0, _collectionToArray.default)(this.entityAttributes).filter(ea => ea.belongsTo('entity').id() === entityId).map(ea => ea.belongsTo('attribute').id());\n    }\n    _getProjectAttributes(projectId) {\n      return (0, _collectionToArray.default)(this.projectAttributes).filter(pa => pa.belongsTo('project').id() === projectId).map(pa => pa.belongsTo('attribute').id());\n    }\n    _getTaskAttributes(taskId) {\n      return (0, _collectionToArray.default)(this.taskAttributes).filter(ta => ta.belongsTo('task').id() === taskId).map(ta => ta.belongsTo('attribute').id());\n    }\n    includesSomeClaimsAboutEntity(entityId = '', ...checks) {\n      if (typeof entityId !== 'string') throw new Error('You must pass an id to includesSomeClaimsAboutEntity');\n      const attributes = this._getEntityAttributes(entityId);\n      return checks.some(c => attributes.includes(c));\n    }\n    includesClaimsAboutEntity(entityId = '', ...checks) {\n      if (typeof entityId !== 'string') throw new Error('You must pass an id to includesClaimsAboutEntity');\n      const attributes = this._getEntityAttributes(entityId);\n      return checks.every(c => attributes.includes(c));\n    }\n    excludesSomeClaimsAboutEntity(entityId = '', ...checks) {\n      if (typeof entityId !== 'string') throw new Error('You must pass an id to excludesSomeClaimsAboutEntity');\n      const attributes = this._getEntityAttributes(entityId);\n      return !checks.some(c => attributes.includes(c));\n    }\n    excludesClaimsAboutEntity(entityId = '', ...checks) {\n      if (typeof entityId !== 'string') throw new Error('You must pass an id to excludesClaimsAboutEntity');\n      const attributes = this._getEntityAttributes(entityId);\n      return checks.every(c => !attributes.includes(c));\n    }\n    includesSomeClaimsAboutProject(projectId = '', ...checks) {\n      if (typeof projectId !== 'string') throw new Error('You must pass an id to includesSomeClaimsAboutProject');\n      const attributes = this._getProjectAttributes(projectId);\n      return checks.some(c => attributes.includes(c));\n    }\n    includesClaimsAboutProject(projectId = '', ...checks) {\n      if (typeof projectId !== 'string') throw new Error('You must pass an id to includesClaimsAboutProject');\n      const attributes = this._getProjectAttributes(projectId);\n      return checks.every(c => attributes.includes(c));\n    }\n    excludesSomeClaimsAboutProject(projectId = '', ...checks) {\n      if (typeof projectId !== 'string') throw new Error('You must pass an id to excludesSomeClaimsAboutProject');\n      const attributes = this._getProjectAttributes(projectId);\n      return !checks.some(c => attributes.includes(c));\n    }\n    excludesClaimsAboutProject(projectId = '', ...checks) {\n      if (typeof projectId !== 'string') throw new Error('You must pass an id to excludesClaimsAboutProject');\n      const attributes = this._getProjectAttributes(projectId);\n      return checks.every(c => !attributes.includes(c));\n    }\n    includesSomeClaimsAboutTask(taskId = '', ...checks) {\n      if (typeof taskId !== 'string') throw new Error('You must pass an id to includesSomeClaimsAboutTask');\n      const attributes = this._getTaskAttributes(taskId);\n      return checks.some(c => attributes.includes(c));\n    }\n    includesClaimsAboutTask(taskId = '', ...checks) {\n      if (typeof taskId !== 'string') throw new Error('You must pass an id to includesClaimsAboutTask');\n      const attributes = this._getTaskAttributes(taskId);\n      return checks.every(c => attributes.includes(c));\n    }\n    excludesSomeClaimsAboutTask(taskId = '', ...checks) {\n      if (typeof taskId !== 'string') throw new Error('You must pass an id to excludesSomeClaimsAboutTask');\n      const attributes = this._getTaskAttributes(taskId);\n      return !checks.some(c => attributes.includes(c));\n    }\n    excludesClaimsAboutTask(taskId = '', ...checks) {\n      if (typeof taskId !== 'string') throw new Error('You must pass an id to excludesClaimsAboutTask');\n      const attributes = this._getTaskAttributes(taskId);\n      return checks.every(c => !attributes.includes(c));\n    }\n    get fullName() {\n      return `${(0, _object.get)(this, 'firstName')} ${(0, _object.get)(this, 'lastName')}${(0, _object.get)(this, 'isActive') ? '' : ' (Inactive)'}`;\n    }\n    get searchString() {\n      return `${this.firstName}${this.lastName}${this.email}`;\n    }\n    calculateWorkForProject({\n      project,\n      task,\n      start,\n      end,\n      tasks\n    } = {}, timesheets = this.timesheets) {\n      // Apply filters\n      const filteredTimesheets = (0, _collectionToArray.default)(timesheets).filter(sheet => {\n        if ((0, _object.get)(sheet, 'worker.id') !== (0, _object.get)(this, 'id')) return false;\n        if (project && (0, _object.get)(project, 'id') !== (0, _object.get)(sheet, 'project.id')) return false;\n        if (task) {\n          if ((0, _object.get)(sheet, 'task.id') !== (0, _object.get)(task, 'id')) return false;\n        }\n        if (tasks) {\n          const taskActiveChildren = tasks.flatMap(task => (0, _object.get)(task, 'allActiveChildren'));\n          const tasksIds = taskActiveChildren.mapBy('id');\n          tasksIds.push(...tasks.map(task => (0, _object.get)(task, 'id')));\n          if (!tasksIds.includes((0, _object.get)(sheet, 'task.id'))) return false;\n        }\n        if (start && start > (0, _object.get)(sheet, 'date')) return false;\n        if (end && end < (0, _object.get)(sheet, 'date')) return false;\n        return true;\n      });\n\n      /*\n        The rate should be taken from the following places (in order):\n        1: The user set, current charge out rate\n        2: The charge out rate recorded with the timesheet\n        3: The default charge out rate for the user\n        */\n      const currentChargeOutRate = (0, _object.get)(this, 'currentChargeOutRate');\n      const defaultChargeOutRate = (0, _object.get)(this, 'chargeOutRate');\n      const totals = filteredTimesheets.reduce((totals, sheet) => {\n        const chargeOutRate = currentChargeOutRate != null ? currentChargeOutRate : (0, _object.get)(sheet, 'chargeOutRate') || defaultChargeOutRate;\n        return {\n          chargeOut: totals.chargeOut + (0, _object.get)(sheet, 'hours') * chargeOutRate,\n          hours: totals.hours + (0, _object.get)(sheet, 'hours'),\n          cost: totals.cost + (0, _object.get)(sheet, 'hours') * (0, _object.get)(sheet, 'costRate'),\n          pay: totals.pay + (0, _object.get)(sheet, 'hours') * (0, _object.get)(sheet, 'payRate')\n        };\n      }, {\n        chargeOut: 0,\n        hours: 0,\n        cost: 0,\n        pay: 0\n      });\n      return {\n        ...totals,\n        filteredTimesheets\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"currentChargeOutRate\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"firstName\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"lastName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"dateOfBirth\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"address\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"phoneNumber\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"emergencyContactNameOne\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"emergencyContactRelationshipOne\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"emergencyContactPhoneNumberOne\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"emergencyContactNameTwo\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"emergencyContactRelationshipTwo\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"emergencyContactPhoneNumberTwo\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"language\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"email\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"authCode\", [_dec12], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"smartPayrollEmployeeCode\", [_dec13], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"smartPayrollEmployeeDepartmentCode\", [_dec14], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"keypayEmployeeCode\", [_dec15], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"payRate\", [_dec16], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"chargeOutRate\", [_dec17], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"costRate\", [_dec18], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"isActive\", [_dec19], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"isContractor\", [_dec20], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec21], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, \"entityAttributes\", [_dec22], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, \"projectAttributes\", [_dec23], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, \"taskAttributes\", [_dec24], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, \"xeroEmployee\", [_dec25], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, \"quickbooksEmployee\", [_dec26], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, \"xeroEarningsRate\", [_dec27], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, \"timesheets\", [_dec28], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor30 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_dec29], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor31 = _applyDecoratedDescriptor(_class2.prototype, \"costCalculatorUsed\", [_dec30], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/xero-connection\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: 'xeroConnection'\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"xeroCompanyId\", _descriptor, this);\n      _initializerDefineProperty(this, \"xeroCompanyName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"defaultInvoiceStatus\", _descriptor3, this);\n      _initializerDefineProperty(this, \"defaultCreditNoteStatus\", _descriptor4, this);\n      _initializerDefineProperty(this, \"defaultTimesheetStatus\", _descriptor5, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor6, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"xeroCompanyId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"xeroCompanyName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"defaultInvoiceStatus\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"defaultCreditNoteStatus\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"defaultTimesheetStatus\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/xero-earnings-rate\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _dec11, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('string'), _dec8 = (0, _model.attr)('string'), _dec9 = (0, _model.attr)('string'), _dec0 = (0, _model.attr)('boolean'), _dec1 = (0, _model.attr)('date'), _dec10 = (0, _model.attr)('date'), _dec11 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"xeroEarningsRateId\", _descriptor, this);\n      _initializerDefineProperty(this, \"name\", _descriptor2, this);\n      _initializerDefineProperty(this, \"earningsType\", _descriptor3, this);\n      _initializerDefineProperty(this, \"rateType\", _descriptor4, this);\n      _initializerDefineProperty(this, \"typeOfUnits\", _descriptor5, this);\n      _initializerDefineProperty(this, \"expenseAccountId\", _descriptor6, this);\n      _initializerDefineProperty(this, \"ratePerUnit\", _descriptor7, this);\n      _initializerDefineProperty(this, \"multipleOfOrdinaryEarningsRate\", _descriptor8, this);\n      _initializerDefineProperty(this, \"fixedAmount\", _descriptor9, this);\n      _initializerDefineProperty(this, \"currentRecord\", _descriptor0, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor1, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor10, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor11, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"xeroEarningsRateId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"name\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"earningsType\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"rateType\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"typeOfUnits\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"expenseAccountId\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"ratePerUnit\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"multipleOfOrdinaryEarningsRate\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"fixedAmount\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"currentRecord\", [_dec0], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec1], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec10], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec11], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/xero-employee\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('date'), _dec5 = (0, _model.attr)('string'), _dec6 = (0, _model.attr)('string'), _dec7 = (0, _model.attr)('date'), _dec8 = (0, _model.attr)('date'), _dec9 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"xeroEmployeeId\", _descriptor, this);\n      _initializerDefineProperty(this, \"firstName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"lastName\", _descriptor3, this);\n      _initializerDefineProperty(this, \"dateOfBirth\", _descriptor4, this);\n      _initializerDefineProperty(this, \"email\", _descriptor5, this);\n      _initializerDefineProperty(this, \"phoneNumber\", _descriptor6, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor8, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor9, this);\n    }\n    get name() {\n      return `${this.firstName} ${this.lastName}`;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"xeroEmployeeId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"firstName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"lastName\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"dateOfBirth\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"email\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"phoneNumber\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec8], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec9], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/models/xero-tracking-option\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _model.attr)('string'), _dec2 = (0, _model.attr)('string'), _dec3 = (0, _model.attr)('string'), _dec4 = (0, _model.attr)('string'), _dec5 = (0, _model.attr)('date'), _dec6 = (0, _model.attr)('date'), _dec7 = (0, _model.belongsTo)('entity', {\n    async: true,\n    inverse: null\n  }), _class2 = class _class2 extends _model.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"trackingOptionId\", _descriptor, this);\n      _initializerDefineProperty(this, \"trackingOptionName\", _descriptor2, this);\n      _initializerDefineProperty(this, \"trackingCategoryId\", _descriptor3, this);\n      _initializerDefineProperty(this, \"status\", _descriptor4, this);\n      _initializerDefineProperty(this, \"dateCreated\", _descriptor5, this);\n      _initializerDefineProperty(this, \"dateModified\", _descriptor6, this);\n      _initializerDefineProperty(this, \"entity\", _descriptor7, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"trackingOptionId\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"trackingOptionName\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"trackingCategoryId\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"status\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"dateCreated\", [_dec5], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"dateModified\", [_dec6], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_dec7], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/modifiers/basic-dropdown-trigger\", [\"exports\", \"ember-basic-dropdown/modifiers/basic-dropdown-trigger\"], function (_exports, _basicDropdownTrigger) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _basicDropdownTrigger.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-basic-dropdown/modifiers/basic-dropdown-trigger\"eaimeta@70e063a35619d71f\n});","define(\"portal/modifiers/bootstrap-tooltip\", [\"exports\", \"ember-modifier\", \"bootstrap\"], function (_exports, _emberModifier, _bootstrap) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-modifier\",0,\"bootstrap\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class BootstrapTooltipModifier extends _emberModifier.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"tooltip\", void 0);\n    }\n    modify(element, [content]) {\n      if (!this.tooltip) {\n        this.tooltip = new _bootstrap.Tooltip(element, {\n          title: content,\n          trigger: 'hover focus'\n        });\n        return;\n      }\n      element.setAttribute('data-bs-original-title', content);\n      if (this.tooltip) {\n        this.tooltip.setContent({\n          '.tooltip-inner': content\n        });\n      }\n    }\n    willRemove() {\n      this.tooltip?.dispose();\n    }\n  }\n  _exports.default = BootstrapTooltipModifier;\n});","define(\"portal/modifiers/did-insert\", [\"exports\", \"@ember/render-modifiers/modifiers/did-insert\"], function (_exports, _didInsert) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _didInsert.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember/render-modifiers/modifiers/did-insert\"eaimeta@70e063a35619d71f\n});","define(\"portal/modifiers/did-update\", [\"exports\", \"@ember/render-modifiers/modifiers/did-update\"], function (_exports, _didUpdate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _didUpdate.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember/render-modifiers/modifiers/did-update\"eaimeta@70e063a35619d71f\n});","define(\"portal/modifiers/on-key\", [\"exports\", \"ember-keyboard/modifiers/on-key\"], function (_exports, _onKey) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _onKey.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-keyboard/modifiers/on-key\"eaimeta@70e063a35619d71f\n});","define(\"portal/modifiers/style\", [\"exports\", \"ember-style-modifier/modifiers/style\"], function (_exports, _style) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _style.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-style-modifier/modifiers/style\"eaimeta@70e063a35619d71f\n});","define(\"portal/modifiers/will-destroy\", [\"exports\", \"@ember/render-modifiers/modifiers/will-destroy\"], function (_exports, _willDestroy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _willDestroy.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember/render-modifiers/modifiers/will-destroy\"eaimeta@70e063a35619d71f\n});","define(\"portal/resolver\", [\"exports\", \"ember-resolver\"], function (_exports, _emberResolver) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberResolver.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-resolver\"eaimeta@70e063a35619d71f\n});","define(\"portal/router\", [\"exports\", \"@ember/routing/router\", \"portal/config/environment\"], function (_exports, _router, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.routerMap = _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/router\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class Router extends _router.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"location\", _environment.default.locationType);\n      _defineProperty(this, \"rootURL\", _environment.default.rootURL);\n    }\n  }\n\n  /* eslint-disable max-nested-callbacks, array-callback-return */\n  const routerMap = function () {\n    this.route('login');\n    this.route('login-redirect');\n    this.route('logout-redirect');\n    this.route('initiate-password-reset');\n    this.route('error');\n    this.route('reset-password');\n    this.route('terms-of-service');\n    this.route('entity-access-denied');\n    this.route('admin', function () {\n      this.route('entities', function () {\n        this.route('entity', {\n          path: '/:entity_id'\n        });\n      });\n      this.route('announcements', function () {\n        this.route('announcement', {\n          path: '/:announcement_id'\n        });\n      });\n      this.route('licensees', function () {\n        this.route('licensee', {\n          path: '/:licensee_id'\n        });\n      });\n      this.route('billing-report');\n      this.route('demo-entity');\n    });\n    this.route('entity', {\n      path: '/:id'\n    }, function () {\n      this.route('setup-incomplete');\n      this.route('settings', function () {\n        this.route('company');\n        this.route('profile');\n        this.route('integrations');\n        this.route('people', function () {\n          this.route('users', function () {\n            this.route('user', {\n              path: '/:user_id'\n            });\n          });\n          this.route('clients', function () {\n            this.route('client', {\n              path: '/:client_id'\n            });\n          });\n          this.route('subcontractors', function () {\n            this.route('subcontractor', {\n              path: '/:subcontractor_id'\n            });\n          });\n          this.route('workers', function () {\n            this.route('worker', {\n              path: '/:worker_id'\n            });\n          });\n        });\n        this.route('contacts', function () {\n          this.route('contact', {\n            path: '/:contact_id'\n          }, function () {});\n        });\n        this.route('chart-of-accounts', function () {\n          this.route('chart-of-account', {\n            path: '/:chart_of_account_id'\n          }, function () {});\n        });\n        this.route('auto-mapping');\n        this.route('estimates', function () {\n          this.route('embedded-page', {\n            path: '/:page'\n          });\n        });\n      });\n      this.route('financials', function () {\n        this.route('dashboard');\n        this.route('import', function () {\n          this.route('start');\n          this.route('done');\n          this.route('data', {\n            path: '/:step'\n          });\n        });\n        this.route('reports', function () {\n          this.route('general-ledger', function () {\n            this.route('itm-profit-and-loss');\n            this.route('profit-and-loss');\n            this.route('balance-sheet');\n            this.route('other-data');\n            this.route('personal-data');\n          });\n          this.route('kpis', function () {\n            this.route('kpi', {\n              path: '/:slug'\n            });\n          });\n          this.route('imports');\n        });\n        this.route('planning', function () {\n          this.route('strategies');\n        });\n        this.route('general');\n        this.route('chart-of-accounts');\n        this.route('kpis', function () {\n          this.route('kpi', {\n            path: '/:slug'\n          });\n        });\n        this.route('groups', function () {\n          this.route('membership');\n          this.route('access');\n          this.route('order');\n        });\n      });\n      this.route('module-dashboard');\n      this.route('disabled');\n      this.route('builda-price', function () {\n        this.route('dashboard', function () {});\n        this.route('projects', function () {\n          this.route('project', {\n            path: '/:project_id'\n          }, function () {\n            this.route('documents');\n            this.route('people', function () {\n              this.route('clients', function () {\n                this.route('client', {\n                  path: '/:client_id'\n                });\n              });\n              this.route('users', function () {\n                this.route('user', {\n                  path: '/:user_id'\n                });\n              });\n              this.route('subcontractors', function () {\n                this.route('subcontractor', {\n                  path: '/:subcontractor_id'\n                });\n              });\n              this.route('workers', function () {\n                this.route('worker', {\n                  path: '/:worker_id'\n                });\n              });\n            });\n            this.route('stage-payments');\n            this.route('financials');\n            this.route('settings');\n            this.route('tasks', function () {\n              this.route('task', {\n                path: '/:task_id'\n              }, function () {\n                this.route('financials');\n                this.route('settings');\n                this.route('documents');\n                this.route('products');\n                this.route('people', function () {\n                  this.route('clients', function () {\n                    this.route('client', {\n                      path: '/:client_id'\n                    });\n                  });\n                  this.route('users', function () {\n                    this.route('user', {\n                      path: '/:user_id'\n                    });\n                  });\n                  this.route('subcontractors', function () {\n                    this.route('subcontractor', {\n                      path: '/:subcontractor_id'\n                    });\n                  });\n                  this.route('workers', function () {\n                    this.route('worker', {\n                      path: '/:worker_id'\n                    });\n                  });\n                });\n              });\n            });\n            this.route('estimates', function () {\n              this.route('estimate', {\n                path: '/:estimate_id'\n              }, function () {\n                this.mount('builda-price-client-addon', {\n                  path: '/'\n                });\n              });\n            });\n            this.route('health-and-safety', function () {\n              this.mount('oss-portal-addon', {\n                resetNamespace: true,\n                path: '/'\n              });\n            });\n            this.route('progress');\n            this.route('products');\n          });\n        });\n        this.route('scheduling', function () {\n          this.route('timeline', function () {});\n        });\n        this.route('operations', function () {\n          this.route('incoming', function () {\n            this.route('timesheets', function () {\n              this.route('timesheet');\n            });\n            this.route('bills', function () {\n              this.route('bill', {\n                path: '/:bill_id'\n              });\n            });\n            this.route('bills-legacy', function () {\n              this.route('bill', {\n                path: '/:bill_id'\n              });\n            });\n            this.route('invoices', function () {\n              this.route('invoice', {\n                path: '/:invoice_id'\n              });\n            });\n            this.route('statements');\n          });\n          this.route('outgoing', function () {\n            this.route('payroll', function () {});\n            this.route('report-builder', function () {\n              this.route('pdf', {\n                path: '/:pdf_data'\n              });\n              this.route('excel', {\n                path: '/:excel_data'\n              });\n              this.route('csv', {\n                path: '/:csv_data'\n              });\n            });\n            this.route('invoices', function () {\n              this.route('invoice', {\n                path: '/:invoice_id'\n              }, function () {});\n            });\n            this.route('purchase-orders', function () {\n              this.route('purchase-order', {\n                path: '/:purchase_order_id'\n              }, function () {});\n            });\n          });\n          this.route('documents', function () {\n            this.route('project-file', {\n              path: '/:project_id'\n            }, function () {\n              this.route('task-file', {\n                path: '/:task_id'\n              }, function () {});\n            });\n          });\n          this.route('products');\n        });\n        this.route('reports', function () {\n          this.route('projects', function () {\n            this.route('project', {\n              path: '/:project_id'\n            }, function () {\n              this.route('labour-hours', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('budget', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('quote', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('cost');\n              this.route('position', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('profit-margins', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('forecast-breakdown', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('chargeup', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('invoicing', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('cost-to-complete', function () {\n                this.route('task', {\n                  path: '/:task_id'\n                }, function () {});\n              });\n              this.route('access');\n              this.route('notes');\n            });\n          });\n          this.route('company', function () {\n            this.route('position');\n            this.route('labour-hours');\n            this.route('wip');\n            this.route('forecast-breakdown');\n            this.route('profit-margins');\n            this.route('invoicing');\n            this.route('notes');\n          });\n        });\n      });\n    });\n    this.route('embed', {\n      path: '/embed/:token'\n    }, function () {\n      this.route('timesheets', function () {\n        this.route('timesheet');\n      });\n      this.route('position');\n      this.route('notes');\n      this.route('labour-hours');\n      this.route('profit-margins');\n      this.route('documents', function () {\n        this.route('project-file', {\n          path: '/:project_id'\n        }, function () {\n          this.route('task-file', {\n            path: '/:task_id'\n          }, function () {});\n        });\n      });\n      this.route('scheduling');\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/scheduling\", [\"exports\", \"portal/routes/entity/builda-price/scheduling/timeline\"], function (_exports, _timeline) {\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/scheduling/timeline\"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 _timeline.default {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"controllerName\", 'entity/builda-price/scheduling/timeline');\n      _defineProperty(this, \"templateName\", 'entity/builda-price/scheduling/timeline');\n      _defineProperty(this, \"basePath\", 'embed.scheduling');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/embed/timesheets\", [\"exports\", \"portal/routes/entity/builda-price/operations/incoming/timesheets\"], function (_exports, _timesheets) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/incoming/timesheets\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _timesheets.default.extend({\n    controllerName: 'entity/builda-price/operations/incoming/timesheets',\n    templateName: 'entity/builda-price/operations/incoming/timesheets',\n    basePath: 'embed'\n  });\n});","define(\"portal/routes/embed/timesheets/timesheet\", [\"exports\", \"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet\"], function (_exports, _timesheet) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _timesheet.default.extend({\n    controllerName: 'entity/builda-price/operations/incoming/timesheets/timesheet',\n    templateName: 'entity/builda-price/operations/incoming/timesheets/timesheet',\n    basePath: 'embed'\n  });\n});","define(\"portal/routes/entity-loading\", [\"exports\", \"portal/routes/entity\", \"portal/utils/loading-route-from\"], function (_exports, _entity, _loadingRouteFrom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity\",0,\"portal/utils/loading-route-from\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _loadingRouteFrom.default)(_entity.default, 'entity');\n});","define(\"portal/routes/entity\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  function isLeavingSection(from, to) {\n    // if either side is missing, treat as not leaving\n    if (!from || !to) return false;\n\n    // ignore Ember \"loading\" states\n    if (from.localName?.includes('loading') || to.localName?.includes('loading')) return false;\n\n    // if we're on an .index route, use its parent as the \"section root\"\n    const sectionRoute = from.localName === 'index' ? from.parent : from;\n\n    // check ancestry: \"to.find\" walks up the route tree\n    // if we cannot find the base route anywhere in the \"to\" ancestry, we are leaving the section\n    const stillInSection = to.find(parentRoute => parentRoute.name === sectionRoute.name);\n    return !stillInSection;\n  }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n    }\n    async beforeModel() {\n      if (this.isDestroying || this.isDestroyed) return;\n      const {\n        id\n      } = this.paramsFor('entity');\n\n      // check if the user is authenticated\n      if (this.session.isDestroying || this.session.isDestroyed) return;\n      if (!this.session.isAuthenticated) {\n        // if user is not authenticated go to login\n        return this.router.transitionTo('login');\n      }\n      await this.sessionData.reloadApp(id);\n    }\n\n    // this will prevent unsaved changes from staying around when leaving a route\n    rollbackUnsavedChanges(transition) {\n      const shouldRollback = isLeavingSection(transition.from, transition.to);\n      if (!shouldRollback) return;\n      Object.keys(this.store._modelFactoryCache).forEach(modelName => {\n        this.store.peekAll(modelName).forEach(record => {\n          if (record?.hasDirtyAttributes) {\n            record.rollbackAttributes();\n          }\n        });\n      });\n    }\n\n    // lets the zendesk widget know which route we're on so it can offer articles\n    updateHelpCenter(transition) {\n      if (transition.to.name.startsWith('entity.') && !transition.to.name.includes('loading')) {\n        this.helpCenter.setLabels(...transition.to.name.split('.'));\n      }\n    }\n    onRouteWillChange(transition) {\n      if (!transition.to || transition.isAborted) return;\n      this.rollbackUnsavedChanges(transition);\n      this.updateHelpCenter(transition);\n    }\n    activate() {\n      this._onRouteWillChange = this.onRouteWillChange.bind(this);\n      this.router.on('routeWillChange', this._onRouteWillChange);\n    }\n    deactivate() {\n      if (this._onRouteWillChange) this.router.off('routeWillChange', this._onRouteWillChange);\n    }\n    changeEntity({\n      id\n    }) {\n      this.sessionData.changeEntity(id);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"changeEntity\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"changeEntity\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor3, this);\n    }\n    beforeModel() {\n      if (this.newFeatureFlags.excludesFeatureFlags('canUseBuildaPrice')) return this.router.transitionTo('entity');\n      if (this.newFeatureFlags.includesFeatureFlags('entityHasSupport')) this.helpCenter.showHelpCenter();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/dashboard/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const filter = {\n            entity: this.sessionData.entity.id,\n            status: 'OPEN'\n          };\n          const report = {\n            name: this.intl.t('common.Dashboard'),\n            doNotThrowErrorOnNoData: true,\n            subjects: []\n          };\n          if (this.newFeatureFlags.includesFeatureFlags('canUseProjectProgressReports')) report.subjects.push({\n            index: 1,\n            width: 4,\n            height: 2,\n            name: this.intl.t('entity.builda-price.dashboard.Forecast used'),\n            elementType: 'BIG_TEXT',\n            borderStyle: 'BORDER',\n            axes: {\n              label: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.report.The amount of your forecast used')\n              }]]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'projects',\n              filter\n            },\n            metrics: [[{\n              metric: 'FINANCIAL_PROGRESS_TOTAL'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseProjectBudgetReports') && this.newFeatureFlags.includesFeatureFlags('canUseProjectQuoteReports') && this.newFeatureFlags.includesFeatureFlags('canUseProjectCostReports')) report.subjects.push({\n            index: 2,\n            width: 4,\n            height: 2,\n            name: this.intl.t('entity.builda-price.dashboard.Current position'),\n            elementType: 'MULTI_GAUGE',\n            borderStyle: 'BORDER',\n            axes: {\n              x: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Budget')\n              }, {\n                subject: {\n                  resourceName: 'projects',\n                  filter\n                },\n                metric: 'BUDGET_TOTAL'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Quote')\n              }, {\n                subject: {\n                  resourceName: 'projects',\n                  filter\n                },\n                metric: 'QUOTE_TOTAL'\n              }]]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'projects',\n              filter\n            },\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.dashboard.Actual')\n            }, {\n              metric: 'COST_TOTAL'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseProjectBudgetReports')) report.subjects.push({\n            index: 3,\n            width: 4,\n            height: 2,\n            name: this.intl.t('entity.builda-price.dashboard.Forecast position'),\n            elementType: 'MULTI_GAUGE',\n            borderStyle: 'BORDER',\n            axes: {\n              x: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Budget')\n              }, {\n                subject: {\n                  resourceName: 'projects',\n                  filter\n                },\n                metric: 'BUDGET_TOTAL'\n              }]]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'projects',\n              filter\n            },\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.dashboard.Forecast')\n            }, {\n              subject: {\n                resourceName: 'projects',\n                filter\n              },\n              metric: 'FORECAST_BUDGET'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseTimesheets')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent timesheets'),\n            index: 4,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Date')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Worker'),\n                classes: [{\n                  class: 'pe-1'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'ps-0'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Task')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.dashboard.Duration'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'timesheets',\n              filter: {\n                entity: this.sessionData.entity.id,\n                date: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'date',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'date',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.timesheets.timesheet',\n                queryParams: {\n                  date: {\n                    key: 'date'\n                  },\n                  worker: {\n                    key: 'worker'\n                  }\n                }\n              }\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'worker.firstName',\n              classes: [{\n                class: 'pe-1'\n              }]\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'worker.lastName',\n              classes: [{\n                class: 'ps-0'\n              }]\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'task.name'\n            }, {\n              metric: 'TIMESHEET_DURATION',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseBills')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent bills'),\n            index: 5,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: false,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Reference')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.From')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Issue date')\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'bills',\n              filter: {\n                entity: this.sessionData.entity.id,\n                dateCreated: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'issueDate',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'reference',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.bills.bill',\n                modelKeys: ['_id']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'issuer'\n            }, {\n              metric: 'PROPERTY',\n              key: 'issueDate'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseProjectTasks')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent tasks'),\n            index: 6,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: false,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.report.Date created')\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'tasks',\n              filter: {\n                entity: this.sessionData.entity.id,\n                dateCreated: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'dateCreated',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.projects.project.tasks.task',\n                modelKeys: ['project', '_id']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'dateCreated'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseProjects')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent projects'),\n            index: 7,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: false,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.report.Date created')\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'projects',\n              filter: {\n                entity: this.sessionData.entity.id,\n                dateCreated: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'dateCreated',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.projects.project',\n                modelKeys: ['_id']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'dateCreated'\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUsePurchaseOrders')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent purchase orders'),\n            index: 8,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: false,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.report.Date created')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Status')\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'purchase-orders',\n              filter: {\n                entity: this.sessionData.entity.id,\n                dateCreated: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'dateCreated',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'purchaseOrderNumber',\n              linkTo: {\n                route: 'entity.builda-price.operations.outgoing.purchase-orders.purchase-order',\n                modelKeys: ['_id']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'dateCreated'\n            }, {\n              metric: 'PROPERTY',\n              key: 'status',\n              humanEnums: true\n            }]]\n          });\n          if (this.newFeatureFlags.includesFeatureFlags('canUseInvoices')) report.subjects.push({\n            name: this.intl.t('entity.builda-price.dashboard.Recent invoices'),\n            index: 9,\n            width: 4,\n            height: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: false,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.report.Date created')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Status')\n              }],\n              tfoot: []\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'invoices',\n              filter: {\n                entity: this.sessionData.entity.id,\n                dateCreated: {\n                  $lte: new Date(),\n                  $gte: new Date(new Date().setDate(new Date().getDate() - 7))\n                }\n              },\n              sortKey: 'dateCreated',\n              sortDirection: 'DESC'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'invoiceNumber',\n              linkTo: {\n                route: 'entity.builda-price.operations.outgoing.invoices.invoice',\n                modelKeys: ['id']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'dateCreated'\n            }, {\n              metric: 'PROPERTY',\n              key: 'status',\n              humanEnums: true\n            }]]\n          });\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n      _defineProperty(this, \"getPmConnection\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const pmConnection = yield this.store.query('pm-connection', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            },\n            fields: {\n              'pm-connections': '_meta.isConnected'\n            }\n          });\n          return pmConnection?.[0] || null;\n        }\n      }), null, \"getPmConnection\", null));\n    }\n    model() {\n      this.getAdHocReport.perform();\n      if (this.newFeatureFlags.includesFeatureFlags('canUseIntegrations') && this.newFeatureFlags.includesFeatureFlags('canUsePlaceMakers')) {\n        this.getPmConnection.perform();\n        return {\n          entity: this.sessionData.entity,\n          dashboardReport: this.getAdHocReport,\n          pmConnection: this.getPmConnection\n        };\n      }\n      return {\n        entity: this.sessionData.entity,\n        dashboardReport: this.getAdHocReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\", \"@ember/service\"], function (_exports, _route, _menuRoute, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    get defaultRoute() {\n      // this is the same logic in the builda-price controller for tabs\n      // if you have the dashboard, go there by default\n      if (this.newFeatureFlags.includesFeatureFlags('canUseDashboardReport')) return 'entity.builda-price.dashboard';\n\n      // if you don't have the dashboard, but you can go to projects, go there\n      if (this.newFeatureFlags.includesFeatureFlags('canUseProjects') || this.newFeatureFlags.includesFeatureFlags('userIsClient')) return 'entity.builda-price.projects';\n\n      // otherwise go to the timesheets route which should be accessible by everyone\n      return 'entity.builda-price.operations.incoming.timesheets';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/documents\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/array\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _route, _service, _tracking, _array, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.DocumentData = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _class3, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/array\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let DocumentData = _exports.DocumentData = (_class = class DocumentData {\n    constructor(projects, tasks, attachments, documentPath) {\n      _initializerDefineProperty(this, \"projects\", _descriptor, this);\n      _initializerDefineProperty(this, \"tasks\", _descriptor2, this);\n      _initializerDefineProperty(this, \"attachments\", _descriptor3, this);\n      _initializerDefineProperty(this, \"files\", _descriptor4, this);\n      _initializerDefineProperty(this, \"documentPath\", _descriptor5, this);\n      this.projects = projects;\n      this.tasks = tasks;\n      this.attachments = attachments;\n      this.documentPath = documentPath;\n      // Assign rather than push: the search builds a DocumentData inside the\n      // tableData getter, and mutating a tracked array mid-computation is a\n      // backtracking rerender error.\n      this.files = (0, _array.A)(this._initFromData(projects, tasks, attachments));\n    }\n    _initFromData(projects, tasks, attachments) {\n      const files = [];\n      if (projects.length) projects.forEach(project => files.push(this._createFile(project)));\n      if (tasks.length) tasks.forEach(task => files.push(this._createFile(null, task)));\n      if (attachments.length) attachments.forEach(attachment => files.push(this._createFile(null, null, attachment)));\n      return files;\n    }\n    _createFile(project, task, attachment) {\n      if (project) return {\n        name: project.name,\n        breadcrumbs: project.belongsTo('entity').value().name,\n        isVisible: Boolean(project.name?.length),\n        type: 'project',\n        projectLinkModel: project.id,\n        taskLinkModel: null,\n        route: `${this.documentPath}.project-file`,\n        humanType: 'Project',\n        dateCreated: project.dateCreated,\n        size: project.allAttachments.reduce((a, c) => a + c.size, 0),\n        href: null,\n        value: project,\n        project: project\n      };\n      if (task) return {\n        name: task.name,\n        breadcrumbs: task.belongsTo('entity').value().name + ' > ' + task.breadcrumbs,\n        isVisible: Boolean(task.name?.length),\n        type: 'task',\n        projectLinkModel: task.belongsTo('project').value().id,\n        taskLinkModel: task.id,\n        route: `${this.documentPath}.project-file.task-file`,\n        humanType: 'Task',\n        dateCreated: task.dateCreated,\n        size: task.allAttachments.reduce((a, c) => a + c.size, 0),\n        href: null,\n        value: task,\n        project: task.belongsTo('project').value()\n      };\n      if (attachment) {\n        const entity = attachment.belongsTo('entity').value();\n        let breadcrumbs = entity.name;\n        const projects = attachment.hasMany('projects')?.value()?.toArray() || [];\n        const projectId = projects?.[0]?.belongsTo('project')?.id();\n        const tasks = attachment.hasMany('tasks')?.value()?.toArray() || [];\n        const taskId = tasks?.[0]?.belongsTo('task')?.id();\n        if (projectId) {\n          const project = projects?.[0]?.belongsTo('project')?.value();\n          breadcrumbs += ' > ' + project.name;\n        }\n        if (taskId) {\n          const task = tasks?.[0]?.belongsTo('task')?.value();\n          breadcrumbs += ' > ' + task.breadcrumbs + ' > ' + task.name;\n        }\n        return {\n          _name: null,\n          get name() {\n            if (!this._name) return attachment.filename;\n            return this._name;\n          },\n          set name(val) {\n            attachment.filename = val;\n            this._name = val;\n          },\n          breadcrumbs,\n          isVisible: Boolean(attachment.filename?.length),\n          type: attachment.fileType,\n          projectLinkModel: null,\n          taskLinkModel: null,\n          route: null,\n          humanType: attachment.humanType,\n          dateCreated: attachment.dateCreated,\n          size: attachment.size,\n          href: attachment.href,\n          value: attachment,\n          project: null\n        };\n      }\n    }\n    removeAttachment(file) {\n      this.files.removeObject(file);\n    }\n    addAttachments(attachments) {\n      if (attachments.length) {\n        attachments.forEach(attachment => {\n          this.files.pushObject(this._createFile(null, null, attachment));\n        });\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"projects\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"tasks\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"attachments\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"files\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _array.A)([]);\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"documentPath\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  let _class2 = _exports.default = (_class3 = class _class3 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor7, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor8, this);\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.newFeatureFlags.canManageFileStorage() || !this.newFeatureFlags.includesFeatureFlags('canManageUsers')) return [];\n          const userAttributes = yield this.store.simpleQuery('user-entity-attribute', {\n            entity: this.sessionData.entity.id,\n            attribute: 'canViewEntity'\n          });\n          if (!userAttributes.length) return [];\n          const userIds = userAttributes.map(ua => ua.belongsTo('user').id());\n          const users = yield this.store.simpleQuery('user', {\n            _id: {\n              $in: userIds\n            }\n          }, {\n            include: 'entityAttributes'\n          });\n          return users;\n        }\n      }), null, \"getUsers\", null));\n      _defineProperty(this, \"getOpenProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (activeProject) {\n          if (activeProject) {\n            return yield this.store.simpleQuery('project', {\n              _id: activeProject\n            });\n          }\n          return yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id,\n            status: 'OPEN'\n          });\n        }\n      }), null, \"getOpenProjects\", null));\n      _defineProperty(this, \"getActiveTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects) {\n          yield projects.last;\n          let filter = {\n            and: [{\n              field: 'project.status',\n              op: 'EQ',\n              value: 'OPEN'\n            }, {\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          if (projects.last.value.length === 1) filter = {\n            and: [{\n              field: 'project',\n              op: 'EQ',\n              value: projects.last.value.toArray()[0].id\n            }]\n          };\n          return yield this.store.query('task', {\n            filter\n          });\n        }\n      }), null, \"getActiveTasks\", null));\n      _defineProperty(this, \"getAttachments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects, tasks) {\n          yield projects.last;\n          yield tasks.last;\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          const allAttachments = yield this.store.query('attachment', {\n            filter,\n            include: 'entities,projects,tasks'\n          }).then(r => r.toArray());\n          return allAttachments.filter(attachment => {\n            if (attachment.hasMany('entities').ids().length > 0) return true;\n            const attachmentProjects = attachment.hasMany('projects').value()?.toArray() || [];\n            const isProjectAttachment = attachmentProjects.some(ap => projects.last.value.map(p => p.id).includes(ap.belongsTo('project').id()));\n            if (isProjectAttachment) return true;\n            const attachmentTasks = attachment.hasMany('tasks').value()?.toArray() || [];\n            const isTaskAttachment = attachmentTasks.some(at => {\n              return tasks.last.value.map(t => t.id).includes(at.belongsTo('task').id());\n            });\n            if (isTaskAttachment) return true;\n          });\n        }\n      }), null, \"getAttachments\", null));\n      _defineProperty(this, \"entityLoaded\", false);\n    }\n    willTransition(transition) {\n      if (!transition.targetName.includes('documents')) {\n        this.entityLoaded = false;\n      }\n    }\n    model() {\n      const loadModel = activeProject => {\n        if (this.entityLoaded) return;\n        if (!activeProject) this.entityLoaded = true;\n        this.getOpenProjects.perform(activeProject);\n        this.getActiveTasks.perform(this.getOpenProjects);\n        this.getAttachments.perform(this.getOpenProjects, this.getActiveTasks);\n        this.getUsers.perform();\n      };\n      return {\n        users: this.getUsers,\n        attachments: this.getAttachments,\n        projects: this.getOpenProjects,\n        tasks: this.getActiveTasks,\n        loadModel\n      };\n    }\n  }, _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class3.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class3.prototype, \"willTransition\"), _class3.prototype), _class3);\n});","define(\"portal/routes/entity/builda-price/operations/documents/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"portal/routes/entity/builda-price/operations/documents\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _documents, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"portal/routes/entity/builda-price/operations/documents\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.operations.documents.index');\n      _defineProperty(this, \"getEntityFile\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (openProjects, activeTasks, attachments) {\n          yield openProjects.last;\n          yield activeTasks.last;\n          yield attachments.last;\n          const myAttachments = attachments.last.value?.filter(attachment => (attachment.hasMany('entities')?.value()?.toArray().map(item => item.belongsTo('entity').id()) || []).length > 0)?.sortBy('dateCreated') || [];\n          return new _documents.DocumentData(openProjects.last.value?.sortBy('sortIndex') || [], [], myAttachments, this.documentPath);\n        }\n      }), null, \"getEntityFile\", null));\n    }\n    get documentPath() {\n      if (this.basePath.includes('embed')) return 'embed.documents';\n      return 'entity.builda-price.operations.documents';\n    }\n    setupController(controller, post) {\n      super.setupController(controller, post);\n      this.controllerFor(`${this.documentPath}.index`).set('searchString', '');\n    }\n    async model() {\n      const {\n        loadModel,\n        users,\n        attachments,\n        projects,\n        tasks\n      } = this.modelFor(this.documentPath);\n      loadModel();\n      this.getEntityFile.perform(projects, tasks, attachments);\n      return {\n        users,\n        file: this.getEntityFile,\n        attachments,\n        projects,\n        tasks,\n        documentPath: this.documentPath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/documents/project-file\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model({\n      project_id\n    }) {\n      return project_id;\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/operations/documents/project-file/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"portal/routes/entity/builda-price/operations/documents\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _documents, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"portal/routes/entity/builda-price/operations/documents\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.operations.documents.index');\n      _defineProperty(this, \"getFile\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects, tasks, attachments, projectId) {\n          yield tasks.last;\n          yield projects.last;\n          yield attachments.last;\n          const projectTasks = tasks.last.value.filter(task => task.belongsTo('project').value().id === projectId && ['ACTIVE', 'DRAFT_CREATED'].includes(task.status));\n          const parentTasks = projectTasks.toArray().filter(task => !task.belongsTo('parent').id());\n          const projectAttachments = attachments.last.value?.filter(attachment => (attachment.hasMany('projects')?.value()?.toArray().map(item => item.belongsTo('project').id()) || []).includes(projectId)) || [];\n          return new _documents.DocumentData([], parentTasks?.sortBy('path') || [], projectAttachments.sortBy('dateCreated') || [], this.documentPath);\n        }\n      }), null, \"getFile\", null));\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects, projectId) {\n          yield projects.last;\n          return projects.last.value.find(project => project.id === projectId);\n        }\n      }), null, \"getProject\", null));\n    }\n    get documentPath() {\n      if (this.basePath.includes('embed')) return 'embed.documents';\n      return 'entity.builda-price.operations.documents';\n    }\n    setupController(controller, post) {\n      super.setupController(controller, post);\n      let documentIndexPath = `${this.documentPath}.index`;\n      this.controllerFor(documentIndexPath).set('searchString', '');\n    }\n    model() {\n      const {\n        loadModel,\n        users,\n        attachments,\n        projects,\n        tasks\n      } = this.modelFor(this.documentPath);\n      const {\n        project_id: projectId\n      } = this.paramsFor(`${this.documentPath}.project-file`);\n      loadModel(projectId);\n      this.getFile.perform(projects, tasks, attachments, projectId);\n      this.getProject.perform(projects, projectId);\n      return {\n        users,\n        file: this.getFile,\n        project: this.getProject,\n        documentPath: this.documentPath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/documents/project-file/task-file\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"portal/routes/entity/builda-price/operations/documents\"], function (_exports, _asyncArrowRuntime, _route, _service, _documents) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"portal/routes/entity/builda-price/operations/documents\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.operations.documents.project-file.task-file');\n      _defineProperty(this, \"getFile\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects, tasks, attachments, task) {\n          yield projects.last;\n          yield tasks.last;\n          yield attachments.last;\n          yield task.last;\n          const taskAttachments = attachments.last.value.filter(attachment => {\n            const taskIds = (attachment.hasMany('tasks')?.value()?.toArray() || []).map(item => item.belongsTo('task').id());\n            return taskIds.includes(task.last.value.id);\n          });\n          const currentLevelTasks = tasks.last.value.filter(t => task.last.value.hasMany('children').value()?.map(c => c.id).includes(t.id));\n          return new _documents.DocumentData([], currentLevelTasks?.sortBy('path') || [], taskAttachments.sortBy('dateCreated') || [], this.documentPath);\n        }\n      }), null, \"getFile\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (tasks, taskId) {\n          yield tasks.last;\n          return tasks.last.value.find(task => task.id === taskId);\n        }\n      }), null, \"getTask\", null));\n    }\n    get documentPath() {\n      if (this.basePath.includes('embed')) return 'embed.documents';\n      return 'entity.builda-price.operations.documents';\n    }\n    setupController(controller, model) {\n      // reset the search string when you navigate\n      controller.set('searchString', '');\n      super.setupController(controller, model);\n    }\n    model() {\n      const {\n        loadModel,\n        users,\n        attachments,\n        projects,\n        tasks\n      } = this.modelFor(this.documentPath);\n      const {\n        project_id: projectId\n      } = this.paramsFor(`${this.documentPath}.project-file`);\n      const {\n        task_id\n      } = this.paramsFor(`${this.documentPath}.project-file.task-file`);\n      loadModel(projectId);\n      const taskIds = task_id.split(':');\n      const taskId = taskIds[taskIds.length - 1];\n      this.getTask.perform(tasks, taskId);\n      this.getFile.perform(projects, tasks, attachments, this.getTask);\n      return {\n        file: this.getFile,\n        users,\n        task: this.getTask,\n        documentPath: this.documentPath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/bills-legacy\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\", \"moment\", \"portal/utils/search-filter\"], function (_exports, _route, _object, _service, _moment, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\",0,\"moment\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    queryParams: {\n      sortBy: {\n        refreshModel: true\n      },\n      filterByDate: {\n        refreshModel: true\n      },\n      startDate: {\n        refreshModel: true\n      },\n      endDate: {\n        refreshModel: true\n      },\n      status: {\n        refreshModel: true\n      },\n      unallocatedOnly: {\n        refreshModel: true\n      },\n      search: {\n        refreshModel: true\n      }\n    },\n    async model({\n      sortBy,\n      filterByDate,\n      startDate,\n      endDate,\n      status,\n      unallocatedOnly,\n      search\n    }) {\n      // instead of proper pagination, manually set the maximum number of bills shown for each filter set\n      // TODO with unallocatedOnly we can't page the bills because we're post filtering - implement meta filters to fix this\n      const maxNumberOfBills = unallocatedOnly ? undefined : 600;\n      const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n      const billQuery = {\n        and: [{\n          field: 'entity',\n          op: 'EQ',\n          value: entityId\n        }]\n      };\n      if (status !== 'ALL') {\n        billQuery.and.push({\n          field: 'status',\n          op: 'EQ',\n          value: status\n        });\n      }\n      if (search) {\n        billQuery.and.push((0, _searchFilter.default)(['reference', 'billNumber', 'issuer'], search));\n      }\n      if (filterByDate) {\n        billQuery.and.push({\n          field: 'issueDate',\n          op: 'GT',\n          value: (0, _moment.default)(startDate).startOf('day').toISOString()\n        });\n        billQuery.and.push({\n          field: 'issueDate',\n          op: 'LT',\n          value: (0, _moment.default)(endDate).endOf('day').toISOString()\n        });\n      }\n      const invoicesQuery = {\n        filter: billQuery,\n        sort: sortBy,\n        include: 'items,items.project,items.task',\n        fields: {\n          'bill-items': '_meta.isMapped',\n          bills: '_meta.hasDuplicate,_meta.isInvoiced'\n        }\n      };\n      if (maxNumberOfBills) {\n        invoicesQuery.page = {\n          number: 1,\n          size: maxNumberOfBills\n        };\n      }\n      const invoices = this.store.query('bill', invoicesQuery).then(_invoices => {\n        let invoices = _invoices.toArray();\n\n        // post filter the invoices\n        if (unallocatedOnly) return invoices.filter(i => !(0, _object.get)(i, 'isMapped'));\n        return invoices;\n      });\n      const projects = this.store.query('project', {\n        filter: {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: entityId\n          }, {\n            field: 'status',\n            op: 'EQ',\n            value: 'OPEN'\n          }]\n        },\n        sort: 'sortIndex'\n      });\n      const tasks = this.store.query('task', {\n        filter: {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: entityId\n          }, {\n            field: 'status',\n            op: 'IN',\n            value: ['ACTIVE', 'DRAFT_CREATED']\n          }, {\n            field: 'project.status',\n            op: 'EQ',\n            value: 'OPEN'\n          }]\n        },\n        sort: 'path'\n      });\n      const xeroAccounts = this.store.query('gl-account', {\n        filter: {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: entityId\n          }, {\n            field: 'xeroAccountId',\n            op: 'IS_NOT_NULL',\n            value: null\n          }]\n        },\n        sort: 'code'\n      });\n      const quickbooksAccounts = this.store.query('gl-account', {\n        filter: {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: entityId\n          }, {\n            field: 'quickbooksAccountId',\n            op: 'IS_NOT_NULL',\n            value: null\n          }]\n        },\n        sort: 'code'\n      });\n      return Promise.all([invoices, projects, tasks, xeroAccounts, quickbooksAccounts, this.store.simpleQuery('invoice-auto-map-directive', {\n        entity: entityId\n      })]).then(([invoices, projects, tasks, xeroAccounts, quickbooksAccounts, directives]) => ({\n        invoices,\n        projects,\n        tasks,\n        xeroAccounts,\n        quickbooksAccounts,\n        directives,\n        maxNumberOfBills\n      }));\n    },\n    actions: {\n      invoiceAdded(invoice) {\n        (0, _object.get)(this, 'controller.model.invoices').unshiftObject(invoice);\n      },\n      refreshModel() {\n        this.refresh();\n      }\n    }\n  });\n});","define(\"portal/routes/entity/builda-price/operations/incoming/bills-legacy/bill\", [\"exports\", \"@ember/routing/route\", \"rsvp\", \"jquery\", \"@ember/object\", \"@ember/service\", \"ember-local-storage\", \"@ember/application\"], function (_exports, _route, _rsvp, _jquery, _object, _service, _emberLocalStorage, _application) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"rsvp\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-local-storage\",0,\"@ember/application\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    persistedSettings: (0, _emberLocalStorage.storageFor)('settings'),\n    async model(params) {\n      const entity = (0, _object.get)(this, 'sessionData.entity');\n      const entityId = (0, _object.get)(entity, 'id');\n      let invoice;\n      if (params.bill_id === 'new') {\n        // Create a new invoice that belongs to the current entity and has one item\n        invoice = await this.store.createRecord('bill', {\n          entity,\n          issueDate: new Date(),\n          subcontractor: null,\n          source: 'web:manual'\n        });\n        this.store.createRecord('bill-item', {\n          bill: invoice,\n          entity: (0, _object.get)(this, 'sessionData.entity')\n        });\n      } else {\n        invoice = await this.store.findRecord('bill', params.bill_id, {\n          include: 'attachments,items,items.project,items.task',\n          adapterOptions: {\n            fields: {\n              bills: '_meta.hasDuplicate'\n            }\n          }\n        }).catch(() => {\n          this.router.transitionTo('entity.builda-price.operations.incoming.bills-legacy');\n        });\n      }\n      const parentModel = this.modelFor('entity.builda-price.operations.incoming.bills-legacy');\n      const owner = (0, _application.getOwner)(this);\n      const billsController = owner?.lookup('controller:entity.builda-price.operations.incoming.bills-legacy');\n      const controllerInvoices = billsController ? (0, _object.get)(billsController, 'invoices') : null;\n      let invoices = controllerInvoices;\n      const getKey = invoice => `${String((0, _object.get)(invoice, 'issuer')).toLowerCase().trim()}:${String((0, _object.get)(invoice, 'billNumber')).toLowerCase().trim()}`;\n      const existingInvoiceKeys = invoices.reduce((obj, existingInvoice) => invoice !== existingInvoice // not \"this\" invoice\n      ? Object.assign(obj, {\n        [getKey(existingInvoice)]: existingInvoice\n      }) : obj, {});\n      const suppliers = await this.store.simpleQuery('contact', {\n        entity: entity.id\n      }).then(suppliers => suppliers.toArray());\n      const suppliersWithPaymentTermsHash = suppliers.reduce((suppliers, supplier) => supplier.hasValidPurchasePaymentTerm ? {\n        ...suppliers,\n        [supplier.name]: supplier\n      } : suppliers, {});\n      return _rsvp.default.hash(Object.assign({}, parentModel, {\n        invoices,\n        invoice,\n        existingInvoiceKeys,\n        suppliers,\n        suppliersWithPaymentTermsHash,\n        directives: this.store.simpleQuery('invoice-auto-map-directive', {\n          entity: entityId\n        })\n      }));\n    },\n    setupController(controller, model) {\n      this._super(...arguments);\n      (0, _object.set)(controller, 'selectedItems', (0, _object.get)(model, 'invoice').hasMany('items').value().toArray());\n      (0, _object.set)(controller, 'dirtyRels', []);\n      (0, _object.set)(controller, 'deletedItems', []);\n\n      // If the invoice is new, then the page should start in the editing mode\n      if ((0, _object.get)(model, 'invoice.isNew')) {\n        (0, _object.set)(controller, 'isEditing', true);\n        (0, _object.set)(controller, 'newInvoiceStep', 0);\n      } else {\n        (0, _object.set)(controller, 'isEditing', false);\n      }\n    },\n    actions: {\n      didTransition() {\n        (0, _jquery.default)(document).on('keypress', event => event.key === 'Enter' && (0, _object.get)(this, 'controller.isEditing') && this.controller.actions.save.call(this.controller) || event);\n      },\n      willTransition() {\n        const invoice = this.controller.get('model.invoice');\n\n        // Remove any new (unsaved) bill-items\n        (invoice.get('items').content?.toArray() || []).filter(item => item.isNew).forEach(item => {\n          item.unloadRecord();\n        });\n\n        // If the invoice itself is new, remove it too\n        if (invoice.get('isNew')) {\n          invoice.unloadRecord();\n        }\n        (0, _jquery.default)(document).off('keypress');\n      }\n    }\n  });\n});","define(\"portal/routes/entity/builda-price/operations/incoming/bills\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\"], function (_exports, _route, _service, _object, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EntityBuildaPriceOperationsIncomingBillsRoute = _exports.default = (_class = class EntityBuildaPriceOperationsIncomingBillsRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"billsData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"ips\", _descriptor4, this);\n      _defineProperty(this, \"queryParams\", {\n        status: {\n          refreshModel: true\n        },\n        search: {\n          refreshModel: true\n        },\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        sort: {\n          refreshModel: true\n        },\n        billType: {\n          refreshModel: true\n        },\n        allocationType: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSize\", 100);\n      _initializerDefineProperty(this, \"lastParams\", _descriptor5, this);\n    }\n    async beforeModel() {\n      try {\n        await this.ips.getUsage();\n      } catch {\n        // without usage IPS is not ready, so nothing of its UI renders\n      }\n    }\n    async model({\n      status,\n      search,\n      startDate,\n      endDate,\n      sort = '-dateCreated',\n      billType,\n      allocationType\n    }) {\n      const filter = {\n        and: [{\n          field: 'entity',\n          op: 'EQ',\n          value: this.sessionData.entity.id\n        }],\n        or: []\n      };\n      if (status) {\n        filter.and.push({\n          field: 'status',\n          op: 'EQ',\n          value: status\n        });\n      }\n      if (search) {\n        filter.or.push({\n          field: 'searchText',\n          op: 'ILIKE',\n          value: search\n        });\n        filter.or.push({\n          field: 'issuerContact.name',\n          op: 'ILIKE',\n          value: search\n        });\n      }\n      if (startDate) {\n        filter.and.push({\n          field: 'issueDate',\n          op: 'GT',\n          value: new Date(new Date(startDate).setHours(0, 0, 0, 0)).toISOString()\n        });\n      }\n      if (endDate) {\n        filter.and.push({\n          field: 'issueDate',\n          op: 'LT',\n          value: new Date(new Date(endDate).setHours(23, 59, 59, 999)).toISOString()\n        });\n      }\n      if (billType) {\n        filter.and.push({\n          field: 'billType',\n          op: 'EQ',\n          value: billType\n        });\n      }\n      if (allocationType) {\n        filter.and.push({\n          field: 'allocationType',\n          op: 'EQ',\n          value: allocationType\n        });\n      }\n      const fields = {\n        bills: '_meta.isInvoiced,_meta.hasDuplicate,_meta.allocationPath,_meta.purchaseOrder'\n      };\n\n      // only perform the first load when the params change\n      const params = JSON.stringify({\n        filter,\n        fields,\n        sort,\n        pageSize: this.pageSize\n      });\n      if (this.lastParams !== params) {\n        this.lastParams = params;\n        await this.billsData.loadBills.perform(filter, fields, sort, this.pageSize);\n      }\n      const model = {\n        sort,\n        filter,\n        fields,\n        pageSize: this.pageSize\n      };\n      return model;\n    }\n\n    // https://guides.emberjs.com/release/routing/query-params/\n    resetController(controller, isExiting) {\n      if (!isExiting) return;\n      controller.search = '';\n      controller.searchString = '';\n      controller.status = 'DRAFT';\n      controller.sort = '-dateCreated';\n      controller.startDate = undefined;\n      controller.endDate = undefined;\n      this.lastParams = undefined;\n    }\n    refreshModel() {\n      this.lastParams = undefined;\n      this.refresh();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"billsData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"lastParams\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return undefined;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"refreshModel\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"refreshModel\"), _class.prototype), _class);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/bills/bill\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EntityBuildaPriceOperationsIncomingBillsBillRoute = _exports.default = (_class = class EntityBuildaPriceOperationsIncomingBillsBillRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n    async model({\n      bill_id\n    }) {\n      let {\n        status\n      } = this.paramsFor('entity.builda-price.operations.incoming.bills');\n      if (bill_id === 'new' || bill_id === 'new-credit-note') {\n        const bill = this.store.createRecord('bill', {\n          billType: bill_id === 'new-credit-note' ? 'CREDIT_NOTE' : 'BILL',\n          entity: this.sessionData.entity\n        });\n        return {\n          bill\n        };\n      }\n      const bill = await this.store.findRecord('bill', bill_id, {\n        // the list's cached copy can hold an old allocation path\n        reload: true,\n        include: 'issuerContact,items,purchaseOrder,items.purchaseOrderItem,attachments,items.glAccount',\n        adapterOptions: {\n          fields: {\n            bills: '_meta.hasDuplicate,_meta.allocationPath,_meta.purchaseOrder,_meta.isInvoiced',\n            'bill-items': '_meta.allocationPath,_meta.purchaseOrder',\n            'gl-accounts': 'code,name'\n          }\n        }\n      });\n      // wait for the items to load so the component can use them straight away - doesn't seem necessary but it is\n      await bill.issuerContact;\n      const items = await bill.items;\n      await bill.attachments;\n      await bill.issuerContact;\n      await bill.purchaseOrder;\n\n      // not sure what else we can do\n      await Promise.all(items.map(item => item.glAccount));\n      return {\n        bill,\n        billStatus: status\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\", \"@ember/service\"], function (_exports, _route, _menuRoute, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    get defaultRoute() {\n      if (this.newFeatureFlags.includesFeatureFlags('canUseTimesheets')) return 'entity.builda-price.operations.incoming.timesheets';\n      if (this.newFeatureFlags.includesFeatureFlags('canUseBills')) return 'entity.builda-price.operations.incoming.bills';\n      if (this.newFeatureFlags.includesFeatureFlags('canUseStatements')) return 'entity.builda-price.operations.incoming.statements';\n      return 'entity.builda-price';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/invoices/index\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {}\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/operations/incoming/invoices/invoice\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    model({\n      invoice_id: invoiceId\n    }) {\n      this.router.transitionTo('entity.builda-price.operations.incoming.bills.bill', invoiceId);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/statements\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let EntityBuildaPriceOperationsIncomingStatementsRoute = _exports.default = (_class = class EntityBuildaPriceOperationsIncomingStatementsRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"ips\", _descriptor, this);\n    }\n    async beforeModel() {\n      try {\n        await this.ips.getUsage();\n      } catch {\n        // without usage IPS is not ready, so nothing of its UI renders\n      }\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      // Take a fresh token/entity snapshot on every entry, then leave `src` alone\n      // for the lifetime of the iframe.\n      controller.refreshIframeSrc();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/timesheets\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"rsvp\", \"@ember/service\", \"moment\", \"ember-local-storage\", \"@ember/object/computed\"], function (_exports, _route, _object, _rsvp, _service, _moment, _emberLocalStorage, _computed) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"rsvp\",0,\"@ember/service\",0,\"moment\",0,\"ember-local-storage\",0,\"@ember/object/computed\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    persistedSettings: (0, _emberLocalStorage.storageFor)('settings'),\n    startDate: (0, _computed.alias)('persistedSettings.timesheets:startDate'),\n    endDate: (0, _computed.alias)('persistedSettings.timesheets:endDate'),\n    basePath: 'entity.builda-price.operations.incoming',\n    async model() {\n      let endDate = (0, _object.get)(this, 'endDate');\n      let startDate = (0, _object.get)(this, 'startDate');\n      if (!endDate || !/^\\d{4}-\\d{2}-\\d{2}$/.test(endDate)) endDate = (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n      if (!startDate || !/^\\d{4}-\\d{2}-\\d{2}$/.test(startDate)) {\n        startDate = (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n      }\n      const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n\n      // Only get the workers for this entity\n      const workers = await (0, _object.get)(this, 'store').simpleQuery('worker', {\n        entity: entityId\n      }).then(workers => workers.sortBy('fullName'));\n      const timesheetNotes = (0, _object.get)(this, 'store').simpleQuery('timesheet-note', {\n        entity: entityId,\n        date: {\n          $gte: startDate,\n          $lte: endDate\n        }\n      });\n      const timesheetStatuses = (0, _object.get)(this, 'store').simpleQuery('timesheet-status', {\n        entity: entityId,\n        date: {\n          $gte: startDate,\n          $lte: endDate\n        }\n      }).then(res => res.toArray());\n      const timesheets = (0, _object.get)(this, 'store').simpleQuery('timesheet', {\n        entity: entityId,\n        date: {\n          $gte: startDate,\n          $lte: endDate\n        }\n      }, {\n        include: 'project,task'\n      }).then(res => res.toArray()).then(ts =>\n      // remove the timesheets we don't have access to see the project or tasks for\n      ts.filter(t => t.belongsTo('task').id() && t.belongsTo('project').id()));\n      return _rsvp.default.hash({\n        timesheetStatuses,\n        workers,\n        timesheets,\n        timesheetNotes: timesheetNotes.then(arr => arr.toArray()),\n        basePath: this.basePath\n      }).then(result => {\n        if ((0, _object.get)(result, 'timesheets.length')) {\n          (0, _object.set)(result, 'timesheets',\n          // TODO also sort by project.sortIndex when implmemented\n          (0, _object.get)(result, 'timesheets').sortBy('task.path'));\n        }\n        return result;\n      });\n    },\n    actions: {\n      willTransition(transition) {\n        const {\n          targetName\n        } = transition;\n        if (targetName !== this.basePath + '.timesheets.timesheet') {\n          (0, _object.set)(this, 'startDate', null);\n          (0, _object.set)(this, 'endDate', null);\n        }\n        return true;\n      },\n      addTimesheetNote(timesheetNote) {\n        (0, _object.get)(this, 'controller.model.timesheetNotes').pushObject(timesheetNote);\n      },\n      addTimesheets(newTimesheets) {\n        (0, _object.get)(this, 'controller.model.timesheets').pushObjects(newTimesheets);\n      },\n      addTimesheetStatuses(newTimesheetStatuses) {\n        (0, _object.get)(this, 'controller.model.timesheetStatuses').pushObjects(newTimesheetStatuses);\n      },\n      removeTimesheet(timesheet) {\n        (0, _object.get)(this, 'controller.model.timesheets').removeObject(timesheet);\n      },\n      refreshModel() {\n        this.refresh();\n      }\n    }\n  });\n});","define(\"portal/routes/entity/builda-price/operations/incoming/timesheets/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.operations.incoming');\n    }\n    beforeModel() {\n      // Go straight to the create new timesheet state.\n      this.router.transitionTo(this.basePath + '.timesheets.timesheet');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet-loading\", [\"exports\", \"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet\", \"portal/utils/loading-route-from\"], function (_exports, _timesheet, _loadingRouteFrom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet\",0,\"portal/utils/loading-route-from\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _loadingRouteFrom.default)(_timesheet.default, 'entity.builda-price.operations.incoming.timesheets.timesheet');\n});","define(\"portal/routes/entity/builda-price/operations/incoming/timesheets/timesheet\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"rsvp\", \"@ember/service\", \"moment\", \"portal/mixins/scroll-route\"], function (_exports, _route, _object, _rsvp, _service, _moment, _scrollRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"rsvp\",0,\"@ember/service\",0,\"moment\",0,\"portal/mixins/scroll-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    basePath: 'entity.builda-price.operations.incoming',\n    queryParams: {\n      worker: {\n        refreshModel: true\n      },\n      date: {\n        refreshModel: true\n      }\n    },\n    model({\n      worker,\n      date\n    }) {\n      const store = (0, _object.get)(this, 'store');\n      const entity = (0, _object.get)(this, 'sessionData.entity');\n      const workers = (0, _object.get)(this.modelFor(this.basePath + '.timesheets'), 'workers');\n      const dateIsValid = date != null && (0, _moment.default)(date, 'YYYY-MM-DD').isValid();\n      const selectedWorker = workers.findBy('id', worker);\n      const workerExists = selectedWorker != null;\n      let timesheets = null;\n      let note = null;\n      let statuses = null;\n      if (workerExists && dateIsValid) {\n        const dateQuery = {\n          $eq: date\n        };\n        timesheets = (0, _object.get)(this, 'store').simpleQuery('timesheet', {\n          worker,\n          date: dateQuery\n        }, {\n          include: 'task',\n          fields: {\n            timesheets: '_meta.isInvoiced'\n          }\n        }).then(timesheets => timesheets.toArray());\n        note = (0, _object.get)(this, 'store').simpleQuery('timesheet-note', {\n          worker,\n          date: dateQuery\n        }).then(notes => notes.objectAt(0));\n        statuses = (0, _object.get)(this, 'store').simpleQuery('timesheet-status', {\n          worker,\n          date: dateQuery\n        }).then(statuses => statuses.toArray());\n      }\n      const tasks = (0, _object.get)(this, 'store').query('task', {\n        filter: {\n          and: [\n          // TODO fix it properly, this is due to how ember data is loading relationships\n          // {\n          //   field: 'timesheetStatus',\n          //   op: 'EQ',\n          //   value: 'ACTIVE',\n          // },\n          // {\n          //   field: 'status',\n          //   op: 'IN',\n          //   value: ['ACTIVE', 'DRAFT_CREATED'],\n          // },\n          {\n            field: 'project.status',\n            op: 'EQ',\n            value: 'OPEN'\n          }, {\n            field: 'entity',\n            op: 'EQ',\n            value: (0, _object.get)(entity, 'id')\n          }]\n        }\n      });\n      const projects = tasks.then(tasks => {\n        const projectIds = new Set();\n        for (const task of tasks.toArray()) {\n          const projectId = (0, _object.get)(task, 'project.id');\n          if (projectIds.has(projectId)) continue;\n          projectIds.add(projectId);\n        }\n        return (0, _object.get)(this, 'store').query('project', {\n          filter: {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: (0, _object.get)(entity, 'id')\n            }, {\n              field: 'status',\n              op: 'EQ',\n              value: 'OPEN'\n            }]\n          }\n        }).then(projects =>\n        // we only want projects with tasks\n        projects.filter(project => projectIds.has((0, _object.get)(project, 'id'))));\n      });\n      return _rsvp.default.hash({\n        worker,\n        timesheets,\n        note,\n        statuses,\n        projects,\n        tasks\n      }).then(results => {\n        // Create a note record if we have a valid worker and date but no note was found\n        if (workerExists && dateIsValid && (0, _object.get)(results, 'note') == null) {\n          const newNote = store.createRecord('timesheet-note', {\n            date,\n            worker: selectedWorker,\n            entity\n          });\n          (0, _object.set)(results, 'note', newNote);\n          this.send('addTimesheetNote', newNote);\n        }\n        (0, _object.set)(results, 'hasDateAndWorker', workerExists && dateIsValid);\n        if (results.timesheets) {\n          (0, _object.set)(results, 'timesheets', (0, _object.get)(results, 'timesheets').sortBy('project.sortIndex, task.sortIndex'));\n        }\n        return results;\n      });\n    },\n    setupController(controller) {\n      this._super(...arguments);\n      const workers = (0, _object.get)(this.modelFor(this.basePath + '.timesheets'), 'workers');\n      let activeWorkers = [];\n      if ((0, _object.get)(workers, 'length')) {\n        activeWorkers = workers.filterBy('isActive');\n      }\n      (0, _object.set)(controller, 'workers', workers);\n      (0, _object.set)(controller, 'activeWorkers', activeWorkers);\n    },\n    afterModel(model) {\n      const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n      const workerEntity = (0, _object.get)(model, 'results.worker.entity.id');\n      if (workerEntity !== entityId && workerEntity) {\n        this.router.transitionTo(this.basePath + '.timesheets');\n      }\n    },\n    actions: {\n      willTransition() {\n        this._super(...arguments);\n\n        // Remove all of the unsaved timesheets\n        const timesheets = (0, _object.get)(this, 'controller.model.timesheets');\n        if (!timesheets || !(0, _object.get)(timesheets, 'length')) return true;\n        (0, _object.get)(this, 'controller.model.timesheets').filterBy('isNew').forEach(sheet => sheet.destroyRecord());\n        return true;\n      }\n    }\n  });\n});","define(\"portal/routes/entity/builda-price/operations/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    beforeModel(transition) {\n      if (transition.targetName === this.fullRouteName) this.router.transitionTo('entity.builda-price');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\", \"@ember/service\"], function (_exports, _route, _menuRoute, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    get defaultRoute() {\n      if (this.newFeatureFlags.includesFeatureFlags('canManagePayroll')) return 'entity.builda-price.operations.outgoing.payroll';\n      if (this.newFeatureFlags.includesFeatureFlags('canUseReportBuilder')) return 'entity.builda-price.operations.outgoing.report-builder';\n      return 'entity.builda-price';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/invoices/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"portal/models/entity-invoice-option\", \"moment\", \"portal/utils/search-filter\"], function (_exports, _asyncArrowRuntime, _route, _service, _object, _entityInvoiceOption, _moment, _searchFilter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"portal/models/entity-invoice-option\",0,\"moment\",0,\"portal/utils/search-filter\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"queryParams\", {\n        searchTerm: {\n          refreshModel: true\n        },\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        },\n        invoiceType: {\n          refreshModel: true\n        },\n        sortBy: {\n          refreshModel: true\n        },\n        sortDirection: {\n          refreshModel: true\n        },\n        contact: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"invoices\", []);\n      _defineProperty(this, \"invoiceFilter\", void 0);\n      _defineProperty(this, \"sort\", void 0);\n      _defineProperty(this, \"invoicePage\", void 0);\n      _defineProperty(this, \"getInvoices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (startDate, endDate, status, searchTerm, invoiceType, sortBy, sortDirection, contact) {\n          const invoiceFilter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          if (startDate) {\n            invoiceFilter.and.push({\n              field: 'dateCreated',\n              op: 'GE',\n              value: (0, _moment.default)(startDate).startOf('day').toISOString()\n            });\n          }\n          if (endDate) {\n            invoiceFilter.and.push({\n              field: 'dateCreated',\n              op: 'LE',\n              value: (0, _moment.default)(endDate).endOf('day').toISOString()\n            });\n          }\n          if (status && status !== 'ALL') invoiceFilter.and.push({\n            field: 'status',\n            op: 'EQ',\n            value: status\n          });\n          if (invoiceType && invoiceType !== 'ALL') invoiceFilter.and.push({\n            field: 'invoiceType',\n            op: 'EQ',\n            value: invoiceType\n          });\n          if (contact) {\n            invoiceFilter.and.push({\n              field: 'toContact.name',\n              op: 'EQ',\n              value: contact\n            });\n          }\n          if (searchTerm?.length) {\n            invoiceFilter.and.push((0, _searchFilter.default)(['toContact.name', 'invoiceNumber'], searchTerm));\n          }\n          if (JSON.stringify(invoiceFilter) !== JSON.stringify(this.invoiceFilter) || this.sort !== `${sortDirection}_${sortBy}`) {\n            this.invoicePage = undefined;\n            this.invoiceFilter = invoiceFilter;\n            this.invoices = [];\n          }\n          if (this.invoicePage && this.invoicePage?.currentPage >= this.invoicePage?.totalPages) return this.invoices;\n          const nextPageNumber = (this.invoicePage?.currentPage || 0) + 1;\n          const nextPage = yield this.store.query('invoice', {\n            filter: invoiceFilter,\n            sort: sortDirection === 'desc' ? `-${sortBy}` : sortBy,\n            include: 'items',\n            page: {\n              size: 10,\n              number: nextPageNumber\n            }\n          });\n          this.sort = `${sortDirection}_${sortBy}`;\n          this.invoicePage = nextPage.meta;\n          this.invoices = [...this.invoices, ...nextPage.toArray()];\n          return this.invoices;\n        }\n      }), {\n        restartable: true\n      }, \"getInvoices\", null));\n      _defineProperty(this, \"getInvoiceOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          let option = yield this.store.query('entity-invoice-option', {\n            filter\n          }).then(r => r?.[0]);\n          if (!option) option = _entityInvoiceOption.default.defaultOptionsRecord(this.store, this.sessionData.entity).save();\n          return option;\n        }\n      }), null, \"getInvoiceOptions\", null));\n    }\n    deactivate() {\n      this.invoices = [];\n      this.invoiceFilter = undefined;\n      this.invoicePage = undefined;\n    }\n    model({\n      startDate,\n      endDate,\n      status = 'ALL',\n      searchTerm,\n      invoiceType = 'ALL',\n      sortBy = 'dateCreated',\n      sortDirection = 'desc',\n      contact\n    }) {\n      this.getInvoices.perform(startDate, endDate, status, searchTerm, invoiceType, sortBy, sortDirection, contact);\n      this.getInvoiceOptions.perform();\n      return {\n        invoices: this.getInvoices,\n        invoiceOptions: this.getInvoiceOptions\n      };\n    }\n    resetController(controller, isExiting) {\n      if (isExiting) {\n        controller.set('invoiceChangeSet', null);\n      }\n    }\n    willTransition() {\n      const invoices = this.store.peekAll('invoice');\n      const newlyCreatedInvoice = invoices.filter(i => i.isNew);\n      if (newlyCreatedInvoice?.[0]) {\n        newlyCreatedInvoice[0].destroyRecord();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/invoices/invoice\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"ember-concurrency\", \"@glimmer/tracking\", \"@ember/object/proxy\"], function (_exports, _asyncArrowRuntime, _route, _service, _object, _emberChangeset, _emberConcurrency, _tracking, _proxy) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@glimmer/tracking\",0,\"@ember/object/proxy\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"currentInvoice\", _descriptor6, this);\n      _defineProperty(this, \"getInvoice\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceId) {\n          const invoice = yield this.store.findRecord('invoice', invoiceId, {\n            include: 'attachments,toContact,items,referencedInvoice,items.projects',\n            reload: true\n          });\n          return invoice;\n        }\n      }), null, \"getInvoice\", null));\n      _defineProperty(this, \"_validateInvoiceNumber\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceNumber) {\n          yield (0, _emberConcurrency.timeout)(1000); // delay the api call for validation\n\n          const response = yield this.buildaPrice.validateInvoiceNumber({\n            entity: this.sessionData.entity.id,\n            invoiceNumber,\n            id: this.currentInvoice.id\n          });\n          return response;\n        }\n      }), {\n        restartable: true\n      }, \"_validateInvoiceNumber\", null));\n      _defineProperty(this, \"invoiceValidationMap\", {\n        invoiceNumber: this.validateInvoiceNumber,\n        toContact: this.validateToContact,\n        totalPrice: this.validateTotalPrice\n      });\n      _defineProperty(this, \"invoiceValidator\", async ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue || oldValue;\n        if (key === 'invoiceNumber') {\n          return await this.validateInvoiceNumber(value, newValue);\n        }\n        if (key === 'toContact') {\n          return this.validateToContact(newValue, oldValue);\n        }\n        if (key === 'totalPrice') {\n          return this.validateTotalPrice();\n        }\n        return true;\n      });\n      _defineProperty(this, \"createInvoiceChangeSet\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoice) {\n          yield invoice.last;\n          this.currentInvoice = invoice.last.value;\n          return (0, _emberChangeset.Changeset)(this.currentInvoice, this.invoiceValidator, this.invoiceValidationMap);\n        }\n      }), null, \"createInvoiceChangeSet\", null));\n      _defineProperty(this, \"getInvoiceItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoice) {\n          yield invoice.last;\n          const invoiceId = invoice.last.value.id;\n          const invoiceItems = this.store.peekAll('invoice-item').filter(item => {\n            return item.safeBelongsToValue('invoice')?.id === invoiceId;\n          }).sortBy('sortIndex');\n          return invoiceItems.toArray();\n        }\n      }), null, \"getInvoiceItems\", null));\n      _defineProperty(this, \"getSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const suppliers = yield this.store.query('contact', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            }\n          }).then(r => r?.toArray());\n          return suppliers;\n        }\n      }), null, \"getSuppliers\", null));\n      _defineProperty(this, \"getInvoicePermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoiceItems) {\n          yield invoiceItems.last;\n          let canManageInvoices = this.newFeatureFlags.includesFeatureFlags('canManageInvoices');\n          let canApproveInvoices = this.newFeatureFlags.includesFeatureFlags('canApproveInvoices');\n          let canUseFileStorage = this.newFeatureFlags.includesFeatureFlags('canUseFileStorage');\n          let canManageFileStorage = this.newFeatureFlags.includesFeatureFlags('canManageFileStorage');\n          if (!canManageInvoices || !canApproveInvoices || !canUseFileStorage || !canManageFileStorage) {\n            const projectIds = [...new Set(invoiceItems.last.value.map(item => item.hasMany('projects').value()?.map(i => i.belongsTo('project').id())).flat().filter(Boolean))];\n            if (projectIds.length) {\n              if (!canManageInvoices) {\n                canManageInvoices = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canManageInvoices'));\n              }\n              if (!canApproveInvoices) {\n                canApproveInvoices = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canApproveInvoices'));\n              }\n              if (!canUseFileStorage) {\n                canUseFileStorage = projectIds.every(id => this.sessionData.user?.includesSomeClaimsAboutProject(id, 'canViewFileStorage', 'canMangeFileStorage'));\n              }\n              if (!canManageFileStorage) {\n                canManageFileStorage = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canManageFileStorage'));\n              }\n            }\n          }\n          return {\n            canManageInvoices,\n            canApproveInvoices,\n            canUseFileStorage,\n            canManageFileStorage\n          };\n        }\n      }), null, \"getInvoicePermissions\", null));\n      _defineProperty(this, \"getInvoiceOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let option = yield this.store.simpleQuery('entity-invoice-option', {\n            entity: this.sessionData.entity.id\n          }).then(r => r?.[0]);\n          return option;\n        }\n      }), null, \"getInvoiceOptions\", null));\n      _defineProperty(this, \"getRelatedInvoices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (invoice) {\n          yield invoice.last;\n          const relatedInvoices = yield this.store.query('invoice', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'referencedInvoice',\n                op: 'EQ',\n                value: invoice.last.value.id\n              }]\n            }\n          }).then(r => r?.toArray());\n          return relatedInvoices;\n        }\n      }), null, \"getRelatedInvoices\", null));\n    }\n    async validateInvoiceNumber(value, newValue) {\n      try {\n        const {\n          isUnique,\n          nextInvoiceNumber\n        } = await this._validateInvoiceNumber.perform(value);\n        if (!isUnique) return `${this.intl.t('validation.Invoice number already exists, use')} ${nextInvoiceNumber ? nextInvoiceNumber : this.intl.t('shared.purchase-order.a different one')}`;\n        return newValue && newValue.length > 0 && isUnique || this.intl.t('validation.Please provide a invoice number');\n      } catch (e) {\n        if (!(0, _emberConcurrency.didCancel)(e)) {\n          throw Error('Error validating invoice number');\n        }\n      }\n    }\n    validateToContact(newValue, oldValue) {\n      const hasExistedValue = newValue !== undefined && Boolean(oldValue.get('name'));\n      let hasNewValue = false;\n      if (newValue instanceof _proxy.default || newValue?.name) {\n        hasNewValue = Boolean(newValue.get('name'));\n      }\n      return hasExistedValue || hasNewValue || this.intl.t('validation.Please select a contact');\n    }\n    validateTotalPrice() {\n      return this.controller?.invoiceTotalError || true;\n    }\n    model({\n      invoice_id: invoiceId\n    }) {\n      this.getInvoice.perform(invoiceId);\n      this.getInvoiceItems.perform(this.getInvoice);\n      this.getInvoiceOptions.perform();\n      this.createInvoiceChangeSet.perform(this.getInvoice);\n      this.getInvoicePermissions.perform(this.getInvoiceItems);\n      this.getSuppliers.perform();\n      this.getRelatedInvoices.perform(this.getInvoice);\n      return {\n        suppliers: this.getSuppliers,\n        invoice: this.getInvoice,\n        invoiceItems: this.getInvoiceItems,\n        invoiceOption: this.getInvoiceOptions,\n        invoiceChangeSet: this.createInvoiceChangeSet,\n        invoicePermissions: this.getInvoicePermissions,\n        relatedInvoices: this.getRelatedInvoices\n      };\n    }\n    willTransition(transition) {\n      const isPOChangeSetDirty = this.controller?.invoiceChangeSet?.isDirty;\n      const invoiceItems = this.store.peekAll('invoice-item');\n      const itemsWithDirtyAttributes = invoiceItems.filter(item => item?.isNew || item?.hasDirtyAttributes);\n      if (isPOChangeSetDirty || itemsWithDirtyAttributes.length) {\n        if (!confirm('You have unsaved changes that will be lost if you decide to leave, do you want continue?')) {\n          transition.abort();\n        } else {\n          itemsWithDirtyAttributes.map(item => item.unloadRecord());\n          this.controller._invoiceItems = null;\n          this.controller?.invoiceChangeSet?.rollback();\n        }\n      } else {\n        this.controller._invoiceItems = null;\n      }\n    }\n    resetController(controller) {\n      // always close the edit modals when leaving the route\n      controller.currentInvoiceItem = undefined;\n      controller.isDeletingInvoice = false;\n      controller.isCreatingCreditNote = false;\n      controller.isEditingInvoice = false;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"currentInvoice\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/payroll\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"rsvp\", \"moment\", \"portal/helpers/chunk-callback\", \"portal/config/environment\", \"@ember/object\"], function (_exports, _route, _service, _rsvp, _moment, _chunkCallback, _environment, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"rsvp\",0,\"moment\",0,\"portal/helpers/chunk-callback\",0,\"portal/config/environment\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    basePath: 'entity.builda-price.operations.outgoing',\n    queryParams: {\n      endDate: {\n        refreshModel: true\n      },\n      startDate: {\n        refreshModel: true\n      }\n    },\n    beforeModel() {\n      const payrollPath = this.basePath + '.payroll';\n      const {\n        startDate,\n        endDate\n      } = this.paramsFor(payrollPath);\n      if (!startDate || !endDate) {\n        // Report defaults to 2 week ending today.\n        const startDate = (0, _moment.default)().startOf('isoWeek').subtract(1, 'weeks').format('YYYY-MM-DD');\n        const endDate = (0, _moment.default)().endOf('isoWeek').format('YYYY-MM-DD');\n        this.router.replaceWith(payrollPath, {\n          queryParams: {\n            startDate,\n            endDate\n          }\n        });\n      }\n    },\n    async model({\n      startDate,\n      endDate\n    }) {\n      const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n      const workers = this.store.simpleQuery('worker', {\n        entity: entityId,\n        isContractor: false\n      }).then(workers => workers.sortBy('firstName'));\n      const {\n        timesheetStatuses = [],\n        timesheets = [],\n        timesheetNotes = []\n      } = await workers.then(workers => {\n        if (!(0, _object.get)(workers, 'length')) return _rsvp.default.resolve({});\n        const workerIds = workers.mapBy('id');\n        return _rsvp.default.hash({\n          timesheetStatuses: (0, _chunkCallback.default)(workerIds, _environment.default.chunkCallbackSize, workerIds => this.store.simpleQuery('timesheet-status', {\n            worker: {\n              $in: workerIds\n            },\n            date: {\n              $gte: startDate,\n              $lte: endDate\n            }\n          })),\n          timesheets: (0, _chunkCallback.default)(workerIds, _environment.default.chunkCallbackSize, workerIds => this.store.simpleQuery('timesheet', {\n            worker: {\n              $in: workerIds\n            },\n            date: {\n              $gte: startDate,\n              $lte: endDate\n            }\n          }).then(timesheets => timesheets.toArray()).then(timesheets => timesheets.filter(\n          // remove the timesheets we don't have access to see the project or tasks for\n          t => {\n            return Boolean(t.belongsTo('project').id() && t.belongsTo('task').id());\n          }))),\n          timesheetNotes: (0, _chunkCallback.default)(workerIds, _environment.default.chunkCallbackSize, workerIds => this.store.simpleQuery('timesheet-note', {\n            worker: {\n              $in: workerIds\n            },\n            date: {\n              $gte: startDate,\n              $lte: endDate\n            }\n          }))\n        });\n      });\n      const timesheetProjectIds = timesheets.mapBy('project.id').uniq().filter(id => id);\n      const projects = timesheetProjectIds.length ? this.store.simpleQuery('project', {\n        _id: {\n          $in: timesheetProjectIds\n        }\n      }) : [];\n      const timesheetTaskIds = timesheets.mapBy('task.id').uniq().filter(id => id);\n      const tasks = timesheetProjectIds.length ? (0, _chunkCallback.default)(timesheetProjectIds, _environment.default.chunkCallbackSize, ids =>\n      // get all the project tasks into the store for the breadcrumbs\n      this.store.simpleQuery('task', {\n        project: {\n          $in: ids\n        }\n      })).then(tasks =>\n      // only keep the tasks with direct timesheets for the page\n      tasks.filter(t => timesheetTaskIds.includes((0, _object.get)(t, 'id')))) : [];\n      return _rsvp.default.hash({\n        workers,\n        timesheetStatuses,\n        timesheetNotes,\n        projects,\n        timesheets,\n        tasks,\n        basePath: this.basePath,\n        refresh: () => this.refresh()\n      });\n    },\n    actions: {\n      willTransition() {\n        this._super(...arguments);\n\n        // Set all the currentChargeOutRate attributes back to null to avoid leaking state\n        const workers = (0, _object.get)(this, 'controller.model.workers');\n        if (workers) workers.forEach(w => (0, _object.set)(w, 'currentChargeOutRate', null));\n      }\n    }\n  });\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/purchase-orders\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"getTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects) {\n          yield projects.last;\n          const tasks = yield this.store.query('task', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project.status',\n                op: 'IN',\n                value: ['OPEN', 'HELD']\n              }]\n            },\n            sort: 'path',\n            include: 'children'\n          }).then(tasks => tasks.toArray());\n          return tasks;\n        }\n      }), null, \"getTasks\", null));\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.query('project', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'status',\n                op: 'IN',\n                value: ['OPEN', 'HELD']\n              }]\n            },\n            sort: 'sortIndex'\n          }).then(projects => projects.toArray());\n          return projects;\n        }\n      }), null, \"getProjects\", null));\n    }\n    model() {\n      this.getProjects.perform();\n      this.getTasks.perform(this.getProjects);\n      return {\n        projects: this.getProjects,\n        tasks: this.getTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/purchase-orders/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\", \"@ember/object\", \"portal/models/purchase-order-option\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment, _object, _purchaseOrderOption) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\",0,\"@ember/object\",0,\"portal/models/purchase-order-option\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"queryParams\", {\n        searchTerm: {\n          refreshModel: true\n        },\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getPurchaseOrders\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (startDate, endDate, status, searchTerm) {\n          const purchaseOrderQuery = {\n            entity: this.sessionData.entity.id\n          };\n          if (status && status !== 'ALL') purchaseOrderQuery.status = status;\n          purchaseOrderQuery.dateCreated = {\n            $gte: (0, _moment.default)(startDate).startOf('day').toISOString(),\n            $lte: (0, _moment.default)(endDate).endOf('day').toISOString()\n          };\n          if (searchTerm) purchaseOrderQuery.purchaseOrderNumber = {\n            $like: searchTerm\n          };\n          const purchaseOrders = yield this.store.simpleQuery('purchase-order', purchaseOrderQuery, {\n            include: 'items'\n          });\n          return purchaseOrders.toArray();\n        }\n      }), null, \"getPurchaseOrders\", null));\n      _defineProperty(this, \"getPurchaseOrderOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let option = yield this.store.simpleQuery('purchase-order-option', {\n            entity: this.sessionData.entity.id\n          }).then(r => r?.[0]);\n          if (!option) option = _purchaseOrderOption.default.defaultOptionsRecord(this.store, this.sessionData.entity).save();\n          return option;\n        }\n      }), null, \"getPurchaseOrderOptions\", null));\n    }\n    model({\n      startDate,\n      endDate,\n      status = 'ALL',\n      searchTerm\n    }) {\n      const purchaseOrderRoute = 'entity.builda-price.operations.outgoing.purchase-orders';\n      const {\n        projects\n      } = this.modelFor(purchaseOrderRoute);\n      this.getPurchaseOrders.perform(startDate, endDate, status, searchTerm);\n      this.getPurchaseOrderOptions.perform();\n      return {\n        purchaseOrders: this.getPurchaseOrders,\n        purchaseOrderOptions: this.getPurchaseOrderOptions,\n        projects\n      };\n    }\n    willTransition() {\n      const purchaseOrders = this.store.peekAll('purchase-order');\n      const newlyCreatedPurchaseOrder = purchaseOrders.filter(i => i.isNew);\n      if (newlyCreatedPurchaseOrder?.[0]) {\n        newlyCreatedPurchaseOrder?.[0].destroyRecord();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/purchase-orders/purchase-order\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"ember-changeset\", \"ember-concurrency\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _route, _service, _object, _emberChangeset, _emberConcurrency, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/object\",0,\"ember-changeset\",0,\"ember-concurrency\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _initializerDefineProperty(this, \"currentPurchaseOrder\", _descriptor6, this);\n      _defineProperty(this, \"getPurchaseOrder\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderId) {\n          const purchaseOrder = yield this.store.findRecord('purchase-order', purchaseOrderId, {\n            include: 'attachments.attachment,supplier'\n          });\n          return purchaseOrder;\n        }\n      }), null, \"getPurchaseOrder\", null));\n      _defineProperty(this, \"validatePurchaseOrderNumber\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderNumber) {\n          yield (0, _emberConcurrency.timeout)(1000); // delay the api call for validation\n\n          const response = yield this.buildaPrice.validatePurchaseOrderNumber({\n            entity: this.sessionData.entity.id,\n            purchaseOrderNumber,\n            _id: this.currentPurchaseOrder.id\n          });\n          return response;\n        }\n      }), {\n        restartable: true\n      }, \"validatePurchaseOrderNumber\", null));\n      _defineProperty(this, \"purchaseOrderValidator\", async ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        const value = newValue || oldValue;\n        if (key === 'purchaseOrderNumber') {\n          try {\n            const {\n              isUnique,\n              nextPoNumber\n            } = await this.validatePurchaseOrderNumber.perform(value);\n            if (!isUnique) return `${this.intl.t('validation.purchaseOrderNumberAlreadyExists')} ${nextPoNumber ? nextPoNumber : this.intl.t('shared.purchase-order.a different one')}`;\n            return newValue && newValue.length > 0 && isUnique || this.intl.t('validation.Please provide a purchase order number');\n          } catch (e) {\n            if (!(0, _emberConcurrency.didCancel)(e)) {\n              throw Error('Error validating purchase order number');\n            }\n          }\n        } else {\n          return true;\n        }\n      });\n      _defineProperty(this, \"createPurchaseOrderChangeSet\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrder) {\n          yield purchaseOrder.last;\n          this.currentPurchaseOrder = purchaseOrder.last.value;\n          return (0, _emberChangeset.Changeset)(purchaseOrder.last.value, this.purchaseOrderValidator);\n        }\n      }), null, \"createPurchaseOrderChangeSet\", null));\n      _defineProperty(this, \"getPurchaseOrderItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderId) {\n          const purchaseOrderItems = yield this.store.simpleQuery('purchase-order-item', {\n            entity: this.sessionData.entity.id,\n            purchaseOrder: purchaseOrderId\n          });\n          return purchaseOrderItems.sortBy('sortIndex');\n        }\n      }), null, \"getPurchaseOrderItems\", null));\n      _defineProperty(this, \"getPurchaseOrderPermissions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (purchaseOrderItems) {\n          yield purchaseOrderItems.last;\n          let canManagePurchaseOrders = this.newFeatureFlags.includesFeatureFlags('canManagePurchaseOrders');\n          let canApprovePurchaseOrders = this.newFeatureFlags.includesFeatureFlags('canApprovePurchaseOrders');\n          let canUseFileStorage = this.newFeatureFlags.includesFeatureFlags('canUseFileStorage');\n          let canManageFileStorage = this.newFeatureFlags.includesFeatureFlags('canManageFileStorage');\n          if (!canManagePurchaseOrders || !canApprovePurchaseOrders || !canUseFileStorage || !canManageFileStorage) {\n            const tasks = yield Promise.all(purchaseOrderItems.last.value.map(item => {\n              return item ? item.belongsTo('task').load() : null;\n            }));\n            const validTasks = tasks.filter(task => task !== null);\n            const projects = yield Promise.all(validTasks.map(task => task.belongsTo('project').load()));\n            const projectIds = [...new Set(projects.map(project => project.id))];\n            if (projectIds.length) {\n              if (!canManagePurchaseOrders) {\n                canManagePurchaseOrders = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canManagePurchaseOrders'));\n              }\n              if (!canApprovePurchaseOrders) {\n                canApprovePurchaseOrders = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canApprovePurchaseOrders'));\n              }\n              if (!canUseFileStorage) {\n                canUseFileStorage = projectIds.every(id => this.sessionData.user?.includesSomeClaimsAboutProject(id, 'canViewFileStorage', 'canMangeFileStorage'));\n              }\n              if (!canManageFileStorage) {\n                canManageFileStorage = projectIds.every(id => this.sessionData.user?.includesClaimsAboutProject(id, 'canManageFileStorage'));\n              }\n            }\n          }\n          return {\n            canManagePurchaseOrders,\n            canApprovePurchaseOrders,\n            canUseFileStorage,\n            canManageFileStorage\n          };\n        }\n      }), null, \"getPurchaseOrderPermissions\", null));\n      _defineProperty(this, \"getPurchaseOrderOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          let option = yield this.store.simpleQuery('purchase-order-option', {\n            entity: this.sessionData.entity.id\n          }).then(r => r?.[0]);\n          return option;\n        }\n      }), null, \"getPurchaseOrderOptions\", null));\n    }\n    model({\n      purchase_order_id: purchaseOrderId\n    }) {\n      const purchaseOrderRoute = 'entity.builda-price.operations.outgoing.purchase-orders';\n      const {\n        projects,\n        tasks\n      } = this.modelFor(purchaseOrderRoute);\n      this.getPurchaseOrder.perform(purchaseOrderId);\n      this.getPurchaseOrderItems.perform(purchaseOrderId);\n      this.getPurchaseOrderOptions.perform();\n      this.createPurchaseOrderChangeSet.perform(this.getPurchaseOrder);\n      this.getPurchaseOrderPermissions.perform(this.getPurchaseOrderItems);\n      return {\n        projects,\n        tasks,\n        purchaseOrder: this.getPurchaseOrder,\n        purchaseOrderItems: this.getPurchaseOrderItems,\n        purchaseOrderOption: this.getPurchaseOrderOptions,\n        purchaseOrderChangeSet: this.createPurchaseOrderChangeSet,\n        purchaseOrderPermissions: this.getPurchaseOrderPermissions\n      };\n    }\n    willTransition(transition) {\n      const isPOChangeSetDirty = this.controller?.purchaseOrderChangeSet?.isDirty;\n      const purchaseOrderItems = this.store.peekAll('purchase-order-item');\n      const itemsWithDirtyAttributes = purchaseOrderItems.filter(item => item?.isNew || item?.hasDirtyAttributes);\n      if (isPOChangeSetDirty || itemsWithDirtyAttributes.length) {\n        if (!confirm(this.intl.t('entity.builda-price.operations.outgoing.purchase-orders.purchase-order.youHaveUnsavedChangesThatWillBeLostIfYouDecideToLeaveDoYouWantContinue'))) {\n          transition.abort();\n        } else {\n          itemsWithDirtyAttributes.map(item => item.unloadRecord());\n          this.controller._purchaseOrderItems = null;\n          this.controller?.purchaseOrderChangeSet?.rollback();\n        }\n      } else {\n        this.controller._purchaseOrderItems = null;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"currentPurchaseOrder\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/report-builder/csv\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    model() {\n      // this transitions to the parent route if you refresh the model - pretty vague\n      this.router.transitionTo('entity.builda-price.operations.outgoing.report-builder.index');\n    }\n    serialize() {\n      return {\n        csv_data: 'csv'\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/report-builder/excel\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    model() {\n      // this transitions to the parent route if you refresh the model - pretty vague\n      this.router.transitionTo('entity.builda-price.operations.outgoing.report-builder.index');\n    }\n    serialize() {\n      return {\n        excel_data: 'excel'\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/report-builder/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/object\", \"@ember/object/computed\", \"portal/utils/computed\", \"@ember/service\", \"portal/helpers/chunk-callback\", \"moment\", \"lodash\", \"portal/config/environment\", \"portal/utils/report-builder-mark-as-reported\"], function (_exports, _asyncArrowRuntime, _route, _object, _computed, _computed2, _service, _chunkCallback, _moment, _lodash, _environment, _reportBuilderMarkAsReported) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.WorkerGroup = _exports.InvoiceGroup = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"portal/utils/computed\",0,\"@ember/service\",0,\"portal/helpers/chunk-callback\",0,\"ember-concurrency\",0,\"moment\",0,\"lodash\",0,\"portal/config/environment\",0,\"portal/utils/report-builder-mark-as-reported\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const InvoiceGroup = _exports.InvoiceGroup = _object.default.extend({\n    invoice: null,\n    items: null,\n    itemsVisible: false,\n    allSelected: (0, _object.computed)('items.@each.selected', function () {\n      return (0, _object.get)(this, 'items').every(item => (0, _object.get)(item, 'selected'));\n    }),\n    partSelected: (0, _object.computed)('allSelected', 'items.@each.selected', function () {\n      return !(0, _object.get)(this, 'allSelected') && (0, _object.get)(this, 'items').some(item => (0, _object.get)(item, 'selected'));\n    }),\n    nReported: (0, _object.computed)('items.@each.reported', function () {\n      return (0, _object.get)(this, 'items').reduce((total, item) => (0, _object.get)(item, 'reported') ? total + 1 : total, 0);\n    }),\n    allReported: (0, _object.computed)('items.length', 'nReported', function () {\n      return (0, _object.get)(this, 'nReported') === (0, _object.get)(this, 'items.length');\n    }),\n    totalPrice: (0, _computed2.sumBy)('items', 'totalPrice'),\n    selectedTotalPrice: (0, _object.computed)('items.@each.selected', function () {\n      return this.items.reduce((total, item) => item.selected ? total + item.totalPrice : total, 0);\n    })\n  });\n  const WorkerGroup = _exports.WorkerGroup = _object.default.extend({\n    project: null,\n    tasks: null,\n    worker: null,\n    timesheets: null,\n    itemsVisible: false,\n    currentChargeOutRate: (0, _computed.alias)('worker.currentChargeOutRate'),\n    allSelected: (0, _object.computed)('timesheets.@each.selected', function () {\n      return (0, _object.get)(this, 'timesheets').every(item => (0, _object.get)(item, 'selected'));\n    }),\n    partSelected: (0, _object.computed)('allSelected', 'timesheets.@each.selected', function () {\n      return !(0, _object.get)(this, 'allSelected') && (0, _object.get)(this, 'timesheets').some(item => (0, _object.get)(item, 'selected'));\n    }),\n    nReported: (0, _object.computed)('timesheets.@each.reported', function () {\n      return (0, _object.get)(this, 'timesheets').reduce((total, sheet) => (0, _object.get)(sheet, 'reported') ? total + 1 : total, 0);\n    }),\n    allReported: (0, _object.computed)('nReported', 'timesheets.length', function () {\n      return (0, _object.get)(this, 'nReported') === (0, _object.get)(this, 'timesheets.length');\n    }),\n    timesheetTotals: (0, _object.computed)('project', 'tasks.@each.id', 'timesheets', 'worker.currentChargeOutRate', function () {\n      const worker = (0, _object.get)(this, 'worker');\n      const project = (0, _object.get)(this, 'project');\n      const tasks = (0, _object.get)(this, 'tasks');\n      const timesheets = (0, _object.get)(this, 'timesheets');\n      const query = {\n        project\n      };\n      if (tasks) query.tasks = tasks;\n      return worker.calculateWorkForProject(query, timesheets);\n    }),\n    selectedTimesheets: (0, _object.computed)('timesheets.@each.selected', function () {\n      return (0, _object.get)(this, 'timesheets').filter(timesheet => (0, _object.get)(timesheet, 'selected'));\n    })\n  });\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", {\n        endDate: {\n          refreshModel: true\n        },\n        startDate: {\n          refreshModel: true\n        },\n        selectedProjectId: {\n          refreshModel: true\n        },\n        filterByDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"fetchProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id\n          });\n          const sortedProjects = projects.sortBy('sortIndex').toArray();\n          return sortedProjects;\n        }\n      }), null, \"fetchProjects\", null));\n      _defineProperty(this, \"fetchTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedProjectId) {\n          if (!selectedProjectId) return [];\n          const tasks = yield this.store.query('task', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: selectedProjectId\n              }]\n            },\n            sort: 'path',\n            include: 'children'\n          }).then(tasks => tasks.toArray());\n          return tasks;\n        }\n      }), null, \"fetchTasks\", null));\n      _defineProperty(this, \"fetchWorkerJobAllocations\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedProjectId) {\n          if (!selectedProjectId) return [];\n          const workerJobAllocations = yield this.store.simpleQuery('worker-job-allocation', {\n            project: selectedProjectId,\n            entity: this.sessionData.entity.id\n          });\n          return workerJobAllocations;\n        }\n      }), null, \"fetchWorkerJobAllocations\", null));\n      _defineProperty(this, \"fetchTimesheets\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* ({\n          selectedProjectId,\n          selectedTaskIds,\n          startDate,\n          endDate,\n          filterByDate\n        }) {\n          // return an empty array if project is not selected\n          if (!selectedProjectId) return [];\n\n          // Fetch all the timesheets that match the report criteria\n          const timesheetsQuery = {\n            project: selectedProjectId\n          };\n          // only add the date filter if we are filtering by date\n          if (filterByDate) {\n            timesheetsQuery.date = {\n              $gte: startDate,\n              $lte: endDate\n            };\n          }\n          let timesheets = [];\n          if (selectedTaskIds?.length) {\n            timesheets = yield (0, _chunkCallback.default)(selectedTaskIds, _environment.default.chunkCallbackSize, ids => {\n              return this.store.simpleQuery('timesheet', {\n                ...timesheetsQuery,\n                task: {\n                  $in: ids\n                }\n              }, {\n                include: 'worker'\n              });\n            });\n            timesheets = timesheets.sortBy('date');\n            return timesheets;\n          }\n          timesheets = yield this.store.simpleQuery('timesheet', timesheetsQuery, {\n            include: 'worker'\n          });\n          timesheets = timesheets.sortBy('date');\n          return timesheets;\n        }\n      }), null, \"fetchTimesheets\", null));\n      _defineProperty(this, \"fetchInvoicesAndItems\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* ({\n          selectedProjectId,\n          selectedTaskIds,\n          startDate,\n          endDate,\n          filterByDate\n        }, _projectTasks) {\n          // return an empty array if project is not selected\n          if (!selectedProjectId) return {\n            invoices: [],\n            invoiceItems: []\n          };\n\n          // only add the date filter if we are filtering by date\n          const invoiceItemQuery = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }],\n            or: []\n          };\n          if (filterByDate) {\n            invoiceItemQuery.and.push({\n              field: 'bill.issueDate',\n              op: 'GE',\n              value: (0, _moment.default)(startDate).startOf('day').toISOString()\n            });\n            invoiceItemQuery.and.push({\n              field: 'bill.issueDate',\n              op: 'LE',\n              value: (0, _moment.default)(endDate).endOf('day').toISOString()\n            });\n          }\n          if (selectedTaskIds?.length) {\n            const invoiceItems = yield (0, _chunkCallback.default)(selectedTaskIds, _environment.default.chunkCallbackSize, ids => {\n              const filter = JSON.parse(JSON.stringify(invoiceItemQuery));\n              filter.and.push({\n                field: 'task',\n                op: 'IN',\n                value: ids\n              });\n              return this.store.query('bill-item', {\n                filter: filter,\n                include: 'bill,bill.attachments'\n              });\n            }).then(r => r.toArray());\n            const invoices = this.store.peekAll('bill')?.toArray().filter(item => item.belongsTo('entity').id() === this.sessionData.entity.id);\n            return {\n              invoices,\n              invoiceItems\n            };\n          }\n          if (selectedProjectId) {\n            invoiceItemQuery.or.push({\n              field: 'project',\n              op: 'EQ',\n              value: selectedProjectId\n            });\n            invoiceItemQuery.or.push({\n              field: 'task.project',\n              op: 'EQ',\n              value: selectedProjectId\n            });\n          }\n          const invoiceItems = yield this.store.query('bill-item', {\n            filter: invoiceItemQuery,\n            include: 'bill,bill.attachments',\n            fields: {\n              'bill-items': '_meta.isMapped'\n            }\n          }).then(r => r.toArray());\n          const invoices = this.store.peekAll('bill')?.toArray().filter(item => item.belongsTo('entity').id() === this.sessionData.entity.id);\n          return {\n            invoices,\n            invoiceItems\n          };\n        }\n      }), null, \"fetchInvoicesAndItems\", null));\n    }\n    init() {\n      super.init(...arguments);\n      this.router.on('routeWillChange', transition => {\n        const isToReportBuilder = transition.to?.name === 'entity.build-price.reports.report-builder.index';\n        const isFromExportRoute = ['entity.build-price.reports.report-builder.pdf', 'entity.build-price.reports.report-builder.csv', 'entity.build-price.reports.report-builder.excel'].includes(transition.from?.name);\n        if (isToReportBuilder && !isFromExportRoute && this.controller != null) {\n          this.controller.resetPageOverrides();\n        }\n      });\n    }\n    createWorkerGroups({\n      timesheets,\n      projects,\n      tasks,\n      workerProjectAllocations,\n      selectedProjectId,\n      selectedTaskIds\n    }) {\n      const workersTimesheets = _lodash.default.groupBy(timesheets, sheet => sheet.belongsTo('worker').id());\n      return Object.keys(workersTimesheets).reduce((arr, workerId) => {\n        const worker = workersTimesheets[workerId][0].belongsTo('worker').value();\n        const timesheets = workersTimesheets[workerId];\n        const workerProjectAllocation = workerProjectAllocations.findBy('worker.id', workerId);\n\n        // TODO this is not nice\n        if (workerProjectAllocation) {\n          (0, _object.set)(worker, 'currentChargeOutRate', workerProjectAllocation.chargeOutRate);\n        } else {\n          (0, _object.set)(worker, 'currentChargeOutRate', worker.chargeOutRate);\n        }\n        return arr.concat(WorkerGroup.create({\n          worker,\n          timesheets,\n          project: projects.findBy('id', selectedProjectId),\n          tasks: selectedTaskIds?.length ? tasks.filter(t => selectedTaskIds.includes(t.id)) : null\n        }));\n      }, []);\n    }\n    createInvoiceGroups(invoices, invoiceItems) {\n      // Group the relevant items by invoice, ready to be added to their respective invoices\n      const groupedItems = _lodash.default.groupBy(invoiceItems, item => item.belongsTo('bill').id());\n      const invoiceWrappers = invoices.reduce((arr, invoice) => {\n        const items = groupedItems[invoice.id];\n        // Only include invoices with relevant items\n        if (items) {\n          return arr.concat(InvoiceGroup.create({\n            invoice,\n            items\n          }));\n        } else {\n          return arr;\n        }\n      }, []);\n      return invoiceWrappers.sortBy('invoice.issuer', 'invoice.issueDate');\n    }\n    clearExportedSelectedResources() {\n      const pdfController = this.controllerFor('entity.builda-price.operations.outgoing.report-builder.pdf');\n      const csvController = this.controllerFor('entity.builda-price.operations.outgoing.report-builder.csv');\n      const excelController = this.controllerFor('entity.builda-price.operations.outgoing.report-builder.excel');\n      if (pdfController?.downloaded || csvController?.downloaded || excelController?.downloaded) {\n        (0, _reportBuilderMarkAsReported.clearSelectedResources)(this.controller.reportData);\n        pdfController.set('downloaded', false);\n        csvController.set('downloaded', false);\n        excelController.set('downloaded', false);\n      }\n    }\n    async model({\n      startDate,\n      endDate,\n      selectedProjectId,\n      filterByDate\n    }) {\n      this.clearExportedSelectedResources();\n      const selectedTaskIds = this.controller?.selectedTaskIds || [];\n      const [projects, tasks] = await Promise.all([this.fetchProjects.perform(), this.fetchTasks.perform(selectedProjectId)]);\n      const [workerProjectAllocations, timesheets, {\n        invoices,\n        invoiceItems\n      }] = await Promise.all([this.fetchWorkerJobAllocations.perform(selectedProjectId), this.fetchTimesheets.perform({\n        selectedProjectId,\n        selectedTaskIds,\n        startDate,\n        endDate,\n        filterByDate\n      }), this.fetchInvoicesAndItems.perform({\n        selectedProjectId,\n        selectedTaskIds,\n        startDate,\n        endDate,\n        filterByDate\n      }, tasks)]);\n      const workerGroups = this.createWorkerGroups({\n        timesheets,\n        projects,\n        tasks,\n        workerProjectAllocations,\n        selectedProjectId,\n        selectedTaskIds\n      }); // eslint-disable-line max-len\n\n      const invoiceGroups = this.createInvoiceGroups(invoices, invoiceItems);\n      const invoiceGroupTypes = _lodash.default.groupBy(invoiceGroups, group => group.invoice.allocationType);\n      const materialInvoices = invoiceGroupTypes['MATERIALS'] || [];\n      const labourInvoices = invoiceGroupTypes['LABOUR'] || [];\n      const subcontractorInvoices = invoiceGroupTypes['SUBCONTRACTORS'] || [];\n      return {\n        projects,\n        tasks,\n        workers: workerGroups,\n        timesheets,\n        materialInvoices,\n        labourInvoices,\n        subcontractorInvoices,\n        refresh: () => this.refresh()\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/operations/outgoing/report-builder/pdf\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let PDFRoute = _exports.default = (_class = class PDFRoute extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    model() {\n      // this transitions to the parent route if you refresh the model - pretty vague\n      this.router.transitionTo('entity.builda-price.operations.outgoing.report-builder.index');\n    }\n    serialize() {\n      return {\n        pdf_data: 'pdf'\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n});","define(\"portal/routes/entity/builda-price/operations/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageIndex: {\n          refreshModel: true\n        },\n        sortBy: {\n          refreshModel: true\n        },\n        sortDirection: {\n          refreshModel: true\n        },\n        searchTerm: {\n          refreshModel: true\n        },\n        supplier: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [25, 50, 100, 500, 1000]);\n      _defineProperty(this, \"getProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (pageSize, pageIndex, sortBy, sortDirection, supplier, searchTerm) {\n          const filters = {\n            and: [{\n              field: 'entity',\n              operator: 'EQ',\n              value: this.sessionData.entity.id\n            }],\n            or: []\n          };\n          if (supplier?.length) filters.and.push({\n            field: 'supplierName',\n            operator: 'EQ',\n            value: supplier\n          });\n          if (searchTerm?.length) {\n            filters.or.push({\n              field: 'description',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n            filters.or.push({\n              field: 'sku',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n          }\n          let orderBy;\n          switch (sortBy) {\n            case 'Product':\n              orderBy = 'description';\n              break;\n            case 'Supplier':\n              orderBy = 'supplierName';\n              break;\n            case 'SKU':\n              orderBy = 'sku';\n              break;\n            case 'Unit':\n              orderBy = 'unit';\n              break;\n            case 'Unit price':\n              orderBy = 'unitPrice';\n              break;\n            default:\n              break;\n          }\n          const entityProducts = yield this.store.query('entity-product', {\n            filter: filters,\n            orderBy: orderBy || 'dateCreated',\n            orderByDirection: sortDirection || 'desc',\n            pageSize,\n            page: pageIndex\n          });\n          return entityProducts;\n        }\n      }), null, \"getProducts\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageIndex = 1,\n      sortBy = 'dateCreated',\n      sortDirection = 'desc',\n      supplier,\n      searchTerm\n    }) {\n      this.getProducts.perform(Number(pageSize), Number(pageIndex), sortBy, sortDirection, supplier, searchTerm);\n      return {\n        entity: this.sessionData.entity,\n        products: this.getProducts,\n        pageSize: Number(pageSize),\n        pageIndex: Number(pageIndex),\n        sortBy,\n        sortDirection,\n        searchTerm,\n        supplier,\n        pageSizes: this.pageSizes\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {}\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/projects/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"queryParams\", {\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (status) {\n          const projectQuery = {\n            entity: this.sessionData.entity.id\n          };\n          if (status !== 'ALL') projectQuery.status = status;\n          const projects = yield this.store.simpleQuery('project', projectQuery);\n          return projects.sortBy('sortIndex').toArray();\n        }\n      }), null, \"getProjects\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model({\n      status = 'OPEN'\n    }) {\n      return {\n        projects: this.getProjects.perform(status)\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          try {\n            const project = yield this.store.findRecord('project', projectId, {\n              reload: true,\n              adapterOptions: {\n                fields: {\n                  projects: '_meta.canDelete'\n                }\n              }\n            });\n            return project;\n          } catch (_) {\n            // this means we either don't have access to the project or the project doesn't exist\n            // go back to the projects list\n            this.router.transitionTo('entity.builda-price.projects');\n          }\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getOpenProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id,\n            status: 'OPEN'\n          });\n          return projects.sortBy('sortIndex').toArray();\n        }\n      }), null, \"getOpenProjects\", null));\n    }\n    model({\n      project_id: projectId\n    }) {\n      this.getProject.perform(projectId);\n      this.getOpenProjects.perform();\n      return {\n        project: this.getProject,\n        openProjects: this.getOpenProjects\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/documents\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"getAttachments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          // if you can manage the files for this project use the project relationship\n          // this way the front end will update when adding new attachments\n          if (this.newFeatureFlags.canManageFileStorage(project.last.value)) {\n            yield project.last.value.loadAttachments();\n            return project.last.value.myAttachments;\n          }\n          // we cant use the project relationship because it is not filtered by ac, make the request manually\n          const filter = {\n            and: [{\n              field: 'project',\n              op: 'EQ',\n              value: project.last.value.id\n            }]\n          };\n          const attachments = yield this.store.query('link-attachment-to-project', {\n            filter,\n            include: 'attachment',\n            sort: 'dateCreated'\n          }).then(r => r.map(a => a.belongsTo('attachment').value()));\n          return attachments;\n        }\n      }), null, \"getAttachments\", null));\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          if (!this.newFeatureFlags.canManageFileStorage(project.last.value) || !this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canManageUsers')) return [];\n          const userAttributes = yield this.store.simpleQuery('user-entity-attribute', {\n            entity: this.sessionData.entity.id,\n            attribute: 'canViewEntity'\n          });\n          if (!userAttributes.length) return [];\n          const userIds = userAttributes.map(ua => ua.belongsTo('user').id());\n          const users = yield this.store.simpleQuery('user', {\n            _id: {\n              $in: userIds\n            }\n          }, {\n            include: 'entityAttributes'\n          });\n          return users;\n        }\n      }), null, \"getUsers\", null));\n    }\n    async model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getAttachments.perform(project);\n      this.getUsers.perform(project);\n      return {\n        project,\n        attachments: this.getAttachments,\n        users: this.getUsers\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/estimates/estimate\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"engineData\", _descriptor, this);\n      _initializerDefineProperty(this, \"pricing\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n    }\n    async getEstimate(estimateId) {\n      const estimate = await this.store.findRecord('estimate', estimateId);\n      return estimate;\n    }\n    deactivate() {\n      if (this.newFeatureFlags.includesFeatureFlags('entityHasSupport')) this.helpCenter.showHelpCenter();\n    }\n\n    // this has to be a promise prevent the builda-price-client-addon from loading\n    async model({\n      estimate_id: estimateId\n    }) {\n      if (this.newFeatureFlags.includesFeatureFlags('entityHasSupport')) this.helpCenter.hideHelpCenter();\n      const estimate = await this.getEstimate(estimateId);\n      this.engineData.sessionId = await this.pricing.getSessionId();\n      this.engineData.jobId = estimate.pricingJobId;\n      return {\n        estimate\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"engineData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"pricing\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/estimates/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"pricing\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", {\n        filter: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getEstimates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* ({\n          projectId,\n          filter\n        }) {\n          const projectQuery = {\n            entity: this.sessionData.entity.id,\n            project: projectId\n          };\n          if (filter !== 'all') projectQuery.status = filter;\n          const estimates = yield this.store.simpleQuery('estimate', projectQuery);\n          return estimates.toArray();\n        }\n      }), null, \"getEstimates\", null));\n      _defineProperty(this, \"getUnlinkedEstimates\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const unlinkedEstimates = yield this.pricing.getUnlinkedEstimates();\n          return unlinkedEstimates;\n        }\n      }), null, \"getUnlinkedEstimates\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model({\n      filter = 'all'\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project_id: projectId\n      } = this.paramsFor(projectRoute);\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getEstimates.perform({\n        projectId,\n        filter\n      });\n      this.getUnlinkedEstimates.perform(projectId);\n      return {\n        project,\n        estimates: this.getEstimates,\n        unlinkedEstimates: this.getUnlinkedEstimates\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"pricing\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/financials\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"loadProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId, {\n            reload: true\n          });\n          return project;\n        }\n      }), null, \"loadProject\", null));\n      _defineProperty(this, \"loadBudget\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          yield this.loadTasks;\n          yield project.last.value.loadBudget();\n        }\n      }), null, \"loadBudget\", null));\n      _defineProperty(this, \"loadQuote\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          yield this.loadTasks;\n          yield project.last.value.loadQuote();\n        }\n      }), null, \"loadQuote\", null));\n      _defineProperty(this, \"loadTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          yield project.last.value.loadTaskChanges();\n        }\n      }), null, \"loadTasks\", null));\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project_id: projectId\n      } = this.paramsFor(projectRoute);\n\n      // reload the project incase the financials have changed\n      this.loadProject.perform(projectId);\n      this.loadTasks.perform(this.loadProject);\n      this.loadBudget.perform(this.loadProject);\n      this.loadQuote.perform(this.loadProject);\n      return {\n        project: this.loadProject,\n        loadBudget: this.loadBudget,\n        loadQuote: this.loadQuote\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/health-and-safety\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"ossEngineData\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n    async model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = await this.modelFor(projectRoute);\n      await project.last;\n\n      // set project Id\n      this.ossEngineData.setProjectId(project.last.value.id);\n\n      // set access token\n      this.ossEngineData.setAccessToken(this.sessionData.session.data.authenticated.access_token);\n      // set user object\n      this.ossEngineData.setUser(this.sessionData.user);\n      return {\n        project\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"ossEngineData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _route, _menuRoute, _tracking, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\",0,\"@glimmer/tracking\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      // this is similar logic to the project route sidebar\n      _initializerDefineProperty(this, \"defaultRoute\", _descriptor2, this);\n    }\n    // yes, the default route returns you to the projects page\n    async beforeModel() {\n      const project = await this.modelFor('entity.builda-price.projects.project').project.last;\n      if (this.newFeatureFlags.includesFeatureFlags(project, 'canUseTasks')) {\n        // if you can manage tasks for this project go to the tasks screen\n        this.defaultRoute = 'entity.builda-price.projects.project.tasks';\n      } else if (this.newFeatureFlags.includesFeatureFlags(project, 'canUseProjects')) {\n        this.defaultRoute = 'entity.builda-price.projects.project.settings';\n      } else if (this.newFeatureFlags.includesFeatureFlags(project, 'canUseEstimates')) {\n        // if you can manage estimates for this project go to the estimates screen\n        this.defaultRoute = 'entity.builda-price.projects.project.estimates';\n      } else {\n        // otherwise you have no business in this project so return to the projects route\n        this.defaultRoute = 'entity.builda-price.projects';\n      }\n    }\n    model() {\n      return this.modelFor('entity.builda-price.reports.projects.project');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"defaultRoute\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return 'entity.builda-price.projects';\n    }\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      return {\n        project\n      };\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/projects/project/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProjectsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewClientReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewProjectsAttributes = _exports.canViewProjectsAttributes = ['canViewProjects'];\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewTaskBudgets'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewTaskProgress'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewTaskQuotes'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const canViewClientReportsAttributes = _exports.canViewClientReportsAttributes = ['canViewClientReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      case 'canViewClientReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canViewBudgets: () => true,\n    canViewQuotes: () => true,\n    canViewInvoicingReports: () => true,\n    canViewClientReports: () => true\n  };\n  class TaskTypeContainer {\n    constructor(name, attr) {\n      this.name = name;\n      this.attr = attr;\n    }\n  }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (client, project, attributes, taskVisibilityOptions) {\n          yield client.last;\n          yield project.last;\n          yield attributes.last;\n          yield taskVisibilityOptions.last;\n          const projectAttributes = client.last.value.hasMany('projectAttributes').value()?.toArray() || [];\n          const currentProjectAttributeIds = projectAttributes.filter(pa => pa.belongsTo('project').id() === project.last.value.id).map(pa => pa.belongsTo('attribute').id());\n          const selectedTaskAttributes = taskVisibilityOptions.last.value.filter(tva => currentProjectAttributeIds.includes(tva.attr.id));\n          return (0, _emberChangeset.Changeset)({\n            taskAttributes: selectedTaskAttributes,\n            canViewBudgetFinancialReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewChargeupReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewProgressReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewSchedulingReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewTasksAttributes),\n            canViewInvoicingReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewInvoicingReportsAttributes),\n            canViewClientReports: client.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewClientReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"getClient\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const client = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return client;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the client'));\n            this.router.transitionTo(`${this.basePath}.users`);\n          }\n        }\n      }), null, \"getClient\", null));\n      _defineProperty(this, \"getAttributes\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const attributes = yield this.store.findAll('user-attribute');\n          return attributes.toArray().reduce((acc, a) => ({\n            ...acc,\n            [a.id]: a\n          }), {});\n        }\n      }), null, \"getAttributes\", null));\n      _defineProperty(this, \"getTaskVisibilityOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (attributes) {\n          yield attributes.last;\n          const {\n            canViewTaskTasks,\n            canViewSumsTasks,\n            canViewSubcontractorTasks,\n            canViewPlantTasks,\n            canViewMilestoneTasks,\n            canViewInternalTasks,\n            canViewBuildersWorkTasks\n          } = attributes.last.value;\n          return [new TaskTypeContainer('General', canViewTaskTasks), new TaskTypeContainer(`Builder's Work`, canViewBuildersWorkTasks), new TaskTypeContainer('Sums', canViewSumsTasks), new TaskTypeContainer(`Subcontractors`, canViewSubcontractorTasks), new TaskTypeContainer('Plant', canViewPlantTasks), new TaskTypeContainer('Internal', canViewInternalTasks), new TaskTypeContainer('Milestone', canViewMilestoneTasks)];\n        }\n      }), null, \"getTaskVisibilityOptions\", null));\n    }\n    model({\n      client_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getClient.perform(id);\n      this.getAttributes.perform();\n      this.getTaskVisibilityOptions.perform(this.getAttributes);\n      this.getPermissionsChangeset.perform(this.getClient, project, this.getAttributes, this.getTaskVisibilityOptions);\n      return {\n        project,\n        basePath: this.basePath,\n        client: this.getClient,\n        permissionsChangeset: this.getPermissionsChangeset,\n        taskVisibilityOptions: this.getTaskVisibilityOptions,\n        attributes: this.getAttributes\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/clients/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"projectClientPermissions\", ['hasClientRole']);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getClients\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          if (!this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseClientPortal', 'canUseUsers')) return [];\n          yield project.last;\n          const [userProjectAttributes, userClientEntityAttributes] = yield Promise.all([this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: project.last.value.id\n              }, {\n                field: 'attribute',\n                op: 'IN',\n                value: this.projectClientPermissions\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasClientRole'\n              }]\n            },\n            include: 'user'\n          })]);\n          const users = userClientEntityAttributes.map(uca => uca.belongsTo('user').value());\n          return users.sortBy('firstName').reduce((group, user) => {\n            const hasProject = userProjectAttributes.toArray().some(upa => upa.belongsTo('user').id() === user.id);\n            (hasProject ? group.projectClients : group.unassignedClients).push(user);\n            return group;\n          }, {\n            projectClients: [],\n            unassignedClients: []\n          });\n        }\n      }), null, \"getClients\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getClients.perform(project);\n      return {\n        project,\n        clients: this.getClients,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      const project = await this.modelFor('entity.builda-price.projects.project').project.last;\n      // we can default to this route if user has access to users\n      if (this.newFeatureFlags.includesFeatureFlags(project.value, 'canUseBuildaPrice', 'canUseUsers')) {\n        this.router.transitionTo('entity.builda-price.projects.project.people.users');\n      } else if (this.newFeatureFlags.includesFeatureFlags(project.value, 'canUseBuildaPrice', 'canUseWorkers')) {\n        this.router.transitionTo('entity.builda-price.projects.project.people.workers');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/subcontractors/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"projectSubcontractorPermissions\", ['hasSubcontractorRole']);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getSubcontractors\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const [userProjectAttributes, userSubcontractorEntityAttributes] = yield Promise.all([this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: project.last.value.id\n              }, {\n                field: 'attribute',\n                op: 'IN',\n                value: this.projectSubcontractorPermissions\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasSubcontractorRole'\n              }]\n            },\n            include: 'user'\n          })]);\n          const users = userSubcontractorEntityAttributes.map(usa => usa.belongsTo('user').value());\n          return users.sortBy('firstName').reduce((group, user) => {\n            const hasProject = userProjectAttributes.toArray().some(upa => upa.belongsTo('user').id() === user.id);\n            (hasProject ? group.projectSubcontractors : group.unassignedSubcontractors).push(user);\n            return group;\n          }, {\n            projectSubcontractors: [],\n            unassignedSubcontractors: []\n          });\n        }\n      }), null, \"getSubcontractors\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getSubcontractors.perform(project);\n      return {\n        project,\n        subcontractors: this.getSubcontractors,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProjectsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManageProjectsAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageHealthAndSafetyAttributes = _exports.canManageFileStorageAttributes = _exports.canManageEstimatesAttributes = _exports.canManageBudgetsAttributes = _exports.canCreateHealthAndSafetyAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewProjectsAttributes = _exports.canViewProjectsAttributes = ['canViewProjects'];\n  const canManageBudgetsAttributes = _exports.canManageBudgetsAttributes = ['canManageProjectBudgetVersions', 'canManageTaskBudgets'];\n  const canManageEstimatesAttributes = _exports.canManageEstimatesAttributes = ['canManageEstimates'];\n  const canManageFileStorageAttributes = _exports.canManageFileStorageAttributes = ['canManageFileStorage'];\n  const canManageProductsAttributes = _exports.canManageProductsAttributes = ['canManageProducts'];\n  const canManageProjectsAttributes = _exports.canManageProjectsAttributes = ['canManageProjects'];\n  const canManageQuotesAttributes = _exports.canManageQuotesAttributes = ['canManageProjectQuoteVersions', 'canManageTaskQuotes'];\n  const canManageProgressAttributes = _exports.canManageProgressAttributes = ['canManageProjectProgressVersions', 'canManageTaskProgress'];\n  const canManageSchedulingReportsAttributes = _exports.canManageSchedulingReportsAttributes = ['canManageProjectSchedulingVersions', 'canManageTaskScheduling', 'canManageSchedulingReports', 'canManageProgressReports'];\n  const canManageTasksAttributes = _exports.canManageTasksAttributes = ['canManageTasks'];\n  const canManageTimesheetsAttributes = _exports.canManageTimesheetsAttributes = ['canManageTimesheets'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewProjectBudgetVersions', 'canViewTaskBudgets'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewProjectProgressVersions', 'canViewTaskProgress'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewProductsAttributes = _exports.canViewProductsAttributes = ['canViewProducts'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewProjectQuoteVersions', 'canViewTaskQuotes'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canCreateHealthAndSafetyAttributes = _exports.canCreateHealthAndSafetyAttributes = ['canCreateHealthAndSafety'];\n  const canManageHealthAndSafetyAttributes = _exports.canManageHealthAndSafetyAttributes = ['canManageHealthAndSafety'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canManageBudgets':\n        return true;\n      case 'canManageEstimates':\n        return true;\n      case 'canManageFileStorage':\n        return true;\n      case 'canManageProducts':\n        return true;\n      case 'canManageProjects':\n        return true;\n      case 'canManageQuotes':\n        return true;\n      case 'canManageSchedulingReports':\n        return true;\n      case 'canManageTasks':\n        return true;\n      case 'canManageTimesheets':\n        return true;\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canManageProgress':\n        return true;\n      case 'canViewProgress':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewFileStorage':\n        return true;\n      case 'canViewProducts':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canCreateHealthAndSafety':\n        return true;\n      case 'canManageHealthAndSafety':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canManageBudgets: () => true,\n    canManageEstimates: () => true,\n    canManageFileStorage: () => true,\n    canManageProducts: () => true,\n    canManageProjects: () => true,\n    canManageQuotes: () => true,\n    canManageSchedulingReports: () => true,\n    canManageTasks: () => true,\n    canManageTimesheets: () => true,\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewBudgets: () => true,\n    canViewProgress: () => true,\n    canManageProgress: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewFileStorage: () => true,\n    canViewProducts: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewQuotes: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canCreateHealthAndSafety: () => null,\n    canManageHealthAndSafety: () => null,\n    canViewInvoicingReports: () => null\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getSubcontractor\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const subcontractor = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return subcontractor;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.somethingWentWrongFindingTheSubcontractor'));\n            this.router.transitionTo(`${this.basePath}.users`);\n          }\n        }\n      }), null, \"getSubcontractor\", null));\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (subcontractor, project) {\n          yield subcontractor.last;\n          yield project.last;\n          return (0, _emberChangeset.Changeset)({\n            canManageBudgets: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageBudgetsAttributes),\n            canManageEstimates: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageEstimatesAttributes),\n            canManageFileStorage: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageFileStorageAttributes),\n            canManageProducts: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProductsAttributes),\n            canManageProjects: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProjectsAttributes),\n            canManageQuotes: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageQuotesAttributes),\n            canManageSchedulingReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageSchedulingReportsAttributes),\n            canManageTasks: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageTasksAttributes),\n            canManageTimesheets: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageTimesheetsAttributes),\n            canViewBudgetFinancialReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewBudgets: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetsAttributes),\n            canViewProgress: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProgressAttributes),\n            canManageProgress: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProgressAttributes),\n            canViewChargeupReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewFileStorage: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewFileStorageAttributes),\n            canViewProducts: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProductsAttributes),\n            canViewProgressReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewQuotes: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewQuotesAttributes),\n            canViewSchedulingReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewTasksAttributes),\n            canCreateHealthAndSafety: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canCreateHealthAndSafetyAttributes),\n            canManageHealthAndSafety: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageHealthAndSafetyAttributes),\n            canViewInvoicingReports: subcontractor.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewInvoicingReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n    }\n    model({\n      subcontractor_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getSubcontractor.perform(id);\n      this.getPermissionsChangeset.perform(this.getSubcontractor, project);\n      return {\n        project,\n        basePath: this.basePath,\n        subcontractor: this.getSubcontractor,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/users/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const [userEntityAttributes, userProjectAttributes, userClientEntityAttributes, userSubcontractorEntityAttributes] = yield Promise.all([this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'canViewEntity'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: project.last.value.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasClientRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasSubcontractorRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          })]);\n          let allUsers = userEntityAttributes.map(uea => uea.belongsTo('user').value());\n          const clientIds = userClientEntityAttributes.map(uea => uea.belongsTo('user').id());\n          const subcontractorIds = userSubcontractorEntityAttributes.map(uea => uea.belongsTo('user').id());\n\n          // filter clients and subcontractors from users list\n          const users = allUsers.filter(user => !clientIds.includes(user.id) && !subcontractorIds.includes(user.id));\n          return users.sortBy('firstName').reduce((group, user) => {\n            const hasProject = userProjectAttributes.toArray().some(upa => upa.belongsTo('user').id() === user.id);\n            (hasProject ? group.projectUsers : group.unassignedUsers).push(user);\n            return group;\n          }, {\n            projectUsers: [],\n            unassignedUsers: []\n          });\n        }\n      }), null, \"getUsers\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getUsers.perform(project);\n      return {\n        project,\n        users: this.getUsers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewStagePaymentsAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewPurchaseOrdersAttributes = _exports.canViewProjectsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewInvoicesAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canViewAccessReportsAttributes = _exports.canViewAccessReports = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageStagePaymentsAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManagePurchaseOrdersAttributes = _exports.canManageProjectsAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageInvoicesAttributes = _exports.canManageHealthAndSafetyAttributes = _exports.canManageFileStorageAttributes = _exports.canManageEstimatesAttributes = _exports.canManageBudgetsAttributes = _exports.canCreateHealthAndSafetyAttributes = _exports.canApprovePurchaseOrdersAttributes = _exports.canApproveInvoicesAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewProjectsAttributes = _exports.canViewProjectsAttributes = ['canViewProjects'];\n  const canManageBudgetsAttributes = _exports.canManageBudgetsAttributes = ['canManageProjectBudgetVersions', 'canManageTaskBudgets'];\n  const canManageEstimatesAttributes = _exports.canManageEstimatesAttributes = ['canManageEstimates'];\n  const canManageFileStorageAttributes = _exports.canManageFileStorageAttributes = ['canManageFileStorage'];\n  const canManageProductsAttributes = _exports.canManageProductsAttributes = ['canManageProducts'];\n  const canManageProjectsAttributes = _exports.canManageProjectsAttributes = ['canManageProjects'];\n  const canManageQuotesAttributes = _exports.canManageQuotesAttributes = ['canManageProjectQuoteVersions', 'canManageTaskQuotes'];\n  const canManageSchedulingReportsAttributes = _exports.canManageSchedulingReportsAttributes = ['canManageProjectSchedulingVersions', 'canManageTaskScheduling', 'canManageSchedulingReports', 'canManageProgressReports'];\n  const canViewAccessReportsAttributes = _exports.canViewAccessReportsAttributes = ['canViewAccessReports'];\n  const canManageTasksAttributes = _exports.canManageTasksAttributes = ['canManageTasks'];\n  const canManageTimesheetsAttributes = _exports.canManageTimesheetsAttributes = ['canManageTimesheets'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewProjectBudgetVersions', 'canViewTaskBudgets'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewProjectProgressVersions', 'canViewTaskProgress'];\n  const canManageProgressAttributes = _exports.canManageProgressAttributes = ['canManageProjectProgressVersions', 'canManageTaskProgress'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewProductsAttributes = _exports.canViewProductsAttributes = ['canViewProducts'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewProjectQuoteVersions', 'canViewTaskQuotes'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canCreateHealthAndSafetyAttributes = _exports.canCreateHealthAndSafetyAttributes = ['canCreateHealthAndSafety'];\n  const canManageHealthAndSafetyAttributes = _exports.canManageHealthAndSafetyAttributes = ['canManageHealthAndSafety'];\n  const canViewInvoicesAttributes = _exports.canViewInvoicesAttributes = ['canViewInvoices'];\n  const canManageInvoicesAttributes = _exports.canManageInvoicesAttributes = ['canManageInvoices'];\n  const canApproveInvoicesAttributes = _exports.canApproveInvoicesAttributes = ['canApproveInvoices'];\n  const canViewPurchaseOrdersAttributes = _exports.canViewPurchaseOrdersAttributes = ['canViewPurchaseOrders'];\n  const canManagePurchaseOrdersAttributes = _exports.canManagePurchaseOrdersAttributes = ['canManagePurchaseOrders'];\n  const canApprovePurchaseOrdersAttributes = _exports.canApprovePurchaseOrdersAttributes = ['canApprovePurchaseOrders'];\n  const canViewStagePaymentsAttributes = _exports.canViewStagePaymentsAttributes = ['canViewStagePayments'];\n  const canManageStagePaymentsAttributes = _exports.canManageStagePaymentsAttributes = ['canManageStagePayments'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const canViewAccessReports = _exports.canViewAccessReports = ['canViewAccessReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canManageBudgets':\n        return true;\n      case 'canManageEstimates':\n        return true;\n      case 'canManageFileStorage':\n        return true;\n      case 'canManageProducts':\n        return true;\n      case 'canManageProjects':\n        return true;\n      case 'canManageQuotes':\n        return true;\n      case 'canManageSchedulingReports':\n        return true;\n      case 'canViewAccessReports':\n        return true;\n      case 'canManageTasks':\n        return true;\n      case 'canManageTimesheets':\n        return true;\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canViewProgress':\n        return true;\n      case 'canManageProgress':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewFileStorage':\n        return true;\n      case 'canViewProducts':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canCreateHealthAndSafety':\n        return true;\n      case 'canManageHealthAndSafety':\n        return true;\n      case 'canViewInvoices':\n        return true;\n      case 'canManageInvoices':\n        return true;\n      case 'canApproveInvoices':\n        return true;\n      case 'canViewPurchaseOrders':\n        return true;\n      case 'canManagePurchaseOrders':\n        return true;\n      case 'canApprovePurchaseOrders':\n        return true;\n      case 'canViewStagePayments':\n        return true;\n      case 'canManageStagePayments':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canManageBudgets: () => true,\n    canManageEstimates: () => true,\n    canManageFileStorage: () => true,\n    canManageProducts: () => true,\n    canManageProjects: () => true,\n    canManageQuotes: () => true,\n    canManageSchedulingReports: () => true,\n    canViewAccessReports: () => true,\n    canManageTasks: () => true,\n    canManageTimesheets: () => true,\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewBudgets: () => true,\n    canViewProgress: () => true,\n    canManageProgress: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewFileStorage: () => true,\n    canViewProducts: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewQuotes: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canCreateHealthAndSafety: () => null,\n    canManageHealthAndSafety: () => null,\n    canViewInvoices: () => null,\n    canManageInvoices: () => null,\n    canApproveInvoices: () => null,\n    canViewPurchaseOrders: () => null,\n    canManagePurchaseOrders: () => null,\n    canApprovePurchaseOrders: () => null,\n    canViewStagePayments: () => null,\n    canManageStagePayments: () => null,\n    canViewInvoicingReports: () => null\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user, project) {\n          yield user.last;\n          yield project.last;\n          return (0, _emberChangeset.Changeset)({\n            canManageBudgets: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageBudgetsAttributes),\n            canManageEstimates: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageEstimatesAttributes),\n            canManageFileStorage: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageFileStorageAttributes),\n            canManageProducts: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProductsAttributes),\n            canManageProjects: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProjectsAttributes),\n            canManageQuotes: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageQuotesAttributes),\n            canManageSchedulingReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageSchedulingReportsAttributes),\n            canViewAccessReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewAccessReportsAttributes),\n            canManageTasks: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageTasksAttributes),\n            canManageTimesheets: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageTimesheetsAttributes),\n            canViewBudgetFinancialReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewBudgets: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewBudgetsAttributes),\n            canViewProgress: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProgressAttributes),\n            canManageProgress: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageProgressAttributes),\n            canViewChargeupReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewFileStorage: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewFileStorageAttributes),\n            canViewProducts: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProductsAttributes),\n            canViewProgressReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewQuotes: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewQuotesAttributes),\n            canViewSchedulingReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewTasksAttributes),\n            canCreateHealthAndSafety: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canCreateHealthAndSafetyAttributes),\n            canManageHealthAndSafety: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageHealthAndSafetyAttributes),\n            canViewInvoices: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewInvoicesAttributes),\n            canManageInvoices: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageInvoicesAttributes),\n            canApproveInvoices: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canApproveInvoicesAttributes),\n            canViewPurchaseOrders: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewPurchaseOrdersAttributes),\n            canManagePurchaseOrders: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManagePurchaseOrdersAttributes),\n            canApprovePurchaseOrders: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canApprovePurchaseOrdersAttributes),\n            canViewStagePayments: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewStagePaymentsAttributes),\n            canManageStagePayments: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canManageStagePaymentsAttributes),\n            canViewInvoicingReports: user.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewInvoicingReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"getUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const user = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return user;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the user'));\n            this.router.transitionTo(`${this.basePath}.users`);\n          }\n        }\n      }), null, \"getUser\", null));\n    }\n    model({\n      user_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getUser.perform(id);\n      this.getPermissionsChangeset.perform(this.getUser, project);\n      return {\n        project,\n        basePath: this.basePath,\n        user: this.getUser,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.workerAttributes = _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const workerAttributes = _exports.workerAttributes = ['canViewProjects'];\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }]\n          };\n          const workers = yield this.store.query('worker', {\n            filter,\n            include: 'projectAttributes',\n            sort: 'firstName'\n          });\n          return workers.reduce((workers, worker) => {\n            const hasProject = worker.includesClaimsAboutProject(project.last.value.id, ...workerAttributes);\n            if (hasProject) workers.projectWorkers.push(worker);\n            // only add active workers to unassigned list\n            else if (worker.isActive) workers.unassignedWorkers.push(worker);\n            return workers;\n          }, {\n            unassignedWorkers: [],\n            projectWorkers: []\n          });\n        }\n      }), null, \"getWorkers\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getWorkers.perform(project);\n      return {\n        project,\n        workers: this.getWorkers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTaskAttributes = _exports.canCreateHealthAndSafetyAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canCreateHealthAndSafetyAttributes = _exports.canCreateHealthAndSafetyAttributes = ['canCreateHealthAndSafety'];\n  const canViewTaskAttributes = _exports.canViewTaskAttributes = ['canViewTasks'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canCreateHealthAndSafety':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canCreateHealthAndSafety: () => null\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.people');\n      _defineProperty(this, \"getWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const worker = yield this.store.findRecord('worker', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('worker-entity-attribute', {\n              worker: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('worker-project-attribute', {\n              worker: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return worker;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the worker'));\n            this.router.transitionTo(`${this.basePath}.workers`);\n          }\n        }\n      }), null, \"getWorker\", null));\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (worker, project) {\n          yield worker.last;\n          yield project.last;\n          return (0, _emberChangeset.Changeset)({\n            canCreateHealthAndSafety: worker.last.value.includesClaimsAboutProject(project.last.value.id, ...canCreateHealthAndSafetyAttributes),\n            canViewTasks: worker.last.value.includesClaimsAboutProject(project.last.value.id, ...canViewTaskAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n    }\n    model({\n      worker_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getWorker.perform(id);\n      this.getPermissionsChangeset.perform(this.getWorker, project);\n      return {\n        project,\n        basePath: this.basePath,\n        worker: this.getWorker,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/prices\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {}\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/projects/project/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageIndex: {\n          refreshModel: true\n        },\n        sortBy: {\n          refreshModel: true\n        },\n        sortDirection: {\n          refreshModel: true\n        },\n        searchTerm: {\n          refreshModel: true\n        },\n        supplier: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [25, 50, 100, 500, 1000]);\n      _defineProperty(this, \"getProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, pageSize, pageIndex, sortBy, sortDirection, supplier, searchTerm) {\n          yield project.last;\n          const filters = {\n            and: [{\n              field: 'project',\n              operator: 'EQ',\n              value: project.last.value.id\n            }, {\n              field: 'entity',\n              operator: 'EQ',\n              value: project.last.value.belongsTo('entity').id()\n            }],\n            or: []\n          };\n          if (supplier?.length) filters.and.push({\n            field: 'supplierName',\n            operator: 'EQ',\n            value: supplier\n          });\n          if (searchTerm?.length) {\n            filters.or.push({\n              field: 'description',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n            filters.or.push({\n              field: 'sku',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n          }\n          let orderBy;\n          switch (sortBy) {\n            case 'Product':\n              orderBy = 'description';\n              break;\n            case 'Supplier':\n              orderBy = 'supplierName';\n              break;\n            case 'SKU':\n              orderBy = 'sku';\n              break;\n            case 'Unit':\n              orderBy = 'unit';\n              break;\n            case 'Unit price':\n              orderBy = 'unitPrice';\n              break;\n            default:\n              break;\n          }\n          const projectProducts = yield this.store.query('project-product', {\n            filter: filters,\n            orderBy: orderBy || 'dateCreated',\n            orderByDirection: sortDirection || 'desc',\n            pageSize,\n            page: pageIndex\n          });\n          return projectProducts;\n        }\n      }), null, \"getProducts\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageIndex = 1,\n      sortBy = 'dateCreated',\n      sortDirection = 'desc',\n      supplier,\n      searchTerm\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getProducts.perform(project, Number(pageSize), Number(pageIndex), sortBy, sortDirection, supplier, searchTerm);\n      return {\n        project,\n        products: this.getProducts,\n        pageSize: Number(pageSize),\n        pageIndex: Number(pageIndex),\n        sortBy,\n        sortDirection,\n        searchTerm,\n        pageSizes: this.pageSizes,\n        supplier\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/progress\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/object\", \"@ember/routing/route\", \"@ember/service\", \"@glimmer/tracking\", \"portal/helpers/chunk-callback\", \"portal/config/environment\"], function (_exports, _asyncArrowRuntime, _object, _route, _service, _tracking, _chunkCallback, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.TaskContainer = void 0;\n  var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _class3, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/object\",0,\"@ember/routing/route\",0,\"@ember/object\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"portal/helpers/chunk-callback\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let TaskContainer = _exports.TaskContainer = (_dec = (0, _object.computed)('_progress', 'children.@each.isDirty'), _class = class TaskContainer {\n    currencyFormatter(value) {\n      return this.numberFormat.format(value, {\n        style: 'currency',\n        dashZero: false\n      });\n    }\n    get budgetTotal() {\n      return this.task.budget.total;\n    }\n    get budgetManHours() {\n      return this.task.budgetManHours;\n    }\n    get isComplete() {\n      if (this.children?.length) return this.children.every(child => child.isComplete);\n      if (this._isComplete != null) return this._isComplete;\n      return this.task.isComplete;\n    }\n    set isComplete(value) {\n      const isComplete = Boolean(value);\n      if (this.children?.length) {\n        this.children.forEach(child => {\n          child.isComplete = isComplete;\n        });\n      }\n      this._isComplete = isComplete;\n\n      // when something is complete is must be 100%\n      if (isComplete) this.progress = 1;\n    }\n    get isPartiallyComplete() {\n      if (!this.children?.length) return false;\n      if (this.isComplete) return false;\n      return this.children.some(child => child.isComplete || child.isPartiallyComplete);\n    }\n    get isDraft() {\n      if (this.task.draftProgressChange || this.isDirty) return true;\n      return false;\n    }\n    get manHoursActual() {\n      return this.progressDirect?.attributes?.actualManHours || 0;\n    }\n    get latestVersionForecastManHours() {\n      return this.task.progressDirect.forecastManHours || 0;\n    }\n    get latestVersionProgress() {\n      return this.progressDirect?.attributes?.progress || 0;\n    }\n    get currentDraftForecastManHours() {\n      return this.task.draftProgressChange?.forecastManHours || this.latestVersionForecastManHours;\n    }\n    get currentDraftProgress() {\n      return this.task.draftProgressChange?.progress || this.latestVersionProgress;\n    }\n    get isDifferentFromLastVersion() {\n      const diffMargin = 0.01; // 1%\n      return Math.abs(this.progress - this.latestVersionProgress) > diffMargin;\n    }\n    get isDirty() {\n      if (this.children?.length) return this.children.some(child => child.isDirty);\n      return this._progress != null;\n    }\n    set progress(value) {\n      const progress = Number(value);\n\n      // you can not have a complete task that is not 100%\n      if (progress !== 1) this.isComplete = false;\n      if (this.children?.length) {\n        this.children.forEach(child => {\n          child.progress = progress;\n        });\n        return;\n      }\n      (0, _object.set)(this, '_progress', progress);\n    }\n    get progress() {\n      if (this.children?.length) {\n        let childrenForecastManHours = 0;\n        this.children.forEach(child => {\n          childrenForecastManHours += child.progress * child.forecastManHours;\n        });\n        const childrenForecastedProgress = Math.min(childrenForecastManHours / this.forecastManHours || 0, 1);\n        if (childrenForecastedProgress !== 0) return childrenForecastedProgress;\n\n        // in this scenario we take the average percentage (there is no data to weight it on)\n        return this.children.reduce((totalProgress, child) => totalProgress += child.progress, 0) / this.children.length;\n      }\n      if (this._progress != null) return this._progress;\n      return this.currentDraftProgress;\n    }\n    get forecastManHours() {\n      if (this.children?.length) {\n        let childrenForecastManHours = 0;\n        this.children.forEach(child => {\n          childrenForecastManHours += child.forecastManHours;\n        });\n        if (childrenForecastManHours === Infinity) return 0;\n        return childrenForecastManHours;\n      }\n      let forecastManHours;\n      if (this.progress != null) {\n        // if we have a progress of 100% and no actual, the forecast is 0\n        if (this.progress === 1 && this.manHoursActual === 0) return 0;\n\n        // calculate the forecast from the progress and actual\n        forecastManHours = this.manHoursActual / this.progress || 0;\n\n        // if you don't have a forecast figure assume the budget is correct\n        if (!forecastManHours) forecastManHours = this.budgetManHours;\n      } else {\n        forecastManHours = Math.max(this.manHoursActual, this.currentDraftForecastManHours);\n      }\n      if (forecastManHours === Infinity) return 0;\n      return forecastManHours;\n    }\n    get hasMissingCosts() {\n      if (this.children?.length || !this.isDraft || !this.isComplete) {\n        return false;\n      }\n      const costTotal = this.costTotal?.attributes || {\n        materials: 0,\n        subcontractors: 0,\n        invoiceLabour: 0,\n        timesheetLabour: 0\n      };\n      const calculateVariance = (budget, cost) => {\n        if (cost === 0) {\n          return budget ? 1 : 0;\n        }\n        if (budget === 0) {\n          return 0;\n        }\n        return (cost - budget) / budget;\n      };\n      const calculateRemainingBudget = (budget, cost) => Math.max(budget - cost, 0);\n      const labourCost = costTotal.invoiceLabour + costTotal.timesheetLabour;\n      const labourVariance = calculateVariance(this.task.budgetLabour, labourCost);\n      const remainingLabourBudget = calculateRemainingBudget(this.task.budgetLabour, labourCost);\n      const materialsVariance = calculateVariance(this.task.budgetMaterials, costTotal.materials);\n      const remainingMaterialsBudget = calculateRemainingBudget(this.task.budgetMaterials, costTotal.materials);\n      const subcontractorsVariance = calculateVariance(this.task.budgetSubcontractors, costTotal.subcontractors);\n      const remainingSubcontractorsBudget = calculateRemainingBudget(this.task.budgetSubcontractors, costTotal.subcontractors);\n      const remainingSumsBudget = this.task.budgetSums;\n      const varianceMargin = -0.5;\n      let messages = [];\n      if (labourVariance <= varianceMargin) {\n        messages.push(`${this.currencyFormatter(remainingLabourBudget)} ${this.intl.t('common.labour')}`);\n      }\n      if (materialsVariance <= varianceMargin) {\n        messages.push(`${this.currencyFormatter(remainingMaterialsBudget)} ${this.intl.t('common.materials')}`);\n      }\n      if (subcontractorsVariance <= varianceMargin) {\n        messages.push(`${this.currencyFormatter(remainingSubcontractorsBudget)} ${this.intl.t('common.subcontractors')}`);\n      }\n      if (remainingSumsBudget) {\n        messages.push(`${this.currencyFormatter(remainingSumsBudget)} ${this.intl.t('common.sums')}`);\n      }\n      if (messages.length) {\n        const title = this.intl.t('entity.builda-price.projects.project.progress.theFollowingRemainingBudgetsWillNotBeIncludedInTheForecast') + ': ';\n        return title + messages.join(', ') + '.';\n      }\n      return false;\n    }\n    get hasChildrenMissingCosts() {\n      if (!this.children?.length) return false;\n      return this.children.some(child => child.hasMissingCosts || child.hasChildrenMissingCosts);\n    }\n    get hasProgressWithBudgetAndNoActual() {\n      if (this.children?.length) return false;\n      if (this.isComplete) return false;\n      const hasBudget = Boolean(this.budgetTotal);\n      const hasProgress = Boolean(this.progress);\n      const hasManHours = Boolean(this.manHoursActual);\n      if (hasBudget && hasProgress && !hasManHours) return this.intl.t('entity.builda-price.projects.project.progress.theProgressYouEnterHereWillShowDifferentlyInReportsBecauseThereAreNoTimesheetsForThisBudgetedTask');\n      return false;\n    }\n    get hasChildrenProgressWithBudgetAndNoActual() {\n      if (!this.children?.length) return false;\n      return this.children.some(child => child.hasProgressWithBudgetAndNoActual || child.hasChildrenProgressWithBudgetAndNoActual);\n    }\n    get hasVersionDiff() {\n      if (this.hasDiff) return false;\n      if (this.children?.length) return false;\n      if (!this.latestVersionProgress) return false;\n      const diffMargin = 0.01; // 1%\n      const versionProgress = this.task.currentProgressChange?.progress || 0;\n      if (Math.abs(versionProgress - this.latestVersionProgress) > diffMargin) {\n        const lastProgress = Math.round((this.task.currentProgressChange?.progress || 0) * 100);\n        const latestProgress = Math.round(this.latestVersionProgress * 100);\n        if (!lastProgress) return `${this.intl.t('entity.builda-price.projects.project.progress.theProgressHasBeenCalculatedFromYourBudgetAndTimesheetsAs')} ${latestProgress}%.`;\n        let sentences = [this.intl.t('entity.builda-price.projects.project.progress.thisProgressHasChangedFromWhatItWasPreviously')];\n        if (lastProgress === latestProgress) {\n          sentences.push(`${this.intl.t('entity.builda-price.projects.project.progress.The last saved progress was')} ${lastProgress}%.`);\n        } else {\n          sentences.push(this.intl.t('entity.builda-price.projects.project.progress.theLastSavedProgressWasLastprogressAndWithTheAdditionOfTimesheetsTheForecastedProgressIsNowLatestprogress', {\n            latestProgress,\n            lastProgress\n          }));\n        }\n        return sentences.join(' ');\n      }\n      return false;\n    }\n    get hasChildVersionDiff() {\n      if (!this.children?.length) return false;\n      return this.children.some(child => child.hasVersionDiff || child.hasChildVersionDiff);\n    }\n    get hasNoManHours() {\n      if (this.children?.length) return false;\n      return !this.manHoursActual;\n    }\n    get hasNoChildManHours() {\n      if (!this.children?.length) return false;\n      return this.children.every(child => child.hasNoManHours || child.hasNoChildManHours);\n    }\n    get hasChildDiff() {\n      if (!this.children?.length) return false;\n      return this.children.some(child => child.hasDiff || child.hasChildDiff);\n    }\n    get hasDiff() {\n      if (this.children?.length) return false;\n      if (!this.latestVersionProgress) return false;\n      const diffMargin = 0.01; // 1%\n      if (Math.abs(this.progress - this.latestVersionProgress) > diffMargin) {\n        const lastProgress = Math.round((this.task.currentProgressChange?.progress || 0) * 100);\n        const latestProgress = Math.round(this.latestVersionProgress * 100);\n        if (!lastProgress) return `${this.intl.t('entity.builda-price.projects.project.progress.theProgressCalculatedUsingYourBudgetAndTimesheetsWas')} ${latestProgress}%.`;\n        let sentences = [this.intl.t('entity.builda-price.projects.project.progress.thisProgressHasChangedFromWhatItWasPreviously')];\n        if (lastProgress === latestProgress) {\n          sentences.push(`${this.intl.t('entity.builda-price.projects.project.progress.The last saved progress was')} ${lastProgress}%.`);\n        } else {\n          sentences.push(this.intl.t('entity.builda-price.projects.project.progress.theLastSavedProgressWasLastprogressAndWithTheAdditionOfTimesheetsTheForecastedProgressIsNowLatestprogress', {\n            latestProgress,\n            lastProgress\n          }));\n        }\n        return sentences.join(' ');\n      }\n      return false;\n    }\n    constructor(intl, numberFormat, task, isDirect, costTotals, progressDirects) {\n      _defineProperty(this, \"task\", void 0);\n      _defineProperty(this, \"intl\", void 0);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor, this);\n      _initializerDefineProperty(this, \"children\", _descriptor2, this);\n      _initializerDefineProperty(this, \"expanded\", _descriptor3, this);\n      _initializerDefineProperty(this, \"isDirect\", _descriptor4, this);\n      _initializerDefineProperty(this, \"costTotal\", _descriptor5, this);\n      _initializerDefineProperty(this, \"progressDirect\", _descriptor6, this);\n      _initializerDefineProperty(this, \"_isComplete\", _descriptor7, this);\n      _initializerDefineProperty(this, \"_progress\", _descriptor8, this);\n      this.task = task;\n      this.isDirect = isDirect;\n      this.numberFormat = numberFormat;\n      this.intl = intl;\n      this.costTotal = costTotals.find(item => item.id === task.id);\n      this.progressDirect = progressDirects.find(item => item.id === task.id);\n      if (task.activeChildren.length && !isDirect) {\n        (0, _object.set)(this, 'children', task.activeChildren.sortBy('path').map(c => new TaskContainer(intl, numberFormat, c, false, costTotals, progressDirects)));\n        this.children.unshift(new TaskContainer(intl, numberFormat, task, true, costTotals, progressDirects));\n      }\n    }\n    toJSON() {\n      return {\n        task: {\n          id: this.task.id,\n          project: this.task.belongsTo('project').id()\n        },\n        progress: this.progress,\n        forecastManHours: this.forecastManHours,\n        actualManHours: this.manHoursActual,\n        children: this.children?.filter(t => t.task.canManageTaskProgress)\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"numberFormat\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"expanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isDirect\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"costTotal\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"progressDirect\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"_isComplete\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"isDirty\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"isDirty\"), _class.prototype), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"_progress\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class);\n  let _class2 = _exports.default = (_class3 = class _class3 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor9, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor0, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor1, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor10, this);\n      _initializerDefineProperty(this, \"store\", _descriptor11, this);\n      _defineProperty(this, \"getProgressList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const actions = [];\n          actions.push(project.last.value.loadBudget());\n          const draftProgressChangeSetId = project.last.value.draftProgressChangeSet.get('id');\n          if (draftProgressChangeSetId) {\n            actions.push(this.store.simpleQuery('progress-change', {\n              changeSet: draftProgressChangeSetId\n            }));\n          }\n          const progressVersionValueId = project.last.value.currentProgressVersion.get('id');\n          if (progressVersionValueId) {\n            actions.push(this.store.simpleQuery('progress-version-value', {\n              version: progressVersionValueId\n            }));\n          }\n          const tasks = yield this.store.simpleQuery('task', {\n            project: project.last.value.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          });\n          const taskIds = tasks.map(i => i.id);\n          let costTotals = [];\n          let progressDirects = [];\n          if (taskIds) {\n            [costTotals, progressDirects] = yield Promise.all([(0, _chunkCallback.default)(taskIds, _environment.default.chunkCallbackSize, ids => {\n              return this.buildaPrice.taskCostTotals({\n                filter: {\n                  simple: {\n                    _id: {\n                      $in: ids\n                    }\n                  }\n                }\n              }).then(res => res.data);\n            }).then(results => results.flat()), (0, _chunkCallback.default)(taskIds, _environment.default.chunkCallbackSize, ids => {\n              return this.buildaPrice.taskProgressDirects({\n                filter: {\n                  simple: {\n                    _id: {\n                      $in: ids\n                    }\n                  }\n                }\n              }).then(res => res.data);\n            }).then(results => results.flat())]);\n          }\n          return (tasks || []).filter(task => !task.belongsTo('parent').value()).sortBy('path').map(task => new TaskContainer(this.intl, this.numberFormat, task, false, costTotals, progressDirects));\n        }\n      }), null, \"getProgressList\", null));\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getProgressList.perform(project);\n      return {\n        progressList: this.getProgressList,\n        project\n      };\n    }\n  }, _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class3.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor1 = _applyDecoratedDescriptor(_class3.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class3);\n});","define(\"portal/routes/entity/builda-price/projects/project/settings\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/object\", \"ember-changeset\", \"@ember/service\", \"moment\", \"portal/utils/email-validator\"], function (_exports, _asyncArrowRuntime, _route, _object, _emberChangeset, _service, _moment, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"ember-changeset\",0,\"@ember/service\",0,\"moment\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"xeroIntegration\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor6, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor7, this);\n      _defineProperty(this, \"projectClientPermissions\", ['hasClientRole']);\n      _defineProperty(this, \"loadProjectProfitMargin\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const projectRecord = project.last.value;\n          if (!this.newFeatureFlags.includesFeatureFlags(projectRecord, 'canManageProfitMargin')) {\n            return;\n          }\n          yield projectRecord.loadProfitMargins();\n          const currentProfitMargin = yield projectRecord.profitMargin;\n          if (!currentProfitMargin) {\n            const entity = yield projectRecord.entity;\n            projectRecord.profitMargin = this.store.createRecord('profit-margin', {\n              entity: entity\n            });\n          }\n        }\n      }), null, \"loadProjectProfitMargin\", null));\n      _defineProperty(this, \"createProjectChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, profitMargin) {\n          yield project.last;\n          yield profitMargin.last;\n          return (0, _emberChangeset.Changeset)(project.last.value, this.projectValidator.bind(this));\n        }\n      }), null, \"createProjectChangeset\", null));\n      _defineProperty(this, \"createProfitMarginChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, profitMargin) {\n          yield project.last;\n          if (!this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canManageProfitMargin')) return;\n          yield profitMargin.last;\n          return (0, _emberChangeset.Changeset)(project.last.value.belongsTo('profitMargin').value(), this.profitMarginValidator.bind(this));\n        }\n      }), null, \"createProfitMarginChangeset\", null));\n      _defineProperty(this, \"loadGlAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const accounts = yield this.accountingPlatform.loadActivePlatformGlAccounts.perform();\n          return accounts?.toArray();\n        }\n      }), null, \"loadGlAccounts\", null));\n      _defineProperty(this, \"loadXeroTrackingOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const trackingOptions = yield this.store.simpleQuery('xero-tracking-option', {\n            entity: this.sessionData.entity.id,\n            status: 'ACTIVE'\n          }, {\n            reload: true\n          });\n          return trackingOptions.sortBy('trackingOptionName');\n        }\n      }), null, \"loadXeroTrackingOptions\", null));\n    }\n    projectValidator({\n      key,\n      newValue,\n      content,\n      changes\n    }) {\n      if (key === 'name') return newValue.length > 3 || this.intl.t('validation.Please provide a name');\n      if (key === 'status') return Boolean(newValue) || this.intl.t('validation.Please provide a status');\n      if (key === 'contactEmail') return !newValue.length || (0, _emailValidator.default)(newValue) || this.intl.t('validation.Email');\n      if (key === 'startDate') {\n        const startDate = newValue || content.startDate;\n        if (!startDate) return this.intl.t('validation.Start date');\n        const completionDate = changes.completionDate || content.completionDate;\n        if (!completionDate) return true;\n        return (0, _moment.default)(newValue).isSameOrBefore(completionDate) || this.intl.t('validation.startDateMustBeEarlierThanTheCompletionDate');\n      }\n      if (key === 'completionDate') {\n        // completionDate is not required\n        if (!newValue) return true;\n        const startDate = changes.startDate || content.startDate;\n        if (!startDate) return true;\n        return (0, _moment.default)(newValue).isSameOrAfter(startDate) || this.intl.t('validation.completionDateMustBeAfterTheStartDate');\n      }\n      if (key === 'rad') {\n        if (newValue > 500) return this.intl.t('entity.builda-price.projects.project.settings.pleaseProvideARadiusNoLargerThan500m');\n        if (newValue < 100) return this.intl.t('entity.builda-price.projects.project.settings.pleaseProvideARadiusNoSmallerThan100m');\n        return true;\n      }\n    }\n    profitMarginValidator({\n      key,\n      newValue,\n      oldValue,\n      changes,\n      content\n    }) {\n      if (key === 'profitType') {\n        return Boolean(newValue || oldValue) || this.intl.t('validation.profitType');\n      }\n\n      // check for the currently selected profit type\n      let profitType = changes.profitType || content.profitType;\n      const percentage = newValue || oldValue;\n      if (key !== 'profitType' && typeof percentage !== 'number') return true;\n      if (profitType === 'MARGIN') {\n        // null is valid\n        if (percentage === null) return true;\n        return percentage < 1 || this.intl.t('validation.Please input a value less than 100');\n      }\n      return true;\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.loadProjectProfitMargin.perform(project);\n      this.createProjectChangeset.perform(project, this.loadProjectProfitMargin);\n      this.createProfitMarginChangeset.perform(project, this.loadProjectProfitMargin);\n      this.loadGlAccounts.perform();\n      if (this.xeroIntegration.ready) {\n        this.loadXeroTrackingOptions.perform();\n      }\n      return {\n        project,\n        loadProjectProfitMargin: this.loadProjectProfitMargin,\n        projectChangeset: this.createProjectChangeset,\n        profitMarginChangeset: this.createProfitMarginChangeset,\n        glAccounts: this.loadGlAccounts,\n        xeroTrackingOptions: this.loadXeroTrackingOptions\n      };\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.clearAddressSuggestions();\n    }\n    willTransition() {\n      const profitMargin = this.currentModel.project.last.value?.safeBelongsToValue('profitMargin');\n      if (profitMargin?.isNew) {\n        // Detach the placeholder so it cannot later serialize with a null id.\n        this.currentModel.project.last.value.profitMargin = null;\n        profitMargin.destroyRecord();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"xeroIntegration\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/stage-payments\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageNumber: {\n          refreshModel: true\n        },\n        sortBy: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        },\n        sortDirection: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [25, 50, 75, 100, 125, 150, 200]);\n      _defineProperty(this, \"getStagePayments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, pageNumber, pageSize, _sortBy, sortDirection, status) {\n          yield project.last;\n          const sortMap = new Map([['Name', 'name'], ['Due date', 'dueDate'], ['Value', 'value'], ['Status', 'status'], ['dateCreated', 'dateCreated'], ['Stage number', 'stageNumber']]);\n          const filter = {\n            and: [{\n              field: 'project',\n              op: 'EQ',\n              value: project.last.value.id\n            }, {\n              field: 'entity',\n              op: 'EQ',\n              value: project.last.value.belongsTo('entity').id()\n            }]\n          };\n          if (status !== 'ALL') filter.and.push({\n            field: 'status',\n            op: 'EQ',\n            value: status\n          });\n          const sortBy = _sortBy && _sortBy.split(',').map(item => {\n            const normalizedKey = item.replace('-', '');\n            const value = sortMap.get(normalizedKey);\n            return item.includes('-') ? `-${value}` : value;\n          }).filter(Boolean).join(',');\n          const stagePayments = yield this.store.query('stage-payment', {\n            filter,\n            include: 'questions,tasks.task',\n            sort: Array.isArray(sortBy) ? sortBy.map(item => sortDirection === 'desc' ? `-${item}` : item).join(',') : sortDirection === 'desc' ? `-${sortBy}` : sortBy,\n            page: {\n              number: pageNumber || Number(1),\n              size: pageSize || this.pageSizes[0]\n            }\n          });\n          return stagePayments;\n        }\n      }), null, \"getStagePayments\", null));\n      _defineProperty(this, \"getProgressVersionValues\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, stagePayments) {\n          yield project.last;\n          yield stagePayments.last;\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: project.last.value.belongsTo('entity').id()\n            }, {\n              field: 'version',\n              op: 'EQ',\n              value: project.last.value.belongsTo('currentProgressVersion').id()\n            }]\n          };\n          const progressVersionValues = yield this.store.query('progress-version-value', {\n            filter\n          });\n          return progressVersionValues;\n        }\n      }), null, \"getProgressVersionValues\", null));\n      _defineProperty(this, \"getStagePaymentsValues\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const values = yield this.buildaPrice.stagePaymentsValues(project.last.value.id);\n          return values;\n        }\n      }), null, \"getStagePaymentsValues\", null));\n      _defineProperty(this, \"loadProjectStagePaymentOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          yield project.last.value.loadStagePaymentOptions();\n          if (!project.last.value.belongsTo('stagePaymentOption').value()) {\n            project.last.value.stagePaymentOption = this.store.createRecord('stage-payment-option', {\n              entity: this.sessionData.entity\n            });\n          }\n        }\n      }), null, \"loadProjectStagePaymentOptions\", null));\n      _defineProperty(this, \"getStageRelatedInvoices\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (stagePayments) {\n          yield stagePayments.last;\n          const stages = stagePayments.last.value.mapBy('id');\n          if (!stages.length) return [];\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'stagePayment',\n              op: 'IN',\n              value: stages\n            }]\n          };\n          const invoices = yield this.store.query('invoice', {\n            filter,\n            sort: '-dateCreated'\n          }).then(res => res.toArray());\n          return invoices;\n        }\n      }), null, \"getStageRelatedInvoices\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageNumber = 1,\n      sortBy,\n      sortDirection = 'asc',\n      status = 'ALL'\n    }) {\n      sortBy = [sortBy, 'Stage number'].filter(Boolean).join(',');\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getStagePayments.perform(project, pageNumber, pageSize, sortBy, sortDirection, status);\n      this.getProgressVersionValues.perform(project, this.getStagePayments);\n      this.getStagePaymentsValues.perform(project);\n      this.loadProjectStagePaymentOptions.perform(project);\n      this.getStageRelatedInvoices.perform(this.getStagePayments);\n      return {\n        stagePayments: this.getStagePayments,\n        project,\n        pageSize: Number(pageSize),\n        pageNumber: Number(pageNumber),\n        pageSizes: this.pageSizes,\n        progressVersionValues: this.getProgressVersionValues,\n        sortBy: sortBy,\n        sortDirection: sortDirection,\n        status: status,\n        stagePaymentsValues: this.getStagePaymentsValues,\n        stagePaymentOptions: this.loadProjectStagePaymentOptions,\n        invoices: this.getStageRelatedInvoices\n      };\n    }\n    setupController(controller, model) {\n      super.setupController(controller, model);\n      controller.selectedStages = new Set();\n    }\n    willTransition() {\n      const stagePaymentOption = this.currentModel.project.last.value?.belongsTo('stagePaymentOption').value();\n      if (stagePaymentOption?.isNew) stagePaymentOption.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _route, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.TaskContainer = void 0;\n  var _class, _descriptor, _descriptor2, _class3, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let TaskContainer = _exports.TaskContainer = (_class = class TaskContainer {\n    constructor(task) {\n      _defineProperty(this, \"task\", void 0);\n      _initializerDefineProperty(this, \"children\", _descriptor, this);\n      _initializerDefineProperty(this, \"expanded\", _descriptor2, this);\n      this.task = task;\n      if (task.activeChildren.length) {\n        this.children = task.activeChildren.sortBy('path').map(c => new TaskContainer(c));\n      }\n    }\n    toJSON() {\n      return {\n        task: {\n          id: this.task.id,\n          status: this.task.status,\n          path: this.task.path,\n          project: this.task.belongsTo('project').id(),\n          timesheetStatus: this.task.timesheetStatus,\n          parent: this.task.belongsTo('parent').id(),\n          entity: this.task.belongsTo('entity').id()\n        },\n        children: this.children?.toArray()\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"expanded\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n  function removeDeletedTasks(list) {\n    return list.reduce((list, c) => {\n      // this assumes that when you delete a parent all the children are deleted\n      // if this changes, this code will need to change as well\n      if (\n      // we are unloading records from store as part of delete process,\n      // only way we can check task is deleted to check there store for its presence by using peekRecord\n      !this.store.peekRecord('task', c.task.id) || ['DRAFT_DELETED', 'DELETED'].includes(c.task.status)) return list;\n      if (c.children) c.children = removeDeletedTasks.bind(this)(c.children);\n      return [...list, c];\n    }, []);\n  }\n\n  /**\n   * Copies each matching container's expanded state from the previous tree into a\n   * newly built tree. Tasks are matched recursively by ID, so the state survives\n   * refreshes even when the TaskContainer instances have been replaced.\n   *\n   * Example:\n   *   taskList:         [{ task: { id: '1' }, expanded: false }]\n   *   previousTaskList: [{ task: { id: '1' }, expanded: true }]\n   *   result:           [{ task: { id: '1' }, expanded: true }]\n   */\n  function mergeTreeState(taskList = [], previousTaskList = []) {\n    const previousContainers = new Map();\n    const addPreviousContainers = (containers = []) => {\n      containers.forEach(container => {\n        previousContainers.set(container.task.id, container);\n        if (container.children?.length) addPreviousContainers(container.children);\n      });\n    };\n    const applyPreviousState = (containers = []) => {\n      containers.forEach(container => {\n        const previousContainer = previousContainers.get(container.task.id);\n        if (previousContainer) container.expanded = previousContainer.expanded;\n        if (container.children?.length) applyPreviousState(container.children);\n      });\n    };\n    addPreviousContainers(previousTaskList);\n    applyPreviousState(taskList);\n    return taskList;\n  }\n  let _class2 = _exports.default = (_class3 = class _class3 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId, {\n            reload: true,\n            adapterOptions: {\n              fields: {\n                projects: '_meta.canDelete'\n              }\n            }\n          });\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getTaskList\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const tasks = yield this.store.query('task', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: projectId\n              }]\n            },\n            fields: {\n              tasks: '_meta.hasBudget,_meta.hasQuote,_meta.hasProducts,_meta.hasAttachments'\n            }\n          });\n          const parentTasks = tasks.toArray().filter(task => !task.belongsTo('parent').id() && ['ACTIVE', 'DRAFT_CREATED'].includes(task.status)).sortBy('path');\n          return parentTasks.map(task => new TaskContainer(task));\n        }\n      }), null, \"getTaskList\", null));\n      _defineProperty(this, \"lastProjectId\", null);\n    }\n    // this runs after the model\n    setupController(controller, model) {\n      super.setupController(...arguments);\n\n      // if we are not in the same project dump the task list state\n      if (this.lastProjectId !== model.projectId) {\n        controller.taskList = undefined;\n        this.lastProjectId = model.projectId;\n        return;\n      }\n      this.lastProjectId = model.projectId;\n      // This is intended to keep the state of the page when navigating back to it\n      // for example, when deleting a task, after the delete you are navigated back.\n      // You want to keep the state inside the TaskContainer classes (e.g \"expanded\")\n\n      const previousTaskList = controller._taskList || this.getTaskList.lastSuccessful?.value;\n      if (previousTaskList) {\n        // the task list might have changed since we last loaded, so merge UI\n        // state back by task id instead of relying on array positions.\n        const controllerTasks = removeDeletedTasks.bind(this)(previousTaskList);\n        model.taskList.last.then(() => {\n          controller.taskList = mergeTreeState(model.taskList.last.value, controllerTasks);\n        });\n      }\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project_id: projectId\n      } = this.paramsFor(projectRoute);\n\n      // reload the project incase the financials have changed\n      this.getProject.perform(projectId);\n      this.getTaskList.perform(projectId);\n      return {\n        projectId,\n        project: this.getProject,\n        taskList: this.getTaskList,\n        refresh: () => this.refresh()\n      };\n    }\n  }, _descriptor3 = _applyDecoratedDescriptor(_class3.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class3.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class3.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class3);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId, project) {\n          yield project.last;\n          const [task] = yield Promise.all([this.store.findRecord('task', taskId, {\n            adapterOptions: {\n              fields: {\n                tasks: '_meta.taskHasDependencies,_meta.hasBudget,_meta.hasQuote,_meta.hasProducts,_meta.hasAttachments'\n              }\n            }\n          }),\n          // we need to load all the parent tasks for the breadcrumbs\n          // we need to load all the children tasks for the budget and quote\n          project.last.value.reloadTasks()]);\n          return task;\n        }\n      }), null, \"getTask\", null));\n    }\n    model({\n      task_id: taskId\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      this.getTask.perform(taskId, project);\n      return {\n        task: this.getTask\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/documents\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"getAttachments\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n\n          // if you can manage the files for this task use the task relationship\n          // this way the front end will update when adding new attachments\n          if (this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canManageFileStorage')) {\n            yield task.last.value.loadAttachments();\n            return task.last.value.myAttachments;\n          }\n\n          // we cant use the task relationship because it is not filtered by ac, make the request manually\n          const filter = {\n            and: [{\n              field: 'task',\n              op: 'EQ',\n              value: task.last.value.id\n            }]\n          };\n          const attachments = yield this.store.query('link-attachment-to-task', {\n            filter,\n            include: 'attachment',\n            sort: 'dateCreated'\n          }).then(r => r.map(a => a.belongsTo('attachment').value()));\n          return attachments;\n        }\n      }), null, \"getAttachments\", null));\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          if (!this.newFeatureFlags.canManageFileStorage(task.last.value) || !this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canManageUsers')) return [];\n          const userAttributes = yield this.store.simpleQuery('user-entity-attribute', {\n            entity: this.sessionData.entity.id,\n            attribute: 'canViewEntity'\n          });\n          if (!userAttributes.length) return [];\n          const userIds = userAttributes.map(ua => ua.belongsTo('user').id());\n          const users = yield this.store.simpleQuery('user', {\n            _id: {\n              $in: userIds\n            }\n          }, {\n            include: 'entityAttributes'\n          });\n          return users;\n        }\n      }), null, \"getUsers\", null));\n    }\n    async model() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getAttachments.perform(task);\n      this.getUsers.perform(task);\n      return {\n        task,\n        attachments: this.getAttachments,\n        users: this.getUsers\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/financials\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _defineProperty(this, \"loadBudget\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          yield task.last.value.loadBudget();\n        }\n      }), null, \"loadBudget\", null));\n      _defineProperty(this, \"loadQuote\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          yield task.last.value.loadQuote();\n        }\n      }), null, \"loadQuote\", null));\n      _defineProperty(this, \"loadProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          yield task.last.value.loadProducts();\n        }\n      }), null, \"loadProducts\", null));\n      _defineProperty(this, \"loadProfitMargins\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          if (!this.canManageProfitMargin) return;\n          yield task.last.value.loadProfitMargins();\n        }\n      }), null, \"loadProfitMargins\", null));\n    }\n    get canManageProfitMargin() {\n      return this.newFeatureFlags.includesFeatureFlags('canManageTasks');\n    }\n    model() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.loadBudget.perform(task);\n      this.loadQuote.perform(task);\n      this.loadProfitMargins.perform(task);\n      this.loadProducts.perform(task);\n      return {\n        task,\n        loadBudget: this.loadBudget,\n        loadQuote: this.loadQuote,\n        loadProfitMargins: this.loadProfitMargins\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      await task.last;\n      if (this.newFeatureFlags.includesSomeFeatureFlags(task.last.value, 'canUseTaskBudgets', 'canUseTaskQuotes')) {\n        this.router.transitionTo('entity.builda-price.projects.project.tasks.task.financials');\n      } else {\n        this.router.transitionTo('entity.builda-price.projects.project.tasks.task.settings');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      return {\n        task\n      };\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewClientReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewTaskBudgets'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewTaskQuotes'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewTaskProgress'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const canViewClientReportsAttributes = _exports.canViewClientReportsAttributes = ['canViewClientReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewFileStorage':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewProgress':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      case 'canViewClientReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canManageBudgets: () => true,\n    canManageFileStorage: () => true,\n    canManageTasks: () => true,\n    canManageQuotes: () => true,\n    canManageSchedulingReports: () => true,\n    canManageTimesheets: () => true,\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewBudgets: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewFileStorage: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewQuotes: () => true,\n    canViewProgress: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canViewInvoicingReports: () => true,\n    canViewClientReports: () => true\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (client, task) {\n          yield client.last;\n          yield task.last;\n          return (0, _emberChangeset.Changeset)({\n            canViewBudgets: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetsAttributes),\n            canViewQuotes: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuotesAttributes),\n            canViewProgress: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressAttributes),\n            canViewFileStorage: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewFileStorageAttributes),\n            canViewBudgetFinancialReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewChargeupReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewProgressReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewSchedulingReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewTasksAttributes),\n            canViewInvoicingReports: client.last.value.includesClaimsAboutProject(task.last.value.id, ...canViewInvoicingReportsAttributes),\n            canViewClientReports: client.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewClientReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"getClient\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const client = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return client;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the client'));\n            this.router.transitionTo(`${this.basePath}.clients`);\n          }\n        }\n      }), null, \"getClient\", null));\n    }\n    model({\n      client_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const taskRoute = 'entity.builda-price.projects.project.tasks.task';\n      const {\n        task\n      } = this.modelFor(taskRoute);\n      this.getClient.perform(id);\n      this.getPermissionsChangeset.perform(this.getClient, task);\n      return {\n        project,\n        task,\n        basePath: this.basePath,\n        client: this.getClient,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/clients/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _defineProperty(this, \"taskClientPermissions\", ['hasClientRole']);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getClients\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const [userProjectAttributes, userTaskAttributes] = yield Promise.all([this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasClientRole'\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: task.last.value.belongsTo('project').id()\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-task-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'task',\n                op: 'EQ',\n                value: task.last.value.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasClientRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          })]);\n          let users = userProjectAttributes.map(uea => uea.belongsTo('user').value());\n          return users.sortBy('firstName').reduce((group, client) => {\n            const hasTask = userTaskAttributes.toArray().some(upa => upa.belongsTo('user').id() === client.id);\n            (hasTask ? group.taskClients : group.unassignedClients).push(client);\n            return group;\n          }, {\n            taskClients: [],\n            unassignedClients: []\n          });\n        }\n      }), null, \"getClients\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getClients.perform(task);\n      return {\n        task,\n        project,\n        clients: this.getClients,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      // we can default to this route if user has access to users\n      if (this.newFeatureFlags.includesFeatureFlags(task.value, 'canUseBuildaPrice', 'canUseUsers')) {\n        this.router.transitionTo('entity.builda-price.projects.project.tasks.task.people.users');\n      } else if (this.newFeatureFlags.includesFeatureFlags(task.value, 'canUseBuildaPrice', 'canUseWorkers')) {\n        this.router.transitionTo('entity.builda-price.projects.project.tasks.task.people.workers');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getSubcontractors\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const [userProjectAttributes, userTaskAttributes] = yield Promise.all([this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasSubcontractorRole'\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: task.last.value.belongsTo('project').id()\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-task-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'task',\n                op: 'EQ',\n                value: task.last.value.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasSubcontractorRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          })]);\n          let users = userProjectAttributes.map(uea => uea.belongsTo('user').value());\n          return users.sortBy('firstName').reduce((group, user) => {\n            const hasTask = userTaskAttributes.toArray().some(upa => upa.belongsTo('user').id() === user.id);\n            (hasTask ? group.taskSubcontractors : group.unassignedSubcontractors).push(user);\n            return group;\n          }, {\n            taskSubcontractors: [],\n            unassignedSubcontractors: []\n          });\n        }\n      }), null, \"getSubcontractors\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getSubcontractors.perform(task);\n      return {\n        task,\n        project,\n        subcontractors: this.getSubcontractors,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManageProjectsAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageFileStorageAttributes = _exports.canManageEstimatesAttributes = _exports.canManageBudgetsAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canManageBudgetsAttributes = _exports.canManageBudgetsAttributes = ['canManageTaskBudgets'];\n  const canManageFileStorageAttributes = _exports.canManageFileStorageAttributes = ['canManageFileStorage'];\n  const canManageProductsAttributes = _exports.canManageProductsAttributes = ['canManageProducts'];\n  const canManageTasksAttributes = _exports.canManageTasksAttributes = ['canManageTasks'];\n  const canManageQuotesAttributes = _exports.canManageQuotesAttributes = ['canManageTaskQuotes'];\n  const canManageProgressAttributes = _exports.canManageProgressAttributes = ['canManageTaskProgress'];\n  const canManageSchedulingReportsAttributes = _exports.canManageSchedulingReportsAttributes = ['canManageTaskScheduling', 'canManageProgressReports'];\n  const canManageTimesheetsAttributes = _exports.canManageTimesheetsAttributes = ['canManageTimesheets'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewTaskBudgets'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewProductsAttributes = _exports.canViewProductsAttributes = ['canViewProducts'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewTaskQuotes'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewTaskProgress'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canManageEstimatesAttributes = _exports.canManageEstimatesAttributes = ['canManageEstimates'];\n  const canManageProjectsAttributes = _exports.canManageProjectsAttributes = ['canManageProjects'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canManageBudgets':\n        return true;\n      case 'canManageFileStorage':\n        return true;\n      case 'canManageProducts':\n        return true;\n      case 'canManageTasks':\n        return true;\n      case 'canManageQuotes':\n        return true;\n      case 'canManageProgress':\n        return true;\n      case 'canManageScheduling':\n        return true;\n      case 'canManageTimesheets':\n        return true;\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewFileStorage':\n        return true;\n      case 'canViewProducts':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewProgress':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canManageBudgets: () => true,\n    canManageFileStorage: () => true,\n    canManageProducts: () => true,\n    canManageTasks: () => true,\n    canManageQuotes: () => true,\n    canManageProgress: () => true,\n    canManageSchedulingReports: () => true,\n    canManageTimesheets: () => true,\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewBudgets: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewFileStorage: () => true,\n    canViewProducts: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewQuotes: () => true,\n    canViewProgress: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canViewInvoicingReports: () => null\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"getSubcontractor\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const subcontractor = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return subcontractor;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.somethingWentWrongFindingTheSubcontractor'));\n            this.router.transitionTo(`${this.basePath}.subcontractors`);\n          }\n        }\n      }), null, \"getSubcontractor\", null));\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (subcontractor, task) {\n          yield subcontractor.last;\n          yield task.last;\n          return (0, _emberChangeset.Changeset)({\n            canManageBudgets: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageBudgetsAttributes),\n            canManageFileStorage: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageFileStorageAttributes),\n            canManageProducts: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageProductsAttributes),\n            canManageTasks: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageTasksAttributes),\n            canManageQuotes: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageQuotesAttributes),\n            canManageProgress: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageProgressAttributes),\n            canManageSchedulingReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageSchedulingReportsAttributes),\n            canManageTimesheets: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageTimesheetsAttributes),\n            canViewBudgetFinancialReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewBudgets: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetsAttributes),\n            canViewChargeupReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewFileStorage: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewFileStorageAttributes),\n            canViewProducts: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProductsAttributes),\n            canViewProgressReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewQuotes: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuotesAttributes),\n            canViewProgress: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressAttributes),\n            canViewSchedulingReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewTasksAttributes),\n            canViewInvoicingReports: subcontractor.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewInvoicingReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n    }\n    model({\n      subcontractor_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const taskRoute = 'entity.builda-price.projects.project.tasks.task';\n      const {\n        task\n      } = this.modelFor(taskRoute);\n      this.getSubcontractor.perform(id);\n      this.getPermissionsChangeset.perform(this.getSubcontractor, task);\n      return {\n        project,\n        task,\n        basePath: this.basePath,\n        subcontractor: this.getSubcontractor,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/users/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const [userClientEntityAttributes, userProjectAttributes, userTaskAttributes, userSubcontractorAttributes] = yield Promise.all([this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasClientRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-project-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'project',\n                op: 'EQ',\n                value: task.last.value.belongsTo('project').id()\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'canViewProjects'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-task-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'task',\n                op: 'EQ',\n                value: task.last.value.id\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          }), this.store.query('user-entity-attribute', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }, {\n                field: 'attribute',\n                op: 'EQ',\n                value: 'hasSubcontractorRole'\n              }, {\n                field: 'user',\n                op: 'NE',\n                value: this.sessionData.user.id\n              }]\n            },\n            include: 'user'\n          })]);\n          let allUsers = userProjectAttributes.map(uea => uea.belongsTo('user').value());\n          const clientIds = userClientEntityAttributes.map(uea => uea.belongsTo('user').id());\n          const subcontractorIds = userSubcontractorAttributes.map(uea => uea.belongsTo('user').id());\n\n          // filter clients from users list\n          const users = allUsers.filter(user => !clientIds.includes(user.id) && !subcontractorIds.includes(user.id));\n          return users.sortBy('firstName').reduce((group, user) => {\n            const hasTask = userTaskAttributes.toArray().some(upa => upa.belongsTo('user').id() === user.id);\n            (hasTask ? group.taskUsers : group.unassignedUsers).push(user);\n            return group;\n          }, {\n            taskUsers: [],\n            unassignedUsers: []\n          });\n        }\n      }), null, \"getUsers\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getUsers.perform(task);\n      return {\n        task,\n        project,\n        users: this.getUsers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageFileStorageAttributes = _exports.canManageBudgetsAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canManageBudgetsAttributes = _exports.canManageBudgetsAttributes = ['canManageTaskBudgets'];\n  const canManageFileStorageAttributes = _exports.canManageFileStorageAttributes = ['canManageFileStorage'];\n  const canManageProductsAttributes = _exports.canManageProductsAttributes = ['canManageProducts'];\n  const canManageTasksAttributes = _exports.canManageTasksAttributes = ['canManageTasks'];\n  const canManageQuotesAttributes = _exports.canManageQuotesAttributes = ['canManageTaskQuotes'];\n  const canManageProgressAttributes = _exports.canManageProgressAttributes = ['canManageTaskProgress'];\n  const canManageSchedulingReportsAttributes = _exports.canManageSchedulingReportsAttributes = ['canManageTaskScheduling', 'canManageProgressReports'];\n  const canManageTimesheetsAttributes = _exports.canManageTimesheetsAttributes = ['canManageTimesheets'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewTaskBudgets'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canViewProductsAttributes = _exports.canViewProductsAttributes = ['canViewProducts'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewTaskQuotes'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewTaskProgress'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  const permissionsValidator = ({\n    key,\n    newValue: _newValue,\n    oldValue: _oldValue,\n    changes: _changes,\n    content: _content\n  }) => {\n    switch (key) {\n      case 'canManageBudgets':\n        return true;\n      case 'canManageFileStorage':\n        return true;\n      case 'canManageProducts':\n        return true;\n      case 'canManageTasks':\n        return true;\n      case 'canManageQuotes':\n        return true;\n      case 'canManageProgress':\n        return true;\n      case 'canManageScheduling':\n        return true;\n      case 'canManageTimesheets':\n        return true;\n      case 'canViewBudgetFinancialReports':\n        return true;\n      case 'canViewBudgetLabourHourReports':\n        return true;\n      case 'canViewBudgets':\n        return true;\n      case 'canViewChargeupReports':\n        return true;\n      case 'canViewCostFinancialReports':\n        return true;\n      case 'canViewCostLabourHourReports':\n        return true;\n      case 'canViewFileStorage':\n        return true;\n      case 'canViewProducts':\n        return true;\n      case 'canViewProgressReports':\n        return true;\n      case 'canViewQuoteReports':\n        return true;\n      case 'canViewQuotes':\n        return true;\n      case 'canViewProgress':\n        return true;\n      case 'canViewSchedulingReports':\n        return true;\n      case 'canViewTasks':\n        return true;\n      case 'canViewInvoicingReports':\n        return true;\n      default:\n        break;\n    }\n  };\n  const permissionsValidationMap = {\n    canManageBudgets: () => true,\n    canManageFileStorage: () => true,\n    canManageProducts: () => true,\n    canManageTasks: () => true,\n    canManageProgress: () => true,\n    canManageQuotes: () => true,\n    canManageSchedulingReports: () => true,\n    canManageTimesheets: () => true,\n    canViewBudgetFinancialReports: () => true,\n    canViewBudgetLabourHourReports: () => true,\n    canViewBudgets: () => true,\n    canViewChargeupReports: () => true,\n    canViewCostFinancialReports: () => true,\n    canViewCostLabourHourReports: () => true,\n    canViewFileStorage: () => true,\n    canViewProducts: () => true,\n    canViewProgressReports: () => true,\n    canViewQuoteReports: () => true,\n    canViewQuotes: () => true,\n    canViewProgress: () => true,\n    canViewSchedulingReports: () => true,\n    canViewTasks: () => true,\n    canViewInvoicingReports: () => null\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user, task) {\n          yield user.last;\n          yield task.last;\n          return (0, _emberChangeset.Changeset)({\n            canManageBudgets: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageBudgetsAttributes),\n            canManageFileStorage: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageFileStorageAttributes),\n            canManageProducts: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageProductsAttributes),\n            canManageTasks: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageTasksAttributes),\n            canManageQuotes: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageQuotesAttributes),\n            canManageProgress: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageProgressAttributes),\n            canManageSchedulingReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageSchedulingReportsAttributes),\n            canManageTimesheets: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canManageTimesheetsAttributes),\n            canViewBudgetFinancialReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewBudgets: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewBudgetsAttributes),\n            canViewChargeupReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewChargeupReportsAttributes),\n            canViewCostFinancialReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewCostLabourHourReportsAttributes),\n            canViewFileStorage: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewFileStorageAttributes),\n            canViewProducts: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProductsAttributes),\n            canViewProgressReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressReportsAttributes),\n            canViewQuoteReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuoteReportsAttributes),\n            canViewQuotes: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewQuotesAttributes),\n            canViewProgress: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewProgressAttributes),\n            canViewSchedulingReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewSchedulingReportsAttributes),\n            canViewTasks: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewTasksAttributes),\n            canViewInvoicingReports: user.last.value.includesClaimsAboutTask(task.last.value.id, ...canViewInvoicingReportsAttributes)\n          }, permissionsValidator, permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"getUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const user = yield this.store.findRecord('user', id);\n\n            // fetch user's attributes\n            // TODO this should be possible with an includes but our API doesn't work properly\n            yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-project-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-task-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('user-worker-attribute', {\n              user: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return user;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the user'));\n            this.router.transitionTo(`${this.basePath}.users`);\n          }\n        }\n      }), null, \"getUser\", null));\n    }\n    model({\n      user_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const taskRoute = 'entity.builda-price.projects.project.tasks.task';\n      const {\n        task\n      } = this.modelFor(taskRoute);\n      this.getUser.perform(id);\n      this.getPermissionsChangeset.perform(this.getUser, task);\n      return {\n        project,\n        task,\n        basePath: this.basePath,\n        user: this.getUser,\n        permissionsChangeset: this.getPermissionsChangeset\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/workers/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.workerTaskAttributes = _exports.workerProjectAttributes = _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const workerTaskAttributes = _exports.workerTaskAttributes = ['canViewTasks'];\n  const workerProjectAttributes = _exports.workerProjectAttributes = ['canViewProjects'];\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const workerProjectAttributes = yield this.store.simpleQuery('worker-project-attribute', {\n            project: task.last.value.belongsTo('project').id(),\n            entity: this.sessionData.entity.id,\n            attribute: 'canViewProjects'\n          });\n          let workerIds = workerProjectAttributes.map(wpa => wpa.belongsTo('worker').id());\n          const workers = workerIds.length ? yield this.store.simpleQuery('worker', {\n            _id: {\n              $in: workerIds\n            }\n          }, {\n            include: 'taskAttributes'\n          }).then(ws => ws.sortBy('firstName')) : [];\n          return workers.reduce((workers, worker) => {\n            const hasTask = worker.includesClaimsAboutTask(task.last.value.id, ...workerTaskAttributes);\n            if (hasTask) workers.taskWorkers.push(worker);\n            // only add active workers to unassigned list\n            else if (worker.isActive) workers.unassignedWorkers.push(worker);\n            return workers;\n          }, {\n            unassignedWorkers: [],\n            taskWorkers: []\n          });\n        }\n      }), null, \"getWorkers\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getWorkers.perform(task);\n      return {\n        task,\n        workers: this.getWorkers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/people/workers/worker\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.projects.project.tasks.task.people');\n      _defineProperty(this, \"getWorker\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          try {\n            const worker = yield this.store.findRecord('worker', id);\n\n            // fetch workers's attributes\n            yield Promise.all([this.store.simpleQuery('worker-entity-attribute', {\n              worker: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('worker-project-attribute', {\n              worker: id,\n              entity: this.sessionData.entity.id\n            }), this.store.simpleQuery('worker-task-attribute', {\n              worker: id,\n              entity: this.sessionData.entity.id\n            })]);\n            return worker;\n          } catch (_) {\n            this.notifications.error(this.intl.t('shared.notification.Something went wrong finding the worker'));\n            this.router.transitionTo(`${this.basePath}.workers`);\n          }\n        }\n      }), null, \"getWorker\", null));\n    }\n    model({\n      worker_id: id\n    }) {\n      const projectRoute = 'entity.builda-price.projects.project';\n      const {\n        project\n      } = this.modelFor(projectRoute);\n      const taskRoute = 'entity.builda-price.projects.project.tasks.task';\n      const {\n        task\n      } = this.modelFor(taskRoute);\n      this.getWorker.perform(id);\n      return {\n        project,\n        task,\n        basePath: this.basePath,\n        worker: this.getWorker\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/products\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageIndex: {\n          refreshModel: true\n        },\n        sortBy: {\n          refreshModel: true\n        },\n        sortDirection: {\n          refreshModel: true\n        },\n        searchTerm: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [10, 25, 50, 100]);\n      _defineProperty(this, \"getProducts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task, pageSize, pageIndex, sortBy, sortDirection, searchTerm) {\n          yield task.last;\n          const filters = {\n            and: [{\n              field: 'task',\n              operator: 'EQ',\n              value: task.last.value.id\n            }, {\n              field: 'entity',\n              operator: 'EQ',\n              value: task.last.value.belongsTo('entity').id()\n            }],\n            or: []\n          };\n          if (searchTerm?.length) {\n            filters.or.push({\n              field: 'description',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n            filters.or.push({\n              field: 'sku',\n              operator: 'ILIKE',\n              value: searchTerm\n            });\n          }\n          let orderBy;\n          switch (sortBy) {\n            case 'Product':\n              orderBy = 'description';\n              break;\n            case 'Supplier':\n              orderBy = 'supplierName';\n              break;\n            case 'SKU':\n              orderBy = 'sku';\n              break;\n            case 'Unit':\n              orderBy = 'unit';\n              break;\n            case 'Unit price':\n              orderBy = 'unitPrice';\n              break;\n            case 'Quantity':\n              orderBy = 'quantity';\n              break;\n            default:\n              break;\n          }\n          const taskProducts = yield this.store.query('task-product', {\n            filter: filters,\n            orderBy: orderBy || 'dateCreated',\n            orderByDirection: sortDirection || 'desc',\n            pageSize,\n            page: pageIndex\n          });\n          return taskProducts;\n        }\n      }), null, \"getProducts\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageIndex = 1,\n      sortBy = 'dateCreated',\n      sortDirection = 'desc',\n      searchTerm\n    }) {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.getProducts.perform(task, Number(pageSize), Number(pageIndex), sortBy, sortDirection, searchTerm);\n      return {\n        task,\n        products: this.getProducts,\n        pageSize: Number(pageSize),\n        pageIndex: Number(pageIndex),\n        sortBy,\n        sortDirection,\n        searchTerm,\n        pageSizes: this.pageSizes\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/projects/project/tasks/task/settings\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _object, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"@ember/service\",0,\"ember-changeset\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor5, this);\n      _defineProperty(this, \"loadTaskProfitMargin\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          if (!this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canManageProfitMargin')) return;\n          yield task.last.value.loadProfitMargins();\n          if (!task.last.value.belongsTo('profitMargin').value()) {\n            task.last.value.profitMargin = this.store.createRecord('profit-margin', {\n              entity: task.last.value.belongsTo('entity').value()\n            });\n          }\n        }\n      }), null, \"loadTaskProfitMargin\", null));\n      _defineProperty(this, \"createTaskChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task, profitMargin) {\n          yield task.last;\n          yield profitMargin.last;\n          return (0, _emberChangeset.Changeset)(task.last.value, this.taskValidator.bind(this));\n        }\n      }), null, \"createTaskChangeset\", null));\n      _defineProperty(this, \"createProfitMarginChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task, profitMargin) {\n          yield task.last;\n          if (!this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canManageProfitMargin')) return;\n          yield profitMargin.last;\n          return (0, _emberChangeset.Changeset)(task.last.value.belongsTo('profitMargin').value(), this.profitMarginValidator.bind(this));\n        }\n      }), null, \"createProfitMarginChangeset\", null));\n      _defineProperty(this, \"loadGlAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const accounts = yield this.accountingPlatform.loadActivePlatformGlAccounts.perform();\n          return accounts?.toArray();\n        }\n      }), null, \"loadGlAccounts\", null));\n    }\n    taskValidator({\n      key,\n      newValue\n    }) {\n      if (key === 'name') return newValue.length > 0 || this.intl.t('validation.Please provide a name');\n    }\n    profitMarginValidator({\n      key,\n      newValue,\n      oldValue,\n      changes,\n      content\n    }) {\n      if (key === 'profitType') {\n        return Boolean(newValue || oldValue) || this.intl.t('validation.profitType');\n      }\n\n      // check for the currently selected profit type\n      let profitType = changes.profitType || content.profitType;\n      const percentage = newValue || oldValue;\n      if (key !== 'profitType' && typeof percentage !== 'number') return true;\n      if (profitType === 'MARGIN') {\n        // null is valid\n        if (percentage === null) return true;\n        return percentage < 1 || this.intl.t('validation.Please input a value less than 100');\n      }\n      return true;\n    }\n    async model() {\n      const {\n        task\n      } = this.modelFor('entity.builda-price.projects.project.tasks.task');\n      this.loadTaskProfitMargin.perform(task);\n      this.createTaskChangeset.perform(task, this.loadTaskProfitMargin);\n      this.createProfitMarginChangeset.perform(task, this.loadTaskProfitMargin);\n      this.loadGlAccounts.perform();\n      return {\n        task,\n        loadTaskProfitMargin: this.loadTaskProfitMargin,\n        taskChangeset: this.createTaskChangeset,\n        profitMarginChangeset: this.createProfitMarginChangeset,\n        glAccounts: this.loadGlAccounts\n      };\n    }\n    willTransition() {\n      const profitMargin = this.currentModel.task.last.value?.safeBelongsToValue('profitMargin');\n      if (profitMargin?.isNew) {\n        // Detach the placeholder so it cannot later serialize with a null id.\n        this.currentModel.task.last.value.profitMargin = null;\n        profitMargin.destroyRecord();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/forecast-breakdown\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        },\n        excludedProjectIds: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getForecastReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate = new Date(), excludedProjectIds, status = 'OPEN') {\n          const filter = {\n            entity: this.sessionData.entity.id\n          };\n          if (status && status !== 'ALL') filter.status = status;\n          if (excludedProjectIds && excludedProjectIds.length) filter._id = {\n            $nin: excludedProjectIds\n          };\n          const linkToProject = this.newFeatureFlags.includesFeatureFlags('canUseProjectForecastReport');\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.company.forecast-breakdown.Forecast report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Status')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast hours'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Avg hourly cost'),\n                  tooltip: this.intl.t('shared.reports.avgHourlyCostTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast labour'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast materials'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast subcontractors'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Sums'),\n                  tooltip: this.intl.t('shared.reports.forecastReportSumsTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast total'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'WORKERS_AVG_COST',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  }\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: linkToProject ? {\n                  route: 'entity.builda-price.reports.projects.project.forecast-breakdown',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'PROPERTY',\n                key: 'status',\n                humanEnums: true\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'WORKERS_AVG_COST',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getForecastReport\", null));\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id\n          });\n          return projects.sortBy('sortIndex');\n        }\n      }), null, \"getProjects\", null));\n    }\n    model({\n      selectedDate,\n      status = 'OPEN',\n      excludedProjectIds\n    }) {\n      this.getProjects.perform();\n      this.getForecastReport.perform(selectedDate, excludedProjectIds, status);\n      return {\n        forecastTable: this.getForecastReport,\n        projects: this.getProjects\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/invoicing\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.company.invoicing');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getInvoiceReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate) {\n          const filter = {\n            entity: this.sessionData.entity.id,\n            status: {\n              $eq: 'OPEN'\n            }\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const summaryMetricSubject = {\n            resourceName: 'entities',\n            filter: {\n              _id: this.sessionData.entity.id\n            }\n          };\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.company.invoicing.Invoicing report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              name: this.intl.t('common.Summary'),\n              index: 1,\n              width: 2,\n              height: 2,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Total billable')\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Total invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Billable remaining')\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.company.invoicing.Billable used'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Billable'),\n                  metric: 'TEXT'\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'INVOICEABLE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL'\n              }]]\n            }, {\n              name: this.intl.t('common.Projects'),\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Total billable'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Billable to date'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Invoiced'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.invoicing.Billable remaining'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'INVOICEABLE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'INVOICED_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'INVOICEABLE_TOTAL_REMAINING',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.invoicing',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getInvoiceReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      this.getInvoiceReport.perform(selectedDate);\n      return {\n        basePath: this.basePath,\n        invoiceTable: this.getInvoiceReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/labour-hours\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _route, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"csvExportOptions\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.company.labour-hours');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, status) {\n          const filter = {\n            entity: this.sessionData.entity.id\n          };\n          if (status !== 'ALL') filter.status = status;\n          const linkToProject = this.basePath?.includes('embed') ? false : this.newFeatureFlags.includesFeatureFlags('canUseProjectLabourHourReport');\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('shared.reports.Labour hours report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: {\n                  resourceName: 'projects',\n                  filter\n                },\n                metric: 'FORECAST_MANHOURS_TOTAL'\n              }]]\n            }, {\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'COST_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'VARIANCE_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: linkToProject ? {\n                  route: 'entity.builda-price.reports.projects.project.labour-hours',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n    }\n    model({\n      selectedDate,\n      status = 'OPEN'\n    }) {\n      this.getAdHocReport.perform(selectedDate, status);\n      return {\n        entity: this.sessionData.entity,\n        entityLevelReport: this.getAdHocReport,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"csvExportOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/notes\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.company');\n      _defineProperty(this, \"queryParams\", {\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        filterByDate: {\n          refreshModel: true\n        },\n        projectIds: {\n          refreshModel: true\n        },\n        workerIds: {\n          refreshModel: true\n        },\n        invoiceId: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          return this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id,\n            status: 'OPEN'\n          }, {\n            sort: 'sortIndex'\n          });\n        }\n      }), null, \"getProjects\", null));\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          return this.store.simpleQuery('worker', {\n            entity: this.sessionData.entity.id,\n            isActive: true\n          }, {\n            sort: 'firstName,lastName'\n          });\n        }\n      }), null, \"getWorkers\", null));\n      _defineProperty(this, \"getNoteReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (_startDate, _endDate, _projectIds, _workerIds, filterByDate, invoiceId) {\n          const projectIds = _projectIds?.split(',');\n          const workerIds = _workerIds?.split(',');\n          const startDate = new Date(_startDate);\n          const endDate = new Date(_endDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const linkToTimesheet = !this.basePath.includes('embed');\n          const filter = {\n            $and: [{\n              entityId: {\n                $eq: this.sessionData.entity.id\n              }\n            }]\n          };\n          if (invoiceId) {\n            filter.$and.push({\n              linkedInvoiceIds: {\n                $like: `%${invoiceId}%`\n              }\n            });\n          } else {\n            if (projectIds) {\n              filter.$and.push({\n                projectId: {\n                  $in: projectIds\n                }\n              });\n            }\n            if (workerIds) {\n              filter.$and.push({\n                workerId: {\n                  $in: workerIds\n                }\n              });\n            }\n            if (filterByDate) {\n              const dayEndDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n              const dayStartDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n              filter.$and.push({\n                date: {\n                  $lte: dayEndDate,\n                  $gte: dayStartDate\n                }\n              });\n            }\n          }\n          const noteReport = {\n            index: 1,\n            width: 12,\n            elementType: 'NOTE_TIMELINE',\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'timesheet-note-views',\n              sortKey: 'date',\n              sortDirection: 'DESC',\n              filter\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'date'\n            }, {\n              metric: 'PROPERTY',\n              key: 'workerName'\n            }, [{\n              metric: 'PROPERTY',\n              key: 'projectName'\n            }, {\n              metric: 'PROPERTY',\n              key: 'taskName'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'timesheet.duration'\n            }], {\n              metric: 'PROPERTY',\n              key: 'note'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'attachments.file'\n            }, {\n              metric: 'PROPERTY',\n              key: 'noteType'\n            }]]\n          };\n          if (linkToTimesheet) {\n            noteReport.metrics[0].push({\n              metric: 'TEXT',\n              valueOverride: 'View timesheet',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.timesheets.timesheet',\n                queryParams: {\n                  date: {\n                    key: 'date'\n                  },\n                  worker: {\n                    key: 'workerId'\n                  }\n                }\n              }\n            });\n          }\n          const report = {\n            name: 'Notes',\n            subjects: [noteReport]\n          };\n          if (!invoiceId && filterByDate) {\n            report.dateRange = {\n              startDate,\n              endDate\n            };\n          }\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          return loadedReport;\n        }\n      }), null, \"getNoteReport\", null));\n    }\n    model({\n      startDate,\n      endDate,\n      projectIds,\n      workerIds,\n      invoiceId,\n      filterByDate\n    }) {\n      this.getProjects.perform();\n      this.getWorkers.perform();\n      this.getNoteReport.perform(startDate, endDate, projectIds, workerIds, filterByDate, invoiceId);\n      return {\n        basePath: this.basePath,\n        noteReport: this.getNoteReport,\n        getProjects: this.getProjects,\n        getWorkers: this.getWorkers\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/position\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.company');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, status) {\n          const filter = {\n            entity: this.sessionData.entity.id\n          };\n          if (status !== 'ALL') filter.status = status;\n          const linkToProject = this.basePath?.includes('embed') ? false : this.newFeatureFlags.includesFeatureFlags('canUseProjectPositionReport');\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const financialBreakDown = {\n            name: this.intl.t('shared.reports.Financial breakdown'),\n            index: 4,\n            width: 7,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Total'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'projects',\n              filter\n            },\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Budget')\n            }, {\n              metric: 'BUDGET_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.reports.Actual')\n            }, {\n              metric: 'COST_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'COST_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Used')\n            }, {\n              metric: 'BUDGET_LABOUR_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'BUDGET_TOTAL_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Quote')\n            }, {\n              metric: 'QUOTE_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Chargeup')\n            }, {\n              metric: 'CHARGEUP_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'CHARGEUP_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          };\n          if (this.newFeatureFlags.includesFeatureFlags('canUseEntityInvoicingReport')) {\n            financialBreakDown.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced')\n            }, {\n              metric: 'INVOICED_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n          }\n          const report = {\n            name: this.intl.t('shared.reports.Position report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast used'),\n              elementType: 'BIG_TEXT',\n              borderStyle: 'BORDER',\n              axes: {\n                label: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.report.The amount of your forecast used')\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'FINANCIAL_PROGRESS_TOTAL'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL'\n                }], [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_TOTAL'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: {\n                  resourceName: 'projects',\n                  filter\n                },\n                metric: 'FORECAST_BUDGET'\n              }]]\n            }, financialBreakDown, {\n              name: this.intl.t('common.Labour hours'),\n              index: 5,\n              width: 3,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Budget')\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Used')\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast'),\n                tooltip: 'Forecasted from your progress'\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Remaining'),\n                tooltip: 'The difference between your forecast and your actual'\n              }, {\n                metric: 'REMAINING_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                tooltip: 'The difference between your forecast and your budget'\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0\n              }]]\n            }, {\n              name: this.intl.t('common.Projects'),\n              index: 6,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Status')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1,\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'VARIANCE_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: linkToProject ? {\n                  route: 'entity.builda-price.reports.projects.project.position',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'PROPERTY',\n                key: 'status',\n                humanEnums: true\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                linkTo: linkToProject ? {\n                  route: 'entity.builda-price.reports.projects.project.budget',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n    }\n    model({\n      selectedDate,\n      status = 'OPEN'\n    }) {\n      this.getAdHocReport.perform(selectedDate, status);\n      return {\n        entity: this.sessionData.entity,\n        entityLevelReport: this.getAdHocReport,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/profit-margins\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        },\n        excludedProjectIds: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.company.profit-margins');\n      _defineProperty(this, \"getProfitMarginsReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate = new Date(), excludedProjectIds, status = 'OPEN') {\n          const filter = {\n            entity: this.sessionData.entity.id\n          };\n          if (status !== 'ALL') filter.status = status;\n          if (excludedProjectIds && excludedProjectIds.length) filter._id = {\n            $nin: excludedProjectIds\n          };\n          const linkToProject = this.basePath?.includes('embed') ? false : this.newFeatureFlags.includesFeatureFlags('canUseProjectProfitMarginReport');\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.company.profit-margins.Profit margin report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Status')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast margin'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.forecastMarginPercentage'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0,\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT_MARGIN',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0,\n                  showPositiveNegativeIndicator: true,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: linkToProject ? {\n                  route: 'entity.builda-price.reports.projects.project.profit-margins',\n                  modelKeys: ['_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'PROPERTY',\n                key: 'status',\n                humanEnums: true\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'GROSS_PROFIT',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                dashZero: true\n              }, {\n                metric: 'GROSS_PROFIT_MARGIN',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                showPositiveNegativeIndicator: true,\n                dashZero: true\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getProfitMarginsReport\", null));\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id\n          });\n          return projects.sortBy('sortIndex');\n        }\n      }), null, \"getProjects\", null));\n    }\n    model({\n      selectedDate,\n      status = 'OPEN',\n      excludedProjectIds\n    }) {\n      this.getProjects.perform();\n      this.getProfitMarginsReport.perform(selectedDate, excludedProjectIds, status);\n      return {\n        profitMarginsTable: this.getProfitMarginsReport,\n        projects: this.getProjects,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/company/wip\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        },\n        excludedProjectIds: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getWipReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projects, selectedDate = new Date(), excludedProjectIds, status = 'OPEN') {\n          yield projects.last;\n          const hasValueProjects = projects.last.value.filter(project => project.belongsTo('currentBudgetVersion').id() || project.belongsTo('currentQuoteVersion').id());\n          const filter = {\n            entity: this.sessionData.entity.id,\n            _id: {\n              $in: hasValueProjects.map(project => project.id),\n              $nin: []\n            }\n          };\n          if (status && status !== 'ALL') filter.status = status;\n          if (excludedProjectIds && excludedProjectIds.length) filter._id.$nin = excludedProjectIds || [];\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.company.wip.Work in progress report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Project name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Costs to date'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Forecast costs'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Forecast gross profit'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Gross profit margin'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Current gross profit'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Invoiced to date'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.WIP position'),\n                  tooltip: this.intl.t('entity.builda-price.reports.company.wip.wipPositionExplanation'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Net WIP')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'WIP_POSITION',\n                  lowerLimit: 0,\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }], [{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Current asset')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'WIP_ASSET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }], [{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.company.wip.Current liability')\n                }, {\n                  subject: {\n                    resourceName: 'projects',\n                    filter\n                  },\n                  metric: 'WIP_LIABILITY',\n                  lowerLimit: 0,\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name'\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_COST',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WIP_BUDGET_FORECAST_USED',\n                upperLimit: 1,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WIP_FORECAST_GROSS_PROFIT',\n                lowerLimit: 0,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WIP_GROSS_PROFIT_MARGIN',\n                lowerLimit: 0,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WIP_CURRENT_GROSS_PROFIT',\n                lowerLimit: 0,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'WIP_POSITION',\n                lowerLimit: 0,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getWipReport\", null));\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id\n          });\n          return projects.sortBy('sortIndex');\n        }\n      }), null, \"getProjects\", null));\n    }\n    model({\n      selectedDate,\n      status = 'OPEN',\n      excludedProjectIds\n    }) {\n      this.getProjects.perform();\n      this.getWipReport.perform(this.getProjects, selectedDate, excludedProjectIds, status);\n      return {\n        wipReportTable: this.getWipReport,\n        projects: this.getProjects\n      };\n    }\n    resetController(controller, isExiting) {\n      if (isExiting) {\n        controller._excludedProjects = null;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    beforeModel(transition) {\n      if (transition.targetName === this.fullRouteName) this.router.transitionTo('entity.builda-price');\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"queryParams\", {\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (status) {\n          const filter = {\n            entity: this.sessionData.entity.id\n          };\n          if (status !== 'ALL') filter.status = status;\n          const projects = yield this.store.simpleQuery('project', filter);\n          return projects.toArray();\n        }\n      }), null, \"getProjects\", null));\n      _defineProperty(this, \"getProjectsData\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (status, projects) {\n          yield projects.last;\n\n          // find projects we have report permission for\n          const projectIds = projects.last.value.filter(p => this.newFeatureFlags.includesSomeFeatureFlags(p, 'canUseProjectQuoteReport', 'canUseProjectCostReport', 'canUseProjectBudgetReport', 'canUseProjectForecastReport', 'canUseProjectProfitMarginReport', 'canUseProjectChargeupReport', 'canUseProjectPositionReport', 'canUseProjectLabourHourReport', 'canUseProjectClientReport')).map(p => p.id);\n          const report = {\n            name: this.intl.t('common.Projects'),\n            subjects: [{\n              index: 1,\n              elementType: 'PROJECTS_TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'col-3 d-none d-sm-block'\n                  }]\n                }]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'projects',\n                filter: {\n                  status: status === 'ALL' ? undefined : status,\n                  _id: {\n                    $in: projectIds\n                  }\n                }\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'name',\n                classes: [{\n                  class: 'col-sm-3 fs-2 report-engine-table__text-dark'\n                }],\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project',\n                  modelKeys: ['_id']\n                }\n              }]]\n            }]\n          };\n          if (this.newFeatureFlags.userIsEntityAdmin || this.sessionData.user?.includesSomeClaimsAboutEntity(this.sessionData.entity?.id, 'canViewProgressReports', 'canManageProgressReports')) {\n            report.subjects[0].axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Progress'),\n              classes: [{\n                class: 'col-2 fw-bold position-relative d-none d-sm-block'\n              }]\n            });\n            report.subjects[0].metrics[0].push({\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'col-2 fs-5 d-none d-sm-block'\n              }]\n            });\n          }\n          if (this.newFeatureFlags.userIsEntityAdmin || this.sessionData.user?.includesSomeClaimsAboutEntity(this.sessionData.entity?.id, 'canViewBudgetFinancialReports', 'canManageBudgetReports')) {\n            report.subjects[0].axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Budget'),\n              classes: [{\n                class: 'col-2 fw-bold position-relative d-none d-sm-block'\n              }]\n            });\n            report.subjects[0].metrics[0].push({\n              metric: 'BUDGET_TOTAL',\n              classes: [{\n                class: 'col-2 fs-5 d-none d-sm-block'\n              }]\n            });\n          }\n          if (this.newFeatureFlags.userIsEntityAdmin || this.sessionData.user?.includesSomeClaimsAboutEntity(this.sessionData.entity?.id, 'canViewCostFinancialReports', 'canManageCostReports')) {\n            report.subjects[0].axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.reports.Actual'),\n              classes: [{\n                class: 'col-2 fw-bold position-relative d-none d-sm-block'\n              }]\n            });\n            report.subjects[0].metrics[0].push({\n              metric: 'COST_TOTAL',\n              classes: [{\n                class: 'col-2 fs-5 d-none d-sm-block'\n              }]\n            });\n          }\n          if (this.newFeatureFlags.userIsEntityAdmin || this.sessionData.user?.includesSomeClaimsAboutEntity(this.sessionData.entity?.id, 'canViewCostFinancialReports', 'canManageCostReports') && this.sessionData.user?.includesSomeClaimsAboutEntity(this.sessionData.entity?.id, 'canViewBudgetFinancialReports', 'canManageBudgetReports')) {\n            report.subjects[0].axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Used'),\n              classes: [{\n                class: 'col-1 fw-bold position-relative d-none d-sm-block'\n              }]\n            });\n            report.subjects[0].metrics[0].push({\n              metric: 'BUDGET_TOTAL_USED',\n              classes: [{\n                class: 'col-1 fs-5 d-none d-sm-block'\n              }],\n              upperLimit: 1\n            });\n          }\n          report.subjects[0].axes.thead.push({\n            metric: 'TEXT',\n            valueOverride: this.intl.t('common.Status'),\n            classes: [{\n              class: 'col-2 fw-bold text-center position-relative d-none d-sm-block'\n            }]\n          });\n          report.subjects[0].metrics[0].push({\n            metric: 'PROPERTY',\n            key: 'status',\n            humanEnums: true,\n            classes: [{\n              class: 'col-2 justify-content-center d-none d-sm-flex report-engine-table__badge'\n            }, {\n              key: 'status',\n              humanEnums: true,\n              case: 'OPEN',\n              class: 'report-engine-table__success text-white'\n            }, {\n              key: 'status',\n              humanEnums: true,\n              case: 'HELD',\n              class: 'report-engine-table__warning text-dark'\n            }, {\n              key: 'status',\n              humanEnums: true,\n              case: 'CLOSED',\n              class: 'report-engine-table__danger text-white'\n            }, {\n              key: 'status',\n              humanEnums: true,\n              case: 'ARCHIVED',\n              class: 'report-engine-table__secondary text-white'\n            }]\n          });\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          return loadedReport;\n        }\n      }), null, \"getProjectsData\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model({\n      status = 'OPEN'\n    }) {\n      this.getProjects.perform(status);\n      this.getProjectsData.perform(status, this.getProjects);\n      return {\n        projectsData: this.getProjectsData\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          try {\n            const project = yield this.store.findRecord('project', projectId, {\n              reload: true\n            });\n            return project;\n          } catch (_) {\n            // this means we either don't have access to the project or the project doesn't exist\n            // go back to the projects list\n            this.router.transitionTo('entity.builda-price.reports.projects');\n          }\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getOpenProjects\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const projects = yield this.store.simpleQuery('project', {\n            entity: this.sessionData.entity.id,\n            status: 'OPEN'\n          });\n          return projects.sortBy('sortIndex').toArray();\n        }\n      }), null, \"getOpenProjects\", null));\n    }\n    model({\n      project_id: projectId\n    }) {\n      this.getProject.perform(projectId);\n      this.getOpenProjects.perform();\n      return {\n        project: this.getProject,\n        openProjects: this.getOpenProjects\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/access\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        filterByDate: {\n          refreshModel: true\n        },\n        workerIds: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          return this.store.simpleQuery('worker', {\n            entity: this.sessionData.entity.id,\n            isActive: true\n          }, {\n            sort: 'firstName,lastName'\n          });\n        }\n      }), null, \"getWorkers\", null));\n      _defineProperty(this, \"getReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, _startDate, _endDate, filterByDate, workerIds) {\n          yield project.last;\n          const startDate = (0, _moment.default)(_startDate).startOf('day').toDate();\n          const endDate = (0, _moment.default)(_endDate).endOf('day').toDate();\n          const filter = {\n            $and: [{\n              entityId: {\n                $eq: this.sessionData.entity.id\n              },\n              projectId: {\n                $eq: project.last.value.id\n              }\n            }]\n          };\n          if (filterByDate) {\n            filter.$and.push({\n              entryTime: {\n                $gte: startDate,\n                $lte: endDate\n              }\n            });\n          }\n          if (workerIds?.length) {\n            filter.$and.push({\n              workerId: {\n                $in: workerIds\n              }\n            });\n          }\n          const occupancyFilter = {\n            $and: [{\n              entityId: {\n                $eq: this.sessionData.entity.id\n              },\n              projectId: {\n                $eq: project.last.value.id\n              }\n            }]\n          };\n          if (workerIds?.length) {\n            occupancyFilter.$and.push({\n              workerId: {\n                $in: workerIds\n              }\n            });\n          }\n          const occupancyReport = {\n            name: 'On site',\n            index: 1,\n            width: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'project-occupancy-views',\n              sortKey: 'entryTime',\n              sortDirection: 'DESC',\n              // don't filter the on site report by date\n              filter: occupancyFilter\n            },\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: 'Name'\n              }, {\n                metric: 'TEXT',\n                valueOverride: 'Entry time'\n              }]\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'actorName'\n            }, {\n              metric: 'PROPERTY',\n              key: 'entryTime'\n            }]]\n          };\n          const accessReport = {\n            name: 'Access history',\n            index: 2,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'project-access-log-views',\n              sortKey: 'entryTime',\n              sortDirection: 'DESC',\n              filter\n            },\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: 'Name'\n              }, {\n                metric: 'TEXT',\n                valueOverride: 'Entry time'\n              }, {\n                metric: 'TEXT',\n                valueOverride: 'Exit time'\n              }, {\n                metric: 'TEXT',\n                valueOverride: 'Time on site'\n              }]\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'actorName'\n            }, {\n              metric: 'PROPERTY',\n              key: 'entryTime'\n            }, {\n              metric: 'PROPERTY',\n              key: 'exitTime'\n            }, {\n              metric: 'PROPERTY',\n              key: 'duration'\n            }]]\n          };\n          const report = {\n            name: 'Access',\n            subjects: [occupancyReport, accessReport]\n          };\n          if (filterByDate) {\n            report.dateRange = {\n              startDate,\n              endDate\n            };\n          }\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          return loadedReport;\n        }\n      }), null, \"getReport\", null));\n    }\n    model({\n      startDate,\n      endDate,\n      filterByDate,\n      workerIds\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getWorkers.perform();\n      this.getReport.perform(this.getProject, startDate, endDate, filterByDate, workerIds?.split(','));\n      return {\n        project: this.getProject,\n        tasks: this.getProjectTasks,\n        // Note: this property is returned but not defined in this snippet\n        workers: this.getWorkers,\n        basePath: this.basePath,\n        report: this.getReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/budget/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getBudgetReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const canUseProjectBudgetReport = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseBudgetReport');\n          const canUseCostReports = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseProjectCostReport');\n          const summaryMetricSubject = canUseProjectBudgetReport ? {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          } : {\n            resourceName: 'tasks',\n            filter\n          };\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.budget.Budget report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Labour'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_LABOUR'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_LABOUR'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Materials'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  label: 'Budget',\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_MATERIALS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MATERIALS'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Subcontractors'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_SUBCONTRACTORS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_SUBCONTRACTORS'\n              }]]\n            }, {\n              index: 4,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.budget.Budget total'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                valueOverride: this.intl.t('shared.reports.Actual'),\n                metric: 'TEXT'\n              }, {\n                metric: 'COST_TOTAL'\n              }]]\n            }, {\n              index: 5,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.budget.Budget distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'BUDGET_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'BUDGET_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'BUDGET_SUBCONTRACTORS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums')\n              }, {\n                metric: 'BUDGET_SUMS'\n              }]]\n            }, {\n              index: 6,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.budget.Actual distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'COST_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'COST_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'COST_SUBCONTRACTORS'\n              }]]\n            }, {\n              name: this.intl.t('common.Financials'),\n              index: 7,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Labour budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Labour actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Materials budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Materials actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Subcontractors budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Subcontractors actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Sums budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Total budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Total actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Remaining budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.costTotalTooltip')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'REMAINING_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.budget.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'BUDGET_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_LABOUR',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'ALL'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_MATERIALS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'BILLS'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_SUBCONTRACTORS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'BILLS'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'REMAINING_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getBudgetReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getBudgetReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        basePath: this.basePath,\n        budgetTable: this.getBudgetReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/budget/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/budget/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.budget.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.budget.Budget report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Labour'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_LABOUR'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_LABOUR'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Materials'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  label: 'Budget',\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MATERIALS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MATERIALS'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Subcontractors'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUBCONTRACTORS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_SUBCONTRACTORS'\n              }]]\n            }, {\n              index: 4,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Budget used'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                valueOverride: this.intl.t('shared.reports.Actual'),\n                metric: 'TEXT'\n              }, {\n                metric: 'COST_TOTAL'\n              }]]\n            }, {\n              index: 5,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.budget.Budget distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'BUDGET_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'BUDGET_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'BUDGET_SUBCONTRACTORS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums')\n              }, {\n                metric: 'BUDGET_SUMS'\n              }]]\n            }, {\n              index: 6,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.budget.Actual distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'COST_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'COST_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'COST_SUBCONTRACTORS'\n              }]]\n            }, {\n              name: this.intl.t('common.Financials'),\n              index: 7,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Labour budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Labour actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Materials budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Materials actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Subcontractors budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Subcontractors actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Sums budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Total budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Total actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.budget.Remaining budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'REMAINING_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.budget.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'BUDGET_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_LABOUR',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    parentId: {\n                      valueOverride: task.last.value.id\n                    },\n                    costType: {\n                      valueOverride: 'ALL'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    }\n                  }\n                },\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_MATERIALS',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    parentId: {\n                      valueOverride: task.last.value.id\n                    },\n                    costType: {\n                      valueOverride: 'BILLS'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    }\n                  }\n                },\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_SUBCONTRACTORS',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    parentId: {\n                      valueOverride: task.last.value.id\n                    },\n                    costType: {\n                      valueOverride: 'BILLS'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    }\n                  }\n                },\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'REMAINING_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getAdHocReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        task: this.getTask,\n        basePath: this.basePath,\n        budgetTable: this.getAdHocReport,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/chargeup/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.simpleQuery('project', {\n            _id: projectId\n          });\n          return project.toArray()?.[0];\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getChargeupReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const canUseProjectChargeupReport = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseChargeupReport');\n          const summaryMetricSubject = canUseProjectChargeupReport ? {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          } : {\n            resourceName: 'tasks',\n            filter\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.chargeup.Chargeup report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Chargeup')\n              }, {\n                metric: 'CHARGEUP_TOTAL'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: summaryMetricSubject,\n                metric: 'FORECAST_CHARGEUP'\n              }]]\n            }, {\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('entity.builda-price.reports.projects.project.chargeup.chargeupTooltip')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Quote used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.costTotalTooltip')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_CHARGEUP',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.costTotalTooltip')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_QUOTE',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.chargeup.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1\n              }, {\n                metric: 'FORECAST_CHARGEUP',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'VARIANCE_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getChargeupReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getChargeupReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        basePath: this.basePath,\n        chargeupReport: this.getChargeupReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/chargeup/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/chargeup/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.chargeup.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getChargeupReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.chargeup.Chargeup report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Chargeup')\n              }, {\n                metric: 'CHARGEUP_TOTAL'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter\n                },\n                metric: 'FORECAST_CHARGEUP'\n              }]]\n            }, {\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('entity.builda-price.reports.projects.project.chargeup.chargeupTooltip')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Quote used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_CHARGEUP',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_QUOTE',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.chargeup.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_CHARGEUP',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'VARIANCE_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getChargeupReport\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getChargeupReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        task: this.getTask,\n        basePath: this.basePath,\n        chargeupReport: this.getChargeupReport,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          return yield this.store.findRecord('project', projectId);\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'project',\n              op: 'EQ',\n              value: project.last.value.id\n            }, {\n              field: 'status',\n              op: 'IN',\n              value: ['ACTIVE', 'DRAFT_CREATED']\n            }, {\n              field: 'parent',\n              op: 'IS_NULL',\n              value: null\n            }]\n          };\n          const parentTasks = yield this.store.query('task', {\n            filter\n          });\n          return parentTasks.toArray();\n        }\n      }), null, \"getParentTasks\", null));\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, project, parentTasks) {\n          yield project.last;\n          yield parentTasks.last;\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const footerFilter = {\n            _id: {\n              $in: parentTasks.last.value.mapBy('id')\n            }\n          };\n          const canUseProjectClientReport = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseProjectClientReport');\n          const entityCanUseInvoicing = this.newFeatureFlags.entityCanUseInvoicingReport;\n          const summaryMetricSubject = canUseProjectClientReport ? {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          } : {\n            resourceName: 'tasks',\n            recursiveKey: 'parent',\n            filter\n          };\n          const summaryTable = {\n            name: this.intl.t('common.Summary'),\n            index: 1,\n            width: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {},\n            groupType: 'GROUPED',\n            metricsSubject: summaryMetricSubject,\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.progress.Labour progress')\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          if (project.last.value.contractType === 'FIXED_PRICE') {\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Fixed price')\n            }, {\n              metric: 'FIXED_PRICE_QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost plus forecast')\n            }, {\n              metric: 'COST_PLUS_FORECAST_QUOTE',\n              //undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]);\n          }\n          if (entityCanUseInvoicing) {\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Forecast cost')\n            }, {\n              metric: 'FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced')\n            }, {\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete')\n            }, {\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompletePercentage')\n            }, {\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1\n            }]);\n          }\n          const fixedPriceTable = {\n            name: this.intl.t('common.Tasks'),\n            index: 2,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.progress.Labour progress'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Fixed price'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost plus forecast'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter\n                },\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter: footerFilter\n                },\n                metric: 'FIXED_PRICE_QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter: footerFilter\n                },\n                metric: 'COST_PLUS_FORECAST_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                tooltip: this.intl.t('shared.reports.costTotalTooltip')\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'tasks',\n              recursiveKey: 'parent',\n              filter\n            },\n            metrics: [[{\n              metric: 'TASK_PATH',\n              classes: [{\n                class: 'd-none'\n              }]\n            }, {\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.reports.projects.project.cost-to-complete.task',\n                modelKeys: ['project', '_id'],\n                queryParams: {\n                  selectedDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              }\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'FIXED_PRICE_QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'COST_PLUS_FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          const costPlusTable = {\n            name: this.intl.t('common.Tasks'),\n            index: 2,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.progress.Labour progress'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Forecast cost'),\n                classes: [{\n                  class: 'text-right'\n                }],\n                tooltip: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Estimated total cost')\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter\n                },\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter: footerFilter\n                },\n                metric: 'FORECAST_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'tasks',\n              recursiveKey: 'parent',\n              filter\n            },\n            metrics: [[{\n              metric: 'TASK_PATH',\n              classes: [{\n                class: 'd-none'\n              }]\n            }, {\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.reports.projects.project.cost-to-complete.task',\n                modelKeys: ['project', '_id'],\n                queryParams: {\n                  selectedDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              }\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          const taskTable = project.last.value.contractType === 'FIXED_PRICE' ? fixedPriceTable : costPlusTable;\n          if (entityCanUseInvoicing) {\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced'),\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete'),\n              classes: [{\n                class: 'text-right'\n              }],\n              tooltip: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompleteTooltip')\n            });\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompletePercentage'),\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter: footerFilter\n              },\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter: footerFilter\n              },\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter: footerFilter\n              },\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            });\n          }\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [summaryTable, taskTable]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getParentTasks.perform(this.getProject);\n      this.getAdHocReport.perform(selectedDate, this.getProject, this.getParentTasks);\n      return {\n        entity: this.sessionData.entity,\n        projectLevelReport: this.getAdHocReport,\n        basePath: this.basePath,\n        project: this.getProject\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/cost-to-complete/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.cost-to-complete.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          return yield this.store.findRecord('project', projectId);\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          return yield this.store.findRecord('task', taskId);\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, project, task, parentTasks) {\n          yield project.last;\n          yield task.last;\n          yield parentTasks.last;\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const taskFilter = {\n            _id: task.last.value.id\n          };\n          const entityCanUseInvoicing = this.newFeatureFlags.entityCanUseInvoicingReport;\n          const summaryTable = {\n            name: this.intl.t('common.Summary'),\n            index: 1,\n            width: 3,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {},\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'tasks',\n              filter: taskFilter\n            },\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.progress.Labour progress')\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          if (project.last.value.contractType === 'FIXED_PRICE') {\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Fixed price')\n            }, {\n              metric: 'FIXED_PRICE_QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost plus forecast')\n            }, {\n              metric: 'COST_PLUS_FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]);\n          }\n          if (entityCanUseInvoicing) {\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Forecast cost')\n            }, {\n              metric: 'FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced')\n            }, {\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete')\n            }, {\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n            summaryTable.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompletePercentage')\n            }, {\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1\n            }]);\n          }\n          const fixedPriceTable = {\n            name: this.intl.t('common.Tasks'),\n            index: 2,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.progress.Labour progress'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Fixed price'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost plus forecast'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  filter: taskFilter\n                },\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  filter: taskFilter\n                },\n                metric: 'FIXED_PRICE_QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  filter: taskFilter\n                },\n                metric: 'COST_PLUS_FORECAST_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                tooltip: this.intl.t('shared.reports.costTotalTooltip')\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'tasks',\n              recursiveKey: 'parent',\n              filter\n            },\n            metrics: [[{\n              metric: 'TASK_PATH',\n              classes: [{\n                class: 'd-none'\n              }]\n            }, {\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.reports.projects.project.cost-to-complete.task',\n                modelKeys: ['project', '_id'],\n                queryParams: {\n                  selectedDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              }\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'FIXED_PRICE_QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'COST_PLUS_FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          const costPlusTable = {\n            name: this.intl.t('common.Tasks'),\n            index: 2,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.progress.Labour progress'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Forecast cost'),\n                classes: [{\n                  class: 'text-right'\n                }],\n                tooltip: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Estimated total cost')\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: '',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  filter: taskFilter\n                },\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  filter: taskFilter\n                },\n                metric: 'FORECAST_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'tasks',\n              recursiveKey: 'parent',\n              filter\n            },\n            metrics: [[{\n              metric: 'TASK_PATH',\n              classes: [{\n                class: 'd-none'\n              }]\n            }, {\n              metric: 'PROPERTY',\n              key: 'name',\n              linkTo: {\n                route: 'entity.builda-price.reports.projects.project.cost-to-complete.task',\n                modelKeys: ['project', '_id'],\n                queryParams: {\n                  selectedDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              }\n            }, {\n              metric: 'PROGRESS_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'FORECAST_QUOTE',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }]]\n          };\n          const taskTable = project.last.value.contractType === 'FIXED_PRICE' ? fixedPriceTable : costPlusTable;\n          if (entityCanUseInvoicing) {\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced'),\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete'),\n              classes: [{\n                class: 'text-right'\n              }],\n              tooltip: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompleteTooltip')\n            });\n            taskTable.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.costToCompletePercentage'),\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                filter: taskFilter\n              },\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                filter: taskFilter\n              },\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.axes.tfoot[0].push({\n              subject: {\n                resourceName: 'tasks',\n                filter: taskFilter\n              },\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'FORECAST_QUOTE_NOT_INVOICED',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            });\n            taskTable.metrics[0].push({\n              metric: 'FORECAST_QUOTE_NOT_INVOICED_PERCENTAGE',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            });\n          }\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.cost-to-complete.Cost to complete report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [summaryTable, taskTable]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getAdHocReport.perform(selectedDate, this.getProject, this.getTask, this.getParentTasks);\n      return {\n        taskLevelReport: this.getAdHocReport,\n        basePath: this.basePath,\n        task: this.getTask,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/cost\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        startDate: {\n          refreshModel: true\n        },\n        endDate: {\n          refreshModel: true\n        },\n        costType: {\n          refreshModel: true\n        },\n        parentId: {\n          refreshModel: true\n        },\n        allocationType: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getSelectedTaskIds\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (tasks, parentId) {\n          let computedSelectedTaskIds = [];\n          if (parentId) {\n            yield tasks.last;\n            const taskIdsGroupedByParentId = new Map();\n            for (const task of tasks.last.value) {\n              const parentId = task.parent.get('id');\n              if (!taskIdsGroupedByParentId.has(parentId)) taskIdsGroupedByParentId.set(parentId, []);\n              taskIdsGroupedByParentId.get(parentId).push(task.id);\n            }\n            const parentsTasksIds = [];\n            (function getChildren(parentId) {\n              parentsTasksIds.push(parentId);\n              const childIds = taskIdsGroupedByParentId.get(parentId);\n              if (childIds) childIds.forEach(getChildren);\n            })(parentId);\n            computedSelectedTaskIds = parentsTasksIds;\n          } else {\n            yield tasks.last;\n            computedSelectedTaskIds = tasks.last.value.map(t => t.id);\n          }\n          return computedSelectedTaskIds;\n        }\n      }), null, \"getSelectedTaskIds\", null));\n      _defineProperty(this, \"getProjectTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const tasks = yield this.store.simpleQuery('task', {\n            entity: this.sessionData.entity.id,\n            project: project.last.value.id\n          });\n          return tasks.toArray();\n        }\n      }), null, \"getProjectTasks\", null));\n      _defineProperty(this, \"getCostReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, costType, _startDate, _endDate, positionReportTaskIds, filterByDate, parentId, selectedTaskIds, allocationType) {\n          yield project.last;\n          yield positionReportTaskIds.last;\n          const taskIds = selectedTaskIds || positionReportTaskIds.last.value;\n          const startDate = (0, _moment.default)(_startDate).startOf('day').toDate();\n          const endDate = (0, _moment.default)(_endDate).endOf('day').toDate();\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.cost.Cost report'),\n            subjects: []\n          };\n          const billsFilter = {\n            $and: [{\n              status: {\n                $ne: 'HELD'\n              }\n            }, {\n              $or: []\n            }]\n          };\n          const timesheetsFilter = {\n            project: project.last.value.id,\n            task: {\n              $in: taskIds\n            }\n          };\n          if (allocationType) billsFilter.allocationType = allocationType;\n          if (filterByDate) {\n            report.dateRange = {\n              startDate,\n              endDate\n            };\n            billsFilter.issueDate = {\n              $lte: endDate,\n              $gte: startDate\n            };\n            const dayEndDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n            const dayStartDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n            timesheetsFilter.date = {\n              $lte: dayEndDate,\n              $gte: dayStartDate\n            };\n          }\n          if (!parentId && !selectedTaskIds) {\n            billsFilter['$and'][1]['$or'].push({\n              project: project.last.value.id\n            });\n            billsFilter['$and'][1]['$or'].push({\n              task: {\n                $in: taskIds\n              }\n            });\n          } else {\n            billsFilter['$and'][1]['$or'].push({\n              task: {\n                $in: taskIds\n              }\n            });\n          }\n          const showTimesheetsTable = ['TIMESHEETS', 'ALL'].includes(costType);\n          const showBillsTable = ['BILLS', 'ALL'].includes(costType);\n          const canUseInvoicingReports = this.newFeatureFlags.canUseProjectInvoicingReport(project.last.value);\n          const costReport = {\n            name: this.intl.t('common.Timesheets'),\n            index: 1,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: true,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Date')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.First name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Last name')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Task')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.cost.Duration'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Cost'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'timesheets',\n                  filter: timesheetsFilter\n                },\n                metric: 'COST_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                subject: {\n                  resourceName: 'timesheets',\n                  filter: timesheetsFilter\n                },\n                metric: 'COST_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'timesheets',\n              sortKey: 'date',\n              sortDirection: 'DESC',\n              filter: timesheetsFilter\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'date',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.timesheets.timesheet',\n                queryParams: {\n                  date: {\n                    key: 'date'\n                  },\n                  worker: {\n                    key: 'worker'\n                  }\n                }\n              }\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'worker.firstName'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'worker.lastName'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'task.name'\n            }, {\n              metric: 'TIMESHEET_DURATION',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TIMESHEET_COST',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          };\n          const billReport = {\n            name: this.intl.t('common.Bills'),\n            index: showTimesheetsTable ? 2 : 1,\n            width: 12,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            searchEnabled: true,\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Bill number')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Issuer')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Reference')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Item')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Task')\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Value'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }],\n              tfoot: [[{\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                subject: {\n                  resourceName: 'bill-item-views',\n                  filter: billsFilter\n                },\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            },\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'bill-item-views',\n              filter: billsFilter,\n              sortKey: 'billNumber'\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'billNumber',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.bills.bill',\n                modelKeys: ['bill']\n              }\n            }, {\n              metric: 'PROPERTY',\n              key: 'issuer'\n            }, {\n              metric: 'PROPERTY',\n              key: 'billName'\n            }, {\n              metric: 'PROPERTY',\n              key: 'description'\n            }, {\n              metric: 'PROPERTY',\n              key: 'taskName'\n            }, {\n              metric: 'BILL_ITEM_VALUE',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          };\n\n          // only push invoiced figures if user has access to Invoicing reports\n          if (canUseInvoicingReports) {\n            costReport.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: 'Invoiced',\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            costReport.axes.tfoot[0].push({\n              metric: 'TEXT',\n              valueOverride: ''\n            });\n            costReport.metrics[0].push({\n              metric: 'INCLUDED_IN_INVOICE',\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n\n            // push into bills report\n            billReport.axes.thead.push({\n              metric: 'TEXT',\n              valueOverride: 'Invoiced',\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n            billReport.axes.tfoot[0].push({\n              metric: 'TEXT',\n              valueOverride: ''\n            });\n            billReport.metrics[0].push({\n              metric: 'INCLUDED_IN_INVOICE',\n              classes: [{\n                class: 'text-right'\n              }]\n            });\n          }\n          if (showTimesheetsTable) report.subjects.push(costReport);\n          if (showBillsTable) report.subjects.push(billReport);\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getCostReport\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.filterByDate = true;\n    }\n    model({\n      startDate,\n      endDate,\n      costType,\n      parentId,\n      allocationType\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getProjectTasks.perform(this.getProject);\n      this.getSelectedTaskIds.perform(this.getProjectTasks, parentId);\n      this.getCostReport.perform(this.getProject, costType, startDate, endDate, this.getSelectedTaskIds, true, parentId, undefined, allocationType);\n      return {\n        project: this.getProject,\n        tasks: this.getProjectTasks,\n        basePath: this.basePath,\n        costTable: this.getCostReport,\n        selectedTaskIds: this.getSelectedTaskIds\n      };\n    }\n    resetController(controller, isExiting) {\n      if (isExiting) {\n        controller.parentId = null;\n        controller.allocationType = null;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.simpleQuery('project', {\n            _id: projectId\n          });\n          return project.toArray()?.[0];\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getForecastTableReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            entity: this.sessionData.entity.id,\n            project: project.last.value.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.forecast-breakdown.Forecast breakdown report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast hours'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Avg hourly cost'),\n                  tooltip: this.intl.t('shared.reports.avgHourlyCostTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast labour'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast materials'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast subcontractors'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Sums'),\n                  tooltip: this.intl.t('shared.reports.forecastReportSumsTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast total'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  metric: 'WORKERS_AVG_COST',\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.forecast-breakdown.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WORKERS_AVG_COST',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getForecastTableReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getForecastTableReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        forecastTable: this.getForecastTableReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/forecast-breakdown/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.forecast-breakdown.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.forecast-breakdown.Forecast breakdown report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast hours'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Avg hourly cost'),\n                  tooltip: this.intl.t('shared.reports.avgHourlyCostTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast labour'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast materials'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast subcontractors'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Sums'),\n                  tooltip: this.intl.t('shared.reports.forecastReportSumsTooltip'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast total'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  metric: 'WORKERS_AVG_COST',\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.forecast-breakdown.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'WORKERS_AVG_COST',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getAdHocReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        forecastTable: this.getAdHocReport,\n        basePath: this.basePath,\n        task: this.getTask,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n    }\n    async beforeModel() {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const project = await this.store.findRecord('project', projectId);\n      const reportRoutes = [{\n        featureFlag: 'canUseProjectPositionReport',\n        route: 'entity.builda-price.reports.projects.project.position'\n      }, {\n        featureFlag: 'canUseProjectInvoicingReport',\n        route: 'entity.builda-price.reports.projects.project.invoicing'\n      }, {\n        featureFlag: 'canUseProjectProfitMarginReport',\n        route: 'entity.builda-price.reports.projects.project.profit-margins'\n      }, {\n        featureFlag: 'canUseProjectChargeupReport',\n        route: 'entity.builda-price.reports.projects.project.chargeup'\n      }, {\n        featureFlag: 'canUseProjectForecastReport',\n        route: 'entity.builda-price.reports.projects.project.forecast-breakdown'\n      }, {\n        featureFlag: 'canUseProjectCostReport',\n        route: 'entity.builda-price.reports.projects.project.cost'\n      }, {\n        featureFlag: 'canUseProjectQuoteReport',\n        route: 'entity.builda-price.reports.projects.project.quote'\n      }, {\n        featureFlag: 'canUseProjectBudgetReport',\n        route: 'entity.builda-price.reports.projects.project.budget'\n      }, {\n        featureFlag: 'canUseProjectLabourHourReport',\n        route: 'entity.builda-price.reports.projects.project.labour-hours'\n      }, {\n        featureFlag: 'canUseProjectClientReport',\n        route: 'entity.builda-price.reports.projects.project.cost-to-complete'\n      }];\n      const reportRoute = reportRoutes.find(({\n        featureFlag\n      }) => this.newFeatureFlags.includesFeatureFlags(project, featureFlag));\n      if (reportRoute) {\n        this.router.replaceWith(reportRoute.route, projectId);\n      } else {\n        this.router.replaceWith('entity.builda-price');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/invoicing/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'project',\n              op: 'EQ',\n              value: project.last.value.id\n            }, {\n              field: 'status',\n              op: 'IN',\n              value: ['ACTIVE', 'DRAFT_CREATED']\n            }, {\n              field: 'parent',\n              op: 'IS_NULL',\n              value: null\n            }]\n          };\n          const parentTasks = yield this.store.query('task', {\n            filter\n          });\n          return parentTasks.toArray();\n        }\n      }), null, \"getParentTasks\", null));\n      _defineProperty(this, \"getInvoiceReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate, parentTasks) {\n          yield project.last;\n          yield parentTasks.last;\n          const footerFilter = {\n            _id: {\n              $in: parentTasks.last.value.mapBy('id')\n            }\n          };\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const summaryMetricSubject = {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          };\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoicing report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              name: this.intl.t('common.Summary'),\n              index: 1,\n              width: 2,\n              height: 2,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total billable')\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable remaining')\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable used'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable'),\n                  metric: 'TEXT'\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'INVOICEABLE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL'\n              }]]\n            }, {\n              name: this.intl.t('common.Tasks'),\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total billable'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable to date'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoiced'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable remaining'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: footerFilter\n                  },\n                  metric: 'INVOICEABLE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: footerFilter\n                  },\n                  metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: footerFilter\n                  },\n                  metric: 'INVOICED_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: footerFilter\n                  },\n                  metric: 'INVOICEABLE_TOTAL_REMAINING',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.invoicing.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }]]\n            }, {\n              name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoice items'),\n              index: 4,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Invoice number')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Status')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.To contact')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Description')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Value'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'invoice-item-views',\n                    filter: {\n                      project: project.last.value.id,\n                      issueDate: {\n                        $lte: endDate\n                      }\n                    }\n                  },\n                  metric: 'INVOICE_ITEM_VALUE',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'invoice-item-views',\n                filter: {\n                  project: project.last.value.id,\n                  issueDate: {\n                    $lte: endDate\n                  }\n                },\n                sortKey: 'invoiceNumber'\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'invoiceNumber',\n                linkTo: {\n                  route: 'entity.builda-price.operations.outgoing.invoices.invoice',\n                  modelKeys: ['invoiceId']\n                }\n              }, {\n                metric: 'PROPERTY',\n                key: 'status',\n                humanEnums: true\n              }, {\n                metric: 'PROPERTY',\n                key: 'toContact'\n              }, {\n                metric: 'PROPERTY',\n                key: 'description'\n              }, {\n                metric: 'INVOICE_ITEM_VALUE',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getInvoiceReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getParentTasks.perform(this.getProject);\n      this.getInvoiceReport.perform(this.getProject, selectedDate, this.getParentTasks);\n      return {\n        project: this.getProject,\n        basePath: this.basePath,\n        invoiceTable: this.getInvoiceReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/invoicing/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/invoicing/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.invoicing.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.findRecord('task', taskId);\n          return task;\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getInvoiceReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoicing report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              name: this.intl.t('common.Summary'),\n              index: 1,\n              width: 2,\n              height: 2,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                filter: {\n                  _id: task.last.value.id\n                }\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total billable')\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable remaining')\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable used'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable'),\n                  metric: 'TEXT'\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: {\n                      _id: task.last.value.id\n                    }\n                  },\n                  metric: 'INVOICEABLE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                filter: {\n                  _id: task.last.value.id\n                }\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoiced')\n              }, {\n                metric: 'INVOICED_TOTAL'\n              }]]\n            }, {\n              name: this.intl.t('common.Tasks'),\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Total billable'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable to date'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoiced'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Billable remaining'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: {\n                      _id: task.last.value.id\n                    }\n                  },\n                  metric: 'INVOICEABLE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: {\n                      _id: task.last.value.id\n                    }\n                  },\n                  metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: {\n                      _id: task.last.value.id\n                    }\n                  },\n                  metric: 'INVOICED_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    filter: {\n                      _id: task.last.value.id\n                    }\n                  },\n                  metric: 'INVOICEABLE_TOTAL_REMAINING',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.invoicing.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'INVOICEABLE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_CURRENTLY_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICED_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'INVOICEABLE_TOTAL_REMAINING',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }]]\n            }, {\n              name: this.intl.t('entity.builda-price.reports.projects.project.invoicing.Invoice items'),\n              index: 4,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Invoice number')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Status')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.invoicing.To contact')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Description')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Value'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'invoice-item-views',\n                    filter: {\n                      task: task.last.value.id,\n                      issueDate: {\n                        $lte: endDate\n                      }\n                    }\n                  },\n                  metric: 'INVOICE_ITEM_VALUE',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'invoice-item-views',\n                filter: {\n                  task: task.last.value.id,\n                  issueDate: {\n                    $lte: endDate\n                  }\n                },\n                sortKey: 'invoiceNumber'\n              },\n              metrics: [[{\n                metric: 'PROPERTY',\n                key: 'invoiceNumber',\n                linkTo: {\n                  route: 'entity.builda-price.operations.outgoing.invoices.invoice',\n                  modelKeys: ['invoiceId']\n                }\n              }, {\n                metric: 'PROPERTY',\n                key: 'status',\n                humanEnums: true\n              }, {\n                metric: 'PROPERTY',\n                key: 'toContact'\n              }, {\n                metric: 'PROPERTY',\n                key: 'description'\n              }, {\n                metric: 'INVOICE_ITEM_VALUE',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getInvoiceReport\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getInvoiceReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        task: this.getTask,\n        basePath: this.basePath,\n        invoiceTable: this.getInvoiceReport,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/labour-hours/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getLabourHoursReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const canUseCostReports = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseProjectCostReport');\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('shared.reports.Labour hours report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter\n                },\n                metric: 'FORECAST_MANHOURS_TOTAL'\n              }]]\n            }, {\n              index: 3,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.labour-hours.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_MANHOURS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'TIMESHEETS'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          return loadedReport;\n        }\n      }), null, \"getLabourHoursReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getLabourHoursReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        basePath: this.basePath,\n        labourHoursTable: this.getLabourHoursReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/labour-hours/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/labour-hours/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.labour-hours.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        },\n        status: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task, parentTasks) {\n          yield task.last;\n          yield parentTasks.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const canUseCostReports = this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canUseCostReport');\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('shared.reports.Position report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: {\n                  resourceName: 'tasks',\n                  recursiveKey: 'parent',\n                  filter\n                },\n                metric: 'FORECAST_MANHOURS_TOTAL'\n              }]]\n            }, {\n              name: this.intl.t('common.Tasks'),\n              index: 3,\n              width: 12,\n              borderStyle: 'BORDER',\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_MANHOURS_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_MANHOURS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_MANHOURS',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.labour-hours.task',\n                  modelKeys: ['project', '_id']\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_MANHOURS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'TIMESHEETS'\n                    },\n                    parentId: {\n                      valueOverride: task.last.value.id\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getAdHocReport.perform(selectedDate, projectId, this.getTask, this.getParentTasks);\n      return {\n        taskLevelReport: this.getAdHocReport,\n        basePath: this.basePath,\n        task: this.getTask,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/notes\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor2, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        startDate: {\n          refreshModel: false\n        },\n        endDate: {\n          refreshModel: false\n        },\n        filterByDate: {\n          refreshModel: false\n        },\n        invoiceId: {\n          refreshModel: false\n        },\n        workerIds: {\n          refreshModel: false\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          return this.store.simpleQuery('worker', {\n            entity: this.sessionData.entity.id,\n            isActive: true\n          }, {\n            sort: 'firstName,lastName'\n          });\n        }\n      }), null, \"getWorkers\", null));\n      _defineProperty(this, \"getSelectedTaskIds\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (tasks) {\n          yield tasks.last;\n          if (!tasks.last.value) return [];\n          return tasks.last.value.map(t => t.id);\n        }\n      }), null, \"getSelectedTaskIds\", null));\n      _defineProperty(this, \"getProjectTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project) {\n          yield project.last;\n          const tasks = yield this.store.simpleQuery('task', {\n            entity: this.sessionData.entity.id,\n            project: project.last.value.id\n          });\n          return tasks.toArray();\n        }\n      }), null, \"getProjectTasks\", null));\n      _defineProperty(this, \"getNoteReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, _startDate, _endDate, filterByDate, selectedTaskIds, workerIds, invoiceId) {\n          if (project.isRunning) yield project.last;\n          const startDate = new Date(_startDate);\n          const endDate = new Date(_endDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const filter = {\n            $and: [{\n              entityId: {\n                $eq: this.sessionData.entity.id\n              },\n              projectId: {\n                $eq: project.last.value.id\n              }\n            }]\n          };\n          if (invoiceId) {\n            filter.$and.push({\n              linkedInvoiceIds: {\n                $like: `%${invoiceId}%`\n              }\n            });\n          } else {\n            if (selectedTaskIds && selectedTaskIds.length > 0) {\n              filter.$and.push({\n                taskId: {\n                  $in: selectedTaskIds\n                }\n              });\n            }\n            if (workerIds && workerIds.length > 0) {\n              filter.$and.push({\n                workerId: {\n                  $in: workerIds\n                }\n              });\n            }\n            if (filterByDate) {\n              const dayEndDate = (0, _moment.default)(endDate).format('YYYY-MM-DD');\n              const dayStartDate = (0, _moment.default)(startDate).format('YYYY-MM-DD');\n              filter.$and.push({\n                date: {\n                  $lte: dayEndDate,\n                  $gte: dayStartDate\n                }\n              });\n            }\n          }\n          const noteReport = {\n            index: 1,\n            width: 12,\n            elementType: 'NOTE_TIMELINE',\n            groupType: 'SEPARATE',\n            metricsSubject: {\n              resourceName: 'timesheet-note-views',\n              sortKey: 'date',\n              sortDirection: 'DESC',\n              filter\n            },\n            metrics: [[{\n              metric: 'PROPERTY',\n              key: 'date'\n            }, {\n              metric: 'PROPERTY',\n              key: 'workerName'\n            }, [{\n              metric: 'PROPERTY',\n              key: 'taskName'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'timesheet.duration'\n            }], {\n              metric: 'PROPERTY',\n              key: 'note'\n            }, {\n              metric: 'RELATIONSHIP_PROPERTY',\n              key: 'attachments.file'\n            }, {\n              metric: 'PROPERTY',\n              key: 'noteType'\n            }, {\n              metric: 'TEXT',\n              valueOverride: 'View timesheet',\n              linkTo: {\n                route: 'entity.builda-price.operations.incoming.timesheets.timesheet',\n                queryParams: {\n                  date: {\n                    key: 'date'\n                  },\n                  worker: {\n                    key: 'workerId'\n                  }\n                }\n              }\n            }]]\n          };\n          const report = {\n            name: 'Notes',\n            subjects: [noteReport]\n          };\n          if (!invoiceId && filterByDate) {\n            report.dateRange = {\n              startDate,\n              endDate\n            };\n          }\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n          return loadedReport;\n        }\n      }), null, \"getNoteReport\", null));\n    }\n    model(params) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getWorkers.perform();\n      this.getProjectTasks.perform(this.getProject);\n      this.getSelectedTaskIds.perform(this.getProjectTasks);\n      const workerIds = params.workerIds?.split(',');\n      this.getNoteReport.perform(this.getProject, params.startDate, params.endDate, params.filterByDate, undefined, workerIds, params.invoiceId);\n      return {\n        project: this.getProject,\n        tasks: this.getProjectTasks,\n        basePath: this.basePath,\n        noteReport: this.getNoteReport,\n        selectedTaskIds: this.getSelectedTaskIds,\n        getWorkers: this.getWorkers\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/position/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          return yield this.store.findRecord('project', projectId);\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, project) {\n          yield project.last;\n          const canUseBudgetReports = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseProjectBudgetReport');\n          const canUseCostReports = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseProjectCostReport');\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const canUseProjectPositionReport = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUsePositionReport');\n          const summaryMetricSubject = canUseProjectPositionReport ? {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          } : {\n            resourceName: 'tasks',\n            filter\n          };\n          const financialBreakDown = {\n            name: this.intl.t('shared.reports.Financial breakdown'),\n            index: 4,\n            width: 7,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Total'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: summaryMetricSubject,\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Budget')\n            }, {\n              metric: 'BUDGET_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.reports.Actual')\n            }, {\n              metric: 'COST_LABOUR',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'ALL'\n                  },\n                  allocationType: {\n                    valueOverride: 'LABOUR'\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_MATERIALS',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'BILLS'\n                  },\n                  allocationType: {\n                    valueOverride: 'MATERIALS'\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_SUBCONTRACTORS',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'BILLS'\n                  },\n                  allocationType: {\n                    valueOverride: 'SUBCONTRACTORS'\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'COST_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Used')\n            }, {\n              metric: 'BUDGET_LABOUR_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'BUDGET_TOTAL_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Quote')\n            }, {\n              metric: 'QUOTE_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Chargeup')\n            }, {\n              metric: 'CHARGEUP_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'CHARGEUP_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          };\n          if (this.newFeatureFlags.canUseProjectInvoicingReport(project.last.value)) {\n            financialBreakDown.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced')\n            }, {\n              metric: 'INVOICED_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n          }\n          const report = {\n            name: this.intl.t('shared.reports.Position report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast used'),\n              elementType: 'BIG_TEXT',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              axes: {\n                label: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.report.The amount of your forecast used')\n                }]]\n              },\n              metrics: [[{\n                metric: 'FINANCIAL_PROGRESS_TOTAL'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_TOTAL'\n                }], [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_TOTAL'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'BUDGET_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                subject: summaryMetricSubject,\n                metric: 'FORECAST_BUDGET'\n              }]]\n            }, financialBreakDown, {\n              name: this.intl.t('common.Labour hours'),\n              index: 5,\n              width: 3,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Budget')\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    costType: {\n                      valueOverride: 'TIMESHEETS'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Used')\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast'),\n                tooltip: 'Forecasted from your progress'\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Remaining'),\n                tooltip: 'The difference between your forecast and your actual'\n              }, {\n                metric: 'REMAINING_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                tooltip: 'The difference between your forecast and your budget'\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }, {\n              name: this.intl.t('common.Tasks'),\n              index: 6,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.costTotalTooltip')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1,\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.position.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                linkTo: canUseBudgetReports ? {\n                  route: 'entity.builda-price.reports.projects.project.budget',\n                  modelKeys: ['project'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'ALL'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'BUDGET_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getAdHocReport.perform(selectedDate, this.getProject);\n      return {\n        entity: this.sessionData.entity,\n        projectLevelReport: this.getAdHocReport,\n        basePath: this.basePath,\n        project: this.getProject\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/position/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/position/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"moment\"], function (_exports, _asyncArrowRuntime, _route, _service, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.position.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getAdHocReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task, parentTasks) {\n          yield task.last;\n          yield parentTasks.last;\n          const canUseBudgetReports = this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canUseBudgetReport');\n          const canUseCostReports = this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canUseCostReport');\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const linkToStartDate = (0, _moment.default)(this.sessionData.entity.dateCreated).format('YYYY-MM-DD');\n          const linkToEndDate = selectedDate;\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const financialBreakDown = {\n            name: this.intl.t('shared.reports.Financial breakdown'),\n            index: 4,\n            width: 7,\n            elementType: 'TABLE',\n            borderStyle: 'BORDER',\n            axes: {\n              thead: [{\n                metric: 'TEXT',\n                valueOverride: ''\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Total'),\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]\n            },\n            groupType: 'GROUPED',\n            metricsSubject: {\n              resourceName: 'tasks',\n              recursiveKey: 'parent',\n              filter\n            },\n            metrics: [[{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Budget')\n            }, {\n              metric: 'BUDGET_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'BUDGET_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('shared.reports.Actual')\n            }, {\n              metric: 'COST_LABOUR',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'ALL'\n                  },\n                  allocationType: {\n                    valueOverride: 'LABOUR'\n                  },\n                  parentId: {\n                    valueOverride: task.last.value.id\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_MATERIALS',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'BILLS'\n                  },\n                  allocationType: {\n                    valueOverride: 'MATERIALS'\n                  },\n                  parentId: {\n                    valueOverride: task.last.value.id\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'COST_SUBCONTRACTORS',\n              linkTo: canUseCostReports ? {\n                route: 'entity.builda-price.reports.projects.project.cost',\n                queryParams: {\n                  costType: {\n                    valueOverride: 'BILLS'\n                  },\n                  allocationType: {\n                    valueOverride: 'SUBCONTRACTORS'\n                  },\n                  parentId: {\n                    valueOverride: task.last.value.id\n                  },\n                  startDate: {\n                    valueOverride: linkToStartDate\n                  },\n                  endDate: {\n                    valueOverride: linkToEndDate\n                  }\n                }\n              } : undefined,\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'COST_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Used')\n            }, {\n              metric: 'BUDGET_LABOUR_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'BUDGET_MATERIALS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'BUDGET_SUBCONTRACTORS_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'BUDGET_TOTAL_USED',\n              classes: [{\n                class: 'text-right'\n              }],\n              upperLimit: 1,\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Quote')\n            }, {\n              metric: 'QUOTE_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_SUMS',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }, {\n              metric: 'QUOTE_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }],\n              dashZero: true\n            }], [{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Chargeup')\n            }, {\n              metric: 'CHARGEUP_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'CHARGEUP_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'CHARGEUP_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]]\n          };\n          const canUseInvoicingReports = this.newFeatureFlags.includesFeatureFlags(task.last.value, 'canUseInvoicingReport');\n          if (canUseInvoicingReports) {\n            financialBreakDown.metrics.push([{\n              metric: 'TEXT',\n              valueOverride: this.intl.t('common.Invoiced')\n            }, {\n              metric: 'INVOICED_LABOUR',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_MATERIALS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'INVOICED_SUBCONTRACTORS',\n              classes: [{\n                class: 'text-right'\n              }]\n            }, {\n              metric: 'TEXT',\n              valueOverride: ''\n            }, {\n              metric: 'INVOICED_TOTAL',\n              classes: [{\n                class: 'text-right'\n              }]\n            }]);\n          }\n          const report = {\n            name: this.intl.t('shared.reports.Position report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast used'),\n              elementType: 'BIG_TEXT',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              axes: {\n                label: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.report.The amount of your forecast used')\n                }]]\n              },\n              metrics: [[{\n                metric: 'FINANCIAL_PROGRESS_TOTAL'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Current position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL'\n                }], [{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_TOTAL'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('shared.reports.Forecast position'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast')\n              }, {\n                metric: 'FORECAST_BUDGET'\n              }]]\n            }, financialBreakDown, {\n              name: this.intl.t('common.Labour hours'),\n              index: 5,\n              width: 2,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {},\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Budget')\n              }, {\n                metric: 'BUDGET_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Actual')\n              }, {\n                metric: 'COST_MANHOURS',\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  modelKeys: ['project'],\n                  queryParams: {\n                    parentId: {\n                      valueOverride: task.last.value.id\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    costType: {\n                      valueOverride: 'TIMESHEETS'\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }]\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Used')\n              }, {\n                metric: 'BUDGET_MANHOURS_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast'),\n                tooltip: 'Forecasted from your progress'\n              }, {\n                metric: 'FORECAST_MANHOURS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Remaining'),\n                tooltip: 'The difference between forecast and actual'\n              }, {\n                metric: 'REMAINING_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                dashZero: true\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n              }, {\n                metric: 'VARIANCE_MANHOURS',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }, {\n              name: this.intl.t('common.Tasks'),\n              index: 6,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Budget used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.Forecasted from progress')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast variance'),\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.forecastVarianceTooltip')\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1,\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  dashZero: true\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'VARIANCE_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  showPositiveNegativeIndicator: true,\n                  upperLimit: 0,\n                  dashZero: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.position.task',\n                  modelKeys: ['project', '_id']\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'BUDGET_TOTAL',\n                linkTo: canUseBudgetReports ? {\n                  route: 'entity.builda-price.reports.projects.project.budget.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: linkToEndDate\n                    }\n                  }\n                } : undefined,\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                linkTo: canUseCostReports ? {\n                  route: 'entity.builda-price.reports.projects.project.cost',\n                  queryParams: {\n                    costType: {\n                      valueOverride: 'ALL'\n                    },\n                    startDate: {\n                      valueOverride: linkToStartDate\n                    },\n                    endDate: {\n                      valueOverride: linkToEndDate\n                    },\n                    parentId: {\n                      key: '_id'\n                    }\n                  }\n                } : undefined\n              }, {\n                metric: 'BUDGET_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1,\n                dashZero: true\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }],\n                dashZero: true\n              }, {\n                metric: 'VARIANCE_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }],\n                showPositiveNegativeIndicator: true,\n                upperLimit: 0,\n                dashZero: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getAdHocReport\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getAdHocReport.perform(selectedDate, projectId, this.getTask, this.getParentTasks);\n      return {\n        taskLevelReport: this.getAdHocReport,\n        basePath: this.basePath,\n        task: this.getTask,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/profit-margins/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getProfitMarginsReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.profit-margins.Profit margins report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast margin'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.forecastMarginPercentage'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT_MARGIN',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0,\n                  showPositiveNegativeIndicator: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.profit-margins.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'GROSS_PROFIT',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }, {\n                metric: 'GROSS_PROFIT_MARGIN',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                showPositiveNegativeIndicator: true\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getProfitMarginsReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getProfitMarginsReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        profitMarginsTable: this.getProfitMarginsReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/profit-margins/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/profit-margins/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.profit-margins.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProfitMarginsReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.profit-margins.Profit margins report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              name: this.intl.t('common.Tasks'),\n              index: 8,\n              width: 12,\n              elementType: 'TABLE',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.progress.Labour progress'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Actual'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast Budget'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Forecast margin'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.forecastMarginPercentage'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'BUDGET_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'COST_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FORECAST_BUDGET',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'FINANCIAL_PROGRESS_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'GROSS_PROFIT_MARGIN',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  lowerLimit: 0,\n                  showPositiveNegativeIndicator: true\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.profit-margins.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'BUDGET_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'COST_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FORECAST_BUDGET',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'FINANCIAL_PROGRESS_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'GROSS_PROFIT',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0\n              }, {\n                metric: 'GROSS_PROFIT_MARGIN',\n                classes: [{\n                  class: 'text-right'\n                }],\n                lowerLimit: 0,\n                showPositiveNegativeIndicator: true\n              }]]\n            }]\n          };\n          let loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getProfitMarginsReport\", null));\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getProfitMarginsReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        profitMarginsTable: this.getProfitMarginsReport,\n        basePath: this.basePath,\n        task: this.getTask,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/quote/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getProject\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (projectId) {\n          const project = yield this.store.findRecord('project', projectId);\n          return project;\n        }\n      }), null, \"getProject\", null));\n      _defineProperty(this, \"getQuoteReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (project, selectedDate) {\n          yield project.last;\n          const filter = {\n            project: project.last.value.id,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          const canUseProjectQuoteReport = this.newFeatureFlags.includesFeatureFlags(project.last.value, 'canUseQuoteReport');\n          const summaryMetricSubject = canUseProjectQuoteReport ? {\n            resourceName: 'projects',\n            filter: {\n              _id: project.last.value.id,\n              entity: this.sessionData.entity.id\n            }\n          } : {\n            resourceName: 'tasks',\n            filter\n          };\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Labour'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  valueOverride: this.intl.t('common.Quote'),\n                  metric: 'TEXT'\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_LABOUR'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Chargeup')\n              }, {\n                metric: 'CHARGEUP_LABOUR'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Materials'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_MATERIALS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_MATERIALS'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Subcontractors'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_SUBCONTRACTORS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS'\n              }]]\n            }, {\n              index: 4,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote total'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: summaryMetricSubject,\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_TOTAL'\n              }]]\n            }, {\n              index: 5,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'QUOTE_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'QUOTE_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'QUOTE_SUBCONTRACTORS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums')\n              }, {\n                metric: 'QUOTE_SUMS'\n              }]]\n            }, {\n              index: 6,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Chargeup distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: summaryMetricSubject,\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'CHARGEUP_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'CHARGEUP_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS'\n              }]]\n            }, {\n              name: this.intl.t('common.Financials'),\n              index: 7,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: 'Name'\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Labour quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Labour chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Materials quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Materials chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Subcontractors quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Subcontractors chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Sums quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.financial.Total quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Total chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Remaining quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Quote used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  tooltip: this.intl.t('shared.reports.costTotalTooltip')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'REMAINING_QUOTE',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.quote.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'QUOTE_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'REMAINING_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }],\n                upperLimit: 1\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getQuoteReport\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor(this.basePath);\n      this.getProject.perform(projectId);\n      this.getQuoteReport.perform(this.getProject, selectedDate);\n      return {\n        project: this.getProject,\n        basePath: this.basePath,\n        quoteTable: this.getQuoteReport\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/quote/task\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {\n    model() {}\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/reports/projects/project/quote/task/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.reports.projects.project.quote.task');\n      _defineProperty(this, \"queryParams\", {\n        selectedDate: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"getTask\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (taskId) {\n          const task = yield this.store.simpleQuery('task', {\n            _id: taskId\n          });\n          return task.toArray()?.[0];\n        }\n      }), null, \"getTask\", null));\n      _defineProperty(this, \"getQuoteReport\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (selectedDate, projectId, task) {\n          yield task.last;\n          const filter = {\n            project: projectId,\n            entity: this.sessionData.entity.id,\n            status: {\n              $in: ['ACTIVE', 'DRAFT_CREATED']\n            }\n          };\n          if (task.last.value.children.length) {\n            filter.parent = task.last.value.id;\n          } else {\n            filter._id = task.last.value.id;\n          }\n          const endDate = new Date(selectedDate);\n          endDate.setHours(23);\n          endDate.setMinutes(59);\n          endDate.setSeconds(59);\n          endDate.setMilliseconds(999);\n          const report = {\n            name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote report'),\n            dateRange: {\n              endDate\n            },\n            subjects: [{\n              index: 1,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Labour'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  valueOverride: this.intl.t('common.Quote'),\n                  metric: 'TEXT'\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_LABOUR'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Chargeup')\n              }, {\n                metric: 'CHARGEUP_LABOUR'\n              }]]\n            }, {\n              index: 2,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Materials'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_MATERIALS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_MATERIALS'\n              }]]\n            }, {\n              index: 3,\n              width: 2,\n              height: 2,\n              name: this.intl.t('common.Subcontractors'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_SUBCONTRACTORS'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS'\n              }]]\n            }, {\n              index: 4,\n              width: 2,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote total'),\n              elementType: 'MULTI_GAUGE',\n              borderStyle: 'BORDER',\n              axes: {\n                x: [[{\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Quote')\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL'\n                }]]\n              },\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                valueOverride: this.intl.t('common.Chargeup'),\n                metric: 'TEXT'\n              }, {\n                metric: 'CHARGEUP_TOTAL'\n              }]]\n            }, {\n              index: 5,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Quote distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'QUOTE_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'QUOTE_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'QUOTE_SUBCONTRACTORS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Sums')\n              }, {\n                metric: 'QUOTE_SUMS'\n              }]]\n            }, {\n              index: 6,\n              width: 4,\n              height: 2,\n              name: this.intl.t('entity.builda-price.reports.projects.project.quote.Chargeup distribution'),\n              elementType: 'PIE_CHART',\n              borderStyle: 'BORDER',\n              groupType: 'GROUPED',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Labour')\n              }, {\n                metric: 'CHARGEUP_LABOUR'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Materials')\n              }, {\n                metric: 'CHARGEUP_MATERIALS'\n              }], [{\n                metric: 'TEXT',\n                valueOverride: this.intl.t('common.Subcontractors')\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS'\n              }]]\n            }, {\n              name: this.intl.t('common.Financials'),\n              index: 7,\n              width: 12,\n              elementType: 'TABLE',\n              borderStyle: 'BORDER',\n              axes: {\n                thead: [{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('common.Name')\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Labour quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Labour chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Materials quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Materials chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Subcontractors quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Subcontractors chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Sums quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.financial.Total quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Total chargeup'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('entity.builda-price.reports.projects.project.quote.Remaining quote'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: this.intl.t('shared.reports.Quote used'),\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }],\n                tfoot: [[{\n                  metric: 'TEXT',\n                  valueOverride: '',\n                  classes: [{\n                    class: 'd-none'\n                  }]\n                }, {\n                  metric: 'TEXT',\n                  valueOverride: ''\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_LABOUR',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_MATERIALS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_SUBCONTRACTORS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_SUMS',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'CHARGEUP_TOTAL',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'REMAINING_QUOTE',\n                  classes: [{\n                    class: 'text-right'\n                  }]\n                }, {\n                  subject: {\n                    resourceName: 'tasks',\n                    recursiveKey: 'parent',\n                    filter\n                  },\n                  metric: 'QUOTE_TOTAL_USED',\n                  classes: [{\n                    class: 'text-right'\n                  }],\n                  upperLimit: 1\n                }]]\n              },\n              groupType: 'SEPARATE',\n              metricsSubject: {\n                resourceName: 'tasks',\n                recursiveKey: 'parent',\n                filter\n              },\n              metrics: [[{\n                metric: 'TASK_PATH',\n                classes: [{\n                  class: 'd-none'\n                }]\n              }, {\n                metric: 'PROPERTY',\n                key: 'name',\n                linkTo: {\n                  route: 'entity.builda-price.reports.projects.project.quote.task',\n                  modelKeys: ['project', '_id'],\n                  queryParams: {\n                    selectedDate: {\n                      valueOverride: selectedDate\n                    }\n                  }\n                }\n              }, {\n                metric: 'QUOTE_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_LABOUR',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_MATERIALS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_SUBCONTRACTORS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_SUMS',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'CHARGEUP_TOTAL',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'REMAINING_QUOTE',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }, {\n                metric: 'QUOTE_TOTAL_USED',\n                classes: [{\n                  class: 'text-right'\n                }]\n              }]]\n            }]\n          };\n          const loadedReport = yield this.portalApi.authPost('/report-engine/ad-hoc-report', report);\n\n          // sort based on index to define the order of report elements in page\n          loadedReport.elements = loadedReport.elements.sortBy('index');\n          return loadedReport;\n        }\n      }), null, \"getQuoteReport\", null));\n      _defineProperty(this, \"getParentTasks\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (task) {\n          yield task.last;\n          const generatePathsFromTask = async task => {\n            const parentTask = await task.belongsTo('parent').load();\n            if (parentTask) {\n              await generatePathsFromTask(parentTask);\n            }\n          };\n          yield generatePathsFromTask(task.last.value);\n        }\n      }), null, \"getParentTasks\", null));\n    }\n    model({\n      selectedDate\n    }) {\n      const {\n        project_id: projectId\n      } = this.paramsFor('entity.builda-price.reports.projects.project');\n      const {\n        task_id: taskId\n      } = this.paramsFor(this.basePath);\n      this.getTask.perform(taskId);\n      this.getParentTasks.perform(this.getTask);\n      this.getQuoteReport.perform(selectedDate, projectId, this.getTask);\n      return {\n        task: this.getTask,\n        basePath: this.basePath,\n        quoteTable: this.getQuoteReport,\n        parentTasks: this.getParentTasks\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/builda-price/scheduling\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  class _default extends _route.default {}\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/scheduling/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\"], function (_exports, _route, _menuRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\"eaimeta@70e063a35619d71f\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  class _default extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _defineProperty(this, \"defaultRoute\", 'entity.builda-price.scheduling.timeline');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/routes/entity/builda-price/scheduling/timeline\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"basePath\", 'entity.builda-price.scheduling.timeline');\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        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, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/disabled\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor, this);\n      _initializerDefineProperty(this, \"modules\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n    }\n    beforeModel() {\n      // if you have access to modules you shouldn't be here\n      if (this.modules.allowedModules.length !== 0) return this.router.transitionTo('entity');\n      this.helpCenter.hideHelpCenter();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/financials\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor2, this);\n      _initializerDefineProperty(this, \"financialPortalPeriodSelector\", _descriptor3, this);\n      _initializerDefineProperty(this, \"router\", _descriptor4, this);\n    }\n    beforeModel() {\n      if (!this.newFeatureFlags.canUseFinancialReporting) {\n        return this.router.transitionTo('entity');\n      }\n      this.helpCenter.hideHelpCenter();\n    }\n    activate() {\n      super.activate(...arguments);\n      this.financialPortalPeriodSelector.on('periodChanged', this, this.triggerRefresh);\n    }\n    deactivate() {\n      super.deactivate(...arguments);\n      this.financialPortalPeriodSelector.off('periodChanged', this, this.triggerRefresh);\n    }\n    triggerRefresh() {\n      this.refresh();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"financialPortalPeriodSelector\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"triggerRefresh\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"triggerRefresh\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/financials/chart-of-accounts\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"store\", _descriptor4, this);\n    }\n    async beforeModel(transition) {\n      await this.session.requireAuthentication(transition, 'login');\n      if ((0, _object.get)(this, 'sessionData.entity.parent.id')) this.router.replaceWith('entity.financials');\n    }\n    model() {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      return this.store.simpleQuery('account', {\n        entity\n      }).then(accounts => accounts.toArray());\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/financials/dashboard-loading\", [\"exports\", \"portal/routes/entity/financials/dashboard\", \"portal/utils/loading-route-from\"], function (_exports, _dashboard, _loadingRouteFrom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/financials/dashboard\",0,\"portal/utils/loading-route-from\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _loadingRouteFrom.default)(_dashboard.default, 'entity/financials/dashboard');\n});","define(\"portal/routes/entity/financials/dashboard\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"portal/mixins/scroll-route\"], function (_exports, _route, _service, _object, _scrollRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"portal/mixins/scroll-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    async model() {\n      const user = (0, _object.get)(this, 'sessionData.user.id');\n      const entity = (0, _object.get)(this, 'sessionData.entity.parent.id') || null;\n      const dashboardQuery = {\n        and: [{\n          field: 'user',\n          op: 'EQ',\n          value: user\n        }]\n      };\n      const kpiQueryOptions = {\n        sort: 'sortIndex'\n      };\n      const accountQueryOptions = {\n        sort: 'sortIndex'\n      };\n      const entitiesQueryOptions = {\n        sort: 'name'\n      };\n      const entityGroupsQueryOptions = {\n        sort: 'sortIndex'\n      };\n      if (entity) {\n        dashboardQuery.and.push({\n          field: 'entity',\n          op: 'EQ',\n          value: entity\n        });\n        const entityFilter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: entity\n          }]\n        };\n        kpiQueryOptions.filter = entityFilter;\n        accountQueryOptions.filter = entityFilter;\n        entitiesQueryOptions.filter = {\n          and: [{\n            field: 'parent',\n            op: 'EQ',\n            value: entity\n          }]\n        };\n        entityGroupsQueryOptions.filter = {\n          and: [{\n            field: 'parentEntity',\n            op: 'EQ',\n            value: entity\n          }]\n        };\n      }\n      const [modules, kpis, accounts, entities, entityGroups] = await Promise.all([this.store.query('dashboard-module', {\n        filter: dashboardQuery,\n        include: 'accounts,kpis,entities,entityGroups'\n      }).then(modules => modules.toArray()), this.store.query('kpi', kpiQueryOptions).then(kpis => kpis.filterBy('active', true)), this.store.query('account', accountQueryOptions).then(accounts => accounts.toArray()), this.store.query('entity', entitiesQueryOptions).then(entities => entities.toArray()), this.store.query('entity-group', entityGroupsQueryOptions).then(groups => groups.toArray())]);\n      return {\n        modules,\n        configData: {\n          kpis,\n          accounts,\n          entities,\n          entityGroups\n        }\n      };\n    }\n  });\n});","define(\"portal/routes/entity/financials/general\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    async model() {\n      let financialOption;\n      const financialOptions = await this.store.simpleQuery('financial-option', {\n        entity: (0, _object.get)(this, 'sessionData.entity.id')\n      }).then(res => res.toArray());\n      if (financialOptions.length) financialOption = financialOptions[0];else financialOption = this.store.createRecord('financial-option', {\n        entity: (0, _object.get)(this, 'sessionData.entity')\n      });\n      return financialOption;\n    }\n  });\n});","define(\"portal/routes/entity/financials/groups\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\"], function (_exports, _route, _service, _object, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    beforeModel() {\n      if ((0, _object.get)(this, 'sessionData.entity.parent.id')) return this.router.replaceWith('entity.financials');\n    },\n    model() {\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.id');\n      return _rsvp.default.hash({\n        groups: (0, _object.get)(this, 'store').query('entity-group', {\n          filter: {\n            and: [{\n              field: 'parentEntity',\n              op: 'EQ',\n              value: parentEntity\n            }]\n          },\n          sort: 'dateCreated',\n          include: 'members,canBeAccessedBy'\n        }).then(groups => groups.toArray()),\n        branches: (0, _object.get)(this, 'store').query('entity', {\n          filter: {\n            and: [{\n              field: 'parent',\n              op: 'EQ',\n              value: parentEntity\n            }]\n          }\n        })\n      });\n    }\n  });\n});","define(\"portal/routes/entity/financials/groups/access\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    templateName: 'entity.financials.groups.membership-and-access',\n    controllerName: 'entity.financials.groups.access',\n    model() {\n      return this.modelFor('entity.financials.groups');\n    },\n    setupController(controller) {\n      this._super(...arguments);\n\n      // Without this, tableContent goes stale when switching between access and membership routes\n      controller.notifyPropertyChange('tableContent');\n    }\n  });\n});","define(\"portal/routes/entity/financials/groups/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    redirect() {\n      this.router.transitionTo('entity.financials.groups.membership');\n    }\n  });\n});","define(\"portal/routes/entity/financials/groups/membership\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    templateName: 'entity.financials.groups.membership-and-access',\n    controllerName: 'entity.financials.groups.membership',\n    model() {\n      return this.modelFor('entity.financials.groups');\n    },\n    setupController(controller) {\n      this._super(...arguments);\n\n      // Without this, tableContent goes stale when switching between access and membership routes\n      controller.notifyPropertyChange('tableContent');\n    }\n  });\n});","define(\"portal/routes/entity/financials/groups/order\", [\"exports\", \"@ember/routing/route\"], function (_exports, _route) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({});\n});","define(\"portal/routes/entity/financials/import\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    beforeModel() {\n      if (!(0, _object.get)(this, 'sessionData.entity.parent.id')) return this.router.replaceWith('entity.financials');\n    },\n    model() {\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      return this.store.simpleQuery('account', {\n        entity: parentEntity\n      });\n    }\n  });\n});","define(\"portal/routes/entity/financials/import/data\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"@ember/utils\", \"moment\"], function (_exports, _route, _service, _object, _rsvp, _utils, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"@ember/utils\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    steps: ['profit-and-loss', 'balance-sheet', 'other-data'],\n    beforeModel(transition) {\n      const steps = (0, _object.get)(this, 'steps');\n      const step = (0, _object.get)(transition, 'to.params.step');\n      if (steps.indexOf(step) === -1) {\n        this.router.replaceWith('entity.financials.import.start');\n      }\n      this._super(...arguments);\n    },\n    model(params) {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const periodString = (0, _object.get)(this, 'sessionData.period');\n      const period = (0, _moment.default)(periodString, 'YYYY-MM').endOf('month').toDate();\n      (0, _object.set)(this, 'step', (0, _object.get)(params, 'step'));\n      return _rsvp.default.hash({\n        accounts: this.modelFor('entity.financials.import').filterBy('category', (0, _object.get)(params, 'step')),\n        maps: (0, _object.get)(this, 'store').simpleQuery('account-map', {\n          entity\n        }).then(maps => maps.toArray()),\n        import: (0, _object.get)(this, 'store').simpleQuery('import', {\n          entity,\n          date: period.toISOString()\n        }).then(imports => {\n          if ((0, _utils.isEmpty)(imports)) {\n            return (0, _object.get)(this, 'store').createRecord('import', {\n              date: period,\n              organisation: (0, _object.get)(this, 'sessionData.organisation'),\n              entity: (0, _object.get)(this, 'sessionData.entity')\n            });\n          }\n          return imports.objectAt(0);\n        })\n      });\n    },\n    activate() {\n      this._super(...arguments);\n    },\n    setupController(controller) {\n      this._super(...arguments);\n      const steps = (0, _object.get)(this, 'steps');\n      const step = (0, _object.get)(this, 'step');\n      (0, _object.set)(this.controllerFor('entity.financials.import'), 'step', steps.indexOf(step) + 2);\n      (0, _object.set)(controller, 'step', step);\n\n      // Refresh the model on any map that has been edited (undoing the edit) and then set editedMaps to empty\n      // This happens so that if a user clicks skip, their unsaved changes are discarded.\n      // If the user clicks save, the editedMaps array should have been cleared after the save has completed.\n      const editedMaps = (0, _object.get)(controller, 'editedMaps');\n      _rsvp.default.all(editedMaps.map(map => {\n        if ((0, _object.get)(map, 'isNew')) return null;\n        return map.reload();\n      })).catch(err => this.send('error', err)).finally(() => (0, _object.set)(controller, 'editedMaps', []));\n    }\n  });\n});","define(\"portal/routes/entity/financials/import/done\", [\"exports\", \"@ember/routing/route\", \"@ember/object\"], function (_exports, _route, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    activate() {\n      this._super(...arguments);\n      (0, _object.set)(this.controllerFor('entity.financials.import'), 'step', 5);\n    }\n  });\n});","define(\"portal/routes/entity/financials/import/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    beforeModel() {\n      this.router.replaceWith('entity.financials.import.start');\n    }\n  });\n});","define(\"portal/routes/entity/financials/import/start\", [\"exports\", \"@ember/routing/route\", \"@ember/object\"], function (_exports, _route, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    activate() {\n      this._super(...arguments);\n      (0, _object.set)(this.controllerFor('entity.financials.import'), 'step', 1);\n    }\n  });\n});","define(\"portal/routes/entity/financials/index\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\", \"portal/mixins/menu-route\"], function (_exports, _route, _object, _service, _menuRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\",0,\"portal/mixins/menu-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_menuRoute.default, {\n    newFeatureFlags: (0, _service.inject)(),\n    defaultRoute: (0, _object.computed)('newFeatureFlags.canUseFPDashboard', function () {\n      return (0, _object.get)(this, 'newFeatureFlags.canUseFPDashboard') ? 'entity.financials.dashboard' : 'entity.financials.reports.kpis';\n    })\n  });\n});","define(\"portal/routes/entity/financials/kpis\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    beforeModel() {\n      if ((0, _object.get)(this, 'sessionData.entity.parent.id')) this.router.replaceWith('entity.financials');\n    },\n    model() {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      return (0, _object.get)(this, 'store').simpleQuery('kpi', {\n        entity\n      }).then(kpis => kpis.sortBy('sortIndex'));\n    }\n  });\n});","define(\"portal/routes/entity/financials/kpis/index\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    redirect() {\n      const kpis = this.modelFor('entity.financials.kpis');\n      if (!(0, _object.get)(kpis, 'length')) return;\n      const firstId = (0, _object.get)(kpis.objectAt(0), 'id');\n      this.router.transitionTo('entity.financials.kpis.kpi', firstId);\n    }\n  });\n});","define(\"portal/routes/entity/financials/kpis/kpi\", [\"exports\", \"@ember/routing/route\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    store: (0, _service.inject)(),\n    model(params) {\n      return (0, _object.get)(this, 'store').findRecord('kpi', params.slug);\n    }\n  });\n});","define(\"portal/routes/entity/financials/planning/strategies\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"moment\", \"portal/utils/sort-accounts\"], function (_exports, _route, _service, _object, _rsvp, _moment, _sortAccounts) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"moment\",0,\"portal/utils/sort-accounts\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    model() {\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const date = (0, _moment.default)(period, 'YYYY-MM').endOf('month').toDate().toISOString();\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const targets = this.store.simpleQuery('target', {\n        entity,\n        date\n      }).then(targetRecords => targetRecords.toArray());\n      const accountQueryOptions = {};\n      const kpiQueryOptions = {};\n      if (parentEntity) {\n        const filter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: parentEntity\n          }]\n        };\n        accountQueryOptions.filter = filter;\n        kpiQueryOptions.filter = filter;\n      }\n      const accounts = this.store.query('account', accountQueryOptions).then(accountRecords => (0, _sortAccounts.default)(accountRecords));\n      const kpis = this.store.query('kpi', kpiQueryOptions).then(kpis => kpis.filterBy('active', true)).then(kpiRecords => kpiRecords.sortBy('sortIndex'));\n      return _rsvp.default.hash({\n        targets,\n        accounts,\n        kpis\n      });\n    }\n  });\n});","define(\"portal/routes/entity/financials/reports/general-ledger/balance-sheet\", [\"exports\", \"portal/routes/entity/financials/reports/general-ledger/base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/financials/reports/general-ledger/base\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _base.default.extend({\n    category: 'balance-sheet'\n  });\n});","define(\"portal/routes/entity/financials/reports/general-ledger/base\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"rsvp\", \"jquery\", \"@ember/object\", \"portal/config/environment\", \"portal/utils/nest\", \"moment\", \"lodash\", \"portal/mixins/scroll-route\"], function (_exports, _route, _service, _rsvp, _jquery, _object, _environment, _nest, _moment, _lodash, _scrollRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"rsvp\",0,\"jquery\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"portal/utils/nest\",0,\"moment\",0,\"lodash\",0,\"portal/mixins/scroll-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    cache: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    includeGroupData: true,\n    /**\n     * If set, only accounts of this category will be loaded.\n     *\n     * @type {String}\n     */\n    category: null,\n    model() {\n      let entity = (0, _object.get)(this, 'sessionData.entity.id');\n      let parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const includeGroupData = (0, _object.get)(this, 'includeGroupData');\n\n      // TODO bit hacky, someone with more time fix this.\n      // It just stops the entity from coming up if you are on a top level entity.\n      // can probably just be removed once reports for top level entities is implemented.\n      if (!parentEntity) {\n        parentEntity = entity;\n        entity = null;\n      }\n      let accounts;\n      let groups;\n      const accountsQuery = {\n        and: [{\n          field: 'entity',\n          op: 'EQ',\n          value: parentEntity\n        }]\n      };\n      if ((0, _object.get)(this, 'category')) {\n        accountsQuery.and.push({\n          field: 'category',\n          op: 'EQ',\n          value: (0, _object.get)(this, 'category')\n        });\n      }\n      const groupQuery = {\n        and: [{\n          field: 'parentEntity',\n          op: 'EQ',\n          value: parentEntity\n        }]\n      };\n      if (!entity) {\n        const userGroups = this.sessionData.user.hasMany('entityGroups').value();\n        const userLinkedEntityGroupsIds = userGroups.toArray().map(item => item.belongsTo('entityGroup').id()).filter(Boolean);\n\n        // TODO do this better.\n        if (!userGroups.length && !(0, _object.get)(this, 'newFeatureFlags.userIsEntityAdmin')) return false;\n        // Group access only\n        groupQuery.and.push({\n          field: '_id',\n          op: 'IN',\n          value: userLinkedEntityGroupsIds\n        });\n      }\n      return _rsvp.default.all([this.store.query('account', {\n        filter: accountsQuery\n      }), this.store.query('entity-group', {\n        filter: groupQuery,\n        include: 'canBeAccessedBy',\n        sort: 'sortIndex'\n      })]).then(([accountRecords = [], groupRecords = []]) => {\n        if (!(0, _object.get)(accountRecords, 'length')) return;\n        accounts = accountRecords.sortBy('sortIndex');\n        groups = entity ? groupRecords.filter(group => {\n          const accessibleItems = (0, _object.get)(group, 'canBeAccessedBy')?.content?.toArray() || [];\n          const filteredItems = accessibleItems.filter(item => (0, _object.get)(item, 'entity.id') === entity);\n          return filteredItems.length > 0;\n        }) : groupRecords?.toArray();\n        const groupIds = _lodash.default.map(groups, 'id');\n        const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/balances';\n        const payload = {\n          periodStart: period,\n          periodEnd: period,\n          periodTypes: ['month', 'ytd'],\n          metrics: accounts.mapBy('id')\n        };\n        const headers = {\n          Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n        };\n        if (entity) {\n          (0, _object.set)(payload, 'entity', entity);\n        }\n        if (includeGroupData) {\n          (0, _object.set)(payload, 'entityGroups', groupIds);\n        }\n        const cacheKey = _lodash.default.merge(payload, {\n          type: 'balances'\n        });\n        const cached = (0, _object.get)(this, 'cache').lookup('reports', cacheKey);\n        if (cached) {\n          return cached;\n        }\n        return _jquery.default.ajax({\n          url,\n          headers,\n          data: JSON.stringify(payload),\n          method: 'POST',\n          contentType: 'application/json'\n        }).then(data => {\n          (0, _object.get)(this, 'cache').store('reports', cacheKey, data);\n          return data;\n        });\n      }).then(res => {\n        if (!res) return;\n        const {\n          data,\n          meta = {}\n        } = res;\n        let balances = [];\n        const firstClosedPeriod = meta.firstClosedPeriod ? (0, _moment.default)(meta.firstClosedPeriod).startOf('month').toDate() : null;\n        meta.groupsRedacted = firstClosedPeriod && period >= (0, _moment.default)(firstClosedPeriod).format('YYYY-MM');\n        groups.forEach(group => (0, _object.set)(group, 'includedEntities', 0));\n        data.forEach(metric => {\n          if (!(0, _object.get)(metric, 'meta') || !(0, _object.get)(metric, 'series')) {\n            return;\n          }\n          const values = [];\n          let entityValues = (0, _object.get)(metric, 'series').findBy('entity', entity);\n          entityValues = extractAndFormat(entity, entityValues);\n          values.push(entityValues);\n          groups.forEach(group => {\n            let groupValues = (0, _object.get)(metric, 'series').findBy('group', (0, _object.get)(group, 'id'));\n            groupValues = extractAndFormat((0, _object.get)(group, 'id'), groupValues);\n            values.push(groupValues);\n\n            // Figure out how many entities were used in calculating this group's data\n            let includedEntities = (0, _object.get)(group, 'includedEntities') || 0;\n            if ((0, _object.get)(groupValues, 'periodTypes.month.includedEntities') > includedEntities) {\n              includedEntities = (0, _object.get)(groupValues, 'periodTypes.month.includedEntities');\n            }\n            if ((0, _object.get)(groupValues, 'periodTypes.ytd.includedEntities') > includedEntities) {\n              includedEntities = (0, _object.get)(groupValues, 'periodTypes.ytd.includedEntities');\n            }\n            (0, _object.set)(group, 'includedEntities', includedEntities);\n          });\n\n          // Start with the metric's metadata and then add some extra fields\n          let balData = _lodash.default.merge(metric.meta, {\n            id: (0, _object.get)(metric, 'meta._id'),\n            data: values,\n            hideChildren: true,\n            depth: getAccountDepth(accounts?.find(account => account.id === (0, _object.get)(metric, 'meta._id'))),\n            print: true\n          });\n          balData = _object.default.create(balData);\n          balances.push(balData);\n        });\n        balances = balances.sortBy('sortIndex');\n        const topLevelAccounts = [];\n        const childAccounts = [];\n        balances.forEach(balance => {\n          if ((0, _object.get)(balance, 'parent') == null) {\n            topLevelAccounts.pushObject(balance);\n          } else {\n            childAccounts.pushObject(balance);\n          }\n        });\n        const nestedAccounts = (0, _nest.default)(topLevelAccounts, childAccounts, false);\n        const entities = includeGroupData ? groups : [];\n        if (entity) {\n          entities.unshift((0, _object.get)(this, 'sessionData.entity'));\n        }\n        const isBranch = Boolean((0, _object.get)(this, 'sessionData.entity.parent.id'));\n        const ownFirstClosedPeriod = (0, _object.get)(((0, _object.get)(this, 'sessionData.entity.financialOptions') || [])[0] || {}, 'firstClosedPeriod');\n        // Own data is withheld if the entity is a brance, FCP exists, and the current period is the same or after the FCP\n        const ownDataWithheld = isBranch && ownFirstClosedPeriod && period >= (0, _moment.default)(ownFirstClosedPeriod).format('YYYY-MM');\n        return {\n          nestedAccounts,\n          entities,\n          firstClosedPeriod,\n          ownDataWithheld,\n          groupsRedacted: meta.groupsRedacted\n        };\n      }, reason => {\n        if ((0, _object.get)(reason, 'status') === 400 && (0, _object.get)(reason, 'responseJSON.message') && (0, _object.get)(reason, 'responseJSON.message').indexOf('Failed to find accounts with the following labels') !== -1) {\n          return this.router.replaceWith('entity.setup-incomplete');\n        } else {\n          throw reason;\n        }\n      });\n    }\n  });\n  function extractAndFormat(entityId, entity) {\n    if (!entity || !(0, _object.get)(entity || {}, 'periods.0')) {\n      return {\n        entity: entityId,\n        month: null,\n        ytd: null\n      };\n    }\n    const data = (0, _object.get)(entity, 'periods.0');\n\n    // Using lodash to avoid errors if we don't make it to the end of the path\n    (0, _object.set)(data, 'month', (0, _object.get)(data, 'periodTypes.month.value'));\n    (0, _object.set)(data, 'ytd', (0, _object.get)(data, 'periodTypes.ytd.value'));\n    (0, _object.set)(data, 'entity', entityId);\n    return data;\n  }\n  function getAccountDepth(account) {\n    let parent = (0, _object.get)(account, 'parent');\n    let depth = 0;\n\n    // Depth check just in case of an infinite loop\n    while ((0, _object.get)(parent, 'id') && depth <= 100) {\n      parent = (0, _object.get)(parent, 'parent');\n      depth += 1;\n    }\n    return depth;\n  }\n});","define(\"portal/routes/entity/financials/reports/general-ledger/itm-profit-and-loss\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"portal/config/environment\", \"moment\", \"lodash\", \"portal/mixins/scroll-route\", \"jquery\"], function (_exports, _route, _service, _object, _rsvp, _environment, _moment, _lodash, _scrollRoute, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"portal/config/environment\",0,\"moment\",0,\"lodash\",0,\"portal/mixins/scroll-route\",0,\"jquery\"eaimeta@70e063a35619d71f\n  const itmReportKpis = {\n    systemMargin: '5a88e5985be3005acc5c6014',\n    achievedMargin: '5a88e59801744a5acc58bc90',\n    grossMargin: '5a88e5989c00575acc486082',\n    netProfit: '5a88e598732ca45acc534c6c',\n    ebitda: '5a88e5988c061c5accc91919'\n  };\n  const itmImportantAccounts = {\n    sales: '557f4a3dfb92c8281395931b',\n    costOfSales: '557f4b7f8d1df11218796263',\n    stockVariation: '5a88d7d59ed0105859a10979',\n    loyaltiesAndFreight: '5a88d82f3457965b08a9a355',\n    otherIncomeAndDepreciation: '557f4f6f8d1df1121879626c',\n    expenses: '557f67af8d1df11218796406'\n  };\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    cache: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    queryParams: {\n      selectedEntityIds: {\n        refreshModel: true,\n        replace: true\n      },\n      selectedGroupIds: {\n        refreshModel: true,\n        replace: true\n      }\n    },\n    model(params) {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const selectedEntities = (params.selectedEntityIds || []).map(id => ({\n        type: 'entity',\n        id\n      }));\n      const selectedGroups = (params.selectedGroupIds || []).map(id => ({\n        type: 'group',\n        id\n      }));\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const previousYearPeriod = (0, _moment.default)((0, _object.get)(this, 'sessionData.period')).subtract(1, 'year').format('YYYY-MM');\n      const token = (0, _object.get)(this, 'session.data.authenticated.access_token');\n      let firstClosedPeriod;\n      const allEntitiesAndGroups = [];\n      if (parentEntity) allEntitiesAndGroups.push({\n        type: 'entity',\n        id: entity\n      });\n      allEntitiesAndGroups.push(...selectedEntities);\n      allEntitiesAndGroups.push(...selectedGroups);\n      const accountQuery = {\n        and: [{\n          field: 'category',\n          op: 'EQ',\n          value: 'profit-and-loss'\n        }]\n      };\n      const kpiQuery = {\n        and: [{\n          field: '_id',\n          op: 'IN',\n          value: _lodash.default.map(itmReportKpis, i => i)\n        }]\n      };\n      if (parentEntity) {\n        accountQuery.and.push({\n          field: 'entity',\n          op: 'EQ',\n          value: parentEntity\n        });\n        kpiQuery.and.push({\n          field: 'entity',\n          op: 'EQ',\n          value: parentEntity\n        });\n      }\n      return Promise.all([this.store.query('account', {\n        filter: accountQuery\n      }), this.store.query('kpi', {\n        filter: kpiQuery\n      })]).then(([accountRecords = [], kpiRecords = []]) => _rsvp.default.all(allEntitiesAndGroups.map(entity => _rsvp.default.all([this.getReport(accountRecords, entity, period, token, 'balances'), this.getReport(accountRecords, entity, previousYearPeriod, token, 'balances'), this.getReport(kpiRecords, entity, period, token, 'kpis'), this.getReport(kpiRecords, entity, previousYearPeriod, token, 'kpis')])))).then(entityReports => {\n        if (!entityReports.length) return null;\n        const reportsHash = {};\n        const salesNumbers = {\n          month: [],\n          ytd: [],\n          monthPrev: [],\n          ytdPrev: []\n        };\n        entityReports.forEach(report => {\n          const salesReport = report[0].data.find(r => r.metric === itmImportantAccounts.sales);\n          const SalesReportPrevious = report[1].data.find(r => r.metric === itmImportantAccounts.sales);\n          salesNumbers.month.push(_lodash.default.get(salesReport, 'series[0].periods[0].periodTypes.month.value', 0));\n          salesNumbers.ytd.push(_lodash.default.get(salesReport, 'series[0].periods[0].periodTypes.ytd.value', 0));\n          salesNumbers.monthPrev.push(_lodash.default.get(SalesReportPrevious, 'series[0].periods[0].periodTypes.month.value', 0));\n          salesNumbers.ytdPrev.push(_lodash.default.get(SalesReportPrevious, 'series[0].periods[0].periodTypes.ytd.value', 0));\n        });\n        const parseReport = (indexCurrent, indexPrevious) => {\n          return entityReports[0][indexCurrent].data.map((account, i) => {\n            const parsedReport = Object.assign({}, account.meta, {\n              month: [],\n              ytd: [],\n              monthPrev: [],\n              ytdPrev: [],\n              children: [],\n              accountMeta: [],\n              monthPercentSales: [],\n              monthPrevPercentSales: [],\n              ytdPercentSales: [],\n              ytdPrevPercentSales: [],\n              monthPercentParent: [],\n              monthPrevPercentParent: [],\n              ytdPercentParent: [],\n              ytdPrevPercentParent: []\n            });\n            entityReports.forEach((reports, j) => {\n              const current = reports[indexCurrent];\n              const previous = reports[indexPrevious];\n              firstClosedPeriod = firstClosedPeriod || current.meta.firstClosedPeriod;\n\n              /*\n              Kpis have a nonAnnualisedValue as well as a value key.\n              For kpis, we need the nonAnnualisedValue and for accounts, we need the value.\n              Fallback to zero if neither is present.\n              */\n              parsedReport.month.push(_lodash.default.get(current, `data[${i}].series[0].periods[0].periodTypes.month.nonAnnualisedValue`) || _lodash.default.get(current, `data[${i}].series[0].periods[0].periodTypes.month.value`) || 0);\n              parsedReport.ytd.push(_lodash.default.get(current, `data[${i}].series[0].periods[0].periodTypes.ytd.nonAnnualisedValue`) || _lodash.default.get(current, `data[${i}].series[0].periods[0].periodTypes.ytd.value`) || 0);\n              parsedReport.monthPrev.push(_lodash.default.get(previous, `data[${i}].series[0].periods[0].periodTypes.month.nonAnnualisedValue`) || _lodash.default.get(previous, `data[${i}].series[0].periods[0].periodTypes.month.value`) || 0);\n              parsedReport.ytdPrev.push(_lodash.default.get(previous, `data[${i}].series[0].periods[0].periodTypes.ytd.nonAnnualisedValue`) || _lodash.default.get(previous, `data[${i}].series[0].periods[0].periodTypes.ytd.value`) || 0);\n              parsedReport.monthPercentSales[j] = salesNumbers.month[j] && parsedReport.month[j] / salesNumbers.month[j];\n              parsedReport.monthPrevPercentSales[j] = salesNumbers.monthPrev[j] && parsedReport.monthPrev[j] / salesNumbers.monthPrev[j];\n              parsedReport.ytdPercentSales[j] = salesNumbers.ytd[j] && parsedReport.ytd[j] / salesNumbers.ytd[j];\n              parsedReport.ytdPrevPercentSales[j] = salesNumbers.ytdPrev[j] && parsedReport.ytdPrev[j] / salesNumbers.ytdPrev[j];\n            });\n            reportsHash[account.metric] = parsedReport;\n            return parsedReport;\n          });\n        };\n        let accountReports = parseReport(0, 1);\n        accountReports = accountReports.sortBy('sortIndex');\n        accountReports.forEach(report => {\n          if (report.parent) {\n            const parentReport = reportsHash[report.parent];\n            entityReports.forEach((entity, i) => {\n              report.monthPercentParent[i] = report.month[i] / parentReport.month[i];\n              report.monthPrevPercentParent[i] = report.monthPrev[i] / parentReport.monthPrev[i];\n              report.ytdPercentParent[i] = report.ytd[i] / parentReport.ytd[i];\n              report.ytdPrevPercentParent[i] = report.ytdPrev[i] / parentReport.ytdPrev[i];\n              report.parent = parentReport;\n            });\n            parentReport.children.push(report);\n          }\n        });\n\n        // Parse KPI reports\n        parseReport(2, 3);\n        const isBranch = Boolean((0, _object.get)(this, 'sessionData.entity.parent.id'));\n        const ownFirstClosedPeriod = (0, _object.get)(((0, _object.get)(this, 'sessionData.entity.financialOptions') || [])[0] || {}, 'firstClosedPeriod');\n        // Own data is withheld if the entity is a brance, FCP exists, and the current period is the same or after the FCP\n        const ownDataWithheld = isBranch && ownFirstClosedPeriod && period >= (0, _moment.default)(ownFirstClosedPeriod).format('YYYY-MM');\n        const groupsRedacted = firstClosedPeriod && period >= (0, _moment.default)(firstClosedPeriod).format('YYYY-MM');\n        return _rsvp.default.hash({\n          ownDataWithheld,\n          groupsRedacted,\n          sales: reportsHash[itmImportantAccounts.sales],\n          costOfSales: reportsHash[itmImportantAccounts.costOfSales],\n          stockVariation: reportsHash[itmImportantAccounts.stockVariation],\n          loyaltiesAndFreight: reportsHash[itmImportantAccounts.loyaltiesAndFreight],\n          otherIncomeAndDepreciation: reportsHash[itmImportantAccounts.otherIncomeAndDepreciation],\n          expenses: reportsHash[itmImportantAccounts.expenses],\n          rebates: reportsHash[itmImportantAccounts.rebates],\n          systemMargin: reportsHash[itmReportKpis.systemMargin],\n          achievedMargin: reportsHash[itmReportKpis.achievedMargin],\n          grossMargin: reportsHash[itmReportKpis.grossMargin],\n          netProfit: reportsHash[itmReportKpis.netProfit],\n          ebitda: reportsHash[itmReportKpis.ebitda]\n        });\n      }, reason => {\n        if ((0, _object.get)(reason, 'status') === 400 && (0, _object.get)(reason, 'responseJSON.message') && (0, _object.get)(reason, 'responseJSON.message').indexOf('Failed to find accounts with the following labels') !== -1) {\n          return this.router.replaceWith('entity.setup-incomplete');\n        } else {\n          throw reason;\n        }\n      });\n    },\n    setupController(controller) {\n      this._super(...arguments);\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id') || (0, _object.get)(this, 'sessionData.entity.id');\n\n      /*\n      This used to be returned by the model hook however it would often fail if the route was being\n      navigated to a second time. This makes sure that we only ever fetch groups once, avoiding the issue.\n      */\n      const allowedGroups = (0, _object.get)(controller, 'allowedGroups');\n      if (!allowedGroups || !allowedGroups.length) {\n        this.store.simpleQuery('entity-group', {\n          parentEntity\n        }).then(groups => {\n          (0, _object.set)(controller, 'allowedGroups', groups.sortBy('name'));\n          (0, _object.set)(controller, 'selectedGroups', (0, _object.get)(controller, 'selectedGroupIds').map(g => groups.findBy('id', g)));\n        });\n      } else {\n        (0, _object.set)(controller, 'selectedGroups', (0, _object.get)(controller, 'selectedGroupIds').map(g => allowedGroups.findBy('id', g)));\n      }\n\n      // This is just to follow the same pattern as groups. Also prevents excess iterations through entities.\n      const allEntities = (0, _object.get)(controller, 'allEntities');\n      if (!allEntities || !allEntities.length) {\n        const entities = (0, _object.get)(this, 'sessionData.allowedEntities').filter(e => (0, _object.get)(e, 'parent.id') === parentEntity);\n        (0, _object.set)(controller, 'allEntities', entities);\n        (0, _object.set)(controller, 'selectedEntities', (0, _object.get)(controller, 'selectedEntityIds').map(e => entities.findBy('id', e)));\n      } else {\n        (0, _object.set)(controller, 'selectedEntities', (0, _object.get)(controller, 'selectedEntityIds').map(e => allEntities.findBy('id', e)));\n      }\n    },\n    getReport(metrics, entity, period, token, type) {\n      if (!(0, _object.get)(metrics, 'length')) return;\n      if (!['kpis', 'balances'].includes(type)) throw new Error('Type must be `kpis` or `balances`');\n      const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/' + type;\n      const payload = {\n        periodStart: period,\n        periodEnd: period,\n        periodTypes: ['month', 'ytd'],\n        metrics: metrics.mapBy('id')\n      };\n      if (!entity.type) payload.entity = entity.id;\n      if (entity.type === 'entity') payload.entity = entity.id;\n      if (entity.type === 'group') payload.entityGroups = [entity.id];\n      const cacheKey = _lodash.default.merge(payload, {\n        type\n      });\n      const cached = (0, _object.get)(this, 'cache').lookup('reports', cacheKey);\n      if (cached) return cached;\n      return new Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url,\n          headers: {\n            Authorization: 'Bearer ' + token\n          },\n          data: JSON.stringify(payload),\n          method: 'POST',\n          contentType: 'application/json'\n        }).then(data => {\n          (0, _object.get)(this, 'cache').store('reports', cacheKey, data);\n          resolve(data);\n        }, reject);\n      });\n    }\n  });\n});","define(\"portal/routes/entity/financials/reports/general-ledger/other-data\", [\"exports\", \"portal/routes/entity/financials/reports/general-ledger/base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/financials/reports/general-ledger/base\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _base.default.extend({\n    category: 'other-data'\n  });\n});","define(\"portal/routes/entity/financials/reports/general-ledger/personal-data\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"jquery\", \"moment\", \"portal/config/environment\", \"lodash\", \"portal/utils/nest\", \"portal/mixins/scroll-route\"], function (_exports, _route, _service, _object, _rsvp, _jquery, _moment, _environment, _lodash, _nest, _scrollRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"jquery\",0,\"moment\",0,\"portal/config/environment\",0,\"lodash\",0,\"portal/utils/nest\",0,\"portal/mixins/scroll-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    cache: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    queryParams: {\n      interval: {\n        refreshModel: true,\n        replace: true\n      },\n      duration: {\n        refreshModel: true,\n        replace: true\n      }\n    },\n    actions: {\n      didTransition() {\n        this._super(...arguments);\n\n        // Make sure that the expanded/collapsed settings on each account get\n        // applied each time the route is visited.\n        this.controller.applyAccountSettings();\n        return true; // Allow action to bubble.\n      }\n    },\n    async model(params) {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const parentEntity = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const periods = [];\n      for (let i = params.duration - 1; i >= 0; i--) {\n        const age = params.interval * i;\n        periods.push({\n          start: (0, _moment.default)((0, _object.get)(this, 'sessionData.period'), 'YYYY-MM').subtract(age, 'months').format('YYYY-MM'),\n          end: (0, _moment.default)((0, _object.get)(this, 'sessionData.period'), 'YYYY-MM').subtract(age, 'months').format('YYYY-MM')\n        });\n      }\n      const accountQueryOptions = {};\n      if (parentEntity) {\n        accountQueryOptions.filter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: parentEntity\n          }]\n        };\n      }\n      const accountsResult = await this.store.query('account', accountQueryOptions);\n      const accountsList = accountsResult.slice(); // Converts RecordArray to standard JS Array\n\n      const accountsArray = accountsList.map(a => a.id); // Replaced legacy mapBy with native map\n\n      const metricsPromises = periods.map(period => {\n        return this.getMetrics('balances', accountsArray, entity, period);\n      });\n      let data = await _rsvp.default.all(metricsPromises);\n      data = [collectByMetric(data)];\n      const balances = data[0].reduce((allBalances, metric) => {\n        if (metric) {\n          const metricId = (0, _object.get)(metric, 'meta._id');\n          const matchingAccount = accountsList.find(account => account.id === metricId);\n          allBalances.push(_lodash.default.merge(metric.meta, {\n            id: metricId,\n            data: metric.series,\n            hideChildren: true,\n            depth: getAccountDepth(matchingAccount),\n            print: true\n          }));\n        }\n        return allBalances;\n      }, []).sortBy('sortIndex');\n      const topLevelAccounts = [];\n      const childAccounts = [];\n      balances.forEach(balance => {\n        if (balance) {\n          if ((0, _object.get)(balance, 'parent') == null) {\n            topLevelAccounts.pushObject(balance);\n          } else {\n            childAccounts.pushObject(balance);\n          }\n        }\n      });\n      const nestedAccounts = (0, _nest.default)(topLevelAccounts, childAccounts, false);\n      return {\n        nestedAccounts\n      };\n    },\n    getMetrics(type, metrics, entity, period) {\n      return new _rsvp.default.Promise(resolve => {\n        if (!metrics || !metrics.length) {\n          return resolve([]);\n        }\n        const url = `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/reports/${type}`;\n        const payload = {\n          entities: [entity],\n          periodStart: period.start,\n          periodEnd: period.end,\n          periodTypes: period.type,\n          metrics\n        };\n        const headers = {\n          Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n        };\n        const cacheKey = _lodash.default.merge(payload, {\n          type\n        });\n        const cached = (0, _object.get)(this, 'cache').lookup('reports', cacheKey);\n        if (cached) return resolve(_lodash.default.cloneDeep(cached));\n        _jquery.default.ajax({\n          url,\n          method: 'POST',\n          data: JSON.stringify(payload),\n          headers,\n          contentType: 'application/json'\n        }).then(res => {\n          (0, _object.get)(this, 'cache').store('reports', cacheKey, _lodash.default.cloneDeep(res.data));\n          resolve(res.data);\n        });\n      });\n    }\n  });\n  function collectByMetric(dataSets) {\n    const blankObject = {\n      periods: [{\n        periodTypes: {\n          month: {\n            value: 0\n          },\n          ytd: {\n            value: 0\n          }\n        }\n      }]\n    };\n    const formattedValues = dataSets[0];\n    dataSets.forEach((data, index) => {\n      formattedValues.forEach(account => {\n        if (account) {\n          if (index > 0) {\n            data.forEach(dataItem => {\n              if (dataItem) {\n                if (dataItem.metric === account.metric) {\n                  account.series.push(dataItem.series[0]);\n                }\n              }\n            });\n          } else {\n            data.forEach(dataItem => {\n              if (dataItem) {\n                if (dataItem.metric === account.metric) {\n                  if (!dataItem.series[0]) {\n                    account.series.push(blankObject);\n                  }\n                }\n              }\n            });\n          }\n        }\n      });\n    });\n    return formattedValues;\n  }\n  function getAccountDepth(account) {\n    let depth = 0;\n    if (account) {\n      let parent = (0, _object.get)(account, 'parent');\n\n      // Depth check just in case of an infinite loop\n      while ((0, _object.get)(parent, 'id') && depth <= 100) {\n        parent = (0, _object.get)(parent, 'parent');\n        depth += 1;\n      }\n    }\n    return depth;\n  }\n});","define(\"portal/routes/entity/financials/reports/general-ledger/profit-and-loss\", [\"exports\", \"portal/routes/entity/financials/reports/general-ledger/base\"], function (_exports, _base) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/routes/entity/financials/reports/general-ledger/base\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _base.default.extend({\n    category: 'profit-and-loss'\n  });\n});","define(\"portal/routes/entity/financials/reports/imports\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"moment\", \"portal/mixins/scroll-route\"], function (_exports, _route, _service, _object, _rsvp, _jquery, _environment, _moment, _scrollRoute) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"moment\",0,\"portal/mixins/scroll-route\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend(_scrollRoute.default, {\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    model() {\n      const entityId = (0, _object.get)(this, 'sessionData.entity.id');\n      const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/periods';\n      const payload = {\n        entity: entityId\n      };\n      const dataType = 'json';\n      const headers = {\n        Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n      };\n      const getReport = _jquery.default.ajax({\n        url,\n        headers,\n        data: payload,\n        dataType\n      }).then(res => {\n        let earliest;\n        let latest;\n        const data = ((0, _object.get)(res, 'data') || []).map(entity => ({\n          ...entity,\n          // Convert ISO strings to dates\n          periods: entity.periods.map(period => new Date(period))\n        }));\n        data.forEach(({\n          periods\n        }) => {\n          periods.forEach(date => {\n            if (!earliest || date < earliest) {\n              earliest = date;\n            }\n            if (!latest || date > latest) {\n              latest = date;\n            }\n          });\n        });\n        const periods = [];\n        let current = earliest;\n        while (current <= latest) {\n          periods.push({\n            date: current,\n            count: 0\n          });\n          current = (0, _moment.default)(current).add(1, 'month').endOf('month').toDate();\n        }\n        const entities = [];\n        data.forEach(entity => {\n          const periodsForEntity = [];\n          periods.forEach(period => {\n            const periodData = (0, _object.get)(entity, 'periods').find(entityPeriod => {\n              return (0, _object.get)(period, 'date').getTime() === entityPeriod.getTime();\n            });\n            if (periodData) {\n              period.count += 1;\n            }\n            periodsForEntity.push(periodData || null);\n          });\n          entities.push({\n            id: (0, _object.get)(entity, 'entity'),\n            name: (0, _object.get)(entity, 'entityName'),\n            periods: periodsForEntity\n          });\n        });\n        return {\n          entities,\n          periods\n        };\n      });\n      return _rsvp.default.all([getReport]).then(([report]) => {\n        return report;\n      });\n    }\n  });\n});","define(\"portal/routes/entity/financials/reports/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    router: (0, _service.inject)(),\n    redirect() {\n      this.router.transitionTo('entity.financials.reports.kpis');\n    }\n  });\n});","define(\"portal/routes/entity/financials/reports/kpis/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"jquery\", \"rsvp\", \"@ember/object\", \"portal/config/environment\", \"moment\"], function (_exports, _route, _service, _jquery, _rsvp, _object, _environment, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"jquery\",0,\"rsvp\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    cache: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    newFeatureFlags: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    async model() {\n      let entityId = (0, _object.get)(this, 'sessionData.entity.id');\n      let parentEntityId = (0, _object.get)(this, 'sessionData.entity.parent.id');\n      const userGroups = this.sessionData.user.hasMany('entityGroups').value();\n      const userLinkedEntityGroupsIds = userGroups.toArray().map(item => item.belongsTo('entityGroup').id()).filter(Boolean);\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const kpiQueryOptions = {};\n\n      // TODO bit hacky, someone with more time fix this.\n      // It just stops the entity from coming up if you are on a top level entity.\n      // can probably just be removed once reports for top level entities is implemented.\n      if (!parentEntityId) {\n        parentEntityId = entityId;\n        entityId = null;\n        kpiQueryOptions.filter = {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: parentEntityId\n          }]\n        };\n      }\n\n      // Load the groups and KPIs for this entity first so we know which to include in the report\n      const getGroups = this.loadGroups(parentEntityId, entityId, userLinkedEntityGroupsIds);\n      const getKpis = this.store.query('kpi', kpiQueryOptions).then(kpis => kpis.filterBy('active', true));\n      return _rsvp.default.all([getGroups, getKpis]).then(([groups, kpis]) => this.loadReport(period, groups.mapBy('id'), kpis.mapBy('id'), entityId).then(report => this.formatReport(report, groups, entityId, period))).catch(reason => {\n        throw reason;\n      });\n    },\n    async loadGroups(parentEntity, entity, userGroups) {\n      const query = {\n        and: [{\n          field: 'parentEntity',\n          op: 'EQ',\n          value: parentEntity\n        }]\n      };\n      if (!entity) {\n        if (!userGroups.length && !(0, _object.get)(this, 'newFeatureFlags.userIsAdmin')) return _rsvp.default.resolve([]);\n\n        // TODO this check used to be inverted - pretty sure that was a bug but I'm not sure\n        if (userGroups.length) query.and.push({\n          field: '_id',\n          op: 'IN',\n          value: userGroups || []\n        });\n      }\n      let entityGroups = await this.store.query('entity-group', {\n        filter: query,\n        include: 'members,canBeAccessedBy'\n      }).then(groups => groups.sortBy('sortIndex'));\n      entityGroups = entity ? entityGroups.filter(group => {\n        const accessibleItems = (0, _object.get)(group, 'canBeAccessedBy')?.content?.toArray() || [];\n        const filteredItems = accessibleItems.filter(item => (0, _object.get)(item, 'entity.id') === entity);\n        return filteredItems.length > 0;\n      }) : entityGroups?.toArray();\n      return entityGroups;\n    },\n    loadReport(period, groupIds, kpiIds, entityId) {\n      const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/kpis';\n      const payload = {\n        entityGroups: groupIds,\n        periodStart: period,\n        periodEnd: period,\n        periodTypes: ['month', 'ytd']\n      };\n      if (kpiIds && (0, _object.get)(kpiIds, 'length')) (0, _object.set)(payload, 'metrics', kpiIds);\n      if (entityId) (0, _object.set)(payload, 'entities', [entityId]);\n      const headers = {\n        Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n      };\n      const cacheKey = Object.assign({\n        type: 'kpis'\n      }, payload);\n      const cached = (0, _object.get)(this, 'cache').lookup('reports', cacheKey);\n      if (cached) {\n        return _rsvp.default.resolve(cached);\n      }\n      return _jquery.default.ajax({\n        url,\n        headers,\n        data: JSON.stringify(payload),\n        method: 'POST',\n        contentType: 'application/json'\n      }).then(data => {\n        (0, _object.get)(this, 'cache').store('reports', cacheKey, data);\n        return data;\n      });\n    },\n    formatReport({\n      data,\n      meta = {}\n    }, groups, entityId, period) {\n      const kpis = [];\n      const firstClosedPeriod = meta.firstClosedPeriod ? (0, _moment.default)(meta.firstClosedPeriod).startOf('month').toDate() : null;\n      meta.groupsRedacted = firstClosedPeriod && period >= (0, _moment.default)(firstClosedPeriod).format('YYYY-MM');\n      data.forEach(metric => {\n        if (!(0, _object.get)(metric, 'meta') || !(0, _object.get)(metric, 'series')) {\n          return;\n        }\n        let values = [];\n        if (entityId) {\n          let entityValues = metric.series.findBy('entity', entityId);\n          entityValues = extractFigures(entityValues);\n          (0, _object.set)(entityValues, 'entity', entityId);\n          values.push(entityValues);\n        }\n        groups.forEach(group => {\n          const groupValues = (0, _object.get)(metric, 'series').findBy('group', (0, _object.get)(group, 'id'));\n          const extractedGroupValues = extractFigures(groupValues);\n\n          // Add entity ID to values object for use in table\n          (0, _object.set)(extractedGroupValues, 'entity', (0, _object.get)(group, 'id'));\n          values.push(extractedGroupValues);\n\n          // Figure out how many entities were used in calculating this group's data\n          let includedEntities = (0, _object.get)(group, 'includedEntities') || 0;\n          includedEntities = Math.max(includedEntities, (0, _object.get)(extractedGroupValues, 'periodTypes.month.includedEntities'), (0, _object.get)(extractedGroupValues, 'periodTypes.ytd.includedEntities'));\n          (0, _object.set)(group, 'includedEntities', includedEntities);\n        });\n        values = values.sortBy('sortIndex');\n        const kpiData = _object.default.create({\n          id: (0, _object.get)(metric, 'metric'),\n          name: (0, _object.get)(metric, 'meta.name'),\n          introLine: (0, _object.get)(metric, 'meta.introLine'),\n          slug: (0, _object.get)(metric, 'metric'),\n          format: (0, _object.get)(metric, 'meta.format'),\n          sortIndex: (0, _object.get)(metric, 'meta.sortIndex'),\n          data: values\n        });\n        kpis.push(kpiData);\n      });\n      const isBranch = Boolean((0, _object.get)(this, 'sessionData.entity.parent.id'));\n      const ownFirstClosedPeriod = (0, _object.get)(((0, _object.get)(this, 'sessionData.entity.financialOptions') || [])[0] || {}, 'firstClosedPeriod');\n      // Own data is withheld if the entity is a brance, FCP exists, and the current period is the same or after the FCP\n      const ownDataWithheld = isBranch && ownFirstClosedPeriod && period >= (0, _moment.default)(ownFirstClosedPeriod).format('YYYY-MM');\n      return {\n        kpis: kpis.sortBy('sortIndex'),\n        groups,\n        firstClosedPeriod,\n        ownDataWithheld,\n        groupsRedacted: meta.groupsRedacted\n      };\n    }\n  }); // TODO this has been reverted because the fluff is being used for its metadata.\n  function extractFigures(entity) {\n    const period = (0, _object.get)(entity || {}, 'periods.0');\n    if (!period) {\n      return {\n        month: null,\n        ytd: null\n      };\n    }\n    (0, _object.set)(period, 'month', (0, _object.get)(entity, 'periods.0.periodTypes.month.value'));\n    (0, _object.set)(period, 'ytd', (0, _object.get)(entity, 'periods.0.periodTypes.ytd.value'));\n    (0, _object.set)(period, 'entity', (0, _object.get)(entity, 'entity') || (0, _object.get)(entity, 'group'));\n    return period;\n  }\n});","define(\"portal/routes/entity/financials/reports/kpis/kpi\", [\"exports\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"@ember/utils\", \"rsvp\", \"jquery\", \"portal/config/environment\", \"moment\"], function (_exports, _route, _service, _object, _utils, _rsvp, _jquery, _environment, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/utils\",0,\"rsvp\",0,\"jquery\",0,\"portal/config/environment\",0,\"moment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _route.default.extend({\n    cache: (0, _service.inject)(),\n    router: (0, _service.inject)(),\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    store: (0, _service.inject)(),\n    periodType: 'month',\n    beforeModel() {\n      if (!(0, _object.get)(this, 'sessionData.entity.parent.id')) this.router.replaceWith('entity.financials.reports.kpis');\n    },\n    async model(params) {\n      const entity = (0, _object.get)(this, 'sessionData.entity');\n      const parentEntity = (0, _object.get)(entity, 'parent.id');\n      const entityId = (0, _object.get)(entity, 'id');\n      const period = (0, _object.get)(this, 'sessionData.period');\n      const periodOptions = {\n        periodStart: (0, _moment.default)(period, 'YYYY-MM').subtract(11, 'months').format('YYYY-MM'),\n        periodEnd: period,\n        periodTypes: ['month', 'ytd']\n      };\n      const entityGroupIds = await this.store.simpleQuery('link-entity-group-can-be-accessed-by', {\n        entity: entityId\n      }).then(res => res.toArray().map(group => group.belongsTo('entityGroup').id()).filter(Boolean));\n      const groupQuery = {\n        _id: {\n          $in: entityGroupIds\n        },\n        parentEntity\n      };\n      const loadEntityGroups = entityGroupIds.length ? this.store.simpleQuery('entity-group', groupQuery) : _rsvp.default.resolve([]);\n      const loadKpiMeta = this.store.simpleQuery('kpi', {\n        entity: parentEntity\n      }).then(kpis => kpis.filterBy('active', true).sortBy('sortIndex'));\n      return loadEntityGroups.then(entityGroups => {\n        const groupIds = entityGroups.mapBy ? entityGroups.mapBy('id') : entityGroups.map(group => (0, _object.get)(group, 'id'));\n        const loadKPIs = this._getKPIs(params.slug, periodOptions, groupIds);\n        const loadStats = this._getStats(params.slug, periodOptions);\n        return _rsvp.default.all([loadKPIs, loadStats, loadKpiMeta, entity, entityGroups]);\n      }).then(([[kpi], stats, kpiMeta, resolvedEntity, entityGroups]) => {\n        const groups = entityGroups.toArray ? entityGroups.toArray() : entityGroups;\n        const series = groups.sortBy ? groups.sortBy('sortIndex') : [...groups].sort((a, b) => (0, _object.get)(a, 'sortIndex', 0) - (0, _object.get)(b, 'sortIndex', 0));\n        if (!(0, _utils.isEmpty)(resolvedEntity)) {\n          series.unshift(resolvedEntity);\n        }\n        return {\n          kpi,\n          kpiMeta,\n          entityGroups: groups,\n          series,\n          stats,\n          periodOptions\n        };\n      }, reason => {\n        const message = (0, _object.get)(reason, 'responseJSON.message') || '';\n        const missingLabelError = 'Failed to find accounts with the following labels';\n        if (reason.status === 400 && message.indexOf(missingLabelError) > -1) {\n          return this.router.replaceWith('entity.setup-incomplete');\n        } else {\n          throw reason;\n        }\n      });\n    },\n    _getKPIs(metric, {\n      periodStart,\n      periodEnd,\n      periodTypes\n    }, entityGroups) {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/kpis';\n      const payload = {\n        entity,\n        periodStart,\n        periodEnd,\n        periodTypes,\n        entityGroups,\n        metrics: [metric]\n      };\n      const headers = {\n        Authorization: 'Bearer ' + (0, _object.get)(this, 'session.data.authenticated.access_token')\n      };\n      const cached = this._getCached('kpis', payload);\n      if (cached) {\n        return cached;\n      }\n      return _jquery.default.ajax({\n        url,\n        headers,\n        data: JSON.stringify(payload),\n        method: 'POST',\n        contentType: 'application/json'\n      }).then(data => this._cache('kpis', payload, data));\n    },\n    _getStats(metric, {\n      periodEnd,\n      periodTypes\n    }) {\n      const entity = (0, _object.get)(this, 'sessionData.entity.id');\n      const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/reports/stats';\n      const token = (0, _object.get)(this, 'session.data.authenticated.access_token');\n      const payload = {\n        entity,\n        periodStart: periodEnd,\n        // we only need one period\n        periodEnd,\n        periodTypes,\n        metrics: [metric]\n      };\n      const headers = {\n        Authorization: `Bearer ${token}`\n      };\n      const cached = this._getCached('kpiStats', payload);\n      if (cached) {\n        return cached;\n      }\n      return _jquery.default.ajax({\n        url,\n        headers,\n        data: payload,\n        dataType: 'json'\n      }).then(data => this._cache('kpiStats', payload, data)).then(data => (0, _object.get)(data, '0.periodTypes'));\n    },\n    _getCached(type, payload) {\n      const key = Object.assign({}, payload, {\n        type\n      });\n      return (0, _object.get)(this, 'cache').lookup('reports', key);\n    },\n    _cache(type, payload, {\n      data\n    }) {\n      const key = Object.assign({}, payload, {\n        type\n      });\n      (0, _object.get)(this, 'cache').store('reports', key, data);\n      return data || [];\n    }\n  });\n});","define(\"portal/routes/entity/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n      _initializerDefineProperty(this, \"modules\", _descriptor2, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor3, this);\n    }\n    beforeModel() {\n      if (this.modules.allowedModules.length === 0) {\n        this.router.transitionTo(this.newFeatureFlags.includesFeatureFlags('userIsEntityAdmin') ? 'entity.disabled' // only show the disabled page to entity managers\n        : 'no-access' // otherwise it is assumed you don't have permission to access anything\n        );\n      } else if (this.modules.allowedModules.length === 1) {\n        // If there is only one module allowed, go to it\n        this.router.transitionTo(`entity.${this.modules.allowedModules[0].slug}`);\n      } else {\n        // If there are multiple modules allowed, go to dashboard\n        this.router.transitionTo('entity.module-dashboard');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/module-dashboard\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"modules\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n      _initializerDefineProperty(this, \"helpCenter\", _descriptor3, this);\n    }\n    beforeModel() {\n      // if there aren't at least 2 modules, go back up to the entity index route.\n      if (this.modules.allowedModules.length <= 1) this.router.transitionTo('entity.index');\n      this.helpCenter.hideHelpCenter();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"modules\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"helpCenter\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/auto-mapping\", [\"exports\", \"@ember/routing/route\", \"rsvp\", \"@ember/object\", \"@ember/service\"], function (_exports, _route, _rsvp, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"rsvp\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.settings');\n    }\n    model() {\n      return _rsvp.default.hash({\n        // Get all directives for the entity, convert to a native array so it can be mutated\n        directives: this._getDirectives(),\n        // Get all available merchant accounts for the entity\n        merchantAccounts: this.store.simpleQuery('supplier-debtor-account', {\n          entity: (0, _object.get)(this, 'sessionData.entity.id')\n        }),\n        // Get all open projects for the entity\n        projects: this.store.simpleQuery('project', {\n          entity: (0, _object.get)(this, 'sessionData.entity.id'),\n          status: 'OPEN'\n        }),\n        basePath: this.basePath\n      });\n    }\n    refreshDirectives() {\n      this._getDirectives().then(directives => (0, _object.set)(this, 'controller.model.directives', directives));\n    }\n    _getDirectives() {\n      return this.store.query('invoice-auto-map-directive', {\n        filter: {\n          and: [{\n            field: 'entity',\n            op: 'EQ',\n            value: (0, _object.get)(this, 'sessionData.entity.id')\n          }]\n        },\n        sort: '-dateCreated'\n      }).then(r => r.toArray());\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"refreshDirectives\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"refreshDirectives\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/settings/chart-of-accounts/chart-of-account\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _route, _service, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.chart-of-accounts.chart-of-account');\n      _defineProperty(this, \"getGlAccount\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          let glAccount;\n          if (id === 'new') {\n            glAccount = yield this.store.createRecord('gl-account', {\n              entity: this.sessionData.entity\n            });\n          } else {\n            glAccount = yield this.store.findRecord('gl-account', id);\n          }\n          return glAccount;\n        }\n      }), null, \"getGlAccount\", null));\n    }\n    model({\n      chart_of_account_id: glAccountId\n    }) {\n      this.getGlAccount.perform(glAccountId);\n      return {\n        glAccount: this.getGlAccount\n      };\n    }\n    willTransition() {\n      const glAccount = this.currentModel.glAccount.last.value;\n      if (glAccount?.isNew) glAccount.destroyRecord();\n      if (glAccount.hasDirtyAttributes) glAccount.unloadRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/settings/chart-of-accounts/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageNumber: {\n          refreshModel: true\n        },\n        searchString: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [25, 50, 75, 100, 125, 150, 200]);\n      _defineProperty(this, \"getGlAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (pageSize, pageNumber, searchString) {\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }],\n            or: []\n          };\n          if (searchString) {\n            filter.or.push({\n              field: 'name',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'code',\n              op: 'ILIKE',\n              value: searchString\n            });\n          }\n          const glAccounts = yield this.store.query('gl-account', {\n            filter,\n            page: {\n              number: pageNumber || Number(1),\n              size: pageSize || this.pageSizes[0]\n            },\n            sort: 'name'\n          });\n          return glAccounts;\n        }\n      }), null, \"getGlAccounts\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageNumber = 1,\n      searchString\n    }) {\n      this.getGlAccounts.perform(pageSize, pageNumber, searchString);\n      return {\n        glAccounts: this.getGlAccounts,\n        pageSize: Number(pageSize),\n        pageNumber: Number(pageNumber),\n        pageSizes: this.pageSizes\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/company\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"@ember/object\", \"portal/models/purchase-order-option\", \"portal/models/entity-invoice-option\"], function (_exports, _asyncArrowRuntime, _route, _service, _object, _purchaseOrderOption, _entityInvoiceOption) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@ember/object\",0,\"portal/models/purchase-order-option\",0,\"portal/models/entity-invoice-option\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"accountingPlatform\", _descriptor3, this);\n      _defineProperty(this, \"loadEntityProfitMargin\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          yield entity.loadProfitMargins();\n          if (!entity.belongsTo('profitMargin').value()) {\n            entity.profitMargin = this.store.createRecord('profit-margin', {\n              entity\n            });\n          }\n        }\n      }), null, \"loadEntityProfitMargin\", null));\n      _defineProperty(this, \"loadEntityStagePaymentOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          yield entity.loadStagePaymentOptions();\n          if (!entity.belongsTo('stagePaymentOption').value()) {\n            entity.stagePaymentOption = this.store.createRecord('stage-payment-option', {\n              entity\n            });\n          }\n        }\n      }), null, \"loadEntityStagePaymentOptions\", null));\n      _defineProperty(this, \"loadPurchaseOrderOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          const options = yield this.store.simpleQuery('purchase-order-option', {\n            entity: entity.id\n          });\n          if (!options?.[0]) return _purchaseOrderOption.default.defaultOptionsRecord(this.store, this.sessionData.entity);\n          return options?.[0];\n        }\n      }), null, \"loadPurchaseOrderOptions\", null));\n      _defineProperty(this, \"loadInvoiceOptions\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          const options = yield this.store.query('entity-invoice-option', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: entity.id\n              }]\n            }\n          });\n          if (!options?.[0]) return _entityInvoiceOption.default.defaultOptionsRecord(this.store, this.sessionData.entity);\n          return options?.[0];\n        }\n      }), null, \"loadInvoiceOptions\", null));\n      _defineProperty(this, \"loadCompanyLogo\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (entity) {\n          yield entity.loadCompanyLogo();\n          return entity.safeBelongsToValue('companyLogo');\n        }\n      }), null, \"loadCompanyLogo\", null));\n      _defineProperty(this, \"loadGlAccounts\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const accounts = yield this.accountingPlatform.loadActivePlatformGlAccounts.perform();\n          return accounts?.toArray();\n        }\n      }), null, \"loadGlAccounts\", null));\n    }\n    model() {\n      const entity = this.sessionData.entity;\n      this.loadEntityProfitMargin.perform(entity);\n      this.loadPurchaseOrderOptions.perform(entity);\n      this.loadInvoiceOptions.perform(entity);\n      this.loadEntityStagePaymentOptions.perform(entity);\n      this.loadCompanyLogo.perform(entity);\n      this.loadGlAccounts.perform();\n      return {\n        entity,\n        loadEntityProfitMargin: this.loadEntityProfitMargin,\n        purchaseOrderOptions: this.loadPurchaseOrderOptions,\n        invoiceOptions: this.loadInvoiceOptions,\n        stagePaymentOptions: this.loadEntityStagePaymentOptions,\n        companyLogo: this.loadCompanyLogo,\n        glAccounts: this.loadGlAccounts\n      };\n    }\n    willTransition() {\n      const profitMargin = this.currentModel.entity?.belongsTo('profitMargin').value();\n      if (profitMargin?.isNew) profitMargin.destroyRecord();\n      const purchaseOrderOption = this.currentModel.purchaseOrderOptions.last.value;\n      if (purchaseOrderOption?.isNew) purchaseOrderOption.destroyRecord();\n      const invoiceOptions = this.currentModel.invoiceOptions.last.value;\n      if (invoiceOptions?.isNew) invoiceOptions.destroyRecord();\n      const stagePaymentOption = this.currentModel.entity?.belongsTo('stagePaymentOption').value();\n      if (stagePaymentOption?.isNew) stagePaymentOption.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"accountingPlatform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/settings/contacts/contact\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\", \"portal/utils/email-validator\", \"@ember/object\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset, _emailValidator, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\",0,\"ember-changeset\",0,\"portal/utils/email-validator\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.contacts.contact');\n      _defineProperty(this, \"validateName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 0 || this.intl.t('validation.Name');\n      });\n      _defineProperty(this, \"validateEmail\", (newValue, oldValue) => {\n        const email = (newValue ?? oldValue) || '';\n        if (email.length) return (0, _emailValidator.default)(email) || this.intl.t('validation.Email');\n        return true;\n      });\n      _defineProperty(this, \"supplierValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'name':\n            return this.validateName(newValue, oldValue);\n          case 'contactEmail':\n            return this.validateEmail(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"supplierValidationMap\", {\n        name: this.validateName,\n        contactEmail: this.validateEmail\n      });\n      _defineProperty(this, \"getSupplierChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (supplier) {\n          yield supplier.last;\n          return (0, _emberChangeset.Changeset)(supplier.last.value, this.supplierValidator, this.supplierValidationMap);\n        }\n      }), null, \"getSupplierChangeset\", null));\n      _defineProperty(this, \"getSupplier\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          let supplier;\n          if (id === 'new') {\n            supplier = yield this.store.createRecord('contact', {\n              entity: this.sessionData.entity\n            });\n          } else {\n            supplier = yield this.store.findRecord('contact', id, {\n              adapterOptions: {\n                fields: {\n                  contacts: '_meta.isLinkedToResources'\n                }\n              }\n            });\n          }\n          return supplier;\n        }\n      }), null, \"getSupplier\", null));\n    }\n    model({\n      contact_id: supplierId\n    }) {\n      this.getSupplier.perform(supplierId);\n      this.getSupplierChangeset.perform(this.getSupplier);\n      return {\n        supplier: this.getSupplier,\n        supplierChangeset: this.getSupplierChangeset\n      };\n    }\n    willTransition(transition) {\n      const supplier = this.currentModel.supplier.last.value;\n      const changeset = this.currentModel.supplierChangeset.last.value;\n      const hasUnsaved = !!changeset?.isDirty;\n      const isNew = !!supplier?.isNew;\n      if ((hasUnsaved || isNew) && !confirm('You have unsaved changes that will be lost if you decide to leave, do you want continue?')) {\n        transition.abort();\n        return false;\n      }\n      if (supplier?.isNew) supplier.destroyRecord();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"willTransition\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"willTransition\"), _class2.prototype), _class2);\n});","define(\"portal/routes/entity/settings/contacts/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"portal/utils/search-term-escape\"], function (_exports, _asyncArrowRuntime, _route, _service, _searchTermEscape) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"portal/utils/search-term-escape\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _defineProperty(this, \"queryParams\", {\n        pageSize: {\n          refreshModel: true\n        },\n        pageNumber: {\n          refreshModel: true\n        },\n        searchString: {\n          refreshModel: true\n        }\n      });\n      _defineProperty(this, \"pageSizes\", [25, 50, 75, 100, 125, 150, 200]);\n      _defineProperty(this, \"getSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (pageSize, pageNumber, searchString) {\n          const filter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }],\n            or: []\n          };\n          if (searchString) {\n            filter.or.push({\n              field: 'name',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'contactPerson',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'contactEmail',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'address',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'contactNumber',\n              op: 'ILIKE',\n              value: searchString\n            });\n            filter.or.push({\n              field: 'aliases',\n              op: 'CONTAINS_ILIKE',\n              value: `${(0, _searchTermEscape.searchTermEscape)(searchString)}`\n            });\n          }\n          const suppliers = yield this.store.query('contact', {\n            filter,\n            page: {\n              number: pageNumber || Number(1),\n              size: pageSize || this.pageSizes[0]\n            },\n            sort: 'name',\n            fields: {\n              contacts: '_meta.isLinkedToResources'\n            }\n          });\n          return suppliers;\n        }\n      }), null, \"getSuppliers\", null));\n      _defineProperty(this, \"getFirstDuplicateSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const duplicateSuppliers = yield this.buildaPrice.getDuplicateSuppliers({\n            entityId: this.sessionData.entity.id,\n            pageSize: 1\n          });\n          return duplicateSuppliers.length;\n        }\n      }), null, \"getFirstDuplicateSuppliers\", null));\n    }\n    model({\n      pageSize = this.pageSizes[0],\n      pageNumber = 1,\n      searchString\n    }) {\n      this.getSuppliers.perform(pageSize, pageNumber, searchString);\n      this.getFirstDuplicateSuppliers.perform();\n      return {\n        hasDuplicateSuppliers: this.getFirstDuplicateSuppliers,\n        suppliers: this.getSuppliers,\n        pageSize: Number(pageSize),\n        pageNumber: Number(pageNumber),\n        pageSizes: this.pageSizes\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/estimates/embedded-page\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"pricing\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      /**\n       * Exhaustive list of pages available in pricing. Some may not be used.\n       */\n      _defineProperty(this, \"PAGES\", {\n        // Job Management\n        jobList: {\n          path: 'syspages/workjob/jobmessage/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Job list')\n        },\n        ownTakeoff: {\n          path: 'syspages/workjob/jobtemplate/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Own takeoff')\n        },\n        // Settings\n        materialProduct: {\n          path: 'syspages/settings/myProduct/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Material product')\n        },\n        materialRate: {\n          path: 'syspages/settings/materialRate/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Material rate')\n        },\n        plant: {\n          path: 'syspages/settings/plant/main.jsp',\n          pageTitle: 'Plant'\n        },\n        dataDictionary: {\n          path: 'syspages/workmodel/jobdict/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Data dictionary')\n        },\n        flatRateResource: {\n          path: 'syspages/settings/flatRateResource/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Flat rate resource')\n        },\n        subcontractorRate: {\n          path: 'syspages/workmodel/workgangsubcontrator/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Subcontractor rate')\n        },\n        crTools: {\n          path: 'syspages/settings/crTools/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.CR tools')\n        },\n        miscTemplate: {\n          path: 'syspages/settings/miscTemplate/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Misc template')\n        },\n        sumsSettings: {\n          path: 'syspages/settings/sumsSetting/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Sums settings')\n        },\n        labourFactor: {\n          path: 'syspages/settings/labourFactor/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Labour factor')\n        },\n        pendingList: {\n          path: 'syspages/settings/pendingList/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Pending list')\n        },\n        overheadTemplates: {\n          path: 'syspages/settings/overheadTemplate/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Overhead templates')\n        },\n        workgangPositions: {\n          path: 'syspages/settings/workgangPositions/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Workgang positions')\n        },\n        workgangs: {\n          path: 'syspages/settings/workgangs/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Workgangs')\n        },\n        subcontractorList: {\n          path: 'syspages/settings/subcontracorList/main.jsp',\n          pageTitle: this.intl.t('shared.estimates.Subcontractor list')\n        },\n        // System\n        organization: {\n          path: 'syspages/system/sysdept/main.jsp',\n          pageTitle: this.intl.t('common.Company')\n        },\n        staff: {\n          path: 'syspages/system/sysuser/usermain.jsp',\n          pageTitle: this.intl.t('common.Staff')\n        },\n        role: {\n          path: 'syspages/system/sysrole/main.jsp',\n          pageTitle: this.intl.t('common.Role')\n        },\n        menu: {\n          path: 'syspages/system/sysnode/noderole.jsp',\n          pageTitle: this.intl.t('common.Menu')\n        },\n        trade: {\n          path: 'syspages/system/datajobtype/main.jsp',\n          pageTitle: this.intl.t('common.Trade')\n        },\n        messaging: {\n          path: 'syspages/system/sysworkmessage/main.jsp',\n          pageTitle: this.intl.t('common.Messaging')\n        },\n        reminders: {\n          path: 'syspages/system/sysworkmessagealrm/main.jsp',\n          pageTitle: this.intl.t('common.Reminders')\n        },\n        usage: {\n          path: 'syspages/system/datausage/main.jsp',\n          pageTitle: this.intl.t('common.Usage')\n        },\n        unit: {\n          path: 'syspages/system/dataunit/main.jsp',\n          pageTitle: this.intl.t('common.Unit')\n        },\n        subheader: {\n          path: 'syspages/system/datasubheader/main.jsp',\n          pageTitle: this.intl.t('common.Subheader')\n        },\n        quoteUploader: {\n          path: 'syspages/system/quoteuploader/main.jsp',\n          pageTitle: this.intl.t('entity.settings.estimates.embedded-page.Quote uploader')\n        }\n      });\n      _defineProperty(this, \"_cachedSession\", null);\n      // { entityId, timestamp, sessionId }\n      _defineProperty(this, \"getSessionId\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const sessionId = yield this.pricing.getSessionId();\n          return sessionId;\n        }\n      }), null, \"getSessionId\", null));\n    }\n    model(params) {\n      const {\n        page\n      } = params;\n      const {\n        path,\n        pageTitle\n      } = this.PAGES[page];\n      return {\n        path,\n        pageTitle,\n        sessionId: this.getSessionId.perform(),\n        isUnknown: !path\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"pricing\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/index\", [\"exports\", \"@ember/routing/route\", \"portal/mixins/menu-route\", \"@ember/service\"], function (_exports, _route, _menuRoute, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"portal/mixins/menu-route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default.extend(_menuRoute.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n    }\n    get defaultRoute() {\n      if (this.newFeatureFlags.includesFeatureFlags('userIsWorker')) return 'entity.settings.people.workers';\n      return 'entity.settings.profile';\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/integrations\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-changeset\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"ips\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _initializerDefineProperty(this, \"store\", _descriptor5, this);\n      _defineProperty(this, \"getItmSuppliers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const suppliers = [];\n          if (!this.newFeatureFlags.includesFeatureFlags('canUseItmInvoiceIntegration')) return suppliers;\n          const [eaccountsInvoiceIntegration] = this.sessionData.entity.hasMany('eaccountsInvoiceIntegration').value() || [];\n          const requestedSupplierIds = eaccountsInvoiceIntegration?.requests?.map(request => request.supplier) ?? [];\n          if (!requestedSupplierIds.length) {\n            return this.store.query('itm-supplier', {\n              sort: 'name'\n            });\n          }\n          return this.store.query('itm-supplier', {\n            filter: {\n              and: [{\n                field: '_id',\n                op: 'NOT_IN',\n                value: requestedSupplierIds\n              }]\n            },\n            sort: 'name'\n          });\n        }\n      }), null, \"getItmSuppliers\", null));\n      _defineProperty(this, \"getIpsConnection\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          if (!this.newFeatureFlags.includesFeatureFlags('entityCanUseIPS')) return;\n          const [ipsConnection] = yield this.store.query('ips-connection', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            }\n          });\n          if (ipsConnection) return ipsConnection;\n          return this.store.createRecord('ips-connection', {\n            entity: this.sessionData.entity\n          });\n        }\n      }), null, \"getIpsConnection\", null));\n    }\n    get defaultEntityFeatures() {\n      const features = [];\n      if (this.newFeatureFlags.includesFeatureFlags('canUsePayroll')) {\n        features.push({\n          key: 'canUseSmartPayroll',\n          label: this.intl.t('entity.settings.integrations.Enable Smartly integration'),\n          description: null,\n          regions: ['NZL']\n        });\n        features.push({\n          key: 'canUseKeypay',\n          label: this.intl.t('entity.settings.integrations.Enable KeyPay integration'),\n          description: null,\n          regions: ['NZL', 'AUS']\n        });\n        features.push({\n          key: 'canUseCrystalPayroll',\n          label: this.intl.t('entity.settings.integrations.Enable Crystal Payroll integration'),\n          description: null,\n          regions: ['NZL']\n        });\n      }\n      return features.filter(f => f.regions.includes(this.sessionData.entity.region));\n    }\n    getFeaturePermissionsChangeset(entityAttributes) {\n      const entityAttributesChangeSet = {};\n      this.defaultEntityFeatures.forEach(f => {\n        entityAttributesChangeSet[f.key] = entityAttributes.includes(f.key);\n      });\n      return (0, _emberChangeset.Changeset)(entityAttributesChangeSet);\n    }\n    async beforeModel() {\n      try {\n        await this.ips.getUsage();\n      } catch {\n        // without usage IPS is not ready, so nothing of its UI renders\n      }\n    }\n    model() {\n      const entity = this.sessionData.entity;\n      const entityAttributes = entity.entityLinkedAttributes;\n      this.getItmSuppliers.perform();\n      this.getIpsConnection.perform();\n      return {\n        entity,\n        defaultEntityFeatures: this.defaultEntityFeatures,\n        featurePermissionsChangeset: this.getFeaturePermissionsChangeset(entityAttributes),\n        itmSuppliers: this.getItmSuppliers,\n        ipsConnection: this.getIpsConnection\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"ips\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/clients/client\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\", \"portal/utils/email-validator\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"validateFirstName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 1 || this.intl.t('validation.firstName');\n      });\n      _defineProperty(this, \"validateLastName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 0 || this.intl.t('validation.lastName');\n      });\n      _defineProperty(this, \"validateEmail\", (newValue, oldValue) => {\n        const email = (newValue ?? oldValue) || '';\n        return (0, _emailValidator.default)(email) || this.intl.t('validation.Email');\n      });\n      _defineProperty(this, \"userValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'firstName':\n            return this.validateFirstName(newValue, oldValue);\n          case 'lastName':\n            return this.validateLastName(newValue, oldValue);\n          case 'email':\n            return this.validateEmail(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"userValidationMap\", {\n        firstName: this.validateFirstName,\n        lastName: this.validateLastName,\n        email: this.validateEmail\n      });\n      _defineProperty(this, \"getUserChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user) {\n          yield user.last;\n          return (0, _emberChangeset.Changeset)(user.last.value, this.userValidator, this.userValidationMap);\n        }\n      }), null, \"getUserChangeset\", null));\n      _defineProperty(this, \"getUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          if (id === 'new') return this.store.createRecord('user', {\n            firstName: '',\n            lastName: '',\n            email: '',\n            phoneNumber: ''\n          });\n          const user = yield this.store.findRecord('user', id);\n\n          // fetch user's attributes\n          // TODO this should be possible with an includes but our API doesn't work properly\n          yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n            user: id,\n            entity: this.sessionData.entity.id\n          }), this.store.simpleQuery('user-project-attribute', {\n            user: id,\n            entity: this.sessionData.entity.id\n          })]);\n          return user;\n        }\n      }), null, \"getUser\", null));\n    }\n    model({\n      client_id: id\n    }) {\n      this.getUser.perform(id);\n      this.getUserChangeset.perform(this.getUser);\n      return {\n        user: this.getUser,\n        userChangeset: this.getUserChangeset,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/clients/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"getClients\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const userEntityAttributesFilter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'user',\n              op: 'NE',\n              value: this.sessionData.user.id\n            }]\n          };\n\n          //fetch all user attributes to avoid id query\n          yield this.store.query('user-attribute', {});\n\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const userAttributes = yield this.store.query('user-entity-attribute', {\n            filter: userEntityAttributesFilter,\n            include: 'user'\n          });\n          if (!userAttributes.length) return [];\n          const users = [...new Set(userAttributes.map(ua => ua.belongsTo('user').value()))];\n          const clients = users.filter(u => u.includesClaimsAboutEntity(this.sessionData.entity.id, 'hasClientRole', 'canViewEntity')).sortBy('firstName');\n          return clients;\n        }\n      }), null, \"getClients\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      this.getClients.perform();\n      return {\n        clients: this.getClients,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/index\", [\"exports\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/routing/route\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor, this);\n      _initializerDefineProperty(this, \"router\", _descriptor2, this);\n    }\n    async beforeModel() {\n      // we can default to this route if user has access to users\n      if (this.newFeatureFlags.includesFeatureFlags('canUseUsers')) {\n        this.router.transitionTo('entity.settings.people.users');\n      } else if (this.newFeatureFlags.includesFeatureFlags('canUseWorkers')) {\n        this.router.transitionTo('entity.settings.people.workers');\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/subcontractors/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"getSubcontractors\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const userEntityAttributesFilter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'user',\n              op: 'NE',\n              value: this.sessionData.user.id\n            }]\n          };\n\n          //fetch all user attributes to avoid id query\n          yield this.store.query('user-attribute', {});\n\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const userAttributes = yield this.store.query('user-entity-attribute', {\n            filter: userEntityAttributesFilter,\n            include: 'user'\n          });\n          if (!userAttributes.length) return [];\n          const users = [...new Set(userAttributes.map(ua => ua.belongsTo('user').value()))];\n          const subcontractors = users.filter(u => u.includesClaimsAboutEntity(this.sessionData.entity.id, 'hasSubcontractorRole', 'canViewEntity')).sortBy('firstName');\n          return subcontractors;\n        }\n      }), null, \"getSubcontractors\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      this.getSubcontractors.perform();\n      return {\n        subcontractors: this.getSubcontractors,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/subcontractors/subcontractor\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\", \"portal/utils/email-validator\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.managerAttributes = _exports.default = _exports.canViewWorkersAttributes = _exports.canViewTimesheetsAttributes = _exports.canViewTasksAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewProjectsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewPayrollReportsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canViewBillsAttributes = _exports.canUseReportBuilderReportAttributes = _exports.canManageWorkersAttributes = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManageProjectsAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageIntegrationsAttributes = _exports.canManageHealthAndSafetyAttributes = _exports.canManageFileStorageAttributes = _exports.canManageEstimatesAttributes = _exports.canManageEstimateSettingsAttributes = _exports.canManageBudgetsAttributes = _exports.canManageBillsAttributes = _exports.canCreateHealthAndSafetyAttributes = _exports.administratorAttributes = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"ember-changeset\",0,\"portal/utils/email-validator\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const canManageEstimatesAttributes = _exports.canManageEstimatesAttributes = ['canManageEstimates'];\n  const canManageEstimateSettingsAttributes = _exports.canManageEstimateSettingsAttributes = ['canManageEstimatesSettings'];\n  const canViewBillsAttributes = _exports.canViewBillsAttributes = ['canViewBills'];\n  const canManageBillsAttributes = _exports.canManageBillsAttributes = ['canManageBills'];\n  const canViewTimesheetsAttributes = _exports.canViewTimesheetsAttributes = ['canViewTimesheets', 'canViewNotes'];\n  const canManageTimesheetsAttributes = _exports.canManageTimesheetsAttributes = ['canManageTimesheets', 'canManageNotes'];\n  const canViewProjectsAttributes = _exports.canViewProjectsAttributes = ['canViewProjects'];\n  const canManageProjectsAttributes = _exports.canManageProjectsAttributes = ['canManageProjects'];\n  const canViewTasksAttributes = _exports.canViewTasksAttributes = ['canViewTasks'];\n  const canManageTasksAttributes = _exports.canManageTasksAttributes = ['canManageTasks'];\n  const canViewBudgetsAttributes = _exports.canViewBudgetsAttributes = ['canViewProjectBudgetVersions', 'canViewTaskBudgets'];\n  const canManageBudgetsAttributes = _exports.canManageBudgetsAttributes = ['canManageProjectBudgetVersions', 'canManageTaskBudgets'];\n  const canViewQuotesAttributes = _exports.canViewQuotesAttributes = ['canViewProjectQuoteVersions', 'canViewTaskQuotes'];\n  const canViewProgressAttributes = _exports.canViewProgressAttributes = ['canViewProjectProgressVersions', 'canViewTaskProgress'];\n  const canManageProgressAttributes = _exports.canManageProgressAttributes = ['canManageProjectProgressVersions', 'canManageTaskProgress'];\n  const canManageQuotesAttributes = _exports.canManageQuotesAttributes = ['canManageProjectQuoteVersions', 'canManageTaskQuotes'];\n  const canViewFileStorageAttributes = _exports.canViewFileStorageAttributes = ['canViewFileStorage'];\n  const canManageFileStorageAttributes = _exports.canManageFileStorageAttributes = ['canManageFileStorage'];\n  const canViewProductsAttributes = _exports.canViewProductsAttributes = ['canViewProducts'];\n  const canManageProductsAttributes = _exports.canManageProductsAttributes = ['canManageProducts'];\n  const canViewWorkersAttributes = _exports.canViewWorkersAttributes = ['canViewWorkers'];\n  const canManageWorkersAttributes = _exports.canManageWorkersAttributes = ['canManageWorkers'];\n  const canViewPayrollReportsAttributes = _exports.canViewPayrollReportsAttributes = ['canViewPayrollReports'];\n  const canViewBudgetReportsAttributes = _exports.canViewBudgetReportsAttributes = ['canViewBudgetFinancialReports'];\n  const canViewBudgetLabourHourReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = ['canViewBudgetLabourHourReports'];\n  const canViewQuoteReportsAttributes = _exports.canViewQuoteReportsAttributes = ['canViewQuoteReports'];\n  const canViewCostReportsAttributes = _exports.canViewCostReportsAttributes = ['canViewCostFinancialReports'];\n  const canViewCostLabourHourReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = ['canViewCostLabourHourReports'];\n  const canViewChargeupReportsAttributes = _exports.canViewChargeupReportsAttributes = ['canViewChargeupReports'];\n  const canViewProgressReportsAttributes = _exports.canViewProgressReportsAttributes = ['canViewProgressReports'];\n  const canViewSchedulingReportsAttributes = _exports.canViewSchedulingReportsAttributes = ['canViewSchedulingReports'];\n  const canManageSchedulingReportsAttributes = _exports.canManageSchedulingReportsAttributes = ['canManageProjectSchedulingVersions', 'canManageTaskScheduling', 'canManageSchedulingReports', 'canManageProgressReports'];\n  const canUseReportBuilderReportAttributes = _exports.canUseReportBuilderReportAttributes = ['canUseReportBuilderReport'];\n  const canCreateHealthAndSafetyAttributes = _exports.canCreateHealthAndSafetyAttributes = ['canCreateHealthAndSafety'];\n  const canManageHealthAndSafetyAttributes = _exports.canManageHealthAndSafetyAttributes = ['canManageHealthAndSafety'];\n  const canManageIntegrationsAttributes = _exports.canManageIntegrationsAttributes = ['canManageIntegrations'];\n  const managerAttributes = _exports.managerAttributes = [...canManageEstimatesAttributes, ...canManageEstimateSettingsAttributes, ...canViewBillsAttributes, ...canManageBillsAttributes, ...canViewTimesheetsAttributes, ...canManageTimesheetsAttributes, ...canViewProjectsAttributes, ...canManageProjectsAttributes, ...canViewTasksAttributes, ...canManageTasksAttributes, ...canViewBudgetsAttributes, ...canManageBudgetsAttributes, ...canViewQuotesAttributes, ...canViewProgressAttributes, ...canManageProgressAttributes, ...canManageQuotesAttributes, ...canViewProductsAttributes, ...canManageProductsAttributes, ...canViewFileStorageAttributes, ...canManageFileStorageAttributes, ...canViewWorkersAttributes, ...canManageWorkersAttributes, ...canViewPayrollReportsAttributes, ...canViewBudgetReportsAttributes, ...canViewBudgetLabourHourReportsAttributes, ...canViewQuoteReportsAttributes, ...canViewCostReportsAttributes, ...canViewCostLabourHourReportsAttributes, ...canViewChargeupReportsAttributes, ...canViewProgressReportsAttributes, ...canViewSchedulingReportsAttributes, ...canManageSchedulingReportsAttributes, ...canUseReportBuilderReportAttributes, ...canCreateHealthAndSafetyAttributes, ...canManageHealthAndSafetyAttributes, ...canManageIntegrationsAttributes, 'canManageUsers', 'canManageBudgetReports', 'canManageInvoicingReports', 'canManageQuoteReports', 'canManagePayrollReports', 'canManageTaskScheduling', 'canManageCostReports', 'canManageSuppliers', 'canManageChargeupReports', 'canManageProjectSchedulingVersions'];\n  const administratorAttributes = _exports.administratorAttributes = ['canManageEntity'];\n  const canViewInvoicingReportsAttributes = _exports.canViewInvoicingReportsAttributes = ['canViewInvoicingReports'];\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"validateFirstName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 1 || this.intl.t('validation.firstName');\n      });\n      _defineProperty(this, \"validateLastName\", (newValue, oldValue) => {\n        const name = (newValue ?? oldValue) || '';\n        return name.length > 0 || this.intl.t('validation.lastName');\n      });\n      _defineProperty(this, \"validateEmail\", (newValue, oldValue) => {\n        const email = (newValue ?? oldValue) || '';\n        return (0, _emailValidator.default)(email) || this.intl.t('validation.Email');\n      });\n      _defineProperty(this, \"userValidator\", ({\n        key,\n        newValue,\n        oldValue\n      }) => {\n        switch (key) {\n          case 'firstName':\n            return this.validateFirstName(newValue, oldValue);\n          case 'lastName':\n            return this.validateLastName(newValue, oldValue);\n          case 'email':\n            return this.validateEmail(newValue, oldValue);\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"userValidationMap\", {\n        firstName: this.validateFirstName,\n        lastName: this.validateLastName,\n        email: this.validateEmail\n      });\n      _defineProperty(this, \"validateIsCompanyAdministrator\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateCanManageEverything\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"validateWorkers\", (_newValue, _oldValue) => {\n        return true;\n      });\n      _defineProperty(this, \"permissionsValidator\", ({\n        key,\n        newValue,\n        oldValue,\n        changes: _changes,\n        content: _content\n      }) => {\n        switch (key) {\n          case 'isCompanyAdministrator':\n            return this.validateIsCompanyAdministrator(newValue, oldValue);\n          case 'canManageEverything':\n            return this.validateCanManageEverything(newValue, oldValue);\n          case 'workers':\n            return this.validateWorkers(newValue, oldValue);\n          case 'canViewBills':\n            return true;\n          case 'canManageBills':\n            return true;\n          case 'canViewTimesheets':\n            return true;\n          case 'canManageTimesheets':\n            return true;\n          case 'canViewProjects':\n            return true;\n          case 'canManageProjects':\n            return true;\n          case 'canViewTasks':\n            return true;\n          case 'canManageTasks':\n            return true;\n          case 'canViewBudgets':\n            return true;\n          case 'canManageBudgets':\n            return true;\n          case 'canViewProgress':\n            return true;\n          case 'canManageProgress':\n            return true;\n          case 'canViewQuotes':\n            return true;\n          case 'canManageQuotes':\n            return true;\n          case 'canViewProducts':\n            return true;\n          case 'canManageProducts':\n            return true;\n          case 'canViewFileStorage':\n            return true;\n          case 'canManageFileStorage':\n            return true;\n          case 'canViewWorkers':\n            return true;\n          case 'canManageWorkers':\n            return true;\n          case 'canViewPayrollReports':\n            return true;\n          case 'canViewBudgetFinancialReports':\n            return true;\n          case 'canViewBudgetLabourHourReports':\n            return true;\n          case 'canViewQuoteReports':\n            return true;\n          case 'canViewCostFinancialReports':\n            return true;\n          case 'canViewCostLabourHourReports':\n            return true;\n          case 'canViewChargeupReports':\n            return true;\n          case 'canViewProgressReports':\n            return true;\n          case 'canViewSchedulingReports':\n            return true;\n          case 'canManageSchedulingReports':\n            return true;\n          case 'canEstimate':\n            return true;\n          case 'canManageEstimateSettings':\n            return true;\n          case 'canUseReportBuilderReport':\n            return true;\n          case 'canCreateHealthAndSafety':\n            return true;\n          case 'canManageHealthAndSafety':\n            return true;\n          case 'canManageIntegrations':\n            return true;\n          case 'canViewInvoicingReports':\n            return true;\n          default:\n            break;\n        }\n      });\n      _defineProperty(this, \"permissionsValidationMap\", {\n        isCompanyAdministrator: this.validateIsCompanyAdministrator,\n        canManageEverything: this.validateCanManageEverything,\n        workers: this.validateWorkers,\n        canViewBills: () => null,\n        canManageBills: () => null,\n        canViewTimesheets: () => null,\n        canManageTimesheets: () => null,\n        canViewProjects: () => null,\n        canManageProjects: () => null,\n        canViewTasks: () => null,\n        canManageTasks: () => null,\n        canViewBudgets: () => null,\n        canManageBudgets: () => null,\n        canViewProgress: () => null,\n        canManageProgress: () => null,\n        canViewQuotes: () => null,\n        canManageQuotes: () => null,\n        canViewProducts: () => null,\n        canManageProducts: () => null,\n        canViewFileStorage: () => null,\n        canManageFileStorage: () => null,\n        canViewWorkers: () => null,\n        canManageWorkers: () => null,\n        canViewPayrollReports: () => null,\n        canViewBudgetFinancialReports: () => null,\n        canViewBudgetLabourHourReports: () => null,\n        canViewQuoteReports: () => null,\n        canViewCostFinancialReports: () => null,\n        canViewCostLabourHourReports: () => null,\n        canViewChargeupReports: () => null,\n        canViewProgressReports: () => null,\n        canViewSchedulingReports: () => null,\n        canManageSchedulingReports: () => null,\n        canEstimate: () => null,\n        canManageEstimateSettings: () => null,\n        canUseReportBuilderReport: () => null,\n        canCreateHealthAndSafety: () => null,\n        canManageHealthAndSafety: () => null,\n        canManageIntegrations: () => null,\n        canViewInvoicingReports: () => null\n      });\n      _defineProperty(this, \"getUserChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user) {\n          yield user.last;\n          return (0, _emberChangeset.Changeset)(user.last.value, this.userValidator, this.userValidationMap);\n        }\n      }), null, \"getUserChangeset\", null));\n      _defineProperty(this, \"getPermissionsChangeset\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (user, workers) {\n          yield user.last;\n          yield workers.last;\n          const usersWorkers = workers.last.value.toArray().filter(w => user.last.value.includesClaimsAboutWorker(w.id, 'canManageTimesheets'));\n          return (0, _emberChangeset.Changeset)({\n            isCompanyAdministrator: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...administratorAttributes),\n            canManageEverything: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...managerAttributes),\n            workers: usersWorkers,\n            canViewBills: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBillsAttributes),\n            canManageBills: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageBillsAttributes),\n            canViewTimesheets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewTimesheetsAttributes),\n            canManageTimesheets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageTimesheetsAttributes),\n            canViewProjects: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProjectsAttributes),\n            canManageProjects: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageProjectsAttributes),\n            canViewTasks: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewTasksAttributes),\n            canManageTasks: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageTasksAttributes),\n            canViewBudgets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBudgetsAttributes),\n            canManageBudgets: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageBudgetsAttributes),\n            canViewQuotes: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewQuotesAttributes),\n            canManageQuotes: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageQuotesAttributes),\n            canViewProgress: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProgressAttributes),\n            canManageProgress: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageProgressAttributes),\n            canViewProducts: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProductsAttributes),\n            canManageProducts: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageProductsAttributes),\n            canViewFileStorage: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewFileStorageAttributes),\n            canManageFileStorage: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageFileStorageAttributes),\n            canViewWorkers: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewWorkersAttributes),\n            canManageWorkers: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageWorkersAttributes),\n            canViewPayrollReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewPayrollReportsAttributes),\n            canViewBudgetFinancialReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBudgetReportsAttributes),\n            canViewBudgetLabourHourReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewBudgetLabourHourReportsAttributes),\n            canViewQuoteReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewQuoteReportsAttributes),\n            canViewCostFinancialReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewCostReportsAttributes),\n            canViewCostLabourHourReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewCostLabourHourReportsAttributes),\n            canViewChargeupReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewChargeupReportsAttributes),\n            canViewProgressReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewProgressReportsAttributes),\n            canViewSchedulingReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewSchedulingReportsAttributes),\n            canManageSchedulingReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageSchedulingReportsAttributes),\n            canEstimate: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageEstimatesAttributes),\n            canManageEstimateSettings: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageEstimateSettingsAttributes),\n            canUseReportBuilderReport: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canUseReportBuilderReportAttributes),\n            canCreateHealthAndSafety: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canCreateHealthAndSafetyAttributes),\n            canManageHealthAndSafety: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageHealthAndSafetyAttributes),\n            canManageIntegrations: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canManageIntegrationsAttributes),\n            canViewInvoicingReports: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canViewInvoicingReportsAttributes)\n          }, this.permissionsValidator, this.permissionsValidationMap);\n        }\n      }), null, \"getPermissionsChangeset\", null));\n      _defineProperty(this, \"getUser\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (id) {\n          if (id === 'new') return this.store.createRecord('user', {\n            firstName: '',\n            lastName: '',\n            email: '',\n            phoneNumber: ''\n          });\n          const user = yield this.store.findRecord('user', id);\n\n          // fetch user's attributes\n          // TODO this should be possible with an includes but our API doesn't work properly\n          yield Promise.all([this.store.simpleQuery('user-entity-attribute', {\n            user: id,\n            entity: this.sessionData.entity.id\n          }), this.store.simpleQuery('user-worker-attribute', {\n            user: id,\n            entity: this.sessionData.entity.id\n          })]);\n          return user;\n        }\n      }), null, \"getUser\", null));\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const workers = yield this.store.simpleQuery('worker', {\n            entity: this.sessionData.entity.id\n          });\n          return workers;\n        }\n      }), null, \"getWorkers\", null));\n    }\n    model({\n      subcontractor_id: id\n    }) {\n      this.getUser.perform(id);\n      this.getWorkers.perform();\n      this.getUserChangeset.perform(this.getUser);\n      this.getPermissionsChangeset.perform(this.getUser, this.getWorkers);\n      return {\n        user: this.getUser,\n        userChangeset: this.getUserChangeset,\n        permissionsChangeset: this.getPermissionsChangeset,\n        workers: this.getWorkers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/users/index\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\"], function (_exports, _asyncArrowRuntime, _route, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/routing/route\",0,\"ember-concurrency\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _route.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n      _defineProperty(this, \"basePath\", 'entity.settings.people');\n      _defineProperty(this, \"getUsers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const userEntityAttributesFilter = {\n            and: [{\n              field: 'entity',\n              op: 'EQ',\n              value: this.sessionData.entity.id\n            }, {\n              field: 'user',\n              op: 'NE',\n              value: this.sessionData.user.id\n            }]\n          };\n\n          //fetch all user attributes to avoid id query\n          yield this.store.query('user-attribute', {});\n\n          // find all the users that have access to view the entity and fetch them\n          // the access control will make sure the correct users are returned\n          const userAttributes = yield this.store.query('user-entity-attribute', {\n            filter: userEntityAttributesFilter,\n            include: 'user'\n          });\n          const users = [...new Set(userAttributes.map(ua => ua.belongsTo('user').value()))];\n          return users.filter(u => u.excludesClaimsAboutEntity(this.sessionData.entity.id, 'hasClientRole', 'hasSubcontractorRole')).sortBy('firstName');\n        }\n      }), null, \"getUsers\", null));\n      _defineProperty(this, \"getWorkers\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          const workers = yield this.store.query('worker', {\n            filter: {\n              and: [{\n                field: 'entity',\n                op: 'EQ',\n                value: this.sessionData.entity.id\n              }]\n            }\n          });\n          return workers;\n        }\n      }), null, \"getWorkers\", null));\n    }\n    setupController(controller) {\n      super.setupController(...arguments);\n      controller.searchString = '';\n    }\n    model() {\n      this.getUsers.perform();\n      this.getWorkers.perform();\n      return {\n        users: this.getUsers,\n        workers: this.getWorkers,\n        basePath: this.basePath\n      };\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/routes/entity/settings/people/users/user\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/routing/route\", \"@ember/service\", \"ember-changeset\", \"portal/utils/email-validator\"], function (_exports, _asyncArrowRuntime, _route, _service, _emberChangeset, _emailValidator) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.managerAttributes = _exports.default = _exports.canViewWorkersAttributes = _exports.canViewUsersAttributes = _exports.canViewTimesheetsAttributes = _exports.canViewTasksAttributes = _exports.canViewStagePaymentsAttributes = _exports.canViewSchedulingReportsAttributes = _exports.canViewQuotesAttributes = _exports.canViewQuoteReportsAttributes = _exports.canViewPurchaseOrdersAttributes = _exports.canViewProjectsAttributes = _exports.canViewProgressReportsAttributes = _exports.canViewProgressAttributes = _exports.canViewProductsAttributes = _exports.canViewPayrollReportsAttributes = _exports.canViewInvoicingReportsAttributes = _exports.canViewInvoicesAttributes = _exports.canViewFinancialReportingAttributes = _exports.canViewFileStorageAttributes = _exports.canViewCostReportsAttributes = _exports.canViewCostLabourHourReportsAttributes = _exports.canViewChargeupReportsAttributes = _exports.canViewBudgetsAttributes = _exports.canViewBudgetReportsAttributes = _exports.canViewBudgetLabourHourReportsAttributes = _exports.canViewBillsAttributes = _exports.canViewAccessReportsAttributes = _exports.canUseReportBuilderReportAttributes = _exports.canManageWorkersAttributes = _exports.canManageUsersAttributes = _exports.canManageTimesheetsAttributes = _exports.canManageTasksAttributes = _exports.canManageStagePaymentsAttributes = _exports.canManageSchedulingReportsAttributes = _exports.canManageQuotesAttributes = _exports.canManagePurchaseOrdersAttributes = _exports.canManageProjectsAttributes = _exports.canManageProgressAttributes = _exports.canManageProductsAttributes = _exports.canManageInvoicesAttributes = _exports.canManageIntegrationsAttributes = _exports.canManageHealthAndSafetyAttributes = _exports.canManageFinancialReportingAttributes = _exports.canManageFileStorageAttributes = _exports.canManageEstimatesAttributes = _exports.canManageEstimateSettingsAttributes = _exports.canManageBudgetsAttributes = _exports.canManageBillsAttributes = _exports.canCreateHealthAndSafetyAttributes = _exports.canApprovePurchaseOrdersAttributes = _exports.canApproveInvoicesAttributes = _exports.canApproveBillsAttributes = _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 canApproveBillsAttributes = _exports.canApproveBillsAttributes = ['canApproveBills'];\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, ...canApproveBillsAttributes, ...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 'canApproveBills':\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        canApproveBills: () => 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            canApproveBills: user.last.value.includesClaimsAboutEntity(this.sessionData.entity.id, ...canApproveBillsAttributes),\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      (true && !(typeof cacheName === 'string') && (0, _debug.assert)('A cache name is required.', typeof cacheName === 'string'));\n      (true && !(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      (true && !(typeof cacheName === 'string') && (0, _debug.assert)('A cache name is required.', typeof cacheName === 'string'));\n      (true && !(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      (true && !(typeof cacheName === 'string') && (0, _debug.assert)('A cache name is required.', typeof cacheName === 'string'));\n      const cache = (0, _object.get)(this, '_cache.' + cacheName);\n      if (!cache) {\n        return false;\n      }\n      if ((0, _utils.isEmpty)(key)) {\n        (0, _object.set)(this, `_cache.${cacheName}`, []);\n        return true;\n      }\n      const record = cache.find(obj => _lodash.default.isEqual((0, _object.get)(obj, 'key'), key));\n      if (record) {\n        cache.removeObject(record);\n      }\n      return Boolean(record);\n    }\n  });\n});","define(\"portal/services/chargebee\", [\"exports\", \"jquery\", \"portal/config/environment\", \"@ember/service\", \"@glimmer/tracking\", \"lodash\"], function (_exports, _jquery, _environment, _service, _tracking, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  /* global Chargebee */\n  0; //eaimeta@70e063a35619d71f0,\"jquery\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"lodash\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_dec = (0, _service.inject)(), _dec2 = (0, _service.inject)(), _dec3 = (0, _service.inject)(), _dec4 = (0, _service.inject)(), _class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor4, this);\n      _initializerDefineProperty(this, \"subscriptionIsChanging\", _descriptor5, this);\n      _defineProperty(this, \"subscriptionChanging\", null);\n    }\n    /**\n     * Says whether the Chargebee integration is ready to use, which needs the entity to\n     * have a Chargebee customer.\n     */\n    get ready() {\n      return Boolean(this.sessionData.entity?.cbCustomerId);\n    }\n    async open(entityId = this.sessionData.entity.id) {\n      if (!this.ready) return;\n      const currentEntityAttributes = this.sessionData.entity.hasMany('attributes').ids();\n      this.subscriptionChanging = null;\n      const portalSession = await getChargebeePortalSession(this.session.data.authenticated.access_token, entityId);\n      const instance = Chargebee.init({\n        site: portalSession.site\n      });\n      instance.logout();\n      instance.setPortalSession(portalSession);\n      const portal = instance.createChargebeePortal();\n      portal.open({\n        // this has the disadvantage of possibly reloading the page while the subscription window is still open\n        // however, this process generally takes around 10-15 seconds and reloading the window isn't a massive issue\n        close: this.handleClose.bind(this),\n        subscriptionChanged: () => {\n          this.subscriptionChanging = handleSubscriptionChange(this.sessionData.entity, new Date(), currentEntityAttributes);\n        }\n      });\n    }\n    async openIpsAddonCheckout(entityId = this.sessionData.entity.id) {\n      if (!this.ready) return;\n      const currentEntityAttributes = this.sessionData.entity.hasMany('attributes').ids();\n      this.subscriptionChanging = null;\n      const hostedPage = await this.portalApiV2.authPost('/chargebee/ips-addon/checkout', {\n        entity: entityId\n      });\n      const instance = Chargebee.init({\n        site: hostedPage.site\n      });\n      instance.logout();\n      instance.openCheckout({\n        hostedPage: () => Promise.resolve(hostedPage),\n        success: () => {\n          this.subscriptionChanging = handleSubscriptionChange(this.sessionData.entity, new Date(), currentEntityAttributes);\n        },\n        close: () => {\n          // checkout was cancelled without purchasing, nothing to apply\n          if (!this.subscriptionChanging) return;\n          this.handleClose();\n        }\n      });\n    }\n    async handleClose() {\n      try {\n        this.subscriptionIsChanging = true;\n        if (this.subscriptionChanging) {\n          await this.subscriptionChanging;\n        }\n      } finally {\n        // considering the large number of computed properties this change effects\n        // reloading the entire page is easier and safer\n        await new Promise(resolve => setTimeout(resolve, 10000));\n        location.reload();\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"subscriptionIsChanging\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class2);\n  async function handleSubscriptionChange(entity, subscriptionChangedMoment, currentEntityAttributes, waitTime = 500, attempts = 0) {\n    // if we've been trying for more than a minute resolve the promise\n    if (attempts * waitTime > 10000) return;\n    await entity.reload();\n    const latestEntityAttributes = entity.hasMany('attributes').ids();\n\n    // an upgrade adds attributes where a downgrade removes them\n    if (_lodash.default.xor(currentEntityAttributes, latestEntityAttributes).length > 0) return;\n\n    // if the entity hasn't been updated, wait for the timeout and try again\n    await new Promise(resolve => setTimeout(() => resolve(), waitTime));\n    return handleSubscriptionChange(entity, subscriptionChangedMoment, currentEntityAttributes, waitTime, attempts + 1);\n  }\n  function getChargebeePortalSession(accessToken, entityId) {\n    return new Promise((resolve, reject) => {\n      _jquery.default.ajax({\n        method: 'POST',\n        url: `${_environment.default.urls.api}${_environment.default.urls.apiV2Path}/chargebee/get-customer-portal-session`,\n        headers: {\n          Authorization: `Bearer ${accessToken}`\n        },\n        contentType: 'application/json',\n        accepts: 'application/json',\n        data: JSON.stringify({\n          entity: entityId\n        })\n      }).then(resolve, reject);\n    });\n  }\n});","define(\"portal/services/cookies\", [\"exports\", \"ember-cookies/services/cookies\"], function (_exports, _cookies) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _cookies.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cookies/services/cookies\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/dialog\", [\"exports\", \"@ember/service\", \"html-js-confirm\"], function (_exports, _service, _htmlJsConfirm) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"html-js-confirm\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // WARNING:\n  // Never use this directly. It is intended for the \"builda-price-client-addon\".\n  let _class = _exports.default = (_dec = (0, _service.inject)('notifications'), _class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_notifications\", _descriptor, this);\n      _defineProperty(this, \"notifications\", this._notifications);\n      _defineProperty(this, \"confirm\", _htmlJsConfirm.default);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"_notifications\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/ember-elsewhere\", [\"exports\", \"ember-elsewhere/services/ember-elsewhere\"], function (_exports, _emberElsewhere) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _emberElsewhere.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-elsewhere/services/ember-elsewhere\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/engine-data\", [\"exports\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionId\", _descriptor, this);\n      _initializerDefineProperty(this, \"jobId\", _descriptor2, this);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"jobId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class2);\n});","define(\"portal/services/financial-portal-period-selector\", [\"exports\", \"@ember/service\", \"@ember/object/evented\", \"@glimmer/tracking\", \"moment\"], function (_exports, _service, _evented, _tracking, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object/evented\",0,\"@glimmer/tracking\",0,\"moment\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default.extend(_evented.default) {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"_period\", _descriptor, this);\n    }\n    get period() {\n      return this._period;\n    }\n    set period(value) {\n      if (this._period !== value) {\n        this._period = value;\n        // emit the signal for the route to intercept\n        this.trigger('periodChanged');\n      }\n    }\n    get date() {\n      return (0, _moment.default)(this.period, 'YYYY-MM').endOf('month').toDate();\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"_period\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return (0, _moment.default)().subtract(1, 'month').format('YYYY-MM');\n    }\n  }), _class2);\n});","define(\"portal/services/help-center\", [\"exports\", \"@ember/service\", \"@ember/object\", \"portal/config/environment\"], function (_exports, _service, _object, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  /* global zE */\n  var _default = _exports.default = _service.default.extend({\n    session: (0, _service.inject)(),\n    sessionData: (0, _service.inject)(),\n    helpCenterInitialized: false,\n    helpCenterActive: false,\n    labels: [],\n    activateHelpCenter: (0, _object.observer)('session.data.authenticated', 'helpCenterActive', function () {\n      const initialized = (0, _object.get)(this, 'helpCenterInitialized');\n      if (initialized) return;\n      const active = (0, _object.get)(this, 'helpCenterActive');\n      const loggedIn = (0, _object.get)(this, 'session.data.authenticated');\n      if (loggedIn && active) this.initializeHelpCenter();\n    }),\n    initializeHelpCenter() {\n      const user = (0, _object.get)(this, 'sessionData.user');\n      if (!user) return;\n      // Nothing to support against a fake server, and the widget would sit in\n      // the corner of every screenshot and product shot recorded on Mirage.\n      if (_environment.default.environment === 'test' || _environment.default['ember-cli-mirage']?.enabled) return;\n      const accessToken = (0, _object.get)(this, 'session.data.authenticated.access_token');\n      if (!accessToken || (0, _object.get)(this, 'helpCenterInitialized')) return;\n\n      /* eslint-disable */\n      // Start of buildaprice Zendesk Widget script\n      window.zEmbed || function (e, t) {\n        var n,\n          o,\n          d,\n          i,\n          s,\n          a = [],\n          r = document.createElement(\"iframe\");\n        window.zEmbed = function () {\n          a.push(arguments);\n        }, window.zE = window.zE || window.zEmbed, r.src = \"javascript:false\", r.title = \"\", r.role = \"presentation\", (r.frameElement || r).style.cssText = \"display: none\", d = document.getElementsByTagName(\"script\"), d = d[d.length - 1], d.parentNode.insertBefore(r, d), i = r.contentWindow, s = i.document;\n        try {\n          o = s;\n        } catch (e) {\n          n = document.domain, r.src = 'javascript:var d=document.open();d.domain=\"' + n + '\";void(0);', o = s;\n        }\n        o.open()._l = function () {\n          var e = this.createElement(\"script\");\n          n && (this.domain = n), e.id = \"js-iframe-async\", e.src = \"https://assets.zendesk.com/embeddable_framework/main.js\", this.t = +new Date(), this.zendeskHost = \"buildaprice.zendesk.com\", this.zEQueue = a, this.body.appendChild(e);\n        }, o.write('<body onload=\"document._l();\">'), o.close();\n      }();\n      // End of buildaprice Zendesk Widget script\n      /* eslint-enable */\n\n      (0, _object.set)(this, 'helpCenterInitialized', true);\n      const labels = (0, _object.get)(this, 'labels');\n      if (labels.length) this.setLabels(...labels);\n      if ((0, _object.get)(this, 'helpCenterActive')) this.showHelpCenter();\n      this.identify();\n    },\n    identify() {\n      const user = (0, _object.get)(this, 'sessionData.user');\n      const entity = (0, _object.get)(this, 'sessionData.entity');\n      if ((0, _object.get)(this, 'helpCenterInitialized')) {\n        if (zE.identify) {\n          zE.identify({\n            name: (0, _object.get)(user, 'fullName'),\n            email: (0, _object.get)(user, 'email'),\n            organisation: (0, _object.get)(entity, 'name')\n          });\n        } else {\n          zE(function () {\n            zE.identify({\n              name: (0, _object.get)(user, 'fullName'),\n              email: (0, _object.get)(user, 'email'),\n              organisation: (0, _object.get)(entity, 'name')\n            });\n          });\n        }\n      }\n    },\n    setLabels(...args) {\n      if ((0, _object.get)(this, 'helpCenterInitialized')) {\n        if (zE.setHelpCenterSuggestions) {\n          zE.setHelpCenterSuggestions({\n            labels: args\n          });\n        } else {\n          zE(function () {\n            zE.setHelpCenterSuggestions({\n              labels: args\n            });\n          });\n        }\n      }\n      (0, _object.set)(this, 'labels', args);\n    },\n    showHelpCenter() {\n      if ((0, _object.get)(this, 'helpCenterInitialized')) {\n        if (zE.show) {\n          zE.show();\n        } else {\n          zE(function () {\n            zE.show();\n          });\n        }\n      }\n      (0, _object.set)(this, 'helpCenterActive', true);\n    },\n    hideHelpCenter() {\n      if ((0, _object.get)(this, 'helpCenterInitialized')) {\n        if (zE.hide) {\n          zE.hide();\n        } else {\n          zE(function () {\n            zE.hide();\n          });\n        }\n      }\n      (0, _object.set)(this, 'helpCenterActive', false);\n    },\n    openHelpCenter() {\n      if ((0, _object.get)(this, 'helpCenterActive')) {\n        if (zE.activate) {\n          zE.activate();\n        } else {\n          zE(function () {\n            zE.activate();\n          });\n        }\n      }\n    }\n  });\n});","define(\"portal/services/intl\", [\"exports\", \"ember-intl/services/intl\"], function (_exports, _intl) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _intl.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-intl/services/intl\"eaimeta@70e063a35619d71f\n  /**\n   * Copyright 2015, Yahoo! Inc.\n   * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n   */\n});","define(\"portal/services/invoiced-costs\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _service, _object, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"confirmingDelete\", _descriptor, this);\n      _initializerDefineProperty(this, \"deleteTitle\", _descriptor2, this);\n      _initializerDefineProperty(this, \"deleteMessage\", _descriptor3, this);\n      _defineProperty(this, \"_resolveConfirmation\", void 0);\n      _defineProperty(this, \"requestDelete\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* ({\n          isInvoiced,\n          title,\n          message,\n          deleteCb\n        }) {\n          if (!isInvoiced) return deleteCb();\n          this.deleteTitle = title;\n          this.deleteMessage = message;\n          this.confirmingDelete = true;\n          const isConfirmed = yield new Promise(resolve => {\n            this._resolveConfirmation = resolve;\n          });\n          if (isConfirmed) yield deleteCb();\n        }\n      }), null, \"requestDelete\", null));\n    }\n    confirmDelete() {\n      this.confirmingDelete = false;\n      if (this._resolveConfirmation) {\n        this._resolveConfirmation(true);\n        this._resolveConfirmation = null;\n      }\n    }\n    dismissDelete() {\n      this.confirmingDelete = false;\n      if (this._resolveConfirmation) {\n        this._resolveConfirmation(false);\n        this._resolveConfirmation = null;\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"confirmingDelete\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"deleteTitle\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"deleteMessage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"confirmDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"confirmDelete\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"dismissDelete\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"dismissDelete\"), _class2.prototype), _class2);\n});","define(\"portal/services/ips\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _asyncArrowRuntime, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/service\",0,\"@ember/service\",0,\"ember-concurrency\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  function attachmentToFile(attachment) {\n    const binary = atob(attachment.data);\n    const bytes = Uint8Array.from(binary, char => char.charCodeAt(0));\n    return new File([bytes], attachment.filename, {\n      type: attachment.fileType\n    });\n  }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor3, this);\n      _initializerDefineProperty(this, \"portalApiV2\", _descriptor4, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor5, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor6, this);\n      // the meter reads this, so a refused upload can correct it in place\n      _initializerDefineProperty(this, \"latestUsage\", _descriptor7, this);\n      _initializerDefineProperty(this, \"dismissedAlert\", _descriptor8, this);\n      _defineProperty(this, \"uploadPdf\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* ({\n          attachments = [],\n          validationErrors = [],\n          error\n        }) {\n          if (!this.ready) return false;\n          validationErrors.forEach(validationError => this.notifications.error(validationError));\n          if (error || !attachments.length) {\n            if (error) {\n              this.notifications.error({\n                message: this.intl.t('services.ips.somethingWentWrongWhileSubmittingFilesToIPS'),\n                error\n              });\n            }\n            return false;\n          }\n          try {\n            yield this.buildaPrice.submitFilesToIPS(this.sessionData.entity.id, attachments.map(attachmentToFile));\n            this.notifications.success(this.intl.t('services.ips.Files submitted to IPS'));\n            return true;\n          } catch (submitError) {\n            // the refusal carries the usage that caused it, so no refetch needed\n            const refusedUsage = submitError?.responseJSON?.detail?.ipsUsage;\n            if (refusedUsage) {\n              this.latestUsage = refusedUsage;\n              this.notifications.error({\n                message: refusedUsage.hasActiveTerm ? this.intl.t('services.ips.ipsDocumentAllowanceUsed') : this.intl.t('services.ips.couldNotImportPdfBills')\n              });\n              return false;\n            }\n            this.notifications.error({\n              message: this.intl.t('services.ips.somethingWentWrongWhileSubmittingFilesToIPS'),\n              error: submitError\n            });\n            return false;\n          }\n        }\n      }), null, \"uploadPdf\", null));\n    }\n    /**\n     * Says whether IPS is ready to use, which needs the entity to have an ips_connection.\n     * Unknown until usage has been fetched.\n     */\n    get ready() {\n      return Boolean(this.newFeatureFlags.includesFeatureFlags('entityCanUseIPS') && this.latestUsage?.isConnected);\n    }\n    get canSubmitDocuments() {\n      const usage = this.latestUsage;\n      if (!this.ready) return false;\n      if (!usage.hasActiveTerm) return false;\n      return usage.isMetered || usage.used < usage.limit;\n    }\n    async getIpsContactInfo() {\n      return await this.portalApiV2.authGet('/ips/contact-info', {\n        entityId: this.sessionData.entity.id\n      });\n    }\n    async getUsage() {\n      this.latestUsage = await this.portalApiV2.authGet('/ips/usage', {\n        entityId: this.sessionData.entity.id\n      });\n      return this.latestUsage;\n    }\n    async updateIpsContactEmail(body) {\n      return await this.portalApiV2.authPatch(`/ips/contact-email`, body);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"portalApiV2\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"latestUsage\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"dismissedAlert\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _class2);\n});","define(\"portal/services/keyboard\", [\"exports\", \"ember-keyboard/services/keyboard\"], function (_exports, _keyboard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _keyboard.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-keyboard/services/keyboard\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/media-events\", [\"exports\", \"@ember/object/evented\", \"@ember/object\", \"@ember/service\"], function (_exports, _evented, _object, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/evented\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  /**\n   * Provides an evented wrapper around the media service.\n   */\n  var _default = _exports.default = _service.default.extend(_evented.default, {\n    media: (0, _service.inject)(),\n    mediaMatchesDidChange: (0, _object.observer)('media', 'media.matches.[]', function () {\n      this.trigger('mediaMatchesDidChange');\n    }),\n    // This one took me a while.\n    // https://guides.emberjs.com/v2.10.0/object-model/observers/#toc_unconsumed-computed-properties-do-not-trigger-observers\n    consumeMediaService: (0, _evented.on)('init', function () {\n      (0, _object.get)(this, 'media');\n    })\n  });\n});","define(\"portal/services/media\", [\"exports\", \"ember-responsive/services/media\"], function (_exports, _media) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-responsive/services/media\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _media.default;\n});","define(\"portal/services/metrics\", [\"exports\", \"ember-metrics/services/metrics\"], function (_exports, _metrics) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _metrics.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-metrics/services/metrics\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/mobile-menu\", [\"exports\", \"@ember/service\"], function (_exports, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\"eaimeta@70e063a35619d71f\n  class _default extends _service.default {\n    toggleMenu() {\n      document.getElementById('mobile-side-menu__overlay').classList.toggle('mobile-side-menu__overlay--visible');\n      document.getElementById('mobile-side-menu').classList.toggle('mobile-side-menu--visible');\n    }\n    closeMenu() {\n      document.getElementById('mobile-side-menu__overlay').classList.remove('mobile-side-menu__overlay--visible');\n      document.getElementById('mobile-side-menu').classList.remove('mobile-side-menu--visible');\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/services/modal-dialog\", [\"exports\", \"@ember/object\", \"@ember/service\", \"portal/config/environment\", \"ember-modal-dialog/utils/config-utils\"], function (_exports, _object, _service, _environment, _configUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/service\",0,\"portal/config/environment\",0,\"ember-modal-dialog/utils/config-utils\"eaimeta@70e063a35619d71f\n  function computedFromConfig(prop) {\n    return (0, _object.computed)(function () {\n      return _environment.default['ember-modal-dialog'] && _environment.default['ember-modal-dialog'][prop];\n    });\n  }\n  var _default = _exports.default = _service.default.extend({\n    hasEmberTether: computedFromConfig('hasEmberTether'),\n    hasLiquidWormhole: computedFromConfig('hasLiquidWormhole'),\n    hasLiquidTether: computedFromConfig('hasLiquidTether'),\n    destinationElementId: (0, _object.computed)(function () {\n      return (0, _configUtils.getDestinationElementIdFromConfig)(_environment.default);\n    })\n  });\n});","define(\"portal/services/modules\", [\"exports\", \"@ember/service\", \"portal/utils/favicon-title\", \"portal/utils/platform\"], function (_exports, _service, _faviconTitle, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"portal/utils/favicon-title\",0,\"portal/utils/platform\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  // TODO delete the partner module and all routes\n  // TODO entirely delete bunnings concepts\n  // TODO delete following modules/routes/feature flags: partner, building, pricing, PM promo\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor() {\n      super(...arguments);\n\n      // once to init the title bar on refresh\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"platform\", _descriptor4, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor5, this);\n      _defineProperty(this, \"_onRouteDidChange\", void 0);\n      this.onRouteDidChange();\n      this._onRouteDidChange = this.onRouteDidChange.bind(this);\n      this.router.on('routeDidChange', this._onRouteDidChange);\n    }\n    willDestroy() {\n      super.willDestroy(...arguments);\n      this.router.off('routeDidChange', this._onRouteDidChange);\n    }\n    onRouteDidChange() {\n      let pre = '';\n      const host = window.location.host;\n      if (host.includes('localhost')) pre = '🟢';\n      if (host.includes('staging')) pre = '🟠';\n      const moduleRoutes = Object.values(this.modules).map(m => m.slug);\n      const bannedRoutes = ['index', 'entity'];\n      let usableRoutes = this.router.currentRouteName.split('.').filter((r, i) => {\n        // only filter module names from module-ish routes so we don't clash with actual route names\n        const couldBeModule = i <= 2;\n        if (couldBeModule) {\n          return !moduleRoutes.includes(r) && !bannedRoutes.includes(r);\n        }\n        return !bannedRoutes.includes(r);\n      }).map(r => r.split(/-|_/).map((w, i) => i === 0 ? w.charAt(0).toUpperCase() + w.substring(1) : w).join(' '));\n      const thisRoute = usableRoutes[usableRoutes.length - 1];\n      if (usableRoutes.length > 3) {\n        usableRoutes = [usableRoutes[0],\n        // the parent route\n        '...', usableRoutes[usableRoutes.length - 1] // the current route\n        ];\n      }\n\n      // only bother with breadcrumbs if we're deeper than 2 routes\n      const routeBreadcrumbs = usableRoutes.length > 2 ? ` > ${usableRoutes.join(' > ')}` : '';\n      if (this.currentModule) {\n        const title = `${pre} ${thisRoute} - ${this.currentModule.name}${routeBreadcrumbs}`;\n        (0, _faviconTitle.changeTitle)(title);\n        (0, _faviconTitle.changeFavicon)(this.currentModule.favicon);\n      } else {\n        const title = `${pre} ${thisRoute} - ${this.platform.platform.name}${routeBreadcrumbs}`;\n        (0, _faviconTitle.changeTitle)(title);\n        (0, _faviconTitle.changeFavicon)(this.platform.platform.favicon);\n      }\n    }\n    get modules() {\n      const modules = {\n        BUILDA_PRICE: {\n          slug: 'builda-price',\n          name: this.intl.t('common.Project management'),\n          brand: 'Builda Price',\n          logo: _platform.BRANDING.BUILDA_PRICE.logo,\n          favicon: _platform.BRANDING.BUILDA_PRICE.favicon,\n          outsideLink: undefined,\n          badge: undefined\n        },\n        FINANCIALS: {\n          slug: 'financials',\n          name: this.intl.t('common.Financial portal'),\n          brand: 'Step Accounts',\n          logo: _platform.BRANDING.STEP.logo,\n          favicon: _platform.BRANDING.STEP.favicon,\n          outsideLink: undefined,\n          badge: undefined\n        },\n        BUILDA_PRICE_PROMO: {\n          slug: undefined,\n          name: this.intl.t('common.Project management'),\n          brand: 'Builda Price',\n          logo: _platform.BRANDING.BUILDA_PRICE.logo,\n          favicon: _platform.BRANDING.BUILDA_PRICE.favicon,\n          outsideLink: 'https://www.buildaprice.co.nz',\n          badge: 'UPGRADE'\n        }\n      };\n\n      // in some branding scenarios module branding is overridden\n      switch (this.sessionData.entity?.brand) {\n        case 'BUILDA_PRICE':\n          modules.FINANCIALS.brand = undefined;\n          modules.FINANCIALS.favicon = _platform.BRANDING.BUILDA_PRICE.favicon;\n          modules.FINANCIALS.icon = 'chart-line';\n          modules.FINANCIALS.logo = _platform.BRANDING.BUILDA_PRICE.logo;\n          modules.FINANCIALS.name = this.intl.t('common.Benchmarking');\n          modules.BUILDA_PRICE.brand = undefined;\n          modules.BUILDA_PRICE.icon = 'hammer';\n          break;\n        case 'STEP':\n          break;\n        case 'APB':\n          modules.FINANCIALS.brand = 'APB';\n          modules.FINANCIALS.favicon = _platform.BRANDING.APB.favicon;\n          modules.FINANCIALS.logo = _platform.BRANDING.APB.logo;\n          break;\n        case 'TPB':\n          modules.BUILDA_PRICE.brand = 'TPB';\n          modules.BUILDA_PRICE.favicon = _platform.BRANDING.TPB.favicon;\n          modules.BUILDA_PRICE.logo = _platform.BRANDING.TPB.logo;\n          modules.FINANCIALS.brand = 'TPB';\n          modules.FINANCIALS.favicon = _platform.BRANDING.TPB.favicon;\n          modules.FINANCIALS.logo = _platform.BRANDING.TPB.logo;\n          break;\n        case 'STEP_UP':\n          modules.BUILDA_PRICE.brand = undefined;\n          modules.BUILDA_PRICE.favicon = _platform.BRANDING.STEP_UP.favicon;\n          modules.BUILDA_PRICE.logo = _platform.BRANDING.STEP_UP.logo;\n          modules.FINANCIALS.brand = undefined;\n          modules.FINANCIALS.favicon = _platform.BRANDING.STEP_UP.favicon;\n          modules.FINANCIALS.logo = _platform.BRANDING.STEP_UP.logo;\n          break;\n        case 'ITM':\n          modules.FINANCIALS.favicon = _platform.BRANDING.ITM.favicon;\n          modules.FINANCIALS.logo = _platform.BRANDING.ITM.logo;\n          break;\n        case 'ATTENTION_SAFETY':\n          modules.FINANCIALS.brand = undefined;\n          modules.FINANCIALS.favicon = _platform.BRANDING.ATTENTION_SAFETY.favicon;\n          modules.FINANCIALS.icon = 'chart-line';\n          modules.FINANCIALS.logo = _platform.BRANDING.ATTENTION_SAFETY.logo;\n          modules.FINANCIALS.name = this.intl.t('common.Benchmarking');\n          modules.BUILDA_PRICE.brand = undefined;\n          modules.BUILDA_PRICE.favicon = _platform.BRANDING.ATTENTION_SAFETY.favicon;\n          modules.BUILDA_PRICE.icon = 'hammer';\n          modules.BUILDA_PRICE.logo = _platform.BRANDING.ATTENTION_SAFETY.logo;\n          break;\n      }\n      return modules;\n    }\n    get currentModule() {\n      const routes = this.router.currentRouteName.split('.');\n      // the module is always the second route, after entity\n      const moduleRoute = routes[1];\n      switch (moduleRoute) {\n        case 'financials':\n          return this.modules.FINANCIALS;\n        case 'builda-price':\n          return this.modules.BUILDA_PRICE;\n        default:\n          return undefined;\n      }\n    }\n    get allowedModules() {\n      const allowedModules = [];\n      if (this.newFeatureFlags.includesFeatureFlags('canUseBuildaPrice')) allowedModules.push(this.modules.BUILDA_PRICE);\n      if (this.newFeatureFlags.includesFeatureFlags('canUseFinancialReporting')) allowedModules.push(this.modules.FINANCIALS);\n      if (this.newFeatureFlags.includesFeatureFlags('isAPBCustomer') && this.newFeatureFlags.excludesFeatureFlags('canUseBuildaPrice')) allowedModules.push(this.modules.BUILDA_PRICE_PROMO);\n      return allowedModules;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"platform\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/moment\", [\"exports\", \"ember-moment/services/moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _moment.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-moment/services/moment\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/new-feature-flags\", [\"exports\", \"@ember/service\", \"@ember/object\", \"lodash\", \"portal/utils/collection-to-array\"], function (_exports, _service, _object, _lodash, _collectionToArray) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object\",0,\"lodash\",0,\"portal/utils/collection-to-array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n    }\n    /* HELPERS SECTION START */\n    includesFeatureFlags(...params) {\n      const {\n        checks,\n        args\n      } = params.reduce((acc, param) => {\n        if (typeof param === 'string') acc.checks.push(param);else acc.args.push(param);\n        return acc;\n      }, {\n        checks: [],\n        args: []\n      });\n      if (args.length > 1) throw new Error('You can only provide one resource to check against');\n      return checks.every(check => typeof this[check] === 'function' ? this[check](...args) : this[check]);\n    }\n    includesSomeFeatureFlags(...params) {\n      const {\n        checks,\n        args\n      } = params.reduce((acc, param) => {\n        if (typeof param === 'string') acc.checks.push(param);else acc.args.push(param);\n        return acc;\n      }, {\n        checks: [],\n        args: []\n      });\n      if (args.length > 1) throw new Error('You can only provide one resource to check against');\n      return checks.some(check => typeof this[check] === 'function' ? this[check](...args) : this[check]);\n    }\n    excludesFeatureFlags(...params) {\n      const {\n        checks,\n        args\n      } = params.reduce((acc, param) => {\n        if (typeof param === 'string') acc.checks.push(param);else acc.args.push(param);\n        return acc;\n      }, {\n        checks: [],\n        args: []\n      });\n      if (args.length > 1) throw new Error('You can only provide one resource to check against');\n      return checks.every(check => typeof this[check] === 'function' ? !this[check](...args) : !this[check]);\n    }\n    excludesSomeFeatureFlags(...params) {\n      const {\n        checks,\n        args\n      } = params.reduce((acc, param) => {\n        if (typeof param === 'string') acc.checks.push(param);else acc.args.push(param);\n        return acc;\n      }, {\n        checks: [],\n        args: []\n      });\n      if (args.length > 1) throw new Error('You can only provide one resource to check against');\n      return checks.some(check => typeof this[check] === 'function' ? !this[check](...args) : !this[check]);\n    }\n    /* HELPERS SECTION END */\n\n    /* ENTITY SECTION START */\n    /* entity data start */\n    get entity() {\n      return this.sessionData.entity;\n    }\n    get entities() {\n      // TODO remove allowed entities when we have a better way to do this\n      return this.sessionData.allowedEntities;\n    }\n    /* entity data end */\n\n    /* entity modules start */\n    get entityCanUseCrystalPayroll() {\n      if (this.entity?.includesClaims('v1CrystalPayrollDisabled') && this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUseCrystalPayroll') && this.entity?.excludesClaims('v1CrystalPayrollDisabled');\n    }\n    get entityCanUseKeypay() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUseKeypay');\n    }\n    get entityCanUsePartner() {\n      if (this.entity?.includesClaims('v1PartnerDisabled') && this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUsePartner') &&\n      // this is awkward but we don't need to do anything about it at the moment\n      this.entity?.includesClaims('canManageIPSDocuments') && this.entity?.excludesClaims('v1PartnerDisabled');\n    }\n    get entityCanUseOldPricing() {\n      if (this.entity?.includesClaims('v1PricingDisabled') && this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUsePricing') && this.entity?.excludesClaims('v1PricingDisabled');\n    }\n    get entityIsParent() {\n      // if you don't have a parent, you are a parent\n      return !this.sessionData.entity?.belongsTo('parent').id();\n    }\n    get entityCanUseStrategies() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUseStrategies') && this.entity?.excludesClaims('v1StrategiesDisabled');\n    }\n    get entityIsItm() {\n      // TODO this should probably be a permission but it's contained to a ITM specific report\n      const itmEntityId = '552ef9b81a54227852a57c20';\n      return [this.entity?.id, this.entity.belongsTo('parent').id()].includes(itmEntityId);\n    }\n    get entityIsItmParent() {\n      // TODO this should probably be a permission but it's contained to a ITM specific report\n      const itmEntityId = '552ef9b81a54227852a57c20';\n      return [this.entity?.id].includes(itmEntityId);\n    }\n    get entityCanUseFinancialReporting() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUseFinancialReporting') && this.entity?.excludesClaims('v1FinancialReportingDisabled');\n    }\n    get entityCanUseBuildaPrice() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entity?.includesClaims('canUseBuildaPrice') && this.entity?.excludesClaims('v1BuildaPriceDisabled');\n    }\n    /* entity modules end */\n\n    /* entity features start */\n    get entityCanUseCarters() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseCarters');\n    }\n    get entityCanUseIPS() {\n      return this.entityCanUseBills || this.entityCanUseStatements;\n    }\n\n    // statements ride the Doc Flow free allowance, so access comes from Bills\n    get entityCanUseStatements() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseStatements');\n    }\n    get entityCanUsePlaceMakers() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return (this.entityCanUseOldPricing || this.entityCanUseBuildaPrice) && this.entity?.includesClaims('canUsePlaceMakers');\n    }\n    get entityCanUseSmartPayroll() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseSmartPayroll');\n    }\n    get entityCanUseItmInvoiceIntegration() {\n      if (this.sessionData.isUsingAdminMode) return true;\n\n      // there are no specific ITM related feature flags currently\n      return this.entityCanUseBuildaPrice || this.entityCanUseOldPricing;\n    }\n    get entityCanUseBills() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseBills');\n    }\n    get entityCanUsePurchaseOrders() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUsePurchaseOrders');\n    }\n    get entityCanUseInvoices() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseInvoicing');\n    }\n    get entityCanUseStagePayments() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseStagePayments');\n    }\n    get entityCanUseDashboards() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseDashboards');\n    }\n    get entityCanUseEstimates() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return (this.entityCanUseOldPricing || this.entityCanUseBuildaPrice) && this.entity?.includesClaims('canUseEstimates');\n    }\n    get entityCanUseNotes() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseNotes');\n    }\n    get entityCanUseClientReports() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseClientReport');\n    }\n    get entityCanUseProjectFinancials() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseProjectFinancials');\n    }\n    get entityCanUseForecastReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseForecastReport');\n    }\n    get entityCanUseProfitMarginsReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseProfitMarginsReport');\n    }\n    get entityCanUseLabourHoursReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseLabourHoursReport');\n    }\n    get entityCanUseBudgetReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseBudgetReport');\n    }\n    get entityCanUseQuoteReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseQuoteReport');\n    }\n    get entityCanUsePositionReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUsePositionReport');\n    }\n    get entityCanUseCostReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseCostReport');\n    }\n    get entityCanUseChargeupReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseChargeupReport');\n    }\n    get entityCanUseInvoicingReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseInvoicingReport');\n    }\n    get entityCanUseWipReport() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseWIPReport');\n    }\n    get entityCanUseScheduling() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseScheduling');\n    }\n    get entityCanUseTimesheets() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseTimesheets');\n    }\n    get entityCanUseFileStorage() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseFileStorage');\n    }\n    get entityCanUseProducts() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseProducts');\n    }\n    get entityCanUseProjectProgress() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseProjectProgress');\n    }\n    get entityCanUseCsvTaskFileUploader() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseCsvTaskFileUploader');\n    }\n    get entityCanUseHealthAndSafety() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseHealthAndSafety');\n    }\n    get entityCanUseClientPortal() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseClientPortal');\n    }\n    get entityCanUseGeofencing() {\n      if (this.sessionData.isUsingAdminMode) return true;\n      return this.entityCanUseBuildaPrice && this.entity?.includesClaims('canUseGeofencing');\n    }\n    get entityHasSubcontractorPackage() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entity?.includesClaims('canUseHealthAndSafety') && this.entity?.excludesClaims('canUseBills', 'canUseClientPortal', 'canUseCsvTaskFileUploader', 'canUseDashboards', 'canUseEstimates', 'canUseFileStorage', 'canUseIPS', 'canUseNotes', 'canUseProjectFinancials', 'canUseScheduling', 'canUseTimesheets')) return true;\n      return false;\n    }\n    get entityIsCalStudent() {\n      if (this.entity?.cbPlanId === 'builda-price-cal-education-AUD-Monthly') {\n        return true;\n      }\n      return false;\n    }\n    get entityHasSupport() {\n      // people on the education plan don't get support\n      if (this.entityIsCalStudent) return false;\n\n      // people who are on chargebee get support\n      if (!this.entity?.cbPlanId) return true;\n      if (this.entity?.includesClaims('canUseSupport')) return true;\n      return false;\n    }\n    get isAPBCustomer() {\n      if (this.entity?.brand === 'APB') return true;\n      return false;\n    }\n    /* entity features end */\n    /* ENTITY SECTION END */\n\n    /* USER/WORKER SECTION START */\n    /* user/worker data start */\n    get user() {\n      // the currently logged in user\n      return this.sessionData.user;\n    }\n    get worker() {\n      // the currently logged in worker (in the case of worker login)\n      return this.sessionData.workerPseudoUser;\n    }\n    get projectAttributes() {\n      return this.user?.hasMany('projectAttributes')?.value()?.filter(pa => pa.belongsTo('entity').id() === this.entity?.id) || [];\n    }\n    get taskAttributes() {\n      return this.user?.hasMany('taskAttributes')?.value()?.filter(pa => pa.belongsTo('entity').id() === this.entity?.id) || [];\n    }\n    get userIsWorker() {\n      return Boolean(this.sessionData.workerPseudoUser);\n    }\n    get userIsAdmin() {\n      return this.session?.data?.authenticated?.user?.role === 'admin';\n    }\n    get userIsPartner() {\n      // deal with partners :(\n      // if the entity has a partner, and the user has can manage on the partner, they can also manage this entity\n      const partnerId = this.entity?.belongsTo('partner').id();\n      if (partnerId) {\n        if (this.user?.includesClaimsAboutEntity(partnerId, 'canManageEntity')) return true;\n      }\n      return false;\n    }\n    get userIsEntityAdmin() {\n      if (this.userIsAdmin || this.userIsPartner || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageEntity')) return true;\n      return false;\n    }\n    get userIsEntityMember() {\n      // in the case of worker login, check the worker belongs to the entity\n      if (this.userIsWorker) return this.worker.belongsTo('entity').value() === this.sessionData.entity;\n\n      // otherwise, check the user belongs to the entity\n      return this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewEntity');\n    }\n    get userCanViewEntity() {\n      return this.userIsEntityAdmin || this.userIsEntityMember;\n    }\n    get userHasPricingRole() {\n      return Boolean(this.user?.pricingRole);\n    }\n    get userIsClient() {\n      return this.user?.includesClaimsAboutEntity(this.entity?.id, 'hasClientRole');\n    }\n    /* user/worker data end */\n\n    /* user/worker modules start */\n    get canUsePartner() {\n      // this module is only available to entity admins because the only feature in it is admin based\n      return this.entityCanUsePartner && this.userIsEntityAdmin;\n    }\n    get canUseOldPricing() {\n      if (!this.entityCanUseOldPricing) return false;\n      if (!this.userCanViewEntity) return false;\n\n      // entity admins can use old pricing\n      if (this.userIsEntityAdmin) return true;\n\n      // need to check if the users has an old school pricing permission\n      // and a role\n      // this will prevent newly created users from accessing old modules\n      if (this.userHasPricingRole && this.user?.includesClaimsAboutEntity(this.entity?.id, 'canUsePricing')) return true;\n      return false;\n    }\n    get canUseFinancialReporting() {\n      if (!this.entityCanUseFinancialReporting) return false;\n      if (!this.userCanViewEntity) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canAdminFinancialReporting', 'canViewFinancialReporting')) return true;\n      return false;\n    }\n    get canUseStrategies() {\n      if (!this.entityCanUseStrategies) return false;\n      if (!this.userCanViewEntity) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canDeleteStrategies', 'canViewStrategies')) return true;\n      return false;\n    }\n    get canUseBuildaPrice() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (!this.userCanViewEntity) return false;\n\n      // entity admins can use bp\n      if (this.userIsEntityAdmin) return true;\n\n      // workers can use bp\n      if (this.userIsWorker) return true;\n\n      // people who can see all projects can use bp\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewProjects', 'canManageProjects')) return true;\n\n      // people with access to at least one project can use bp\n      let canUseProjects = false;\n      this.projectAttributes.forEach(pa => {\n        if (pa.belongsTo('entity').id() !== this.entity?.id) return;\n        const attribute = pa.belongsTo('attribute').id();\n        if (['canViewProjects', 'canManageProjects'].includes(attribute)) canUseProjects = true;\n      });\n      if (canUseProjects) return true;\n      return false;\n    }\n    get hasAccessToPortal() {\n      // check if the user and entity has access to any modules\n      return this.canUsePartner || this.canUseFinancialReporting || this.canUseOldPricing || this.canUseBuildaPrice;\n    }\n    /* user/worker modules end */\n\n    /* user/worker features start */\n    get canUseWorkerType() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    get canUsePayRate() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    get canUseCostRate() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    get canUseWorkerCostCalculator() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    get canUseChargeOutRate() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    canUseBackdateChargeOutRate(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageTimesheets')) return true;\n            if (this.user?.includesClaimsAboutProject(modelId(resource), 'canManageTimesheets')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseBackdateCostRate() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      return false;\n    }\n    canUseWorkerJobAllocation(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (this.entityHasSubcontractorPackage) return false;\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageWorkers')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageTimesheets')) return true;\n            if (this.user?.includesClaimsAboutProject(modelId(resource), 'canManageTimesheets')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    get canUseScheduling() {\n      if (!this.entityCanUseScheduling) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // currently only users with entity level scheduling management can access scheduling\n      // once we introduce project/task filtering this will change\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageSchedulingReports', 'canViewSchedulingReports')) return true;\n\n      // check if the user has scheduling permission for any projects\n      if (this.projectAttributes.some(pa => ['canManageSchedulingReports', 'canViewSchedulingReports'].includes(pa.belongsTo('attribute').id()))) return true;\n\n      // check if the user has scheduling permission for any tasks\n      if (this.taskAttributes.some(ta => ['canManageSchedulingReports', 'canViewSchedulingReports'].includes(ta.belongsTo('attribute').id()))) return true;\n      return false;\n    }\n    canViewBudgetFinancialReports(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // otherwise you need access to view or manage budget reports\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageBudgetReports', 'canViewBudgetFinancialReports')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageBudgetReports', 'canViewBudgetFinancialReports')) return true;\n            // if you don't have project access, check for task access\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canViewQuoteReports(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // otherwise you need access to view or manage quote reports\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageQuoteReports', 'canViewQuoteReports')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageQuoteReports', 'canViewQuoteReports')) return true;\n            // if you don't have project access, check for task access\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canViewProgressReports(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // otherwise you need access to view or manage quote reports\n      if (this._canUseEntityProgressReports) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageProgressReports', 'canViewProgressReports')) return true;\n            // if you don't have project access, check for task access\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageProgressReports', 'canViewProgressReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canViewCostFinancialReports(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // otherwise you need access to view or manage quote reports\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageCostReports', 'canViewCostFinancialReports')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageCostReports', 'canViewCostFinancialReports')) return true;\n            // if you don't have project access, check for task access\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canViewAccessReports(resource) {\n      // access reports are built from geofencing data\n      if (!this.entityCanUseGeofencing) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageAccessReports', 'canViewAccessReports')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageAccessReports', 'canViewAccessReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canViewChargeupReports(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // otherwise you need access to view or manage quote reports\n      if (this._canUseEntityChargeupReports) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageChargeupReports', 'canViewChargeupReports')) return true;\n            // if you don't have project access, check for task access\n            if (this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canManageProjects(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can manage all tasks\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageProjects')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          // if you are a project admin for the project you can manage tasks\n          return this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProjects');\n      }\n      return false;\n    }\n    canUseProjects(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can manage all tasks\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewProjects', 'canManageProjects')) return true;\n\n      // at the top level project resources are not passed here. We need to eval if any of the user permissions include a canViewProjects for this company\n      let canUseProjects = false;\n      this.projectAttributes.forEach(pa => {\n        if (pa.belongsTo('entity').id() !== this.entity?.id) return;\n        const attribute = pa.belongsTo('attribute').id();\n        if (['canViewProjects', 'canManageProjects'].includes(attribute)) canUseProjects = true;\n      });\n      if (canUseProjects) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          // if you are a project admin for the project you can view tasks\n          return this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewProjects', 'canManageProjects');\n      }\n      if (this.userIsClient) return true;\n      return false;\n    }\n    canManageTasks(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can manage all tasks\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageTasks')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutProject(modelId(resource), 'canManageTasks')) return true;\n            break;\n          }\n        case 'task':\n          {\n            // if you can manage the project or tasks you can manage the task\n            if (this.user?.includesClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageTasks')) return true;\n            if (this.user?.includesClaimsAboutTask(modelId(resource), 'canManageTasks')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseTasks(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // if you have permission at entity level you can view all tasks\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks')) return true;\n      if (!resource) {\n        // check if we have permission on any projects\n        if (this.projectAttributes.some(pa => ['canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks'].includes(pa.belongsTo('attribute').id()))) return true;\n\n        // check if we have permission on any tasks\n        if (this.taskAttributes.some(ta => ['canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks'].includes(ta.belongsTo('attribute').id()))) return true;\n      }\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            // if you are a project admin for the project you can view tasks\n            if (this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks')) return true;\n\n            // check if we have permission on any project tasks\n            if (this.taskAttributes.some(ta => {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              return isForProject && ['canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks'].includes(ta.belongsTo('attribute').id());\n            })) return true;\n            break;\n          }\n        case 'task':\n          {\n            const canViewProjects = this.user?.includesSomeClaimsAboutProject((0, _object.get)(resource, 'project.id'), 'canViewTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canManageTasks');\n            // if you can view the project or tasks you can view the tasks\n            if (canViewProjects || this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageTasks', 'canViewTaskTasks', 'canViewSumsTasks', 'canViewSubcontractorTasks', 'canViewPlantTasks', 'canViewMilestoneTasks', 'canViewBuildersWorkTasks', 'canViewInternalTasks', 'canViewTasks')) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canManageTaskBudgets(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageTaskBudgets')) return true;\n      switch (modelName(resource)) {\n        case 'task':\n          {\n            if (this.user?.includesClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageTaskBudgets')) return true;\n            return this.user?.includesClaimsAboutTask(modelId(resource), 'canManageTaskBudgets');\n          }\n        case 'project':\n          return this.user?.includesClaimsAboutProject(modelId(resource), 'canManageTaskBudgets');\n      }\n      return false;\n    }\n    canManageTaskQuotes(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageTaskQuotes')) return true;\n      switch (modelName(resource)) {\n        case 'task':\n          {\n            if (this.user?.includesClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageTaskQuotes')) return true;\n            return this.user?.includesClaimsAboutTask(modelId(resource), 'canManageTaskQuotes');\n          }\n        case 'project':\n          return this.user?.includesClaimsAboutProject(modelId(resource), 'canManageTaskQuotes');\n      }\n      return false;\n    }\n    canUseTaskBudgets(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTaskBudgets', 'canManageTaskBudgets')) return true;\n      switch (modelName(resource)) {\n        case 'task':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canViewTaskBudgets', 'canManageTaskBudgets')) return true;\n            return this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canViewTaskBudgets', 'canManageTaskBudgets');\n          }\n        case 'project':\n          return this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewTaskBudgets', 'canManageTaskBudgets');\n      }\n      return false;\n    }\n    canUseTaskQuotes(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTaskQuotes', 'canManageTaskQuotes')) return true;\n      switch (modelName(resource)) {\n        case 'task':\n          {\n            if (this.user?.includesSomeClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canViewTaskQuotes', 'canManageTaskQuotes')) return true;\n            return this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canViewTaskQuotes', 'canManageTaskQuotes');\n          }\n        case 'project':\n          return this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewTaskQuotes', 'canManageTaskQuotes');\n      }\n      return false;\n    }\n    canUseQuoteVersions(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewProjectQuoteVersions', 'canManageProjectQuoteVersions')) return true;\n      if (modelName(resource) === 'project' && this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewProjectQuoteVersions', 'canManageProjectQuoteVersions')) {\n        return true;\n      }\n      return false;\n    }\n    canManageQuoteVersions(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageProjectQuoteVersions')) return true;\n      if (modelName(resource) === 'project' && this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProjectQuoteVersions')) {\n        return true;\n      }\n      return false;\n    }\n    canUseBudgetVersions(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewProjectBudgetVersions', 'canManageProjectBudgetVersions')) return true;\n      if (modelName(resource) === 'project' && this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canViewProjectBudgetVersions', 'canManageProjectBudgetVersions')) {\n        return true;\n      }\n      return false;\n    }\n    canManageBudgetVersions(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageProjectBudgetVersions')) return true;\n      if (modelName(resource) === 'project' && this.user?.includesClaimsAboutProject(modelId(resource), 'canManageProjectBudgetVersions')) {\n        return true;\n      }\n      return false;\n    }\n    canManageProgressVersions(resource) {\n      if (!this.entityCanUseProjectProgress) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageProjectProgressVersions', 'canManageEntity')) return true;\n      if (modelName(resource) === 'project' && this.user?.includesClaimsAboutProject(modelId(resource), 'canManageProjectProgressVersions')) {\n        return true;\n      }\n      return false;\n    }\n    canManageProfitMargin(resource) {\n      if (!this.entityCanUseProjectFinancials) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      switch (modelName(resource)) {\n        case 'entity':\n          return this.user?.includesClaimsAboutEntity(modelId(resource), 'canManageProjects', 'canManageTaskQuotes');\n        case 'project':\n          {\n            if (this.user?.includesClaimsAboutEntity((0, _object.get)(resource, 'entity.id'), 'canManageProjects', 'canManageTaskQuotes')) return true;\n            return this.user?.includesClaimsAboutProject(modelId(resource), 'canManageProjects', 'canManageTaskQuotes');\n          }\n        case 'task':\n          {\n            // check for project access first\n            if (this.user?.includesClaimsAboutProject(\n            // this can be passed proxy objects so we need to use old school getters\n            (0, _object.get)(resource, 'project.id'), 'canManageProjects', 'canManageTaskQuotes')) return true;\n            return this.user?.includesClaimsAboutTask(modelId(resource), 'canManageTasks', 'canManageTaskQuotes');\n          }\n      }\n      return false;\n    }\n    canUseEstimates(resource) {\n      if (!this.entityCanUseEstimates) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have permission at the entity level to manage estimates\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageEstimates', 'canViewEstimates')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          // check if you can manage estimates for the project\n          return this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageEstimates', 'canViewEstimates');\n      }\n      return false;\n    }\n    canManageEstimates(resource) {\n      if (!this.entityCanUseEstimates) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have permission at the entity level to manage estimates\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageEstimates')) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          // check if you can manage estimates for the project\n          return this.user?.includesClaimsAboutProject(modelId(resource), 'canManageEstimates');\n      }\n      return false;\n    }\n    get canUseTimesheets() {\n      if (!this.entityCanUseTimesheets) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // handle worker pseudo user\n      // worker can always view the timesheets tab\n      if (this.userIsWorker) return true;\n      let canManageTimesheets = false;\n      let canSeeProjects = false;\n      let hasWorker = false;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTimesheets', 'canManageTimesheets')) canManageTimesheets = true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewProjects')) canSeeProjects = true;\n      this.projectAttributes.forEach(wa => {\n        if (wa.belongsTo('entity').id() !== this.entity?.id) return;\n        if (wa.belongsTo('attribute').id() === 'canManageTimesheets') canManageTimesheets = true;\n        if (['canViewProjects', 'canManageProjects'].includes(wa.belongsTo('attribute').id())) canSeeProjects = true;\n      });\n      this.taskAttributes.forEach(wa => {\n        if (wa.belongsTo('entity').id() !== this.entity?.id) return;\n        if (wa.belongsTo('attribute').id() === 'canManageTimesheets') canManageTimesheets = true;\n      });\n      this.user?.hasMany('workerAttributes').value()?.forEach(wa => {\n        if (wa.belongsTo('entity').id() === this.entity?.id) hasWorker = true;\n      });\n      if (canManageTimesheets && canSeeProjects) return true;\n      if (hasWorker && canSeeProjects) return true;\n      return false;\n    }\n    get canUseReportBuilder() {\n      // some entities are always allowed to use report builder\n      const entityWhiteList = ['691d037bee15361ca3c55065'];\n\n      // hide the report builder from new companies\n      const reportBuilderDeprecationDate = new Date('2025-10-30');\n      const entityCreatedDate = this.entity?.dateCreated;\n      if (entityCreatedDate > reportBuilderDeprecationDate && !entityWhiteList.includes(this.entity?.id)) return false;\n      if (!this.entityCanUseTimesheets && !this.entityCanUseBills) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageEntity')) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canUseReportBuilderReport')) return true;\n      return false;\n    }\n    get canUseProjectProgressReports() {\n      if (this.userIsEntityAdmin) return true;\n      return this._canUseEntityProgressReports || this._canUseProjectProgressReports;\n    }\n    get canUseProjectQuoteReports() {\n      if (this.userIsEntityAdmin) return true;\n      return this._canUseEntityQuoteReports || this._canUseProjectQuoteReports;\n    }\n    get canUseProjectBudgetReports() {\n      if (this.userIsEntityAdmin) return true;\n      return this._canUseEntityBudgetReports || this._canUseProjectBudgetReports;\n    }\n    get canUseProjectCostReports() {\n      if (this.userIsEntityAdmin) return true;\n      return this._canUseEntityCostReports || this._canUseProjectCostReports;\n    }\n    get canUseProjectTasks() {\n      if (this.userIsEntityAdmin) return true;\n      return this._canUseEntityTasks || this._canUseProjectTasks;\n    }\n    get _canUseEntityTasks() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTasks', 'canManageTasks');\n    }\n    get _canUseEntityProjects() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewProjects', 'canManageProjects');\n    }\n    get _canUseEntityBudgetReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n    }\n    get _canUseEntityBudgetLabourHourReports() {\n      return this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewBudgetLabourHourReports');\n    }\n    get _canUseEntityCostReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageCostReports', 'canViewCostFinancialReports');\n    }\n    get _canUseEntityCostLabourHourReports() {\n      return this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewCostLabourHourReports');\n    }\n    get _canUseEntityProgressReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageProgressReports', 'canViewProgressReports');\n    }\n    get _canUseEntityQuoteReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageQuoteReports', 'canViewQuoteReports');\n    }\n    get _canUseEntityChargeupReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageChargeupReports', 'canViewChargeupReports');\n    }\n    get _canUseEntityInvoicingReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageInvoicingReports', 'canViewInvoicingReports');\n    }\n    get _canUseEntityClientReports() {\n      return this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageClientReports', 'canViewClientReports');\n    }\n    get _canUseProjectTasks() {\n      return this.projectAttributes.some(pa => ['canViewTasks', 'canManageTasks'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectBudgetReports() {\n      return this.projectAttributes.some(pa => ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectBudgetLabourHourReports() {\n      return this.projectAttributes.some(pa => pa.belongsTo('attribute').id() === 'canViewBudgetLabourHourReports');\n    }\n    get _canUseProjectCostReports() {\n      return this.projectAttributes.some(pa => ['canManageCostReports', 'canViewCostFinancialReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectCostLabourHourReports() {\n      return this.projectAttributes.some(pa => pa.belongsTo('attribute').id() === 'canViewCostLabourHourReports');\n    }\n    get _canUseProjectProgressReports() {\n      return this.projectAttributes.some(pa => ['canManageProgressReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectQuoteReports() {\n      return this.projectAttributes.some(pa => ['canManageQuoteReports', 'canViewQuoteReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectChargeupReports() {\n      return this.projectAttributes.some(pa => ['canManageChargeupReports', 'canViewChargeupReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get _canUseProjectInvoicingReports() {\n      return this.projectAttributes.some(pa => ['canViewInvoicingReports', 'canManageInvoicingReports'].includes(pa.belongsTo('attribute').id()));\n    }\n    get canUseEntityWIPReport() {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (!this.entityCanUseWipReport || !this.entityCanUseInvoices) return false;\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityInvoicingReports = this._canUseEntityInvoicingReports;\n      if (canUseEntityBudgetReports && canUseEntityQuoteReports && canUseEntityProgressReports && canUseEntityCostReports && canUseEntityInvoicingReports) return true;\n      if ((this.projectAttributes.some(pa => ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(pa.belongsTo('attribute').id())) || canUseEntityBudgetReports) && (this.projectAttributes.some(pa => ['canManageQuoteReports', 'canViewQuoteReports'].includes(pa.belongsTo('attribute').id())) || canUseEntityQuoteReports) && (this.projectAttributes.some(pa => ['canManageProgressReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id())) || canUseEntityProgressReports) && (this.projectAttributes.some(pa => ['canManageCostReports', 'canViewCostFinancialReports'].includes(pa.belongsTo('attribute').id())) || canUseEntityCostReports) && (this.projectAttributes.some(pa => ['canManageInvoicingReports', 'canViewInvoicingReports'].includes(pa.belongsTo('attribute').id())) || canUseEntityInvoicingReports)) return true;\n      return false;\n    }\n    canUseProjectWIPReport(resource) {\n      if (!this.entityCanUseBuildaPrice) return false;\n      if (!this.entityCanUseWipReport) return false;\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      if (canUseEntityBudgetReports && canUseEntityQuoteReports && canUseEntityProgressReports && canUseEntityCostReports) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            if ((canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityCostReports || canUseProjectCostReports)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectQuoteReport(resource) {\n      if (!this.entityCanUseQuoteReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityQuoteReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskQuoteReports = canUseEntityQuoteReports || canUseProjectQuoteReports;\n            let canUseTaskChargeupReports = canUseEntityChargeupReports || canUseProjectChargeupReports;\n            let canUseTasks = canUseEntityTasks || canUseProjectTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskQuoteReports) canUseTaskQuoteReports = ['canManageQuoteReports', 'canViewQuoteReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskChargeupReports) canUseTaskChargeupReports = ['canManageChargeupReports', 'canViewChargeupReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskQuoteReports && canUseTaskChargeupReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseQuoteReport(resource) {\n      if (!this.entityCanUseQuoteReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityQuoteReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectCostReport(resource) {\n      if (!this.entityCanUseCostReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      const canUseEntityTimesheets = this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTimesheets', 'canManageTimesheets');\n      const canUseEntityBills = this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewBills', 'canManageBills');\n      if (canUseEntityCostReports && canUseEntityTasks && canUseEntityTimesheets && canUseEntityBills) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            const canUseProjectTimesheets = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTimesheets', 'canViewTimesheets');\n            const canUseProjectBills = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBills', 'canViewBills');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectTasks || canUseEntityTasks) && (canUseProjectTimesheets || canUseEntityTimesheets) && (canUseProjectBills || canUseEntityBills)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            let canUseTaskTimesheets = canUseProjectTimesheets || canUseEntityTimesheets;\n            let canUseTaskBills = canUseProjectBills || canUseEntityBills;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskTimesheets) canUseTaskTimesheets = ['canManageTimesheets', 'canViewTimesheets'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBills) canUseTaskTimesheets = ['canManageBills', 'canViewBills'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTasks && canUseTaskTimesheets && canUseTaskBills) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseCostReport(resource) {\n      if (!this.entityCanUseCostReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      const canUseEntityTimesheets = this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewTimesheets', 'canManageTimesheets');\n      const canUseEntityBills = this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewBills', 'canManageBills');\n      if (canUseEntityCostReports && canUseEntityTasks && canUseEntityTimesheets && canUseEntityBills) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            const canUseProjectTimesheets = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTimesheets', 'canViewTimesheets');\n            const canUseProjectBills = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBills', 'canViewBills');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectTasks || canUseEntityTasks) && (canUseProjectTimesheets || canUseEntityTimesheets) && (canUseProjectBills || canUseEntityBills)) return true;\n            break;\n          }\n        case 'task':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageTasks', 'canViewTasks');\n            const canUseProjectTimesheets = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageTimesheets', 'canViewTimesheets');\n            const canUseProjectBills = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageBills', 'canViewBills');\n            const canUseTaskCostReports = this.user?.includesSomeClaimsAboutTask(modelId(resource.project), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseTaskTasks = this.user?.includesSomeClaimsAboutTask(modelId(resource.project), 'canManageTasks', 'canViewTasks');\n            const canUseTaskTimesheets = this.user?.includesSomeClaimsAboutTask(modelId(resource.project), 'canManageTimesheets', 'canViewTimesheets');\n            const canUseTaskBills = this.user?.includesSomeClaimsAboutTask(modelId(resource.project), 'canManageBills', 'canViewBills');\n            if ((canUseTaskCostReports || canUseProjectCostReports || canUseEntityCostReports) && (canUseTaskTasks || canUseProjectTasks || canUseEntityTasks) && (canUseTaskTimesheets || canUseProjectTimesheets || canUseEntityTimesheets) && (canUseTaskBills || canUseProjectBills || canUseEntityBills)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectBudgetReport(resource) {\n      if (!this.entityCanUseBudgetReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectBudgetReports || canUseEntityBudgetReports) && (canUseProjectTasks || canUseEntityTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTaskBudgetReports = canUseProjectBudgetReports || canUseEntityBudgetReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBudgetReports) canUseTaskBudgetReports = ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTaskBudgetReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseBudgetReport(resource) {\n      if (!this.entityCanUseBudgetReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectBudgetReports || canUseEntityBudgetReports) && (canUseProjectTasks || canUseEntityTasks)) return true;\n            break;\n          }\n        case 'task':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageTasks', 'canViewTasks');\n            const canUseTaskCostReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseTaskBudgetReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseTaskTasks = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseTaskCostReports || canUseProjectCostReports || canUseEntityCostReports) && (canUseTaskBudgetReports || canUseProjectBudgetReports || canUseEntityBudgetReports) && (canUseTaskTasks || canUseProjectTasks || canUseEntityTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectClientReport(resource) {\n      if (!this.entityCanUseClientReports) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityInvoicingReports = this._canUseEntityInvoicingReports;\n      const canUseEntityClientReports = this._canUseEntityClientReports;\n      if (canUseEntityClientReports || canUseEntityQuoteReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityInvoicingReports) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectInvoicingReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseProjectClientReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageClientReports', 'canViewClientReports');\n            if (canUseProjectClientReports || (canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityInvoicingReports || canUseProjectInvoicingReports)) return true;\n\n            // check if a single task grants either the client-report claim\n            // directly, or all four base report claims together — a user with,\n            // say, quote access on one task and progress access on a different\n            // task should not qualify just because both flags ended up true\n            const projectTaskIds = new Set(resource.hasMany('tasks').ids());\n            const attributeIdsByTask = new Map();\n            for (const ta of this.taskAttributes) {\n              const taskId = ta.belongsTo('task').id();\n              if (!projectTaskIds.has(taskId)) continue;\n              if (!attributeIdsByTask.has(taskId)) {\n                attributeIdsByTask.set(taskId, new Set());\n              }\n              attributeIdsByTask.get(taskId).add(ta.belongsTo('attribute').id());\n            }\n            for (const attributeIds of attributeIdsByTask.values()) {\n              const taskHasClientReports = canUseEntityClientReports || canUseProjectClientReports || attributeIds.has('canManageClientReports') || attributeIds.has('canViewClientReports');\n              const taskHasQuoteReports = canUseEntityQuoteReports || canUseProjectQuoteReports || attributeIds.has('canManageQuoteReports') || attributeIds.has('canViewQuoteReports');\n              const taskHasProgressReports = canUseEntityProgressReports || canUseProjectProgressReports || attributeIds.has('canManageProgressReports') || attributeIds.has('canViewProgressReports');\n              const taskHasChargeupReports = canUseEntityChargeupReports || canUseProjectChargeupReports || attributeIds.has('canManageChargeupReports') || attributeIds.has('canViewChargeupReports');\n              const taskHasInvoicingReports = canUseEntityInvoicingReports || canUseProjectInvoicingReports || attributeIds.has('canManageInvoicingReports') || attributeIds.has('canViewInvoicingReports');\n              if (taskHasClientReports || taskHasQuoteReports && taskHasProgressReports && taskHasChargeupReports && taskHasInvoicingReports) return true;\n            }\n            break;\n          }\n        case 'task':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectInvoicingReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseProjectClientReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageClientReports', 'canViewClientReports');\n            const canUseTaskQuoteReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseTaskProgressReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseTaskChargeupReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseTaskInvoicingReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseTaskClientReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageClientReports', 'canViewClientReports');\n            if (canUseTaskClientReports || canUseProjectClientReports || (canUseTaskQuoteReports || canUseProjectQuoteReports || canUseEntityQuoteReports) && (canUseTaskProgressReports || canUseProjectProgressReports || canUseEntityProgressReports) && (canUseTaskChargeupReports || canUseProjectChargeupReports || canUseEntityChargeupReports) && (canUseTaskInvoicingReports || canUseProjectInvoicingReports || canUseEntityInvoicingReports)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseInvoicingReport(resource) {\n      if (!this.entityCanUseBudgetReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityInvoicingReports = this._canUseEntityInvoicingReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityInvoicingReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectInvoicingReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseProjectInvoicingReports || canUseEntityInvoicingReports) && (canUseProjectTasks || canUseEntityTasks)) return true;\n            break;\n          }\n        case 'task':\n          {\n            const canUseProjectInvoicingReports = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource.project), 'canManageTasks', 'canViewTasks');\n            const canUseTaskInvoicingReports = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseTaskTasks = this.user?.includesSomeClaimsAboutTask(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseTaskInvoicingReports || canUseProjectInvoicingReports || canUseEntityInvoicingReports) && (canUseTaskTasks || canUseProjectTasks || canUseEntityTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    get canUseEntityForecastReport() {\n      if (!this.entityCanUseForecastReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if ((this._canUseEntityCostReports || this._canUseProjectCostReports) && (this._canUseEntityBudgetReports || this._canUseProjectBudgetReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports) && (this._canUseEntityQuoteReports || this._canUseProjectQuoteReports)) return true;\n      return false;\n    }\n    canUseProjectForecastReport(resource) {\n      if (!this.entityCanUseForecastReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityQuoteReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectBudgetReports || canUseEntityBudgetReports) && (canUseProjectProgressReports || canUseEntityProgressReports) && (canUseProjectQuoteReports || canUseEntityQuoteReports) && (canUseProjectTasks || canUseEntityTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTaskBudgetReports = canUseProjectBudgetReports || canUseEntityBudgetReports;\n            let canUseTaskProgressReports = canUseProjectProgressReports || canUseEntityProgressReports;\n            let canUseTaskQuoteReports = canUseProjectQuoteReports || canUseEntityQuoteReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBudgetReports) canUseTaskBudgetReports = ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskProgressReports) canUseTaskProgressReports = ['canManageProgressReports', 'canViewProgressReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskQuoteReports) canUseTaskQuoteReports = ['canManageQuoteReports', 'canViewQuoteReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTaskBudgetReports && canUseTaskProgressReports && canUseTaskQuoteReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseForecastReport(resource) {\n      if (!this.entityCanUseForecastReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityQuoteReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseProjectCostReports || canUseEntityCostReports) && (canUseProjectBudgetReports || canUseEntityBudgetReports) && (canUseProjectProgressReports || canUseEntityProgressReports) && (canUseProjectQuoteReports || canUseEntityQuoteReports) && (canUseProjectTasks || canUseEntityTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    get canUseEntityProfitMarginReport() {\n      if (!this.entityCanUseProfitMarginsReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if ((this._canUseEntityCostReports || this._canUseProjectCostReports) && (this._canUseEntityBudgetReports || this._canUseProjectBudgetReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports) && (this._canUseEntityChargeupReports || this._canUseProjectChargeupReports)) return true;\n      return false;\n    }\n    get canUseEntityLabourHourReport() {\n      if (!this.entityCanUseLabourHoursReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseLabourHourPermissions = (this._canUseEntityCostLabourHourReports || this._canUseProjectCostLabourHourReports) && (this._canUseEntityBudgetLabourHourReports || this._canUseProjectBudgetLabourHourReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports);\n      if (canUseLabourHourPermissions || (this._canUseEntityCostReports || this._canUseProjectCostReports) && (this._canUseEntityBudgetReports || this._canUseProjectBudgetReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports)) return true;\n      return false;\n    }\n    canUseProjectProfitMarginReport(resource) {\n      if (!this.entityCanUseProfitMarginsReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTaskBudgetReports = canUseProjectBudgetReports || canUseEntityBudgetReports;\n            let canUseTaskProgressReports = canUseProjectProgressReports || canUseEntityProgressReports;\n            let canUseTaskChargeupReports = canUseProjectChargeupReports || canUseEntityChargeupReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBudgetReports) canUseTaskBudgetReports = ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskProgressReports) canUseTaskProgressReports = ['canManageProgressReports', 'canViewProgressReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskChargeupReports) canUseTaskChargeupReports = ['canManageChargeupReports', 'canViewChargeupReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTaskBudgetReports && canUseTaskProgressReports && canUseTaskChargeupReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProfitMarginReport(resource) {\n      if (!this.entityCanUseProfitMarginsReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUSeEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectChargeupReport(resource) {\n      if (!this.entityCanUseChargeupReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityQuoteReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskQuoteReports = canUseProjectQuoteReports || canUseEntityQuoteReports;\n            let canUseTaskProgressReports = canUseProjectProgressReports || canUseEntityProgressReports;\n            let canUseTaskChargeupReports = canUseProjectChargeupReports || canUseEntityChargeupReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskQuoteReports) canUseTaskQuoteReports = ['canManageQuoteReports', 'canViewQuoteReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskProgressReports) canUseTaskProgressReports = ['canManageProgressReports', 'canViewProgressReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskChargeupReports) canUseTaskChargeupReports = ['canManageChargeupReports', 'canViewChargeupReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskQuoteReports && canUseTaskProgressReports && canUseTaskChargeupReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseChargeupReport(resource) {\n      if (!this.entityCanUseChargeupReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityQuoteReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    get canUseEntityPositionReport() {\n      if (!this.entityCanUsePositionReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if ((this._canUseEntityCostReports || this._canUseProjectCostReports) && (this._canUseEntityBudgetReports || this._canUseProjectBudgetReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports) && (this._canUseEntityChargeupReports || this._canUseProjectChargeupReports) && (this._canUseEntityQuoteReports || this._canUseProjectQuoteReports)) return true;\n      return false;\n    }\n    canUseDashboardReport() {\n      if (!this.entityCanUseDashboards) return false;\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (\n      //Forecast used\n      this.useProjectProgressReports ||\n      //Current position\n      this.canUseProjectQuoteReports && this.canUseProjectQuoteReports && this.canUseProjectCostReports ||\n      //Forecast position\n      this.canUseProjectBudgetReports ||\n      //Recent timesheets\n      this.canUseTimesheets ||\n      //Recent bills\n      this.canUseBills ||\n      //Recent tasks\n      this.canUseProjectTasks ||\n      //Recent projects\n      this.canUseProjects() ||\n      //Recent purchase orders\n      this.canUsePurchaseOrders() ||\n      //Recent Invoices\n      this.canUseInvoices()) return true;\n      return false;\n    }\n    canUseProjectPositionReport(resource) {\n      if (!this.entityCanUsePositionReport) return false;\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityQuoteReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTaskBudgetReports = canUseProjectBudgetReports || canUseEntityBudgetReports;\n            let canUseTaskProgressReports = canUseProjectProgressReports || canUseEntityProgressReports;\n            let canUseTaskChargeupReports = canUseProjectChargeupReports || canUseEntityChargeupReports;\n            let canUseTaskQuoteReports = canUseProjectQuoteReports || canUseEntityQuoteReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBudgetReports) canUseTaskBudgetReports = ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskProgressReports) canUseTaskProgressReports = ['canManageProgressReports', 'canViewProgressReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskChargeupReports) canUseTaskChargeupReports = ['canManageChargeupReports', 'canViewChargeupReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskQuoteReports) canUseTaskQuoteReports = ['canManageQuoteReports', 'canViewQuoteReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTaskBudgetReports && canUseTaskProgressReports && canUseTaskChargeupReports && canUseTaskQuoteReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUsePositionReport(resource) {\n      if (!this.entityCanUsePositionReport) return false;\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityChargeupReports = this._canUseEntityChargeupReports;\n      const canUseEntityQuoteReports = this._canUseEntityQuoteReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityChargeupReports && canUseEntityQuoteReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectChargeupReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageChargeupReports', 'canViewChargeupReports');\n            const canUseProjectQuoteReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageQuoteReports', 'canViewQuoteReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityChargeupReports || canUseProjectChargeupReports) && (canUseEntityQuoteReports || canUseProjectQuoteReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseProjectLabourHourReport(resource) {\n      if (!this.entityCanUseLabourHoursReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      const canUseEntityLabourHourReports = this._canUseEntityCostLabourHourReports && this._canUseEntityBudgetLabourHourReports && canUseEntityProgressReports;\n      if (canUseEntityLabourHourReports) return true;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostLabourHourReports = this.user?.includesClaimsAboutProject(modelId(resource), 'canViewCostLabourHourReports');\n            const canUseProjectBudgetLabourHourReports = this.user?.includesClaimsAboutProject(modelId(resource), 'canViewBudgetLabourHourReports');\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((this._canUseEntityCostLabourHourReports || canUseProjectCostLabourHourReports) && (this._canUseEntityBudgetLabourHourReports || canUseProjectBudgetLabourHourReports) && (canUseEntityProgressReports || canUseProjectProgressReports)) return true;\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskCostReports = canUseProjectCostReports || canUseEntityCostReports;\n            let canUseTaskBudgetReports = canUseProjectBudgetReports || canUseEntityBudgetReports;\n            let canUseTaskProgressReports = canUseProjectProgressReports || canUseEntityProgressReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskCostReports) canUseTaskCostReports = ['canManageCostReports', 'canViewCostFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskBudgetReports) canUseTaskBudgetReports = ['canManageBudgetReports', 'canViewBudgetFinancialReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTaskProgressReports) canUseTaskProgressReports = ['canManageProgressReports', 'canViewProgressReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskCostReports && canUseTaskBudgetReports && canUseTaskProgressReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseEntityInvoicingReport() {\n      if (!this.entityCanUseInvoicingReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityInvoicingReports = this._canUseEntityInvoicingReports;\n      const canUseEntityProjects = this._canUseEntityProjects;\n      if (canUseEntityInvoicingReports && canUseEntityProjects) return true;\n      return false;\n    }\n    canUseProjectInvoicingReport(resource) {\n      if (!this.entityCanUseInvoicingReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityInvoicingReports = this._canUseEntityInvoicingReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityInvoicingReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectInvoicingReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageInvoicingReports', 'canViewInvoicingReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityInvoicingReports || canUseProjectInvoicingReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n\n            // check if we have permission on any project tasks\n            let canUseTaskInvoicingReports = canUseEntityInvoicingReports || canUseProjectInvoicingReports;\n            let canUseTasks = canUseProjectTasks || canUseEntityTasks;\n            for (const ta of this.taskAttributes) {\n              const isForProject = resource.hasMany('tasks').ids().includes(ta.belongsTo('task').id());\n              if (!isForProject) continue;\n              if (!canUseTaskInvoicingReports) canUseTaskInvoicingReports = ['canManageInvoicingReports', 'canViewInvoicingReports'].includes(ta.belongsTo('attribute').id());\n              if (!canUseTasks) canUseTasks = ['canManageTasks', 'canViewTasks'].includes(ta.belongsTo('attribute').id());\n            }\n            if (canUseTaskInvoicingReports && canUseTasks) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    canUseLabourHourReport(resource) {\n      if (!this.entityCanUseLabourHoursReport) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseEntityCostReports = this._canUseEntityCostReports;\n      const canUseEntityBudgetReports = this._canUseEntityBudgetReports;\n      const canUseEntityProgressReports = this._canUseEntityProgressReports;\n      const canUseEntityTasks = this._canUseEntityTasks;\n      if (canUseEntityCostReports && canUseEntityBudgetReports && canUseEntityProgressReports && canUseEntityTasks) return true;\n      switch (modelName(resource)) {\n        case 'project':\n          {\n            const canUseProjectCostReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageCostReports', 'canViewCostFinancialReports');\n            const canUseProjectBudgetReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageBudgetReports', 'canViewBudgetFinancialReports');\n            const canUseProjectProgressReports = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageProgressReports', 'canViewProgressReports');\n            const canUseProjectTasks = this.user?.includesSomeClaimsAboutProject(modelId(resource), 'canManageTasks', 'canViewTasks');\n            if ((canUseEntityCostReports || canUseProjectCostReports) && (canUseEntityBudgetReports || canUseProjectBudgetReports) && (canUseEntityProgressReports || canUseProjectProgressReports) && (canUseEntityTasks || canUseProjectTasks)) return true;\n            break;\n          }\n      }\n      return false;\n    }\n    get canUseReportProjectPage() {\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      const canUseTasks = this._canUseEntityTasks || this._canUseProjectTasks;\n      const canUseLabourHourReports = (this._canUseEntityCostLabourHourReports || this._canUseProjectCostLabourHourReports) && (this._canUseEntityBudgetLabourHourReports || this._canUseProjectBudgetLabourHourReports) && (this._canUseEntityProgressReports || this._canUseProjectProgressReports);\n      if (canUseLabourHourReports) return true;\n      if (canUseTasks && (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports', 'canViewChargeupReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewQuoteReports', 'canViewChargeupReports', 'canViewProgressReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewCostFinancialReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewInvoicingReports') || this.user?.includesClaimsAboutEntity(this.entity?.id, 'canViewClientReports'))) return true;\n      if (canUseTasks && (this.projectAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports', 'canViewChargeupReports'].includes(pa.belongsTo('attribute').id())) || this.projectAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id())) || this.projectAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'].includes(pa.belongsTo('attribute').id())) || this.projectAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports'].includes(pa.belongsTo('attribute').id())) || this.projectAttributes.some(pa => ['canViewQuoteReports', 'canViewChargeupReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id())) || this.projectAttributes.some(pa => 'canViewCostFinancialReports' === pa.belongsTo('attribute').id()) || this.projectAttributes.some(pa => 'canViewInvoicingReports' === pa.belongsTo('attribute').id()) || this.projectAttributes.some(pa => 'canViewClientReports' === pa.belongsTo('attribute').id()))) return true;\n      if (this.taskAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports', 'canViewChargeupReports'].includes(pa.belongsTo('attribute').id())) || this.taskAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id())) || this.taskAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewQuoteReports'].includes(pa.belongsTo('attribute').id())) || this.taskAttributes.some(pa => ['canViewBudgetFinancialReports', 'canViewCostFinancialReports', 'canViewProgressReports', 'canViewChargeupReports'].includes(pa.belongsTo('attribute').id())) || this.taskAttributes.some(pa => ['canViewQuoteReports', 'canViewChargeupReports', 'canViewProgressReports'].includes(pa.belongsTo('attribute').id())) || this.taskAttributes.some(pa => 'canViewCostFinancialReports' === pa.belongsTo('attribute').id()) || this.taskAttributes.some(pa => 'canViewInvoicingReports' === pa.belongsTo('attribute').id()) || this.taskAttributes.some(pa => 'canViewClientReports' === pa.belongsTo('attribute').id())) return true;\n      return false;\n    }\n    get canManagePayroll() {\n      if (!this.entityCanUseTimesheets) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // you can only run payroll if you have permission to view or manage payroll\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewPayrollReports', 'canManagePayrollReports')) return true;\n      return false;\n    }\n    get canUsePayroll() {\n      if (!this.entityCanUseTimesheets) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // you can only run payroll if you have permission to manage payroll\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManagePayrollReports', 'canViewPayrollReports')) return true;\n      return false;\n    }\n    get canUseNotes() {\n      if (!this.entityCanUseNotes) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to view or manage notes\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewNotes', 'canManageNotes')) return true;\n      return false;\n    }\n    get canManageNotes() {\n      if (!this.entityCanUseNotes) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to view or manage notes\n      if (this.user?.includesClaimsAboutEntity(this.entity?.id, 'canManageNotes')) return true;\n      return false;\n    }\n    get canUseBills() {\n      if (!this.entityCanUseBills) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to view or manage bills\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canViewBills', 'canManageBills')) return true;\n      return false;\n    }\n    get canUseLegacyBills() {\n      const legacyBillsDeprecationDate = new Date('2026-08-24');\n      const entityCreatedDate = this.entity?.dateCreated;\n      return entityCreatedDate < legacyBillsDeprecationDate;\n    }\n    get canUseStatements() {\n      if (!this.entityCanUseStatements) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // TODO not sure verify before merging\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageBills')) return true;\n      return false;\n    }\n    get canManageBills() {\n      if (!this.entityCanUseBills) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n\n      // check if you have entity permission to view or manage bills\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canManageBills')) return true;\n      return false;\n    }\n    get canApproveBills() {\n      if (!this.entityCanUseBills) return false;\n\n      // entity admins can do anything\n      if (this.userIsEntityAdmin) return true;\n      if (this.user?.includesSomeClaimsAboutEntity(this.entity?.id, 'canApproveBills')) 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      (true && !(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      (true && !(notification) && (0, _debug.assert)('The notification to clear must be provided.', notification));\n      (0, _object.set)(notification, 'dismiss', true);\n\n      // Delay actual removal for animation\n      (0, _runloop.later)(() => this.list.removeObject(notification), 500);\n    }\n\n    /**\n     * Clear all notifications\n     */\n    clearAll() {\n      this.list.forEach(notification => this.clear(notification));\n    }\n\n    /**\n     * Handle window messages for notifications\n     */\n    handleWindowMessage(event) {\n      if (!event.data.isBpNotification) return;\n      this[event.data.type](...event.data.options);\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/services/number-format\", [\"exports\", \"@ember/service\"], function (_exports, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.CURRENCY = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const CURRENCY = _exports.CURRENCY = {\n    NZL: 'NZD',\n    AUS: 'AUD',\n    USA: 'USD',\n    GBR: 'GBP'\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"intl\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n    format(number, _options) {\n      const options = {\n        ..._options\n      };\n      const emptyPlaceholder = options.emptyPlaceholder || '–';\n      if (isNaN(Number(number))) {\n        return emptyPlaceholder || null;\n      }\n      if (options.dashZero && Number(number) === 0) {\n        return emptyPlaceholder;\n      }\n      if (options.style === 'currency') {\n        const region = this.sessionData.entity?.region;\n        if (region) {\n          options.currency = CURRENCY[region];\n        } else {\n          // we can't render currency without a region\n          options.style = 'decimal';\n        }\n      }\n\n      // There is bug on Mdn for local 'en-AU' with currency any currency except 'AUD'\n      // It shows AUD 123 without '$'\n      return this.intl.formatNumber(number, options);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/os\", [\"exports\", \"@ember/service\"], function (_exports, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\"eaimeta@70e063a35619d71f\n  class OSService extends _service.default {\n    get isMac() {\n      return /Mac|iPod|iPhone|iPad/.test(navigator.platform);\n    }\n    get mainModifier() {\n      return this.isMac ? '⌘' : 'Ctrl';\n    }\n    get hasKeyboard() {\n      return window.matchMedia('(pointer: fine)').matches;\n    }\n  }\n  _exports.default = OSService;\n});","define(\"portal/services/oss-engine-data\", [\"exports\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _service, _tracking) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"projectId\", _descriptor, this);\n      _initializerDefineProperty(this, \"accessToken\", _descriptor2, this);\n      _initializerDefineProperty(this, \"user\", _descriptor3, this);\n    }\n    setProjectId(newProject) {\n      this.projectId = newProject;\n    }\n    setAccessToken(accessToken) {\n      this.accessToken = accessToken;\n    }\n    setUser(user) {\n      this.user = user;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"projectId\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"accessToken\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return '';\n    }\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return {};\n    }\n  }), _class2);\n});","define(\"portal/services/page-title\", [\"exports\", \"ember-page-title/services/page-title\"], function (_exports, _pageTitle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _pageTitle.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-page-title/services/page-title\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/pdf-export\", [\"exports\", \"@ember/service\", \"portal/utils/download\", \"portal/config/environment\"], function (_exports, _service, _download, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"portal/utils/download\",0,\"portal/config/environment\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const HTML_TO_PDF_SERVICE_URL = _environment.default.urls.htmlToPdfService;\n  function minifyHTML(html) {\n    return html.replace(/>\\s+</g, '><');\n  }\n  const DEFAULT_PDF_OPTIONS = {\n    format: 'A4',\n    landscape: false,\n    scale: 1,\n    includeMargins: true,\n    margins: {\n      top: 20,\n      right: 20,\n      bottom: 20,\n      left: 20\n    }\n  };\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"store\", _descriptor2, this);\n    }\n    async generatePdf(id, title, hideClass, options = {}) {\n      const originalElement = document.getElementById(id);\n      const element = originalElement.cloneNode(true);\n      const classNames = new Set([':root', 'body', 'html']); // always take the global page styles\n\n      (function transverseParents(element) {\n        const parent = element.parentElement;\n        if (!parent) return;\n        for (const className of parent.classList) classNames.add(className);\n        transverseParents(parent);\n      })(originalElement);\n      (function transverseChildren(element, originalElement) {\n        const isCanvas = element.nodeName === 'CANVAS';\n\n        // if the element is a canvas we need to encode it as an image\n        if (isCanvas) {\n          const imageData = originalElement.toDataURL('image/png');\n          const img = document.createElement('img');\n          const rect = originalElement.getBoundingClientRect();\n          img.src = imageData;\n          img.width = rect.width;\n          img.height = rect.height;\n          element.parentNode.replaceChild(img, element);\n          element = img;\n        }\n        const isInput = element.nodeName === 'INPUT';\n        if (isInput) {\n          element.setAttribute('value', element.value);\n        }\n        classNames.add(element.tagName.toLowerCase());\n        for (const className of element.classList) classNames.add(className);\n        for (let i = 0; i < element.children.length; i++) transverseChildren(element.children[i], originalElement.children[i]);\n      })(element, originalElement);\n      const cssRules = [];\n      for (const styleSheet of document.styleSheets) {\n        try {\n          for (const cssRule of styleSheet.cssRules) {\n            // we only care about style rules\n            if (!(cssRule instanceof CSSStyleRule)) continue;\n\n            // check if our elements have this class\n            let hasClassName;\n            for (const className of classNames) {\n              hasClassName = cssRule.selectorText?.includes(className);\n              if (hasClassName) break;\n            }\n            if (hasClassName) cssRules.push(cssRule.cssText);\n          }\n        } catch (_) {\n          // doesn't work cross origin and we don't want cross origin sheets anyway\n        }\n      }\n      if (title) {\n        const titleElement = document.createElement('h1');\n        titleElement.innerText = title;\n        // to make title not to wrap into multiple lines\n        titleElement.style.whiteSpace = 'nowrap';\n        element.insertBefore(titleElement, element.firstChild);\n      }\n\n      // must go at the end for priority\n      if (hideClass) cssRules.push(`.${hideClass} { display: none !important; }`);\n      const cssHtml = `<style>${cssRules.join('\\n')}</style>`;\n      const htmlContent = minifyHTML(cssHtml + element.outerHTML);\n\n      // compress the body\n      const body = {\n        ...DEFAULT_PDF_OPTIONS,\n        ...options,\n        htmlContent\n      };\n      const stream = new Blob([JSON.stringify(body)], {\n        type: 'application/json'\n      }).stream();\n      const compressedReadableStream = stream.pipeThrough(new CompressionStream('gzip') // eslint-disable-line no-undef\n      );\n      const compressedResponse = new Response(compressedReadableStream);\n      const bodyBlob = await compressedResponse.blob();\n      const res = await fetch(HTML_TO_PDF_SERVICE_URL, {\n        method: 'POST',\n        body: bodyBlob,\n        headers: {\n          Accept: 'application/pdf',\n          'Content-Type': 'application/json',\n          'Content-Encoding': 'gzip'\n        }\n      });\n      const blob = await res.blob();\n      return blob;\n    }\n    async generateAndDownloadPdf(id, name = 'untitled.pdf', title, hideClass, options = {}) {\n      const blob = await this.generatePdf(id, title, hideClass, options);\n      (0, _download.download)(blob, name, blob.type);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/placemakers\", [\"exports\", \"ember-concurrency/async-arrow-runtime\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"qs\", \"portal/config/environment\", \"ember-local-storage\", \"jquery\"], function (_exports, _asyncArrowRuntime, _object, _service, _tracking, _qs, _environment, _emberLocalStorage, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/async-arrow-runtime\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"qs\",0,\"portal/config/environment\",0,\"ember-local-storage\",0,\"jquery\",0,\"ember-concurrency\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let PlacemakersService = _exports.default = (_dec = (0, _service.inject)(), _dec2 = (0, _service.inject)(), _dec3 = (0, _service.inject)(), _dec4 = (0, _service.inject)(), _class = class PlacemakersService extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _defineProperty(this, \"localStorage\", (0, _emberLocalStorage.storageFor)('pm-callback'));\n      _defineProperty(this, \"initialize\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* () {\n          (0, _object.set)(this, 'isInitialized', false);\n          const entityId = this.sessionData.entity.id;\n          try {\n            // We only expect there to be one result here so just take first one.\n            const queryResult = yield this.store.query('pm-connection', {\n              filter: {\n                and: [{\n                  field: 'entity',\n                  op: 'EQ',\n                  value: entityId\n                }]\n              },\n              fields: {\n                'pm-connections': '_meta.isConnected'\n              }\n            });\n            let integrationOptions = queryResult.toArray()[0];\n            if (!integrationOptions) {\n              integrationOptions = this.store.createRecord('pm-connection', {\n                entity: this.sessionData.entity\n              });\n            }\n            this._entityId = entityId;\n            (0, _object.set)(this, 'integrationOptions', integrationOptions);\n          } finally {\n            (0, _object.set)(this, 'isInitialized', true);\n          }\n        }\n      }), {\n        drop: true\n      }, \"initialize\", null));\n      // Triggers initialize to run again if entity changes in session data.\n      _defineProperty(this, \"updateOnEntityChange\", (0, _object.observer)('sessionData.entity.id', function () {\n        this.initialize.perform();\n      }));\n      _defineProperty(this, \"_entityId\", null);\n      _initializerDefineProperty(this, \"integrationOptions\", _descriptor5, this);\n      _initializerDefineProperty(this, \"isInitialized\", _descriptor6, this);\n      _defineProperty(this, \"updateOption\", (0, _asyncArrowRuntime.buildTask)(() => ({\n        context: this,\n        generator: function* (key, value) {\n          this.integrationOptions[key] = value;\n          yield this.integrationOptions.save();\n        }\n      }), {\n        enqueue: true\n      }, \"updateOption\", null));\n    }\n    init() {\n      super.init(...arguments);\n      this.initialize.perform();\n    }\n    // Not @computed: isConnected on the model is a native getter over the _meta\n    // attr, which a classic dependent key cannot observe. Autotracking picks up\n    // isInitialized, integrationOptions and _meta on its own.\n    get isConnected() {\n      return Boolean(this.isInitialized && this.integrationOptions?.isConnected);\n    }\n    syncPriceBookNow(entityId = this.sessionData.entity.id) {\n      return this.syncPriceBookNowAjax(this.session.data.authenticated.access_token, entityId);\n    }\n    async disconnect(entityId = this.sessionData.entity.id) {\n      await this.disconnectAjax(this.session.data.authenticated.access_token, entityId);\n\n      // Optimistic update\n      (0, _object.set)(this, 'integrationOptions.isConnected', false);\n    }\n\n    /**\n     * Can be called from outside. Lives here to keep logic in one place, will cause navigation.\n     * @param {string | undefined} entityId\n     * @return {void}\n     */\n    initiatePMConnection(entityId = this.sessionData.entity.id) {\n      const {\n        clientId,\n        scope,\n        baseURL,\n        authPath\n      } = _environment.default.placemakers;\n      const authURL = baseURL + authPath;\n      const params = _qs.default.stringify({\n        response_type: 'code',\n        scope,\n        client_id: clientId,\n        redirect_uri: _environment.default.urls.app + `/complete-pm-auth`,\n        state: this.encodeState({\n          entityId,\n          nonce: new Date().getTime()\n        })\n      });\n      const pmAuthAddress = `${authURL}?${params}`;\n      window.location.assign(pmAuthAddress);\n    }\n    handlePmError(error) {\n      if (error.status === 401) {\n        // if this has happened the API has dropped the token and we are no longer authenticated\n        this.notifications.error('Your connection with PlaceMakers has been lost. Please connect again');\n        (0, _object.set)(this, 'integrationOptions.isConnected', false);\n        error.wasAuthenticationError = true;\n      }\n      throw error;\n    }\n    disconnectAjax(accessToken, entityId) {\n      return new Promise((resolve, reject) => {\n        const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/pm-integration/disconnect';\n        _jquery.default.ajax({\n          url,\n          method: 'POST',\n          data: JSON.stringify({\n            entity: entityId\n          }),\n          contentType: 'application/json',\n          headers: {\n            Authorization: 'Bearer ' + accessToken\n          }\n        }).then(resolve, reject);\n      }).catch(this.handlePmError.bind(this));\n    }\n    syncPriceBookNowAjax(accessToken, entityId) {\n      return new Promise((resolve, reject) => {\n        const url = _environment.default.urls.api + _environment.default.urls.apiV1Path + '/pm-integration/sync-price-book';\n        _jquery.default.ajax({\n          url,\n          method: 'POST',\n          data: JSON.stringify({\n            entity: entityId\n          }),\n          contentType: 'application/json',\n          headers: {\n            Authorization: 'Bearer ' + accessToken\n          }\n        }).then(resolve, reject);\n      }).catch(this.handlePmError.bind(this));\n    }\n\n    /**\n     * Turns object into base64 encoded JSON\n     * @param {Object} obj\n     * @return {String}\n     */\n    encodeState(obj) {\n      return btoa(JSON.stringify(obj));\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_dec2], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_dec3], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_dec4], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"integrationOptions\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isInitialized\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _class);\n});","define(\"portal/services/platform\", [\"exports\", \"@ember/service\", \"portal/utils/platform\"], function (_exports, _service, _platform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"portal/utils/platform\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n    }\n    get brand() {\n      return this.sessionData.entity?.brand;\n    }\n    get platform() {\n      const platforms = (0, _platform.getPlatforms)();\n      let platform = (0, _platform.getDefaultPlatform)();\n      switch (this.brand) {\n        case 'BUILDA_PRICE':\n          platform = platforms.BUILDA_PRICE;\n          break;\n        case 'STEP':\n          platform = platforms.STEP;\n          break;\n        case 'APB':\n          platform = platforms.APB;\n          break;\n        case 'TPB':\n          platform = platforms.TPB;\n          break;\n        case 'ITM':\n          platform = platforms.ITM;\n          break;\n        case 'ATTENTION_SAFETY':\n          platform = platforms.ATTENTION_SAFETY;\n          break;\n        case 'STEP_UP':\n          platform = platforms.STEP_UP;\n          break;\n      }\n      return platform;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/portal-api-v2\", [\"exports\", \"@ember/service\", \"portal/config/environment\", \"jquery\", \"rsvp\"], function (_exports, _service, _environment, _jquery, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  /* eslint-disable ember/no-jquery */\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"jquery\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n    }\n    authPost(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'POST',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: JSON.stringify(payload),\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authPostForm(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'POST',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: payload,\n          processData: false,\n          contentType: false\n        }).then(resolve, reject);\n      });\n    }\n    authGet(path, payload, token = this.session.data.authenticated.access_token) {\n      if (payload) return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          dataType: 'json',\n          data: payload,\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`\n          }\n        }).then(resolve, reject);\n      });\n    }\n    authPostHtml(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'POST',\n          headers: {\n            Authorization: `Bearer ${token}`,\n            Accept: 'text/plain'\n          },\n          data: JSON.stringify(payload),\n          dataType: 'text',\n          contentType: 'application/json; charset=UTF-8'\n        }).then(resolve, reject);\n      });\n    }\n    authDelete(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'DELETE',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          dataType: 'json',\n          data: payload,\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authPatch(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'PATCH',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: JSON.stringify(payload),\n          dataType: 'json',\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authPut(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'PUT',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: JSON.stringify(payload),\n          dataType: 'json',\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authGetBlob(path, payload, token = this.session.data.authenticated.access_token) {\n      if (payload) return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`,\n            Accept: 'application/pdf',\n            contentType: 'application/json'\n          },\n          data: payload,\n          xhrFields: {\n            responseType: 'blob'\n          }\n        }).then(resolve, reject);\n      });\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV2Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`,\n            Accept: 'application/pdf',\n            contentType: 'application/json'\n          },\n          xhrFields: {\n            responseType: 'blob'\n          }\n        }).then(resolve, reject);\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/portal-api\", [\"exports\", \"@ember/service\", \"portal/config/environment\", \"jquery\", \"rsvp\"], function (_exports, _service, _environment, _jquery, _rsvp) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  /* eslint-disable ember/no-jquery */\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"portal/config/environment\",0,\"@ember/service\",0,\"jquery\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"session\", _descriptor, this);\n    }\n    authPost(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'POST',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: JSON.stringify(payload),\n          dataType: 'json',\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authGet(path, payload, token = this.session.data.authenticated.access_token) {\n      if (payload) return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          dataType: 'json',\n          data: payload,\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'GET',\n          headers: {\n            Authorization: `Bearer ${token}`\n          }\n        }).then(resolve, reject);\n      });\n    }\n    authDelete(path, payload) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'DELETE',\n          headers: {\n            Authorization: `Bearer ${this.session.data.authenticated.access_token}`\n          },\n          dataType: 'json',\n          data: payload,\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authPatch(path, payload, token = this.session.data.authenticated.access_token) {\n      return new _rsvp.default.Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'PATCH',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          data: JSON.stringify(payload),\n          dataType: 'json',\n          contentType: 'application/json'\n        }).then(resolve, reject);\n      });\n    }\n    authGetExcel(path, payload, token = this.session.data.authenticated.access_token) {\n      return new Promise((resolve, reject) => {\n        _jquery.default.ajax({\n          url: _environment.default.urls.api + _environment.default.urls.apiV1Path + path,\n          method: 'POST',\n          headers: {\n            Authorization: `Bearer ${token}`\n          },\n          xhrFields: {\n            responseType: 'blob'\n          },\n          data: JSON.stringify(payload),\n          contentType: 'application/json',\n          accept: 'application/vnd.ms-excel'\n        }).then(resolve, reject);\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/power-calendar\", [\"exports\", \"ember-power-calendar/services/power-calendar\"], function (_exports, _powerCalendar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _powerCalendar.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/services/power-calendar\"eaimeta@70e063a35619d71f\n});","define(\"portal/services/pricing\", [\"exports\", \"@ember/service\"], function (_exports, _service) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.PortalPricingError = void 0;\n  var _class2, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const FIVE_MINUTES = 5000 * 60;\n  const IDENTITY_TOKEN_URL = '/pricing-session';\n  class PortalPricingError extends Error {}\n  _exports.PortalPricingError = PortalPricingError;\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor2, this);\n    }\n    async portalApiPostHandler(url, payload) {\n      try {\n        return await this.portalApi.authPost(url, payload);\n      } catch (err) {\n        if (err?.responseJSON?.errors?.length) {\n          const message = err.responseJSON.errors[0].title;\n          throw new PortalPricingError(message);\n        }\n        throw err;\n      }\n    }\n    async getUnlinkedEstimates() {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApi.authGet('/buildaprice/unlinked-estimates', {\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async getSessionId() {\n      const entityId = this.sessionData.entity.id;\n      if (entityId === this._cachedSession?.entityId && this._cachedSession?.timestamp > new Date(new Date().getTime() - FIVE_MINUTES)) {\n        return this._cachedSession.sessionId;\n      }\n      const {\n        sessionId\n      } = await this.portalApiPostHandler(IDENTITY_TOKEN_URL, {\n        entity: entityId\n      });\n      this._cachedSession = {\n        sessionId,\n        timestamp: new Date(),\n        entityId\n      };\n      return sessionId;\n    }\n    async createPrice(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/create', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async duplicatePrice(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/duplicate', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async editPrice(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/edit', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async getMerchantList() {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/merchant/get', {\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async deletePrice(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/delete', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async getTemplates(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/template/get', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async addTemplates(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/add-templates', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async getPreloadedQuotes(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/get-preloaded-quotes', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async importMaterialsFromQuote(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/import-materials-from-quote', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async importMaterialsFromFile(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/import-materials-from-file', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async createTasksFromEstimate(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/create-tasks-from-estimate', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n    async getImportStatus(payload) {\n      const sessionId = await this.getSessionId();\n      const res = await this.portalApiPostHandler('/buildaprice/price/get-import-status', {\n        ...payload,\n        sessionId,\n        entityId: this.sessionData.entity.id\n      });\n      return res;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/quickbooks\", [\"exports\", \"@ember/service\", \"@ember/object\", \"portal/config/environment\", \"qs\"], function (_exports, _service, _object, _environment, _qs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object\",0,\"portal/config/environment\",0,\"qs\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const URLS = {\n    connect: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/connect',\n    disconnect: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/disconnect',\n    getAccounts: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/accounts',\n    updateQuickBooksContacts: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/contacts',\n    getEmployees: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/employees',\n    syncBill: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/bill',\n    syncInvoice: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/invoice',\n    createTimesheets: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/timesheets',\n    createContact: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/quickbooks/create-contact'\n  };\n  let QuickBooks = _exports.default = (_class = class QuickBooks extends _service.default {\n    get companyId() {\n      return this.connection?.quickbooksRealmId;\n    }\n    get companyName() {\n      return this.connection?.quickbooksCompanyName;\n    }\n    get isConnected() {\n      return this.connection?.isConnected;\n    }\n    get _canUse() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseQuickbooksIntegration');\n    }\n    get quickbooksUrl() {\n      if (this.ready) return _environment.default.urls.quickbooksUrl;\n      return '';\n    }\n    get connection() {\n      return this.sessionData.entity?.hasMany('quickBooksConnection').value()?.[0];\n    }\n    get _portalApiToken() {\n      return this.session.data.authenticated.access_token;\n    }\n    get ready() {\n      return this._canUse && this.companyId && this.isConnected;\n    }\n    async connect() {\n      const payload = {\n        entityId: this.sessionData.entity.id,\n        redirectUrl: window.location.toString()\n      };\n      const initQuickbooksResponse = await this.connectAjax(this._portalApiToken, payload);\n      const {\n        consentUrl\n      } = initQuickbooksResponse;\n      window.location.assign(consentUrl);\n    }\n    async disconnect() {\n      await this.disconnectAjax(this._portalApiToken, this.sessionData.entity.id);\n      await this.store.findRecord('quickbooks-oauth2-connection', this.connection.id, {\n        reload: true\n      });\n      window.location.reload();\n    }\n    updateContacts(entity, contact) {\n      const contactId = contact?.id;\n      return this.updateQuickBooksContactsAjax(this._portalApiToken, entity.id, contactId);\n    }\n    createContact(entity, contact) {\n      const contactId = contact?.id;\n      return this.createContactInQuickbooksAjax(this._portalApiToken, entity.id, contactId);\n    }\n    async getAccounts(entity) {\n      try {\n        return this.getQuickBooksAccountsAjax(this._portalApiToken, entity.id);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info('No quickBooks accounts found');\n        throw error;\n      }\n    }\n    async getEmployees(entity) {\n      try {\n        return this.getQuickBooksEmployeesAjax(this._portalApiToken, entity.id);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info('No employees found');\n      }\n    }\n    async sendBill(bill) {\n      try {\n        const response = await this.sendBillToQuickbooks(this._portalApiToken, bill.id);\n        await bill.reload();\n        return response;\n      } catch (error) {\n        return error?.detail || error?.error;\n      }\n    }\n    sendBills(invoices) {\n      return Promise.all(invoices.map(i => this.sendBill(i)));\n    }\n    async sendInvoice(invoice, options) {\n      try {\n        await this.sendInvoiceToQuickbooks(this._portalApiToken, invoice.id, options);\n        await invoice.reload();\n        this.notifications.success('Successfully sent to QuickBooks');\n      } catch (error) {\n        if (error.error === 'QUICKBOOKS_VALIDATION_EXCEPTION') {\n          const combinedMessage = error.detail.join('\\n');\n          this.notifications.warning({\n            message: combinedMessage,\n            clearDuration: 7000\n          });\n          return;\n        }\n        this.notifications.error('Failed to send invoice to QuickBooks');\n      }\n    }\n    createTimesheets(query) {\n      return this.createTimesheetsAjax(this._portalApiToken, query);\n    }\n    handleQuickbooksFetchRequest(callback) {\n      return async (...args) => {\n        try {\n          return await callback(...args);\n        } catch (error) {\n          const status = error?.status ?? error?.response?.status ?? error?.errors?.[0]?.status;\n          const bodyError = error?.response?.data?.error ?? error?.data?.error ?? error?.error;\n          const isQuickbooksAuthError = status === 401 || bodyError === 'Auth error';\n          if (isQuickbooksAuthError) {\n            const address = `${_environment.default.urls.app}/${this.sessionData.entity.id}/settings/integrations`;\n            error.wasAuthenticationError = true;\n            this.notifications.error({\n              error,\n              autoClear: false,\n              message: `${'Your QuickBooks organisation has been disconnected'} ${this.intl.t('common.Go to')} <a href=\"${address}\">settings</a> ${this.intl.t('common.to reconnect')}`\n            });\n            await this.sessionData.entity.reload();\n            (0, _object.get)(this, 'sessionData').notifyPropertyChange('entity');\n            return;\n          }\n          throw error;\n        }\n      };\n    }\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      this.connectAjax = connectAjax;\n      this.disconnectAjax = disconnectAjax;\n      this.updateQuickBooksContactsAjax = this.handleQuickbooksFetchRequest(updateQuickBooksContacts);\n      this.getQuickBooksAccountsAjax = this.handleQuickbooksFetchRequest(getQuickBooksAccounts);\n      this.getQuickBooksEmployeesAjax = this.handleQuickbooksFetchRequest(getQuickBooksEmployeesFromQuickbooks);\n      this.sendBillToQuickbooks = this.handleQuickbooksFetchRequest(sendBillToQuickbooks);\n      this.sendCreditNoteToQuickbooks = this.handleQuickbooksFetchRequest(sendCreditNoteToQuickbooks);\n      this.sendInvoiceToQuickbooks = this.handleQuickbooksFetchRequest(sendInvoiceToQuickbooks);\n      this.createTimesheetsAjax = this.handleQuickbooksFetchRequest(createTimesheetsInQuickbooks);\n      this.createContactInQuickbooksAjax = this.handleQuickbooksFetchRequest(createContactInQuickbooks);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  async function updateQuickBooksContacts(portalApiToken, entity, supplier) {\n    const query = _qs.default.stringify({\n      entity,\n      contact: supplier\n    });\n    return fetchRequestWithToken(`${URLS.updateQuickBooksContacts}?${query}`, portalApiToken, 'POST');\n  }\n  async function getQuickBooksAccounts(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getAccounts}/${entityId}`, portalApiToken, 'GET');\n  }\n  async function getQuickBooksEmployeesFromQuickbooks(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getEmployees}/${entityId}`, portalApiToken, 'GET');\n  }\n  async function sendBillToQuickbooks(portalApiToken, billId) {\n    return fetchRequestWithToken(`${URLS.syncBill}/${billId}`, portalApiToken, 'POST');\n  }\n  async function sendCreditNoteToQuickbooks(portalApiToken, billId) {\n    return fetchRequestWithToken(`${URLS.syncCreditNote}/${billId}`, portalApiToken, 'POST');\n  }\n  async function sendInvoiceToQuickbooks(portalApiToken, invoiceId, options) {\n    return fetchRequestWithToken(`${URLS.syncInvoice}/${invoiceId}`, portalApiToken, 'POST', options);\n  }\n  async function createTimesheetsInQuickbooks(portalApiToken, query) {\n    return fetchRequestWithToken(`${URLS.createTimesheets}`, portalApiToken, 'POST', query);\n  }\n  async function createContactInQuickbooks(portalApiToken, entityId, contactId) {\n    return fetchRequestWithToken(URLS.createContact, portalApiToken, 'POST', {\n      entity: entityId,\n      contact: contactId\n    });\n  }\n  async function connectAjax(portalApiToken, payload) {\n    return fetchRequestWithToken(URLS.connect, portalApiToken, 'POST', payload);\n  }\n  async function disconnectAjax(portalApiToken, entityId) {\n    const response = await fetch(`${URLS.disconnect}/${entityId}`, {\n      method: 'POST',\n      headers: {\n        Authorization: `Bearer ${portalApiToken}`\n      }\n    });\n    if (!response.ok) {\n      const error = await response.text();\n      throw error;\n    }\n    return response.text();\n  }\n  async function fetchRequestWithToken(url, portalApiToken, method = 'GET', body) {\n    const response = await fetch(url, {\n      method,\n      headers: {\n        Authorization: `Bearer ${portalApiToken}`,\n        'Content-Type': 'application/json'\n      },\n      ...(body ? {\n        body: JSON.stringify(body)\n      } : {})\n    });\n    if (response.status === 204) {\n      if (!response.ok) throw {\n        status: response.status\n      };\n      return null;\n    }\n    const contentType = response.headers.get('Content-Type') || '';\n    const responseData = contentType.includes('application/json') ? await response.json() : await response.text();\n    if (!response.ok) throw responseData;\n    return responseData;\n  }\n});","define(\"portal/services/reports-download\", [\"exports\", \"@ember/service\", \"portal/utils/csv-builder\", \"portal/utils/download\", \"portal/models/attachment\", \"@ember/object\"], function (_exports, _service, _csvBuilder, _download, _attachment, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/service\",0,\"portal/utils/csv-builder\",0,\"portal/utils/download\",0,\"portal/models/attachment\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"portalApi\", _descriptor, this);\n      _initializerDefineProperty(this, \"pdfExport\", _descriptor2, this);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor3, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor4, this);\n      _initializerDefineProperty(this, \"numberFormat\", _descriptor5, this);\n      _initializerDefineProperty(this, \"store\", _descriptor6, this);\n    }\n    async downloadAsPdf(id, fileName, title, hideClass, config) {\n      await this.pdfExport.generateAndDownloadPdf(id, `${fileName}.pdf`, title, hideClass, config);\n    }\n    async downloadAndSavePdf(id, fileName, title, hideClass, config, resource) {\n      const _fileName = `${fileName}.pdf`;\n      // generate blob\n      const blob = await this.pdfExport.generatePdf(id, title, hideClass, config);\n      (0, _download.download)(blob, _fileName, blob.type);\n\n      //save file to db and attach to project\n      try {\n        const file = new File([blob], _fileName, {\n          type: blob.type\n        });\n        const attachment = await _attachment.default.fromFileInput(file, this.store, this.sessionData.entity);\n        await attachment.save({\n          adapterOptions: {\n            meta: {\n              data: attachment.data\n            }\n          }\n        });\n        switch (modelName(resource)) {\n          case 'entity':\n            {\n              await this.store.createRecord('link-attachment-to-entity', {\n                attachment: attachment,\n                entity: resource\n              }).save();\n              break;\n            }\n          case 'project':\n            {\n              await this.store.createRecord('link-attachment-to-project', {\n                attachment: attachment,\n                project: resource\n              }).save();\n              break;\n            }\n          case 'task':\n            {\n              await this.store.createRecord('link-attachment-to-task', {\n                attachment: attachment,\n                task: resource\n              }).save();\n              break;\n            }\n        }\n      } catch (error) {\n        this.notifications.error({\n          message: 'Something went wrong while saving file',\n          error\n        });\n      }\n    }\n    async downloadAsCsv(fileName, thead, tfoot, title, data, resource = null) {\n      const blob = this.generateReportDataForCSV(fileName, thead, tfoot, title, data);\n      (0, _download.download)(blob, fileName, blob.type);\n      if (resource) {\n        try {\n          const file = new File([blob], `${fileName}.csv`, {\n            type: 'text/csv'\n          });\n          const attachment = await _attachment.default.fromFileInput(file, this.store, this.sessionData.entity);\n          await attachment.save({\n            adapterOptions: {\n              meta: {\n                data: attachment.data\n              }\n            }\n          });\n          switch (modelName(resource)) {\n            case 'entity':\n              {\n                await this.store.createRecord('link-attachment-to-entity', {\n                  attachment: attachment,\n                  entity: resource\n                }).save();\n                break;\n              }\n            case 'project':\n              {\n                await this.store.createRecord('link-attachment-to-project', {\n                  attachment: attachment,\n                  project: resource\n                }).save();\n                break;\n              }\n            case 'task':\n              {\n                await this.store.createRecord('link-attachment-to-task', {\n                  attachment: attachment,\n                  task: resource\n                }).save();\n                break;\n              }\n          }\n        } catch (error) {\n          this.notifications.error({\n            message: 'Something went wrong while saving file',\n            error\n          });\n        }\n      }\n    }\n    generateReportDataForCSV(fileName, thead, tfoot, title, data) {\n      const csv = [[title]];\n      if (thead) csv.push(thead);\n      const formatValue = item => {\n        const {\n          format,\n          value\n        } = item;\n        switch (format) {\n          case 'PERCENTAGE':\n            return this.numberFormat.format(value, {\n              style: 'percent',\n              maximumSignificantDigits: 2,\n              dashZero: true\n            });\n          case 'CURRENCY':\n            return this.numberFormat.format(value, {\n              style: 'currency',\n              dashZero: true\n            });\n          default:\n            return value;\n        }\n      };\n\n      // data is coming as array of arrays\n      const dataRows = function processRows(data) {\n        const csvRow = [];\n        const children = [];\n        for (const dataRow of data) {\n          if (Array.isArray(dataRow)) {\n            children.push(...processRows(dataRow));\n          } else {\n            const value = formatValue(dataRow);\n            csvRow.push(value);\n          }\n        }\n        return [csvRow, ...children];\n      }(data);\n      csv.push(...dataRows);\n      if (tfoot && tfoot.length) {\n        const footRows = function processRows(data) {\n          const csvRow = [];\n          const children = [];\n          for (const dataRow of data) {\n            if (Array.isArray(dataRow)) {\n              children.push(...processRows(dataRow));\n            } else {\n              const value = formatValue(dataRow);\n              csvRow.push(value);\n            }\n          }\n          return [csvRow, ...children];\n        }(tfoot);\n        csv.push(...footRows);\n      }\n      return (0, _csvBuilder.generateCSVBlob)(csv, fileName);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"portalApi\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"pdfExport\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"numberFormat\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n  const modelName = resource => {\n    // this can be passed proxy objects so we need to use old school getters\n    return resource ? (0, _object.get)(resource, '_internalModel.modelName') || (0, _object.get)(resource, 'constructor.modelName') : '';\n  };\n});","define(\"portal/services/session-data\", [\"exports\", \"@ember/service\", \"ember-local-storage\", \"@glimmer/tracking\", \"@ember/object\", \"jquery\", \"portal/config/environment\", \"moment\", \"portal/utils/get-default-language\"], function (_exports, _service, _emberLocalStorage, _tracking, _object, _jquery, _environment, _moment, _getDefaultLanguage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _dec, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"ember-local-storage\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"jquery\",0,\"portal/config/environment\",0,\"@ember/object\",0,\"moment\",0,\"portal/utils/get-default-language\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  function isDestroyingOrDestroyed(owner) {\n    return owner?.isDestroying || owner?.isDestroyed;\n  }\n  let _class = _exports.default = (_dec = (0, _emberLocalStorage.storageFor)('settings'), _class2 = class _class2 extends _service.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"store\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"router\", _descriptor3, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor4, this);\n      // TODO eventually use this service directly\n      _initializerDefineProperty(this, \"financialPortalPeriodSelector\", _descriptor5, this);\n      _initializerDefineProperty(this, \"persistedSettings\", _descriptor6, this);\n      _initializerDefineProperty(this, \"user\", _descriptor7, this);\n      _initializerDefineProperty(this, \"workerPseudoUser\", _descriptor8, this);\n      // the currently selected entity\n      _initializerDefineProperty(this, \"entity\", _descriptor9, this);\n      _initializerDefineProperty(this, \"entities\", _descriptor0, this);\n    }\n    get period() {\n      return this.financialPortalPeriodSelector.period;\n    }\n    set period(value) {\n      this.financialPortalPeriodSelector.period = value;\n    }\n    // but because of the poorly implemented parent entity concept, this is required\n    // we should fix the existing feature flags and permissions services to not\n    // use the parent entity id as some kind of state\n    get allowedEntities() {\n      return (this.entities || []).filter(e => {\n        // workers and admins don't have to deal with this bs\n        if (this.workerPseudoUser || this.user?.role === 'admin') return true;\n        if (this.user?.role === 'partner') {\n          // partners need all the entities (including the ones they don't have view access to)\n          // besides the parent entity for their main company. This is pretty hacky, but we will\n          // hardcode this until this flow is refactored.\n          const bpLicenseeParentEntityId = '5f88bd41bcf03b06f0878ddd';\n          return e.id !== bpLicenseeParentEntityId;\n        }\n\n        // filter the entities that the user has access to\n        return this.user?.includesSomeClaimsAboutEntity(e.id, 'canViewEntity');\n      });\n    }\n    async _initEntity(entityId) {\n      const entity = await this.store.findRecord('entity', entityId, {\n        // these records are needed to evaluate access control\n        include: 'attributes,financialOptions,pricingConnection,eaccountsInvoiceIntegration,xeroConnection,projects,quickBooksConnection,profitMargin',\n        adapterOptions: {\n          fields: {\n            entities: '_meta.calEducationCouponCode'\n          }\n        }\n      });\n      await this.store.query('entity-attribute', {});\n      this.entity = entity;\n    }\n    async _initEntities() {\n      // this should only be waited for if you need to\n      const entities = await this.store.query('entity', {\n        include: 'attributes'\n      }).then(e => e.toArray());\n      this.entities = entities;\n      return entities;\n    }\n    async _initUser(user) {\n      // if you're logged in with a worker code load the worker\n      if (user.isWorkerPseudoUser) {\n        const loadedWorker = await this.store.findRecord('worker', user.worker._id, {\n          include: 'entityAttributes,projectAttributes,taskAttributes'\n        });\n        this.workerPseudoUser = loadedWorker;\n        const language = loadedWorker?.language ?? (0, _getDefaultLanguage.getDefaultUserOrWorkerLanguage)();\n        this.intl.setLocale([language]);\n\n        // moment does not have support for zh-Hans\n        const momentLocal = language.toLowerCase().startsWith('zh') ? 'zh-cn' : language;\n        _moment.default.locale(momentLocal);\n        return;\n      }\n      const loadedUser = await this.store.findRecord('user', user.id, {\n        include: 'entityAttributes,entityGroups,pricingRoles,projectAttributes,taskAttributes,workerAttributes'\n      });\n      this.user = loadedUser;\n      // set language\n      const language = this.user.language ?? (0, _getDefaultLanguage.getDefaultUserOrWorkerLanguage)();\n      this.intl.setLocale([language]);\n\n      // moment does not have support for zh-Hans\n      const momentLocal = language.toLowerCase().startsWith('zh') ? 'zh-cn' : language;\n      _moment.default.locale(momentLocal);\n    }\n    async initApp(entityId = this.persistedSettings.get('lastEntity')) {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.session)) return;\n      const {\n        user\n      } = this.session.data.authenticated;\n      // TODO to prevent throwing an error to the user we should check if we're\n      // still authenticated before making any requests using the json api\n\n      // load the authenticated user and their permissions\n      // we do this first to make sure we're still authenticated\n      try {\n        await this._initUser(user);\n        if (isDestroyingOrDestroyed(this)) return;\n      } catch (_) {\n        // if this happens the user is not authenticated\n        await this.session.invalidate();\n        return;\n      }\n\n      // this should only be waited for if you need to\n      const entitiesPromise = this._initEntities();\n\n      // only wait for entities when we don't have a previously loaded entity to load\n      if (!entityId) {\n        await entitiesPromise;\n        if (isDestroyingOrDestroyed(this)) return;\n\n        // due to the allowed entities concept you must use the filtered list when assuming the\n        // first entity to select\n        // this needs to happen after the user is loaded\n        entityId = this.allowedEntities[0]?.id;\n      }\n\n      // this will happen when you don't have access to any entities\n      if (!entityId) return this.router.transitionTo('no-access');\n\n      // load the selected entity\n      try {\n        await this._initEntity(entityId);\n        if (isDestroyingOrDestroyed(this)) return;\n      } catch (_) {\n        // if this happens we don't have access for the entity\n        // dump our last logged in entity and restart\n        this.persistedSettings.set('lastEntity', null);\n        return this.initApp();\n      }\n\n      // navigate to the selected entity\n      this.changeEntity(entityId);\n    }\n    async reloadApp(entityId) {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.session)) return;\n      const {\n        user\n      } = this.session.data.authenticated;\n      // TODO to prevent throwing an error to the user we should check if we're\n      // still authenticated before making any requests using the json api\n\n      // we don't need to wait for this\n      this._initEntities();\n\n      // load the authenticated user and their permissions\n      try {\n        await this._initUser(user);\n        if (isDestroyingOrDestroyed(this)) return;\n      } catch (_) {\n        // if this happens the user is not authenticated\n        await this.session.invalidate();\n        return;\n      }\n      // load the selected entity\n      try {\n        await this._initEntity(entityId);\n        if (isDestroyingOrDestroyed(this)) return;\n      } catch (_) {\n        // if this happens we don't have access for the entity\n        // dump our last logged in entity and restart\n        this.persistedSettings.set('lastEntity', null);\n        return this.initApp();\n      }\n    }\n    changeEntity(entityId) {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.router)) return;\n      this.entity = this.store.peekRecord('entity', entityId);\n      // remember the last selected entity for next time\n      this.persistedSettings.set('lastEntity', entityId);\n      this.router.transitionTo('entity', entityId);\n    }\n\n    // login as admin only feature\n    get isUsingLoginAs() {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.session)) return false;\n      return Boolean(this.session.data.authenticated.originalUserData);\n    }\n    get isUsingAdminMode() {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.persistedSettings)) return false;\n      return this.persistedSettings.get('adminMode');\n    }\n    toggleAdminMode() {\n      if (isDestroyingOrDestroyed(this) || isDestroyingOrDestroyed(this.router) || isDestroyingOrDestroyed(this.persistedSettings)) return;\n      this.persistedSettings.set('adminMode', !this.isUsingAdminMode);\n      this.router.transitionTo('index');\n    }\n    loginAs(user) {\n      this.persistedSettings.set('adminMode', false);\n      const access_token = (0, _object.get)(this, 'session.data.authenticated.access_token');\n      _jquery.default.ajax({\n        method: 'post',\n        url: `${_environment.default.urls.api}${_environment.default.urls.apiV1Path}/login-as/${(0, _object.get)(user, 'id')}`,\n        headers: {\n          Authorization: `Bearer ${access_token}`\n        },\n        dataType: 'json'\n      }).then(async authResponse => {\n        authResponse.originalUserData = (0, _object.get)(this, 'session.data.authenticated');\n        await (0, _object.get)(this, 'session').authenticate('authenticator:login-as', authResponse);\n\n        // Reload the application with new user data.\n        location.reload();\n      });\n    }\n    exitLoginAs() {\n      const authenticatedData = (0, _object.get)(this, 'session.data.authenticated');\n      if (!(0, _object.get)(authenticatedData, 'originalUserData')) return console.error('There is no user data to go back to. Just log out.');\n\n      // Reauthenticate using the original user data. This is what will subsequently be saved to local storage\n      const authenticate = (0, _object.get)(this, 'session').authenticate('authenticator:login-as', (0, _object.get)(authenticatedData, 'originalUserData'));\n\n      // Reload the application with new user data.\n      authenticate.then(() => {\n        window.location.reload();\n      });\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, \"financialPortalPeriodSelector\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, \"persistedSettings\", [_dec], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"user\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"workerPseudoUser\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"entity\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"entities\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _applyDecoratedDescriptor(_class2.prototype, \"toggleAdminMode\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleAdminMode\"), _class2.prototype), _class2);\n});","define(\"portal/services/session\", [\"exports\", \"@ember/service\", \"ember-simple-auth/services/session\"], function (_exports, _service, _session) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class2, _descriptor;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"ember-simple-auth/services/session\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let _class = _exports.default = (_class2 = class _class2 extends _session.default {\n    constructor(...args) {\n      super(...args);\n      _initializerDefineProperty(this, \"router\", _descriptor, this);\n    }\n    // https://ember-simple-auth.com/api/SessionService.html\n    // This method is called whenever the session goes from being unauthenticated to being authenticated.\n    handleAuthentication(routeAfterAuthentication) {\n      if (!this.data.authenticated.user?.hasAcceptedTerms) {\n        this.router.transitionTo('terms-of-service');\n        return;\n      }\n      super.handleAuthentication(routeAfterAuthentication);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class2.prototype, \"router\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class2);\n});","define(\"portal/services/store\", [\"exports\", \"ember-data/store\"], function (_exports, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-data/store\"eaimeta@70e063a35619d71f\n  class ApplicationStore extends _store.default {\n    simpleQuery(modelName, query, options = {}) {\n      let simpleQuery = {\n        filter: {\n          simple: query\n        }\n      };\n      for (let [key, value] of Object.entries(options)) {\n        simpleQuery[key] = value;\n      }\n      return this.query(modelName, simpleQuery);\n    }\n    simpleQueryRecord(modelName, query, options = {}) {\n      let simpleQuery = {\n        filter: {\n          simple: query\n        }\n      };\n      for (let [key, value] of Object.entries(options)) {\n        simpleQuery[key] = value;\n      }\n      return this.queryRecord(modelName, simpleQuery);\n    }\n  }\n  _exports.default = ApplicationStore;\n});","define(\"portal/services/system-announcements\", [\"exports\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _service, _tracking, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const POLL_INTERVAL_MS = 30 * 60 * 1000; // 30 minutes\n  let SystemAnnouncementsService = _exports.default = (_class = class SystemAnnouncementsService extends _service.default {\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"buildaPrice\", _descriptor, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor2, this);\n      _initializerDefineProperty(this, \"announcementData\", _descriptor3, this);\n      this.pollService();\n    }\n    async checkForData() {\n      if (this.announcementData?.length) {\n        return;\n      }\n      let data = await this.buildaPrice.getSystemAnnouncements(this.intl?.locale?.[0]);\n      let unreadAnnouncements = data.filter(item => !item.archived && !item.read);\n      if (unreadAnnouncements.length) {\n        this.announcementData = unreadAnnouncements;\n      }\n    }\n    async pollService() {\n      try {\n        await this.checkForData();\n      } catch (_) {\n        // ignore error\n      } finally {\n        setTimeout(() => this.pollService(), POLL_INTERVAL_MS);\n      }\n    }\n    async dismissAnnouncementModal() {\n      try {\n        // mark them as read\n        const payload = this.announcementData.map(item => ({\n          systemAnnouncementId: item.id,\n          read: true,\n          archived: true\n        }));\n        await this.buildaPrice.updateSystemAnnouncements(payload);\n      } catch {\n        // ignore error\n      } finally {\n        this.announcementData = null;\n      }\n    }\n    closeAnnouncementModal() {\n      this.announcementData = null;\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"buildaPrice\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"announcementData\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return null;\n    }\n  }), _applyDecoratedDescriptor(_class.prototype, \"dismissAnnouncementModal\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"dismissAnnouncementModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeAnnouncementModal\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeAnnouncementModal\"), _class.prototype), _class);\n});","define(\"portal/services/xero-integration\", [\"exports\", \"@ember/service\", \"@ember/object\", \"rsvp\", \"portal/config/environment\", \"qs\"], function (_exports, _service, _object, _rsvp, _environment, _qs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object\",0,\"rsvp\",0,\"portal/config/environment\",0,\"qs\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  const XeroAppsEnum = {\n    buildaPrice: 'buildaPrice',\n    stepUp: 'stepUp'\n  };\n  const URLS = {\n    connect: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/connect',\n    disconnect: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/disconnect',\n    oauthCallback: _environment.default.xero.callback,\n    authorizeRedirect: _environment.default.xero.authorizeRedirect,\n    syncBill: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/sync-invoice',\n    syncInvoice: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/integrations/xero/push-invoice',\n    syncCreditNote: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/sync-credit-note',\n    updateXeroSuppliers: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/update-suppliers',\n    createXeroContact: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/create-contact',\n    createXeroTimesheets: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/create-timesheets',\n    getAccounts: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/get-accounts',\n    getEmployees: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/get-employees',\n    getPayRunCalendars: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/get-pay-run-calendars',\n    getEarningsRates: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/get-earnings-rates',\n    getTrackingCategoryOptions: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/get-tracking-categories',\n    getBalances: _environment.default.urls.api + _environment.default.urls.apiV1Path + '/xero/balances'\n  };\n  let XeroService = _exports.default = (_class = class XeroService extends _service.default {\n    // Shortcuts to outside info\n    get connection() {\n      return this.sessionData.entity?.hasMany('xeroConnection').value()?.[0];\n    }\n    get companyId() {\n      return this.connection?.xeroCompanyId;\n    }\n    get companyName() {\n      return this.connection?.xeroCompanyName;\n    }\n    get _canUse() {\n      return this.newFeatureFlags.includesFeatureFlags('canUseXeroIntegration');\n    }\n    get _portalApiToken() {\n      return this.session.data.authenticated.access_token;\n    }\n\n    /* -------------------------- Public members and functions -------------------------- */\n\n    /**\n     * Says whether the integration is ready to use. To be ready, the user and entity must have\n     * adequate permissions (as dictated by permissions service), and the entity must be set up.\n     */\n    get ready() {\n      return this._canUse && this.companyId;\n    }\n\n    /**\n     * @returns {Promise<void>}\n     */\n    async connect() {\n      const xeroApp = this.sessionData.entity?.brand === 'STEP_UP' ? XeroAppsEnum.stepUp : XeroAppsEnum.buildaPrice;\n      const payload = {\n        entityId: this.sessionData.entity.id,\n        redirectUrl: window.location.toString(),\n        app: xeroApp\n      };\n      const initXeroResponse = await this.connectAjax(this._portalApiToken, payload);\n      const {\n        consentUrl\n      } = initXeroResponse;\n      this.redirectTo(consentUrl);\n    }\n\n    /**\n     * Hands the browser over to Xero's consent screen. Split out of `connect` so\n     * tests can observe the hand-off without leaving the page: `location.assign`\n     * is unforgeable, so it cannot be stubbed in place.\n     * @param {String} url\n     */\n    redirectTo(url) {\n      window.location.assign(url);\n    }\n\n    /**\n     * Disconnects the entity from Xero. If promise resolves, it was successful.\n     * @returns {Promise<void>}\n     */\n    async disconnect() {\n      const entity = this.sessionData.entity;\n      const connections = entity.hasMany('xeroConnection').value()?.toArray() || [];\n      await this.disconnectAjax(this._portalApiToken, entity.id);\n      connections.forEach(connection => connection.unloadRecord());\n    }\n\n    /**\n     * Creates a matching invoice on whichever Xero company has been authenticated.\n     * Rejects immediately if there is no authentication, rejects if anything else goes wrong.\n     * Takes care of notifications.\n     * @param {Bill} bill - The bill to send to Xero\n     * @returns {Promise<null>} Resolves when the invoice is successfully sent to Xero\n     */\n    async sendBill(invoice) {\n      const xeroCreditNoteAccountError = new Error('All credit note items must have a Xero account');\n      try {\n        const totalPrice = invoice.totalPrice;\n        let response;\n        // invoice has a positive total so make an invoice\n        if (totalPrice >= 0) {\n          response = await this.sendBillToXero(this._portalApiToken, invoice.id);\n          // invoice has a negative total so make a credit note\n        } else if (totalPrice < 0) {\n          // account codes are required for each item of a xero credit note\n          const xeroReady = invoice.hasMany('items').value().toArray().every(item => item.belongsTo('glAccount').id());\n          if (xeroReady) {\n            response = await this.sendCreditNoteToXero(this._portalApiToken, invoice.id);\n          } else {\n            throw xeroCreditNoteAccountError;\n          }\n        }\n\n        // Refresh the invoice to make sure we get the xeroInvoiceId is loaded\n        await invoice.reload();\n        return response;\n      } catch (error) {\n        // error has been handled\n        if (error.wasAuthenticationError) return;\n\n        // handle for unmapped items on credit note\n        if (error === xeroCreditNoteAccountError) {\n          this.notifications.warning(error);\n          return;\n        }\n        const isXeroInvoiceValidationError = 'invoice:validation_error' === (0, _object.get)(error, 'errors.0.code');\n        if (isXeroInvoiceValidationError) {\n          this.notifications.warning({\n            message: (0, _object.get)(error, 'errors.0.title'),\n            clearDuration: 5000\n          });\n          return;\n        }\n        this.notifications.error(this.intl.t('services.xero-integration.Failed to send invoice to Xero'));\n        return;\n      }\n    }\n\n    /**\n     * Sends invoices to Xero.\n     * @param {Array} invoices - The invoices you want sent to Xero\n     * @returns {Promise<null>} Resolves when the invoice is successfully sent to Xero\n     */\n    sendBills(invoices) {\n      return _rsvp.Promise.all(invoices.map(i => this.sendBill(i)));\n    }\n\n    /**\n     * Creates a matching invoice on whichever Xero company has been authenticated.\n     * Rejects immediately if there is no authentication, rejects if anything else goes wrong.\n     * Takes care of notifications.\n     * @param {Invoice} invoice - The invoice to send to Xero\n     * @returns {Promise<null>} Resolves when the invoice is successfully sent to Xero\n     */\n    async sendInvoice(invoice, options) {\n      try {\n        await this.sendInvoiceToXero(this._portalApiToken, invoice.id, options);\n\n        // Refresh the invoice to make sure we get the xeroInvoiceId is loaded\n        await invoice.reload();\n        this.notifications.success(this.intl.t('services.xero-integration.Successfully sent to Xero'));\n      } catch (error) {\n        // error has been handled\n        if (error.wasAuthenticationError) return;\n        if (error.error === 'XERO_VALIDATION_EXCEPTION') {\n          const combinedMessage = error.detail.join('\\n');\n          this.notifications.warning({\n            message: combinedMessage,\n            clearDuration: 7000\n          });\n          return;\n        }\n        this.notifications.error(this.intl.t('services.xero-integration.Failed to send invoice to Xero'));\n      }\n    }\n\n    /**\n     * Finds all contacts on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get contacts for\n     * @param {Supplier} supplier - (Optional) The supplier to update\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    updateXeroSuppliers(entity, supplier) {\n      const supplierId = supplier && supplier.id;\n      return this.updateXeroSuppliersAjax(this._portalApiToken, entity.id, supplierId);\n    }\n\n    /**\n     * Creates a Xero contact from a supplier.\n     * @param {Entity} entity - The entity you want to create the contact from\n     * @param {Supplier} supplier - The supplier you want to sent to Xero\n     * @returns {Promise}\n     */\n    createXeroContact(entity, supplier) {\n      const supplierId = supplier && supplier.id;\n      return this.createXeroContactAjax(this._portalApiToken, entity.id, supplierId);\n    }\n    createXeroTimesheets(query) {\n      return this.createXeroTimesheetsAjax(this._portalApiToken, query);\n    }\n\n    /**\n     * Finds all accounts on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get xero accounts for\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    async getAccounts(entity) {\n      return this.getXeroAccountsAjax(this._portalApiToken, entity.id).catch(error => {\n        if (error.status === 404) this.notifications.info(this.intl.t('services.xero-integration.No Xero accounts found'));\n        throw error;\n      });\n    }\n\n    /**\n     * Finds all employees on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get xero accounts for\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    async getEmployees(entity) {\n      try {\n        return this.getXeroEmployeesAjax(this._portalApiToken, entity.id);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info(this.intl.t('services.xero-integration.No Xero employees found'));\n        // TODO handle this error correctly - we need our Xero developer app fixed\n        this.notifications.warning(this.intl.t('services.xero-integration.yourXeroOrganisationDoesNotHavePayrollSetupCorrectly'));\n      }\n    }\n\n    /**\n     * Finds all xero tracking category options on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get xero accounts for\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    async getTrackingCategoryOptions(entity) {\n      try {\n        return await this.getXeroTrackingCategoryOptionsAjax(this._portalApiToken, entity.id);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info(this.intl.t('services.xero-integration.No Xero category options found'));\n        // TODO handle this error correctly - we need our Xero developer app fixed\n        this.notifications.warning(this.intl.t('services.xero-integration.yourXeroOrganisationDoesNotHavePayrollSetupCorrectly'));\n      }\n    }\n\n    /**\n     * Finds all pay run calendars on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get xero accounts for\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    async getPayRunCalendars(entity) {\n      try {\n        const entityId = entity.id;\n        return await this.getXeroPayRunCalendarsAjax(this._portalApiToken, entityId);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info(this.intl.t('services.xero-integration.No Xero payroll calendars found'));\n        // TODO handle this error correctly - we need our Xero developer app fixed\n        this.notifications.warning(this.intl.t('services.xero-integration.yourXeroOrganisationDoesNotHavePayrollSetupCorrectly'));\n      }\n    }\n\n    /**\n     * Finds all earnings rates on the entities linked Xero account.\n     * @param {Entity} entity - The entity you want to get xero accounts for\n     * @returns {Promise} suppliers - The new Xero suppliers\n     */\n    async getXeroEarningsRates(entity) {\n      try {\n        const entityId = entity.id;\n        return await this.getXeroEarningsRatesAjax(this._portalApiToken, entityId);\n      } catch (error) {\n        if (error.status === 404) this.notifications.info(this.intl.t('services.xero-integration.No Xero earnings rates found'));\n        // TODO handle this error correctly - we need our Xero developer app fixed\n        this.notifications.warning(this.intl.t('services.xero-integration.yourXeroOrganisationDoesNotHavePayrollSetupCorrectly'));\n      }\n    }\n    async getXeroBalances(payload) {\n      return this.getXeroBalancesAjax(this._portalApiToken, payload);\n    }\n\n    /**\n     * Handles errors from Ajax functions.\n     * @param {Function} callback The Ajax request to handle\n     * @returns {callback<Promise>} The Ajax request\n     */\n    handleXeroFetchRequest(callback) {\n      return async (...args) => {\n        const intl = this.intl;\n        try {\n          return await callback(...args);\n        } catch (error) {\n          const title = error?.errors?.[0]?.title || error?.title;\n          const status = error?.errors?.[0]?.status || error?.status;\n          if (title === 'Xero Error: Minute rate limit exceeded' && status === '429') {\n            this.notifications.error({\n              error,\n              autoClear: false,\n              message: intl.t('services.xero-integration.youHaveExportedTooManyItemsToXeroTooQuicklyPleaseWaitAMinuteBeforeSendingMoreOrExportASmallerBatch') // eslint-disable-line max-len\n            });\n          } else if (status === '403' && ['The entity is not authenticated to Xero', 'The entity has a stale Xero refresh token and must be reconnected', 'A xero connection can not be found for entity'].includes(title)) {\n            const address = `${_environment.default.urls.app}/${this.sessionData.entity.id}/settings/integrations`;\n            error.wasAuthenticationError = true;\n            this.notifications.error({\n              error,\n              autoClear: false,\n              message: `${intl.t('services.xero-integration.yourXeroOrganisationHasBeenDisconnected')} ${intl.t('common.Go to')} <a href=\"${address}\">settings</a> ${intl.t('common.to reconnect')}`\n            });\n            await this.sessionData.entity.reload();\n            (0, _object.get)(this, 'sessionData').notifyPropertyChange('entity');\n          }\n          throw error;\n        }\n      };\n    }\n    handleV2XeroFetchRequest(callback) {\n      return async (...args) => {\n        try {\n          return await callback(...args);\n        } catch (error) {\n          const isXeroAuthError = error?.error === 'XERO_AUTH_ERROR';\n          if (isXeroAuthError) {\n            const address = `${_environment.default.urls.app}/${this.sessionData.entity.id}/settings/integrations`;\n            error.wasAuthenticationError = true;\n            this.notifications.error({\n              error,\n              autoClear: false,\n              message: `${this.intl.t('services.xero-integration.yourXeroOrganisationHasBeenDisconnected')} ${this.intl.t('common.Go to')} <a href=\"${address}\">settings</a> ${this.intl.t('common.to reconnect')}`\n            });\n            await this.sessionData.entity.reload();\n            (0, _object.get)(this, 'sessionData').notifyPropertyChange('entity');\n            return;\n          }\n          throw error;\n        }\n      };\n    }\n\n    /* -------------------------- Private members and functions -------------------------- */\n    /*\n    Async calls. Add them to context so that they can be mocked in testing.\n    Also declare them outside of context to enforce purity.\n    */\n\n    constructor() {\n      super(...arguments);\n      _initializerDefineProperty(this, \"sessionData\", _descriptor, this);\n      _initializerDefineProperty(this, \"session\", _descriptor2, this);\n      _initializerDefineProperty(this, \"store\", _descriptor3, this);\n      _initializerDefineProperty(this, \"newFeatureFlags\", _descriptor4, this);\n      _initializerDefineProperty(this, \"notifications\", _descriptor5, this);\n      _initializerDefineProperty(this, \"intl\", _descriptor6, this);\n      this.connectAjax = connectAjax;\n      this.disconnectAjax = disconnectAjax;\n      this.sendBillToXero = this.handleXeroFetchRequest(sendBillToXero);\n      this.sendInvoiceToXero = this.handleV2XeroFetchRequest(sendInvoiceToXero);\n      this.sendCreditNoteToXero = this.handleXeroFetchRequest(sendCreditNoteToXero);\n      this.updateXeroSuppliersAjax = this.handleXeroFetchRequest(updateXeroSuppliersAjax);\n      this.createXeroContactAjax = this.handleXeroFetchRequest(createXeroContactAjax);\n      this.createXeroTimesheetsAjax = this.handleXeroFetchRequest(createXeroTimesheetsAjax);\n      this.getXeroAccountsAjax = this.handleXeroFetchRequest(getXeroAccountsAjax);\n      this.getXeroEmployeesAjax = this.handleXeroFetchRequest(getXeroEmployeesAjax);\n      this.getXeroTrackingCategoryOptionsAjax = this.handleXeroFetchRequest(getXeroTrackingCategoryOptionsAjax);\n      this.getXeroBalancesAjax = this.handleXeroFetchRequest(getXeroBalancesAjax);\n      this.getXeroPayRunCalendarsAjax = this.handleXeroFetchRequest(getXeroPayRunCalendarsAjax);\n      this.getXeroEarningsRatesAjax = this.handleXeroFetchRequest(getXeroEarningsRatesAjax);\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"sessionData\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"newFeatureFlags\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"notifications\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"intl\", [_service.inject], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _class);\n  /**\n   * Requests that the server send the given invoice to Xero.\n   * @param {String} portalApiToken\n   * @param {String} invoiceId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function sendBillToXero(portalApiToken, invoiceId) {\n    return fetchRequestWithToken(`${URLS.syncBill}/${invoiceId}`, portalApiToken, 'POST');\n  }\n\n  /**\n   * Requests that the server send the given invoice to Xero.\n   * @param {String} portalApiToken\n   * @param {String} invoiceId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function sendInvoiceToXero(portalApiToken, invoiceId, options) {\n    return fetchRequestWithToken(`${URLS.syncInvoice}/${invoiceId}`, portalApiToken, 'POST', options);\n  }\n\n  /**\n   * Requests that the server send the given invoice to Xero.\n   * @param {String} portalApiToken\n   * @param {String} invoiceId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function sendCreditNoteToXero(portalApiToken, invoiceId) {\n    return fetchRequestWithToken(`${URLS.syncCreditNote}/${invoiceId}`, portalApiToken, 'POST');\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero contacts for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entity\n   * @param {String} supplier - (optional)\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function updateXeroSuppliersAjax(portalApiToken, entity, supplier) {\n    const query = _qs.default.stringify({\n      entity,\n      supplier\n    });\n    return fetchRequestWithToken(`${URLS.updateXeroSuppliers}?${query}`, portalApiToken, 'POST');\n  }\n\n  /**\n   * Requests that the server create a Xero contact from the supplier provided.\n   * @param {String} portalApiToken\n   * @param {String} entity\n   * @param {String} supplier\n   * @returns {Promise}\n   */\n  async function createXeroContactAjax(portalApiToken, entity, supplier) {\n    const query = _qs.default.stringify({\n      entity,\n      supplier\n    });\n    return fetchRequestWithToken(`${URLS.createXeroContact}?${query}`, portalApiToken, 'POST');\n  }\n\n  /**\n   * TODO\n   * @param {String} portalApiToken\n   * @param {Object} query\n   * @returns {Promise}\n   */\n  async function createXeroTimesheetsAjax(portalApiToken, query) {\n    return fetchRequestWithToken(`${URLS.createXeroTimesheets}`, portalApiToken, 'POST', query);\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero accounts for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entityId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function getXeroAccountsAjax(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getAccounts}/${entityId}`, portalApiToken, 'GET');\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero employees for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entityId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function getXeroEmployeesAjax(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getEmployees}/${entityId}`, portalApiToken, 'GET');\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero category options for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entityId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function getXeroTrackingCategoryOptionsAjax(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getTrackingCategoryOptions}/${entityId}`, portalApiToken, 'GET');\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero pay run calendars for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entityId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function getXeroPayRunCalendarsAjax(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getPayRunCalendars}/${entityId}`, portalApiToken, 'GET');\n  }\n\n  /**\n   * Requests that the server saves and sends the Xero pay run calendars for this entity.\n   * @param {String} portalApiToken\n   * @param {String} entityId\n   * @returns {Promise} Resolves if the operation was a success.\n   */\n  async function getXeroEarningsRatesAjax(portalApiToken, entityId) {\n    return fetchRequestWithToken(`${URLS.getEarningsRates}/${entityId}`, portalApiToken, 'GET');\n  }\n  async function getXeroBalancesAjax(portalApiToken, payload) {\n    return fetchRequestWithToken(`${URLS.getBalances}`, portalApiToken, 'POST', payload);\n  }\n\n  /**\n   * Gets a request token from the server. First step of oauth.\n   * @param {String} portalApiToken\n   * @param {object} payload\n   * @returns {Promise<Object>} Contains `request_token` which needs to be added to the query string when redirecting to Xero\n   */\n  async function connectAjax(portalApiToken, payload) {\n    return fetchRequestWithToken(URLS.connect, portalApiToken, 'POST', payload);\n  }\n  async function disconnectAjax(portalApiToken, entityId) {\n    const response = await fetch(`${URLS.disconnect}/${entityId}`, {\n      method: 'POST',\n      headers: {\n        Authorization: `Bearer ${portalApiToken}`\n      }\n    });\n    if (!response.ok) {\n      const error = await response.text();\n      throw error;\n    }\n    return response.text();\n  }\n\n  /**\n   *\n   * @param {string} url\n   * @param {string} portalApiToken\n   * @param {string} [method='GET'] - The HTTP method. Examples: 'GET', 'POST', 'PUT', 'DELETE'\n   * @param {string} query\n   * @param {string} body\n   * @returns\n   */\n  async function fetchRequestWithToken(url, portalApiToken, method = 'GET', body) {\n    const response = await fetch(url, {\n      method,\n      headers: {\n        Authorization: `Bearer ${portalApiToken}`,\n        'Content-Type': 'application/json'\n      },\n      ...(body ? {\n        body: JSON.stringify(body)\n      } : {})\n    });\n    const contentType = response.headers.get('Content-Type') || '';\n    let responseData;\n    if (contentType.includes('application/json')) {\n      responseData = await response.json();\n    } else {\n      responseData = await response.text();\n    }\n    if (!response.ok) {\n      throw responseData;\n    }\n    return responseData;\n  }\n});","define(\"portal/session-stores/application\", [\"exports\", \"ember-simple-auth/session-stores/adaptive\", \"portal/config/environment\"], function (_exports, _adaptive, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-simple-auth/session-stores/adaptive\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _adaptive.default.extend({\n    // Use a different key when using Mirage, just so we don't have to keep logging back in when switching\n    localStorageKey: _environment.default.useMirage ? 'ember_simple_auth:mirage_session' : 'ember_simple_auth:session'\n  });\n});","define(\"portal/storages/settings\", [\"exports\", \"ember-local-storage/local/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-local-storage/local/object\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = _object.default.extend();\n});","define(\"portal/templates/admin-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"TLdMLr8c\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/admin-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! TODO this entire route isn't setup for mobile because it isn't accessible and it's admin only }}\n  {{#if (media 'isDesktop')}}\n    <TitleBar>\n      <div\n        class='d-flex align-items-center mx-3'\n        {{! ember wormhole id }}\n        id='title-bar__content'\n      ></div>\n  \n    </TitleBar>\n    <div class='page__container'>\n      <ModuleNavigation::Admin />\n  \n      <main class='page__container-content'>\n        {{outlet}}\n      </main>\n    </div>\n  {{else}}\n    <MobileTitleBar>\n      <div class='mobile-title-bar__left'>\n        <FromElsewhere @name='mobile-title-bar-left-content' />\n      </div>\n      <div class='mobile-title-bar__middle'>\n        <FromElsewhere @name='mobile-title-bar-middle-content' />\n      </div>\n      <div class='mobile-title-bar__right'>\n        <FromElsewhere @name='mobile-title-bar-right-content' />\n        <MobileTitleBar::Avatar>\n          <FromElsewhere @name='mobile-title-bar-avatar-content' />\n        </MobileTitleBar::Avatar>\n      </div>\n    </MobileTitleBar>\n    <MobileSideMenu>\n      <FromElsewhere @name='mobile-side-menu-content' />\n    </MobileSideMenu>\n  \n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'module-navigation/admin'}}\n    />\n    <main class='page__container-content'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"WIsXvq3A\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center mx-3\\\"],[14,1,\\\"title-bar__content\\\"],[12],[13],[1,\\\"\\\\n\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,4],null,null,null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,7],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,8],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mobile-title-bar__left\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-left-content\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mobile-title-bar__middle\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-middle-content\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mobile-title-bar__right\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-right-content\\\"]],null],[1,\\\"\\\\n      \\\"],[8,[39,10],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,9],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-avatar-content\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[8,[39,11],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,9],null,[[\\\"@name\\\"],[\\\"mobile-side-menu-content\\\"]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,12],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/admin\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,7],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"title-bar\\\",\\\"div\\\",\\\"module-navigation/admin\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"mobile-title-bar\\\",\\\"from-elsewhere\\\",\\\"mobile-title-bar/avatar\\\",\\\"mobile-side-menu\\\",\\\"to-elsewhere\\\"]]\",\n    \"moduleName\": \"portal/templates/admin.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/announcements\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>Announcements</h2>\n    </header>\n    {{outlet}}\n  </article>\n  */\n  {\n    \"id\": \"6bjZNnOe\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"Announcements\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/announcements.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/announcements/announcement\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-3 ms-1 mt-1'>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    </div>\n    <div hidden {{did-insert (perform this.initProps)}} />\n    <PtlForm class='width--medium'>\n      <div class='d-flex mb-3 align-items-center'>\n        <h3 class='m-0'>Details</h3>\n      </div>\n      <PtlInput\n        @type='text'\n        @label='Title'\n        @key='title'\n        @model={{this.announcementChangeset}}\n        @required={{true}}\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n      />\n      <PtlInput\n        @type='richtext'\n        @label='Message'\n        @key='message'\n        @model={{this.announcementChangeset}}\n        @required={{true}}\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n        @height='200px'\n      />\n  \n      <PtlInput\n        @type='datetime'\n        @label='Valid from'\n        @key='validFrom'\n        @dependantValidationKeys={{array 'validUntil'}}\n        @model={{this.announcementChangeset}}\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n      />\n      <PtlInput\n        @type='datetime'\n        @label='Valid until'\n        @key='validUntil'\n        @dependantValidationKeys={{array 'validFrom'}}\n        @model={{this.announcementChangeset}}\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n      />\n  \n      <PtlInput\n        @type='checkbox'\n        @label='Important'\n        @key='important'\n        @model={{this.announcementChangeset}}\n        @role='switch'\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n      />\n  \n      <h3>Who will see this announcement</h3>\n  \n      <h5 class='m-0 mb-2'>Apply entity presets</h5>\n      <div class='mb-3'>\n        <button\n          type='button'\n          class='btn btn-primary btn-sm'\n          disabled={{this.hasBuildaPriceFeatures}}\n          {{on 'click' this.setBuildaPriceFeatures}}\n        >\n          All Builda Price entities\n        </button>\n        <button\n          type='button'\n          {{on 'click' this.setFinancialPortalFeatures}}\n          disabled={{this.hasFinancialPortalFeatures}}\n          class='btn btn-primary btn-sm ms-2'\n        >\n          All Financial Portal entities\n        </button>\n      </div>\n      <div class='mb-3'>\n        <label class='no-wrap mb-1'>\n          Entity features\n          <sup class='text-danger'>*</sup>\n        </label>\n        <PowerSelectMultiple\n          @options={{this.model.entityAttributes.last.value}}\n          @selected={{this.entityAttributes}}\n          @searchEnabled={{true}}\n          @searchField='id'\n          @renderInPlace={{true}}\n          required={{true}}\n          @disabled={{this.saveAnnouncement.isRunning}}\n          @onChange={{fn (mut this.entityAttributes)}}\n          as |entityAttribute|\n        >\n          {{entityAttribute.description}}\n        </PowerSelectMultiple>\n      </div>\n  \n      <h5 class='m-0 mb-2'>Apply user presets</h5>\n      <div class='mb-3'>\n        <button\n          type='button'\n          class='btn btn-primary btn-sm'\n          disabled={{this.hasEntityManagerFeatures}}\n          {{on 'click' this.setEntityManagerFeatures}}\n        >\n          All entity managers\n        </button>\n        <button\n          type='button'\n          {{on 'click' this.setEntityUserFeatures}}\n          disabled={{this.hasEntityUserFeatures}}\n          class='btn btn-primary btn-sm ms-2'\n        >\n          Everyone on the entity\n        </button>\n      </div>\n  \n      <div class='mb-3'>\n        <label class='no-wrap mb-1'>\n          User permissions\n          <sup class='text-danger'>*</sup>\n        </label>\n        <PowerSelectMultiple\n          @options={{this.model.userAttributes.last.value}}\n          @selected={{this.userAttributes}}\n          @searchEnabled={{true}}\n          @searchField='id'\n          @renderInPlace={{true}}\n          required={{true}}\n          @disabled={{this.saveAnnouncement.isRunning}}\n          @onChange={{fn (mut this.userAttributes)}}\n          as |userAttribute|\n        >\n          {{userAttribute.description}}\n        </PowerSelectMultiple>\n      </div>\n      <PtlInput\n        @type='select'\n        @label=\"User's language\"\n        @key='language'\n        @selectNoBlankOption={{true}}\n        @options={{this.languages}}\n        @model={{this.announcementChangeset}}\n        @forceValidationVisible={{gt this.saveAnnouncement.performCount 0}}\n        disabled={{this.saveAnnouncement.isRunning}}\n      />\n  \n      <h5 class='m-0 mb-2'>Further restrict by Chargebee plans</h5>\n      <div class='mb-3'>\n        <label class='no-wrap mb-1'>Required chargebee plans</label>\n        <PowerSelectMultiple\n          @options={{this.sortedChargebeePlans}}\n          @selected={{this.requiredChargebeePlans}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @renderInPlace={{true}}\n          required={{true}}\n          @disabled={{this.saveAnnouncement.isRunning}}\n          @onChange={{fn (mut this.requiredChargebeePlans)}}\n          as |chargebeePlan|\n        >\n          {{chargebeePlan.name}}\n        </PowerSelectMultiple>\n      </div>\n  \n      <div class='mb-3'>\n        <label class='no-wrap mb-1'>Excluded chargebee plans</label>\n        <PowerSelectMultiple\n          @options={{this.sortedChargebeePlans}}\n          @selected={{this._excludedChargebeePlans}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @renderInPlace={{true}}\n          required={{true}}\n          @disabled={{this.saveAnnouncement.isRunning}}\n          @onChange={{fn (mut this._excludedChargebeePlans)}}\n          as |chargebeePlan|\n        >\n          {{chargebeePlan.name}}\n        </PowerSelectMultiple>\n      </div>\n  \n      <div class='d-flex flex-grow-1 mt-3 align-items-center'>\n        <button\n          type='button'\n          class='btn bt-link text-danger text-decoration-underline'\n          {{on\n            'click'\n            (perform this.deleteAnnouncement this.announcementChangeset)\n          }}\n        >\n          {{#if this.deleteAnnouncement.isRunning}}\n            Deleting&hellip;\n          {{else}}\n            Delete announcement\n          {{/if}}\n        </button>\n        <div class='d-flex ms-auto'>\n          <button\n            type='button'\n            class='btn bt-link text-primary text-decoration-underline me-2'\n            disabled={{this.saveAnnouncement.isRunning}}\n            {{on 'click' (fn (mut this.showPreviewModal) true)}}\n          >\n            Preview\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary'\n            disabled={{this.saveAnnouncement.isRunning}}\n            {{on\n              'click'\n              (perform this.saveAnnouncement this.announcementChangeset)\n            }}\n          >\n            {{#if this.saveAnnouncement.isRunning}}\n              <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;\n              {{#if this.announcement.isNew}}\n                creating\n              {{else}}\n                Saving\n              {{/if}}&hellip;\n            {{else}}\n              {{#if this.announcement.isNew}}\n                Create announcement\n              {{else}}\n                Save details\n              {{/if}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </PtlForm>\n  {{/if}}\n  \n  {{#if this.showPreviewModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.showPreviewModal) false}}\n      @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          Announcements\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        <div\n          class='ql-container ql-editor'\n          style='white-space: normal !important;'\n        >\n          <h6 class='mb-2'>{{this.announcement.title}}</h6>\n          {{html-safe this.announcement.message}}\n        </div>\n      </div>\n  \n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.showPreviewModal) false)}}\n        >\n          {{t 'common.Close'}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"7JCTfWp2\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,4],[[28,[37,5],[[30,0,[\\\"initProps\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n  \\\"],[8,[39,6],[[24,0,\\\"width--medium\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex mb-3 align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"Details\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Title\\\",\\\"title\\\",[30,0,[\\\"announcementChangeset\\\"]],true,[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\",\\\"@height\\\"],[\\\"richtext\\\",\\\"Message\\\",\\\"message\\\",[30,0,[\\\"announcementChangeset\\\"]],true,[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null],\\\"200px\\\"]],null],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@dependantValidationKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"datetime\\\",\\\"Valid from\\\",\\\"validFrom\\\",[28,[37,10],[\\\"validUntil\\\"],null],[30,0,[\\\"announcementChangeset\\\"]],[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@dependantValidationKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"datetime\\\",\\\"Valid until\\\",\\\"validUntil\\\",[28,[37,10],[\\\"validFrom\\\"],null],[30,0,[\\\"announcementChangeset\\\"]],[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@role\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Important\\\",\\\"important\\\",[30,0,[\\\"announcementChangeset\\\"]],\\\"switch\\\",[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Who will see this announcement\\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h5\\\"],[14,0,\\\"m-0 mb-2\\\"],[12],[1,\\\"Apply entity presets\\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasBuildaPriceFeatures\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"setBuildaPriceFeatures\\\"]]],null],[12],[1,\\\"\\\\n        All Builda Price entities\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasFinancialPortalFeatures\\\"]]],[24,0,\\\"btn btn-primary btn-sm ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"setFinancialPortalFeatures\\\"]]],null],[12],[1,\\\"\\\\n        All Financial Portal entities\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,\\\"\\\\n        Entity features\\\\n        \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,16],[[16,\\\"required\\\",true]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@renderInPlace\\\",\\\"@disabled\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"entityAttributes\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"entityAttributes\\\"]],true,\\\"id\\\",true,[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]],[28,[37,17],[[28,[37,18],[[30,0,[\\\"entityAttributes\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"description\\\"]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h5\\\"],[14,0,\\\"m-0 mb-2\\\"],[12],[1,\\\"Apply user presets\\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-sm\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasEntityManagerFeatures\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"setEntityManagerFeatures\\\"]]],null],[12],[1,\\\"\\\\n        All entity managers\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasEntityUserFeatures\\\"]]],[24,0,\\\"btn btn-primary btn-sm ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"setEntityUserFeatures\\\"]]],null],[12],[1,\\\"\\\\n        Everyone on the entity\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,\\\"\\\\n        User permissions\\\\n        \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,16],[[16,\\\"required\\\",true]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@renderInPlace\\\",\\\"@disabled\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"userAttributes\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"userAttributes\\\"]],true,\\\"id\\\",true,[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]],[28,[37,17],[[28,[37,18],[[30,0,[\\\"userAttributes\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,2,[\\\"description\\\"]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"User's language\\\",\\\"language\\\",true,[30,0,[\\\"languages\\\"]],[30,0,[\\\"announcementChangeset\\\"]],[28,[37,9],[[30,0,[\\\"saveAnnouncement\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h5\\\"],[14,0,\\\"m-0 mb-2\\\"],[12],[1,\\\"Further restrict by Chargebee plans\\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,\\\"Required chargebee plans\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,16],[[16,\\\"required\\\",true]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@renderInPlace\\\",\\\"@disabled\\\",\\\"@onChange\\\"],[[30,0,[\\\"sortedChargebeePlans\\\"]],[30,0,[\\\"requiredChargebeePlans\\\"]],true,\\\"name\\\",true,[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]],[28,[37,17],[[28,[37,18],[[30,0,[\\\"requiredChargebeePlans\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[3]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,\\\"Excluded chargebee plans\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,16],[[16,\\\"required\\\",true]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@renderInPlace\\\",\\\"@disabled\\\",\\\"@onChange\\\"],[[30,0,[\\\"sortedChargebeePlans\\\"]],[30,0,[\\\"_excludedChargebeePlans\\\"]],true,\\\"name\\\",true,[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]],[28,[37,17],[[28,[37,18],[[30,0,[\\\"_excludedChargebeePlans\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[4]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3 align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn bt-link text-danger text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,5],[[30,0,[\\\"deleteAnnouncement\\\"]],[30,0,[\\\"announcementChangeset\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteAnnouncement\\\",\\\"isRunning\\\"]],[[[1,\\\"          Deleting…\\\\n\\\"]],[]],[[[1,\\\"          Delete announcement\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex ms-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn bt-link text-primary text-decoration-underline me-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"showPreviewModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          Preview\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,5],[[30,0,[\\\"saveAnnouncement\\\"]],[30,0,[\\\"announcementChangeset\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveAnnouncement\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\\n\\\"],[41,[30,0,[\\\"announcement\\\",\\\"isNew\\\"]],[[[1,\\\"              creating\\\\n\\\"]],[]],[[[1,\\\"              Saving\\\\n            \\\"]],[]]],[1,\\\"…\\\\n\\\"]],[]],[[[41,[30,0,[\\\"announcement\\\",\\\"isNew\\\"]],[[[1,\\\"              Create announcement\\\\n\\\"]],[]],[[[1,\\\"              Save details\\\\n\\\"]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showPreviewModal\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,17],[[28,[37,18],[[30,0,[\\\"showPreviewModal\\\"]]],null],false],null],\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        Announcements\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ql-container ql-editor\\\"],[14,5,\\\"white-space: normal !important;\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h6\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[30,0,[\\\"announcement\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n        \\\"],[1,[28,[35,22],[[30,0,[\\\"announcement\\\",\\\"message\\\"]]],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"showPreviewModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,23],[\\\"common.Close\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entityAttribute\\\",\\\"userAttribute\\\",\\\"chargebeePlan\\\",\\\"chargebeePlan\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"array\\\",\\\"h5\\\",\\\"button\\\",\\\"on\\\",\\\"label\\\",\\\"sup\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"span\\\",\\\"modal-dialog\\\",\\\"h6\\\",\\\"html-safe\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/announcements/announcement.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/announcements/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n    <Input\n      class='form-control m-1 w-auto'\n      placeholder={{t 'common.Search'}}\n      disabled={{this.isLoading}}\n      {{on 'input' (perform this.onChangeSearchTerm)}}\n      @type='search'\n    />\n    <button\n      type='button'\n      class='btn btn-success text-white text-nowrap m-1'\n      disabled={{this.isLoading}}\n      {{on 'click' this.createNewAnnouncement}}\n    >\n      <FaIcon @icon='plus' />&nbsp;Add\n    </button>\n  </div>\n  \n  {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='admin-console__entity-table-container'>\n      <PaginationTable\n        @tableHeader={{this.announcementsTableHeader}}\n        @tableData={{this.announcementsTableData}}\n        @isLoading={{this.isLoading}}\n        @noDataText='No announcements'\n        @pageSizes={{this.model.pageSizes}}\n        @pageSize={{this.model.pageSize}}\n        @pageIndex={{this.model.pageNumber}}\n        @onChangePageIndex={{this.onChangePage}}\n        @onChangePageSize={{this.onChangePageSize}}\n        @totalRecords={{this.totalRecords}}\n        @class='table-bordered'\n      />\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"QVM9Rfsg\",\n    \"block\": \"[[[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,2],[\\\"common.Search\\\"],null]],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[4,[38,3],[\\\"input\\\",[28,[37,4],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\"],[\\\"search\\\"]],null],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"createNewAnnouncement\\\"]]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\" Add\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"admin-console__entity-table-container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,9],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@isLoading\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"announcementsTableHeader\\\"]],[30,0,[\\\"announcementsTableData\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"No announcements\\\",[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageNumber\\\"]],[30,0,[\\\"onChangePage\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"div\\\",\\\"input\\\",\\\"t\\\",\\\"on\\\",\\\"perform\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"pagination-table\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/announcements/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/billing-report\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>Billing Reports</h2>\n    </header>\n    <h3>ChargeBee billing report</h3>\n    <p>Breakout ChargeBee invoices by customer and Chargebee plans. Report takes\n      about 5 minutes to generate.</p>\n    <PtlForm class='width--medium'>\n  \n      {{#let (changeset this.data this.validationMap) as |dataModel|}}\n        <PtlInput\n          @type='select'\n          @label='Application'\n          @key='site'\n          @selectNoBlankOption={{true}}\n          @options={{this.sites}}\n          @forceValidationVisible={{gt this.generateReport.performCount 0}}\n          @model={{dataModel}}\n        />\n        <PtlInput\n          @type='date'\n          @label='Start date'\n          @key='startDate'\n          @model={{dataModel}}\n          @forceValidationVisible={{gt this.generateReport.performCount 0}}\n          @required={{true}}\n        />\n        <PtlInput\n          @type='date'\n          @label='End date'\n          @key='endDate'\n          @model={{dataModel}}\n          @forceValidationVisible={{gt this.generateReport.performCount 0}}\n          @required={{true}}\n        />\n        <div class='d-flex flex-grow-1 mt-3 align-items-center'>\n          <div class='d-flex ms-auto'>\n            <button\n              type='button'\n              class='btn btn-primary'\n              disabled={{this.generateReport.isRunning}}\n              {{on 'click' (perform this.generateReport dataModel)}}\n            >\n              {{#if this.generateReport.isRunning}}\n                <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;\n                Generating &hellip;\n              {{else}}\n                Generate and email report\n              {{/if}}\n            </button>\n          </div>\n        </div>\n      {{/let}}\n    </PtlForm>\n  </article>\n  */\n  {\n    \"id\": \"zLrCcm/O\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"Billing Reports\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"h3\\\"],[12],[1,\\\"ChargeBee billing report\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"Breakout ChargeBee invoices by customer and Chargebee plans. Report takes\\\\n    about 5 minutes to generate.\\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,5],[[24,0,\\\"width--medium\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n\\\"],[44,[[28,[37,7],[[30,0,[\\\"data\\\"]],[30,0,[\\\"validationMap\\\"]]],null]],[[[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@forceValidationVisible\\\",\\\"@model\\\"],[\\\"select\\\",\\\"Application\\\",\\\"site\\\",true,[30,0,[\\\"sites\\\"]],[28,[37,9],[[30,0,[\\\"generateReport\\\",\\\"performCount\\\"]],0],null],[30,1]]],null],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"date\\\",\\\"Start date\\\",\\\"startDate\\\",[30,1],[28,[37,9],[[30,0,[\\\"generateReport\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"date\\\",\\\"End date\\\",\\\"endDate\\\",[30,1],[28,[37,9],[[30,0,[\\\"generateReport\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3 align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex ms-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"generateReport\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"generateReport\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"generateReport\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\\n              Generating …\\\\n\\\"]],[]],[[[1,\\\"              Generate and email report\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[13]],[\\\"dataModel\\\"],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"h3\\\",\\\"p\\\",\\\"ptl-form\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"if\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/billing-report.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/demo-entity\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='p-3 d-flex flex-column gap-3'>\n    <p class='m-0'>\n      Clicking the button will cause the demo entity to be deleted and recreated.\n      This will delete all the data on the demo entity!\n    </p>\n  \n    <LinkTo @route='entity' @model='6a4b2171ba65212da862ffe5'>\n      Demo entity source\n      <FaIcon @icon='external-link-alt' @fixedWidth={{true}} />\n    </LinkTo>\n  \n    <LinkTo @route='entity' @model='6a4b21965c807f2d9482b936'>\n      Demo entity\n      <FaIcon @icon='external-link-alt' @fixedWidth={{true}} />\n    </LinkTo>\n  \n    <button\n      class='btn btn-danger text-white'\n      type='button'\n      {{on 'click' (perform this.model.regenerateDemoEntity)}}\n      disabled={{this.model.regenerateDemoEntity.isRunning}}\n    >\n      {{#if this.model.regenerateDemoEntity.isRunning}}\n        Regenerating&hellip;\n      {{else}}\n        Regenerate demo entity\n      {{/if}}\n    </button>\n  </div>\n  */\n  {\n    \"id\": \"uZI+wvBI\",\n    \"block\": \"[[[10,0],[14,0,\\\"p-3 d-flex flex-column gap-3\\\"],[12],[1,\\\"\\\\n  \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n    Clicking the button will cause the demo entity to be deleted and recreated.\\\\n    This will delete all the data on the demo entity!\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],null,[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity\\\",\\\"6a4b2171ba65212da862ffe5\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    Demo entity source\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],null,[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity\\\",\\\"6a4b21965c807f2d9482b936\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    Demo entity\\\\n    \\\"],[8,[39,3],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"model\\\",\\\"regenerateDemoEntity\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"model\\\",\\\"regenerateDemoEntity\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"regenerateDemoEntity\\\",\\\"isRunning\\\"]],[[[1,\\\"      Regenerating…\\\\n\\\"]],[]],[[[1,\\\"      Regenerate demo entity\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"if\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/demo-entity.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/entities\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>Entities</h2>\n    </header>\n    {{outlet}}\n  </article>\n  */\n  {\n    \"id\": \"+gp9+z2T\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"Entities\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/entities.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/entities/entity\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-3 ms-1 mt-1'>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    </div>\n    <PtlForm class='width--medium'>\n      <div class='d-flex mb-3 align-items-center'>\n        <h3 class='m-0'>{{t 'common.Details'}}</h3>\n      </div>\n  \n      <PtlInput\n        @type='powerSelect'\n        @label='Parent company'\n        @key='parent'\n        @options={{this.parentEntityOptions}}\n        @optionKeys={{array 'name'}}\n        @model={{this.model.entityChangeset.last.value}}\n        @searchEnabled={{true}}\n        @searchField='name'\n        @allowClear={{true}}\n        @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n        disabled={{this.saveEntity.isRunning}}\n      />\n      <PtlInput\n        @type='text'\n        @label='Name'\n        @key='name'\n        @model={{this.model.entityChangeset.last.value}}\n        @required={{true}}\n        @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n        disabled={{this.saveEntity.isRunning}}\n      />\n      <PtlInput\n        @type='select'\n        @label='Region'\n        @key='region'\n        @options={{this.regions}}\n        @required={{true}}\n        @model={{this.model.entityChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n        disabled={{this.saveEntity.isRunning}}\n      />\n      <PtlInput\n        @type='select'\n        @label='Brand'\n        @key='brand'\n        @options={{this.brands}}\n        @model={{this.model.entityChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n        disabled={{this.saveEntity.isRunning}}\n      />\n      <div class='d-flex flex-grow-1 mt-3'>\n        <button\n          type='button'\n          class='btn btn-primary ms-auto'\n          disabled={{this.saveEntity.isRunning}}\n          {{on\n            'click'\n            (perform this.saveEntity this.model.entityChangeset.last.value)\n          }}\n        >\n          {{#if this.saveEntity.isRunning}}\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;\n            {{#if this.entity.isNew}}\n              creating\n            {{else}}\n              Saving\n            {{/if}}&hellip;\n          {{else}}\n            {{#if this.entity.isNew}}\n              Create entity\n            {{else}}\n              Save details\n            {{/if}}\n          {{/if}}\n        </button>\n      </div>\n    </PtlForm>\n  \n    {{#unless this.entity.isNew}}\n      <div class='alert alert-primary width--medium mt-3' role='alert'>\n        <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n        <span class='me-2'>\n          Invite admin user for\n          {{this.model.entityChangeset.last.value.name}}\n        </span>\n        <button\n          type='button'\n          class='btn btn-outline-primary'\n          {{on 'click' (fn (mut this.openInviteUserModal) true)}}\n        >\n          Invite admin user\n        </button>\n      </div>\n  \n      <PtlForm class='width--medium mb-3'>\n        <div class='mb-3'>\n          <h3 class='mb-0'>Features</h3>\n          <p>\n            Entity features are rules that say what a entity can and can't do in\n            the system.\n          </p>\n  \n          <h5 class='mb-3'>Apply presets</h5>\n          <div>\n            <button\n              type='button'\n              class='btn btn-primary'\n              disabled={{this.noFeatures}}\n              {{on 'click' this.clearAllFeatures}}\n            >No features</button>\n            <button\n              type='button'\n              {{on 'click' this.setAllFeatures}}\n              disabled={{this.hasAllFeatures}}\n              class='btn btn-primary ms-2'\n            >All features</button>\n          </div>\n        </div>\n  \n        <div\n          class='d-flex align-items-center mb-3'\n          role='button'\n          {{on\n            'click'\n            (fn\n              (mut this.showBuildaPriceFeatures)\n              (not this.showBuildaPriceFeatures)\n            )\n          }}\n        >\n          <h4 class='m-0'>\n            Builda Price\n          </h4>\n          {{#if this.buildaPricePermissionsCount}}\n            <span class='ms-2 badge bg-info'>\n              {{this.buildaPricePermissionsCount}}\n            </span>\n          {{/if}}\n          <h4 class='m-0 ms-auto'>\n            <FaIcon\n              @icon={{if\n                this.showBuildaPriceFeatures\n                'chevron-down'\n                'chevron-right'\n              }}\n            />\n          </h4>\n        </div>\n        {{#if this.showBuildaPriceFeatures}}\n          <PtlInput\n            @type='checkbox'\n            @label='Can use Builda Price?'\n            @key='canUseBuildaPrice'\n            @description='Lets company use Builda Price module.'\n            @model={{this.model.featuresChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n            disabled={{this.saveFeatures.isRunning}}\n          />\n        {{/if}}\n  \n        <div class='ms-3'>\n          {{#if\n            (and\n              this.showBuildaPriceFeatures\n              this.model.featuresChangeset.last.value.canUseBuildaPrice\n            )\n          }}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn (mut this.showGeneralFeatures) (not this.showGeneralFeatures))\n              }}\n            >\n              <h4 class='m-0'>\n                General\n              </h4>\n              {{#if this.generalFeaturesCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.generalFeaturesCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.showGeneralFeatures\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.showGeneralFeatures}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can use dashboards?'\n                @key='canUseDashboards'\n                @description='Lets company use dashboard features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use documents?'\n                @key='canUseFileStorage'\n                @description='Lets company attach files and documents.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use health and safety?'\n                @key='canUseHealthAndSafety'\n                @description='Lets company use Health and safety module.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use client portal?'\n                @key='canUseClientPortal'\n                @description='Lets company use client portal.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Doc Flow metered billing?'\n                @key='canUseIPS'\n                @description='Lets company process Doc Flow documents beyond the free allowance, for a charge. Doc Flow access itself comes from Bills.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use statements?'\n                @key='canUseStatements'\n                @description='Lets company use statements.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use placemakers integrations?'\n                @key='canUsePlaceMakers'\n                @description='Lets company use place makers integrations.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use carters integrations?'\n                @key='canUseCarters'\n                @description='Lets company use carters integrations.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use support?'\n                @key='canUseSupport'\n                @description='Lets company use support.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use Geofencing features?'\n                @key='canUseGeofencing'\n                @description='Lets company use  Geofencing features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n            {{/if}}\n  \n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn (mut this.showProjectFeatures) (not this.showProjectFeatures))\n              }}\n            >\n              <h4 class='m-0'>\n                Project\n              </h4>\n              {{#if this.projectsFeaturesCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.projectsFeaturesCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.showProjectFeatures\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.showProjectFeatures}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can use project financials?'\n                @key='canUseProjectFinancials'\n                @description='Lets company all project related financials'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use project progress?'\n                @key='canUseProjectProgress'\n                @description='Lets company use progress tracking features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use take off uploader tool?'\n                @key='canUseCsvTaskFileUploader'\n                @description='Lets company use take off tool.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use products?'\n                @key='canUseProducts'\n                @description='Lets company use products.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use estimates?'\n                @key='canUseEstimates'\n                @description='Lets company estimates related features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use stage payments?'\n                @key='canUseStagePayments'\n                @description='Lets company use stage payment features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n            {{/if}}\n  \n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn (mut this.showReportFeatures) (not this.showReportFeatures))\n              }}\n            >\n              <h4 class='m-0'>\n                Reports\n              </h4>\n              {{#if this.reportsFeaturesCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.reportsFeaturesCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.showReportFeatures\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n  \n            {{#if this.showReportFeatures}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can use work in progress report?'\n                @key='canUseWIPReport'\n                @description='Lets company use work in progress report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use forecast report?'\n                @key='canUseForecastReport'\n                @description='Lets company use forecast report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use profit margins report?'\n                @key='canUseProfitMarginsReport'\n                @description='Lets company use profit margins report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use labour hours report?'\n                @key='canUseLabourHoursReport'\n                @description='Lets company use labour hours report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use budget report?'\n                @key='canUseBudgetReport'\n                @description='Lets company use budget report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use quote report?'\n                @key='canUseQuoteReport'\n                @description='Lets company use quote report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use cost report?'\n                @key='canUseCostReport'\n                @description='Lets company use cost report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use chargeup report?'\n                @key='canUseChargeupReport'\n                @description='Lets company use chargeup report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use position report?'\n                @key='canUsePositionReport'\n                @description='Lets company use position report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use Invoicing report?'\n                @key='canUseInvoicingReport'\n                @description='Lets company use invoicing report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use the cost to complete report?'\n                @key='canUseClientReport'\n                @description='Lets company use the cost to complete report.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n            {{/if}}\n  \n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.showSchedulingFeatures)\n                  (not this.showSchedulingFeatures)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                Scheduling\n              </h4>\n              {{#if this.schedulingFeaturesCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingFeaturesCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.showSchedulingFeatures\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n  \n            {{#if this.showSchedulingFeatures}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can use scheduling?'\n                @key='canUseScheduling'\n                @description='Lets company use scheduling.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n            {{/if}}\n  \n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.showAllocationFeatures)\n                  (not this.showAllocationFeatures)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                Allocations\n              </h4>\n              {{#if this.allocationsFeaturesCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsFeaturesCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.showAllocationFeatures\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n  \n            {{#if this.showAllocationFeatures}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can use timesheets?'\n                @key='canUseTimesheets'\n                @description='Lets company use timesheets.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use crystal payroll integrations?'\n                @key='canUseCrystalPayroll'\n                @description='Lets company use crystal payroll integrations.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use smartly payroll integrations?'\n                @key='canUseSmartPayroll'\n                @description='Lets company use smart payroll integrations.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use keypay integrations?'\n                @key='canUseKeypay'\n                @description='Lets company use keypay integrations.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use notes features?'\n                @key='canUseNotes'\n                @description='Lets company use notes features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use bills features?'\n                @key='canUseBills'\n                @description='Lets company use bills features (incoming invoices).'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label='Can use purchase orders?'\n                @key='canUsePurchaseOrders'\n                @description='Lets company use purchase order features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label='Can use Invoicing?'\n                @key='canUseInvoicing'\n                @description='Lets company use invoicing features.'\n                @model={{this.model.featuresChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n                disabled={{this.saveFeatures.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n        </div>\n  \n        <div\n          class='d-flex align-items-center mb-3'\n          role='button'\n          {{on\n            'click'\n            (fn\n              (mut this.showFinancialPortalFeatures)\n              (not this.showFinancialPortalFeatures)\n            )\n          }}\n        >\n          <h4 class='m-0'>\n            Financial portal\n          </h4>\n          {{#if this.FinancialPortalPermissionsCount}}\n            <span class='ms-2 badge bg-info'>\n              {{this.FinancialPortalPermissionsCount}}\n            </span>\n          {{/if}}\n          <h4 class='m-0 ms-auto'>\n            <FaIcon\n              @icon={{if\n                this.showFinancialPortalFeatures\n                'chevron-down'\n                'chevron-right'\n              }}\n            />\n          </h4>\n        </div>\n  \n        {{#if this.showFinancialPortalFeatures}}\n          <PtlInput\n            @type='checkbox'\n            @label='Can use Financial portal?'\n            @key='canUseFinancialReporting'\n            @description='Lets company use Financial portal.'\n            @model={{this.model.featuresChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveFeatures.performCount 0}}\n            disabled={{this.saveFeatures.isRunning}}\n          />\n        {{/if}}\n  \n        <div class='d-flex flex-grow-1 mt-2'>\n          <button\n            type='button'\n            class='btn btn-primary ms-auto'\n            disabled={{this.saveFeatures.isRunning}}\n            {{on\n              'click'\n              (perform this.saveFeatures this.model.featuresChangeset.last.value)\n            }}\n          >\n            {{#if this.saveFeatures.isRunning}}\n              Saving features&hellip;\n            {{else}}\n              Save features\n            {{/if}}\n          </button>\n        </div>\n      </PtlForm>\n  \n    {{/unless}}\n  {{/if}}\n  \n  {{#if this.openInviteUserModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.openInviteUserModal) false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div hidden {{did-insert (perform this.initChangeset)}} />\n      <div class='modal-body mt-2'>\n        <PtlInput\n          @type='text'\n          @label='First name'\n          @key='firstName'\n          @model={{this.userChangeSet}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.inviteUser.performCount 0}}\n          disabled={{this.inviteUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label='Last name'\n          @key='lastName'\n          @model={{this.userChangeSet}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.inviteUser.performCount 0}}\n          disabled={{this.inviteUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label='Email'\n          @key='email'\n          @model={{this.userChangeSet}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.inviteUser.performCount 0}}\n          disabled={{this.inviteUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label='Phone number'\n          @key='phoneNumber'\n          @model={{this.userChangeSet}}\n          @forceValidationVisible={{gt this.inviteUser.performCount 0}}\n          disabled={{this.inviteUser.isRunning}}\n        />\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.inviteUser.isRunning}}\n            {{on 'click' (fn (mut this.openInviteUserModal) false)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.inviteUser.isRunning}}\n            {{on 'click' (perform this.inviteUser this.userChangeSet)}}\n          >\n            {{#if this.inviteUser.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;Inviting&hellip;\n            {{else}}\n              Invite\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"7iUtHQDd\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"width--medium\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex mb-3 align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@allowClear\\\",\\\"@forceValidationVisible\\\"],[\\\"powerSelect\\\",\\\"Parent company\\\",\\\"parent\\\",[30,0,[\\\"parentEntityOptions\\\"]],[28,[37,8],[\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,\\\"name\\\",true,[28,[37,9],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Name\\\",\\\"name\\\",[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,9],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"Region\\\",\\\"region\\\",[30,0,[\\\"regions\\\"]],true,[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"Brand\\\",\\\"brand\\\",[30,0,[\\\"brands\\\"]],[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"saveEntity\\\"]],[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\\n\\\"],[41,[30,0,[\\\"entity\\\",\\\"isNew\\\"]],[[[1,\\\"            creating\\\\n\\\"]],[]],[[[1,\\\"            Saving\\\\n          \\\"]],[]]],[1,\\\"…\\\\n\\\"]],[]],[[[41,[30,0,[\\\"entity\\\",\\\"isNew\\\"]],[[[1,\\\"            Create entity\\\\n\\\"]],[]],[[[1,\\\"            Save details\\\\n\\\"]],[]]]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"entity\\\",\\\"isNew\\\"]]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"alert alert-primary width--medium mt-3\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,15],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n        Invite admin user for\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"entityChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-outline-primary\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"openInviteUserModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        Invite admin user\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,4],[[24,0,\\\"width--medium mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"Features\\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          Entity features are rules that say what a entity can and can't do in\\\\n          the system.\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Apply presets\\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"noFeatures\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"clearAllFeatures\\\"]]],null],[12],[1,\\\"No features\\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"hasAllFeatures\\\"]]],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"setAllFeatures\\\"]]],null],[12],[1,\\\"All features\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showBuildaPriceFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showBuildaPriceFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n          Builda Price\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"buildaPricePermissionsCount\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"buildaPricePermissionsCount\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showBuildaPriceFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBuildaPriceFeatures\\\"]],[[[1,\\\"        \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use Builda Price?\\\",\\\"canUseBuildaPrice\\\",\\\"Lets company use Builda Price module.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,22],[[30,0,[\\\"showBuildaPriceFeatures\\\"]],[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canUseBuildaPrice\\\"]]],null],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showGeneralFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showGeneralFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              General\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"generalFeaturesCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"generalFeaturesCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showGeneralFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showGeneralFeatures\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use dashboards?\\\",\\\"canUseDashboards\\\",\\\"Lets company use dashboard features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use documents?\\\",\\\"canUseFileStorage\\\",\\\"Lets company attach files and documents.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use health and safety?\\\",\\\"canUseHealthAndSafety\\\",\\\"Lets company use Health and safety module.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use client portal?\\\",\\\"canUseClientPortal\\\",\\\"Lets company use client portal.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Doc Flow metered billing?\\\",\\\"canUseIPS\\\",\\\"Lets company process Doc Flow documents beyond the free allowance, for a charge. Doc Flow access itself comes from Bills.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use statements?\\\",\\\"canUseStatements\\\",\\\"Lets company use statements.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use placemakers integrations?\\\",\\\"canUsePlaceMakers\\\",\\\"Lets company use place makers integrations.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use carters integrations?\\\",\\\"canUseCarters\\\",\\\"Lets company use carters integrations.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use support?\\\",\\\"canUseSupport\\\",\\\"Lets company use support.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use Geofencing features?\\\",\\\"canUseGeofencing\\\",\\\"Lets company use  Geofencing features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showProjectFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showProjectFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              Project\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectsFeaturesCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"projectsFeaturesCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showProjectFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showProjectFeatures\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use project financials?\\\",\\\"canUseProjectFinancials\\\",\\\"Lets company all project related financials\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use project progress?\\\",\\\"canUseProjectProgress\\\",\\\"Lets company use progress tracking features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use take off uploader tool?\\\",\\\"canUseCsvTaskFileUploader\\\",\\\"Lets company use take off tool.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use products?\\\",\\\"canUseProducts\\\",\\\"Lets company use products.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use estimates?\\\",\\\"canUseEstimates\\\",\\\"Lets company estimates related features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use stage payments?\\\",\\\"canUseStagePayments\\\",\\\"Lets company use stage payment features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showReportFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showReportFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              Reports\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsFeaturesCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"reportsFeaturesCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showReportFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showReportFeatures\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use work in progress report?\\\",\\\"canUseWIPReport\\\",\\\"Lets company use work in progress report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use forecast report?\\\",\\\"canUseForecastReport\\\",\\\"Lets company use forecast report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use profit margins report?\\\",\\\"canUseProfitMarginsReport\\\",\\\"Lets company use profit margins report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use labour hours report?\\\",\\\"canUseLabourHoursReport\\\",\\\"Lets company use labour hours report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use budget report?\\\",\\\"canUseBudgetReport\\\",\\\"Lets company use budget report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use quote report?\\\",\\\"canUseQuoteReport\\\",\\\"Lets company use quote report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use cost report?\\\",\\\"canUseCostReport\\\",\\\"Lets company use cost report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use chargeup report?\\\",\\\"canUseChargeupReport\\\",\\\"Lets company use chargeup report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use position report?\\\",\\\"canUsePositionReport\\\",\\\"Lets company use position report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use Invoicing report?\\\",\\\"canUseInvoicingReport\\\",\\\"Lets company use invoicing report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use the cost to complete report?\\\",\\\"canUseClientReport\\\",\\\"Lets company use the cost to complete report.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showSchedulingFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showSchedulingFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              Scheduling\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingFeaturesCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingFeaturesCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showSchedulingFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showSchedulingFeatures\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use scheduling?\\\",\\\"canUseScheduling\\\",\\\"Lets company use scheduling.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showAllocationFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showAllocationFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              Allocations\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsFeaturesCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsFeaturesCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showAllocationFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showAllocationFeatures\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use timesheets?\\\",\\\"canUseTimesheets\\\",\\\"Lets company use timesheets.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use crystal payroll integrations?\\\",\\\"canUseCrystalPayroll\\\",\\\"Lets company use crystal payroll integrations.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use smartly payroll integrations?\\\",\\\"canUseSmartPayroll\\\",\\\"Lets company use smart payroll integrations.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use keypay integrations?\\\",\\\"canUseKeypay\\\",\\\"Lets company use keypay integrations.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use notes features?\\\",\\\"canUseNotes\\\",\\\"Lets company use notes features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use bills features?\\\",\\\"canUseBills\\\",\\\"Lets company use bills features (incoming invoices).\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use purchase orders?\\\",\\\"canUsePurchaseOrders\\\",\\\"Lets company use purchase order features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use Invoicing?\\\",\\\"canUseInvoicing\\\",\\\"Lets company use invoicing features.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showFinancialPortalFeatures\\\"]]],null],[28,[37,20],[[30,0,[\\\"showFinancialPortalFeatures\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n          Financial portal\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"FinancialPortalPermissionsCount\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"FinancialPortalPermissionsCount\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"showFinancialPortalFeatures\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showFinancialPortalFeatures\\\"]],[[[1,\\\"        \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can use Financial portal?\\\",\\\"canUseFinancialReporting\\\",\\\"Lets company use Financial portal.\\\",[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveFeatures\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"saveFeatures\\\"]],[30,0,[\\\"model\\\",\\\"featuresChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveFeatures\\\",\\\"isRunning\\\"]],[[[1,\\\"            Saving features…\\\\n\\\"]],[]],[[[1,\\\"            Save features\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"openInviteUserModal\\\"]],[[[1,\\\"  \\\"],[8,[39,23],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,16],[[28,[37,17],[[30,0,[\\\"openInviteUserModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,24],[[28,[37,12],[[30,0,[\\\"initChangeset\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"First name\\\",\\\"firstName\\\",[30,0,[\\\"userChangeSet\\\"]],true,[28,[37,9],[[30,0,[\\\"inviteUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Last name\\\",\\\"lastName\\\",[30,0,[\\\"userChangeSet\\\"]],true,[28,[37,9],[[30,0,[\\\"inviteUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Email\\\",\\\"email\\\",[30,0,[\\\"userChangeSet\\\"]],true,[28,[37,9],[[30,0,[\\\"inviteUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Phone number\\\",\\\"phoneNumber\\\",[30,0,[\\\"userChangeSet\\\"]],[28,[37,9],[[30,0,[\\\"inviteUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"openInviteUserModal\\\"]]],null],false],null]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"inviteUser\\\"]],[30,0,[\\\"userChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"inviteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  Inviting…\\\\n\\\"]],[]],[[[1,\\\"            Invite\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"array\\\",\\\"gt\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"span\\\",\\\"unless\\\",\\\"fa-icon\\\",\\\"fn\\\",\\\"mut\\\",\\\"p\\\",\\\"h5\\\",\\\"not\\\",\\\"h4\\\",\\\"and\\\",\\\"modal-dialog\\\",\\\"did-insert\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/entities/entity.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/entities/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n    <Input\n      class='form-control m-1 w-auto'\n      placeholder={{t 'common.Search'}}\n      @value={{this.searchString}}\n      disabled={{this.isLoading}}\n      @type='search'\n      autofocus='true'\n    />\n    <button\n      type='button'\n      class='btn btn-success text-white text-nowrap m-1'\n      disabled={{this.isLoading}}\n      {{on 'click' this.goNewEntity}}\n    >\n      <FaIcon @icon='plus' />&nbsp;&nbsp;Add\n    </button>\n  </div>\n  \n  <div class='admin-console__entity-table-container'>\n    <PaginationTable\n      @tableHeader={{this.entityTableHeader}}\n      @tableData={{this.entityTableData}}\n      @noDataText='No entities'\n      @isLoading={{this.model.entities.isRunning}}\n      @pageSizes={{this.pageSizes}}\n      @pageSize={{this.pageSize}}\n      @pageIndex={{this.pageIndex}}\n      @onChangePageIndex={{this.onChangePageIndex}}\n      @onChangePageSize={{this.onChangePageSize}}\n      @totalRecords={{this.totalRecords}}\n      @class='table-bordered'\n    />\n  </div>\n  */\n  {\n    \"id\": \"GDWa8S5w\",\n    \"block\": \"[[[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,2],[\\\"common.Search\\\"],null]],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"autofocus\\\",\\\"true\\\"]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"searchString\\\"]],\\\"search\\\"]],null],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"goNewEntity\\\"]]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  Add\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"admin-console__entity-table-container\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"entityTableHeader\\\"]],[30,0,[\\\"entityTableData\\\"]],\\\"No entities\\\",[30,0,[\\\"model\\\",\\\"entities\\\",\\\"isRunning\\\"]],[30,0,[\\\"pageSizes\\\"]],[30,0,[\\\"pageSize\\\"]],[30,0,[\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"input\\\",\\\"t\\\",\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"pagination-table\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/entities/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/licensees\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>Licensees</h2>\n    </header>\n    {{outlet}}\n  </article>\n  */\n  {\n    \"id\": \"xPATBUUo\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"Licensees\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/licensees.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/licensees/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mb-1 pb-2 d-lg-flex justify-content-end'>\n    <button\n      type='button'\n      class='btn btn-success text-white text-nowrap m-1'\n      disabled={{this.isLoading}}\n      {{on 'click' (fn (mut this.showCreateLicenseeModal) true)}}\n    >\n      <FaIcon @icon='plus' />&nbsp;&nbsp;Create Licensee\n    </button>\n  </div>\n  \n  {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='admin-console__entity-table-container'>\n      <PaginationTable\n        @tableHeader={{this.tableHeader}}\n        @tableData={{this.tableData}}\n        @isLoading={{this.isLoading}}\n        @noDataText='No Licensees'\n        @class='table-bordered'\n        @hidePagination={{true}}\n      />\n    </div>\n  {{/if}}\n  \n  {{#if this.showCreateLicenseeModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.openInviteUserModal) false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header' {{did-insert (perform this.initChangeset)}}>\n        <h3 class='modal-title'>\n          Create Licensee\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        <PtlInput\n          @type='text'\n          @label='Licensee name'\n          @key='licenseeName'\n          @model={{this.licenseeChangeset}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.createNewLicensee.performCount 0}}\n          disabled={{this.createNewLicensee.isRunning}}\n        />\n        <PtlInput\n          @type='powerSelectMultiple'\n          @label=\"Licensee's customers\"\n          @key='customers'\n          @optionKeys={{array 'name'}}\n          @options={{this.unclaimedEntities}}\n          @model={{this.licenseeChangeset}}\n          @forceValidationVisible={{gt this.createNewLicensee.performCount 0}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @disabled={{this.createNewLicensee.isRunning}}\n        />\n  \n        <NewComboBox\n          @isLoading={{this.fetchUsers.isRunning}}\n          @list={{this.userList}}\n          @noDataMessage='No users'\n          @onSelect={{this.setUser}}\n          @onSearch={{this.onSearchUser}}\n          @label='Email'\n          @required={{true}}\n          @key='email'\n          @debounce={{this.debounceTime}}\n          @model={{this.licenseeChangeset}}\n          @pageSize={{this.recordPageSize}}\n          @hasNextPage={{this.hasNextUsersPage}}\n          @onLoadMore={{this.fetchUsers}}\n          @forceValidationVisible={{gt this.createNewLicensee.performCount 0}}\n          @description='An account will be granted access, either by using an existing one or creating a new one.'\n        />\n  \n        <PtlInput\n          @type='text'\n          @label='First name'\n          @key='firstName'\n          @model={{this.licenseeChangeset}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.createNewLicensee.performCount 0}}\n          disabled={{this.createNewLicensee.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label='Last name'\n          @key='lastName'\n          @model={{this.licenseeChangeset}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.createNewLicensee.performCount 0}}\n          disabled={{this.createNewLicensee.isRunning}}\n        />\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.showCreateLicenseeModal) false)}}\n        >\n          Cancel\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary text-white'\n          disabled={{this.createNewLicensee.isRunning}}\n          {{on 'click' (perform this.createNewLicensee this.licenseeChangeset)}}\n        >\n          {{#if this.createNewLicensee.isRunning}}\n            Creating &hellip;\n          {{else}}\n            Create Licensee\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"kmNcn3UE\",\n    \"block\": \"[[[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end\\\"],[12],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[28,[37,4],[[30,0,[\\\"showCreateLicenseeModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  Create Licensee\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"admin-console__entity-table-container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,8],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@isLoading\\\",\\\"@noDataText\\\",\\\"@class\\\",\\\"@hidePagination\\\"],[[30,0,[\\\"tableHeader\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"No Licensees\\\",\\\"table-bordered\\\",true]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showCreateLicenseeModal\\\"]],[[[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,3],[[28,[37,4],[[30,0,[\\\"openInviteUserModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,0,\\\"modal-header\\\"],[4,[38,10],[[28,[37,11],[[30,0,[\\\"initChangeset\\\"]]],null]],null],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        Create Licensee\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Licensee name\\\",\\\"licenseeName\\\",[30,0,[\\\"licenseeChangeset\\\"]],true,[28,[37,14],[[30,0,[\\\"createNewLicensee\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@disabled\\\"],[\\\"powerSelectMultiple\\\",\\\"Licensee's customers\\\",\\\"customers\\\",[28,[37,15],[\\\"name\\\"],null],[30,0,[\\\"unclaimedEntities\\\"]],[30,0,[\\\"licenseeChangeset\\\"]],[28,[37,14],[[30,0,[\\\"createNewLicensee\\\",\\\"performCount\\\"]],0],null],true,\\\"name\\\",[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,16],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@label\\\",\\\"@required\\\",\\\"@key\\\",\\\"@debounce\\\",\\\"@model\\\",\\\"@pageSize\\\",\\\"@hasNextPage\\\",\\\"@onLoadMore\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\"],[[30,0,[\\\"fetchUsers\\\",\\\"isRunning\\\"]],[30,0,[\\\"userList\\\"]],\\\"No users\\\",[30,0,[\\\"setUser\\\"]],[30,0,[\\\"onSearchUser\\\"]],\\\"Email\\\",true,\\\"email\\\",[30,0,[\\\"debounceTime\\\"]],[30,0,[\\\"licenseeChangeset\\\"]],[30,0,[\\\"recordPageSize\\\"]],[30,0,[\\\"hasNextUsersPage\\\"]],[30,0,[\\\"fetchUsers\\\"]],[28,[37,14],[[30,0,[\\\"createNewLicensee\\\",\\\"performCount\\\"]],0],null],\\\"An account will be granted access, either by using an existing one or creating a new one.\\\"]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"First name\\\",\\\"firstName\\\",[30,0,[\\\"licenseeChangeset\\\"]],true,[28,[37,14],[[30,0,[\\\"createNewLicensee\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Last name\\\",\\\"lastName\\\",[30,0,[\\\"licenseeChangeset\\\"]],true,[28,[37,14],[[30,0,[\\\"createNewLicensee\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[28,[37,4],[[30,0,[\\\"showCreateLicenseeModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        Cancel\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"createNewLicensee\\\"]],[30,0,[\\\"licenseeChangeset\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createNewLicensee\\\",\\\"isRunning\\\"]],[[[1,\\\"          Creating …\\\\n\\\"]],[]],[[[1,\\\"          Create Licensee\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"pagination-table\\\",\\\"modal-dialog\\\",\\\"did-insert\\\",\\\"perform\\\",\\\"h3\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"array\\\",\\\"new-combo-box\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/licensees/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/admin/licensees/licensee\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='d-flex align-items-center'>\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n  \n      <div class='ms-auto'>\n  \n      </div>\n    </div>\n  \n    <div class='width--small mb-3'>\n      <div class='d-flex align-items-center justify-content-center mb-3'>\n        <h3 class='m-0'>Licensee users</h3>\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap ms-auto'\n          disabled={{this.isLoading}}\n          {{on 'click' (fn (mut this.showAddNewLicenseeModal) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;Add new Licensee user\n        </button>\n      </div>\n      <PaginationTable\n        @tableHeader={{this.usersTableHeader}}\n        @tableData={{this.usersTableData}}\n        @isLoading={{this.isLoading}}\n        @noDataText='No Users'\n        @class='table-bordered'\n        @hidePagination={{true}}\n      />\n    </div>\n  \n    <div class='width--small mb-3'>\n      <div class='d-flex align-items-center justify-content-center mb-3'>\n        <h3 class='m-0'>Licensee customers</h3>\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap ms-auto'\n          disabled={{this.isLoading}}\n          {{on 'click' (fn (mut this.showAddNewCustomerModal) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;Associate new customers\n        </button>\n      </div>\n      <PaginationTable\n        @tableHeader={{this.tableHeader}}\n        @tableData={{this.tableData}}\n        @isLoading={{this.isLoading}}\n        @noDataText='No Customers'\n        @class='table-bordered'\n        @hidePagination={{true}}\n      />\n    </div>\n  {{/if}}\n  \n  {{#if this.showAddNewCustomerModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.openInviteUserModal) false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          Associate customers to Licensee\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        <PowerSelectMultiple\n          @options={{this.unclaimedEntities}}\n          @selected={{this.newCustomersToAdd}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @renderInPlace={{true}}\n          required={{true}}\n          @disabled={{this.addNewCustomerToLicensee.isRunning}}\n          @onChange={{fn (mut this.newCustomersToAdd)}}\n          as |entity|\n        >\n          {{entity.name}}\n          {{#if (includes entity.entityLinkedAttributes 'canUseBuildaPrice')}}\n            - BP\n          {{else if\n            (includes entity.entityLinkedAttributes 'canUseFinancialReporting')\n          }}\n            - FP\n          {{else}}\n            - Disabled\n          {{/if}}\n        </PowerSelectMultiple>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.showAddNewCustomerModal) false)}}\n        >\n          Cancel\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary text-white'\n          disabled={{this.addNewCustomerToLicensee.isRunning}}\n          {{on 'click' (perform this.addNewCustomerToLicensee)}}\n        >\n          {{#if this.addNewCustomerToLicensee.isRunning}}\n            Associating &hellip;\n          {{else}}\n            Associate customers\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showAddNewLicenseeModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.openInviteUserModal) false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div hidden {{did-insert (perform this.initChangeset)}} />\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          Add new licensee user\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        <NewComboBox\n          @isLoading={{this.fetchUsers.isRunning}}\n          @list={{this.userList}}\n          @noDataMessage='No users'\n          @onSelect={{this.setUser}}\n          @onSearch={{this.onSearchUser}}\n          @label='Email'\n          @required={{true}}\n          @key='email'\n          @debounce={{this.debounceTime}}\n          @model={{this.licenseeChangeset}}\n          @pageSize={{this.recordPageSize}}\n          @hasNextPage={{this.hasNextUsersPage}}\n          @onLoadMore={{this.fetchUsers}}\n          @forceValidationVisible={{gt this.addNewLicenseeUser.performCount 0}}\n          @description='An account will be granted access, either by using an existing one or creating a new one.'\n        />\n        <PtlInput\n          @type='text'\n          @label='First name'\n          @key='firstName'\n          @model={{this.licenseeChangeset}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.addNewLicenseeUser.performCount 0}}\n          disabled={{this.addNewLicenseeUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label='Last name'\n          @key='lastName'\n          @model={{this.licenseeChangeset}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.addNewLicenseeUser.performCount 0}}\n          disabled={{this.addNewLicenseeUser.isRunning}}\n        />\n      </div>\n  \n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.showAddNewLicenseeModal) false)}}\n        >\n          Cancel\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary text-white'\n          disabled={{this.addNewLicenseeUser.isRunning}}\n          {{on 'click' (perform this.addNewLicenseeUser)}}\n        >\n          {{#if this.addNewLicenseeUser.isRunning}}\n            Creating &hellip;\n          {{else}}\n            Create new user\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"IlySBEU1\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"width--small mb-3\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"Licensee users\\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"showAddNewLicenseeModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  Add new Licensee user\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,10],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@isLoading\\\",\\\"@noDataText\\\",\\\"@class\\\",\\\"@hidePagination\\\"],[[30,0,[\\\"usersTableHeader\\\"]],[30,0,[\\\"usersTableData\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"No Users\\\",\\\"table-bordered\\\",true]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"width--small mb-3\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-center mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"Licensee customers\\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"showAddNewCustomerModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  Associate new customers\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,10],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@isLoading\\\",\\\"@noDataText\\\",\\\"@class\\\",\\\"@hidePagination\\\"],[[30,0,[\\\"tableHeader\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"No Customers\\\",\\\"table-bordered\\\",true]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showAddNewCustomerModal\\\"]],[[[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,7],[[28,[37,8],[[30,0,[\\\"openInviteUserModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        Associate customers to Licensee\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,12],[[16,\\\"required\\\",true]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@renderInPlace\\\",\\\"@disabled\\\",\\\"@onChange\\\"],[[30,0,[\\\"unclaimedEntities\\\"]],[30,0,[\\\"newCustomersToAdd\\\"]],true,\\\"name\\\",true,[30,0,[\\\"addNewCustomerToLicensee\\\",\\\"isRunning\\\"]],[28,[37,7],[[28,[37,8],[[30,0,[\\\"newCustomersToAdd\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,1,[\\\"entityLinkedAttributes\\\"]],\\\"canUseBuildaPrice\\\"],null],[[[1,\\\"          - BP\\\\n\\\"]],[]],[[[41,[28,[37,13],[[30,1,[\\\"entityLinkedAttributes\\\"]],\\\"canUseFinancialReporting\\\"],null],[[[1,\\\"          - FP\\\\n\\\"]],[]],[[[1,\\\"          - Disabled\\\\n        \\\"]],[]]]],[]]],[1,\\\"      \\\"]],[1]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"showAddNewCustomerModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        Cancel\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addNewCustomerToLicensee\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"addNewCustomerToLicensee\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addNewCustomerToLicensee\\\",\\\"isRunning\\\"]],[[[1,\\\"          Associating …\\\\n\\\"]],[]],[[[1,\\\"          Associate customers\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showAddNewLicenseeModal\\\"]],[[[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,7],[[28,[37,8],[[30,0,[\\\"openInviteUserModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,15],[[28,[37,14],[[30,0,[\\\"initChangeset\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        Add new licensee user\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@label\\\",\\\"@required\\\",\\\"@key\\\",\\\"@debounce\\\",\\\"@model\\\",\\\"@pageSize\\\",\\\"@hasNextPage\\\",\\\"@onLoadMore\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\"],[[30,0,[\\\"fetchUsers\\\",\\\"isRunning\\\"]],[30,0,[\\\"userList\\\"]],\\\"No users\\\",[30,0,[\\\"setUser\\\"]],[30,0,[\\\"onSearchUser\\\"]],\\\"Email\\\",true,\\\"email\\\",[30,0,[\\\"debounceTime\\\"]],[30,0,[\\\"licenseeChangeset\\\"]],[30,0,[\\\"recordPageSize\\\"]],[30,0,[\\\"hasNextUsersPage\\\"]],[30,0,[\\\"fetchUsers\\\"]],[28,[37,17],[[30,0,[\\\"addNewLicenseeUser\\\",\\\"performCount\\\"]],0],null],\\\"An account will be granted access, either by using an existing one or creating a new one.\\\"]],null],[1,\\\"\\\\n      \\\"],[8,[39,18],[[16,\\\"disabled\\\",[30,0,[\\\"addNewLicenseeUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"First name\\\",\\\"firstName\\\",[30,0,[\\\"licenseeChangeset\\\"]],true,[28,[37,17],[[30,0,[\\\"addNewLicenseeUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,18],[[16,\\\"disabled\\\",[30,0,[\\\"addNewLicenseeUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",\\\"Last name\\\",\\\"lastName\\\",[30,0,[\\\"licenseeChangeset\\\"]],true,[28,[37,17],[[30,0,[\\\"addNewLicenseeUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"showAddNewLicenseeModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        Cancel\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addNewLicenseeUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"addNewLicenseeUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addNewLicenseeUser\\\",\\\"isRunning\\\"]],[[[1,\\\"          Creating …\\\\n\\\"]],[]],[[[1,\\\"          Create new user\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entity\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"h3\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"pagination-table\\\",\\\"modal-dialog\\\",\\\"power-select-multiple\\\",\\\"includes\\\",\\\"perform\\\",\\\"did-insert\\\",\\\"new-combo-box\\\",\\\"gt\\\",\\\"ptl-input\\\"]]\",\n    \"moduleName\": \"portal/templates/admin/licensees/licensee.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/application\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.sessionData.isUsingLoginAs}}\n    <LoggedInAs />\n  {{/if}}\n  \n  {{#if this.sessionData.isUsingAdminMode}}\n    <AdminMode />\n  {{/if}}\n  \n  {{#if this.chargebee.subscriptionIsChanging}}\n    <ModalDialog\n      @onClose={{fn (mut this.chargebee.subscriptionIsChanging) false}}\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n      @containerClass='block-module'\n    >\n      <p class='text-center'>Applying changes&hellip;</p>\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.invoicedCosts.confirmingDelete}}\n    <ModalDialog\n      @onClose={{this.invoicedCosts.dismissDelete}}\n      @overlayClass='modal'\n      @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n      @translucentOverlay={{true}}\n    >\n      {{#if this.invoicedCosts.deleteTitle}}\n        <div class='modal-header'>\n          <h3 class='modal-title'>\n            {{this.invoicedCosts.deleteTitle}}\n          </h3>\n        </div>\n      {{/if}}\n  \n      <div class='modal-body'>\n        {{this.invoicedCosts.deleteMessage}}\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-danger text-white'\n          {{on 'click' this.invoicedCosts.confirmDelete}}\n        >\n          {{t 'common.Delete'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.invoicedCosts.dismissDelete}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  <NotificationContainer @notifications={{this.notifications}} />\n  <BasicDropdownWormhole />\n  \n  <div class='body__container'>\n    {{outlet}}\n  </div>\n  */\n  {\n    \"id\": \"TTdDjSny\",\n    \"block\": \"[[[41,[30,0,[\\\"sessionData\\\",\\\"isUsingLoginAs\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"isUsingAdminMode\\\"]],[[[1,\\\"  \\\"],[8,[39,2],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"chargebee\\\",\\\"subscriptionIsChanging\\\"]],[[[1,\\\"  \\\"],[8,[39,3],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\"],[[28,[37,4],[[28,[37,5],[[30,0,[\\\"chargebee\\\",\\\"subscriptionIsChanging\\\"]]],null],false],null],true,\\\"modal\\\",\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"Applying changes…\\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoicedCosts\\\",\\\"confirmingDelete\\\"]],[[[1,\\\"  \\\"],[8,[39,3],null,[[\\\"@onClose\\\",\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[[30,0,[\\\"invoicedCosts\\\",\\\"dismissDelete\\\"]],\\\"modal\\\",\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoicedCosts\\\",\\\"deleteTitle\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"invoicedCosts\\\",\\\"deleteTitle\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[30,0,[\\\"invoicedCosts\\\",\\\"deleteMessage\\\"]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"invoicedCosts\\\",\\\"confirmDelete\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,12],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"invoicedCosts\\\",\\\"dismissDelete\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,12],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,13],null,[[\\\"@notifications\\\"],[[30,0,[\\\"notifications\\\"]]]],null],[1,\\\"\\\\n\\\"],[8,[39,14],null,null,null],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"body__container\\\"],[12],[1,\\\"\\\\n  \\\"],[46,[28,[37,16],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"if\\\",\\\"logged-in-as\\\",\\\"admin-mode\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"p\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"h3\\\",\\\"button\\\",\\\"on\\\",\\\"t\\\",\\\"notification-container\\\",\\\"basic-dropdown-wormhole\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/application.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/complete-pm-auth\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    \n  */\n  {\n    \"id\": \"i4tRYGuU\",\n    \"block\": \"[[],[],false,[]]\",\n    \"moduleName\": \"portal/templates/complete-pm-auth.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/complete-registration-cb\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='bg-dark bg-gradient'>\n    <div\n      class='min-vh-100 container d-flex justify-content-center align-items-center'\n    >\n      <div class='card shadow-lg' style='width: 600px;'>\n        <div class='card-body p-sm-5'>\n          <div class='w-100 d-flex justify-content-center'>\n            <img\n              class='w-50 align-self-center'\n              src={{this.platform.platform.fullLogo}}\n              alt={{this.platform.platform.name}}\n            />\n          </div>\n  \n          {{#if this.model.registrationData.isRunning}}\n            <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n          {{else if this.model.registrationData.value.error}}\n            {{! Handles errors thrown while fetching the registration data }}\n            {{#let this.model.registrationData.value.error as |error|}}\n              <p>\n                {{#if (eq error.code 'MISSING_TOKEN')}}\n                  The registration URL appears to be missing some data. Please\n                  make sure to paste the full link into your browser.\n                {{else if (eq error.code 'UNKNOWN_TOKEN')}}\n                  The registration URL appears to have incorrect data. Please make\n                  sure to paste the full link into your browser.\n                {{else if (eq error.code 'REGISTRATION_RESOLVED')}}\n                  This registration has already been completed. Please\n                  <LinkTo @route='login' class='link'>click here</LinkTo>\n                  to log in.\n                {{else}}\n                  An unknown error occurred.\n                {{/if}}\n              </p>\n            {{/let}}\n  \n          {{else if this.registrationError}}\n            {{! Handles errors thrown when attempting to complete the registration. }}\n            <p>\n              {{#if (eq this.registrationError.code 'REGISTRATION_RESOLVED')}}\n                This registration has already been completed. Please\n                <LinkTo @route='login' class='link'>click here</LinkTo>\n                to log in.\n              {{else}}\n                {{or\n                  this.registrationError.title\n                  'An error occurred while completing registration'\n                }}\n              {{/if}}\n            </p>\n  \n          {{else if this.registrationComplete}}\n            {{! Ready to log in }}\n            <p class='text-center'>\n              Congratulations! Your registration is complete.\n            </p>\n  \n            <div class='w-100 d-flex justify-content-center'>\n              <LinkTo\n                @route='login'\n                @query={{hash email=this.model.registrationData.value.email}}\n                class='btn btn-lg btn-primary'\n              >\n                Click here to go to login\n              </LinkTo>\n            </div>\n  \n          {{else}}\n            {{! Main registration completion form }}\n            {{#let this.model.registrationData.value as |data|}}\n              <form {{on 'submit' (perform this.submit)}}>\n                <p>\n                  Welcome\n                  {{data.firstName}}, thanks for registering\n                  <b>{{data.company}}</b>\n                  with\n                  <b>{{this.platform.platform.name}}</b>. Please fill in the\n                  following info to complete the registration.\n                </p>\n  \n                <p>\n                  You should receive an email from us (at\n                  <b>{{data.email}}</b>) with a code to confirm your email\n                  address.\n                </p>\n  \n                <div class='form-group mb-2'>\n                  <label for='confirmEmailCode'>Confirm email code</label>\n                  <Input\n                    id='confirmEmailCode'\n                    @value={{this.confirmEmailCode}}\n                    class='form-control form-control-lg\n                      {{unless this.confirmEmailCode \"is-invalid\"}}'\n                    placeholder='One time code'\n                  />\n                </div>\n  \n                {{#unless this.confirmEmailCode}}\n                  <div class='d-flex'>\n                    <LoadingButton\n                      type='button'\n                      class='btn btn-secondary btn-sm me-1'\n                      {{on 'click' (perform this.resendEmail)}}\n                      @isLoading={{this.resendEmail.isRunning}}\n                    >Resend confirmation code</LoadingButton>\n                    <button\n                      type='button'\n                      class='btn btn-secondary btn-sm'\n                      {{on 'click' this.openEmailChangeModal}}\n                    >Change email address</button>\n                  </div>\n                {{/unless}}\n  \n                <h2 class='mb-2 mt-3'>Account details</h2>\n                {{#if data.userExists}}\n                  <p>\n                    It looks like we already have an account for\n                    <b>{{data.email}}</b>. The existing account will gain access\n                    to\n                    <b>{{data.company}}</b>.\n                  </p>\n                  <p>\n                    {{#if this.sendPasswordReset.lastSuccessful.value}}\n                      Password reset email sent. Please continue the registration.\n                    {{else if this.sendPasswordReset.isRunning}}\n                      Sending password reset&hellip;\n                    {{else}}\n                      If you don't know your password please\n                      <a\n                        class='link'\n                        href='#'\n                        {{on 'click' (perform this.sendPasswordReset)}}\n                      >\n                        click here to reset your password.\n                      </a>\n                    {{/if}}\n                  </p>\n                {{else}}\n                  <div class='form-group mb-2'>\n                    <label for='password'>Password</label>\n                    <Input\n                      id='password'\n                      class='form-control\n                        {{if\n                          (and this.passwordInvalid this.showValidation)\n                          \"is-invalid\"\n                        }}'\n                      @type='password'\n                      @value={{this.password}}\n                    />\n                    <div class='form-text text-muted'>\n                      Password must be at least 10 characters long.\n                    </div>\n                  </div>\n  \n                  <div class='form-group mb-2'>\n                    <label for='passwordCheck'>Confirm password</label>\n                    <Input\n                      id='passwordCheck'\n                      class='form-control\n                        {{if\n                          (and this.passwordCheckInvalid this.showValidation)\n                          \"is-invalid\"\n                        }}'\n                      @type='password'\n                      @value={{this.passwordCheck}}\n                    />\n                    {{#if (and this.passwordCheckInvalid this.showValidation)}}\n                      <div class='invalid-feedback'>\n                        Passwords must match.\n                      </div>\n                    {{/if}}\n                  </div>\n                {{/if}}\n                <div class='w-100 d-flex justify-content-center'>\n                  <LoadingButton\n                    class='btn btn-primary btn-lg m-3'\n                    @isLoading={{this.submit.isRunning}}\n                    @action={{perform this.submit}}\n                  >\n                    Complete registration\n                  </LoadingButton>\n                </div>\n              </form>\n            {{/let}}\n          {{/if}}\n        </div>\n      </div>\n    </div>\n  </div>\n  \n  {{#if this.showChangeEmailModal}}\n    <ModalDialog\n      @onClose={{this.closeEmailChangeModal}}\n      @containerClass='block-module'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <p>\n        A new confirmation code will be sent and will replace any code sent to the\n        existing address.\n      </p>\n  \n      <div class='form-group'>\n        <label for='newEmail'>New email address</label>\n        <Input\n          id='newEmail'\n          @value={{this.newEmail}}\n          class='text-input text-input--stretch tabular-form-controls__cell\n            {{unless\n              (and this.newEmailIsValid this.showNewEmailValidation)\n              \"is-invalid\"\n            }}'\n          placeholder='your@email.com'\n        />\n      </div>\n  \n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            class='btn btn-secondary'\n            type='button'\n            {{on 'click' this.closeEmailChangeModal}}\n          >\n            Cancel\n          </button>\n  \n          <LoadingButton\n            class='btn btn-primary ms-2'\n            {{on 'click' (perform this.changeEmail)}}\n            @isLoading={{this.changeEmail.isRunning}}\n          >Submit\n          </LoadingButton>\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"gJ2eDHNF\",\n    \"block\": \"[[[10,0],[14,0,\\\"bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"min-vh-100 container d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg\\\"],[14,5,\\\"width: 600px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"w-100 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"img\\\"],[14,0,\\\"w-50 align-self-center\\\"],[15,\\\"src\\\",[30,0,[\\\"platform\\\",\\\"platform\\\",\\\"fullLogo\\\"]]],[15,\\\"alt\\\",[30,0,[\\\"platform\\\",\\\"platform\\\",\\\"name\\\"]]],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"registrationData\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[8,[39,3],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"registrationData\\\",\\\"value\\\",\\\"error\\\"]],[[[44,[[30,0,[\\\"model\\\",\\\"registrationData\\\",\\\"value\\\",\\\"error\\\"]]],[[[1,\\\"            \\\"],[10,2],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,1,[\\\"code\\\"]],\\\"MISSING_TOKEN\\\"],null],[[[1,\\\"                The registration URL appears to be missing some data. Please\\\\n                make sure to paste the full link into your browser.\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,1,[\\\"code\\\"]],\\\"UNKNOWN_TOKEN\\\"],null],[[[1,\\\"                The registration URL appears to have incorrect data. Please make\\\\n                sure to paste the full link into your browser.\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,1,[\\\"code\\\"]],\\\"REGISTRATION_RESOLVED\\\"],null],[[[1,\\\"                This registration has already been completed. Please\\\\n                \\\"],[8,[39,7],[[24,0,\\\"link\\\"]],[[\\\"@route\\\"],[\\\"login\\\"]],[[\\\"default\\\"],[[[[1,\\\"click here\\\"]],[]]]]],[1,\\\"\\\\n                to log in.\\\\n\\\"]],[]],[[[1,\\\"                An unknown error occurred.\\\\n              \\\"]],[]]]],[]]]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"registrationError\\\"]],[[[1,\\\"          \\\"],[10,2],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,0,[\\\"registrationError\\\",\\\"code\\\"]],\\\"REGISTRATION_RESOLVED\\\"],null],[[[1,\\\"              This registration has already been completed. Please\\\\n              \\\"],[8,[39,7],[[24,0,\\\"link\\\"]],[[\\\"@route\\\"],[\\\"login\\\"]],[[\\\"default\\\"],[[[[1,\\\"click here\\\"]],[]]]]],[1,\\\"\\\\n              to log in.\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[[30,0,[\\\"registrationError\\\",\\\"title\\\"]],\\\"An error occurred while completing registration\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[30,0,[\\\"registrationComplete\\\"]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            Congratulations! Your registration is complete.\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"w-100 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[24,0,\\\"btn btn-lg btn-primary\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[\\\"login\\\",[28,[37,9],null,[[\\\"email\\\"],[[30,0,[\\\"model\\\",\\\"registrationData\\\",\\\"value\\\",\\\"email\\\"]]]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              Click here to go to login\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[44,[[30,0,[\\\"model\\\",\\\"registrationData\\\",\\\"value\\\"]]],[[[1,\\\"            \\\"],[11,\\\"form\\\"],[4,[38,11],[\\\"submit\\\",[28,[37,12],[[30,0,[\\\"submit\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,\\\"\\\\n                Welcome\\\\n                \\\"],[1,[30,2,[\\\"firstName\\\"]]],[1,\\\", thanks for registering\\\\n                \\\"],[10,\\\"b\\\"],[12],[1,[30,2,[\\\"company\\\"]]],[13],[1,\\\"\\\\n                with\\\\n                \\\"],[10,\\\"b\\\"],[12],[1,[30,0,[\\\"platform\\\",\\\"platform\\\",\\\"name\\\"]]],[13],[1,\\\". Please fill in the\\\\n                following info to complete the registration.\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,2],[12],[1,\\\"\\\\n                You should receive an email from us (at\\\\n                \\\"],[10,\\\"b\\\"],[12],[1,[30,2,[\\\"email\\\"]]],[13],[1,\\\") with a code to confirm your email\\\\n                address.\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"confirmEmailCode\\\"],[12],[1,\\\"Confirm email code\\\"],[13],[1,\\\"\\\\n                \\\"],[8,[39,15],[[24,1,\\\"confirmEmailCode\\\"],[16,0,[29,[\\\"form-control form-control-lg\\\\n                    \\\",[52,[51,[30,0,[\\\"confirmEmailCode\\\"]]],\\\"is-invalid\\\"]]]],[24,\\\"placeholder\\\",\\\"One time code\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"confirmEmailCode\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"confirmEmailCode\\\"]]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,17],[[24,0,\\\"btn btn-secondary btn-sm me-1\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"resendEmail\\\"]]],null]],null]],[[\\\"@isLoading\\\"],[[30,0,[\\\"resendEmail\\\",\\\"isRunning\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Resend confirmation code\\\"]],[]]]]],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary btn-sm\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"openEmailChangeModal\\\"]]],null],[12],[1,\\\"Change email address\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"mb-2 mt-3\\\"],[12],[1,\\\"Account details\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"userExists\\\"]],[[[1,\\\"                \\\"],[10,2],[12],[1,\\\"\\\\n                  It looks like we already have an account for\\\\n                  \\\"],[10,\\\"b\\\"],[12],[1,[30,2,[\\\"email\\\"]]],[13],[1,\\\". The existing account will gain access\\\\n                  to\\\\n                  \\\"],[10,\\\"b\\\"],[12],[1,[30,2,[\\\"company\\\"]]],[13],[1,\\\".\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sendPasswordReset\\\",\\\"lastSuccessful\\\",\\\"value\\\"]],[[[1,\\\"                    Password reset email sent. Please continue the registration.\\\\n\\\"]],[]],[[[41,[30,0,[\\\"sendPasswordReset\\\",\\\"isRunning\\\"]],[[[1,\\\"                    Sending password reset…\\\\n\\\"]],[]],[[[1,\\\"                    If you don't know your password please\\\\n                    \\\"],[11,3],[24,0,\\\"link\\\"],[24,6,\\\"#\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"sendPasswordReset\\\"]]],null]],null],[12],[1,\\\"\\\\n                      click here to reset your password.\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"]],[]]]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"password\\\"],[12],[1,\\\"Password\\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,15],[[24,1,\\\"password\\\"],[16,0,[29,[\\\"form-control\\\\n                      \\\",[52,[28,[37,21],[[30,0,[\\\"passwordInvalid\\\"]],[30,0,[\\\"showValidation\\\"]]],null],\\\"is-invalid\\\"]]]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"password\\\"]]]],null],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,\\\"\\\\n                    Password must be at least 10 characters long.\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"passwordCheck\\\"],[12],[1,\\\"Confirm password\\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,15],[[24,1,\\\"passwordCheck\\\"],[16,0,[29,[\\\"form-control\\\\n                      \\\",[52,[28,[37,21],[[30,0,[\\\"passwordCheckInvalid\\\"]],[30,0,[\\\"showValidation\\\"]]],null],\\\"is-invalid\\\"]]]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"passwordCheck\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,21],[[30,0,[\\\"passwordCheckInvalid\\\"]],[30,0,[\\\"showValidation\\\"]]],null],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"invalid-feedback\\\"],[12],[1,\\\"\\\\n                      Passwords must match.\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[10,0],[14,0,\\\"w-100 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,17],[[24,0,\\\"btn btn-primary btn-lg m-3\\\"]],[[\\\"@isLoading\\\",\\\"@action\\\"],[[30,0,[\\\"submit\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"submit\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  Complete registration\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"        \\\"]],[]]]],[]]]],[]]]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showChangeEmailModal\\\"]],[[[1,\\\"  \\\"],[8,[39,22],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[30,0,[\\\"closeEmailChangeModal\\\"]],\\\"block-module\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      A new confirmation code will be sent and will replace any code sent to the\\\\n      existing address.\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"form-group\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"newEmail\\\"],[12],[1,\\\"New email address\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,15],[[24,1,\\\"newEmail\\\"],[16,0,[29,[\\\"text-input text-input--stretch tabular-form-controls__cell\\\\n          \\\",[52,[51,[28,[37,21],[[30,0,[\\\"newEmailIsValid\\\"]],[30,0,[\\\"showNewEmailValidation\\\"]]],null]],\\\"is-invalid\\\"]]]],[24,\\\"placeholder\\\",\\\"your@email.com\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"newEmail\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[30,0,[\\\"closeEmailChangeModal\\\"]]],null],[12],[1,\\\"\\\\n          Cancel\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,17],[[24,0,\\\"btn btn-primary ms-2\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"changeEmail\\\"]]],null]],null]],[[\\\"@isLoading\\\"],[[30,0,[\\\"changeEmail\\\",\\\"isRunning\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Submit\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"error\\\",\\\"data\\\"],false,[\\\"div\\\",\\\"img\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"let\\\",\\\"p\\\",\\\"eq\\\",\\\"link-to\\\",\\\"or\\\",\\\"hash\\\",\\\"form\\\",\\\"on\\\",\\\"perform\\\",\\\"b\\\",\\\"label\\\",\\\"input\\\",\\\"unless\\\",\\\"loading-button\\\",\\\"button\\\",\\\"h2\\\",\\\"a\\\",\\\"and\\\",\\\"modal-dialog\\\",\\\"footer\\\"]]\",\n    \"moduleName\": \"portal/templates/complete-registration-cb.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/embed\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <main class='page__container-content'>\n    {{outlet}}\n  </main>\n  */\n  {\n    \"id\": \"ILkP0x2E\",\n    \"block\": \"[[[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n  \\\"],[46,[28,[37,2],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"main\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/embed.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/embed/error\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1 text-center p-5 d-flex flex-column align-items-center'>\n    <FaIcon @icon='dizzy' @size='5x' class='mb-3' />\n    <h1 class='mb-0'>Oops</h1>\n    <h3>Something went wrong</h3>\n  </div>\n  */\n  {\n    \"id\": \"YbjMUpOK\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1 text-center p-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"dizzy\\\",\\\"5x\\\"]],null],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"Oops\\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Something went wrong\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/embed/error.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity-access-denied\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <main class='text-center'>\n    <h1>Entity Access Denied</h1>\n    <p>Sorry, you don't have permission to access this entity.</p>\n  </main>\n  */\n  {\n    \"id\": \"el1S5nQw\",\n    \"block\": \"[[[10,\\\"main\\\"],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[12],[1,\\\"Entity Access Denied\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"Sorry, you don't have permission to access this entity.\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"main\\\",\\\"h1\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/templates/entity-access-denied.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    {{#if (media 'isDesktop')}}\n      <TitleBar>\n        <div\n          class='d-flex align-items-center mx-3 h-100'\n          {{! ember wormhole id }}\n          id='title-bar__content'\n        ></div>\n      </TitleBar>\n    {{else}}\n      <MobileTitleBar>\n        <div class='mobile-title-bar__left'>\n          <FromElsewhere @name='mobile-title-bar-left-content' />\n        </div>\n        <div class='mobile-title-bar__middle'>\n          <FromElsewhere @name='mobile-title-bar-middle-content' />\n        </div>\n        <div class='mobile-title-bar__right'>\n          <FromElsewhere @name='mobile-title-bar-right-content' />\n          <MobileTitleBar::Avatar>\n            <FromElsewhere @name='mobile-title-bar-avatar-content' />\n          </MobileTitleBar::Avatar>\n        </div>\n      </MobileTitleBar>\n      <MobileSideMenu>\n        <FromElsewhere @name='mobile-side-menu-content' />\n      </MobileSideMenu>\n    {{/if}}\n  \n    {{#if this.systemAnnouncements.announcementData.length}}\n      <ModalDialog\n        data-test-announcements-modal\n        @onClose={{this.systemAnnouncements.closeAnnouncementModal}}\n        @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n        @overlayClass='modal'\n        @translucentOverlay={{true}}\n      >\n        <div class='modal-header'>\n          <h3 class='modal-title'>\n            {{t 'common.Announcements'}}\n          </h3>\n        </div>\n  \n        <div class='modal-body'>\n          {{#each\n            this.systemAnnouncements.announcementData\n            as |announcement idx|\n          }}\n            {{#if idx}}\n              <hr class='my-2 border-secondary' />\n            {{/if}}\n            <div\n              class='ql-container ql-editor'\n              style='white-space: normal !important;'\n            >\n              <h6 class='mb-2'>{{announcement.title}}</h6>\n              {{html-safe announcement.message}}\n            </div>\n          {{/each}}\n        </div>\n  \n        <div class='modal-footer text-right'>\n          <button\n            type='button'\n            class='btn btn-secondary'\n            data-test-announcements-close\n            {{on 'click' this.systemAnnouncements.closeAnnouncementModal}}\n          >\n            {{t 'common.Close'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary text-white'\n            data-test-announcements-dismiss\n            {{on 'click' this.systemAnnouncements.dismissAnnouncementModal}}\n          >\n            {{t 'common.Dismiss'}}\n          </button>\n        </div>\n      </ModalDialog>\n    {{/if}}\n  \n    {{outlet}}\n  {{/if}}\n  */\n  {\n    \"id\": \"Y2zKSThZ\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[8,[39,3],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center mx-3 h-100\\\"],[14,1,\\\"title-bar__content\\\"],[12],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,5],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mobile-title-bar__left\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-left-content\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mobile-title-bar__middle\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-middle-content\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mobile-title-bar__right\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-right-content\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,7],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,6],null,[[\\\"@name\\\"],[\\\"mobile-title-bar-avatar-content\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[8,[39,8],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[8,[39,6],null,[[\\\"@name\\\"],[\\\"mobile-side-menu-content\\\"]],null],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"systemAnnouncements\\\",\\\"announcementData\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[39,9],[[24,\\\"data-test-announcements-modal\\\",\\\"\\\"]],[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[30,0,[\\\"systemAnnouncements\\\",\\\"closeAnnouncementModal\\\"]],\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,11],[\\\"common.Announcements\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"systemAnnouncements\\\",\\\"announcementData\\\"]]],null]],null],null,[[[41,[30,2],[[[1,\\\"            \\\"],[10,\\\"hr\\\"],[14,0,\\\"my-2 border-secondary\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"ql-container ql-editor\\\"],[14,5,\\\"white-space: normal !important;\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h6\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[30,1,[\\\"title\\\"]]],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,16],[[30,1,[\\\"message\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,\\\"data-test-announcements-close\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,18],[\\\"click\\\",[30,0,[\\\"systemAnnouncements\\\",\\\"closeAnnouncementModal\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,11],[\\\"common.Close\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[24,\\\"data-test-announcements-dismiss\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,18],[\\\"click\\\",[30,0,[\\\"systemAnnouncements\\\",\\\"dismissAnnouncementModal\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,11],[\\\"common.Dismiss\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[46,[28,[37,20],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"announcement\\\",\\\"idx\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"media\\\",\\\"title-bar\\\",\\\"div\\\",\\\"mobile-title-bar\\\",\\\"from-elsewhere\\\",\\\"mobile-title-bar/avatar\\\",\\\"mobile-side-menu\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"t\\\",\\\"each\\\",\\\"-track-array\\\",\\\"hr\\\",\\\"h6\\\",\\\"html-safe\\\",\\\"button\\\",\\\"on\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <EmberWormhole @to='title-bar__content'>\n      <TitleBarTabs @tabs={{this.tabs}} />\n      {{#if (includes-feature-flags 'entityIsCalStudent')}}\n        <a\n          href='https://buildaprice.zendesk.com/hc/en-us/categories/11424152235791-Education'\n          target='_blank'\n          class='d-flex align-items-center link-light title-bar__icon\n            {{if (includes-feature-flags \"entityHasSupport\") \"me-2\"}}'\n          rel='noopener noreferrer'\n        >\n          <FaIcon @icon='info-circle' />\n        </a>\n      {{/if}}\n  \n      {{#if (includes-feature-flags 'entityHasSupport')}}\n        <a\n          href='https://buildaprice.zendesk.com/hc/en-us'\n          target='_blank'\n          class='d-flex align-items-center link-light title-bar__icon'\n          rel='noopener noreferrer'\n        >\n          <FaIcon @icon='question-circle' />\n        </a>\n      {{/if}}\n    </EmberWormhole>\n    <div class='page__container'>\n      {{outlet}}\n    </div>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-avatar-content'\n      @send={{component\n        'mobile-title-bar/avatar/avatar-link'\n        label='Support'\n        link='https://buildaprice.zendesk.com/hc/en-us'\n      }}\n    />\n  \n    <main class='page__container-content'>\n      {{outlet}}\n    </main>\n  \n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'mobile-side-bar' tabs=this.tabs}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"BaKz5Vzu\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@to\\\"],[\\\"title-bar__content\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@tabs\\\"],[[30,0,[\\\"tabs\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"entityIsCalStudent\\\"],null],[[[1,\\\"      \\\"],[10,3],[14,6,\\\"https://buildaprice.zendesk.com/hc/en-us/categories/11424152235791-Education\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[15,0,[29,[\\\"d-flex align-items-center link-light title-bar__icon\\\\n          \\\",[52,[28,[37,4],[\\\"entityHasSupport\\\"],null],\\\"me-2\\\"]]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"entityHasSupport\\\"],null],[[[1,\\\"      \\\"],[10,3],[14,6,\\\"https://buildaprice.zendesk.com/hc/en-us\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"d-flex align-items-center link-light title-bar__icon\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,6],null,[[\\\"@icon\\\"],[\\\"question-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,9],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,10],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-avatar-content\\\",[50,\\\"mobile-title-bar/avatar/avatar-link\\\",0,null,[[\\\"label\\\",\\\"link\\\"],[\\\"Support\\\",\\\"https://buildaprice.zendesk.com/hc/en-us\\\"]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,9],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,10],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"mobile-side-bar\\\",0,null,[[\\\"tabs\\\"],[[30,0,[\\\"tabs\\\"]]]]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"ember-wormhole\\\",\\\"title-bar-tabs\\\",\\\"includes-feature-flags\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"div\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"main\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/dashboard\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Dashboard')\n      }}\n    />\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"PTLKTgtf\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,6],[\\\"common.Dashboard\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/dashboard/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    <div class='d-flex flex-column'>\n      {{#if (media 'isDesktop')}}\n        {{#if (includes-feature-flags 'canUseIntegrations' 'canUsePlaceMakers')}}\n          {{#unless this.model.pmConnection.isRunning}}\n            {{#if\n              (and\n                this.model.pmConnection.last.value\n                (not this.model.pmConnection.last.value.isConnected)\n              )\n            }}\n              <div\n                class='alert alert-warning d-flex flex-row align-items-center justify-content-center m-0 mb-3'\n                role='alert'\n              >\n                {{t\n                  'entity.builda-price.dashboard.Your PlaceMakers connection has expired'\n                }}\n                <LinkTo\n                  @route='entity.settings.integrations'\n                  class='btn btn-outline-primary btn-sm ms-2'\n                >{{t 'common.Reconnect'}}</LinkTo>\n              </div>\n            {{/if}}\n          {{/unless}}\n        {{/if}}\n      {{/if}}\n  \n      <ReferralPromotionButton class='mb-3' />\n      <EducationPromotionButton class='mb-3' />\n    </div>\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='d-flex'>\n        <ReportEngineElementContainer\n          @elements={{this.model.dashboardReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  \n  </article>\n  */\n  {\n    \"id\": \"m6vYcOvy\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex flex-column\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[41,[28,[37,4],[\\\"canUseIntegrations\\\",\\\"canUsePlaceMakers\\\"],null],[[[41,[51,[30,0,[\\\"model\\\",\\\"pmConnection\\\",\\\"isRunning\\\"]]],[[[41,[28,[37,6],[[30,0,[\\\"model\\\",\\\"pmConnection\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,7],[[30,0,[\\\"model\\\",\\\"pmConnection\\\",\\\"last\\\",\\\"value\\\",\\\"isConnected\\\"]]],null]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"alert alert-warning d-flex flex-row align-items-center justify-content-center m-0 mb-3\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"entity.builda-price.dashboard.Your PlaceMakers connection has expired\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,9],[[24,0,\\\"btn btn-outline-primary btn-sm ms-2\\\"]],[[\\\"@route\\\"],[\\\"entity.settings.integrations\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,8],[\\\"common.Reconnect\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n    \\\"],[8,[39,10],[[24,0,\\\"mb-3\\\"]],null,null],[1,\\\"\\\\n    \\\"],[8,[39,11],[[24,0,\\\"mb-3\\\"]],null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,12],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,13],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"dashboardReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"div\\\",\\\"if\\\",\\\"media\\\",\\\"includes-feature-flags\\\",\\\"unless\\\",\\\"and\\\",\\\"not\\\",\\\"t\\\",\\\"link-to\\\",\\\"referral-promotion-button\\\",\\\"education-promotion-button\\\",\\\"loading-icon\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/dashboard/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"H5+Qt3/i\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/communications\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <main class='ms-3 page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n  \n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Dashboard')\n      }}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"ZudRSC7z\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,\\\"main\\\"],[14,0,\\\"ms-3 page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,6],[\\\"common.Dashboard\\\"],null]]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/communications.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/documents\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Dashboard')\n      }}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"1iNGsuSj\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,6],[\\\"common.Dashboard\\\"],null]]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/documents.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/documents/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Documents'}}</h2>\n        {{/if}}\n      </header>\n      <header class='mb-1 pb-2 d-flex flex-row-reverse'>\n        {{#if (includes-feature-flags 'canManageFileStorage')}}\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            {{on 'click' (fn (mut this.uploadModalVisible) true)}}\n            data-test-documents-project-add-new-attachments\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Upload'}}\n          </button>\n        {{/if}}\n        <Input\n          class='form-control m-1 w-auto'\n          placeholder={{t 'common.Search'}}\n          @type='text'\n          @value={{this.searchString}}\n          data-test-documents-project-search\n        />\n      </header>\n      <DocumentsTable\n        @searchString={{this.searchString}}\n        @users={{this.model.users.last.value}}\n        @uploadModalVisible={{this.uploadModalVisible}}\n        @tableData={{this.tableData}}\n        @onUploadComplete={{this.onUploadComplete}}\n        @downloadAttachments={{this.downloadAttachments}}\n        @parent={{this.sessionData.entity}}\n      />\n    </article>\n  {{/if}}\n  */\n  {\n    \"id\": \"LxuhZRn2\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Documents\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"mb-1 pb-2 d-flex flex-row-reverse\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canManageFileStorage\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,\\\"data-test-documents-project-add-new-attachments\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"uploadModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Upload\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,13],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"data-test-documents-project-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,14],null,[[\\\"@searchString\\\",\\\"@users\\\",\\\"@uploadModalVisible\\\",\\\"@tableData\\\",\\\"@onUploadComplete\\\",\\\"@downloadAttachments\\\",\\\"@parent\\\"],[[30,0,[\\\"searchString\\\"]],[30,0,[\\\"model\\\",\\\"users\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"uploadModalVisible\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"onUploadComplete\\\"]],[30,0,[\\\"downloadAttachments\\\"]],[30,0,[\\\"sessionData\\\",\\\"entity\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"article\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"documents-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/documents/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/documents/project-file\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"xPBIZNZN\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/documents/project-file.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/documents/project-file/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Documents'}}</h2>\n        {{/if}}\n      </header>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n  \n      <header class='mb-1 pb-2 d-flex flex-row-reverse'>\n        {{#if\n          (includes-feature-flags\n            this.model.project.last.value 'canManageFileStorage'\n          )\n        }}\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            {{on 'click' (fn (mut this.uploadModalVisible) true)}}\n            data-test-documents-task-add-new-attachments\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Upload'}}\n          </button>\n        {{/if}}\n        <Input\n          class='form-control m-1 w-auto'\n          placeholder={{t 'common.Search'}}\n          @type='text'\n          @value={{this.searchString}}\n          data-test-documents-task-search\n        />\n      </header>\n      <DocumentsTable\n        @searchString={{this.searchString}}\n        @users={{this.model.users.last.value}}\n        @uploadModalVisible={{this.uploadModalVisible}}\n        @tableData={{this.tableData}}\n        @onUploadComplete={{this.onUploadComplete}}\n        @downloadAttachments={{this.downloadAttachments}}\n        @project={{this.model.project.last.value}}\n        @parent={{this.model.project.last.value}}\n      />\n    </article>\n  {{/if}}\n  */\n  {\n    \"id\": \"3da+K4at\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Documents\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"mb-1 pb-2 d-flex flex-row-reverse\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,\\\"data-test-documents-task-add-new-attachments\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[28,[37,12],[[30,0,[\\\"uploadModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,13],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Upload\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,14],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"data-test-documents-task-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,15],null,[[\\\"@searchString\\\",\\\"@users\\\",\\\"@uploadModalVisible\\\",\\\"@tableData\\\",\\\"@onUploadComplete\\\",\\\"@downloadAttachments\\\",\\\"@project\\\",\\\"@parent\\\"],[[30,0,[\\\"searchString\\\"]],[30,0,[\\\"model\\\",\\\"users\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"uploadModalVisible\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"onUploadComplete\\\"]],[30,0,[\\\"downloadAttachments\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"article\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"page-title-breadcrumbs\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"documents-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/documents/project-file/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/documents/project-file/task-file\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Documents'}}</h2>\n        {{/if}}\n      </header>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n  \n      <header class='mb-1 pb-2 d-flex flex-row-reverse'>\n        {{#if\n          (includes-feature-flags\n            this.model.task.last.value 'canManageFileStorage'\n          )\n        }}\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            {{on 'click' (fn (mut this.uploadModalVisible) true)}}\n            data-test-documents-task-add-new-attachments\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Upload'}}\n          </button>\n        {{/if}}\n        <Input\n          class='form-control m-1 w-auto'\n          placeholder={{t 'common.Search'}}\n          @type='text'\n          @value={{this.searchString}}\n          data-test-documents-task-search\n        />\n      </header>\n      <DocumentsTable\n        @searchString={{this.searchString}}\n        @users={{this.model.users.last.value}}\n        @uploadModalVisible={{this.uploadModalVisible}}\n        @tableData={{this.tableData}}\n        @onUploadComplete={{this.onUploadComplete}}\n        @downloadAttachments={{this.downloadAttachments}}\n        @project={{this.project}}\n        @parent={{this.model.task.last.value}}\n      />\n    </article>\n  {{/if}}\n  */\n  {\n    \"id\": \"kc3QVGsB\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Documents\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,7],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"mb-1 pb-2 d-flex flex-row-reverse\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,\\\"data-test-documents-task-add-new-attachments\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[28,[37,12],[[30,0,[\\\"uploadModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,13],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Upload\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,14],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"data-test-documents-task-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,15],null,[[\\\"@searchString\\\",\\\"@users\\\",\\\"@uploadModalVisible\\\",\\\"@tableData\\\",\\\"@onUploadComplete\\\",\\\"@downloadAttachments\\\",\\\"@project\\\",\\\"@parent\\\"],[[30,0,[\\\"searchString\\\"]],[30,0,[\\\"model\\\",\\\"users\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"uploadModalVisible\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"onUploadComplete\\\"]],[30,0,[\\\"downloadAttachments\\\"]],[30,0,[\\\"project\\\"]],[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"article\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"page-title-breadcrumbs\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"documents-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/documents/project-file/task-file.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <ModuleNavigation::Operations::Incoming />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Dashboard')\n      }}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"fT6n+QzL\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,null,null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Dashboard\\\"],null]]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"module-navigation/operations/incoming\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/bills-legacy-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"56vSM9T5\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/bills-legacy-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/bills-legacy\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if\n    (eq\n      this.router.currentRouteName\n      'entity.builda-price.operations.incoming.bills-legacy.bill'\n    )\n  }}\n    {{outlet}}\n  {{else}}\n    {{#unless (media 'isDesktop')}}\n      <ToElsewhere\n        @named='mobile-title-bar-middle-content'\n        @send={{component 'mobile-title-bar/page-title' title=(t 'common.Bills')}}\n      />\n    {{/unless}}\n    <article class='m-4'>\n      <div class='border-bottom mb-3 d-flex align-items-center pb-3'>\n        {{#if (media 'isDesktop')}}\n          <h1 class='h1 m-0'>\n            {{t 'common.Bills'}}\n            <sup class='fs-6 text-muted'>LEGACY</sup>\n          </h1>\n        {{/if}}\n  \n        <div class='ms-auto'>\n          {{#if (media 'isDesktop')}}\n            {{! Format toggle, switches between card view and table view }}\n            <div class='invoice-selector__radio'>\n              <input\n                id='condensed-filter--condensed'\n                type='radio'\n                checked={{eq this.condensedView false}}\n                onchange={{fn (mut this.condensedView) false}}\n              />\n              <label for='condensed-filter--condensed'>\n                <FaIcon @icon='list-ul' @fixedWidth={{true}} />\n              </label>\n            </div>\n            <div class='invoice-selector__radio'>\n              <input\n                id='condensed-filter--card'\n                type='radio'\n                checked={{eq this.condensedView true}}\n                onchange={{fn (mut this.condensedView) true}}\n              />\n              <label for='condensed-filter--card'>\n                <FaIcon @icon='table' @fixedWidth={{true}} />\n              </label>\n            </div>\n          {{/if}}\n          {{#if this.hasWriteLevel}}\n            {{! Import dropdown }}\n            <OverlaidDropdown\n              @buttonText={{t\n                'entity.builda-price.operations.incoming.bills-legacy.Import a bill'\n              }}\n              @title={{t\n                'entity.builda-price.operations.incoming.bills-legacy.Bill format'\n              }}\n              @class='button--spaced'\n              @buttonClasses='button button--secondary file-input-button'\n            >\n              {{#if (eq this.sessionData.entity.region 'NZL')}}\n                <FileImporter\n                  @class='overlaid-dropdown__option'\n                  @import={{action 'handleImportInvoices'}}\n                  @parser={{this.parsers.bunnings}}\n                >Bunnings CSV </FileImporter>\n                <FileImporter\n                  @class='overlaid-dropdown__option'\n                  @import={{action 'handleImportInvoices'}}\n                  @parser={{this.parsers.carters}}\n                >Carters CSV </FileImporter>\n                <FileImporter\n                  @class='overlaid-dropdown__option'\n                  @import={{action 'handleImportInvoices'}}\n                  @parser={{this.parsers.mitre}}\n                >Mitre 10 CSV </FileImporter>\n                <FileImporter\n                  @class='overlaid-dropdown__option'\n                  @import={{action 'handleImportInvoices'}}\n                  @parser={{this.parsers.placemakers}}\n                >PlaceMakers CSV</FileImporter>\n              {{/if}}\n              <FileImporter\n                @class='overlaid-dropdown__option'\n                @import={{action 'handleImportInvoices'}}\n                @parser={{this.parsers.xero}}\n              >Xero CSV </FileImporter>\n            </OverlaidDropdown>\n  \n            {{! New bill button }}\n            <button\n              class='button button--add button--spaced'\n              data-test-create-bill-button=''\n              type='button'\n              {{action\n                'transitionToBill'\n                'entity.builda-price.operations.incoming.bills-legacy.bill'\n                'new'\n              }}\n            >\n              {{t 'common.New bill'}}\n            </button>\n          {{/if}}\n        </div>\n  \n      </div>\n  \n      <div\n        class='alert alert-info d-flex align-items-center justify-content-center gap-2 text-center'\n        role='alert'\n      >\n        <span>We have upgraded the bills page with a faster experience.</span>\n        <LinkTo\n          @route='entity.builda-price.operations.incoming.bills'\n          class='alert-link text-decoration-underline'\n        >\n          Try it now!\n        </LinkTo>\n      </div>\n  \n      {{! Multiple invoice actions }}\n      <div class='invoice-selector__controls'>\n        {{#if this.hasWriteLevel}}\n          <div class='invoice-selector__controls-row'>\n            <button\n              class='button button--spaced'\n              disabled={{not this.invoices.length}}\n              type='button'\n              {{action 'toggleInvoicesSelected'}}\n            >\n              {{if\n                (and this.invoices.length this.allInvoicesSelected)\n                (t 'common.Deselect all')\n                (t 'common.Select all')\n              }}\n            </button>\n  \n            <OverlaidDropdown\n              @buttonText={{t 'common.Actions'}}\n              @class='button--spaced'\n              @disabled={{not this.selectedInvoices.length}}\n              @buttonClasses='button button--secondary'\n              data-test-bulk-actions\n              @title={{concat\n                this.selectedInvoices.length\n                ' '\n                (if\n                  (gt this.selectedInvoices.length 1)\n                  (t\n                    'entity.builda-price.operations.incoming.bills-legacy.selected bills'\n                  )\n                  (t\n                    'entity.builda-price.operations.incoming.bills-legacy.selected bill'\n                  )\n                )\n                ' '\n                (t 'common.with')\n                ' '\n                this.selectedInvoiceItems.length\n                ' '\n                (if\n                  (gt this.selectedInvoiceItems.length 1)\n                  (t 'common.items')\n                  (t 'common.item')\n                )\n              }}\n            >\n              {{#if (or this.isAutoMapping this.isSaving this.isXeroLoading)}}\n                <div class='overlaid-dropdown__option text-center'>\n                  <LoadingIcon @type='spinner' />\n                </div>\n              {{else}}\n                {{#unless (eq this.status 'ARCHIVED')}}\n                  {{#unless (eq this.status 'ACCEPTED')}}\n                    {{! Accept button }}\n                    <div\n                      class='overlaid-dropdown__option'\n                      {{action 'acceptSelectedInvoices'}}\n                      data-test-accept-bills=''\n                    >\n                      {{t\n                        'entity.builda-price.operations.incoming.bills-legacy.Accept invoices'\n                      }}\n                    </div>\n                  {{/unless}}\n  \n                  {{! Archive button }}\n                  <div\n                    class='overlaid-dropdown__option'\n                    {{action 'archiveSelectedInvoices'}}\n                    data-test-archive-bills=''\n                  >\n                    {{t\n                      'entity.builda-price.operations.incoming.bills-legacy.Archive invoices'\n                    }}\n                  </div>\n                {{/unless}}\n  \n                {{! Send to Xero button }}\n                {{#if this.xeroIntegration.ready}}\n                  <div\n                    class='overlaid-dropdown__option'\n                    {{action 'sendSelectedInvoicesToXero'}}\n                    data-test-send-bills-to-xero=''\n                  >\n                    {{t 'shared.bill.Send to Xero'}}\n                  </div>\n                {{/if}}\n                {{#if this.quickbooks.ready}}\n                  <div\n                    class='overlaid-dropdown__option'\n                    {{action 'sendSelectedInvoicesToQuickbooks'}}\n                    data-test-send-bills-to-quickbooks=''\n                  >\n                    {{t 'shared.bill.Send to QuickBooks'}}\n                  </div>\n                {{/if}}\n                {{! Auto Mapping button, show if there are any directives to use }}\n                <div\n                  class='overlaid-dropdown__option'\n                  {{action 'autoMapSelected'}}\n                  data-test-auto-map-bills=''\n                >\n                  {{t\n                    'entity.builda-price.operations.incoming.bills-legacy.Allocate (Auto Map)'\n                  }}\n                </div>\n  \n                <div\n                  class='overlaid-dropdown__option'\n                  {{action this.toggleProperty 'allocatingItems'}}\n                  data-test-allocate-items=''\n                >\n                  {{t\n                    'entity.builda-price.operations.incoming.bills-legacy.Allocate (Manually)'\n                  }}\n                </div>\n  \n                <div\n                  class='overlaid-dropdown__option button--delete'\n                  {{action\n                    this.toggleProperty\n                    'invoiceDeleteConfirmModalVisible'\n                  }}\n                  data-test-attempt-delete-bills=''\n                >\n                  {{t 'common.Delete'}}\n                </div>\n              {{/if}}\n            </OverlaidDropdown>\n          </div>\n        {{/if}}\n  \n        <div class='invoice-selector__controls-row float-end'>\n          {{#if this.jsFilterByDate}}\n            <PageFilters::Pill\n              @onClose={{fn (mut this.jsFilterByDate) (not this.jsFilterByDate)}}\n            >\n              {{t 'common.Date range'}}:\n              {{moment-format this.startDate (t 'date.shortSlashDmy')}}\n              {{t 'common.to'}}\n              {{moment-format this.endDate (t 'date.shortSlashDmy')}}\n            </PageFilters::Pill>\n          {{/if}}\n          {{#if (not-eq this.status 'ALL')}}\n            <PageFilters::Pill @onClose={{fn (mut this.status) 'ALL'}}>\n              {{t 'common.Status'}}:\n              {{convert-to-title-case this.status}}\n            </PageFilters::Pill>\n          {{/if}}\n          {{#if this.unallocatedOnly}}\n            <PageFilters::Pill @onClose={{fn (mut this.unallocatedOnly) false}}>\n              {{t\n                'entity.builda-price.operations.incoming.bills-legacy.Unallocated bills'\n              }}\n            </PageFilters::Pill>\n          {{/if}}\n          {{! Filters }}\n          <PageFilters class='button--spaced' @align='right'>\n            {{! Date range }}\n  \n            <PageFilters::Item @label={{t 'common.Date range'}}>\n              <DateRangeSelector\n                @disabled={{if this.jsFilterByDate false true}}\n                @align='right'\n                @startDate={{this.jsStartDate}}\n                @endDate={{this.jsEndDate}}\n                @onApply={{action 'setDateRange'}}\n              />\n            </PageFilters::Item>\n  \n            <PageFilters::Item>\n              <label>\n                <Input\n                  aria-label='All Data'\n                  @type='checkbox'\n                  @checked={{this.jsFilterByDate}}\n                  {{on\n                    'click'\n                    (fn (mut this.jsFilterByDate) (not this.jsFilterByDate))\n                  }}\n                />\n                {{t 'common.Filter by date'}}\n              </label>\n            </PageFilters::Item>\n  \n            {{! Status filter }}\n            <PageFilters::Item @label={{t 'common.Status'}}>\n              <SelectInput\n                @value={{this.status}}\n                @action={{fn (mut this.status)}}\n                @class='select-box'\n                data-test-bill-status-filter\n                as |si|\n              >\n                <si.option @value='ALL'>{{t 'common.All'}}</si.option>\n                <si.option @value='DRAFT'>{{t 'common.Draft'}}</si.option>\n                <si.option @value='ACCEPTED'>{{t 'common.Accepted'}}</si.option>\n                <si.option @value='ARCHIVED'>{{t 'common.Archived'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held'}}</si.option>\n                <si.option @value='PAID'>{{t 'common.Paid'}}</si.option>\n              </SelectInput>\n            </PageFilters::Item>\n  \n            {{! Unallocated invoice filter }}\n  \n            <PageFilters::Item>\n              <label>\n                <Input @type='checkbox' @checked={{this.unallocatedOnly}} />\n                {{t\n                  'entity.builda-price.operations.incoming.bills-legacy.Only show unallocated bills'\n                }}\n              </label>\n            </PageFilters::Item>\n          </PageFilters>\n  \n          {{! Search box }}\n          <span class='invoice-selector__controls-search button--spaced'>\n            <FaIcon @icon='search' />\n            <input\n              type='search'\n              value={{this.search}}\n              {{did-insert (action 'setFocus')}}\n              {{on 'input' (action 'onSearchInput')}}\n              class='text-input'\n              placeholder={{t\n                'entity.builda-price.operations.incoming.bills-legacy.supplierReference'\n              }}\n            />\n          </span>\n        </div>\n      </div>\n  \n      <div class='invoice-selector__invoice-list'>\n        {{#if this.condensedView}}\n          {{! Table view }}\n          <ActiveTable\n            @columns={{this.tableColumns}}\n            @sortedBy={{this.sortedBy}}\n            @class='supplier-invoice-table-pm'\n          >\n            <LazyEach\n              @items={{this.invoices}}\n              @automatic={{true}}\n              @emptyText={{t 'common.No bills'}}\n              @itemDisplayName={{t 'common.bills'}}\n              as |invoice identifier|\n            >\n              <SupplierInvoicesPm::InvoiceRow\n                @class={{identifier}}\n                @invoice={{invoice}}\n                @showXeroButton={{this.xeroIntegration.ready}}\n                @hasWriteLevel={{this.hasWriteLevel}}\n                @hasDuplicate={{invoice.hasDuplicate}}\n                @editInvoice={{action\n                  'transitionToBill'\n                  'entity.builda-price.operations.incoming.bills-legacy.bill'\n                  invoice.id\n                }}\n                data-test-bill={{or invoice.id 'new'}}\n                data-test-edit-bill={{or invoice.id 'new'}}\n                @showBadges={{this.showBadgesColumn}}\n              />\n            </LazyEach>\n          </ActiveTable>\n  \n          {{#if (eq this.model.invoices.length this.model.maxNumberOfBills)}}\n            <div class='alert alert-info' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{t\n                  'entity.builda-price.operations.incoming.bills-legacy.maxNumberOfBills'\n                }}\n              </span>\n            </div>\n          {{/if}}\n  \n        {{else}}\n  \n          {{! Card based view }}\n          {{#if this.groupedInvoices.length}}\n            <LazyEach\n              @items={{this.groupedInvoices}}\n              @automatic={{true}}\n              @initialNumberOfItemsVisible='3'\n              @increment='2'\n              @itemDisplayName={{t 'common.suppliers'}}\n              as |invoiceGroup groupIdentifier|\n            >\n              <div class='invoice-selector__invoice-title'>\n                <div class='invoice-selector__invoice-line'></div>\n                <div class='invoice-selector__invoice-issuer'>{{or\n                    invoiceGroup.issuer\n                    'Unspecified Issuer'\n                  }}</div>\n                <div class='invoice-selector__invoice-line'></div>\n              </div>\n  \n              <LazyEach\n                @items={{invoiceGroup.invoices}}\n                @automatic={{true}}\n                @initialNumberOfItemsVisible='4'\n                @increment='8'\n                @itemDisplayName={{t 'common.bills'}}\n                as |invoice identifier|\n              >\n                <SupplierInvoicesPm::Invoice\n                  @class={{identifier}}\n                  @invoice={{invoice}}\n                  @xeroReady={{this.xeroIntegration.ready}}\n                  @hasWriteLevel={{this.hasWriteLevel}}\n                  @expandedByDefault={{true}}\n                  @hasDuplicate={{invoice.hasDuplicate}}\n                  @editInvoice={{action\n                    'transitionToBill'\n                    'entity.builda-price.operations.incoming.bills-legacy.bill'\n                    invoice.id\n                  }}\n                  data-test-bill={{or invoice.id 'new'}}\n                />\n              </LazyEach>\n  \n              <span class='{{groupIdentifier}}'></span>\n  \n            </LazyEach>\n  \n            {{#if (eq this.model.invoices.length this.model.maxNumberOfBills)}}\n              <div class='alert alert-info' role='alert'>\n                <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n                <span class='me-2'>\n                  {{t\n                    'entity.builda-price.operations.incoming.bills-legacy.maxNumberOfBills'\n                  }}\n                </span>\n              </div>\n            {{/if}}\n  \n          {{else}}\n  \n            {{! Tell the user that there are no invoices (there may not be any, or just none that match the search) }}\n            <div class='error-page error-page--no-data'>\n              <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n              <h3 class='h3 error-page__title'>{{t 'common.No bills'}}</h3>\n            </div>\n          {{/if}}\n        {{/if}}\n      </div>\n    </article>\n  \n    {{! Unmapped accept warning }}\n    {{#if this.unmappedInvoiceWarningModalVisible}}\n      <ModalDialog\n        @overlayClass='modal'\n        @onClose={{fn (mut this.confirmCallback) false}}\n        @translucentOverlay={{true}}\n        @containerClass='block-module'\n      >\n        <p>{{t\n            'entity.builda-price.operations.incoming.bills-legacy.youAreAboutToAcceptAnInvoiceThatIsNotCompletelyAllocatedDoYouWantToContinue'\n          }}</p>\n  \n        <footer class='block-module__footer'>\n          <label><Input\n              @type='checkbox'\n              @checked={{this.doNotWarnForUnmappedInvoice}}\n            />\n            {{t 'shared.bill.Do not warn me again'}}</label>\n          <button\n            class='float-end button button--spaced'\n            data-test-confirm-unmapped-bills\n            type='button'\n            {{on 'click' (fn this.confirmCallback true)}}\n          >{{t 'common.Continue'}}</button>\n          <button\n            class='float-end button button--plain button--spaced'\n            type='button'\n            {{on 'click' (fn this.confirmCallback false)}}\n          >{{t 'common.Cancel'}}</button>\n        </footer>\n      </ModalDialog>\n    {{/if}}\n  \n    <ConfirmDelete\n      @visible={{this.invoiceDeleteConfirmModalVisible}}\n      @title={{if\n        this.deleteConfirmText\n        (t 'common.Delete bills')\n        (t 'common.Delete bill')\n      }}\n      @messages={{this.deleteMessages}}\n      @confirmText={{this.deleteConfirmText}}\n      @deleteButtonText={{if\n        this.deleteConfirmText\n        (t 'common.Delete bills')\n        (t 'common.Delete bill')\n      }}\n      @deletingButtonText={{t 'common.Deleting'}}\n      @onDelete={{action 'deleteSelectedInvoices'}}\n      @onCancel={{fn (mut this.invoiceDeleteConfirmModalVisible) false}}\n    ><p>{{t 'shared.estimate.This action cannot be undone'}}</p></ConfirmDelete>\n  \n    {{! Project/task selection modal }}\n    {{#if this.allocatingItems}}\n      <AllocationSelector\n        @onCancel={{action this.set 'allocatingItems' false}}\n        @onAllocateSelected={{action 'allocateSelected'}}\n        @onAllocateAndAcceptSelected={{action 'allocateAndAcceptSelected'}}\n        @onAllocateAcceptAndSendToXeroSelected={{action\n          'allocateAcceptAndSendToXeroSelected'\n        }}\n        @isAllocating={{or this.isAllocating this.isSecondaryAllocating}}\n        @items={{this.selectedInvoiceItems}}\n        @projects={{this.model.projects}}\n        @tasks={{this.model.tasks}}\n        {{! xero }}\n        @xeroIntegration={{this.xeroIntegration}}\n        @isXeroFetching={{this.xeroFetching}}\n        @xeroAccounts={{this.model.xeroAccounts}}\n        @onUpdateXeroAccounts={{action 'updateXeroAccounts'}}\n        {{! quickbooks }}\n        @quickbooksIntegration={{this.quickbooks}}\n        @isQuickbooksFetching={{this.quickbooksFetching}}\n        @quickbooksAccounts={{this.model.quickbooksAccounts}}\n        @onUpdateQuickbooksAccounts={{action 'updateQuickbooksAccounts'}}\n      />\n    {{/if}}\n    {{#if this.unmappedInvoicesToConfirm}}\n      <ModalDialog\n        @overlayClass='modal'\n        @onClose={{fn (mut this.unmappedInvoicesToConfirm) false}}\n        @translucentOverlay={{true}}\n        @containerClass='block-module'\n      >\n        <p>\n          <p>\n            {{t\n              'entity.builda-price.operations.incoming.bills-legacy.theFollowingXBillsOfYAreNotCompletelyAllocated'\n              bills=this.unmappedInvoicesToConfirm.length\n              total=this.selectedInvoices.length\n            }}:\n          </p>\n          <table class='data-table data-table--stretched'>\n            <tr>\n              <th>{{t 'common.Supplier'}}</th>\n              <th>{{t 'common.Bill number'}}</th>\n              <th>{{t 'common.Reference'}}</th>\n              <th>{{t 'common.Total'}}</th>\n            </tr>\n            {{#each this.unmappedInvoicesToConfirm as |invoice|}}\n              <tr>\n                <td>{{invoice.issuer}}</td>\n                <td>{{invoice.billNumber}}</td>\n                <td>{{invoice.name}}</td>\n                <td>\n                  {{number-format\n                    invoice.totalPrice\n                    style='currency'\n                    dashZero=true\n                  }}\n                </td>\n              </tr>\n            {{/each}}\n          </table>\n        </p>\n  \n        <footer class='block-module__footer'>\n          {{#if this.isXeroLoading}}\n            <LoadingButton\n              @class='button float-end'\n              @isLoading={{true}}\n              @disabled={{true}}\n            />\n          {{else}}\n            <button\n              class='button button--spaced float-end'\n              type='button'\n              {{action 'sendSelectedInvoicesToXero' 'all'}}\n            >\n              {{t\n                'entity.builda-price.operations.incoming.bills-legacy.Send all'\n              }}\n            </button>\n            <button\n              class='button button--spaced float-end'\n              type='button'\n              {{action 'sendSelectedInvoicesToXero' 'mapped'}}\n            >\n              {{t\n                'entity.builda-price.operations.incoming.bills-legacy.Send allocated bills only'\n              }}\n            </button>\n          {{/if}}\n  \n          <button\n            class='button button--plain button--spaced'\n            type='button'\n            {{on 'click' (fn (mut this.unmappedInvoicesToConfirm) null)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n        </footer>\n      </ModalDialog>\n    {{/if}}\n  \n    {{#if this.importedInvoices.existing.length}}\n      <ModalDialog\n        @overlayClass='modal'\n        @onClose={{fn (mut this.importedInvoices) null}}\n        @translucentOverlay={{true}}\n        @containerClass='block-module'\n      >\n        <p>\n          {{t\n            'shared.notification.xOutOfYBillsWereFoundToBeDuplicates'\n            duplicates=this.importedInvoices.existing.length\n            total=(math\n              this.importedInvoices.existing.length\n              '+'\n              this.importedInvoices.new.length\n            )\n          }}:\n        </p>\n  \n        <div class='invoice-editor__import-modal__table-container'>\n          <table class='data-table data-table--stretched'>\n            <tr>\n              <th>{{t 'common.Supplier'}}</th>\n              <th>{{t 'common.Bill number'}}</th>\n              <th>{{t 'common.Reference'}}</th>\n            </tr>\n            {{#each this.importedInvoices.existing as |invoice|}}\n              <tr>\n                <td>{{invoice.issuer}}</td>\n                <td>{{invoice.billNumber}}</td>\n                <td>{{invoice.name}}</td>\n              </tr>\n            {{/each}}\n          </table>\n        </div>\n  \n        <footer class='block-module__footer'>\n          {{#if this.importedInvoices.new.length}}\n            <button\n              class='button float-end button--spaced'\n              type='button'\n              {{action 'importInvoices' this.importedInvoices.new}}\n            >\n              {{t\n                'entity.builda-price.operations.incoming.bills-legacy.Import only new bills'\n              }}\n            </button>\n          {{/if}}\n  \n          <button\n            class='button float-end button--spaced'\n            type='button'\n            {{action 'importInvoices' this.importedInvoices.invoices}}\n          >\n            {{t 'common.Import all'}}\n          </button>\n  \n          <button\n            class='button button--plain button--spaced'\n            type='button'\n            {{on 'click' (fn (mut this.importedInvoices) null)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n        </footer>\n      </ModalDialog>\n    {{/if}}\n  \n    {{#if this.invoiceTypeResponseHandlerVisible}}\n      <InvoiceTypeResponseHandler\n        @responses={{this.invoiceResponses}}\n        @onCancel={{action 'onInvoiceTypeResponseHandlerCancel'}}\n      />\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"+qwKiNln\",\n    \"block\": \"[[[41,[28,[37,1],[[30,0,[\\\"router\\\",\\\"currentRouteName\\\"]],\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\"],null],[[[1,\\\"  \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[41,[51,[28,[37,5],[\\\"isDesktop\\\"],null]],[[[1,\\\"    \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Bills\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"border-bottom mb-3 d-flex align-items-center pb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1 m-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"common.Bills\\\"],null]],[1,\\\"\\\\n          \\\"],[10,\\\"sup\\\"],[14,0,\\\"fs-6 text-muted\\\"],[12],[1,\\\"LEGACY\\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"invoice-selector__radio\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,1,\\\"condensed-filter--condensed\\\"],[15,\\\"checked\\\",[28,[37,1],[[30,0,[\\\"condensedView\\\"]],false],null]],[15,\\\"onchange\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"condensedView\\\"]]],null],false],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"condensed-filter--condensed\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"list-ul\\\",true]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"invoice-selector__radio\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"input\\\"],[14,1,\\\"condensed-filter--card\\\"],[15,\\\"checked\\\",[28,[37,1],[[30,0,[\\\"condensedView\\\"]],true],null]],[15,\\\"onchange\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"condensedView\\\"]]],null],true],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"condensed-filter--card\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"table\\\",true]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"hasWriteLevel\\\"]],[[[1,\\\"          \\\"],[8,[39,17],null,[[\\\"@buttonText\\\",\\\"@title\\\",\\\"@class\\\",\\\"@buttonClasses\\\"],[[28,[37,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Import a bill\\\"],null],[28,[37,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Bill format\\\"],null],\\\"button--spaced\\\",\\\"button button--secondary file-input-button\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"region\\\"]],\\\"NZL\\\"],null],[[[1,\\\"              \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@import\\\",\\\"@parser\\\"],[\\\"overlaid-dropdown__option\\\",[28,[37,19],[[30,0],\\\"handleImportInvoices\\\"],null],[30,0,[\\\"parsers\\\",\\\"bunnings\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Bunnings CSV \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@import\\\",\\\"@parser\\\"],[\\\"overlaid-dropdown__option\\\",[28,[37,19],[[30,0],\\\"handleImportInvoices\\\"],null],[30,0,[\\\"parsers\\\",\\\"carters\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Carters CSV \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@import\\\",\\\"@parser\\\"],[\\\"overlaid-dropdown__option\\\",[28,[37,19],[[30,0],\\\"handleImportInvoices\\\"],null],[30,0,[\\\"parsers\\\",\\\"mitre\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Mitre 10 CSV \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@import\\\",\\\"@parser\\\"],[\\\"overlaid-dropdown__option\\\",[28,[37,19],[[30,0],\\\"handleImportInvoices\\\"],null],[30,0,[\\\"parsers\\\",\\\"placemakers\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"PlaceMakers CSV\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@import\\\",\\\"@parser\\\"],[\\\"overlaid-dropdown__option\\\",[28,[37,19],[[30,0],\\\"handleImportInvoices\\\"],null],[30,0,[\\\"parsers\\\",\\\"xero\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Xero CSV \\\"]],[]]]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add button--spaced\\\"],[24,\\\"data-test-create-bill-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"transitionToBill\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",\\\"new\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.New bill\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"alert alert-info d-flex align-items-center justify-content-center gap-2 text-center\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[12],[1,\\\"We have upgraded the bills page with a faster experience.\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,22],[[24,0,\\\"alert-link text-decoration-underline\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.operations.incoming.bills\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        Try it now!\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"    \\\"],[10,0],[14,0,\\\"invoice-selector__controls\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasWriteLevel\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"invoice-selector__controls-row\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"invoices\\\",\\\"length\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"toggleInvoicesSelected\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[52,[28,[37,24],[[30,0,[\\\"invoices\\\",\\\"length\\\"]],[30,0,[\\\"allInvoicesSelected\\\"]]],null],[28,[37,7],[\\\"common.Deselect all\\\"],null],[28,[37,7],[\\\"common.Select all\\\"],null]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,17],[[24,\\\"data-test-bulk-actions\\\",\\\"\\\"]],[[\\\"@buttonText\\\",\\\"@class\\\",\\\"@disabled\\\",\\\"@buttonClasses\\\",\\\"@title\\\"],[[28,[37,7],[\\\"common.Actions\\\"],null],\\\"button--spaced\\\",[28,[37,23],[[30,0,[\\\"selectedInvoices\\\",\\\"length\\\"]]],null],\\\"button button--secondary\\\",[28,[37,25],[[30,0,[\\\"selectedInvoices\\\",\\\"length\\\"]],\\\" \\\",[52,[28,[37,26],[[30,0,[\\\"selectedInvoices\\\",\\\"length\\\"]],1],null],[28,[37,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.selected bills\\\"],null],[28,[37,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.selected bill\\\"],null]],\\\" \\\",[28,[37,7],[\\\"common.with\\\"],null],\\\" \\\",[30,0,[\\\"selectedInvoiceItems\\\",\\\"length\\\"]],\\\" \\\",[52,[28,[37,26],[[30,0,[\\\"selectedInvoiceItems\\\",\\\"length\\\"]],1],null],[28,[37,7],[\\\"common.items\\\"],null],[28,[37,7],[\\\"common.item\\\"],null]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,27],[[30,0,[\\\"isAutoMapping\\\"]],[30,0,[\\\"isSaving\\\"]],[30,0,[\\\"isXeroLoading\\\"]]],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"overlaid-dropdown__option text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,28],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[51,[28,[37,1],[[30,0,[\\\"status\\\"]],\\\"ARCHIVED\\\"],null]],[[[41,[51,[28,[37,1],[[30,0,[\\\"status\\\"]],\\\"ACCEPTED\\\"],null]],[[[1,\\\"                  \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-accept-bills\\\",\\\"\\\"],[4,[38,19],[[30,0],\\\"acceptSelectedInvoices\\\"],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Accept invoices\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\"                \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-archive-bills\\\",\\\"\\\"],[4,[38,19],[[30,0],\\\"archiveSelectedInvoices\\\"],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Archive invoices\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[[[1,\\\"                \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-send-bills-to-xero\\\",\\\"\\\"],[4,[38,19],[[30,0],\\\"sendSelectedInvoicesToXero\\\"],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,7],[\\\"shared.bill.Send to Xero\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]],[[[1,\\\"                \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-send-bills-to-quickbooks\\\",\\\"\\\"],[4,[38,19],[[30,0],\\\"sendSelectedInvoicesToQuickbooks\\\"],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,7],[\\\"shared.bill.Send to QuickBooks\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-auto-map-bills\\\",\\\"\\\"],[4,[38,19],[[30,0],\\\"autoMapSelected\\\"],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Allocate (Auto Map)\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-allocate-items\\\",\\\"\\\"],[4,[38,19],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"allocatingItems\\\"],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Allocate (Manually)\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n              \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option button--delete\\\"],[24,\\\"data-test-attempt-delete-bills\\\",\\\"\\\"],[4,[38,19],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"invoiceDeleteConfirmModalVisible\\\"],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"invoice-selector__controls-row float-end\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"jsFilterByDate\\\"]],[[[1,\\\"          \\\"],[8,[39,29],null,[[\\\"@onClose\\\"],[[28,[37,13],[[28,[37,14],[[30,0,[\\\"jsFilterByDate\\\"]]],null],[28,[37,23],[[30,0,[\\\"jsFilterByDate\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.Date range\\\"],null]],[1,\\\":\\\\n            \\\"],[1,[28,[35,30],[[30,0,[\\\"startDate\\\"]],[28,[37,7],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.to\\\"],null]],[1,\\\"\\\\n            \\\"],[1,[28,[35,30],[[30,0,[\\\"endDate\\\"]],[28,[37,7],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,31],[[30,0,[\\\"status\\\"]],\\\"ALL\\\"],null],[[[1,\\\"          \\\"],[8,[39,29],null,[[\\\"@onClose\\\"],[[28,[37,13],[[28,[37,14],[[30,0,[\\\"status\\\"]]],null],\\\"ALL\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n            \\\"],[1,[28,[35,32],[[30,0,[\\\"status\\\"]]],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"unallocatedOnly\\\"]],[[[1,\\\"          \\\"],[8,[39,29],null,[[\\\"@onClose\\\"],[[28,[37,13],[[28,[37,14],[[30,0,[\\\"unallocatedOnly\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Unallocated bills\\\"],null]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,33],[[24,0,\\\"button--spaced\\\"]],[[\\\"@align\\\"],[\\\"right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[1,\\\"\\\\n          \\\"],[8,[39,34],null,[[\\\"@label\\\"],[[28,[37,7],[\\\"common.Date range\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,35],null,[[\\\"@disabled\\\",\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[[52,[30,0,[\\\"jsFilterByDate\\\"]],false,true],\\\"right\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[28,[37,19],[[30,0],\\\"setDateRange\\\"],null]]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,34],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,12],[[24,\\\"aria-label\\\",\\\"All Data\\\"],[4,[38,36],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"jsFilterByDate\\\"]]],null],[28,[37,23],[[30,0,[\\\"jsFilterByDate\\\"]]],null]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"jsFilterByDate\\\"]]]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,7],[\\\"common.Filter by date\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"          \\\"],[8,[39,34],null,[[\\\"@label\\\"],[[28,[37,7],[\\\"common.Status\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,37],[[24,\\\"data-test-bill-status-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,13],[[28,[37,14],[[30,0,[\\\"status\\\"]]],null]],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Draft\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ACCEPTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Accepted\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Archived\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Held\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"PAID\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"common.Paid\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[1]]]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"\\\\n          \\\"],[8,[39,34],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,12],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"unallocatedOnly\\\"]]]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Only show unallocated bills\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"        \\\"],[10,1],[14,0,\\\"invoice-selector__controls-search button--spaced\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"search\\\"]],null],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[16,2,[30,0,[\\\"search\\\"]]],[24,0,\\\"text-input\\\"],[16,\\\"placeholder\\\",[28,[37,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.supplierReference\\\"],null]],[24,4,\\\"search\\\"],[4,[38,38],[[28,[37,19],[[30,0],\\\"setFocus\\\"],null]],null],[4,[38,36],[\\\"input\\\",[28,[37,19],[[30,0],\\\"onSearchInput\\\"],null]],null],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"invoice-selector__invoice-list\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"condensedView\\\"]],[[[1,\\\"        \\\"],[8,[39,39],null,[[\\\"@columns\\\",\\\"@sortedBy\\\",\\\"@class\\\"],[[30,0,[\\\"tableColumns\\\"]],[30,0,[\\\"sortedBy\\\"]],\\\"supplier-invoice-table-pm\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,40],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@emptyText\\\",\\\"@itemDisplayName\\\"],[[30,0,[\\\"invoices\\\"]],true,[28,[37,7],[\\\"common.No bills\\\"],null],[28,[37,7],[\\\"common.bills\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"data-test-bill\\\",[28,[37,27],[[30,2,[\\\"id\\\"]],\\\"new\\\"],null]],[16,\\\"data-test-edit-bill\\\",[28,[37,27],[[30,2,[\\\"id\\\"]],\\\"new\\\"],null]]],[[\\\"@class\\\",\\\"@invoice\\\",\\\"@showXeroButton\\\",\\\"@hasWriteLevel\\\",\\\"@hasDuplicate\\\",\\\"@editInvoice\\\",\\\"@showBadges\\\"],[[30,3],[30,2],[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[30,0,[\\\"hasWriteLevel\\\"]],[30,2,[\\\"hasDuplicate\\\"]],[28,[37,19],[[30,0],\\\"transitionToBill\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",[30,2,[\\\"id\\\"]]],null],[30,0,[\\\"showBadgesColumn\\\"]]]],null],[1,\\\"\\\\n          \\\"]],[2,3]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,1],[[30,0,[\\\"model\\\",\\\"invoices\\\",\\\"length\\\"]],[30,0,[\\\"model\\\",\\\"maxNumberOfBills\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-info\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.maxNumberOfBills\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"groupedInvoices\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,40],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\"],[[30,0,[\\\"groupedInvoices\\\"]],true,\\\"3\\\",\\\"2\\\",[28,[37,7],[\\\"common.suppliers\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"invoice-selector__invoice-title\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"invoice-selector__invoice-line\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"invoice-selector__invoice-issuer\\\"],[12],[1,[28,[35,27],[[30,4,[\\\"issuer\\\"]],\\\"Unspecified Issuer\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"invoice-selector__invoice-line\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,40],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\"],[[30,4,[\\\"invoices\\\"]],true,\\\"4\\\",\\\"8\\\",[28,[37,7],[\\\"common.bills\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[39,42],[[16,\\\"data-test-bill\\\",[28,[37,27],[[30,6,[\\\"id\\\"]],\\\"new\\\"],null]]],[[\\\"@class\\\",\\\"@invoice\\\",\\\"@xeroReady\\\",\\\"@hasWriteLevel\\\",\\\"@expandedByDefault\\\",\\\"@hasDuplicate\\\",\\\"@editInvoice\\\"],[[30,7],[30,6],[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[30,0,[\\\"hasWriteLevel\\\"]],true,[30,6,[\\\"hasDuplicate\\\"]],[28,[37,19],[[30,0],\\\"transitionToBill\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",[30,6,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"]],[6,7]]]]],[1,\\\"\\\\n\\\\n            \\\"],[10,1],[15,0,[29,[[30,5]]]],[12],[13],[1,\\\"\\\\n\\\\n          \\\"]],[4,5]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,1],[[30,0,[\\\"model\\\",\\\"invoices\\\",\\\"length\\\"]],[30,0,[\\\"model\\\",\\\"maxNumberOfBills\\\"]]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"alert alert-info\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.maxNumberOfBills\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n            \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,7],[\\\"common.No bills\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"unmappedInvoiceWarningModalVisible\\\"]],[[[1,\\\"    \\\"],[8,[39,45],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"confirmCallback\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.youAreAboutToAcceptAnInvoiceThatIsNotCompletelyAllocatedDoYouWantToContinue\\\"],null]],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[8,[39,12],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"doNotWarnForUnmappedInvoice\\\"]]]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"shared.bill.Do not warn me again\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced\\\"],[24,\\\"data-test-confirm-unmapped-bills\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,36],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"confirmCallback\\\"]],true],null]],null],[12],[1,[28,[35,7],[\\\"common.Continue\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,36],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"confirmCallback\\\"]],false],null]],null],[12],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[8,[39,48],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@confirmText\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"invoiceDeleteConfirmModalVisible\\\"]],[52,[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,7],[\\\"common.Delete bills\\\"],null],[28,[37,7],[\\\"common.Delete bill\\\"],null]],[30,0,[\\\"deleteMessages\\\"]],[30,0,[\\\"deleteConfirmText\\\"]],[52,[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,7],[\\\"common.Delete bills\\\"],null],[28,[37,7],[\\\"common.Delete bill\\\"],null]],[28,[37,7],[\\\"common.Deleting\\\"],null],[28,[37,19],[[30,0],\\\"deleteSelectedInvoices\\\"],null],[28,[37,13],[[28,[37,14],[[30,0,[\\\"invoiceDeleteConfirmModalVisible\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[10,2],[12],[1,[28,[35,7],[\\\"shared.estimate.This action cannot be undone\\\"],null]],[13]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"allocatingItems\\\"]],[[[1,\\\"    \\\"],[8,[39,49],null,[[\\\"@onCancel\\\",\\\"@onAllocateSelected\\\",\\\"@onAllocateAndAcceptSelected\\\",\\\"@onAllocateAcceptAndSendToXeroSelected\\\",\\\"@isAllocating\\\",\\\"@items\\\",\\\"@projects\\\",\\\"@tasks\\\",\\\"@xeroIntegration\\\",\\\"@isXeroFetching\\\",\\\"@xeroAccounts\\\",\\\"@onUpdateXeroAccounts\\\",\\\"@quickbooksIntegration\\\",\\\"@isQuickbooksFetching\\\",\\\"@quickbooksAccounts\\\",\\\"@onUpdateQuickbooksAccounts\\\"],[[28,[37,19],[[30,0],[30,0,[\\\"set\\\"]],\\\"allocatingItems\\\",false],null],[28,[37,19],[[30,0],\\\"allocateSelected\\\"],null],[28,[37,19],[[30,0],\\\"allocateAndAcceptSelected\\\"],null],[28,[37,19],[[30,0],\\\"allocateAcceptAndSendToXeroSelected\\\"],null],[28,[37,27],[[30,0,[\\\"isAllocating\\\"]],[30,0,[\\\"isSecondaryAllocating\\\"]]],null],[30,0,[\\\"selectedInvoiceItems\\\"]],[30,0,[\\\"model\\\",\\\"projects\\\"]],[30,0,[\\\"model\\\",\\\"tasks\\\"]],[30,0,[\\\"xeroIntegration\\\"]],[30,0,[\\\"xeroFetching\\\"]],[30,0,[\\\"model\\\",\\\"xeroAccounts\\\"]],[28,[37,19],[[30,0],\\\"updateXeroAccounts\\\"],null],[30,0,[\\\"quickbooks\\\"]],[30,0,[\\\"quickbooksFetching\\\"]],[30,0,[\\\"model\\\",\\\"quickbooksAccounts\\\"]],[28,[37,19],[[30,0],\\\"updateQuickbooksAccounts\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"unmappedInvoicesToConfirm\\\"]],[[[1,\\\"    \\\"],[8,[39,45],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"unmappedInvoicesToConfirm\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.theFollowingXBillsOfYAreNotCompletelyAllocated\\\"],[[\\\"bills\\\",\\\"total\\\"],[[30,0,[\\\"unmappedInvoicesToConfirm\\\",\\\"length\\\"]],[30,0,[\\\"selectedInvoices\\\",\\\"length\\\"]]]]]],[1,\\\":\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table data-table--stretched\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Supplier\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Bill number\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,54],[[28,[37,54],[[30,0,[\\\"unmappedInvoicesToConfirm\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,8,[\\\"issuer\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,8,[\\\"billNumber\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,8,[\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,56],[[30,8,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isXeroLoading\\\"]],[[[1,\\\"          \\\"],[8,[39,57],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@disabled\\\"],[\\\"button float-end\\\",true,true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"sendSelectedInvoicesToXero\\\",\\\"all\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Send all\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"sendSelectedInvoicesToXero\\\",\\\"mapped\\\"],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Send allocated bills only\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,36],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"unmappedInvoicesToConfirm\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importedInvoices\\\",\\\"existing\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[39,45],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"importedInvoices\\\"]]],null],null],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,7],[\\\"shared.notification.xOutOfYBillsWereFoundToBeDuplicates\\\"],[[\\\"duplicates\\\",\\\"total\\\"],[[30,0,[\\\"importedInvoices\\\",\\\"existing\\\",\\\"length\\\"]],[28,[37,58],[[30,0,[\\\"importedInvoices\\\",\\\"existing\\\",\\\"length\\\"]],\\\"+\\\",[30,0,[\\\"importedInvoices\\\",\\\"new\\\",\\\"length\\\"]]],null]]]]],[1,\\\":\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__import-modal__table-container\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table data-table--stretched\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Supplier\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Bill number\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,7],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,54],[[28,[37,54],[[30,0,[\\\"importedInvoices\\\",\\\"existing\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,9,[\\\"issuer\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,9,[\\\"billNumber\\\"]]],[13],[1,\\\"\\\\n              \\\"],[10,\\\"td\\\"],[12],[1,[30,9,[\\\"name\\\"]]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importedInvoices\\\",\\\"new\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"button float-end button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"importInvoices\\\",[30,0,[\\\"importedInvoices\\\",\\\"new\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.bills-legacy.Import only new bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button float-end button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,19],[[30,0],\\\"importInvoices\\\",[30,0,[\\\"importedInvoices\\\",\\\"invoices\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"common.Import all\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,36],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"importedInvoices\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceTypeResponseHandlerVisible\\\"]],[[[1,\\\"    \\\"],[8,[39,59],null,[[\\\"@responses\\\",\\\"@onCancel\\\"],[[30,0,[\\\"invoiceResponses\\\"]],[28,[37,19],[[30,0],\\\"onInvoiceTypeResponseHandlerCancel\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[\\\"si\\\",\\\"invoice\\\",\\\"identifier\\\",\\\"invoiceGroup\\\",\\\"groupIdentifier\\\",\\\"invoice\\\",\\\"identifier\\\",\\\"invoice\\\",\\\"invoice\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"component\\\",\\\"-outlet\\\",\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"t\\\",\\\"article\\\",\\\"div\\\",\\\"h1\\\",\\\"sup\\\",\\\"input\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"fa-icon\\\",\\\"overlaid-dropdown\\\",\\\"file-importer\\\",\\\"action\\\",\\\"button\\\",\\\"span\\\",\\\"link-to\\\",\\\"not\\\",\\\"and\\\",\\\"concat\\\",\\\"gt\\\",\\\"or\\\",\\\"loading-icon\\\",\\\"page-filters/pill\\\",\\\"moment-format\\\",\\\"not-eq\\\",\\\"convert-to-title-case\\\",\\\"page-filters\\\",\\\"page-filters/item\\\",\\\"date-range-selector\\\",\\\"on\\\",\\\"select-input\\\",\\\"did-insert\\\",\\\"active-table\\\",\\\"lazy-each\\\",\\\"supplier-invoices-pm/invoice-row\\\",\\\"supplier-invoices-pm/invoice\\\",\\\"h2\\\",\\\"h3\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"footer\\\",\\\"confirm-delete\\\",\\\"allocation-selector\\\",\\\"table\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"number-format\\\",\\\"loading-button\\\",\\\"math\\\",\\\"invoice-type-response-handler\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/bills-legacy.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/bills-legacy/bill\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Bills')}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.incoming.bills-legacy'\n      }}\n    />\n  {{/unless}}\n  \n  <article\n    class='m-4 page-wrapper {{if this.showValidations \"show-validations\"}}'\n  >\n    <div class='mb-2'>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    </div>\n    <header class='border-bottom mb-3 align-items-center d-flex'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='my-2'>\n          {{this.pageTitle}}\n        </h2>\n      {{/if}}\n  \n      {{#unless this.isEditing}}\n        <div class='ms-auto mb-2 d-flex align-items-center flex-wrap'>\n          {{#if (gt this.model.invoices.length 1)}}\n            <button\n              class='button button--plain button--spaced my-1 invoice-editor__header-navigation-button'\n              disabled={{not this.nextInvoice.previous}}\n              type='button'\n              {{action\n                'transitionTo'\n                'entity.builda-price.operations.incoming.bills-legacy.bill'\n                this.nextInvoice.previous\n              }}\n            >\n              <FaIcon @icon='angle-left' @fixedWidth={{true}} />&nbsp;{{t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Previous'\n              }}\n            </button>\n            <button\n              class='button button--plain button--spaced my-1 invoice-editor__header-navigation-button'\n              disabled={{not this.nextInvoice.next}}\n              type='button'\n              {{action\n                'transitionTo'\n                'entity.builda-price.operations.incoming.bills-legacy.bill'\n                this.nextInvoice.next\n              }}\n            >\n              {{t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Next'\n              }}&nbsp;<FaIcon @icon='angle-right' @fixedWidth={{true}} />\n            </button>\n          {{/if}}\n          {{#if (includes-feature-flags 'canManageBills')}}\n            <button\n              class='button button--add button--spaced my-1'\n              type='button'\n              {{action\n                'transitionTo'\n                'entity.builda-price.operations.incoming.bills-legacy.bill'\n                'new'\n              }}\n            >{{t 'common.New bill'}}</button>\n          {{/if}}\n        </div>\n  \n      {{/unless}}\n    </header>\n  \n    <div class='d-flex align-items-center flex-wrap'>\n      {{#unless (or this.isEditing this.model.invoice.isNew)}}\n        {{! Badges }}\n        {{! Denotes that this invoice originated from ITM (eAccounts) or Step Connect }}\n        {{#if (or this.model.invoice.eaccountsFileName this.model.invoice.ipsId)}}\n          <IntegrationIcon\n            @imported={{true}}\n            @title={{t\n              'entity.builda-price.operations.incoming.bills-legacy.bill.This bill was imported automatically'\n            }}\n            data-test-edi-icon\n          />\n        {{/if}}\n  \n        {{! Denote that the invoice has been sent to Accounting platform }}\n        {{#if\n          (or this.model.invoice.xeroLinked this.model.invoice.quickbooksLinked)\n        }}\n          <IntegrationIcon\n            @exported={{true}}\n            @title={{t\n              'entity.builda-price.operations.incoming.bills-legacy.bill.aCopyOfThisBillHasBeenSentToYourAccountingPackage'\n            }}\n            data-test-xero-icon\n          />\n        {{/if}}\n  \n        {{#if this.model.invoice.isAutoMapped}}\n          <FaIcon\n            @icon='magic'\n            @class='integration-icon'\n            @title={{t\n              'entity.builda-price.operations.incoming.bills-legacy.bill.Bill was auto mapped'\n            }}\n          />\n        {{/if}}\n  \n        {{! Status }}\n        {{#unless (eq this.model.invoice.status 'DRAFT')}}\n          <span class='button--spaced my-1 d-flex align-items-center'>\n            <span for='invoice-status'>&nbsp;&nbsp;{{t\n                'common.Status'\n              }}:&nbsp;</span>\n            <SelectInput\n              @value={{this.model.invoice.status}}\n              @id='invoice-status'\n              @disabled={{not (includes-feature-flags 'canManageBills')}}\n              @class='tabular-form-controls__cell select-box'\n              @action={{action 'changeStatus'}}\n              as |si|\n            >\n              <si.option @value='DRAFT'>{{t 'common.Draft'}}</si.option>\n              <si.option @value='ACCEPTED'>{{t 'common.Accepted'}}</si.option>\n              <si.option @value='ARCHIVED'>{{t 'common.Archived'}}</si.option>\n              <si.option @value='HELD'>{{t 'common.Held'}}</si.option>\n              <si.option @value='PAID'>{{t 'common.Paid'}}</si.option>\n            </SelectInput>\n          </span>\n        {{/unless}}\n      {{/unless}}\n      {{#if (includes-feature-flags 'canManageBills')}}\n        <div class='ms-auto d-flex align-items-center flex-wrap'>\n          {{#unless this.model.invoice.isNew}}\n            {{#if this.isEditing}}\n              {{! Cancel button if in edit or new mode }}\n              <button\n                class='button button--spaced my-1 button--plain'\n                data-test-cancel-edit-button=''\n                type='button'\n                {{action 'cancel'}}\n              >\n                {{t 'common.Cancel'}}\n              </button>\n  \n            {{else}}\n              {{! Cannot use attachments while in edit mode }}\n              <AttachmentDropdownList\n                @buttonClass='button button--spaced my-1 button--plain'\n                @attachments={{this.model.invoice.myAttachments}}\n                @parent={{this.model.invoice}}\n                @onUploadComplete={{action 'attachmentsUploadComplete'}}\n                @onDownloadAttachment={{action 'downloadAttachment'}}\n                @onDeleteAttachment={{action 'deleteAttachment'}}\n                @isDragAndDropVisible={{true}}\n              />\n  \n              {{! Edit button }}\n              <button\n                class='button button--spaced my-1\n                  {{unless this.invoiceIsValid \"invalid\"}}'\n                data-test-edit-button=''\n                type='button'\n                {{action this.set 'isEditing' true}}\n              >\n                {{t 'common.Edit'}}\n              </button>\n  \n              {{#if this.xeroIntegration.ready}}\n                {{! Button that takes you to Xero if the invoice is also in Xero }}\n                {{#if this.model.invoice.xeroLinked}}\n                  <ComboButton\n                    @class='button--spaced my-1'\n                    @buttonText={{t 'common.View in Xero'}}\n                    @title='Xero Actions'\n                    @action={{action\n                      'viewInvoiceInXero'\n                      this.entityXeroCompanyId\n                      this.model.invoice.xeroDeeplinkPath\n                    }}\n                  >\n                    {{#unless this.loadingXero}}\n                      <div\n                        class='overlaid-dropdown__option'\n                        {{action 'sendToXero'}}\n                        data-test-send-to-xero=''\n                      >\n                        {{t\n                          'entity.builda-price.operations.incoming.bills-legacy.bill.Update in Xero'\n                        }}\n                      </div>\n                    {{else}}\n                      <div class='overlaid-dropdown__option text-center'>\n                        <LoadingIcon @type='spinner' />\n                      </div>\n                    {{/unless}}\n                  </ComboButton>\n                {{else}}\n                  {{! Send to Xero button if the xero integration is set up }}\n                  <LoadingButton\n                    @class='button button--spaced my-1'\n                    @action={{action 'acceptInvoiceAndSendToXero'}}\n                    data-test-send-to-xero\n                    @buttonText={{if\n                      (eq this.model.invoice.status 'DRAFT')\n                      (t\n                        'entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill to send to Xero'\n                      )\n                      (t 'shared.bill.Send to Xero')\n                    }}\n                    @isLoading={{this.loadingXero}}\n                    @disabled={{not this.model.invoice.status 'DRAFT'}}\n                  />\n                {{/if}}\n              {{/if}}\n  \n              {{#if this.quickbooks.ready}}\n                {{#if this.model.invoice.quickbooksLinked}}\n                  <ComboButton\n                    @class='button--spaced my-1'\n                    @buttonText={{t\n                      'entity.settings.contacts.View in QuickBooks'\n                    }}\n                    @title='QuickBooks Actions'\n                    @action={{action\n                      'viewBillInQuickbooks'\n                      this.model.invoice.quickbooksDeeplinkPath\n                    }}\n                  >\n                    {{#unless this.loadingQuickbooks}}\n                      <div\n                        class='overlaid-dropdown__option'\n                        {{action 'sendToQuickBooks'}}\n                        data-test-send-to-xero=''\n                      >\n                        {{t\n                          'entity.builda-price.operations.incoming.bills-legacy.bill.Update in QuickBooks'\n                        }}\n                      </div>\n                    {{else}}\n                      <div class='overlaid-dropdown__option text-center'>\n                        <LoadingIcon @type='spinner' />\n                      </div>\n                    {{/unless}}\n                  </ComboButton>\n                {{else}}\n                  <LoadingButton\n                    @class='button button--spaced my-1'\n                    @action={{action 'acceptInvoiceAndSendToQuickbooks'}}\n                    @buttonText={{if\n                      (eq this.model.invoice.status 'DRAFT')\n                      (t\n                        'entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill to send to QuickBooks'\n                      )\n                      (t 'shared.bill.Send to QuickBooks')\n                    }}\n                    @isLoading={{this.loadingQuickbooks}}\n                    @disabled={{not this.model.invoice.status 'DRAFT'}}\n                  />\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          {{/unless}}\n        </div>\n      {{/if}}\n    </div>\n  \n    <section class='invoice-editor__invoice-info-section'>\n      <div class='invoice-editor__inputs-column'>\n        <div class='invoice-editor__inputs-row'>\n          {{! Supplier }}\n          <label\n            class='tabular-form-controls__cell--label'\n            for='invoice-issuer'\n          >{{t 'common.Issuer'}}</label>\n          {{#if this.isEditing}}\n            <ComboBox\n              @class={{concat\n                'tabular-form-controls__cell text-input'\n                (unless this.model.invoice.issuer ' invalid')\n              }}\n              @key='name'\n              @value={{this.model.invoice.issuer}}\n              @options={{this.issuers}}\n              @onSet={{action 'setInvoiceIssuer'}}\n              data-test-bill-issuer-input\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{this.model.invoice.issuer}}\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='invoice-editor__inputs-row'>\n          {{! Invoice Number }}\n          <label class='tabular-form-controls__cell--label' for='invoice-number'>\n            {{t 'common.Bill number'}}\n            {{#if this.model.invoice.hasDuplicate}}\n              <span\n                class='invoice-editor__inputs-row-warning-triangle'\n                data-test-duplicate-warning=''\n              >\n                &nbsp;<InfoPopup\n                  @iconName='exclamation-triangle'\n                  class='text-danger'\n                  @text={{t\n                    'entity.builda-price.operations.incoming.bills-legacy.bill.This bill number has already been used'\n                  }}\n                />\n              </span>\n            {{/if}}\n          </label>\n          {{#if this.isEditing}}\n            <Input\n              id='invoice-number'\n              class={{concat\n                'tabular-form-controls__cell text-input'\n                (unless\n                  (or this.model.invoice.billNumber this.model.invoice.reference)\n                  ' invalid'\n                )\n              }}\n              @value={{this.model.invoice.billNumber}}\n              data-test-bill-number-input\n              autocomplete='off'\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{or this.model.invoice.billNumber '—'}}\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='invoice-editor__inputs-row'>\n          {{! Invoice Date }}\n          <label\n            class='tabular-form-controls__cell--label'\n            for='invoice-issue-date'\n          >{{t 'common.Issue date'}}</label>\n          {{#if this.isEditing}}\n            <PtlInput\n              @type='date'\n              @containerClass='mb-0'\n              @key='issueDate'\n              @model={{this.model.invoice}}\n              class={{if\n                this.isIssueDateInvalid\n                'text-input invalid'\n                'text-input'\n              }}\n              data-test-bill-issue-date-input\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{if\n                this.model.invoice.issueDate\n                (moment-format\n                  this.model.invoice.issueDate (t 'date.longWithoutWeekday')\n                )\n                '—'\n              }}\n            </div>\n          {{/if}}\n        </div>\n  \n        <div\n          class='invoice-editor__inputs-row d-flex align-items-start'\n          style='min-heigh:60px'\n        >\n          <label\n            class='tabular-form-controls__cell--label'\n            for='invoice-notes'\n          >{{t 'common.Notes'}}</label>\n          {{#if this.isEditing}}\n            <Textarea\n              id='invoice-notes'\n              class='form-control tabular-form-controls__cell text-input'\n              style='min-height:60px; max-height:60px; margin-top: 3px;'\n              @value={{this.model.invoice.notes}}\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding text-break overflow-auto'\n              style='max-height:60px'\n            >\n              {{or this.model.invoice.notes '—'}}\n            </div>\n          {{/if}}\n        </div>\n      </div>\n  \n      <div class='invoice-editor__inputs-column'>\n        <div class='invoice-editor__inputs-row'>\n          {{! Supplier type }}\n          <label class='tabular-form-controls__cell--label' for='allocate-as'>{{t\n              'entity.builda-price.operations.incoming.bills-legacy.bill.Allocate as'\n            }}</label>\n          {{#if this.isEditing}}\n            <span class={{unless this.model.invoice.allocationType 'invalid'}}>\n              <label>\n                <input\n                  type='radio'\n                  name='allocate-as'\n                  checked={{eq this.model.invoice.allocationType 'MATERIALS'}}\n                  onchange={{action\n                    this.set\n                    'model.invoice.allocationType'\n                    'MATERIALS'\n                  }}\n                  data-test-bill-pick-materials=''\n                />\n                {{t 'common.Material'}}\n              </label>\n              &nbsp;&nbsp;\n              <label>\n                <input\n                  type='radio'\n                  name='allocate-as'\n                  checked={{eq\n                    this.model.invoice.allocationType\n                    'SUBCONTRACTORS'\n                  }}\n                  onchange={{action\n                    this.set\n                    'model.invoice.allocationType'\n                    'SUBCONTRACTORS'\n                  }}\n                  data-test-bill-pick-subcontractor=''\n                />\n                {{t 'common.Subcontractor'}}\n              </label>\n              &nbsp;&nbsp;\n              <label>\n                <input\n                  type='radio'\n                  name='allocate-as'\n                  checked={{eq this.model.invoice.allocationType 'LABOUR'}}\n                  onchange={{action\n                    this.set\n                    'model.invoice.allocationType'\n                    'LABOUR'\n                  }}\n                  data-test-bill-pick-labour=''\n                />\n                {{t 'common.Labour'}}\n              </label>\n            </span>\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{#if (eq this.model.invoice.allocationType 'LABOUR')}}\n                {{t 'common.Labour'}}\n              {{else if (eq this.model.invoice.allocationType 'MATERIALS')}}\n                {{t 'common.Materials'}}\n              {{else if (eq this.model.invoice.allocationType 'SUBCONTRACTORS')}}\n                {{t 'common.Subcontractors'}}\n              {{/if}}\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='invoice-editor__inputs-row'>\n          {{! Reference }}\n          <label class='tabular-form-controls__cell--label' for='invoice-name'>{{t\n              'common.Reference'\n            }}</label>\n          {{#if this.isEditing}}\n            <ComboBox\n              @class={{concat\n                'tabular-form-controls__cell text-input'\n                (unless\n                  (or this.model.invoice.billNumber this.model.invoice.reference)\n                  ' invalid'\n                )\n              }}\n              @key='reference'\n              @value={{this.model.invoice.reference}}\n              @options={{this.references}}\n              @onSet={{action (mut this.model.invoice.reference)}}\n              data-test-bill-name-input\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{or this.model.invoice.reference '—'}}\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='invoice-editor__inputs-row'>\n          {{! Due Date }}\n          <label\n            class='tabular-form-controls__cell--label'\n            for='invoice-due-date'\n          >{{t 'common.Due date'}}</label>\n          {{#if this.isEditing}}\n            <PtlInput\n              @type='date'\n              @containerClass='mb-0'\n              class={{if this.isDueDateInvalid 'text-input invalid' 'text-input'}}\n              @key='dueDate'\n              @model={{this.model.invoice}}\n              data-test-bill-due-date-input\n            />\n          {{else}}\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{if\n                this.model.invoice.dueDate\n                (moment-format\n                  this.model.invoice.dueDate (t 'date.longWithoutWeekday')\n                )\n                '—'\n              }}\n            </div>\n          {{/if}}\n        </div>\n      </div>\n    </section>\n  \n    {{#if (and this.model.invoice.isNew (lt this.newInvoiceStep 1))}}\n      {{! Show a continue button instead of the items when first arriving at a new invoice }}\n      <section>\n        <button\n          class='button float-end'\n          data-test-next-step-button=''\n          type='button'\n          {{action 'nextStep'}}\n        >\n          {{t\n            'entity.builda-price.operations.incoming.bills-legacy.bill.Proceed to create items'\n          }}\n        </button>\n      </section>\n    {{else}}\n      {{! Items section }}\n      <div class='invoice-editor__divider'></div>\n  \n      <section>\n        <span class='h2'>{{t 'common.Items'}}</span>\n        {{#if\n          (and (not this.isEditing) (includes-feature-flags 'canManageBills'))\n        }}\n          {{! Assign items button }}\n          <button\n            class='button button--spaced float-end'\n            disabled={{not this.selectedItems.length}}\n            data-test-allocate-items-button=''\n            type='button'\n            {{action this.set 'allocatingItems' true}}\n          >\n            {{if\n              this.selectedItems.length\n              (t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Allocate selected items'\n              )\n              (t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Select items to allocate'\n              )\n            }}\n          </button>\n          {{! Auto map button }}\n          {{#if this.model.directives.length}}\n            <LoadingButton\n              @class='button button--spaced float-end'\n              @buttonText={{t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Auto map'\n              }}\n              @action={{action 'autoMap'}}\n              @isLoading={{this.isAutoMapping}}\n              data-test-auto-map-button\n            />\n          {{/if}}\n        {{/if}}\n  \n        <InvoiceItemTablePm\n          @invoice={{this.model.invoice}}\n          @allSelected={{this.allSelected}}\n          @isSelected={{this.isSelected}}\n          @isEditing={{this.isEditing}}\n          @names={{this.names}}\n          @toggleSelectAll={{action 'toggleSelectAll'}}\n          @toggleSelectItem={{action 'toggleSelectItem'}}\n          @addItem={{action 'addItem'}}\n          @deleteItem={{action 'deleteItem'}}\n          {{! xero }}\n          @xeroAccounts={{this.model.xeroAccounts}}\n          @xeroFetching={{this.xeroFetching}}\n          @xeroIntegration={{this.xeroIntegration}}\n          @setItemXeroAccount={{action 'setItemXeroAccount'}}\n          @updateXeroAccounts={{action 'updateXeroAccounts'}}\n          {{! quickbooks }}\n          @quickbooksAccounts={{this.model.quickbooksAccounts}}\n          @quickbooksFetching={{this.quickbooksFetching}}\n          @quickbooksIntegration={{this.quickbooks}}\n          @setItemQuickbooksAccount={{action 'setItemQuickbooksAccount'}}\n          @updateQuickbooksAccounts={{action 'updateQuickbooksAccounts'}}\n        />\n      </section>\n  \n      {{! Add item button }}\n      {{#if this.isEditing}}\n        <section>\n          <button\n            class='button button--add invoice-editor-center-button button--spaced'\n            data-test-add-item-button=''\n            type='button'\n            {{action 'addItem'}}\n          >\n            {{t\n              'entity.builda-price.operations.incoming.bills-legacy.bill.Add another item'\n            }}\n          </button>\n        </section>\n      {{/if}}\n  \n      <div class='invoice-editor__divider'></div>\n  \n      <div class='invoice-editor__footer'>\n        <div class='invoice-editor__inputs-column float-end'>\n          <div class='invoice-editor__inputs-row'>\n            {{! Invoice Total }}\n            <span class='tabular-form-controls__cell--label'>{{t\n                'common.Total'\n              }}</span>\n            <div\n              class='tabular-form-controls__cell invoice-editor__controls-input-padding'\n            >\n              {{number-format\n                this.model.invoice.totalPrice\n                style='currency'\n                dashZero=true\n              }}\n            </div>\n          </div>\n  \n          {{#if (includes-feature-flags 'canManageBills')}}\n            {{#if this.isEditing}}\n              <div class='invoice-editor__inputs-row'>\n                <LoadingButton\n                  @class='button float-end'\n                  @buttonText={{if\n                    this.invoice.isNew\n                    (t 'common.Finish')\n                    (t 'common.Save')\n                  }}\n                  @isLoading={{this.isSaving}}\n                  @action={{action 'save'}}\n                  data-test-save-button\n                />\n              </div>\n            {{else if (eq this.model.invoice.status 'DRAFT')}}\n              <div class='invoice-editor__inputs-row'>\n                <LoadingButton\n                  @class='button float-end'\n                  @action={{action 'acceptInvoice'}}\n                  @isLoading={{this.isAccepting}}\n                  @buttonText={{t\n                    'entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill'\n                  }}\n                  data-test-accept-bill-button\n                />\n              </div>\n            {{/if}}\n          {{/if}}\n        </div>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.showCreditNoteMessage}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.showCreditNoteMessage) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      {{#if this.xeroIntegration.ready}}\n        <p>{{t\n            'entity.builda-price.operations.incoming.bills-legacy.bill.sentToXeroAsCreditNote'\n          }}</p>\n        <p>{{t\n            'entity.builda-price.operations.incoming.bills-legacy.bill.needToAllocateTheCreditNote'\n          }}</p>\n        <div class='block-module__footer'>\n          <div class='pull-right'>\n            <button\n              class='button button--plain button--spaced'\n              type='button'\n              {{action this.set 'showCreditNoteMessage' false}}\n            >\n              {{t 'common.Cancel'}}\n            </button>\n            <LoadingButton\n              @class='button button--spaced'\n              @action={{action 'sendToXero' true}}\n              data-test-send-to-xero\n              @buttonText={{t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Accept and send'\n              }}\n              @isLoading={{this.loadingXero}}\n              @disabled={{eq this.model.invoice.status 'DRAFT'}}\n            />\n          </div>\n        </div>\n  \n      {{/if}}\n      {{#if this.quickbooks.ready}}\n        <p\n        >{{'The total for this bill is negative. It will therefore be sent to QuickBooks as a \"Credit Note\"'}}</p>\n        <p\n        >{{'You will need to allocate the \"Credit Note\" to an invoice from within in QuickBooks'}}</p>\n        <div class='block-module__footer'>\n          <div class='pull-right'>\n            <button\n              class='button button--plain button--spaced'\n              type='button'\n              {{action this.set 'showCreditNoteMessage' false}}\n            >\n              {{t 'common.Cancel'}}\n            </button>\n            <LoadingButton\n              @class='button button--spaced'\n              @action={{action 'sendToQuickBooks' true}}\n              data-test-send-to-xero\n              @buttonText={{t\n                'entity.builda-price.operations.incoming.bills-legacy.bill.Accept and send'\n              }}\n              @isLoading={{this.loadingQuickbooks}}\n              @disabled={{eq this.model.invoice.status 'DRAFT'}}\n            />\n          </div>\n        </div>\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{! Project/task selection modal }}\n  {{#if this.allocatingItems}}\n    <AllocationSelector\n      @onCancel={{action this.set 'allocatingItems' false}}\n      @onAllocateSelected={{action 'allocateSelected'}}\n      @onAllocateAndAcceptSelected={{action 'allocateAndAcceptSelected'}}\n      @onAllocateAcceptAndSendToXeroSelected={{action\n        'allocateAcceptAndSendToXeroSelected'\n      }}\n      @isAllocating={{or this.isAllocating this.isSecondaryAllocating}}\n      @items={{this.selectedItems}}\n      @projects={{this.model.projects}}\n      @tasks={{this.model.tasks}}\n      {{! xero }}\n      @xeroIntegration={{this.xeroIntegration}}\n      @isXeroFetching={{this.xeroFetching}}\n      @xeroAccounts={{this.model.xeroAccounts}}\n      @onUpdateXeroAccounts={{action 'updateXeroAccounts'}}\n      {{! quickbooks }}\n      @quickbooksIntegration={{this.quickbooks}}\n      @quickbooksAccounts={{this.model.quickbooksAccounts}}\n      @isQuickbooksFetching={{this.quickbooksFetching}}\n      @onUpdateQuickbooksAccounts={{action 'updateQuickbooksAccounts'}}\n    />\n  {{/if}}\n  \n  {{! Unmapped accept warning }}\n  {{#if this.unmappedInvoiceWarningModalVisible}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.unmappedInvoiceWarningModalVisible) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <p>{{t\n          'entity.builda-price.operations.incoming.bills-legacy.bill.youAreAboutToAcceptAnBillThatIsNotCompletelyAllocatedDoYouWantToContinue'\n        }}</p>\n  \n      <footer class='block-module__footer'>\n        <label><Input\n            @type='checkbox'\n            @checked={{this.doNotWarnForUnmappedInvoice}}\n          />\n          {{t 'shared.bill.Do not warn me again'}}</label>\n        <button\n          class='float-end button button--spaced'\n          type='button'\n          {{action\n            (if\n              (eq this.continueActionAfterUnmappedWarning 'acceptAndSend')\n              'acceptInvoiceAndSendToXero'\n              'acceptInvoice'\n            )\n            true\n          }}\n        >\n          {{t 'common.Continue'}}\n        </button>\n  \n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action (mut this.unmappedInvoiceWarningModalVisible) false}}\n        >{{t 'common.Cancel'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  <NewSupplierPrompt\n    @visible={{this.newSupplierUpdateVisible}}\n    @close={{action this.set 'newSupplierUpdateVisible' false}}\n    @newSupplier={{this.nextNewSupplier}}\n    @updateSupplier={{action 'updateNewSupplier'}}\n    @isSaving={{this.isSaving}}\n  />\n  \n  {{#if this.invoiceTypeResponseHandlerVisible}}\n    <InvoiceTypeResponseHandler\n      @responses={{this.invoiceResponses}}\n      @onCancel={{action 'onInvoiceTypeResponseHandlerCancel'}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"fhUNhvkx\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Bills\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.incoming.bills-legacy\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[15,0,[29,[\\\"m-4 page-wrapper \\\",[52,[30,0,[\\\"showValidations\\\"]],\\\"show-validations\\\"]]]],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,8],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 align-items-center d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"pageTitle\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isEditing\\\"]]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-auto mb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"model\\\",\\\"invoices\\\",\\\"length\\\"]],1],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced my-1 invoice-editor__header-navigation-button\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"nextInvoice\\\",\\\"previous\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"transitionTo\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",[30,0,[\\\"nextInvoice\\\",\\\"previous\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"angle-left\\\",true]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Previous\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced my-1 invoice-editor__header-navigation-button\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"nextInvoice\\\",\\\"next\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"transitionTo\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",[30,0,[\\\"nextInvoice\\\",\\\"next\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Next\\\"],null]],[1,\\\" \\\"],[8,[39,15],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"angle-right\\\",true]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,16],[\\\"canManageBills\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add button--spaced my-1\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"transitionTo\\\",\\\"entity.builda-price.operations.incoming.bills-legacy.bill\\\",\\\"new\\\"],null],[12],[1,[28,[35,4],[\\\"common.New bill\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,17],[[30,0,[\\\"isEditing\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"isNew\\\"]]],null]],[[[41,[28,[37,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"eaccountsFileName\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"ipsId\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,18],[[24,\\\"data-test-edi-icon\\\",\\\"\\\"]],[[\\\"@imported\\\",\\\"@title\\\"],[true,[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.This bill was imported automatically\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"xeroLinked\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"quickbooksLinked\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,18],[[24,\\\"data-test-xero-icon\\\",\\\"\\\"]],[[\\\"@exported\\\",\\\"@title\\\"],[true,[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.aCopyOfThisBillHasBeenSentToYourAccountingPackage\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"isAutoMapped\\\"]],[[[1,\\\"        \\\"],[8,[39,15],null,[[\\\"@icon\\\",\\\"@class\\\",\\\"@title\\\"],[\\\"magic\\\",\\\"integration-icon\\\",[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Bill was auto mapped\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null]],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"button--spaced my-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,\\\"for\\\",\\\"invoice-status\\\"],[12],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[1,\\\": \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,21],null,[[\\\"@value\\\",\\\"@id\\\",\\\"@disabled\\\",\\\"@class\\\",\\\"@action\\\"],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"invoice-status\\\",[28,[37,13],[[28,[37,16],[\\\"canManageBills\\\"],null]],null],\\\"tabular-form-controls__cell select-box\\\",[28,[37,14],[[30,0],\\\"changeStatus\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Draft\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ACCEPTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Accepted\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"PAID\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Paid\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,16],[\\\"canManageBills\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-auto d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"isNew\\\"]]],[[[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced my-1 button--plain\\\"],[24,\\\"data-test-cancel-edit-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"cancel\\\"],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@buttonClass\\\",\\\"@attachments\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@onDownloadAttachment\\\",\\\"@onDeleteAttachment\\\",\\\"@isDragAndDropVisible\\\"],[\\\"button button--spaced my-1 button--plain\\\",[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"myAttachments\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\"]],[28,[37,14],[[30,0],\\\"attachmentsUploadComplete\\\"],null],[28,[37,14],[[30,0],\\\"downloadAttachment\\\"],null],[28,[37,14],[[30,0],\\\"deleteAttachment\\\"],null],true]],null],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"            \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"button button--spaced my-1\\\\n                \\\",[52,[51,[30,0,[\\\"invoiceIsValid\\\"]]],\\\"invalid\\\"]]]],[24,\\\"data-test-edit-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"isEditing\\\",true],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Edit\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"xeroLinked\\\"]],[[[1,\\\"                \\\"],[8,[39,23],null,[[\\\"@class\\\",\\\"@buttonText\\\",\\\"@title\\\",\\\"@action\\\"],[\\\"button--spaced my-1\\\",[28,[37,4],[\\\"common.View in Xero\\\"],null],\\\"Xero Actions\\\",[28,[37,14],[[30,0],\\\"viewInvoiceInXero\\\",[30,0,[\\\"entityXeroCompanyId\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"xeroDeeplinkPath\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"loadingXero\\\"]]],[[[1,\\\"                    \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-send-to-xero\\\",\\\"\\\"],[4,[38,14],[[30,0],\\\"sendToXero\\\"],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Update in Xero\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"overlaid-dropdown__option text-center\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,24],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[8,[39,25],[[24,\\\"data-test-send-to-xero\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@buttonText\\\",\\\"@isLoading\\\",\\\"@disabled\\\"],[\\\"button button--spaced my-1\\\",[28,[37,14],[[30,0],\\\"acceptInvoiceAndSendToXero\\\"],null],[52,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill to send to Xero\\\"],null],[28,[37,4],[\\\"shared.bill.Send to Xero\\\"],null]],[30,0,[\\\"loadingXero\\\"]],[28,[37,13],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"quickbooksLinked\\\"]],[[[1,\\\"                \\\"],[8,[39,23],null,[[\\\"@class\\\",\\\"@buttonText\\\",\\\"@title\\\",\\\"@action\\\"],[\\\"button--spaced my-1\\\",[28,[37,4],[\\\"entity.settings.contacts.View in QuickBooks\\\"],null],\\\"QuickBooks Actions\\\",[28,[37,14],[[30,0],\\\"viewBillInQuickbooks\\\",[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"quickbooksDeeplinkPath\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"loadingQuickbooks\\\"]]],[[[1,\\\"                    \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-send-to-xero\\\",\\\"\\\"],[4,[38,14],[[30,0],\\\"sendToQuickBooks\\\"],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Update in QuickBooks\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"overlaid-dropdown__option text-center\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,24],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[8,[39,25],null,[[\\\"@class\\\",\\\"@action\\\",\\\"@buttonText\\\",\\\"@isLoading\\\",\\\"@disabled\\\"],[\\\"button button--spaced my-1\\\",[28,[37,14],[[30,0],\\\"acceptInvoiceAndSendToQuickbooks\\\"],null],[52,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill to send to QuickBooks\\\"],null],[28,[37,4],[\\\"shared.bill.Send to QuickBooks\\\"],null]],[30,0,[\\\"loadingQuickbooks\\\"]],[28,[37,13],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[]]]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"invoice-editor__invoice-info-section\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-column\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-issuer\\\"],[12],[1,[28,[35,4],[\\\"common.Issuer\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,28],[[24,\\\"data-test-bill-issuer-input\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@key\\\",\\\"@value\\\",\\\"@options\\\",\\\"@onSet\\\"],[[28,[37,29],[\\\"tabular-form-controls__cell text-input\\\",[52,[51,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"issuer\\\"]]],\\\" invalid\\\"]],null],\\\"name\\\",[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"issuer\\\"]],[30,0,[\\\"issuers\\\"]],[28,[37,14],[[30,0],\\\"setInvoiceIssuer\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"issuer\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-number\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Bill number\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"hasDuplicate\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"invoice-editor__inputs-row-warning-triangle\\\"],[14,\\\"data-test-duplicate-warning\\\",\\\"\\\"],[12],[1,\\\"\\\\n               \\\"],[8,[39,30],[[24,0,\\\"text-danger\\\"]],[[\\\"@iconName\\\",\\\"@text\\\"],[\\\"exclamation-triangle\\\",[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.This bill number has already been used\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,31],[[24,1,\\\"invoice-number\\\"],[16,0,[28,[37,29],[\\\"tabular-form-controls__cell text-input\\\",[52,[51,[28,[37,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"billNumber\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"reference\\\"]]],null]],\\\" invalid\\\"]],null]],[24,\\\"data-test-bill-number-input\\\",\\\"\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"billNumber\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"billNumber\\\"]],\\\"—\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-issue-date\\\"],[12],[1,[28,[35,4],[\\\"common.Issue date\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,32],[[16,0,[52,[30,0,[\\\"isIssueDateInvalid\\\"]],\\\"text-input invalid\\\",\\\"text-input\\\"]],[24,\\\"data-test-bill-issue-date-input\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"date\\\",\\\"mb-0\\\",\\\"issueDate\\\",[30,0,[\\\"model\\\",\\\"invoice\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[52,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,33],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,4],[\\\"date.longWithoutWeekday\\\"],null]],null],\\\"—\\\"]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row d-flex align-items-start\\\"],[14,5,\\\"min-heigh:60px\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-notes\\\"],[12],[1,[28,[35,4],[\\\"common.Notes\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,34],[[24,1,\\\"invoice-notes\\\"],[24,0,\\\"form-control tabular-form-controls__cell text-input\\\"],[24,5,\\\"min-height:60px; max-height:60px; margin-top: 3px;\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"notes\\\"]]]],null],[1,\\\"\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding text-break overflow-auto\\\"],[14,5,\\\"max-height:60px\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"notes\\\"]],\\\"—\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-column\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"allocate-as\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Allocate as\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[10,1],[15,0,[52,[51,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]]],\\\"invalid\\\"]],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"allocate-as\\\"],[15,\\\"checked\\\",[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"MATERIALS\\\"],null]],[15,\\\"onchange\\\",[28,[37,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"model.invoice.allocationType\\\",\\\"MATERIALS\\\"],null]],[14,\\\"data-test-bill-pick-materials\\\",\\\"\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Material\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n              \\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"allocate-as\\\"],[15,\\\"checked\\\",[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"SUBCONTRACTORS\\\"],null]],[15,\\\"onchange\\\",[28,[37,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"model.invoice.allocationType\\\",\\\"SUBCONTRACTORS\\\"],null]],[14,\\\"data-test-bill-pick-subcontractor\\\",\\\"\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Subcontractor\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n              \\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"input\\\"],[14,3,\\\"allocate-as\\\"],[15,\\\"checked\\\",[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"LABOUR\\\"],null]],[15,\\\"onchange\\\",[28,[37,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"model.invoice.allocationType\\\",\\\"LABOUR\\\"],null]],[14,\\\"data-test-bill-pick-labour\\\",\\\"\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"LABOUR\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"MATERIALS\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"allocationType\\\"]],\\\"SUBCONTRACTORS\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n            \\\"]],[]],null]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-name\\\"],[12],[1,[28,[35,4],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,28],[[24,\\\"data-test-bill-name-input\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@key\\\",\\\"@value\\\",\\\"@options\\\",\\\"@onSet\\\"],[[28,[37,29],[\\\"tabular-form-controls__cell text-input\\\",[52,[51,[28,[37,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"billNumber\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"reference\\\"]]],null]],\\\" invalid\\\"]],null],\\\"reference\\\",[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"reference\\\"]],[30,0,[\\\"references\\\"]],[28,[37,14],[[30,0],[28,[37,35],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"reference\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,17],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"reference\\\"]],\\\"—\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"invoice-due-date\\\"],[12],[1,[28,[35,4],[\\\"common.Due date\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"          \\\"],[8,[39,32],[[16,0,[52,[30,0,[\\\"isDueDateInvalid\\\"]],\\\"text-input invalid\\\",\\\"text-input\\\"]],[24,\\\"data-test-bill-due-date-input\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"date\\\",\\\"mb-0\\\",\\\"dueDate\\\",[30,0,[\\\"model\\\",\\\"invoice\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[52,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"dueDate\\\"]],[28,[37,33],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"dueDate\\\"]],[28,[37,4],[\\\"date.longWithoutWeekday\\\"],null]],null],\\\"—\\\"]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,36],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"isNew\\\"]],[28,[37,37],[[30,0,[\\\"newInvoiceStep\\\"]],1],null]],null],[[[1,\\\"    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button float-end\\\"],[24,\\\"data-test-next-step-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"nextStep\\\"],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Proceed to create items\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"invoice-editor__divider\\\"],[12],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"h2\\\"],[12],[1,[28,[35,4],[\\\"common.Items\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,36],[[28,[37,13],[[30,0,[\\\"isEditing\\\"]]],null],[28,[37,16],[\\\"canManageBills\\\"],null]],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced float-end\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"selectedItems\\\",\\\"length\\\"]]],null]],[24,\\\"data-test-allocate-items-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"allocatingItems\\\",true],null],[12],[1,\\\"\\\\n          \\\"],[1,[52,[30,0,[\\\"selectedItems\\\",\\\"length\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Allocate selected items\\\"],null],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Select items to allocate\\\"],null]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"directives\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,25],[[24,\\\"data-test-auto-map-button\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@buttonText\\\",\\\"@action\\\",\\\"@isLoading\\\"],[\\\"button button--spaced float-end\\\",[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Auto map\\\"],null],[28,[37,14],[[30,0],\\\"autoMap\\\"],null],[30,0,[\\\"isAutoMapping\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,38],null,[[\\\"@invoice\\\",\\\"@allSelected\\\",\\\"@isSelected\\\",\\\"@isEditing\\\",\\\"@names\\\",\\\"@toggleSelectAll\\\",\\\"@toggleSelectItem\\\",\\\"@addItem\\\",\\\"@deleteItem\\\",\\\"@xeroAccounts\\\",\\\"@xeroFetching\\\",\\\"@xeroIntegration\\\",\\\"@setItemXeroAccount\\\",\\\"@updateXeroAccounts\\\",\\\"@quickbooksAccounts\\\",\\\"@quickbooksFetching\\\",\\\"@quickbooksIntegration\\\",\\\"@setItemQuickbooksAccount\\\",\\\"@updateQuickbooksAccounts\\\"],[[30,0,[\\\"model\\\",\\\"invoice\\\"]],[30,0,[\\\"allSelected\\\"]],[30,0,[\\\"isSelected\\\"]],[30,0,[\\\"isEditing\\\"]],[30,0,[\\\"names\\\"]],[28,[37,14],[[30,0],\\\"toggleSelectAll\\\"],null],[28,[37,14],[[30,0],\\\"toggleSelectItem\\\"],null],[28,[37,14],[[30,0],\\\"addItem\\\"],null],[28,[37,14],[[30,0],\\\"deleteItem\\\"],null],[30,0,[\\\"model\\\",\\\"xeroAccounts\\\"]],[30,0,[\\\"xeroFetching\\\"]],[30,0,[\\\"xeroIntegration\\\"]],[28,[37,14],[[30,0],\\\"setItemXeroAccount\\\"],null],[28,[37,14],[[30,0],\\\"updateXeroAccounts\\\"],null],[30,0,[\\\"model\\\",\\\"quickbooksAccounts\\\"]],[30,0,[\\\"quickbooksFetching\\\"]],[30,0,[\\\"quickbooks\\\"]],[28,[37,14],[[30,0],\\\"setItemQuickbooksAccount\\\"],null],[28,[37,14],[[30,0],\\\"updateQuickbooksAccounts\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"      \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add invoice-editor-center-button button--spaced\\\"],[24,\\\"data-test-add-item-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],\\\"addItem\\\"],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Add another item\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"invoice-editor__divider\\\"],[12],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"invoice-editor__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-column float-end\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[10,1],[14,0,\\\"tabular-form-controls__cell--label\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell invoice-editor__controls-input-padding\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,39],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,16],[\\\"canManageBills\\\"],null],[[[41,[30,0,[\\\"isEditing\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[24,\\\"data-test-save-button\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@buttonText\\\",\\\"@isLoading\\\",\\\"@action\\\"],[\\\"button float-end\\\",[52,[30,0,[\\\"invoice\\\",\\\"isNew\\\"]],[28,[37,4],[\\\"common.Finish\\\"],null],[28,[37,4],[\\\"common.Save\\\"],null]],[30,0,[\\\"isSaving\\\"]],[28,[37,14],[[30,0],\\\"save\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"invoice-editor__inputs-row\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[24,\\\"data-test-accept-bill-button\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@isLoading\\\",\\\"@buttonText\\\"],[\\\"button float-end\\\",[28,[37,14],[[30,0],\\\"acceptInvoice\\\"],null],[30,0,[\\\"isAccepting\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Accept bill\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showCreditNoteMessage\\\"]],[[[1,\\\"  \\\"],[8,[39,40],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,41],[[28,[37,35],[[30,0,[\\\"showCreditNoteMessage\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]],[[[1,\\\"      \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.sentToXeroAsCreditNote\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.needToAllocateTheCreditNote\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"showCreditNoteMessage\\\",false],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,25],[[24,\\\"data-test-send-to-xero\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@buttonText\\\",\\\"@isLoading\\\",\\\"@disabled\\\"],[\\\"button button--spaced\\\",[28,[37,14],[[30,0],\\\"sendToXero\\\",true],null],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Accept and send\\\"],null],[30,0,[\\\"loadingXero\\\"]],[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[41,[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]],[[[1,\\\"      \\\"],[10,2],[12],[1,\\\"The total for this bill is negative. It will therefore be sent to QuickBooks as a \\\\\\\"Credit Note\\\\\\\"\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"You will need to allocate the \\\\\\\"Credit Note\\\\\\\" to an invoice from within in QuickBooks\\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"showCreditNoteMessage\\\",false],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,25],[[24,\\\"data-test-send-to-xero\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@buttonText\\\",\\\"@isLoading\\\",\\\"@disabled\\\"],[\\\"button button--spaced\\\",[28,[37,14],[[30,0],\\\"sendToQuickBooks\\\",true],null],[28,[37,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.Accept and send\\\"],null],[30,0,[\\\"loadingQuickbooks\\\"]],[28,[37,19],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocatingItems\\\"]],[[[1,\\\"  \\\"],[8,[39,43],null,[[\\\"@onCancel\\\",\\\"@onAllocateSelected\\\",\\\"@onAllocateAndAcceptSelected\\\",\\\"@onAllocateAcceptAndSendToXeroSelected\\\",\\\"@isAllocating\\\",\\\"@items\\\",\\\"@projects\\\",\\\"@tasks\\\",\\\"@xeroIntegration\\\",\\\"@isXeroFetching\\\",\\\"@xeroAccounts\\\",\\\"@onUpdateXeroAccounts\\\",\\\"@quickbooksIntegration\\\",\\\"@quickbooksAccounts\\\",\\\"@isQuickbooksFetching\\\",\\\"@onUpdateQuickbooksAccounts\\\"],[[28,[37,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"allocatingItems\\\",false],null],[28,[37,14],[[30,0],\\\"allocateSelected\\\"],null],[28,[37,14],[[30,0],\\\"allocateAndAcceptSelected\\\"],null],[28,[37,14],[[30,0],\\\"allocateAcceptAndSendToXeroSelected\\\"],null],[28,[37,17],[[30,0,[\\\"isAllocating\\\"]],[30,0,[\\\"isSecondaryAllocating\\\"]]],null],[30,0,[\\\"selectedItems\\\"]],[30,0,[\\\"model\\\",\\\"projects\\\"]],[30,0,[\\\"model\\\",\\\"tasks\\\"]],[30,0,[\\\"xeroIntegration\\\"]],[30,0,[\\\"xeroFetching\\\"]],[30,0,[\\\"model\\\",\\\"xeroAccounts\\\"]],[28,[37,14],[[30,0],\\\"updateXeroAccounts\\\"],null],[30,0,[\\\"quickbooks\\\"]],[30,0,[\\\"model\\\",\\\"quickbooksAccounts\\\"]],[30,0,[\\\"quickbooksFetching\\\"]],[28,[37,14],[[30,0],\\\"updateQuickbooksAccounts\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"unmappedInvoiceWarningModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,40],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,41],[[28,[37,35],[[30,0,[\\\"unmappedInvoiceWarningModalVisible\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.bills-legacy.bill.youAreAboutToAcceptAnBillThatIsNotCompletelyAllocatedDoYouWantToContinue\\\"],null]],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[12],[8,[39,31],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"doNotWarnForUnmappedInvoice\\\"]]]],null],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"shared.bill.Do not warn me again\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[52,[28,[37,19],[[30,0,[\\\"continueActionAfterUnmappedWarning\\\"]],\\\"acceptAndSend\\\"],null],\\\"acceptInvoiceAndSendToXero\\\",\\\"acceptInvoice\\\"],true],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Continue\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,14],[[30,0],[28,[37,35],[[30,0,[\\\"unmappedInvoiceWarningModalVisible\\\"]]],null],false],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,45],null,[[\\\"@visible\\\",\\\"@close\\\",\\\"@newSupplier\\\",\\\"@updateSupplier\\\",\\\"@isSaving\\\"],[[30,0,[\\\"newSupplierUpdateVisible\\\"]],[28,[37,14],[[30,0],[30,0,[\\\"set\\\"]],\\\"newSupplierUpdateVisible\\\",false],null],[30,0,[\\\"nextNewSupplier\\\"]],[28,[37,14],[[30,0],\\\"updateNewSupplier\\\"],null],[30,0,[\\\"isSaving\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invoiceTypeResponseHandlerVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,46],null,[[\\\"@responses\\\",\\\"@onCancel\\\"],[[30,0,[\\\"invoiceResponses\\\"]],[28,[37,14],[[30,0],\\\"onInvoiceTypeResponseHandlerCancel\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"gt\\\",\\\"button\\\",\\\"not\\\",\\\"action\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"or\\\",\\\"integration-icon\\\",\\\"eq\\\",\\\"span\\\",\\\"select-input\\\",\\\"attachment-dropdown-list\\\",\\\"combo-button\\\",\\\"loading-icon\\\",\\\"loading-button\\\",\\\"section\\\",\\\"label\\\",\\\"combo-box\\\",\\\"concat\\\",\\\"info-popup\\\",\\\"input\\\",\\\"ptl-input\\\",\\\"moment-format\\\",\\\"textarea\\\",\\\"mut\\\",\\\"and\\\",\\\"lt\\\",\\\"invoice-item-table-pm\\\",\\\"number-format\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"p\\\",\\\"allocation-selector\\\",\\\"footer\\\",\\\"new-supplier-prompt\\\",\\\"invoice-type-response-handler\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/bills-legacy/bill.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/bills\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <PageHeader @title={{t 'common.Bills'}}>\n    <div class='ms-auto d-flex'>\n      {{#if (includes-feature-flags 'canManageBills')}}\n        <DropdownButton\n          @buttonText={{t 'common.New bill'}}\n          @icon='plus'\n          @disabled={{@isAllocating}}\n          @route='entity.builda-price.operations.incoming.bills.bill'\n          @model='new'\n          @btnClass='btn btn-success'\n          @popOverFixed={{true}}\n        >\n          <LinkTo\n            @route='entity.builda-price.operations.incoming.bills.bill'\n            @model='new-credit-note'\n            class='dropdown-item text-nowrap fs-5'\n          >\n            {{t 'entity.builda-price.operations.incoming.bills.New credit note'}}\n          </LinkTo>\n          <button\n            type='button'\n            class='dropdown-item text-nowrap fs-5'\n            {{on 'click' (fn (mut this.showBillsUploader) true)}}\n          >\n            {{t 'common.Import'}}\n            CSV\n          </button>\n          {{#if this.ips.ready}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5 d-flex align-items-center gap-2'\n              disabled={{not this.ips.canSubmitDocuments}}\n              {{on 'click' (fn (mut this.showPdfUploader) true)}}\n            >\n              <span>{{t 'common.Import'}} PDF</span>\n              <span\n                class='badge rounded-pill text-bg-secondary align-self-center lh-1'\n              >{{t 'common.IPS'}}</span>\n            </button>\n          {{/if}}\n        </DropdownButton>\n      {{/if}}\n    </div>\n  </PageHeader>\n  \n  {{#if this.ips.ready}}\n    <IpsUsage @alertOnly={{true}} class='mx-3 mt-3 mb-0' />\n  {{/if}}\n  \n  <div class='bill-layout-container'>\n    <div\n      class='bill-layout-left overflow-auto d-flex flex-column\n        {{if\n          (is-active \"entity.builda-price.operations.incoming.bills.bill\")\n          \"is-condensed\"\n        }}'\n    >\n      <div class='d-flex p-3'>\n        <Input\n          class='form-control me-3'\n          @type='search'\n          @value={{this.searchString}}\n          placeholder={{t\n            'entity.builda-price.operations.incoming.bills.Search for bills or bill items'\n          }}\n          autofocus='true'\n          data-test-bill-search\n          {{on 'input' (perform this.onChangeSearchTerm)}}\n        />\n  \n        <PopOver @disableBlur={{true}} @direction='bottom-left' as |po|>\n          <button type='button' class='btn btn-secondary'>\n            <FaIcon @icon='filter' />\n          </button>\n          <po.Content class='py-3 px-3' style='width: 250px;'>\n            <div>\n              <label class='no-wrap mb-1'>{{t 'common.Status'}}</label>\n              <SelectInput\n                @value={{this.status}}\n                @action={{fn (mut this.status)}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value=''>All</si.option>\n                <si.option @value='DRAFT'>{{t 'common.Draft'}}</si.option>\n                <si.option @value='AWAITING_APPROVAL'>\n                  {{t 'common.Awaiting approval'}}\n                </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\": \"qP9EyFkF\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@title\\\"],[[28,[37,1],[\\\"common.Bills\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"ms-auto d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"canManageBills\\\"],null],[[[1,\\\"      \\\"],[8,[39,5],null,[[\\\"@buttonText\\\",\\\"@icon\\\",\\\"@disabled\\\",\\\"@route\\\",\\\"@model\\\",\\\"@btnClass\\\",\\\"@popOverFixed\\\"],[[28,[37,1],[\\\"common.New bill\\\"],null],\\\"plus\\\",[30,1],\\\"entity.builda-price.operations.incoming.bills.bill\\\",\\\"new\\\",\\\"btn btn-success\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,6],[[24,0,\\\"dropdown-item text-nowrap fs-5\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.operations.incoming.bills.bill\\\",\\\"new-credit-note\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"entity.builda-price.operations.incoming.bills.New credit note\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBillsUploader\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Import\\\"],null]],[1,\\\"\\\\n          CSV\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5 d-flex align-items-center gap-2\\\"],[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"ips\\\",\\\"canSubmitDocuments\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showPdfUploader\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,1],[\\\"common.Import\\\"],null]],[1,\\\" PDF\\\"],[13],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"badge rounded-pill text-bg-secondary align-self-center lh-1\\\"],[12],[1,[28,[35,1],[\\\"common.IPS\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[1,\\\"  \\\"],[8,[39,13],[[24,0,\\\"mx-3 mt-3 mb-0\\\"]],[[\\\"@alertOnly\\\"],[true]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"bill-layout-container\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[15,0,[29,[\\\"bill-layout-left overflow-auto d-flex flex-column\\\\n      \\\",[52,[28,[37,14],[\\\"entity.builda-price.operations.incoming.bills.bill\\\"],null],\\\"is-condensed\\\"]]]],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex p-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,15],[[24,0,\\\"form-control me-3\\\"],[16,\\\"placeholder\\\",[28,[37,1],[\\\"entity.builda-price.operations.incoming.bills.Search for bills or bill items\\\"],null]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,\\\"data-test-bill-search\\\",\\\"\\\"],[4,[38,8],[\\\"input\\\",[28,[37,16],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"search\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],null,[[\\\"@disableBlur\\\",\\\"@direction\\\"],[true,\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[\\\"filter\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"py-3 px-3\\\"],[24,5,\\\"width: 250px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"\\\"]],[[\\\"default\\\"],[[[[1,\\\"All\\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Draft\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"AWAITING_APPROVAL\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"common.Awaiting approval\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ACCEPTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Accepted\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Archived\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Held\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"PAID\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Paid\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Type\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"billType\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"billType\\\"]]],null]],null],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"\\\"]],[[\\\"default\\\"],[[[[1,\\\"All\\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"BILL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,1],[\\\"common.Bill\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CREDIT_NOTE\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"common.Credit note\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[4]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,1],[\\\"common.Allocation type\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"allocationType\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"allocationType\\\"]]],null]],null],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"\\\"]],[[\\\"default\\\"],[[[[1,\\\"All\\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"LABOUR\\\"]],[[\\\"default\\\"],[[[[1,\\\" \\\"],[1,[28,[35,1],[\\\"common.Labour\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"MATERIALS\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"SUBCONTRACTORS\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[1,[28,[35,1],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[5]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"align-items-center mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"common.From date\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control w-100\\\"],[16,2,[30,0,[\\\"startDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,8],[\\\"change\\\",[30,0,[\\\"onFromDateChange\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"align-items-center mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,1],[\\\"common.To date\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control w-100\\\"],[16,2,[30,0,[\\\"endDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,8],[\\\"change\\\",[30,0,[\\\"onToDateChange\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex px-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"status\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"status\\\"]]],null],\\\"\\\"],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"humanReadableStatusPill\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"startDate\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"startDate\\\"]]],null],[27]],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Start date\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"startDate\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"endDate\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"endDate\\\"]]],null],[27]],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.End date\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"endDate\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"billType\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"billType\\\"]]],null],\\\"\\\"],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Type\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"humanReadableBillTypePill\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"allocationType\\\"]],[[[1,\\\"        \\\"],[8,[39,21],[[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"allocationType\\\"]]],null],\\\"\\\"],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,1],[\\\"common.Allocation type\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"humanReadableAllocationTypePill\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,22],null,[[\\\"@filter\\\",\\\"@pageSize\\\",\\\"@sort\\\",\\\"@fields\\\",\\\"@onOrderBy\\\",\\\"@condensed\\\",\\\"@billStatus\\\"],[[30,0,[\\\"model\\\",\\\"filter\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"sort\\\"]],[30,0,[\\\"model\\\",\\\"fields\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"sort\\\"]]],null]],null],[28,[37,23],[[28,[37,14],[\\\"entity.builda-price.operations.incoming.bills.bill\\\"],null],[28,[37,11],[[28,[37,24],[\\\"isDesktop\\\"],null]],null]],null],[30,0,[\\\"status\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,14],[\\\"entity.builda-price.operations.incoming.bills.bill\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"bill-layout-right overflow-auto border-start\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,26],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showPdfUploader\\\"]],[[[1,\\\"  \\\"],[8,[39,27],null,[[\\\"@onClose\\\"],[[28,[37,9],[[28,[37,10],[[30,0,[\\\"showPdfUploader\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBillsUploader\\\"]],[[[1,\\\"  \\\"],[8,[39,28],null,[[\\\"@onUploadBillsCSV\\\",\\\"@onClose\\\"],[[30,0,[\\\"onUploadBillsCSV\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBillsUploader\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@isAllocating\\\",\\\"po\\\",\\\"si\\\",\\\"si\\\",\\\"si\\\"],false,[\\\"page-header\\\",\\\"t\\\",\\\"div\\\",\\\"if\\\",\\\"includes-feature-flags\\\",\\\"dropdown-button\\\",\\\"link-to\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"span\\\",\\\"ips-usage\\\",\\\"is-active\\\",\\\"input\\\",\\\"perform\\\",\\\"pop-over\\\",\\\"fa-icon\\\",\\\"label\\\",\\\"select-input\\\",\\\"filter-pill\\\",\\\"bills-table\\\",\\\"or\\\",\\\"media\\\",\\\"component\\\",\\\"-outlet\\\",\\\"ips-uploader\\\",\\\"bills-uploader\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/bills.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/bills/bill\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <BillEditor @bill={{this.model.bill}} @billStatus={{this.model.billStatus}} />\n  */\n  {\n    \"id\": \"ptuW+ZWY\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@bill\\\",\\\"@billStatus\\\"],[[30,0,[\\\"model\\\",\\\"bill\\\"]],[30,0,[\\\"model\\\",\\\"billStatus\\\"]]]],null]],[],false,[\\\"bill-editor\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/bills/bill.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/statements\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 h-100 d-flex flex-column'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Statements'}}</h2>\n      {{/if}}\n    </header>\n  \n    {{#if this.ips.ready}}\n      <IpsUsage @alertOnly={{true}} class='mb-3 flex-shrink-0' />\n    {{/if}}\n  \n    <iframe\n      src={{this.iframeSrc}}\n      class='buildaprice-frame flex-grow-1'\n      title={{t 'common.Statements'}}\n    ></iframe>\n  </article>\n  */\n  {\n    \"id\": \"M0VnM65f\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 h-100 d-flex flex-column\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,5],[\\\"common.Statements\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[1,\\\"    \\\"],[8,[39,6],[[24,0,\\\"mb-3 flex-shrink-0\\\"]],[[\\\"@alertOnly\\\"],[true]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,\\\"iframe\\\"],[15,\\\"src\\\",[30,0,[\\\"iframeSrc\\\"]]],[14,0,\\\"buildaprice-frame flex-grow-1\\\"],[15,\\\"title\\\",[28,[37,5],[\\\"common.Statements\\\"],null]],[12],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"ips-usage\\\",\\\"iframe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/statements.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/timesheets-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"6IH+Ee33\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/timesheets-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/timesheets\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Timesheets')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{! TODO not actually sticky anymore due to compatibility with embed route }}\n    {{! look at fixing when there is time }}\n    <div class='timesheets__sticky-header'>\n      <div class='border-bottom mb-3 d-flex align-items-center pb-3'>\n        {{#if (media 'isDesktop')}}\n          <h1 class='m-0'>\n            {{t 'common.Timesheets'}}\n          </h1>\n        {{/if}}\n        <div class='ms-auto'>\n          <LinkTo\n            @route={{concat this.model.basePath '.timesheets.timesheet'}}\n            @query={{hash date=(moment-format this.today 'YYYY-MM-DD') worker=''}}\n            class='button button--add button--spaced'\n            data-test-timesheet\n          >\n            {{t\n              'entity.builda-price.operations.incoming.timesheets.New timesheet'\n            }}\n          </LinkTo>\n        </div>\n      </div>\n  \n      <div class='timesheets__controls'>\n        {{#if this.showForemanControls}}\n          <button\n            class='button button--spaced'\n            disabled={{not this.filteredTimesheets.length}}\n            type='button'\n            {{on 'click' (action 'toggleGroupsSelected')}}\n          >\n            {{if\n              this.allSelected\n              (t 'common.Deselect all')\n              (t 'common.Select all')\n            }}\n          </button>\n  \n          <OverlaidDropdown\n            @buttonText={{t 'common.Actions'}}\n            @class='button--spaced'\n            @disabled={{not this.anySelected}}\n            @buttonClasses='button button--secondary'\n            @title={{concat this.nSelected ' ' (t 'common.selected')}}\n          >\n            {{#if (or this.acceptingTimesheets)}}\n              <div class='overlaid-dropdown__option text-center'>\n                <LoadingIcon @type='spinner' />\n              </div>\n            {{else}}\n              <div\n                class='overlaid-dropdown__option'\n                {{on 'click' (action 'acceptSelectedTimesheets')}}\n              >\n                {{t\n                  'entity.builda-price.operations.incoming.timesheets.Accept selected'\n                }}\n              </div>\n              <div\n                class='overlaid-dropdown__option'\n                {{on 'click' (action 'undoAcceptSelectedTimesheets')}}\n              >\n                {{t\n                  'entity.builda-price.operations.incoming.timesheets.Return to pending'\n                }}\n              </div>\n            {{/if}}\n          </OverlaidDropdown>\n        {{/if}}\n  \n        <div class='float-end'>\n          {{t 'common.Date range'}}:&nbsp;\n          <DateRangeSelector\n            @align='right'\n            @startDate={{this.jsStartDate}}\n            @endDate={{this.jsEndDate}}\n            @onApply={{action 'setDateRange'}}\n          />\n  \n          &nbsp;&nbsp;\n  \n          <div class='timesheets__controls-select button--spaced'>\n            {{t 'common.Status'}}:\n            <SelectInput\n              @value={{this.selectedTimesheetStatus}}\n              @action={{fn (mut this.selectedTimesheetStatus)}}\n              @class='select-box'\n              as |si|\n            >\n              <si.option @value='all'>{{t 'common.All'}}</si.option>\n              <si.option @value='pending'>{{t 'common.Pending'}}</si.option>\n              <si.option @value='accepted'>{{t 'common.Accepted'}}</si.option>\n            </SelectInput>\n          </div>\n  \n          &nbsp;&nbsp;\n  \n          <span class='timesheets__controls-search'>\n            <FaIcon @icon='search' />\n            <Input\n              @value={{this.searchString}}\n              class='text-input'\n              placeholder={{t 'common.workersProjectsOrTasks'}}\n            />\n          </span>\n        </div>\n      </div>\n    </div>\n  \n    <div class='timesheets__timesheets-section mt-5'>\n      {{#if this.filteredTimesheets.length}}\n        <TimesheetsTablePm\n          @groupedTimesheetData={{this.groupedTimesheets}}\n          @toggleGroupSelected={{action 'toggleGroupSelected'}}\n          @toggleGroupExpanded={{action 'toggleGroupExpanded'}}\n          @link={{concat this.model.basePath '.timesheets.timesheet'}}\n          @allGroupsSelected={{this.allGroupsSelected}}\n          @acceptAndLockTimesheet={{action 'acceptAndLockTimesheet'}}\n          @undoAcceptAndLockTimesheet={{action 'undoAcceptAndLockTimesheet'}}\n          @acceptingTimesheets={{this.acceptingTimesheets}}\n          @showForemanControls={{this.showForemanControls}}\n        />\n      {{else}}\n        <div class='error-page error-page--no-data'>\n          <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n          <h3 class='h3 error-page__title'>{{t\n              'shared.timesheet.No timesheets'\n            }}</h3>\n        </div>\n      {{/if}}\n    </div>\n  </article>\n  {{outlet}}\n  */\n  {\n    \"id\": \"n2KwyL8Q\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Timesheets\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"  \\\"],[10,0],[14,0,\\\"timesheets__sticky-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"border-bottom mb-3 d-flex align-items-center pb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h1\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Timesheets\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"ms-auto\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,9],[[24,0,\\\"button button--add button--spaced\\\"],[24,\\\"data-test-timesheet\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[[28,[37,10],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".timesheets.timesheet\\\"],null],[28,[37,11],null,[[\\\"date\\\",\\\"worker\\\"],[[28,[37,12],[[30,0,[\\\"today\\\"]],\\\"YYYY-MM-DD\\\"],null],\\\"\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.timesheets.New timesheet\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"timesheets__controls\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showForemanControls\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--spaced\\\"],[16,\\\"disabled\\\",[28,[37,14],[[30,0,[\\\"filteredTimesheets\\\",\\\"length\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0],\\\"toggleGroupsSelected\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[52,[30,0,[\\\"allSelected\\\"]],[28,[37,4],[\\\"common.Deselect all\\\"],null],[28,[37,4],[\\\"common.Select all\\\"],null]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,17],null,[[\\\"@buttonText\\\",\\\"@class\\\",\\\"@disabled\\\",\\\"@buttonClasses\\\",\\\"@title\\\"],[[28,[37,4],[\\\"common.Actions\\\"],null],\\\"button--spaced\\\",[28,[37,14],[[30,0,[\\\"anySelected\\\"]]],null],\\\"button button--secondary\\\",[28,[37,10],[[30,0,[\\\"nSelected\\\"]],\\\" \\\",[28,[37,4],[\\\"common.selected\\\"],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,0,[\\\"acceptingTimesheets\\\"]]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"overlaid-dropdown__option text-center\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,19],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0],\\\"acceptSelectedTimesheets\\\"],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.timesheets.Accept selected\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,0],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0],\\\"undoAcceptSelectedTimesheets\\\"],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.incoming.timesheets.Return to pending\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Date range\\\"],null]],[1,\\\": \\\\n        \\\"],[8,[39,20],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"right\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[28,[37,16],[[30,0],\\\"setDateRange\\\"],null]]],null],[1,\\\"\\\\n\\\\n          \\\\n\\\\n        \\\"],[10,0],[14,0,\\\"timesheets__controls-select button--spaced\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n          \\\"],[8,[39,21],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"selectedTimesheetStatus\\\"]],[28,[37,22],[[28,[37,23],[[30,0,[\\\"selectedTimesheetStatus\\\"]]],null]],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"all\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"pending\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Pending\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"accepted\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Accepted\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n          \\\\n\\\\n        \\\"],[10,1],[14,0,\\\"timesheets__controls-search\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,25],null,[[\\\"@icon\\\"],[\\\"search\\\"]],null],[1,\\\"\\\\n          \\\"],[8,[39,26],[[24,0,\\\"text-input\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"common.workersProjectsOrTasks\\\"],null]]],[[\\\"@value\\\"],[[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"timesheets__timesheets-section mt-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"filteredTimesheets\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[8,[39,27],null,[[\\\"@groupedTimesheetData\\\",\\\"@toggleGroupSelected\\\",\\\"@toggleGroupExpanded\\\",\\\"@link\\\",\\\"@allGroupsSelected\\\",\\\"@acceptAndLockTimesheet\\\",\\\"@undoAcceptAndLockTimesheet\\\",\\\"@acceptingTimesheets\\\",\\\"@showForemanControls\\\"],[[30,0,[\\\"groupedTimesheets\\\"]],[28,[37,16],[[30,0],\\\"toggleGroupSelected\\\"],null],[28,[37,16],[[30,0],\\\"toggleGroupExpanded\\\"],null],[28,[37,10],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".timesheets.timesheet\\\"],null],[30,0,[\\\"allGroupsSelected\\\"]],[28,[37,16],[[30,0],\\\"acceptAndLockTimesheet\\\"],null],[28,[37,16],[[30,0],\\\"undoAcceptAndLockTimesheet\\\"],null],[30,0,[\\\"acceptingTimesheets\\\"]],[30,0,[\\\"showForemanControls\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,25],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,4],[\\\"shared.timesheet.No timesheets\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[46,[28,[37,30],null,null],null,null,null]],[\\\"si\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"div\\\",\\\"if\\\",\\\"h1\\\",\\\"link-to\\\",\\\"concat\\\",\\\"hash\\\",\\\"moment-format\\\",\\\"button\\\",\\\"not\\\",\\\"on\\\",\\\"action\\\",\\\"overlaid-dropdown\\\",\\\"or\\\",\\\"loading-icon\\\",\\\"date-range-selector\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"span\\\",\\\"fa-icon\\\",\\\"input\\\",\\\"timesheets-table-pm\\\",\\\"h2\\\",\\\"h3\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/timesheets.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/incoming/timesheets/timesheet\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.date}}\n    <ModalDialog\n      @onClose={{action 'clear'}}\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      {{! TODO action bubbles }}\n      {{! close=(action 'clear') }}\n      <div class='timesheet'>\n        {{#if this.isLoading}}\n          <div class='timesheet__placeholder'>\n            <p class='text-center'>\n              <LoadingIcon @type='spinner' />\n            </p>\n          </div>\n        {{else}}\n          <div class='timesheet__selectors'>\n            <div class='timesheet__selectors-row'>\n              <div class='timesheet__selectors-column'>\n                <h3 class='h3'>{{t 'common.Worker'}}</h3>\n  \n                <div\n                  class='select-box-replacement timesheet__worker-date-row-input'\n                >\n                  {{#if this.selectedWorker}}\n                    <span data-test-worker>{{this.selectedWorker.fullName}}</span>\n                  {{else}}\n                    <span\n                      data-test-worker\n                      class='select-box-replacement__placeholder'\n                    >{{t 'shared.timesheet.Select a worker'}}</span>\n                  {{/if}}\n  \n                  <select\n                    class='select-box-replacement__select-box'\n                    oninput={{action (mut this.worker) value='target.value'}}\n                    data-test-worker-select\n                  >\n                    {{#unless this.selectedWorker}}\n                      <option selected>–</option>\n                    {{/unless}}\n  \n                    {{#each this.activeWorkers as |worker|}}\n                      <option\n                        value={{worker.id}}\n                        selected={{eq worker this.selectedWorker}}\n                      >{{worker.fullName}}</option>\n                    {{/each}}\n                  </select>\n                </div>\n              </div>\n  \n              <div class='timesheet__selectors-column'>\n                <h3 class='h3'>{{t 'common.Date'}}</h3>\n                <input\n                  class='form-control'\n                  type='date'\n                  value={{this.selectedDate}}\n                  {{on 'change' (fn (mut this.selectedDate))}}\n                  autocomplete='off'\n                />\n              </div>\n            </div>\n  \n            {{! (and '' '') doesn't work  }}\n            {{#if this.model.hasDateAndWorker}}\n              {{#if this.timesheetsByProject.projectMetas}}\n                <div class='timesheet__selectors-row'>\n                  <div class='timesheet__selectors-column'>\n                    <h4 class='h4'>{{if\n                        this.canCurrentlyBeForeman\n                        (t 'common.workerS')\n                        (t 'common.Daily')\n                      }}\n                      note</h4>\n                    <Textarea\n                      placeholder={{t\n                        'entity.builda-price.operations.incoming.timesheets.timesheet.workerSNotes'\n                      }}\n                      disabled={{not this.workerIsSelf}}\n                      @value={{this.model.note.body}}\n                      class='timesheet__notes-row-input text-input'\n                      data-test-note='note'\n                      rows={{4}}\n                    />\n                  </div>\n  \n                  {{#if this.canCurrentlyBeForeman}}\n                    <div class='timesheet__selectors-column'>\n                      <h4 class='h4'>{{t 'shared.timesheet.Admin note'}}</h4>\n                      <Textarea\n                        placeholder={{t\n                          'entity.builda-price.operations.incoming.timesheets.timesheet.adminSNotes'\n                        }}\n                        @value={{this.model.note.adminNote}}\n                        class='timesheet__notes-row-input text-input'\n                        data-test-note='note'\n                        rows={{4}}\n                      />\n                    </div>\n                  {{/if}}\n                </div>\n              {{/if}}\n            {{/if}}\n          </div>\n  \n          <div class='timesheet__detail'>\n            {{#if this.model.hasDateAndWorker}}\n              {{#each this.filteredProjectMetas as |group groupIndex|}}\n                <div\n                  class='timesheet__detail\n                    {{unless\n                      (or group.canBeForeman group.isSelf)\n                      \"timesheets-table__entry--disabled\"\n                    }}\n                    {{if\n                      (and\n                        (not group.canBeForeman)\n                        (eq group.timesheetStatus.status \"accepted\")\n                      )\n                      \"timesheets-table__entry--disabled\"\n                    }}'\n                >\n                  <div\n                    class='timesheet__title'\n                    data-test-timesheet-project={{group.project.id}}\n                  >\n                    <h3 class='h3'>{{group.project.name}}</h3>\n                    &nbsp; &nbsp;\n                    {{#if group.canBeForeman}}\n                      <SelectInput\n                        @class='select-box'\n                        @value={{or group.timesheetStatus.status 'pending'}}\n                        @action={{action 'changeStatus' group}}\n                        as |si|\n                      >\n                        {{#each this.statuses as |status|}}\n                          <si.option\n                            @value={{status.value}}\n                          >{{status.label}}</si.option>\n                        {{/each}}\n                      </SelectInput>\n                    {{else}}\n                      <div\n                        class='timesheets-table__entry-status\n                          {{if\n                            (eq group.timesheetStatus.status \"accepted\")\n                            \"timesheets-table__entry-status--accepted\"\n                          }}'\n                      >\n                        {{timesheet-status-label group.timesheetStatus.status}}\n                      </div>\n                    {{/if}}\n                  </div>\n  \n                  {{#if this.projectMeta.timesheetStatus.didEdit}}\n                    <div class='timesheets-table__card-note--edited'>\n                      <span><FaIcon @icon='exclamation-triangle' />\n                        {{t 'shared.timesheet.Edited by admin because'}}:</span>\n                      <br />\n                      {{or\n                        this.projectMeta.timesheetStatus.editNote\n                        (t 'shared.timesheet.No reason given')\n                      }}\n                    </div>\n                  {{/if}}\n  \n                  <table class='data-table timesheet__table'>\n                    <tbody>\n                      {{#each group.timesheets as |timesheet sheetIndex|}}\n                        {{#unless timesheet.isDeleted}}\n                          <TimesheetLinePm\n                            @deleteTimesheet={{action\n                              'deleteTimesheet'\n                              timesheet\n                            }}\n                            @setTask={{action 'setTask' timesheet}}\n                            @timesheet={{timesheet}}\n                            @group={{group}}\n                            @index={{concat groupIndex '-' sheetIndex}}\n                            @disabled={{or\n                              (and (not group.canBeForeman) (not group.isSelf))\n                              (and\n                                (not group.canBeForeman)\n                                (eq group.timesheetStatus.status 'accepted')\n                              )\n                            }}\n                          />\n                        {{/unless}}\n                      {{/each}}\n                    </tbody>\n                  </table>\n  \n                  {{#if\n                    (and\n                      group.hasTasksToSelect (or group.isSelf group.canBeForeman)\n                    )\n                  }}\n                    {{#unless\n                      (and\n                        (not group.canBeForeman)\n                        (eq group.timesheetStatus.status 'accepted')\n                      )\n                    }}\n                      <button\n                        class='button button--add center timesheet__button'\n                        data-test-add-cc={{group.project.id}}\n                        type='button'\n                        {{action 'addTask' group.project}}\n                      >\n                        {{t\n                          'entity.builda-price.operations.incoming.timesheets.timesheet.Add task for'\n                        }}\n                        {{group.project.name}}\n                      </button>\n                    {{/unless}}\n                  {{/if}}\n                </div>\n              {{/each}}\n  \n              {{#if this.remainingProjects.length}}\n                <div class='timesheet__add-project'>\n                  <span class='button button--add'>{{t\n                      'entity.builda-price.operations.incoming.timesheets.timesheet.Add a project'\n                    }}</span>\n  \n                  <div class='select-box-replacement__select-box'>\n                    <PowerSelect\n                      @tagName='div'\n                      @searchEnabled={{true}}\n                      @options={{this.remainingProjects}}\n                      @selected={{this.timesheet.task}}\n                      @searchField='name'\n                      @onChange={{action 'setNextProject'}}\n                      data-test-job-select\n                      as |project|\n                    >\n                      {{project.name}}\n                    </PowerSelect>\n                  </div>\n                </div>\n              {{/if}}\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <footer class='block-module__footer'>\n        <button\n          type='button'\n          class='button button--plain button--spaced'\n          {{action 'clear'}}\n        >\n          {{t 'common.Close'}}\n        </button>\n  \n        {{#if\n          (and\n            this.model.hasDateAndWorker\n            (or this.workerIsSelf this.canCurrentlyBeForeman)\n            this.timesheetsByProject.projectMetas.length\n          )\n        }}\n          <LoadingButton\n            @isLoading={{this.isSaving}}\n            @class='button button--spaced float-end'\n            @action={{action 'save'}}\n            data-test-save='save'\n          >\n            {{t 'common.Save'}}\n          </LoadingButton>\n        {{/if}}\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showReasonDialog}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{action this.set 'showReasonDialog' false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <div class='block-module__header'>\n        {{t\n          'entity.builda-price.operations.incoming.timesheets.timesheet.pleaseGiveAReasonForHavingEditedNameTimesheets'\n          name=this.selectedWorker.firstName\n        }}\n      </div>\n      {{#each this.timesheetsByProject.projectMetas as |projectMeta|}}\n        {{#if projectMeta.canBeForeman}}\n          {{projectMeta.project.name}}\n          <br />\n          <Textarea\n            class='timesheet__notes-row-input text-input'\n            @value={{projectMeta.timesheetStatus.editNote}}\n          />\n        {{/if}}\n      {{/each}}\n      <div class='block-module__footer'>\n        <LoadingButton\n          @class='button button--primary float-end'\n          @buttonText={{t 'common.Submit'}}\n          @action={{action 'save' true}}\n          @isLoading={{this.isSaving}}\n        />\n        <button\n          class='button button--secondary'\n          type='button'\n          {{action this.set 'showReasonDialog' false}}\n        >{{t 'common.Cancel'}}</button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"z1PhBjPq\",\n    \"block\": \"[[[41,[30,0,[\\\"date\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@onClose\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[[28,[37,2],[[30,0],\\\"clear\\\"],null],\\\"modal\\\",true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[1,\\\"    \\\"],[10,0],[14,0,\\\"timesheet\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"timesheet__placeholder\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,5],null,[[\\\"@type\\\"],[\\\"spinner\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"timesheet__selectors\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"timesheet__selectors-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"timesheet__selectors-column\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[28,[35,7],[\\\"common.Worker\\\"],null]],[13],[1,\\\"\\\\n\\\\n              \\\"],[10,0],[14,0,\\\"select-box-replacement timesheet__worker-date-row-input\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedWorker\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,\\\"data-test-worker\\\",\\\"\\\"],[12],[1,[30,0,[\\\"selectedWorker\\\",\\\"fullName\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,1],[14,\\\"data-test-worker\\\",\\\"\\\"],[14,0,\\\"select-box-replacement__placeholder\\\"],[12],[1,[28,[35,7],[\\\"shared.timesheet.Select a worker\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n                \\\"],[10,\\\"select\\\"],[14,0,\\\"select-box-replacement__select-box\\\"],[15,\\\"oninput\\\",[28,[37,2],[[30,0],[28,[37,10],[[30,0,[\\\"worker\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,\\\"data-test-worker-select\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"selectedWorker\\\"]]],[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[14,\\\"selected\\\",\\\"\\\"],[12],[1,\\\"–\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"activeWorkers\\\"]]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[30,1,[\\\"id\\\"]]],[15,\\\"selected\\\",[28,[37,15],[[30,1],[30,0,[\\\"selectedWorker\\\"]]],null]],[12],[1,[30,1,[\\\"fullName\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"timesheet__selectors-column\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[28,[35,7],[\\\"common.Date\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control\\\"],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[24,4,\\\"date\\\"],[4,[38,17],[\\\"change\\\",[28,[37,18],[[28,[37,10],[[30,0,[\\\"selectedDate\\\"]]],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"hasDateAndWorker\\\"]],[[[41,[30,0,[\\\"timesheetsByProject\\\",\\\"projectMetas\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"timesheet__selectors-row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"timesheet__selectors-column\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,[52,[30,0,[\\\"canCurrentlyBeForeman\\\"]],[28,[37,7],[\\\"common.workerS\\\"],null],[28,[37,7],[\\\"common.Daily\\\"],null]]],[1,\\\"\\\\n                    note\\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,20],[[16,\\\"placeholder\\\",[28,[37,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.workerSNotes\\\"],null]],[16,\\\"disabled\\\",[28,[37,21],[[30,0,[\\\"workerIsSelf\\\"]]],null]],[24,0,\\\"timesheet__notes-row-input text-input\\\"],[24,\\\"data-test-note\\\",\\\"note\\\"],[16,\\\"rows\\\",4]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"note\\\",\\\"body\\\"]]]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canCurrentlyBeForeman\\\"]],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"timesheet__selectors-column\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"h4\\\"],[14,0,\\\"h4\\\"],[12],[1,[28,[35,7],[\\\"shared.timesheet.Admin note\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[8,[39,20],[[16,\\\"placeholder\\\",[28,[37,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.adminSNotes\\\"],null]],[24,0,\\\"timesheet__notes-row-input text-input\\\"],[24,\\\"data-test-note\\\",\\\"note\\\"],[16,\\\"rows\\\",4]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"note\\\",\\\"adminNote\\\"]]]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"timesheet__detail\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"hasDateAndWorker\\\"]],[[[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"filteredProjectMetas\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[15,0,[29,[\\\"timesheet__detail\\\\n                  \\\",[52,[51,[28,[37,22],[[30,2,[\\\"canBeForeman\\\"]],[30,2,[\\\"isSelf\\\"]]],null]],\\\"timesheets-table__entry--disabled\\\"],\\\"\\\\n                  \\\",[52,[28,[37,23],[[28,[37,21],[[30,2,[\\\"canBeForeman\\\"]]],null],[28,[37,15],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null]],null],\\\"timesheets-table__entry--disabled\\\"]]]],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"timesheet__title\\\"],[15,\\\"data-test-timesheet-project\\\",[30,2,[\\\"project\\\",\\\"id\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[30,2,[\\\"project\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n                     \\\\n\\\"],[41,[30,2,[\\\"canBeForeman\\\"]],[[[1,\\\"                    \\\"],[8,[39,24],null,[[\\\"@class\\\",\\\"@value\\\",\\\"@action\\\"],[\\\"select-box\\\",[28,[37,22],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"pending\\\"],null],[28,[37,2],[[30,0],\\\"changeStatus\\\",[30,2]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"statuses\\\"]]],null]],null],null,[[[1,\\\"                        \\\"],[8,[30,4,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,5,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,5,[\\\"label\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                    \\\"]],[4]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,0],[15,0,[29,[\\\"timesheets-table__entry-status\\\\n                        \\\",[52,[28,[37,15],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null],\\\"timesheets-table__entry-status--accepted\\\"]]]],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,25],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]]],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"projectMeta\\\",\\\"timesheetStatus\\\",\\\"didEdit\\\"]],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"timesheets-table__card-note--edited\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[12],[8,[39,26],null,[[\\\"@icon\\\"],[\\\"exclamation-triangle\\\"]],null],[1,\\\"\\\\n                      \\\"],[1,[28,[35,7],[\\\"shared.timesheet.Edited by admin because\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[1,[28,[35,22],[[30,0,[\\\"projectMeta\\\",\\\"timesheetStatus\\\",\\\"editNote\\\"]],[28,[37,7],[\\\"shared.timesheet.No reason given\\\"],null]],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table timesheet__table\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,2,[\\\"timesheets\\\"]]],null]],null],null,[[[41,[51,[30,6,[\\\"isDeleted\\\"]]],[[[1,\\\"                        \\\"],[8,[39,30],null,[[\\\"@deleteTimesheet\\\",\\\"@setTask\\\",\\\"@timesheet\\\",\\\"@group\\\",\\\"@index\\\",\\\"@disabled\\\"],[[28,[37,2],[[30,0],\\\"deleteTimesheet\\\",[30,6]],null],[28,[37,2],[[30,0],\\\"setTask\\\",[30,6]],null],[30,6],[30,2],[28,[37,31],[[30,3],\\\"-\\\",[30,7]],null],[28,[37,22],[[28,[37,23],[[28,[37,21],[[30,2,[\\\"canBeForeman\\\"]]],null],[28,[37,21],[[30,2,[\\\"isSelf\\\"]]],null]],null],[28,[37,23],[[28,[37,21],[[30,2,[\\\"canBeForeman\\\"]]],null],[28,[37,15],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null]],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[6,7]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,23],[[30,2,[\\\"hasTasksToSelect\\\"]],[28,[37,22],[[30,2,[\\\"isSelf\\\"]],[30,2,[\\\"canBeForeman\\\"]]],null]],null],[[[41,[51,[28,[37,23],[[28,[37,21],[[30,2,[\\\"canBeForeman\\\"]]],null],[28,[37,15],[[30,2,[\\\"timesheetStatus\\\",\\\"status\\\"]],\\\"accepted\\\"],null]],null]],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add center timesheet__button\\\"],[16,\\\"data-test-add-cc\\\",[30,2,[\\\"project\\\",\\\"id\\\"]]],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"addTask\\\",[30,2,[\\\"project\\\"]]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.Add task for\\\"],null]],[1,\\\"\\\\n                      \\\"],[1,[30,2,[\\\"project\\\",\\\"name\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"remainingProjects\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"timesheet__add-project\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"button button--add\\\"],[12],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.Add a project\\\"],null]],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"select-box-replacement__select-box\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,33],[[24,\\\"data-test-job-select\\\",\\\"\\\"]],[[\\\"@tagName\\\",\\\"@searchEnabled\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@searchField\\\",\\\"@onChange\\\"],[\\\"div\\\",true,[30,0,[\\\"remainingProjects\\\"]],[30,0,[\\\"timesheet\\\",\\\"task\\\"]],\\\"name\\\",[28,[37,2],[[30,0],\\\"setNextProject\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[30,8,[\\\"name\\\"]]],[1,\\\"\\\\n                  \\\"]],[8]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],\\\"clear\\\"],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,7],[\\\"common.Close\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,23],[[30,0,[\\\"model\\\",\\\"hasDateAndWorker\\\"]],[28,[37,22],[[30,0,[\\\"workerIsSelf\\\"]],[30,0,[\\\"canCurrentlyBeForeman\\\"]]],null],[30,0,[\\\"timesheetsByProject\\\",\\\"projectMetas\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,35],[[24,\\\"data-test-save\\\",\\\"save\\\"]],[[\\\"@isLoading\\\",\\\"@class\\\",\\\"@action\\\"],[[30,0,[\\\"isSaving\\\"]],\\\"button button--spaced float-end\\\",[28,[37,2],[[30,0],\\\"save\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showReasonDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,2],[[30,0],[30,0,[\\\"set\\\"]],\\\"showReasonDialog\\\",false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,7],[\\\"entity.builda-price.operations.incoming.timesheets.timesheet.pleaseGiveAReasonForHavingEditedNameTimesheets\\\"],[[\\\"name\\\"],[[30,0,[\\\"selectedWorker\\\",\\\"firstName\\\"]]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"timesheetsByProject\\\",\\\"projectMetas\\\"]]],null]],null],null,[[[41,[30,9,[\\\"canBeForeman\\\"]],[[[1,\\\"        \\\"],[1,[30,9,[\\\"project\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[8,[39,20],[[24,0,\\\"timesheet__notes-row-input text-input\\\"]],[[\\\"@value\\\"],[[30,9,[\\\"timesheetStatus\\\",\\\"editNote\\\"]]]],null],[1,\\\"\\\"]],[]],null]],[9]],null],[1,\\\"    \\\"],[10,0],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,35],null,[[\\\"@class\\\",\\\"@buttonText\\\",\\\"@action\\\",\\\"@isLoading\\\"],[\\\"button button--primary float-end\\\",[28,[37,7],[\\\"common.Submit\\\"],null],[28,[37,2],[[30,0],\\\"save\\\",true],null],[30,0,[\\\"isSaving\\\"]]]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--secondary\\\"],[24,4,\\\"button\\\"],[4,[38,2],[[30,0],[30,0,[\\\"set\\\"]],\\\"showReasonDialog\\\",false],null],[12],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"worker\\\",\\\"group\\\",\\\"groupIndex\\\",\\\"si\\\",\\\"status\\\",\\\"timesheet\\\",\\\"sheetIndex\\\",\\\"project\\\",\\\"projectMeta\\\"],false,[\\\"if\\\",\\\"modal-dialog\\\",\\\"action\\\",\\\"div\\\",\\\"p\\\",\\\"loading-icon\\\",\\\"h3\\\",\\\"t\\\",\\\"span\\\",\\\"select\\\",\\\"mut\\\",\\\"unless\\\",\\\"option\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"input\\\",\\\"on\\\",\\\"fn\\\",\\\"h4\\\",\\\"textarea\\\",\\\"not\\\",\\\"or\\\",\\\"and\\\",\\\"select-input\\\",\\\"timesheet-status-label\\\",\\\"fa-icon\\\",\\\"br\\\",\\\"table\\\",\\\"tbody\\\",\\\"timesheet-line-pm\\\",\\\"concat\\\",\\\"button\\\",\\\"power-select\\\",\\\"footer\\\",\\\"loading-button\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/incoming/timesheets/timesheet.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <ModuleNavigation::Operations::Outgoing />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Dashboard')\n      }}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"5Toau6h8\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,null,null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Dashboard\\\"],null]]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"module-navigation/operations/outgoing\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/invoices/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Invoices'}}</h2>\n        {{/if}}\n  \n        {{#if (includes-feature-flags 'canManageInvoices')}}\n          <button\n            type='button'\n            class='btn btn-secondary text-white text-nowrap m-1'\n            disabled={{this.isLoading}}\n            {{on 'click' (fn (mut this.showInvoicesUploader) true)}}\n          >\n            <FaIcon @icon='upload' />&nbsp;&nbsp;{{t\n              'entity.builda-price.operations.outgoing.invoices.Import invoices'\n            }}\n          </button>\n          <button\n            type='button'\n            class='btn btn-secondary text-white text-nowrap m-1'\n            disabled={{or this.isLoading this.downloadAsCSV.isRunning}}\n            {{on 'click' (fn (mut this.showDownloadCsvModal) true)}}\n            data-test-download-csv\n          >\n            {{t 'shared.report.Download as CSV'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            {{on 'click' this.openNewInvoiceForm}}\n            disabled={{this.isLoading}}\n            data-test-add-new-invoice\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;\n            {{t 'common.New'}}\n          </button>\n        {{/if}}\n      </header>\n  \n      <div\n        class='d-flex align-items-center justify-content-end flex-wrap-reverse mb-2'\n      >\n        {{#if (and this.startDate this.endDate)}}\n          <PageFilters::Pill @onClose={{this.clearDateRange}}>\n            {{t 'common.Date range'}}:\n            {{moment-format this.startDate (t 'date.shortSlashDmy')}}\n            {{t 'common.to'}}\n            {{moment-format this.endDate (t 'date.shortSlashDmy')}}\n          </PageFilters::Pill>\n        {{/if}}\n        {{#if (not-eq this.invoiceType 'ALL')}}\n          <PageFilters::Pill @onClose={{fn (mut this.invoiceType) 'ALL'}}>\n            {{t 'common.Type'}}:\n            {{#if (eq this.invoiceType 'INVOICE')}}\n              {{t 'common.Invoice'}}\n            {{else}}\n              {{t 'common.Credit note'}}\n            {{/if}}\n          </PageFilters::Pill>\n        {{/if}}\n        {{#if (not-eq this.status 'ALL')}}\n          <PageFilters::Pill @onClose={{fn (mut this.status) 'ALL'}}>\n            {{t 'common.Status'}}:\n            {{#if (eq this.status 'DRAFT')}}\n              {{t 'common.Draft'}}\n            {{else if (eq this.status 'AWAITING_APPROVAL')}}\n              {{t 'common.Awaiting approval'}}\n            {{else if (eq this.status 'COMPLETED')}}\n              {{t 'common.Sent'}}\n            {{else if (eq this.status 'APPROVED')}}\n              {{t 'common.Approved'}}\n            {{/if}}\n          </PageFilters::Pill>\n        {{/if}}\n        {{#if this.contact}}\n          <PageFilters::Pill @onClose={{this.clearFilterContact}}>\n            {{t 'common.Contact'}}:\n            {{this.contact}}\n          </PageFilters::Pill>\n        {{/if}}\n  \n        <PageFilters class='m-1' @align='right' @disable={{this.isLoading}}>\n          <PageFilters::Item @label={{t 'common.Date range'}}>\n            <DateRangeSelector\n              @align='right'\n              @startDate={{this.jsStartDate}}\n              @endDate={{this.jsEndDate}}\n              @onApply={{this.setDateRange}}\n            />\n          </PageFilters::Item>\n  \n          <PageFilters::Item @label={{t 'common.Type'}}>\n            <SelectInput\n              class='select-box'\n              @action={{fn (mut this.invoiceType)}}\n              @value={{this.invoiceType}}\n              as |si|\n            >\n              <si.option @value='ALL'>{{t 'common.All'}}</si.option>\n              <si.option @value='INVOICE'>{{t 'common.Invoice'}}</si.option>\n              <si.option @value='CREDIT_NOTE'>{{t\n                  'common.Credit note'\n                }}</si.option>\n            </SelectInput>\n          </PageFilters::Item>\n  \n          <PageFilters::Item @label={{t 'common.Status'}}>\n            <SelectInput\n              class='select-box'\n              @action={{fn (mut this.status)}}\n              @value={{this.status}}\n              as |si|\n            >\n              <si.option @value='ALL'>{{t 'common.All'}}</si.option>\n              <si.option @value='DRAFT'>{{t 'common.Draft'}}</si.option>\n              <si.option @value='AWAITING_APPROVAL'>{{t\n                  'common.Awaiting approval'\n                }}</si.option>\n              <si.option @value='APPROVED'>{{t 'common.Approved'}}</si.option>\n              <si.option @value='COMPLETED'>{{t 'common.Completed'}}</si.option>\n            </SelectInput>\n          </PageFilters::Item>\n  \n          <PageFilters::Item @label={{t 'common.Contact'}}>\n            <SearchSelector\n              @onSelect={{this.setFilterContact}}\n              @onLoad={{this.loadContacts}}\n              @noDataMessage={{t 'common.Create a contact'}}\n              @noDataRoute='entity.settings.contacts.contact'\n              @showNoDataRouteWithResults={{true}}\n              @key='contact'\n              @optionKeys={{array 'name'}}\n              @model={{this.contactFilterModel}}\n            />\n          </PageFilters::Item>\n        </PageFilters>\n  \n        <Input\n          class='form-control m-1 w-auto'\n          placeholder={{t 'common.Search'}}\n          aria-label='Search…'\n          @type='search'\n          @value={{this.invoiceSearchTerm}}\n          disabled={{this.isLoading}}\n          {{on 'input' (perform this.onChangeInvoiceSearchTerm)}}\n          autofocus={{true}}\n          data-test-invoice-search\n        />\n      </div>\n  \n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        {{#if this.model.invoices.lastSuccessful.value.length}}\n          {{#if (media 'isDesktop')}}\n            <div class='px-3'>\n              <div class='row'>\n                <div\n                  class='col-3 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'invoiceNumber')}}\n                >\n                  {{t 'common.Invoice number'}}\n                  {{#if this.invoiceNumberIconName}}\n                    <FaIcon @icon={{this.invoiceNumberIconName}} />\n                  {{/if}}\n                </div>\n                <div class='col-2 fw-bold'>{{t 'common.Contact'}}</div>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'issueDate')}}\n                >\n                  {{t 'common.Issue date'}}\n                  {{#if this.issueDateIconName}}\n                    <FaIcon @icon={{this.issueDateIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'dateCreated')}}\n                >\n                  {{t 'common.Created date'}}\n                  {{#if this.dateCreatedIconName}}\n                    <FaIcon @icon={{this.dateCreatedIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-1 fw-bold text-center'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'status')}}\n                >\n                  {{t 'common.Status'}}\n                  {{#if this.statusIconName}}\n                    <FaIcon @icon={{this.statusIconName}} />\n                  {{/if}}\n                </div>\n                <div class='col-1 fw-bold text-center'>\n                  {{t 'common.Total'}}\n                </div>\n                <div class='col-1 fw-bold'></div>\n              </div>\n            </div>\n          {{/if}}\n  \n          <InfinityScroll\n            @onLoadMore={{perform this.onLoadMoreInvoices}}\n            as |didInsert|\n          >\n            <div\n              class='overflow-auto'\n              style='height: calc(100vh - 320px);'\n              {{did-insert didInsert}}\n            >\n              {{#each this.model.invoices.lastSuccessful.value as |invoice|}}\n                <div class='py-2'>\n                  <LinkTo\n                    @route='entity.builda-price.operations.outgoing.invoices.invoice'\n                    @model={{invoice.id}}\n                    class='project-card__card card shadow-sm text-dark p-3'\n                    role='button'\n                    data-test-project={{invoice.id}}\n                  >\n                    <div class='row align-items-center'>\n                      <div\n                        class='col project-card__project-name fs-2 d-flex align-items-center'\n                        data-test-project-card-name\n                      >\n                        {{invoice.invoiceNumber}}\n                        {{#if (eq invoice.invoiceType 'CREDIT_NOTE')}}\n                          <span class='badge bg-info ms-1 fs-7'>\n                            {{invoice.typeLabel}}\n                          </span>\n                        {{/if}}\n                      </div>\n  \n                      {{#if (media 'isDesktop')}}\n                        <div class='col-2 fs-5'>\n                          {{#if invoice.toContact.name}}\n                            {{invoice.toContact.name}}\n                          {{else}}\n                            —\n                          {{/if}}\n                        </div>\n  \n                        <div class='col-2 fs-5'>\n                          {{#if invoice.issueDate}}\n                            {{moment-format\n                              invoice.issueDate\n                              (t 'date.shortWithWeekday')\n                            }}\n                          {{else}}\n                            —\n                          {{/if}}\n                        </div>\n  \n                        <div class='col-2 fs-5'>\n                          {{#if invoice.dateCreated}}\n                            {{moment-format\n                              invoice.dateCreated\n                              (t 'date.shortWithWeekday')\n                            }}\n                          {{else}}\n                            —\n                          {{/if}}\n                        </div>\n                      {{/if}}\n                      <div class='col-lg-1 col-3 d-flex justify-content-center'>\n                        <span\n                          class='badge rounded-pill fs-6 px-3 py-2\n                            {{if (eq invoice.status \"COMPLETED\") \"bg-success\"}}\n                            {{if (eq invoice.status \"DRAFT\") \"bg-secondary\"}}\n                            {{if\n                              (eq invoice.status \"AWAITING_APPROVAL\")\n                              \"bg-warning text-dark\"\n                            }}\n                            {{if (eq invoice.status \"APPROVED\") \"bg-info\"}}\n                            '\n                        >\n                          {{invoice.statusLabel}}\n                        </span>\n                      </div>\n                      <div class='col-lg-1 col fs-5 text-center text-nowrap'>\n                        {{number-format\n                          invoice.totalPrice\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </div>\n  \n                      <div\n                        class='col-1 d-flex align-items-center justify-content-end'\n                      >\n                        <FaIcon @icon='chevron-right' class='fs-2' />\n                      </div>\n                    </div>\n                  </LinkTo>\n                </div>\n              {{/each}}\n            </div>\n          </InfinityScroll>\n        {{else}}\n          <div class='error-page error-page--no-data'>\n            <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n            <h3 class='h3 error-page__title'>{{t\n                'entity.builda-price.operations.outgoing.invoices.No invoices'\n              }}</h3>\n          </div>\n        {{/if}}\n      {{/if}}\n    </article>\n  {{/if}}\n  \n  {{#if this.invoiceChangeSet}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.onClose}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <form data-test-new-invoice-form>\n          <PtlInput\n            @type='select'\n            @required={{true}}\n            @label={{t 'common.Type'}}\n            @key='invoiceType'\n            @options={{this.invoiceTypes}}\n            @selectNoBlankOption={{true}}\n            @disabled={{this.onSaveInvoice.isRunning}}\n            @model={{this.invoiceChangeSet}}\n            @onChange={{this.onChangeInvoiceType}}\n            @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n          />\n          {{#if (eq this.invoiceChangeSet.invoiceType 'CREDIT_NOTE')}}\n            <div class='mb-3'>\n              <label class='mb-1'>\n                {{t\n                  'entity.builda-price.operations.outgoing.invoices.From Invoice number'\n                }}&nbsp;\n                <InfoPopup\n                  @class='ms-1'\n                  @text={{t\n                    'entity.builda-price.operations.outgoing.invoices.fromInvoiceInfo'\n                  }}\n                />\n              </label>\n  \n              <SearchSelector\n                @onSelect={{this.setReferencedInvoice}}\n                disabled={{or this.onSaveInvoice.isRunning}}\n                @onLoad={{this.loadCompletedInvoices}}\n                @noDataMessage={{t\n                  'entity.builda-price.operations.outgoing.invoices.No invoices'\n                }}\n                @key='referencedInvoice'\n                @optionKeys={{array 'invoiceNumber'}}\n                @model={{this.invoiceChangeSet}}\n                @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n              />\n            </div>\n          {{/if}}\n          <PtlInput\n            @type='text'\n            @required={{true}}\n            @label={{t 'common.Invoice number'}}\n            @key='invoiceNumber'\n            @model={{this.invoiceChangeSet}}\n            disabled={{or this.onSaveInvoice.isRunning}}\n            placeholder={{this.nextInvoiceNumber}}\n            @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n          />\n  \n          {{#if\n            (or\n              (not-eq this.invoiceChangeSet.invoiceType 'CREDIT_NOTE')\n              (and\n                (eq this.invoiceChangeSet.invoiceType 'CREDIT_NOTE')\n                (not this.invoiceChangeSet.referenceInvoiceNumber)\n              )\n            )\n          }}\n            <div class='mb-3'>\n              <label class='mb-1'>{{t 'common.Contact'}}\n                <sup class='text-danger'>*</sup>\n              </label>\n              <SearchSelector\n                @onSelect={{this.setToContact}}\n                @onLoad={{this.loadContacts}}\n                @noDataMessage={{t 'common.Create a contact'}}\n                @noDataRoute='entity.settings.contacts.contact'\n                @showNoDataRouteWithResults={{true}}\n                @key='toContact'\n                @optionKeys={{array 'name'}}\n                @model={{this.invoiceChangeSet}}\n                @disabled={{or this.onSaveInvoice.isRunning}}\n                @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n              />\n            </div>\n          {{/if}}\n  \n          <PtlInput\n            @type='date'\n            @label={{t 'common.Issue date'}}\n            @key='issueDate'\n            @model={{this.invoiceChangeSet}}\n            disabled={{or this.onSaveInvoice.isRunning}}\n            @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n          />\n  \n          {{#unless (eq this.invoiceChangeSet.invoiceType 'CREDIT_NOTE')}}\n            <PtlInput\n              @type='date'\n              @label={{t 'common.Due date'}}\n              @key='dueDate'\n              @model={{this.invoiceChangeSet}}\n              disabled={{or this.onSaveInvoice.isRunning}}\n              @forceValidationVisible={{gt this.onSaveInvoice.performCount 0}}\n            />\n          {{/unless}}\n        </form>\n      </div>\n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            data-test-new-invoice-close-button\n            disabled={{this.onSaveInvoice.isRunning}}\n            {{on 'click' this.onClose}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.onSaveInvoice.isRunning}}\n            {{on 'click' (perform this.onSaveInvoice this.invoiceChangeSet)}}\n          >\n            {{#if this.onSaveInvoice.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Creating'}}&hellip;\n            {{else}}\n              {{t 'common.Create'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showDownloadCsvModal}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.showDownloadCsvModal) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        <p>{{t\n            'entity.builda-price.operations.outgoing.invoices.downloadCSVMessage'\n          }}</p>\n  \n        <DateRangeSelector\n          @align='right'\n          @startDate={{this.jsExportFromDate}}\n          @endDate={{this.jsExportToDate}}\n          @onApply={{this.setExportDateRange}}\n        />\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            disabled={{this.downloadAsCSV.isRunning}}\n            {{on 'click' (fn (mut this.showDownloadCsvModal) false)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.downloadAsCSV.isRunning}}\n            {{on 'click' (perform this.downloadAsCSV)}}\n          >\n            {{#if this.downloadAsCSV.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Downloading'}}&hellip;\n            {{else}}\n              {{t 'common.Download'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showInvoicesUploader}}\n    <InvoicesUploader\n      @onUploadInvoices={{this.onUploadInvoiceCSV}}\n      @onClose={{fn (mut this.showInvoicesUploader) false}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"fUJ0jHj1\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Invoices\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[\\\"canManageInvoices\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"showInvoicesUploader\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.invoices.Import invoices\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"downloadAsCSV\\\",\\\"isRunning\\\"]]],null]],[24,\\\"data-test-download-csv\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"showDownloadCsvModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.report.Download as CSV\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"data-test-add-new-invoice\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"openNewInvoiceForm\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\\n          \\\"],[1,[28,[35,6],[\\\"common.New\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-end flex-wrap-reverse mb-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"startDate\\\"]],[30,0,[\\\"endDate\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,16],null,[[\\\"@onClose\\\"],[[30,0,[\\\"clearDateRange\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Date range\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[28,[35,17],[[30,0,[\\\"startDate\\\"]],[28,[37,6],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.to\\\"],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,17],[[30,0,[\\\"endDate\\\"]],[28,[37,6],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,18],[[30,0,[\\\"invoiceType\\\"]],\\\"ALL\\\"],null],[[[1,\\\"        \\\"],[8,[39,16],null,[[\\\"@onClose\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"invoiceType\\\"]]],null],\\\"ALL\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Type\\\"],null]],[1,\\\":\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"invoiceType\\\"]],\\\"INVOICE\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Invoice\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Credit note\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,18],[[30,0,[\\\"status\\\"]],\\\"ALL\\\"],null],[[[1,\\\"        \\\"],[8,[39,16],null,[[\\\"@onClose\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"status\\\"]]],null],\\\"ALL\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"status\\\"]],\\\"DRAFT\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Draft\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Awaiting approval\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Sent\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"status\\\"]],\\\"APPROVED\\\"],null],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Approved\\\"],null]],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]]]],[]]],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"contact\\\"]],[[[1,\\\"        \\\"],[8,[39,16],null,[[\\\"@onClose\\\"],[[30,0,[\\\"clearFilterContact\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Contact\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[30,0,[\\\"contact\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,20],[[24,0,\\\"m-1\\\"]],[[\\\"@align\\\",\\\"@disable\\\"],[\\\"right\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,21],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Date range\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"right\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,21],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Type\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,23],[[24,0,\\\"select-box\\\"]],[[\\\"@action\\\",\\\"@value\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"invoiceType\\\"]]],null]],null],[30,0,[\\\"invoiceType\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"INVOICE\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Invoice\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CREDIT_NOTE\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Credit note\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,21],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Status\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,23],[[24,0,\\\"select-box\\\"]],[[\\\"@action\\\",\\\"@value\\\"],[[28,[37,10],[[28,[37,11],[[30,0,[\\\"status\\\"]]],null]],null],[30,0,[\\\"status\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Draft\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"AWAITING_APPROVAL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Awaiting approval\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"APPROVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Approved\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"COMPLETED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Completed\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[2]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,21],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Contact\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,24],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@noDataRoute\\\",\\\"@showNoDataRouteWithResults\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\"],[[30,0,[\\\"setFilterContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,6],[\\\"common.Create a contact\\\"],null],\\\"entity.settings.contacts.contact\\\",true,\\\"contact\\\",[28,[37,25],[\\\"name\\\"],null],[30,0,[\\\"contactFilterModel\\\"]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,26],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"aria-label\\\",\\\"Search…\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[16,\\\"autofocus\\\",true],[24,\\\"data-test-invoice-search\\\",\\\"\\\"],[4,[38,9],[\\\"input\\\",[28,[37,27],[[30,0,[\\\"onChangeInvoiceSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"search\\\",[30,0,[\\\"invoiceSearchTerm\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"invoices\\\",\\\"lastSuccessful\\\",\\\"value\\\",\\\"length\\\"]],[[[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-3 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"sortColumn\\\"]],\\\"invoiceNumber\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Invoice number\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceNumberIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[30,0,[\\\"invoiceNumberIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-2 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Contact\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"sortColumn\\\"]],\\\"issueDate\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Issue date\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"issueDateIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[30,0,[\\\"issueDateIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"sortColumn\\\"]],\\\"dateCreated\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Created date\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"dateCreatedIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[30,0,[\\\"dateCreatedIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-1 fw-bold text-center\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"sortColumn\\\"]],\\\"status\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"statusIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[30,0,[\\\"statusIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-1 fw-bold text-center\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-1 fw-bold\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,28],null,[[\\\"@onLoadMore\\\"],[[28,[37,27],[[30,0,[\\\"onLoadMoreInvoices\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,0],[24,0,\\\"overflow-auto\\\"],[24,5,\\\"height: calc(100vh - 320px);\\\"],[4,[38,29],[[30,3]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,31],[[28,[37,31],[[30,0,[\\\"model\\\",\\\"invoices\\\",\\\"lastSuccessful\\\",\\\"value\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,0],[14,0,\\\"py-2\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,32],[[24,0,\\\"project-card__card card shadow-sm text-dark p-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-test-project\\\",[30,4,[\\\"id\\\"]]]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.operations.outgoing.invoices.invoice\\\",[30,4,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col project-card__project-name fs-2 d-flex align-items-center\\\"],[14,\\\"data-test-project-card-name\\\",\\\"\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,4,[\\\"invoiceNumber\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,4,[\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"badge bg-info ms-1 fs-7\\\"],[12],[1,\\\"\\\\n                          \\\"],[1,[30,4,[\\\"typeLabel\\\"]]],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"                      \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"toContact\\\",\\\"name\\\"]],[[[1,\\\"                          \\\"],[1,[30,4,[\\\"toContact\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          —\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\\n                      \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"issueDate\\\"]],[[[1,\\\"                          \\\"],[1,[28,[35,17],[[30,4,[\\\"issueDate\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          —\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\\n                      \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"dateCreated\\\"]],[[[1,\\\"                          \\\"],[1,[28,[35,17],[[30,4,[\\\"dateCreated\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                          —\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[10,0],[14,0,\\\"col-lg-1 col-3 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,1],[15,0,[29,[\\\"badge rounded-pill fs-6 px-3 py-2\\\\n                          \\\",[52,[28,[37,19],[[30,4,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],\\\"bg-success\\\"],\\\"\\\\n                          \\\",[52,[28,[37,19],[[30,4,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n                          \\\",[52,[28,[37,19],[[30,4,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n                          \\\",[52,[28,[37,19],[[30,4,[\\\"status\\\"]],\\\"APPROVED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n                          \\\"]]],[12],[1,\\\"\\\\n                        \\\"],[1,[30,4,[\\\"statusLabel\\\"]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"col-lg-1 col fs-5 text-center text-nowrap\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,34],[[30,4,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\\n                    \\\"],[10,0],[14,0,\\\"col-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,12],[[24,0,\\\"fs-2\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"]],[3]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.invoices.No invoices\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceChangeSet\\\"]],[[[1,\\\"  \\\"],[8,[39,36],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"onClose\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"form\\\"],[14,\\\"data-test-new-invoice-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,38],null,[[\\\"@type\\\",\\\"@required\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@selectNoBlankOption\\\",\\\"@disabled\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",true,[28,[37,6],[\\\"common.Type\\\"],null],\\\"invoiceType\\\",[30,0,[\\\"invoiceTypes\\\"]],true,[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]],[30,0,[\\\"invoiceChangeSet\\\"]],[30,0,[\\\"onChangeInvoiceType\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"invoiceChangeSet\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.invoices.From Invoice number\\\"],null]],[1,\\\" \\\\n              \\\"],[8,[39,41],null,[[\\\"@class\\\",\\\"@text\\\"],[\\\"ms-1\\\",[28,[37,6],[\\\"entity.builda-price.operations.outgoing.invoices.fromInvoiceInfo\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,24],[[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setReferencedInvoice\\\"]],[30,0,[\\\"loadCompletedInvoices\\\"]],[28,[37,6],[\\\"entity.builda-price.operations.outgoing.invoices.No invoices\\\"],null],\\\"referencedInvoice\\\",[28,[37,25],[\\\"invoiceNumber\\\"],null],[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,38],[[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null]],[16,\\\"placeholder\\\",[30,0,[\\\"nextInvoiceNumber\\\"]]]],[[\\\"@type\\\",\\\"@required\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",true,[28,[37,6],[\\\"common.Invoice number\\\"],null],\\\"invoiceNumber\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,13],[[28,[37,18],[[30,0,[\\\"invoiceChangeSet\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[28,[37,15],[[28,[37,19],[[30,0,[\\\"invoiceChangeSet\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[28,[37,42],[[30,0,[\\\"invoiceChangeSet\\\",\\\"referenceInvoiceNumber\\\"]]],null]],null]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,6],[\\\"common.Contact\\\"],null]],[1,\\\"\\\\n              \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,24],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@noDataRoute\\\",\\\"@showNoDataRouteWithResults\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"setToContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,6],[\\\"common.Create a contact\\\"],null],\\\"entity.settings.contacts.contact\\\",true,\\\"toContact\\\",[28,[37,25],[\\\"name\\\"],null],[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,38],[[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.Issue date\\\"],null],\\\"issueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,19],[[30,0,[\\\"invoiceChangeSet\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null]],[[[1,\\\"          \\\"],[8,[39,38],[[16,\\\"disabled\\\",[28,[37,13],[[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.Due date\\\"],null],\\\"dueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,39],[[30,0,[\\\"onSaveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-invoice-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"onClose\\\"]]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"onSaveInvoice\\\"]],[30,0,[\\\"invoiceChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onSaveInvoice\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Creating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDownloadCsvModal\\\"]],[[[1,\\\"  \\\"],[8,[39,36],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"showDownloadCsvModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.invoices.downloadCSVMessage\\\"],null]],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,22],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"right\\\",[30,0,[\\\"jsExportFromDate\\\"]],[30,0,[\\\"jsExportToDate\\\"]],[30,0,[\\\"setExportDateRange\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCSV\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"showDownloadCsvModal\\\"]]],null],false],null]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCSV\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"downloadAsCSV\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCSV\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showInvoicesUploader\\\"]],[[[1,\\\"  \\\"],[8,[39,46],null,[[\\\"@onUploadInvoices\\\",\\\"@onClose\\\"],[[30,0,[\\\"onUploadInvoiceCSV\\\"]],[28,[37,10],[[28,[37,11],[[30,0,[\\\"showInvoicesUploader\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"si\\\",\\\"didInsert\\\",\\\"invoice\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"article\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"or\\\",\\\"div\\\",\\\"and\\\",\\\"page-filters/pill\\\",\\\"moment-format\\\",\\\"not-eq\\\",\\\"eq\\\",\\\"page-filters\\\",\\\"page-filters/item\\\",\\\"date-range-selector\\\",\\\"select-input\\\",\\\"search-selector\\\",\\\"array\\\",\\\"input\\\",\\\"perform\\\",\\\"infinity-scroll\\\",\\\"did-insert\\\",\\\"each\\\",\\\"-track-array\\\",\\\"link-to\\\",\\\"span\\\",\\\"number-format\\\",\\\"h3\\\",\\\"modal-dialog\\\",\\\"form\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"label\\\",\\\"info-popup\\\",\\\"not\\\",\\\"sup\\\",\\\"unless\\\",\\\"p\\\",\\\"invoices-uploader\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/invoices/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/invoices/invoice\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Invoice')}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.outgoing.invoices.index'\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4'>\n    <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n  \n      {{#unless this.isLoading}}\n  \n        <h2 class='flex-grow-1 m-0 my-2 d-flex align-items-center'>\n          {{this.model.invoice.last.value.typeLabel}}&nbsp;{{this.model.invoice.last.value.invoiceNumber}}\n          <span\n            class='badge ms-1 fs-7\n              {{if (eq this.status \"COMPLETED\") \"bg-success\"}}\n              {{if (eq this.status \"DRAFT\") \"bg-secondary\"}}\n              {{if (eq this.status \"AWAITING_APPROVAL\") \"bg-warning text-dark\"}}\n              {{if (eq this.status \"APPROVED\") \"bg-info\"}}\n              '\n          >\n            {{this.invoice.statusLabel}}\n          </span>\n        </h2>\n  \n        <LinkTo\n          @route='entity.builda-price.reports.company.notes'\n          @query={{hash invoiceId=this.model.invoice.last.value.id}}\n          class='btn btn-link p-0 m-1'\n        >View timesheet notes\n          <FaIcon class='ms-1' @icon='external-link-alt' />\n        </LinkTo>\n  \n        <button\n          type='button'\n          class='btn btn-link text-primary text-decoration-underline m-1'\n          {{on 'click' this.showConfigureBreakdownOptionsModalDialog}}\n        >\n          {{t\n            'entity.builda-price.operations.outgoing.invoices.invoice.Breakdown options'\n          }}\n        </button>\n  \n        {{#if (eq this.relatedDocuments.length 1)}}\n          <button\n            type='button'\n            class='btn btn-primary text-white m-1'\n            disabled={{this.isLoading}}\n            {{on\n              'click'\n              (perform\n                (get this.relatedDocuments '0.action')\n                (get this.relatedDocuments '0.id')\n              )\n            }}\n          >\n            {{get this.relatedDocuments '0.label'}}\n          </button>\n        {{else if (gt this.relatedDocuments.length 1)}}\n          <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n            <button type='button' class='btn btn-primary text-white m-1'>\n              {{this.relatedDocuments.length}}\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Related documents'\n              }}&nbsp;&nbsp;\n              <FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              {{#each this.relatedDocuments as |document|}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform document.action document.id)}}\n                >\n                  {{document.label}}\n                </button>\n              {{/each}}\n            </po.Content>\n          </PopOver>\n        {{/if}}\n  \n        {{#if this.invoiceItems.length}}\n          {{#if this.accountingPlatform.isActive}}\n            {{#if\n              (or\n                (and\n                  (eq this.accountingPlatform.activePlatform 'xero')\n                  this.invoice.xeroInvoiceId\n                )\n                (and\n                  (eq this.accountingPlatform.activePlatform 'quickbooks')\n                  this.invoice.quickbooksInvoiceId\n                )\n              )\n            }}\n              <button\n                type='button'\n                class='btn btn-link text-primary text-decoration-underline m-1'\n                {{on 'click' (perform this.viewInAccountingPackage)}}\n                disabled={{this.viewInAccountingPackage.isRunning}}\n              >\n                {{#if this.viewInAccountingPackage.isRunning}}\n                  {{t 'common.Sending'}}&hellip;\n                {{else}}\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.viewInLabel'\n                    label=this.accountingPlatform.label\n                  }}\n                  <FaIcon class='ms-1' @icon='external-link-alt' />\n                {{/if}}\n              </button>\n            {{/if}}\n  \n            {{!other accounting packages go here}}\n          {{/if}}\n  \n          {{#if\n            (and\n              this.invoiceActions.primaryAction\n              (not this.invoiceActions.secondaryActions.length)\n            )\n          }}\n            <button\n              type='button'\n              class='btn btn-primary text-white m-1'\n              disabled={{or this.isLoading this.isActionsRunning}}\n              {{on\n                'click'\n                (perform\n                  this.invoiceActions.primaryAction.action\n                  this.invoiceActions.primaryAction.targetStatus\n                )\n              }}\n            >\n              {{#if this.isActionsRunning}}\n                {{t 'common.Syncing'}}&hellip;\n              {{else}}\n                {{this.invoiceActions.primaryAction.name}}\n              {{/if}}\n            </button>\n          {{else if\n            (and\n              this.invoiceActions.primaryAction\n              this.invoiceActions.secondaryActions.length\n            )\n          }}\n            <div class='m-1 d-flex'>\n              <button\n                type='button'\n                class='btn btn-primary rounded-0 rounded-start text-white'\n                disabled={{or this.isLoading this.isActionsRunning}}\n                {{on\n                  'click'\n                  (perform\n                    this.invoiceActions.primaryAction.action\n                    this.invoiceActions.primaryAction.targetStatus\n                    this.invoiceActions.primaryAction.syncToAccountingPackage\n                  )\n                }}\n              >\n                {{#if this.isActionsRunning}}\n                  {{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{this.invoiceActions.primaryAction.name}}\n                {{/if}}\n              </button>\n  \n              <PopOver\n                @direction='bottom-left'\n                @disabled={{or this.isLoading this.isActionsRunning}}\n                as |po|\n              >\n                <button\n                  type='button'\n                  class='btn btn-primary rounded-0 rounded-end text-white'\n                  disabled={{or this.isLoading this.isActionsRunning}}\n                >\n                  <FaIcon @icon='caret-down' />\n                </button>\n                <po.Content>\n                  {{#each this.invoiceActions.secondaryActions as |action|}}\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      {{on\n                        'click'\n                        (perform\n                          action.action\n                          action.targetStatus\n                          action.syncToAccountingPackage\n                        )\n                      }}\n                      disabled={{action.action.isRunning}}\n                    >\n                      {{#if action.action.isRunning}}\n                        {{t 'common.Updating'}}&hellip;\n                      {{else}}\n                        {{action.name}}\n                      {{/if}}\n                    </button>\n                  {{/each}}\n                </po.Content>\n              </PopOver>\n            </div>\n          {{/if}}\n        {{/if}}\n  \n        {{#if this.canUseFileStorage}}\n          <AttachmentDropdownList\n            @buttonClass='btn btn-secondary text-white m-1'\n            @attachments={{this.model.invoice.last.value.myAttachments}}\n            @parent={{this.model.invoice.last.value}}\n            @onUploadComplete={{this.attachmentsUploadComplete}}\n            @onDownloadAttachment={{this.downloadAttachment}}\n            @onDeleteAttachment={{this.deleteAttachment}}\n            @isDragAndDropVisible={{this.canManageFileStorage}}\n          />\n        {{/if}}\n  \n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn this.setDownloadInvoice 'pdf')}}\n              disabled={{this.isDownloadingInvoice}}\n            >\n              {{#if this.isDownloadingInvoice}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn this.setDownloadInvoice 'csv')}}\n              disabled={{this.isDownloadingInvoice}}\n            >\n              {{#if this.isDownloadingInvoice}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as CSV'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn this.setDownloadInvoice 'excel')}}\n              disabled={{this.isDownloadingInvoice}}\n            >\n              {{#if this.isDownloadingInvoice}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as Excel'}}\n              {{/if}}\n            </button>\n          </po.Content>\n        </PopOver>\n      {{/unless}}\n  \n    </header>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='d-flex flex-column border rounded mb-4'>\n        <div class='pt-3 px-3 flex-grow-1 d-flex align-items-center'>\n          <h4 class='m-0 p-0'>{{t 'common.Details'}}</h4>\n          <button\n            class='ms-auto btn btn-sm btn-primary\n              {{if\n                this.invoiceChangeSet.isInvalid\n                \"invoice__edit-button--warning\"\n              }}'\n            type='button'\n            {{on 'click' (fn (mut this.isEditingInvoice) true)}}\n            id={{this.invoiceEditButtonId}}\n          >\n            {{t 'common.Edit'}}&nbsp;\n            <FaIcon @icon='edit' />\n          </button>\n        </div>\n  \n        <div class='row m-0'>\n          <div class='col flex-column d-flex p-3'>\n            <h5 class='mb-1'>{{t 'common.Invoice number'}}</h5>\n            <p class='m-0'>\n              {{this.invoice.invoiceNumber}}\n            </p>\n          </div>\n          <div class='col flex-column d-flex p-3'>\n            <h5 class='mb-1'>{{t 'common.Contact'}}</h5>\n            <p class='m-0'>\n              {{#if (includes-feature-flags 'canUseSuppliers')}}\n                {{#if this.invoice.toContact.name}}\n                  <div\n                    role='button'\n                    {{on 'click' this.goToSupplier}}\n                    class='btn btn-link p-0'\n                  >\n                    {{this.invoice.toContact.name}}&nbsp;\n                    <FaIcon @icon='external-link-alt' />\n                  </div>\n                {{else}}\n                  &mdash;\n                {{/if}}\n              {{else}}\n                {{this.invoice.toContact.name}}\n              {{/if}}\n            </p>\n          </div>\n          <div class='col flex-column d-flex p-3'>\n            <h5 class='mb-1'>{{t 'common.Issue date'}}</h5>\n            <p class='m-0'>\n              {{#if this.invoice.issueDate}}\n                {{moment-format\n                  this.invoice.issueDate\n                  (t 'date.shortWithWeekday')\n                }}\n              {{else}}\n                &mdash;\n              {{/if}}\n            </p>\n          </div>\n          <div class='col flex-column d-flex p-3'>\n            <h5 class='mb-1'>{{t 'common.Due date'}}</h5>\n            <p class='m-0'>\n              {{#if this.invoice.dueDate}}\n                {{moment-format this.invoice.dueDate (t 'date.shortWithWeekday')}}\n              {{else}}\n                &mdash;\n              {{/if}}\n            </p>\n          </div>\n        </div>\n      </div>\n  \n      <div class='mb-2 d-flex justify-content-end align-items-center'>\n        {{#if this.canEdit}}\n          <div class='flex-grow-1'>\n            {{#if this.selectedItemIndexes.size}}\n              <button\n                class='btn btn-link text-danger text-decoration-underline'\n                type='button'\n                {{on 'click' (perform this.deleteInvoiceItems)}}\n                disabled={{not this.selectedItemIndexes.size}}\n              >\n                {{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Delete items'\n                }}\n              </button>\n            {{/if}}\n          </div>\n          {{#if this.canAddItems}}\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap'\n              disabled={{this.deleteInvoiceItems.isRunning}}\n              {{on 'click' this.addInvoiceItem}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n            </button>\n          {{/if}}\n        {{/if}}\n      </div>\n  \n      <div class='invoice__invoice-items-table-container'>\n        <PaginationTable\n          @tableHeader={{this.itemTableHeader}}\n          @tableData={{this.itemTableData}}\n          @noDataText={{t 'common.No items'}}\n          @isLoading={{this.model.invoiceItems.isRunning}}\n          @hidePagination={{true}}\n          @class='table-bordered\n            {{if this.invoiceTotalError \"invoice__invoice-items-table--invalid\"}}'\n          @validationMessage={{this.invoiceTotalError}}\n        />\n      </div>\n      <div class='invoice__footer mt-3'>\n        {{#if this.canManageOrApproveInvoice}}\n          <div class='d-flex align-items-center justify-content-between mt-3'>\n            <div>\n              {{#if\n                (and\n                  (eq this.status 'COMPLETED')\n                  (not-eq this.invoice.invoiceType 'CREDIT_NOTE')\n                  (not this.relatedDocuments.length)\n                )\n              }}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  disabled={{or\n                    this.saveInvoice.isRunning\n                    this.onDeleteInvoice.isRunning\n                  }}\n                  {{on 'click' (fn (mut this.isCreatingCreditNote) true)}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.Create credit note'\n                  }}\n                </button>\n              {{else if (not-eq this.status 'COMPLETED')}}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  disabled={{or\n                    this.saveInvoice.isRunning\n                    this.onDeleteInvoice.isRunning\n                  }}\n                  {{on 'click' (fn (mut this.isDeletingInvoice) true)}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.Delete invoice'\n                  }}\n                </button>\n              {{/if}}\n            </div>\n            {{#if this.totalFooter}}\n              {{#if this.totalFooter}}\n                <div class='my-2 text-end'>\n                  <div class='mb-1'>{{t 'common.Subtotal'}}:\n                    {{this.totalFooter.subtotal}}</div>\n                  <div class='mb-1'>{{t 'common.Tax'}}:\n                    {{this.totalFooter.tax}}</div>\n                  <div class='mb-1'>{{t 'common.Total'}}:\n                    {{this.totalFooter.total}}</div>\n                </div>\n              {{/if}}\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.isDeletingInvoice}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{fn (mut this.isDeletingInvoice) false}}\n      @translucentOverlay={{true}}\n    >\n      <div\n        class='modal-content'\n        {{did-insert (perform this.validateInvoiceSafeToDelete)}}\n      >\n        {{#if this.validateInvoiceSafeToDelete.isRunning}}\n          <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n        {{else}}\n          <div class='modal-body'>\n            {{#unless this.validateInvoiceSafeToDelete.last.value}}\n              <div class='alert alert-warning pb-0 pt-0'>\n                <p>\n                  {{html-safe\n                    (t\n                      'entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoiceCalculationDependencyWarning'\n                    )\n                  }}\n                </p>\n              </div>\n            {{/unless}}\n  \n            <p class='ms-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoicePrompt'\n              }}\n            </p>\n          </div>\n  \n          <div class='modal-footer'>\n            <button\n              class='btn btn-danger text-white'\n              type='button'\n              disabled={{this.onDeleteInvoice.isRunning}}\n              {{on 'click' (perform this.onDeleteInvoice)}}\n            >\n              {{#if this.onDeleteInvoice.isRunning}}\n                {{t 'common.Deleting'}}&hellip;\n              {{else}}\n                {{t 'common.Delete'}}\n              {{/if}}\n            </button>\n            <button\n              class='btn btn-secondary text-white'\n              type='button'\n              disabled={{this.onDeleteInvoice.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingInvoice) false)}}\n            >{{t 'common.Cancel'}}</button>\n          </div>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isCreatingCreditNote}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{fn (mut this.isCreatingCreditNote) false}}\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-content'>\n        <div class='modal-body'>\n          <p>\n            {{t\n              'entity.builda-price.operations.outgoing.invoices.invoice.createCreditNoteConfirmMessage'\n            }}\n          </p>\n        </div>\n        <div class='modal-footer'>\n          <button\n            class='btn btn-secondary text-white'\n            type='button'\n            disabled={{this.createCreditNote.isRunning}}\n            {{on 'click' (fn (mut this.isCreatingCreditNote) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-primary text-white'\n            type='button'\n            disabled={{this.createCreditNote.isRunning}}\n            {{on 'click' (perform this.createCreditNote)}}\n          >\n            {{#if this.createCreditNote.isRunning}}\n              {{t 'common.Creating'}}&hellip;\n            {{else}}\n              {{t 'common.Create'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isRevertCompletedToDraftInvoice}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{fn (mut this.isRevertCompletedToDraftInvoice) false}}\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-content'>\n        <div class='modal-body'>\n          <p>\n            {{t\n              'entity.builda-price.operations.outgoing.invoices.invoice.revertDraftInvoicePrompt'\n            }}\n          </p>\n        </div>\n  \n        <div class='modal-footer'>\n          <button\n            class='btn btn-secondary text-white'\n            type='button'\n            disabled={{this.changeStatus.isRunning}}\n            {{on 'click' (fn (mut this.isRevertCompletedToDraftInvoice) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-danger text-white'\n            type='button'\n            disabled={{this.changeStatus.isRunning}}\n            {{on 'click' (perform this.changeStatus 'DRAFT' false)}}\n          >\n            {{#if this.changeStatus.isRunning}}\n              {{t 'common.Reverting'}}&hellip;\n            {{else}}\n              {{t 'common.Revert'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isEditingInvoice}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{this.closeInvoiceEditModal}}\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-content'>\n        <div class='modal-body'>\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Invoice number'}}\n            @key='invoiceNumber'\n            @required={{true}}\n            @model={{this.invoiceChangeSet}}\n            disabled={{or this.saveInvoice.isRunning (not this.canEdit)}}\n            @forceValidationVisible={{gt this.saveInvoice.performCount 0}}\n          />\n  \n          <div class='mb-2'>\n            <label class='mb-1'>\n              {{t 'common.Contact'}}\n              <sup class='text-danger'>*</sup>\n            </label>\n            <SearchSelector\n              @onSelect={{this.setToContact}}\n              @onLoad={{this.loadContacts}}\n              @noDataMessage={{t 'common.Create a contact'}}\n              @noDataRoute='entity.settings.contacts.contact'\n              @showNoDataRouteWithResults={{true}}\n              @key='toContact'\n              @optionKeys={{array 'name'}}\n              @model={{this.invoiceChangeSet}}\n              @forceValidationVisible={{gt this.saveInvoice.performCount 0}}\n              @disabled={{or this.saveInvoice.isRunning (not this.canEdit)}}\n            />\n            {{#if\n              (and\n                this.invoiceChangeSet.toContact\n                (includes-feature-flags 'canUseSuppliers')\n              )\n            }}\n              <div\n                role='button'\n                {{on 'click' this.goToSupplier}}\n                class='form-text link me-auto'\n              >\n                {{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.See details'\n                }}&nbsp;\n                <FaIcon @icon='external-link-alt' />\n              </div>\n            {{/if}}\n          </div>\n  \n          <PtlInput\n            @type='date'\n            @label={{t 'common.Issue date'}}\n            @key='issueDate'\n            @model={{this.invoiceChangeSet}}\n            disabled={{or this.saveInvoice.isRunning (not this.canEdit)}}\n            @forceValidationVisible={{gt this.saveInvoice.performCount 0}}\n          />\n  \n          <PtlInput\n            @type='date'\n            @label={{t 'common.Due date'}}\n            @key='dueDate'\n            @model={{this.invoiceChangeSet}}\n            @forceValidationVisible={{gt this.saveInvoice.performCount 0}}\n            disabled={{or this.saveInvoice.isRunning (not this.canEdit)}}\n          />\n        </div>\n  \n        <div class='modal-footer'>\n          <button\n            type='button'\n            class='btn btn-secondary'\n            {{on 'click' this.closeInvoiceEditModal}}\n            disabled={{this.saveInvoice.isRunning}}\n          >\n            {{t 'common.Close'}}\n          </button>\n  \n          {{#if this.canEdit}}\n            <button\n              type='button'\n              class='btn btn-primary'\n              disabled={{this.saveInvoice.isRunning}}\n              {{on 'click' (perform this.saveInvoice)}}\n            >\n              {{#if this.saveInvoice.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.currentInvoiceItem}}\n    <InvoiceItemEditorModal\n      @headerText={{this.invoiceItemEditorHeader}}\n      @item={{this.currentInvoiceItem}}\n      @onClose={{this.closeInvoiceItemEditor}}\n      @onSave={{this.saveInvoiceItem}}\n      @onDelete={{this.deleteInvoiceItem}}\n      @editDisabled={{not this.canEdit}}\n      @allocationDisabled={{not this.canAllocate}}\n    />\n  {{/if}}\n  \n  {{#if this.downloadInvoice}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.downloadInvoice) null}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.operations.outgoing.invoices.invoice.reportExportOptionDescription'\n          }}\n        </p>\n        {{#each this.exportOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <Input\n              @type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              @checked={{option.value}}\n              id={{index}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.downloadInvoice) null)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' this.downloadInvoice}}\n          disabled={{this.isDownloadingInvoice}}\n        >\n          {{#if this.isDownloadingInvoice}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showConfigureBreakdownOptionsModal}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.showConfigureBreakdownOptionsModal) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t\n            'entity.builda-price.operations.outgoing.invoices.invoice.Breakdown options'\n          }}\n        </h5>\n      </div>\n  \n      <div\n        class='modal-body p-0 d-flex align-items-stretch justify-content-center invoice__break-down-options-modal-body'\n      >\n        {{#if this.initInvoiceBreakdown.isRunning}}\n          <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n        {{else}}\n          <div class='overflow-auto p-3 border-right' style='min-width: 380px;'>\n            {{#if\n              (and\n                this.canManageOrApproveInvoice\n                this.hasCompanyBreakdownOptionChanges\n              )\n            }}\n              <button\n                type='button'\n                class='btn btn-link text-decoration-underline ps-0 mb-2'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  this.saveBreakdownOptionsAsCompanyDefault.isRunning\n                }}\n                {{on 'click' (perform this.saveBreakdownOptionsAsCompanyDefault)}}\n              >\n                {{#if this.saveBreakdownOptionsAsCompanyDefault.isRunning}}\n                  {{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.Save as company default?'\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n            <PtlInput\n              @type='textarea'\n              @label={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Additional notes'\n              }}\n              @key='breakdownNotes'\n              @model={{this.invoiceBreakdownOptions}}\n              {{on 'blur' (perform this.getInvoiceBreakdownHtml)}}\n              disabled={{or\n                this.saveBreakdownOptions.isRunning\n                (not this.canManageOrApproveInvoice)\n              }}\n            />\n  \n            <PtlInput\n              @containerClass='form-check mb-2'\n              @type='checkbox'\n              @label={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Include billable'\n              }}\n              @key='includeBillable'\n              @model={{this.invoiceBreakdownOptions}}\n              @description={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.includeBillableDescription'\n              }}\n              disabled={{or\n                this.saveBreakdownOptions.isRunning\n                (not this.canManageOrApproveInvoice)\n              }}\n              {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n            />\n            <PtlInput\n              @containerClass='form-check mb-2'\n              @type='checkbox'\n              @label={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Include previously invoiced'\n              }}\n              @key='includeInvoiced'\n              @model={{this.invoiceBreakdownOptions}}\n              @description={{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.includeInvoicedDescription'\n              }}\n              disabled={{or\n                this.saveBreakdownOptions.isRunning\n                (not this.canManageOrApproveInvoice)\n              }}\n              {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n            />\n            <label class='mb-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.First group by'\n              }}\n            </label>\n            <div class='d-flex align-items-center gap-3 ms-1'>\n              <PtlInput\n                @type='radio'\n                @key='firstGroupBy'\n                @id='groupByTask'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t 'common.Task'}}\n                @value='TASK'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeFirstGroupBy}}\n              />\n              <PtlInput\n                @type='radio'\n                @key='firstGroupBy'\n                @id='groupByAllocationType'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t 'common.Allocation type'}}\n                @value='ALLOCATION_TYPE'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeFirstGroupBy}}\n              />\n            </div>\n  \n            <label class='mb-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Labour bills'\n              }}\n            </label>\n            <div class='d-flex align-items-center gap-3 ms-1'>\n              <PtlInput\n                @type='radio'\n                @key='labourDetail'\n                @id='labourSection'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Total only'\n                }}\n                @value='TOTAL'\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='labourDetail'\n                @id='labourBill'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t 'common.Bill'}}\n                @value='BILL'\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='labourDetail'\n                @id='labourItem'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Bill item'\n                }}\n                @value='BILL_ITEM'\n                @containerClass='mb-1'\n              />\n            </div>\n            <div class='ms-1'>\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin'\n                }}\n                @key='includeLabourBillsProfitMargins'\n                @model={{this.invoiceBreakdownOptions}}\n                @description={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription'\n                }}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n              />\n            </div>\n  \n            <label class='mb-1'>\n              {{t 'common.Timesheets'}}\n            </label>\n            <div class='ms-1 mb-1'>\n              <GroupingSelector\n                @groups={{this.timesheetGroupingOptions}}\n                @value={{this.invoiceBreakdownOptions.timesheetDetails}}\n                @onChange={{pipe\n                  (fn (mut this.invoiceBreakdownOptions.timesheetDetails))\n                  (perform this.getInvoiceBreakdownHtml)\n                }}\n                as |gs|\n              >\n                {{#each gs.axes as |axis i|}}\n                  <label class='pdf-export-options__grouping-label'>\n                    {{#if (eq i 0)}}\n                      {{t 'shared.report-builder.First break down by'}}…\n                    {{else}}\n                      …{{t 'shared.report-builder.and then by'}}…\n                    {{/if}}\n                  </label>\n  \n                  <select\n                    class='pdf-export-options__grouping-control'\n                    {{on 'change' (action axis.update value='target.value')}}\n                    disabled={{or\n                      this.saveBreakdownOptions.isRunning\n                      (not this.canManageOrApproveInvoice)\n                    }}\n                  >\n                    {{#each axis.options as |opt|}}\n                      <option value={{opt.key}} selected={{opt.isSelected}}>\n                        {{opt.name}}\n                      </option>\n                    {{/each}}\n                  </select>\n                  <br />\n                {{/each}}\n              </GroupingSelector>\n            </div>\n  \n            {{#if\n              this.sessionData.entity.effectiveProfitMargin.additionalLabourMargin.value\n            }}\n              <div class='ms-1'>\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.Additional margin'\n                  }}\n                  @key='includeTimesheetsProfitMargins'\n                  @model={{this.invoiceBreakdownOptions}}\n                  @description={{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.includeTimesheetsProfitMarginsDescription'\n                  }}\n                  disabled={{or\n                    this.saveBreakdownOptions.isRunning\n                    (not this.canManageOrApproveInvoice)\n                  }}\n                  {{on\n                    'change'\n                    (fn\n                      this.onToggleTimesheetMargin\n                      'includeTimesheetsProfitMargins'\n                      'includeTimesheetsCostMargins'\n                    )\n                  }}\n                />\n              </div>\n            {{/if}}\n  \n            <div class='ms-1'>\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin'\n                }}\n                @key='includeTimesheetsCostMargins'\n                @model={{this.invoiceBreakdownOptions}}\n                @description={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.includeTimesheetsCostMarginsDescription'\n                }}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on\n                  'change'\n                  (fn\n                    this.onToggleTimesheetMargin\n                    'includeTimesheetsCostMargins'\n                    'includeTimesheetsProfitMargins'\n                  )\n                }}\n              />\n            </div>\n  \n            <label class='mb-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Material bills'\n              }}\n            </label>\n            <div class='d-flex align-items-center gap-3 ms-1'>\n              <PtlInput\n                @type='radio'\n                @key='materialsDetail'\n                @id='materialsSection'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Total only'\n                }}\n                @value='TOTAL'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='materialsDetail'\n                @id='materialsBill'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t 'common.Bill'}}\n                @value='BILL'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='materialsDetail'\n                @id='materialsItem'\n                @model={{this.invoiceBreakdownOptions}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Bill item'\n                }}\n                @value='BILL_ITEM'\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @containerClass='mb-1'\n              />\n            </div>\n  \n            <div class='ms-1'>\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin'\n                }}\n                @key='includeMaterialBillsProfitMargins'\n                @model={{this.invoiceBreakdownOptions}}\n                @description={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription'\n                }}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n              />\n            </div>\n  \n            <label class='mb-1'>\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Subcontractor bills'\n              }}\n            </label>\n            <div class='d-flex align-items-center gap-3 ms-1'>\n              <PtlInput\n                @type='radio'\n                @key='subcontractorsDetail'\n                @id='subcontractorsSection'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Total only'\n                }}\n                @value='TOTAL'\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='subcontractorsDetail'\n                @id='subcontractorsBill'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t 'common.Bill'}}\n                @value='BILL'\n                @containerClass='mb-1'\n              />\n              <PtlInput\n                @type='radio'\n                @key='subcontractorsDetail'\n                @id='subcontractorsItem'\n                @model={{this.invoiceBreakdownOptions}}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' (perform this.getInvoiceBreakdownHtml)}}\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Bill item'\n                }}\n                @value='BILL_ITEM'\n                @containerClass='mb-1'\n              />\n            </div>\n  \n            <div class='ms-1'>\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin'\n                }}\n                @key='includeSubcontractorBillsProfitMargins'\n                @model={{this.invoiceBreakdownOptions}}\n                @description={{t\n                  'entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription'\n                }}\n                disabled={{or\n                  this.saveBreakdownOptions.isRunning\n                  (not this.canManageOrApproveInvoice)\n                }}\n                {{on 'change' this.onChangeBreakdownOptionCheckbox}}\n              />\n            </div>\n  \n          </div>\n  \n          <div class='d-flex flex-column p-3'>\n            <div class='mb-2 d-flex align-items-center'>\n              <h5 class='mb-0'>{{t 'common.Preview'}}</h5>\n              {{#if this.invoiceItems.length}}\n                <span class='badge bg-success ms-2'>{{t 'common.LIVE'}}</span>\n                <span class='text-muted small ms-2'>\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.layoutMayDifferSlightlyFromPDFVersion'\n                  }}\n                </span>\n              {{/if}}\n            </div>\n  \n            {{#if this.invoiceItems.length}}\n              <iframe\n                title='Live preview'\n                srcdoc={{this.getInvoiceBreakdownHtml.lastSuccessful.value}}\n                class='flex-grow-1 p-3 rounded border invoice__break-down-options-modal-document-width'\n              ></iframe>\n            {{else}}\n              <div\n                class='flex-grow-1 d-flex align-items-center justify-content-center'\n              >\n                <p class='text-muted'>\n                  {{t\n                    'entity.builda-price.operations.outgoing.invoices.invoice.noInvoiceItemInBreakdown'\n                  }}\n                </p>\n              </div>\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.showConfigureBreakdownOptionsModal) false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        {{#if this.canManageOrApproveInvoice}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            disabled={{or\n              this.saveBreakdownOptions.isRunning\n              this.saveBreakdownOptionsAsCompanyDefault.isRunning\n            }}\n            {{on 'click' (perform this.saveBreakdownOptions)}}\n          >\n            {{#if this.saveBreakdownOptions.isRunning}}\n              <span class='spinner-border spinner-border-sm'></span>\n              &nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{t\n                'entity.builda-price.operations.outgoing.invoices.invoice.Save options'\n              }}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"2vCrElAB\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Invoice\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.outgoing.invoices.index\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\",\\\"typeLabel\\\"]]],[1,\\\" \\\"],[1,[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\",\\\"invoiceNumber\\\"]]],[1,\\\"\\\\n        \\\"],[10,1],[15,0,[29,[\\\"badge ms-1 fs-7\\\\n            \\\",[52,[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],\\\"bg-success\\\"],\\\"\\\\n            \\\",[52,[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-secondary\\\"],\\\"\\\\n            \\\",[52,[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n            \\\",[52,[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"APPROVED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n            \\\"]]],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"invoice\\\",\\\"statusLabel\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,12],[[24,0,\\\"btn btn-link p-0 m-1\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[\\\"entity.builda-price.reports.company.notes\\\",[28,[37,13],null,[[\\\"invoiceId\\\"],[[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]]]]],[[\\\"default\\\"],[[[[1,\\\"View timesheet notes\\\\n        \\\"],[8,[39,14],[[24,0,\\\"ms-1\\\"]],[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline m-1\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"showConfigureBreakdownOptionsModalDialog\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Breakdown options\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]],1],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"relatedDocuments\\\"]],\\\"0.action\\\"],null],[28,[37,18],[[30,0,[\\\"relatedDocuments\\\"]],\\\"0.id\\\"],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,18],[[30,0,[\\\"relatedDocuments\\\"]],\\\"0.label\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,19],[[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]],1],null],[[[1,\\\"        \\\"],[8,[39,20],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]]],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Related documents\\\"],null]],[1,\\\"  \\\\n            \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"relatedDocuments\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,2,[\\\"action\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,2,[\\\"label\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceItems\\\",\\\"length\\\"]],[[[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[41,[28,[37,23],[[28,[37,24],[[28,[37,11],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"xero\\\"],null],[30,0,[\\\"invoice\\\",\\\"xeroInvoiceId\\\"]]],null],[28,[37,24],[[28,[37,11],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"quickbooks\\\"],null],[30,0,[\\\"invoice\\\",\\\"quickbooksInvoiceId\\\"]]],null]],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"viewInAccountingPackage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"viewInAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"viewInAccountingPackage\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Sending\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.viewInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n                \\\"],[8,[39,14],[[24,0,\\\"ms-1\\\"]],[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\"]],[28,[37,25],[[30,0,[\\\"invoiceActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white m-1\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isActionsRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Syncing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,24],[[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\"]],[30,0,[\\\"invoiceActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"m-1 d-flex\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary rounded-0 rounded-start text-white\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]],[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"syncToAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isActionsRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[30,0,[\\\"invoiceActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,20],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[28,[37,23],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary rounded-0 rounded-end text-white\\\"],[15,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isActionsRunning\\\"]]],null]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"invoiceActions\\\",\\\"secondaryActions\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,4,[\\\"action\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,4,[\\\"action\\\"]],[30,4,[\\\"targetStatus\\\"]],[30,4,[\\\"syncToAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"action\\\",\\\"isRunning\\\"]],[[[1,\\\"                      \\\"],[1,[28,[35,4],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]],null]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseFileStorage\\\"]],[[[1,\\\"        \\\"],[8,[39,27],null,[[\\\"@buttonClass\\\",\\\"@attachments\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@onDownloadAttachment\\\",\\\"@onDeleteAttachment\\\",\\\"@isDragAndDropVisible\\\"],[\\\"btn btn-secondary text-white m-1\\\",[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\",\\\"myAttachments\\\"]],[30,0,[\\\"model\\\",\\\"invoice\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"attachmentsUploadComplete\\\"]],[30,0,[\\\"downloadAttachment\\\"]],[30,0,[\\\"deleteAttachment\\\"]],[30,0,[\\\"canManageFileStorage\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,20],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,5,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDownloadingInvoice\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"setDownloadInvoice\\\"]],\\\"pdf\\\"],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloadingInvoice\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDownloadingInvoice\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"setDownloadInvoice\\\"]],\\\"csv\\\"],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloadingInvoice\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDownloadingInvoice\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"setDownloadInvoice\\\"]],\\\"excel\\\"],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloadingInvoice\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as Excel\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[5]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,29],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex flex-column border rounded mb-4\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"pt-3 px-3 flex-grow-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 p-0\\\"],[12],[1,[28,[35,4],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"ms-auto btn btn-sm btn-primary\\\\n            \\\",[52,[30,0,[\\\"invoiceChangeSet\\\",\\\"isInvalid\\\"]],\\\"invoice__edit-button--warning\\\"]]]],[16,1,[30,0,[\\\"invoiceEditButtonId\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isEditingInvoice\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Edit\\\"],null]],[1,\\\" \\\\n          \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"edit\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"row m-0\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col flex-column d-flex p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Invoice number\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"invoice\\\",\\\"invoiceNumber\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col flex-column d-flex p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Contact\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,34],[\\\"canUseSuppliers\\\"],null],[[[41,[30,0,[\\\"invoice\\\",\\\"toContact\\\",\\\"name\\\"]],[[[1,\\\"                \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"btn btn-link p-0\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"goToSupplier\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"invoice\\\",\\\"toContact\\\",\\\"name\\\"]]],[1,\\\" \\\\n                  \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                —\\\\n\\\"]],[]]]],[]],[[[1,\\\"              \\\"],[1,[30,0,[\\\"invoice\\\",\\\"toContact\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col flex-column d-flex p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Issue date\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,35],[[30,0,[\\\"invoice\\\",\\\"issueDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col flex-column d-flex p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Due date\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoice\\\",\\\"dueDate\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,35],[[30,0,[\\\"invoice\\\",\\\"dueDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              —\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"mb-2 d-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canEdit\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,25],[[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"deleteInvoiceItems\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Delete items\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canAddItems\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteInvoiceItems\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"addInvoiceItem\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"invoice__invoice-items-table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,36],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@hidePagination\\\",\\\"@class\\\",\\\"@validationMessage\\\"],[[30,0,[\\\"itemTableHeader\\\"]],[30,0,[\\\"itemTableData\\\"]],[28,[37,4],[\\\"common.No items\\\"],null],[30,0,[\\\"model\\\",\\\"invoiceItems\\\",\\\"isRunning\\\"]],true,[29,[\\\"table-bordered\\\\n          \\\",[52,[30,0,[\\\"invoiceTotalError\\\"]],\\\"invoice__invoice-items-table--invalid\\\"]]],[30,0,[\\\"invoiceTotalError\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"invoice__footer mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageOrApproveInvoice\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-between mt-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[28,[37,11],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],[28,[37,37],[[30,0,[\\\"invoice\\\",\\\"invoiceType\\\"]],\\\"CREDIT_NOTE\\\"],null],[28,[37,25],[[30,0,[\\\"relatedDocuments\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isCreatingCreditNote\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Create credit note\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,37],[[30,0,[\\\"status\\\"]],\\\"COMPLETED\\\"],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isDeletingInvoice\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Delete invoice\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]],null]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"totalFooter\\\"]],[[[41,[30,0,[\\\"totalFooter\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"my-2 text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Subtotal\\\"],null]],[1,\\\":\\\\n                  \\\"],[1,[30,0,[\\\"totalFooter\\\",\\\"subtotal\\\"]]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Tax\\\"],null]],[1,\\\":\\\\n                  \\\"],[1,[30,0,[\\\"totalFooter\\\",\\\"tax\\\"]]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[1,\\\":\\\\n                  \\\"],[1,[30,0,[\\\"totalFooter\\\",\\\"total\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeletingInvoice\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isDeletingInvoice\\\"]]],null],false],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[11,0],[24,0,\\\"modal-content\\\"],[4,[38,39],[[28,[37,17],[[30,0,[\\\"validateInvoiceSafeToDelete\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"validateInvoiceSafeToDelete\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,29],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"validateInvoiceSafeToDelete\\\",\\\"last\\\",\\\"value\\\"]]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"alert alert-warning pb-0 pt-0\\\"],[12],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,40],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoiceCalculationDependencyWarning\\\"],null]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.deleteInvoicePrompt\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"onDeleteInvoice\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onDeleteInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isDeletingInvoice\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isCreatingCreditNote\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isCreatingCreditNote\\\"]]],null],false],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.createCreditNoteConfirmMessage\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"createCreditNote\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isCreatingCreditNote\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"createCreditNote\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"createCreditNote\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createCreditNote\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Creating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRevertCompletedToDraftInvoice\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isRevertCompletedToDraftInvoice\\\"]]],null],false],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.revertDraftInvoicePrompt\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"changeStatus\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"isRevertCompletedToDraftInvoice\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"changeStatus\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"changeStatus\\\"]],\\\"DRAFT\\\",false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"changeStatus\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Reverting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Revert\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditingInvoice\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[30,0,[\\\"closeInvoiceEditModal\\\"]],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-content\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Invoice number\\\"],null],\\\"invoiceNumber\\\",true,[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,19],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Contact\\\"],null]],[1,\\\"\\\\n            \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,44],null,[[\\\"@onSelect\\\",\\\"@onLoad\\\",\\\"@noDataMessage\\\",\\\"@noDataRoute\\\",\\\"@showNoDataRouteWithResults\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[[30,0,[\\\"setToContact\\\"]],[30,0,[\\\"loadContacts\\\"]],[28,[37,4],[\\\"common.Create a contact\\\"],null],\\\"entity.settings.contacts.contact\\\",true,\\\"toContact\\\",[28,[37,45],[\\\"name\\\"],null],[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,19],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null],[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[30,0,[\\\"invoiceChangeSet\\\",\\\"toContact\\\"]],[28,[37,34],[\\\"canUseSuppliers\\\"],null]],null],[[[1,\\\"            \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"form-text link me-auto\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"goToSupplier\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.See details\\\"],null]],[1,\\\" \\\\n              \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,4],[\\\"common.Issue date\\\"],null],\\\"issueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,19],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,4],[\\\"common.Due date\\\"],null],\\\"dueDate\\\",[30,0,[\\\"invoiceChangeSet\\\"]],[28,[37,19],[[30,0,[\\\"saveInvoice\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"closeInvoiceEditModal\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Close\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canEdit\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveInvoice\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveInvoice\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"currentInvoiceItem\\\"]],[[[1,\\\"  \\\"],[8,[39,46],null,[[\\\"@headerText\\\",\\\"@item\\\",\\\"@onClose\\\",\\\"@onSave\\\",\\\"@onDelete\\\",\\\"@editDisabled\\\",\\\"@allocationDisabled\\\"],[[30,0,[\\\"invoiceItemEditorHeader\\\"]],[30,0,[\\\"currentInvoiceItem\\\"]],[30,0,[\\\"closeInvoiceItemEditor\\\"]],[30,0,[\\\"saveInvoiceItem\\\"]],[30,0,[\\\"deleteInvoiceItem\\\"]],[28,[37,25],[[30,0,[\\\"canEdit\\\"]]],null],[28,[37,25],[[30,0,[\\\"canAllocate\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadInvoice\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"downloadInvoice\\\"]]],null],null],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.reportExportOptionDescription\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"exportOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,47],[[24,0,\\\"form-check-input\\\"],[16,3,[30,6,[\\\"name\\\"]]],[16,1,[30,7]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,6,[\\\"value\\\"]]]],null],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,7]],[12],[1,[30,6,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[6,7]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"downloadInvoice\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isDownloadingInvoice\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"downloadInvoice\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloadingInvoice\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showConfigureBreakdownOptionsModal\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"showConfigureBreakdownOptionsModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Breakdown options\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body p-0 d-flex align-items-stretch justify-content-center invoice__break-down-options-modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"initInvoiceBreakdown\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,29],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"overflow-auto p-3 border-right\\\"],[14,5,\\\"min-width: 380px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[30,0,[\\\"canManageOrApproveInvoice\\\"]],[30,0,[\\\"hasCompanyBreakdownOptionChanges\\\"]]],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline ps-0 mb-2\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Save as company default?\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"blur\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Additional notes\\\"],null],\\\"breakdownNotes\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"form-check mb-2\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Include billable\\\"],null],\\\"includeBillable\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeBillableDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"form-check mb-2\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Include previously invoiced\\\"],null],\\\"includeInvoiced\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeInvoicedDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.First group by\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeFirstGroupBy\\\"]]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"firstGroupBy\\\",\\\"groupByTask\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Task\\\"],null],\\\"TASK\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeFirstGroupBy\\\"]]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"firstGroupBy\\\",\\\"groupByAllocationType\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Allocation type\\\"],null],\\\"ALLOCATION_TYPE\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Labour bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin\\\"],null],\\\"includeLabourBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Timesheets\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ms-1 mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,48],null,[[\\\"@groups\\\",\\\"@value\\\",\\\"@onChange\\\"],[[30,0,[\\\"timesheetGroupingOptions\\\"]],[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]],[28,[37,49],[[28,[37,28],[[28,[37,31],[[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]]],null]],null],[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,8,[\\\"axes\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"label\\\"],[14,0,\\\"pdf-export-options__grouping-label\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,10],0],null],[[[1,\\\"                    \\\"],[1,[28,[35,4],[\\\"shared.report-builder.First break down by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                    …\\\"],[1,[28,[35,4],[\\\"shared.report-builder.and then by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[11,\\\"select\\\"],[24,0,\\\"pdf-export-options__grouping-control\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,51],[[30,0],[30,9,[\\\"update\\\"]]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,9,[\\\"options\\\"]]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"option\\\"],[15,2,[30,11,[\\\"key\\\"]]],[15,\\\"selected\\\",[30,11,[\\\"isSelected\\\"]]],[12],[1,\\\"\\\\n                      \\\"],[1,[30,11,[\\\"name\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[9,10]],null],[1,\\\"            \\\"]],[8]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"additionalLabourMargin\\\",\\\"value\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,28],[[30,0,[\\\"onToggleTimesheetMargin\\\"]],\\\"includeTimesheetsProfitMargins\\\",\\\"includeTimesheetsCostMargins\\\"],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Additional margin\\\"],null],\\\"includeTimesheetsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeTimesheetsProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,28],[[30,0,[\\\"onToggleTimesheetMargin\\\"]],\\\"includeTimesheetsCostMargins\\\",\\\"includeTimesheetsProfitMargins\\\"],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin\\\"],null],\\\"includeTimesheetsCostMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeTimesheetsCostMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Material bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin\\\"],null],\\\"includeMaterialBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Subcontractor bills\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[28,[37,17],[[30,0,[\\\"getInvoiceBreakdownHtml\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,41],[[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[28,[37,25],[[30,0,[\\\"canManageOrApproveInvoice\\\"]]],null]],null]],[4,[38,16],[\\\"change\\\",[30,0,[\\\"onChangeBreakdownOptionCheckbox\\\"]]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Show cost margin\\\"],null],\\\"includeSubcontractorBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-column p-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h5\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,4],[\\\"common.Preview\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceItems\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"badge bg-success ms-2\\\"],[12],[1,[28,[35,4],[\\\"common.LIVE\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"text-muted small ms-2\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.layoutMayDifferSlightlyFromPDFVersion\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invoiceItems\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[10,\\\"iframe\\\"],[14,\\\"title\\\",\\\"Live preview\\\"],[15,\\\"srcdoc\\\",[30,0,[\\\"getInvoiceBreakdownHtml\\\",\\\"lastSuccessful\\\",\\\"value\\\"]]],[14,0,\\\"flex-grow-1 p-3 rounded border invoice__break-down-options-modal-document-width\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-grow-1 d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n              \\\"],[10,2],[14,0,\\\"text-muted\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.noInvoiceItemInBreakdown\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,28],[[28,[37,31],[[30,0,[\\\"showConfigureBreakdownOptionsModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageOrApproveInvoice\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,23],[[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveBreakdownOptionsAsCompanyDefault\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveBreakdownOptions\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.invoices.invoice.Save options\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"document\\\",\\\"po\\\",\\\"action\\\",\\\"po\\\",\\\"option\\\",\\\"index\\\",\\\"gs\\\",\\\"axis\\\",\\\"i\\\",\\\"opt\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"span\\\",\\\"if\\\",\\\"eq\\\",\\\"link-to\\\",\\\"hash\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"get\\\",\\\"gt\\\",\\\"pop-over\\\",\\\"each\\\",\\\"-track-array\\\",\\\"or\\\",\\\"and\\\",\\\"not\\\",\\\"div\\\",\\\"attachment-dropdown-list\\\",\\\"fn\\\",\\\"loading-icon\\\",\\\"h4\\\",\\\"mut\\\",\\\"h5\\\",\\\"p\\\",\\\"includes-feature-flags\\\",\\\"moment-format\\\",\\\"pagination-table\\\",\\\"not-eq\\\",\\\"modal-dialog\\\",\\\"did-insert\\\",\\\"html-safe\\\",\\\"ptl-input\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"invoice-item-editor-modal\\\",\\\"input\\\",\\\"grouping-selector\\\",\\\"pipe\\\",\\\"select\\\",\\\"action\\\",\\\"option\\\",\\\"br\\\",\\\"iframe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/invoices/invoice.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/payroll-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"3GK8+Z7x\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/payroll-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/payroll\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Payroll')}}\n    />\n  {{/unless}}\n  <article class='m-4 payroll-page-wrapper'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <div class='float-end'>\n  \n          <PopOver class='float-end' @direction='bottom-left' as |po|>\n            <button type='button' class='btn btn-secondary text-white'>\n              {{t 'common.Export'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (fn this.exportAsCSV false)}}\n                data-test-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                {{on 'click' (fn this.exportAsExcel false)}}\n                data-test-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                  {{on 'click' (fn this.exportAsKeypay false)}}\n                  data-test-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                  {{on 'click' (fn this.exportAsSmartPayrollCSV false)}}\n                  data-test-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                  {{on 'click' (fn this.exportAsCrystalCSV false)}}\n                  data-test-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                  {{on 'click' (fn this.exportForXero false)}}\n                  data-test-exportForXero=''\n                  disabled={{this.isSyncingToXero}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.payroll.Export to Xero'\n                  }}\n                </button>\n              {{/if}}\n  \n              {{#if this.quickbooks.ready}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (fn this.exportForQuickbooks false)}}\n                  data-test-exportForQuickbooks=''\n                  disabled={{this.isSyncingToQuickbooks}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.payroll.Export to QuickBooks'\n                  }}\n                </button>\n              {{/if}}\n            </po.Content>\n          </PopOver>\n        </div>\n        <h1 class='h1'>{{t 'common.Payroll'}}</h1>\n      </header>\n  \n      <div class='payroll-controls'>\n        <div class='payroll-controls__element'>\n          <label class='payroll-controls__label'>{{t\n              'common.Date range'\n            }}:</label>\n          <DateRangeSelector\n            @align='left'\n            @startDate={{this.jsStartDate}}\n            @endDate={{this.jsEndDate}}\n            @onApply={{this.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              {{on 'click' (fn this.shiftDays -7)}}\n            >◀</button>\n            {{t 'common.Shift Week'}}\n            <button\n              class='text-button'\n              data-test-button-forwardShift=''\n              type='button'\n              {{on 'click' (fn this.shiftDays 7)}}\n            >▶</button>\n          </div>\n        </div>\n  \n        <div class='payroll-controls__element'>\n          <label class='payroll-controls__label'>{{t\n              'common.Filter by worker'\n            }}:</label>\n          <SelectInput\n            @value={{this.selectedWorker}}\n            @action={{fn (mut this.selectedWorker)}}\n            @class='select-box payroll-controls__input'\n            data-test-worker-filter\n            as |si|\n          >\n            <si.option @value={{null}}>{{t\n                'shared.timesheet.Select a worker'\n              }}…</si.option>\n            {{#each this.activeWorkers as |worker|}}\n              <si.option @value={{worker}}>{{worker.fullName}}</si.option>\n            {{/each}}\n          </SelectInput>\n          {{#if this.selectedWorker}}\n            <button\n              class='text-button'\n              type='button'\n              {{on 'click' (fn (mut this.selectedWorker) null)}}\n            >\n              <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n            </button>\n          {{/if}}\n        </div>\n      </div>\n    {{else}}\n  \n      <div class='payroll-controls'>\n        <div class='payroll-controls__element'>\n          <label class='payroll-controls__label'>{{t\n              'common.Start date'\n            }}:</label>\n          <PtlInput\n            @type='date'\n            @containerClass='mb-0'\n            @key='startDate'\n            @model={{this}}\n            class='payroll-controls__input'\n          />\n  \n          <label class='payroll-controls__label'>{{t 'common.End date'}}:</label>\n          <PtlInput\n            @type='date'\n            @containerClass='mb-0'\n            @key='endDate'\n            @model={{this}}\n            class='payroll-controls__input'\n          />\n        </div>\n  \n        <div class='payroll-controls__element'>\n          <label class='payroll-controls__label'>{{t\n              'common.Filter by project'\n            }}:</label>\n          <SelectInput\n            @value={{this.selectedProject}}\n            @action={{fn (mut this.selectedProject)}}\n            @class='select-box payroll-controls__input'\n            as |si|\n          >\n            <si.option @value={{null}}>{{t\n                'common.No project selected'\n              }}&hellip;</si.option>\n            {{#each this.model.projects as |project|}}\n              <si.option @value={{project}}>{{project.name}}</si.option>\n            {{/each}}\n          </SelectInput>\n          {{#if this.selectedProject}}\n            <button\n              class='text-button payroll-controls__label'\n              type='button'\n              {{on 'click' (fn (mut this.selectedProject) null)}}\n            >\n              <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n            </button>\n          {{/if}}\n        </div>\n      </div>\n    {{/if}}\n  \n    {{#if this.unacceptedStatusesMessage}}\n      <span class='placeholder-text payroll-controls__error-placeholder'>\n        <FaIcon\n          @icon='info-circle'\n        />&nbsp;{{this.unacceptedStatusesMessage}}&nbsp;<LinkTo\n          @route='entity.builda-price.operations.incoming.timesheets'\n          data-test-click-seeTimesheets\n          class='link d-inline'\n        >{{t 'common.See timesheets'}}</LinkTo>\n      </span>\n    {{/if}}\n    {{#if this.report.length}}\n      <table class='data-table payroll-table'>\n        <thead>\n          <tr>\n            <th>{{t 'common.Worker'}}</th>\n            {{#if (includes-feature-flags 'canManagePayroll')}}\n              <th>{{if\n                  this.isChargeOut\n                  (t 'common.Charge-out rate')\n                  (t 'common.Pay rate')\n                }}</th>\n            {{/if}}\n            <th>{{t 'common.Hours'}}</th>\n            {{#if (includes-feature-flags 'canManagePayroll')}}\n              <th>{{if\n                  this.isChargeOut\n                  (t 'entity.builda-price.operations.outgoing.payroll.Charge out')\n                  (t 'entity.builda-price.operations.outgoing.payroll.Pay')\n                }}</th>\n            {{/if}}\n            <th>{{t 'common.Project'}}</th>\n            <th>{{t 'common.Task'}}</th>\n            {{#if (media 'isDesktop')}}\n              {{#each this.reportDays as |day|}}\n                <th\n                  class={{if\n                    (or\n                      (eq (moment-format day 'd') '6')\n                      (eq (moment-format day 'd') '0')\n                    )\n                    'payroll-table__cell--weekend'\n                  }}\n                >\n                  {{moment-format day 'ddd'}}\n                  <br />\n                  {{moment-format day (t 'date.dayMonthAbbr')}}\n                </th>\n              {{/each}}\n            {{/if}}\n          </tr>\n        </thead>\n        <tbody>\n          {{#each this.report as |row index|}}\n            <tr\n              class='{{if row.worker \"payroll-table__worker-total-row\"}}\n                {{if row.project \"payroll-table__job-total-row\"}}\n                '\n            >\n              <td\n                class='payroll-table__large-cell'\n                data-test-workerName=''\n              >{{row.worker.fullName}}</td>\n              {{#if (includes-feature-flags 'canManagePayroll')}}\n                <td\n                  class='payroll-table__alert-cell\n                    {{if\n                      (and (eq index 0) (not row.worker.isNotFocused))\n                      \" payroll-table__alert-cell--popup-visible\"\n                    }}'\n                >\n                  {{#if (and this.isChargeOut row.worker)}}\n                    <span {{on 'click' (fn (mut row.worker.isNotFocused) true)}}>\n                      <FormattedInput\n                        @placeholder={{number-format\n                          row.worker.chargeOutRate\n                          style='currency'\n                          dashZero=true\n                        }}\n                        @update={{fn (mut row.worker.currentChargeOutRate)}}\n                        @number={{row.worker.currentChargeOutRate}}\n                        @format='currency'\n                        @class={{concat\n                          'data-table__cell-cover text-input'\n                          (unless\n                            row.worker.isNotFocused ' payroll-table__alert-input'\n                          )\n                        }}\n                      />\n                    </span>\n                    <span class='float-end'>\n                      <InfoPopup\n                        @iconName='question-circle'\n                        @text={{t\n                          'entity.builda-price.operations.outgoing.payroll.overrideWorkersChargeOutRateInfo'\n                        }}\n                      />\n                    </span>\n                  {{else}}\n                    {{row.worker.payRate}}\n                  {{/if}}\n                </td>\n              {{/if}}\n              <td>{{format-duration row.totalHours}}</td>\n              {{#if (includes-feature-flags 'canManagePayroll')}}\n                <td>\n                  {{number-format\n                    (if this.isChargeOut row.totalChargeOut row.totalPay)\n                    maximumFractionDigits=2\n                    dashZero=true\n                  }}\n                </td>\n              {{/if}}\n              <td class='payroll-table__small-cell'>{{row.project.name}}</td>\n              <td class='payroll-table__small-cell'>\n                {{#if row.taskBreadcrumbs}}\n                  <LabelPopup @text={{row.taskBreadcrumbs}}>\n                    {{row.task.name}}\n                  </LabelPopup>\n                {{else}}\n                  {{row.task.name}}\n                {{/if}}\n              </td>\n              {{#if (media 'isDesktop')}}\n                {{#each row.dayTotals as |dayTotal|}}\n                  <td\n                    class='{{unless\n                        (or\n                          (not dayTotal.status)\n                          (not dayTotal.totalHours)\n                          (eq dayTotal.status.status \"accepted\")\n                        )\n                        \"payroll-table__not-accepted-cell\"\n                      }}'\n                  >\n                    {{format-duration dayTotal.totalHours}}\n                  </td>\n                {{/each}}\n              {{/if}}\n            </tr>\n          {{/each}}\n        </tbody>\n      </table>\n  \n      {{#if this.payRateClashNote}}\n        <span class='placeholder-text'>\n          <FaIcon @icon='info-circle' />&nbsp;{{this.payRateClashNote}}\n        </span>\n      {{/if}}\n    {{else}}\n      <span class='placeholder-text'>\n        {{t\n          'entity.builda-price.operations.outgoing.payroll.thereAreNoTimesheetsForTheCurrentlySelectedPeriodOrWorker'\n        }}\n      </span>\n    {{/if}}\n  </article>\n  \n  {{#if this.xeroTimesheetsResponseData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.xeroTimesheetsResponseData) null}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <h4>{{this.xeroTimesheetsResponseData.message}}</h4>\n  \n      <div style='max-height: 400px; overflow-y: auto;'>\n        {{#each this.xeroTimesheetsResponseData.workerSummaries as |summary|}}\n          <p>\n            {{#if summary.failures.length}}\n              <FaIcon\n                @icon='exclamation-circle'\n                class='xero-timesheet-sync__status xero-timesheet-sync__status--warning'\n              />\n            {{else}}\n              <FaIcon\n                @icon='check-circle'\n                class='xero-timesheet-sync__status xero-timesheet-sync__status--success'\n              />\n            {{/if}}\n  \n            {{summary.worker.fullName}}\n  \n            {{#unless summary.failures.length}}\n              —\n              {{t\n                'entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySyncedWithNoErrors'\n                number=summary.success.length\n              }}\n            {{/unless}}\n  \n            {{#if summary.failures.length}}\n              <ul>\n                <li>\n                  {{t\n                    'entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySynced'\n                    number=summary.success.length\n                  }}\n                </li>\n                {{#each summary.failures as |failure|}}\n                  <li>\n                    {{failure.message}}\n                  </li>\n                {{/each}}\n              </ul>\n            {{/if}}\n          </p>\n        {{/each}}\n      </div>\n  \n      <footer class='block-module__footer'>\n        <button\n          class='float-end button'\n          type='button'\n          {{on 'click' (fn (mut this.xeroTimesheetsResponseData) null)}}\n        >\n          {{t 'common.Okay'}}\n        </button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.quickbooksTimesheetsResponseData}}\n    <ModalDialog\n      @onClose={{fn (mut this.quickbooksTimesheetsResponseData) null}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <h4>{{this.quickbooksTimesheetsResponseData.message}}</h4>\n  \n      <div style='max-height: 400px; overflow-y: auto;'>\n        {{#each\n          this.quickbooksTimesheetsResponseData.workerSummaries\n          as |summary|\n        }}\n          <p>\n            {{#if summary.failures.length}}\n              <FaIcon\n                @icon='exclamation-circle'\n                class='xero-timesheet-sync__status xero-timesheet-sync__status--warning'\n              />\n            {{else}}\n              <FaIcon\n                @icon='check-circle'\n                class='xero-timesheet-sync__status xero-timesheet-sync__status--success'\n              />\n            {{/if}}\n  \n            {{summary.worker.fullName}}\n  \n            {{#unless summary.failures.length}}\n              —\n              {{t\n                'entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySyncedWithNoErrors'\n                number=summary.success.length\n              }}\n            {{/unless}}\n  \n            {{#if summary.failures.length}}\n              <ul>\n                <li>\n                  {{t\n                    'entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySynced'\n                    number=summary.success.length\n                  }}\n                </li>\n                {{#each summary.failures as |failure|}}\n                  <li>\n                    {{failure.message}}\n                  </li>\n                {{/each}}\n              </ul>\n            {{/if}}\n          </p>\n        {{/each}}\n      </div>\n  \n      <footer class='block-module__footer'>\n        <button\n          class='pull-right button'\n          type='button'\n          {{on 'click' (fn (mut this.quickbooksTimesheetsResponseData) null)}}\n        >\n          {{t 'common.Okay'}}\n        </button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.confirmExportActionName}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n      @onClose={{this.cancelConfirmExport}}\n    >\n      <p data-test-confirm-export-message>{{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          {{on 'click' this.confirmExport}}\n          data-test-confirm-export-accept=''\n        >{{t\n            'entity.builda-price.operations.outgoing.payroll.Accept and export'\n          }}</button>\n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{on 'click' this.confirmExportSkipLocking}}\n          data-test-confirm-export-anyway=''\n        >\n          {{t 'entity.builda-price.operations.outgoing.payroll.Export anyway'}}\n        </button>\n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{on 'click' this.cancelConfirmExport}}\n          data-test-confirm-export-cancel=''\n        >{{t 'common.Cancel'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"56o7bXWH\",\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\\\"],[24,\\\"data-test-exportAsCSV\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"exportAsCSV\\\"]],false],null]],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\\\"],[24,\\\"data-test-exportAsExcel\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"exportAsExcel\\\"]],false],null]],null],[12],[1,\\\"\\\\n              Excel\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,14],[\\\"canManagePayroll\\\",\\\"entityCanUseKeypay\\\"],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-exportAsKeypay\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"exportAsKeypay\\\"]],false],null]],null],[12],[1,\\\"\\\\n                Keypay CSV\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[28,[37,14],[\\\"canManagePayroll\\\"],null],[28,[37,14],[\\\"entityCanUseSmartPayroll\\\"],null]],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-exportAsSmartPayrollCSV\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"exportAsSmartPayrollCSV\\\"]],false],null]],null],[12],[1,\\\"\\\\n                Smartly CSV\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[28,[37,14],[\\\"canManagePayroll\\\"],null],[28,[37,14],[\\\"entityCanUseCrystalPayroll\\\"],null]],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-exportAsCrystalCSV\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"exportAsCrystalCSV\\\"]],false],null]],null],[12],[1,\\\"\\\\n                Crystal CSV\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[28,[37,14],[\\\"canUseXeroIntegration\\\"],null],[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]]],null],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-exportForXero\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToXero\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"exportForXero\\\"]],false],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.Export to Xero\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-exportForQuickbooks\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSyncingToQuickbooks\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"exportForQuickbooks\\\"]],false],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.Export to QuickBooks\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,[28,[35,4],[\\\"common.Payroll\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"payroll-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"payroll-controls__element\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"payroll-controls__label\\\"],[12],[1,[28,[35,4],[\\\"common.Date range\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,18],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"left\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],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],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"shiftDays\\\"]],-7],null]],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],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"shiftDays\\\"]],7],null]],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,19],[[24,\\\"data-test-worker-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"selectedWorker\\\"]],[28,[37,13],[[28,[37,20],[[30,0,[\\\"selectedWorker\\\"]]],null]],null],\\\"select-box payroll-controls__input\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[null]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"shared.timesheet.Select a worker\\\"],null]],[1,\\\"…\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"activeWorkers\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,2,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,3]]],[[\\\"default\\\"],[[[[1,[30,3,[\\\"fullName\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"        \\\"]],[2]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedWorker\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[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,23],[[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,23],[[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,19],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"selectedProject\\\"]],[28,[37,13],[[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,12],[\\\"click\\\",[28,[37,13],[[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,25],[[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,14],[\\\"canManagePayroll\\\"],null],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[12],[1,[52,[30,0,[\\\"isChargeOut\\\"]],[28,[37,4],[\\\"common.Charge-out rate\\\"],null],[28,[37,4],[\\\"common.Pay rate\\\"],null]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Hours\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[\\\"canManagePayroll\\\"],null],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[12],[1,[52,[30,0,[\\\"isChargeOut\\\"]],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.payroll.Charge out\\\"],null],[28,[37,4],[\\\"entity.builda-price.operations.outgoing.payroll.Pay\\\"],null]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Project\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Task\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"reportDays\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[15,0,[52,[28,[37,30],[[28,[37,31],[[28,[37,32],[[30,6],\\\"d\\\"],null],\\\"6\\\"],null],[28,[37,31],[[28,[37,32],[[30,6],\\\"d\\\"],null],\\\"0\\\"],null]],null],\\\"payroll-table__cell--weekend\\\"]],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,32],[[30,6],\\\"ddd\\\"],null]],[1,\\\"\\\\n                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[1,[28,[35,32],[[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,14],[\\\"canManagePayroll\\\"],null],[[[1,\\\"              \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"payroll-table__alert-cell\\\\n                  \\\",[52,[28,[37,15],[[28,[37,31],[[30,8],0],null],[28,[37,36],[[30,7,[\\\"worker\\\",\\\"isNotFocused\\\"]]],null]],null],\\\" payroll-table__alert-cell--popup-visible\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"isChargeOut\\\"]],[30,7,[\\\"worker\\\"]]],null],[[[1,\\\"                  \\\"],[11,1],[4,[38,12],[\\\"click\\\",[28,[37,13],[[28,[37,20],[[30,7,[\\\"worker\\\",\\\"isNotFocused\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,37],null,[[\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@class\\\"],[[28,[37,38],[[30,7,[\\\"worker\\\",\\\"chargeOutRate\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]],[28,[37,13],[[28,[37,20],[[30,7,[\\\"worker\\\",\\\"currentChargeOutRate\\\"]]],null]],null],[30,7,[\\\"worker\\\",\\\"currentChargeOutRate\\\"]],\\\"currency\\\",[28,[37,39],[\\\"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,40],null,[[\\\"@iconName\\\",\\\"@text\\\"],[\\\"question-circle\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.payroll.overrideWorkersChargeOutRateInfo\\\"],null]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[30,7,[\\\"worker\\\",\\\"payRate\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"td\\\"],[12],[1,[28,[35,41],[[30,7,[\\\"totalHours\\\"]]],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[\\\"canManagePayroll\\\"],null],[[[1,\\\"              \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,38],[[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,42],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,30],[[28,[37,36],[[30,9,[\\\"status\\\"]]],null],[28,[37,36],[[30,9,[\\\"totalHours\\\"]]],null],[28,[37,31],[[30,9,[\\\"status\\\",\\\"status\\\"]],\\\"accepted\\\"],null]],null]],\\\"payroll-table__not-accepted-cell\\\"]]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,41],[[30,9,[\\\"totalHours\\\"]]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[7,8]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"payRateClashNote\\\"]],[[[1,\\\"      \\\"],[10,1],[14,0,\\\"placeholder-text\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[1,\\\" \\\"],[1,[30,0,[\\\"payRateClashNote\\\"]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"    \\\"],[10,1],[14,0,\\\"placeholder-text\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.thereAreNoTimesheetsForTheCurrentlySelectedPeriodOrWorker\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"xeroTimesheetsResponseData\\\"]],[[[1,\\\"  \\\"],[8,[39,43],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,13],[[28,[37,20],[[30,0,[\\\"xeroTimesheetsResponseData\\\"]]],null],null],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"h4\\\"],[12],[1,[30,0,[\\\"xeroTimesheetsResponseData\\\",\\\"message\\\"]]],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,5,\\\"max-height: 400px; overflow-y: auto;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"xeroTimesheetsResponseData\\\",\\\"workerSummaries\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,2],[12],[1,\\\"\\\\n\\\"],[41,[30,10,[\\\"failures\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,11],[[24,0,\\\"xero-timesheet-sync__status xero-timesheet-sync__status--warning\\\"]],[[\\\"@icon\\\"],[\\\"exclamation-circle\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,11],[[24,0,\\\"xero-timesheet-sync__status xero-timesheet-sync__status--success\\\"]],[[\\\"@icon\\\"],[\\\"check-circle\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n          \\\"],[1,[30,10,[\\\"worker\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,10,[\\\"failures\\\",\\\"length\\\"]]],[[[1,\\\"            —\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySyncedWithNoErrors\\\"],[[\\\"number\\\"],[[30,10,[\\\"success\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,10,[\\\"failures\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySynced\\\"],[[\\\"number\\\"],[[30,10,[\\\"success\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,10,[\\\"failures\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,11,[\\\"message\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[11]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[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,43],null,[[\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[[28,[37,13],[[28,[37,20],[[30,0,[\\\"quickbooksTimesheetsResponseData\\\"]]],null],null],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"h4\\\"],[12],[1,[30,0,[\\\"quickbooksTimesheetsResponseData\\\",\\\"message\\\"]]],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,5,\\\"max-height: 400px; overflow-y: auto;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"quickbooksTimesheetsResponseData\\\",\\\"workerSummaries\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,2],[12],[1,\\\"\\\\n\\\"],[41,[30,12,[\\\"failures\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,11],[[24,0,\\\"xero-timesheet-sync__status xero-timesheet-sync__status--warning\\\"]],[[\\\"@icon\\\"],[\\\"exclamation-circle\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,11],[[24,0,\\\"xero-timesheet-sync__status xero-timesheet-sync__status--success\\\"]],[[\\\"@icon\\\"],[\\\"check-circle\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n          \\\"],[1,[30,12,[\\\"worker\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,12,[\\\"failures\\\",\\\"length\\\"]]],[[[1,\\\"            —\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySyncedWithNoErrors\\\"],[[\\\"number\\\"],[[30,12,[\\\"success\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,12,[\\\"failures\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.xDaysTimesheetsSuccessfullySynced\\\"],[[\\\"number\\\"],[[30,12,[\\\"success\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,12,[\\\"failures\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,13,[\\\"message\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[13]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[12]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"pull-right button\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[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,43],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[30,0,[\\\"cancelConfirmExport\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[14,\\\"data-test-confirm-export-message\\\",\\\"\\\"],[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,\\\"data-test-confirm-export-accept\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"confirmExport\\\"]]],null],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.Accept and export\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,\\\"data-test-confirm-export-anyway\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"confirmExportSkipLocking\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.payroll.Export anyway\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,\\\"data-test-confirm-export-cancel\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"cancelConfirmExport\\\"]]],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\\\",\\\"on\\\",\\\"fn\\\",\\\"includes-feature-flags\\\",\\\"and\\\",\\\"h1\\\",\\\"label\\\",\\\"date-range-selector\\\",\\\"select-input\\\",\\\"mut\\\",\\\"each\\\",\\\"-track-array\\\",\\\"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\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/payroll.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/purchase-orders/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Purchase orders'}}</h2>\n        {{/if}}\n        {{#if (includes-feature-flags 'canManagePurchaseOrders')}}\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            {{on 'click' this.openNewPOForm}}\n            disabled={{this.isLoading}}\n            data-test-add-new-purchase-order\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;\n            {{t 'common.New'}}\n          </button>\n        {{/if}}\n      </header>\n  \n      <div class='d-flex align-items-center mb-3 flex-column flex-md-row-reverse'>\n        <span class='m-1'>\n          <Input\n            class='form-control'\n            placeholder={{t 'common.Search'}}\n            aria-label='Search…'\n            @type='search'\n            @value={{this.searchString}}\n            disabled={{this.isLoading}}\n            {{on 'input' (perform this.onChangeSearchTerm)}}\n            autofocus={{true}}\n            data-test-purchase-order-search\n          />\n        </span>\n        <div class='d-flex align-items-center'>\n          <PageFilters::Pill>\n            {{t 'common.Date range'}}:\n            {{moment-format this.startDate (t 'date.shortSlashDmy')}}\n            {{t 'common.to'}}\n            {{moment-format this.endDate (t 'date.shortSlashDmy')}}\n          </PageFilters::Pill>\n          {{#if (not-eq this.status 'ALL')}}\n            <PageFilters::Pill @onClose={{fn (mut this.status) 'ALL'}}>\n              {{t 'common.Status'}}:\n              {{#if (eq this.status 'DRAFT')}}\n                {{t 'common.Draft'}}\n              {{else if (eq this.status 'AWAITING_APPROVAL')}}\n                {{t 'common.Awaiting approval'}}\n              {{else if (eq this.status 'SENT')}}\n                {{t 'common.Sent'}}\n              {{else if (eq this.status 'APPROVED')}}\n                {{t 'common.Approved'}}\n              {{/if}}\n            </PageFilters::Pill>\n          {{/if}}\n          <PageFilters class='m-1' @align='right' @disable={{this.isLoading}}>\n            <PageFilters::Item @label={{t 'common.Date range'}}>\n              <DateRangeSelector\n                @align='right'\n                @startDate={{this.jsStartDate}}\n                @endDate={{this.jsEndDate}}\n                @onApply={{this.setDateRange}}\n                @maxRange={{31}}\n              />\n            </PageFilters::Item>\n  \n            <PageFilters::Item @label={{t 'common.Status'}}>\n              <SelectInput\n                class='select-box'\n                @action={{fn (mut this.status)}}\n                @value={{this.status}}\n                as |si|\n              >\n                <si.option @value='ALL'>{{t 'common.All'}}</si.option>\n                <si.option @value='DRAFT'>{{t 'common.Draft'}}</si.option>\n                <si.option @value='AWAITING_APPROVAL'>{{t\n                    'common.Awaiting approval'\n                  }}</si.option>\n                <si.option @value='APPROVED'>{{t 'common.Approved'}}</si.option>\n                <si.option @value='SENT'>{{t 'common.Sent'}}</si.option>\n              </SelectInput>\n            </PageFilters::Item>\n          </PageFilters>\n        </div>\n      </div>\n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        {{#if this.model.purchaseOrders.last.value.length}}\n          {{#if (media 'isDesktop')}}\n            <div class='px-3'>\n              <div class='row'>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'purchaseOrderNumber')}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.purchase-orders.PO Number'\n                  }}\n                  {{#if this.purchaseOrderNumberIconName}}\n                    <FaIcon @icon={{this.purchaseOrderNumberIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'supplier.name')}}\n                >\n                  {{t 'common.Supplier'}}\n                  {{#if this.supplierIconName}}\n                    <FaIcon @icon={{this.supplierIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'dateOrderPlaced')}}\n                >\n                  {{t 'shared.purchase-order.Order submitted date'}}\n                  {{#if this.dateOrderPlacedIconName}}\n                    <FaIcon @icon={{this.dateOrderPlacedIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-2 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'dateCreated')}}\n                >\n                  {{t 'common.Created date'}}\n                  {{#if this.dateCreatedIconName}}\n                    <FaIcon @icon={{this.dateCreatedIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-1 fw-bold'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'deliveryStatus')}}\n                >\n                  {{t\n                    'entity.builda-price.operations.outgoing.purchase-orders.Delivery status'\n                  }}\n                  {{#if this.deliveryStatusIconName}}\n                    <FaIcon @icon={{this.deliveryStatusIconName}} />\n                  {{/if}}\n                </div>\n                <div\n                  class='col-1 fw-bold text-center'\n                  role='button'\n                  {{on 'click' (fn this.sortColumn 'status')}}\n                >\n                  {{t 'common.Status'}}\n                  {{#if this.statusIconName}}\n                    <FaIcon @icon={{this.statusIconName}} />\n                  {{/if}}\n                </div>\n                <div class='col-1 fw-bold text-center'>{{t 'common.Total'}}</div>\n                <div class='col-1 fw-bold'></div>\n              </div>\n            </div>\n          {{/if}}\n          <LazyEach\n            @items={{this.filteredPurchaseOrders}}\n            @automatic={{true}}\n            @initialNumberOfItemsVisible='30'\n            @increment='10'\n            @itemDisplayName='purchase orders'\n            as |purchaseOrder identifier|\n          >\n            <div class='{{identifier}} py-2'>\n              <LinkTo\n                @route='entity.builda-price.operations.outgoing.purchase-orders.purchase-order'\n                @model={{purchaseOrder.id}}\n                class='project-card__card card shadow-sm text-dark p-3'\n                role='button'\n                data-test-project={{purchaseOrder.id}}\n              >\n                <div class='row align-items-center'>\n                  <div\n                    class='col project-card__project-name fs-2'\n                    data-test-project-card-name\n                  >\n                    {{purchaseOrder.purchaseOrderNumber}}\n                  </div>\n  \n                  {{#if (media 'isDesktop')}}\n                    <div class='col-2 fs-5'>\n                      {{#if purchaseOrder.supplier.name}}\n                        {{purchaseOrder.supplier.name}}\n                      {{else}}\n                        —\n                      {{/if}}\n                    </div>\n  \n                    <div class='col-2 fs-5'>\n                      {{#if purchaseOrder.dateOrderPlaced}}\n                        {{moment-format\n                          purchaseOrder.dateOrderPlaced\n                          (t 'date.shortWithWeekday')\n                        }}\n                      {{else}}\n                        —\n                      {{/if}}\n                    </div>\n  \n                    <div class='col-2 fs-5'>\n                      {{#if purchaseOrder.dateCreated}}\n                        {{moment-format\n                          purchaseOrder.dateCreated\n                          (t 'date.shortWithWeekday')\n                        }}\n                      {{else}}\n                        —\n                      {{/if}}\n                    </div>\n                    <div class='col-1'>\n                      {{#if purchaseOrder.deliveryStatus}}\n                        {{purchaseOrder.deliveryStatusLabel}}\n                      {{else}}\n                        —\n                      {{/if}}\n                    </div>\n                  {{/if}}\n                  <div class='col-lg-1 col-3 d-flex justify-content-center'>\n                    <span\n                      class='badge rounded-pill fs-6 px-3 py-2\n                        {{if\n                          (or\n                            (eq purchaseOrder.status \"SENT\")\n                            (eq purchaseOrder.status \"APPROVED\")\n                          )\n                          \"bg-success\"\n                        }}\n                        {{if\n                          (eq purchaseOrder.status \"DRAFT\")\n                          \"bg-warning text-dark\"\n                        }}\n                        {{if\n                          (eq purchaseOrder.status \"AWAITING_APPROVAL\")\n                          \"bg-info\"\n                        }}\n                        {{if (eq purchaseOrder.status \"SENT\") \"bg-primary\"}}\n                        '\n                    >\n                      {{purchaseOrder.statusLabel}}\n                    </span>\n                  </div>\n                  <div class='col-lg-1 col fs-5 text-center'>\n                    {{number-format\n                      purchaseOrder.totalPrice\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n  \n                  <div\n                    class='col-1 d-flex align-items-center justify-content-end'\n                  >\n                    <FaIcon @icon='chevron-right' class='fs-2' />\n                  </div>\n                </div>\n              </LinkTo>\n            </div>\n          </LazyEach>\n        {{else}}\n          <div class='error-page error-page--no-data'>\n            <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n            <h3 class='h3 error-page__title'>{{t\n                'shared.purchase-order.No purchase orders'\n              }}</h3>\n          </div>\n        {{/if}}\n      {{/if}}\n  \n    </article>\n  {{/if}}\n  \n  {{#if this.purchaseOrderChangeSet}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.onClose}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <form data-test-new-purchase-order-form>\n          <PtlInput\n            @type='text'\n            @required={{true}}\n            @label={{t 'shared.purchase-order.Purchase order number'}}\n            @key='purchaseOrderNumber'\n            @model={{this.purchaseOrderChangeSet}}\n            placeholder={{this.nextPurchaseOrderNumber}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n          <div class='mb-3'>\n            <label class='mb-1'>{{t 'common.Supplier'}}\n              <sup class='text-danger'>*</sup>\n            </label>\n            <SearchSelector\n              @noDataMessage={{t 'common.No suppliers'}}\n              @key='supplier'\n              @optionKeys={{array 'name'}}\n              @model={{this.purchaseOrderChangeSet}}\n              @forceValidationVisible={{gt\n                this.onSavePurchaseOrder.performCount\n                0\n              }}\n              @onSelect={{this.setSupplier}}\n              @onLoad={{this.loadSuppliers}}\n            />\n          </div>\n          <NewComboBox\n            @isLoading={{false}}\n            @list={{this.addressList}}\n            @noDataMessage={{t 'shared.purchase-order.No project address'}}\n            @onSelect={{this.setAddress}}\n            @onSearch={{this.onSearchAddress}}\n            @label={{t 'common.Address'}}\n            @key='address'\n            @model={{this.purchaseOrderChangeSet}}\n            @hasNextPage={{false}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </form>\n      </div>\n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            data-test-new-purchase-order-close-button\n            disabled={{this.onSavePurchaseOrder.isRunning}}\n            {{on 'click' this.onClose}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.onSavePurchaseOrder.isRunning}}\n            {{on\n              'click'\n              (perform this.onSavePurchaseOrder this.purchaseOrderChangeSet)\n            }}\n          >\n            {{#if this.onSavePurchaseOrder.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Creating'}}…\n            {{else}}\n              {{t 'common.Create'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"3Or77OZf\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,6],[\\\"common.Purchase orders\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,7],[\\\"canManagePurchaseOrders\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"data-test-add-new-purchase-order\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"openNewPOForm\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\\n          \\\"],[1,[28,[35,6],[\\\"common.New\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3 flex-column flex-md-row-reverse\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,13],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"aria-label\\\",\\\"Search…\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[16,\\\"autofocus\\\",true],[24,\\\"data-test-purchase-order-search\\\",\\\"\\\"],[4,[38,9],[\\\"input\\\",[28,[37,14],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"search\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Date range\\\"],null]],[1,\\\":\\\\n          \\\"],[1,[28,[35,16],[[30,0,[\\\"startDate\\\"]],[28,[37,6],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.to\\\"],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,16],[[30,0,[\\\"endDate\\\"]],[28,[37,6],[\\\"date.shortSlashDmy\\\"],null]],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[30,0,[\\\"status\\\"]],\\\"ALL\\\"],null],[[[1,\\\"          \\\"],[8,[39,15],null,[[\\\"@onClose\\\"],[[28,[37,18],[[28,[37,19],[[30,0,[\\\"status\\\"]]],null],\\\"ALL\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[1,\\\":\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"status\\\"]],\\\"DRAFT\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Draft\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,20],[[30,0,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Awaiting approval\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,20],[[30,0,[\\\"status\\\"]],\\\"SENT\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Sent\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,20],[[30,0,[\\\"status\\\"]],\\\"APPROVED\\\"],null],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Approved\\\"],null]],[1,\\\"\\\\n            \\\"]],[]],null]],[]]]],[]]]],[]]],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,21],[[24,0,\\\"m-1\\\"]],[[\\\"@align\\\",\\\"@disable\\\"],[\\\"right\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Date range\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,23],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\",\\\"@maxRange\\\"],[\\\"right\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]],31]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,22],null,[[\\\"@label\\\"],[[28,[37,6],[\\\"common.Status\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,24],[[24,0,\\\"select-box\\\"]],[[\\\"@action\\\",\\\"@value\\\"],[[28,[37,18],[[28,[37,19],[[30,0,[\\\"status\\\"]]],null]],null],[30,0,[\\\"status\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Draft\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"AWAITING_APPROVAL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Awaiting approval\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"APPROVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Approved\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"SENT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Sent\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[1]]]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"purchaseOrders\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]],[[[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"purchaseOrderNumber\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.purchase-orders.PO Number\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"purchaseOrderNumberIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"purchaseOrderNumberIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"supplier.name\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Supplier\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplierIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"supplierIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"dateOrderPlaced\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"shared.purchase-order.Order submitted date\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"dateOrderPlacedIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"dateOrderPlacedIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-2 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"dateCreated\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Created date\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"dateCreatedIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"dateCreatedIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-1 fw-bold\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"deliveryStatus\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"entity.builda-price.operations.outgoing.purchase-orders.Delivery status\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deliveryStatusIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"deliveryStatusIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,0],[24,0,\\\"col-1 fw-bold text-center\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"sortColumn\\\"]],\\\"status\\\"],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"statusIconName\\\"]],[[[1,\\\"                  \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[[30,0,[\\\"statusIconName\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-1 fw-bold text-center\\\"],[12],[1,[28,[35,6],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-1 fw-bold\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,25],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\"],[[30,0,[\\\"filteredPurchaseOrders\\\"]],true,\\\"30\\\",\\\"10\\\",\\\"purchase orders\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[15,0,[29,[[30,3],\\\" py-2\\\"]]],[12],[1,\\\"\\\\n            \\\"],[8,[39,26],[[24,0,\\\"project-card__card card shadow-sm text-dark p-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-test-project\\\",[30,2,[\\\"id\\\"]]]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order\\\",[30,2,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col project-card__project-name fs-2\\\"],[14,\\\"data-test-project-card-name\\\",\\\"\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,2,[\\\"purchaseOrderNumber\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"supplier\\\",\\\"name\\\"]],[[[1,\\\"                      \\\"],[1,[30,2,[\\\"supplier\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      —\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\\n                  \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"dateOrderPlaced\\\"]],[[[1,\\\"                      \\\"],[1,[28,[35,16],[[30,2,[\\\"dateOrderPlaced\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      —\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\\n                  \\\"],[10,0],[14,0,\\\"col-2 fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"dateCreated\\\"]],[[[1,\\\"                      \\\"],[1,[28,[35,16],[[30,2,[\\\"dateCreated\\\"]],[28,[37,6],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      —\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"deliveryStatus\\\"]],[[[1,\\\"                      \\\"],[1,[30,2,[\\\"deliveryStatusLabel\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                      —\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[10,0],[14,0,\\\"col-lg-1 col-3 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,1],[15,0,[29,[\\\"badge rounded-pill fs-6 px-3 py-2\\\\n                      \\\",[52,[28,[37,27],[[28,[37,20],[[30,2,[\\\"status\\\"]],\\\"SENT\\\"],null],[28,[37,20],[[30,2,[\\\"status\\\"]],\\\"APPROVED\\\"],null]],null],\\\"bg-success\\\"],\\\"\\\\n                      \\\",[52,[28,[37,20],[[30,2,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n                      \\\",[52,[28,[37,20],[[30,2,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],\\\"bg-info\\\"],\\\"\\\\n                      \\\",[52,[28,[37,20],[[30,2,[\\\"status\\\"]],\\\"SENT\\\"],null],\\\"bg-primary\\\"],\\\"\\\\n                      \\\"]]],[12],[1,\\\"\\\\n                    \\\"],[1,[30,2,[\\\"statusLabel\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-lg-1 col fs-5 text-center\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,28],[[30,2,[\\\"totalPrice\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"col-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,10],[[24,0,\\\"fs-2\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[2,3]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,10],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,6],[\\\"shared.purchase-order.No purchase orders\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"purchaseOrderChangeSet\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"onClose\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"form\\\"],[14,\\\"data-test-new-purchase-order-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,32],[[16,\\\"placeholder\\\",[30,0,[\\\"nextPurchaseOrderNumber\\\"]]]],[[\\\"@type\\\",\\\"@required\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",true,[28,[37,6],[\\\"shared.purchase-order.Purchase order number\\\"],null],\\\"purchaseOrderNumber\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,33],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,6],[\\\"common.Supplier\\\"],null]],[1,\\\"\\\\n            \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,36],null,[[\\\"@noDataMessage\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onSelect\\\",\\\"@onLoad\\\"],[[28,[37,6],[\\\"common.No suppliers\\\"],null],\\\"supplier\\\",[28,[37,37],[\\\"name\\\"],null],[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,33],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"setSupplier\\\"]],[30,0,[\\\"loadSuppliers\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,38],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@forceValidationVisible\\\"],[false,[30,0,[\\\"addressList\\\"]],[28,[37,6],[\\\"shared.purchase-order.No project address\\\"],null],[30,0,[\\\"setAddress\\\"]],[30,0,[\\\"onSearchAddress\\\"]],[28,[37,6],[\\\"common.Address\\\"],null],\\\"address\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],false,[28,[37,33],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-purchase-order-close-button\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"onClose\\\"]]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"onSavePurchaseOrder\\\"]],[30,0,[\\\"purchaseOrderChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Creating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"purchaseOrder\\\",\\\"identifier\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"article\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"perform\\\",\\\"page-filters/pill\\\",\\\"moment-format\\\",\\\"not-eq\\\",\\\"fn\\\",\\\"mut\\\",\\\"eq\\\",\\\"page-filters\\\",\\\"page-filters/item\\\",\\\"date-range-selector\\\",\\\"select-input\\\",\\\"lazy-each\\\",\\\"link-to\\\",\\\"or\\\",\\\"number-format\\\",\\\"h3\\\",\\\"modal-dialog\\\",\\\"form\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"label\\\",\\\"sup\\\",\\\"search-selector\\\",\\\"array\\\",\\\"new-combo-box\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/purchase-orders/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/purchase-orders/purchase-order\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Purchase order')\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.outgoing.purchase-orders.index'\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4'>\n    <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n  \n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n        <h2 class='flex-grow-1 m-0 my-2 d-flex align-items-center'>\n          {{this.model.purchaseOrder.last.value.supplier.name}}\n  \n          <span\n            class='badge fs-7 m-1\n              {{if\n                (or (eq this.status \"SENT\") (eq this.status \"APPROVED\"))\n                \"bg-success\"\n              }}\n              {{if (eq this.status \"DRAFT\") \"bg-warning text-dark\"}}\n              {{if (eq this.status \"AWAITING_APPROVAL\") \"bg-info\"}}\n              '\n          >\n            {{this.purchaseOrder.statusLabel}}\n          </span>\n  \n          {{#if this.model.purchaseOrder.last.value.dateOrderPlaced}}\n            <div class='badge bg-secondary fs-7 m-1'>\n              {{t 'shared.purchase-order.Order submitted date'}}:\n              {{moment-format\n                this.model.purchaseOrder.last.value.dateOrderPlaced\n                (t 'date.longWithoutWeekday')\n              }}\n            </div>\n          {{/if}}\n        </h2>\n  \n        {{#if\n          (and\n            this.poActions.primaryAction\n            (not this.poActions.secondaryActions.length)\n          )\n        }}\n          <button\n            type='button'\n            class='btn btn-primary text-white m-1'\n            disabled={{this.isActionsRunning}}\n            {{on\n              'click'\n              (perform\n                this.poActions.primaryAction.action\n                this.poActions.primaryAction.targetStatus\n              )\n            }}\n          >\n            {{#if this.isActionsRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Loading'}}&hellip;\n            {{else}}\n              {{this.poActions.primaryAction.name}}\n            {{/if}}\n          </button>\n        {{else if\n          (and\n            this.poActions.primaryAction this.poActions.secondaryActions.length\n          )\n        }}\n          <div class='m-1 d-flex'>\n            <DropdownButton\n              @buttonText={{if\n                this.isActionsRunning\n                (t 'common.Loading')\n                this.poActions.primaryAction.name\n              }}\n              @onPrimaryClick={{(perform\n                this.poActions.primaryAction.action\n                this.poActions.primaryAction.targetStatus\n              )}}\n              @disabled={{this.isActionsRunning}}\n            >\n              {{#each this.poActions.secondaryActions as |action|}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform action.action action.targetStatus)}}\n                  disabled={{action.action.isRunning}}\n                >\n                  {{#if action.action.isRunning}}\n                    {{t 'common.Updating'}}&hellip;\n                  {{else}}\n                    {{action.name}}\n                  {{/if}}\n                </button>\n              {{/each}}\n            </DropdownButton>\n          </div>\n        {{/if}}\n  \n        {{#if this.canUseFileStorage}}\n          <AttachmentDropdownList\n            @buttonClass='btn btn-secondary text-white m-1'\n            @attachments={{this.model.purchaseOrder.last.value.myAttachments}}\n            @parent={{this.model.purchaseOrder.last.value}}\n            @onUploadComplete={{this.attachmentsUploadComplete}}\n            @onDownloadAttachment={{this.downloadAttachment}}\n            @onDeleteAttachment={{this.deleteAttachment}}\n            @isDragAndDropVisible={{this.canManageFileStorage}}\n          />\n        {{/if}}\n  \n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv)}}\n              disabled={{this.downloadAsCsv.isRunning}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as CSV'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsExcel)}}\n              disabled={{this.downloadAsExcel.isRunning}}\n            >\n              {{#if this.downloadAsExcel.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as Excel'}}\n              {{/if}}\n            </button>\n          </po.Content>\n        </PopOver>\n  \n      </header>\n  \n      <div class='row mt-2'>\n        <div class='col-md-3 col-12'>\n          <PtlInput\n            @type='text'\n            @label={{t 'shared.purchase-order.Purchase order number'}}\n            @key='purchaseOrderNumber'\n            @required={{true}}\n            @model={{this.purchaseOrderChangeSet}}\n            disabled={{not this.isEditable}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </div>\n        <div class='col-md-3 col-12'>\n          <PtlInput\n            @type='date'\n            @label={{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery requested date'\n            }}\n            @key='requestedDeliveryDate'\n            @model={{this.purchaseOrderChangeSet}}\n            disabled={{not this.isEditable}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </div>\n        <div class='col-md-3 col-12'>\n          <NewComboBox\n            @isLoading={{false}}\n            @list={{this.addressList}}\n            @noDataMessage={{t 'shared.purchase-order.No project address'}}\n            @onSelect={{this.setAddress}}\n            @onSearch={{this.onSearchAddress}}\n            @label={{t 'common.Address'}}\n            @key='address'\n            @model={{this.purchaseOrderChangeSet}}\n            @hasNextPage={{false}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n            @disabled={{not this.isEditable}}\n          />\n        </div>\n        <div class='col-md-3 col-12'>\n          <PtlInput\n            @type='currency'\n            @label={{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Freight charges'\n            }}\n            @key='freightCharges'\n            @model={{this.purchaseOrderChangeSet}}\n            disabled={{not this.isEditable}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </div>\n      </div>\n      <div class='row'>\n        <div class='col-md-3 col-12'>\n          <PtlInput\n            @type='textarea'\n            @label={{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery note'\n            }}\n            @key='deliveryNote'\n            rows='3'\n            style='max-height:111.5px'\n            @model={{this.purchaseOrderChangeSet}}\n            disabled={{not this.isEditable}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </div>\n        <div class='col-md-3 col-12'>\n          <PtlInput\n            @type='textarea'\n            @label={{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Order note'\n            }}\n            @key='orderNote'\n            rows='3'\n            style='max-height:111.5px'\n            @model={{this.purchaseOrderChangeSet}}\n            disabled={{not this.isEditable}}\n            @forceValidationVisible={{gt this.onSavePurchaseOrder.performCount 0}}\n          />\n        </div>\n      </div>\n      <div class='mb-2 d-flex justify-content-end align-items-center'>\n        {{#if this.isEditable}}\n          <div class='flex-grow-1'>\n            <button\n              class='btn btn-link text-danger text-decoration-underline float-start'\n              type='button'\n              {{on 'click' (perform this.deleteProducts)}}\n              disabled={{not this.selectedItemIndexes.size}}\n            >\n              {{t\n                'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delete products'\n              }}\n            </button>\n          </div>\n          {{#if this.showUpdatePriceButton}}\n            <button\n              class='btn btn btn-primary m-1'\n              type='button'\n              {{on 'click' (perform this.updateProductPrices)}}\n              disabled={{not this.selectedItemIndexes.size}}\n            >\n              {{#if this.updateProductPrices.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;Updating&hellip;\n              {{else}}\n                {{t\n                  'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Update prices'\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n          {{#if (eq this.purchaseOrder.status 'SENT')}}\n            <button\n              class='btn btn-primary'\n              type='button'\n              {{on 'click' (perform this.updateDeliveryStatus)}}\n              disabled={{or\n                (not this.selectedItemIndexes.size)\n                this.updateDeliveryStatus.Running\n              }}\n            >\n              {{#if this.updateDeliveryStatus.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Updating'}}&hellip;\n              {{else}}\n                {{t\n                  'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Mark as delivered'\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n          {{#if this.canAddProducts}}\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap m-1'\n              disabled={{or\n                this.deleteProducts.isRunning\n                this.updateProductPrices.isRunning\n              }}\n              {{on 'click' (fn (mut this.isAddingProducts) true)}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n            </button>\n          {{/if}}\n        {{/if}}\n      </div>\n      <div class='purchase-order__purchase-order-items-table-container'>\n        <PaginationTable\n          @tableHeader={{this.productTableHeader}}\n          @tableData={{this.productTableData}}\n          @noDataText={{t 'common.No data'}}\n          @isLoading={{this.model.products.isRunning}}\n          @hidePagination={{true}}\n          @class='table-bordered'\n        />\n      </div>\n      <div class='purchase-order__footer mt-3'>\n        {{#if this.totalPriceFooter}}\n          <div class='d-flex justify-content-end align-items-center my-2'>\n            <span>{{t 'common.Total'}}: {{this.totalPriceFooter}}</span>\n          </div>\n        {{/if}}\n        {{#if this.isEditable}}\n          <div class='d-flex align-items-center justify-content-between mt-1'>\n            <button\n              type='button'\n              class='btn btn-link text-danger text-decoration-underline'\n              disabled={{or\n                this.onSavePurchaseOrder.isRunning\n                this.onDeletePurchaseOrder.isRunning\n              }}\n              {{on 'click' (fn (mut this.isDeletingPurchaseOrder) true)}}\n            >\n              {{t\n                'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delete purchase order'\n              }}\n            </button>\n            <button\n              type='button'\n              class='btn btn-primary'\n              disabled={{this.onSavePurchaseOrder.isRunning}}\n              {{on 'click' (perform this.onSavePurchaseOrder)}}\n            >\n              {{#if this.onSavePurchaseOrder.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/if}}\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.isAddingProducts}}\n    <PurchaseOrderItemSelector\n      @onClose={{fn (mut this.isAddingProducts) false}}\n      @projects={{this.canManagePurchaseOrderProjects}}\n      @onSavePurchaseOrderItems={{this.onSavePurchaseOrderItems}}\n      @purchaseOrder={{this.model.purchaseOrder.last.value}}\n      @purchaseOrderItems={{this.purchaseOrderItems}}\n    />\n  {{/if}}\n  \n  {{#if this.isDeletingPurchaseOrder}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingPurchaseOrder) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <p data-test-project-settings-delete-dialog>\n        {{t\n          'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.areYouSureYouWantToDeleteThisPurchaseOrder'\n        }}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.onDeletePurchaseOrder.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Deleting'}}&hellip;\n            </button>\n          {{else}}\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.onDeletePurchaseOrder.isRunning}}\n              {{on 'click' (perform this.onDeletePurchaseOrder)}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.onDeletePurchaseOrder.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingPurchaseOrder) false)}}\n            >{{t 'common.Cancel'}}</button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isApproveAndSendEmail}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isSendEmail) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        {{#unless this.supplierContactDetailsExists}}\n          <div\n            class='alert alert-warning d-flex flex-row align-items-center justify-content-center'\n            role='alert'\n          >\n            {{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Supplier contact information is missing'\n            }}\n            <LinkTo\n              @route='entity.settings.contacts.contact'\n              @model={{this.model.purchaseOrder.last.value.supplier.id}}\n              class='btn btn-outline-primary btn-sm ms-2'\n            >{{t 'common.Update details'}}</LinkTo>\n          </div>\n        {{/unless}}\n        <div class='form-check'>\n          <label for='includeAllAttachments' class='form-check-label'>\n            <input\n              type='checkbox'\n              id='includeAllAttachments'\n              class='form-check-input'\n              disabled={{this.approveAndSend.isRunning}}\n              checked={{this.includeAllAttachmentsInSubmissionEmail}}\n              {{on\n                'click'\n                (fn this.toggleProperty 'includeAllAttachmentsInSubmissionEmail')\n              }}\n            />\n            {{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.includeAllAttachmentsInSubmissionEmail'\n            }}\n          </label>\n        </div>\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.approveAndSend.isRunning}}\n            {{on 'click' (fn (mut this.isApproveAndSendEmail) false)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{or\n              this.approveAndSend.isRunning\n              (not this.supplierContactDetailsExists)\n            }}\n            {{on\n              'click'\n              (perform this.approveAndSend this.purchaseOrderChangeSet)\n            }}\n          >\n            {{#if this.approveAndSend.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Approving'}}&hellip;\n            {{else}}\n              {{t 'common.approveSend'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isSendEmail}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isSendEmail) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        {{#unless this.supplierContactDetailsExists}}\n          <div\n            class='alert alert-warning d-flex flex-row align-items-center justify-content-center'\n            role='alert'\n          >\n            {{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Supplier contact information is missing'\n            }}\n            <LinkTo\n              @route='entity.settings.contacts.contact'\n              @model={{this.model.purchaseOrder.last.value.supplier.id}}\n              class='btn btn-outline-primary btn-sm ms-2'\n            >{{t 'common.Update details'}}</LinkTo>\n          </div>\n        {{/unless}}\n        <div class='form-check'>\n          <label for='includeAllAttachments' class='form-check-label'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              disabled={{this.send.isRunning}}\n              checked={{this.includeAllAttachmentsInSubmissionEmail}}\n              {{on\n                'click'\n                (fn this.toggleProperty 'includeAllAttachmentsInSubmissionEmail')\n              }}\n            />\n            {{t\n              'entity.builda-price.operations.outgoing.purchase-orders.purchase-order.includeAllAttachmentsInSubmissionEmail'\n            }}\n          </label>\n        </div>\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.sendEmail.isRunning}}\n            {{on 'click' (fn (mut this.isSendEmail) false)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{or\n              this.send.isRunning\n              (not this.supplierContactDetailsExists)\n            }}\n            {{on 'click' (perform this.sendEmail this.purchaseOrderChangeSet)}}\n          >\n            {{#if this.sendEmail.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Sending'}}&hellip;\n            {{else}}\n              {{t 'common.Send'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"d/GD+KF0\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Purchase order\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.outgoing.purchase-orders.index\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,8],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"supplier\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[15,0,[29,[\\\"badge fs-7 m-1\\\\n            \\\",[52,[28,[37,12],[[28,[37,13],[[30,0,[\\\"status\\\"]],\\\"SENT\\\"],null],[28,[37,13],[[30,0,[\\\"status\\\"]],\\\"APPROVED\\\"],null]],null],\\\"bg-success\\\"],\\\"\\\\n            \\\",[52,[28,[37,13],[[30,0,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n            \\\",[52,[28,[37,13],[[30,0,[\\\"status\\\"]],\\\"AWAITING_APPROVAL\\\"],null],\\\"bg-info\\\"],\\\"\\\\n            \\\"]]],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"purchaseOrder\\\",\\\"statusLabel\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"dateOrderPlaced\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"badge bg-secondary fs-7 m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"shared.purchase-order.Order submitted date\\\"],null]],[1,\\\":\\\\n            \\\"],[1,[28,[35,15],[[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"dateOrderPlaced\\\"]],[28,[37,4],[\\\"date.longWithoutWeekday\\\"],null]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,16],[[30,0,[\\\"poActions\\\",\\\"primaryAction\\\"]],[28,[37,17],[[30,0,[\\\"poActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null]],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isActionsRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isActionsRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Loading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,0,[\\\"poActions\\\",\\\"primaryAction\\\"]],[30,0,[\\\"poActions\\\",\\\"secondaryActions\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"m-1 d-flex\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,21],null,[[\\\"@buttonText\\\",\\\"@onPrimaryClick\\\",\\\"@disabled\\\"],[[52,[30,0,[\\\"isActionsRunning\\\"]],[28,[37,4],[\\\"common.Loading\\\"],null],[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"name\\\"]]],[28,[37,20],[[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"action\\\"]],[30,0,[\\\"poActions\\\",\\\"primaryAction\\\",\\\"targetStatus\\\"]]],null],[30,0,[\\\"isActionsRunning\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"poActions\\\",\\\"secondaryActions\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,1,[\\\"action\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,1,[\\\"action\\\"]],[30,1,[\\\"targetStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"action\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseFileStorage\\\"]],[[[1,\\\"        \\\"],[8,[39,24],null,[[\\\"@buttonClass\\\",\\\"@attachments\\\",\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@onDownloadAttachment\\\",\\\"@onDeleteAttachment\\\",\\\"@isDragAndDropVisible\\\"],[\\\"btn btn-secondary text-white m-1\\\",[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"myAttachments\\\"]],[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"attachmentsUploadComplete\\\"]],[30,0,[\\\"downloadAttachment\\\"]],[30,0,[\\\"deleteAttachment\\\"]],[30,0,[\\\"canManageFileStorage\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,25],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"downloadAsCsv\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsExcel\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"downloadAsExcel\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsExcel\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.report.Download as Excel\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"row mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"shared.purchase-order.Purchase order number\\\"],null],\\\"purchaseOrderNumber\\\",true,[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery requested date\\\"],null],\\\"requestedDeliveryDate\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,29],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[false,[30,0,[\\\"addressList\\\"]],[28,[37,4],[\\\"shared.purchase-order.No project address\\\"],null],[30,0,[\\\"setAddress\\\"]],[30,0,[\\\"onSearchAddress\\\"]],[28,[37,4],[\\\"common.Address\\\"],null],\\\"address\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],false,[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null],[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Freight charges\\\"],null],\\\"freightCharges\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[24,\\\"rows\\\",\\\"3\\\"],[24,5,\\\"max-height:111.5px\\\"],[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delivery note\\\"],null],\\\"deliveryNote\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"col-md-3 col-12\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[24,\\\"rows\\\",\\\"3\\\"],[24,5,\\\"max-height:111.5px\\\"],[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"isEditable\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Order note\\\"],null],\\\"orderNote\\\",[30,0,[\\\"purchaseOrderChangeSet\\\"]],[28,[37,28],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-2 d-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"deleteProducts\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delete products\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showUpdatePriceButton\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn btn-primary m-1\\\"],[16,\\\"disabled\\\",[28,[37,17],[[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"updateProductPrices\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateProductPrices\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  Updating…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Update prices\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,13],[[30,0,[\\\"purchaseOrder\\\",\\\"status\\\"]],\\\"SENT\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,17],[[30,0,[\\\"selectedItemIndexes\\\",\\\"size\\\"]]],null],[30,0,[\\\"updateDeliveryStatus\\\",\\\"Running\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"updateDeliveryStatus\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateDeliveryStatus\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Mark as delivered\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"canAddProducts\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]],[30,0,[\\\"updateProductPrices\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isAddingProducts\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,26],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"purchase-order__purchase-order-items-table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,32],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@hidePagination\\\",\\\"@class\\\"],[[30,0,[\\\"productTableHeader\\\"]],[30,0,[\\\"productTableData\\\"]],[28,[37,4],[\\\"common.No data\\\"],null],[30,0,[\\\"model\\\",\\\"products\\\",\\\"isRunning\\\"]],true,\\\"table-bordered\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"purchase-order__footer mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"totalPriceFooter\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex justify-content-end align-items-center my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[1,\\\": \\\"],[1,[30,0,[\\\"totalPriceFooter\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-between mt-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]],[30,0,[\\\"onDeletePurchaseOrder\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isDeletingPurchaseOrder\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Delete purchase order\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"onSavePurchaseOrder\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onSavePurchaseOrder\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isAddingProducts\\\"]],[[[1,\\\"  \\\"],[8,[39,33],null,[[\\\"@onClose\\\",\\\"@projects\\\",\\\"@onSavePurchaseOrderItems\\\",\\\"@purchaseOrder\\\",\\\"@purchaseOrderItems\\\"],[[28,[37,30],[[28,[37,31],[[30,0,[\\\"isAddingProducts\\\"]]],null],false],null],[30,0,[\\\"canManagePurchaseOrderProjects\\\"]],[30,0,[\\\"onSavePurchaseOrderItems\\\"]],[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"purchaseOrderItems\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeletingPurchaseOrder\\\"]],[[[1,\\\"  \\\"],[8,[39,34],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isDeletingPurchaseOrder\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[14,\\\"data-test-project-settings-delete-dialog\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.areYouSureYouWantToDeleteThisPurchaseOrder\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onDeletePurchaseOrder\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onDeletePurchaseOrder\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"onDeletePurchaseOrder\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onDeletePurchaseOrder\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isDeletingPurchaseOrder\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isApproveAndSendEmail\\\"]],[[[1,\\\"  \\\"],[8,[39,34],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isSendEmail\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"supplierContactDetailsExists\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"alert alert-warning d-flex flex-row align-items-center justify-content-center\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Supplier contact information is missing\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,37],[[24,0,\\\"btn btn-outline-primary btn-sm ms-2\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.contacts.contact\\\",[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"supplier\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Update details\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"includeAllAttachments\\\"],[14,0,\\\"form-check-label\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,1,\\\"includeAllAttachments\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"approveAndSend\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"includeAllAttachmentsInSubmissionEmail\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[30,0,[\\\"toggleProperty\\\"]],\\\"includeAllAttachmentsInSubmissionEmail\\\"],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.includeAllAttachmentsInSubmissionEmail\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"approveAndSend\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isApproveAndSendEmail\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"approveAndSend\\\",\\\"isRunning\\\"]],[28,[37,17],[[30,0,[\\\"supplierContactDetailsExists\\\"]]],null]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"approveAndSend\\\"]],[30,0,[\\\"purchaseOrderChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"approveAndSend\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Approving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.approveSend\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isSendEmail\\\"]],[[[1,\\\"  \\\"],[8,[39,34],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isSendEmail\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"supplierContactDetailsExists\\\"]]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"alert alert-warning d-flex flex-row align-items-center justify-content-center\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.Supplier contact information is missing\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,37],[[24,0,\\\"btn btn-outline-primary btn-sm ms-2\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.contacts.contact\\\",[30,0,[\\\"model\\\",\\\"purchaseOrder\\\",\\\"last\\\",\\\"value\\\",\\\"supplier\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Update details\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"includeAllAttachments\\\"],[14,0,\\\"form-check-label\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"send\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"includeAllAttachmentsInSubmissionEmail\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[30,0,[\\\"toggleProperty\\\"]],\\\"includeAllAttachmentsInSubmissionEmail\\\"],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.purchase-orders.purchase-order.includeAllAttachmentsInSubmissionEmail\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"sendEmail\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,30],[[28,[37,31],[[30,0,[\\\"isSendEmail\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"send\\\",\\\"isRunning\\\"]],[28,[37,17],[[30,0,[\\\"supplierContactDetailsExists\\\"]]],null]],null]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"sendEmail\\\"]],[30,0,[\\\"purchaseOrderChangeSet\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sendEmail\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Sending\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Send\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"action\\\",\\\"po\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"page-title-breadcrumbs\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"span\\\",\\\"or\\\",\\\"eq\\\",\\\"div\\\",\\\"moment-format\\\",\\\"and\\\",\\\"not\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"dropdown-button\\\",\\\"each\\\",\\\"-track-array\\\",\\\"attachment-dropdown-list\\\",\\\"pop-over\\\",\\\"fa-icon\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"new-combo-box\\\",\\\"fn\\\",\\\"mut\\\",\\\"pagination-table\\\",\\\"purchase-order-item-selector\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"footer\\\",\\\"link-to\\\",\\\"label\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/purchase-orders/purchase-order.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/report-builder/csv\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.operations.outgoing.report-builder.csv.CSV export'\n        )\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.outgoing.report-builder'\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header class='border-bottom mb-3 d-flex'>\n        <h2 class='my-2'>\n          {{t\n            'entity.builda-price.operations.outgoing.report-builder.csv.CSV export'\n          }}\n        </h2>\n  \n        <div class='ms-auto report-builder__sub-header-dropdown'>\n          {{#if this.download.isRunning}}\n            <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Downloading'}}…\n            </button>\n          {{else}}\n            <button\n              type='button'\n              class='btn btn-primary ms-2'\n              {{on 'click' (perform this.download)}}\n            >\n              <FaIcon class='me-1' @icon='download' />\n              {{t 'common.Download'}}\n              CSV\n            </button>\n          {{/if}}\n        </div>\n      </header>\n    {{else}}\n      <div class='mb-3'>\n        {{#if this.download.isRunning}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Downloading'\n            }}…\n          </button>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            {{on 'click' (perform this.download)}}\n          >\n            <FaIcon class='me-1' @icon='download' />\n            {{t 'common.Download'}}\n            CSV\n          </button>\n        {{/if}}\n      </div>\n    {{/if}}\n  \n    <div class='width--large'>\n      <form class='grid-form box'>\n        <section class='box__section'>\n          <div class='box__section-desc'>\n            <h3>{{t 'shared.report-builder.Export options'}}</h3>\n            <p>\n              {{t\n                'shared.report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled'\n              }}\n            </p>\n          </div>\n          <div class='box__section-content'>\n            <p>\n              <label>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.csv.Include attachments on export'\n                }}\n                <Input\n                  @type='checkbox'\n                  @checked={{this.includeAttachmentsOnExport}}\n                />\n              </label>\n            </p>\n            <p>\n              <label>\n                {{t 'shared.report-builder.markSelectedItemsAsReportedOnExport'}}\n                <Input @type='checkbox' @checked={{this.markReportedOnExport}} />\n              </label>\n            </p>\n          </div>\n        </section>\n      </form>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"ZnoymJVg\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.csv.CSV export\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.outgoing.report-builder\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.csv.CSV export\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"ms-auto report-builder__sub-header-dropdown\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"download\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"download\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n            CSV\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"download\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"download\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n          CSV\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"form\\\"],[14,0,\\\"grid-form box\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"box__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-desc\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"shared.report-builder.Export options\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"shared.report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-content\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.csv.Include attachments on export\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,21],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"includeAttachmentsOnExport\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.report-builder.markSelectedItemsAsReportedOnExport\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,21],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"markReportedOnExport\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"button\\\",\\\"span\\\",\\\"on\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"form\\\",\\\"section\\\",\\\"h3\\\",\\\"p\\\",\\\"label\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/report-builder/csv.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/report-builder/excel\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.operations.outgoing.report-builder.excel.Excel export'\n        )\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.outgoing.report-builder'\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header class='border-bottom mb-3 d-flex'>\n        <h2 class='my-2'>\n          {{t\n            'entity.builda-price.operations.outgoing.report-builder.excel.Excel export'\n          }}\n        </h2>\n  \n        <div class='ms-auto report-builder__sub-header-dropdown'>\n          {{#if this.download.isRunning}}\n            <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Downloading'}}…\n            </button>\n          {{else}}\n            <button\n              type='button'\n              class='btn btn-primary ms-2'\n              {{on 'click' (perform this.download)}}\n            >\n              <FaIcon class='me-1' @icon='download' />\n              {{t 'common.Download'}}\n              Excel\n            </button>\n          {{/if}}\n        </div>\n  \n      </header>\n    {{else}}\n      <div class='mb-3'>\n        {{#if this.download.isRunning}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Downloading'\n            }}…\n          </button>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            {{on 'click' (perform this.download)}}\n          >\n            <FaIcon class='me-1' @icon='download' />\n            {{t 'common.Download'}}\n            Excel\n          </button>\n        {{/if}}\n      </div>\n    {{/if}}\n  \n    <div class='width--large'>\n      <form class='grid-form box'>\n        <section class='box__section'>\n          <div class='box__section-desc'>\n            <h3>Export Options</h3>\n            <p>\n              {{t\n                'shared.report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled'\n              }}\n            </p>\n          </div>\n          <div class='box__section-content'>\n            <p>\n              <label>\n                {{t 'shared.report-builder.Include attachments with export'}}\n                <Input\n                  @type='checkbox'\n                  @checked={{this.includeAttachmentsOnExport}}\n                />\n              </label>\n            </p>\n            <p>\n              <label>\n                {{t 'shared.report-builder.markSelectedItemsAsReportedOnExport'}}\n                <Input @type='checkbox' @checked={{this.markReportedOnExport}} />\n              </label>\n            </p>\n          </div>\n        </section>\n      </form>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"dtNhz9NL\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.excel.Excel export\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.outgoing.report-builder\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.excel.Excel export\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"ms-auto report-builder__sub-header-dropdown\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"download\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"download\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n            Excel\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"download\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"download\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n          Excel\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"form\\\"],[14,0,\\\"grid-form box\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"section\\\"],[14,0,\\\"box__section\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-desc\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Export Options\\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"shared.report-builder.chooseHowYouWouldLikeYourAttachmentsAndItemsHandled\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"box__section-content\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.report-builder.Include attachments with export\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,21],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"includeAttachmentsOnExport\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.report-builder.markSelectedItemsAsReportedOnExport\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,21],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"markReportedOnExport\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"button\\\",\\\"span\\\",\\\"on\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"form\\\",\\\"section\\\",\\\"h3\\\",\\\"p\\\",\\\"label\\\",\\\"input\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/report-builder/excel.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/report-builder/index-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"aFshvT+G\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/report-builder/index-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/report-builder/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Report builder')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <div class='report-builder__sub-header-dropdown float-end'>\n          <PopOver\n            class='button--spaced'\n            @direction='bottom-left'\n            @disabled={{not this.selectedProject}}\n            data-test-export-dropdown=''\n            as |po|\n          >\n            <button\n              type='button'\n              class='btn btn-secondary text-white'\n              disabled={{not this.selectedProject}}\n            >\n              {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n  \n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (fn this.downloadReport 'pdf')}}\n                data-test-export-pdf=''\n              >\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.Prepare PDF report'\n                }}\n              </button>\n  \n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (fn this.downloadReport 'excel')}}\n                data-test-export-excel=''\n              >\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.Prepare Excel report'\n                }}\n              </button>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (fn this.downloadReport 'csv')}}\n                data-test-export-csv=''\n              >\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.Prepare CSV report'\n                }}\n              </button>\n            </po.Content>\n          </PopOver>\n        </div>\n  \n        <h1 class='h1'>\n          {{t 'common.Report builder'}}\n        </h1>\n      </header>\n    {{else}}\n      <div class='mb-3'>\n        <OverlaidDropdown\n          @buttonClasses='button button--download button--spaced'\n          @buttonText='Download report'\n          @title='Download Report'\n          @disabled={{not this.selectedProject}}\n          @align='right'\n          data-test-export-dropdown\n        >\n          <label\n            class='overlaid-dropdown__option'\n            {{on 'click' (fn this.downloadReport 'pdf')}}\n            data-test-export-pdf=''\n          >\n            <span class='no-wrap'>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Prepare PDF report'\n              }}</span>\n          </label>\n          <label\n            class='overlaid-dropdown__option'\n            {{on 'click' (fn this.downloadReport 'excel')}}\n            data-test-export-excel=''\n          >\n            <span class='no-wrap'>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Prepare Excel report'\n              }}</span>\n          </label>\n          <label\n            class='overlaid-dropdown__option'\n            {{on 'click' (fn this.downloadReport 'csv')}}\n            data-test-export-csv=''\n          >\n            <span class='no-wrap'>\n              {{t\n                'entity.builda-price.operations.outgoing.report-builder.Prepare CSV report'\n              }}</span>\n          </label>\n        </OverlaidDropdown>\n      </div>\n    {{/if}}\n  \n    {{! Page controls, date, project, task }}\n    <div class='report-builder__sub-header'>\n      <span class='report-builder__sub-header-item'>\n        <DateRangeSelector\n          @disabled={{if this.filterByDate false true}}\n          @align='left'\n          @startDate={{this.jsStartDate}}\n          @endDate={{this.jsEndDate}}\n          @onApply={{this.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' this.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={{this.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={{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        </span>\n      {{/if}}\n    </div>\n  \n    {{#unless this.selectedProject}}\n      {{! If no project is selected, promt the user to do so }}\n      <div class='error-page error-page--no-data'>\n        <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n        <h3 class='h3 error-page__title'>{{t 'common.Select a project'}}</h3>\n      </div>\n    {{else}}\n      {{! If a project is selected, show the page content }}\n  \n      {{! Totals bar (sticky) }}\n      <div class='report-builder__sub-header--fixed'>\n        <h2 class='float-start'>{{t 'shared.report-builder.Report total'}}</h2>\n        <span class='report-builder__section-total'>\n          <span\n            class='report-builder__section-total-column'\n            data-test-report-builder-subtotal=''\n          >\n            <span>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Subtotal'\n              }}</span>\n            {{number-format\n              this.computedTotals.total.subtotal\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n  \n          <span class='report-builder__section-total-column'>\n            <span>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Margin total'\n              }}</span>\n            {{number-format\n              this.computedTotals.total.margin\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n  \n          <span\n            class='report-builder__section-total-column'\n            data-test-report-builder-total=''\n          >\n            <span>{{t 'common.Total'}}</span>\n            {{number-format\n              this.computedTotals.total.total\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n        </span>\n      </div>\n  \n      {{! Materials section }}\n      <section class='report-builder__section' data-test-materials>\n        <div class='report-builder__section-header'>\n          {{! Materials heading (toggle) }}\n          <h2\n            class='h2'\n            {{on 'click' (fn this.toggleSection 'materialsSectionExpanded')}}\n          >\n            {{t 'common.Materials'}}&nbsp;&nbsp;<FaIcon\n              @icon={{if\n                this.materialsSectionExpanded\n                'angle-down'\n                'angle-right'\n              }}\n            />\n          </h2>\n        </div>\n  \n        {{! Materials content, only show when expanded }}\n        {{#if this.materialsSectionExpanded}}\n          {{#unless this.materialInvoices.length}}\n            {{! Message for when there are no invoices to show }}\n            {{#unless this.filterByDate}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.There are no materials bills'\n                }}\n              </p>\n            {{else}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.thereAreNoMaterialsBillsWithAnIssueDateBetween'\n                  start=(moment-format this.startDate (t 'date.shortWithWeekday'))\n                  end=(moment-format this.endDate (t 'date.shortWithWeekday'))\n                }}\n              </p>\n            {{/unless}}\n          {{else}}\n            <button\n              class='text-button text-button--spaced report-builder__section-header-button'\n              type='button'\n              {{on 'click' this.toggleMaterialsReportedSelected}}\n            >\n              {{t\n                'entity.builda-price.operations.outgoing.report-builder.Select previously unreported items'\n              }}\n            </button>\n  \n            <ReportBuilderPm::InvoiceTypeTable\n              @title={{t\n                'entity.builda-price.operations.outgoing.report-builder.Material bills'\n              }}\n              @toggleAllSelected={{action 'toggleMaterialsSelected'}}\n              @toggleResourceItemsSelected={{action\n                'toggleResourceItemsSelected'\n              }}\n              @toggleItemsVisible={{action 'toggleItemsVisible'}}\n              @toggleInvoiceItemSelected={{action 'toggleInvoiceItemSelected'}}\n              @setItemReportedFalse={{action 'setItemReportedFalse'}}\n              @setItemsReportedFalse={{action 'setItemsReportedFalse'}}\n              @allSelected={{this.allMaterialsSelected}}\n              @partSelected={{this.partMaterialsSelected}}\n              @invoices={{this.materialInvoices}}\n            />\n          {{/unless}}\n  \n          {{! List of manual items to add to the material invoices part of the report }}\n          {{#if this.manualMaterials.length}}\n            <ReportBuilderPm::ManualTypeTable\n              @title={{t\n                'entity.builda-price.operations.outgoing.report-builder.Manual items'\n              }}\n              @items={{this.manualMaterials}}\n              @deleteItem={{this.deleteManualItem}}\n              @manualKey='material'\n            />\n          {{/if}}\n          <button\n            class='button button--add report-builder__section-button-add'\n            type='button'\n            {{on 'click' (fn this.addManualItem 'material')}}\n          >\n            {{t\n              'entity.builda-price.operations.outgoing.report-builder.Add manual item'\n            }}\n          </button>\n        {{/if}}\n  \n        {{! Materials totals }}\n        <span class='report-builder__section-total'>\n          <span class='report-builder__section-total-column'>\n            <span>{{t 'shared.report-builder.Materials subtotal'}}</span>\n            {{number-format\n              this.computedTotals.invoice.subtotal\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n  \n          <span\n            class='report-builder__section-total-column'\n            data-test-materials-markup\n          >\n            <SelectInput\n              @value={{this.invoiceProfitType}}\n              @action={{fn this.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={{fn (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={{fn (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={{fn (mut this.invoiceProfit)}}\n                @number={{this.invoiceMarkup}}\n                @format='percentage'\n                @selectOnFocus={{true}}\n              />\n            {{/if}}\n          </span>\n  \n          <span class='report-builder__section-total-column'>\n            <span>{{t 'shared.report-builder.Materials total'}}</span>\n            {{number-format\n              this.computedTotals.invoice.total\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n        </span>\n      </section>\n  \n      {{! Labour section }}\n      <section class='report-builder__section' data-test-labour>\n        <div class='report-builder__section-header'>\n          {{! Labour header (toggle) }}\n          <h2\n            class='h2'\n            {{on 'click' (fn this.toggleSection 'labourSectionExpanded')}}\n          >\n            {{t 'common.Labour'}}&nbsp;&nbsp;<FaIcon\n              @icon={{if this.labourSectionExpanded 'angle-down' 'angle-right'}}\n            />\n          </h2>\n  \n          {{! Charge out rates toggle, only necessary when timesheets are found }}\n          {{#if this.workers.length}}\n            <span class='report-builder__section-header-meta'>\n              <label for='use-charge-out-rate-toggle'>{{t\n                  'entity.builda-price.operations.outgoing.report-builder.Use charge out rates'\n                }}</label>\n              <Input\n                @type='checkbox'\n                id='use-charge-out-rate-toggle'\n                @checked={{this.useChargeOutRates}}\n              />\n            </span>\n          {{/if}}\n        </div>\n  \n        {{! Labour content, only show if section expanded }}\n        {{#if this.labourSectionExpanded}}\n          {{#unless (or this.workers.length this.labourInvoices.length)}}\n            {{! Message for when there are no timesheets }}\n            {{#unless this.filterByDate}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.There are no timesheets'\n                }}\n              </p>\n            {{else}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.thereAreNoTimesheetsCreatedBetweenXAndY'\n                  start=(moment-format this.startDate (t 'date.shortWithWeekday'))\n                  end=(moment-format this.endDate (t 'date.shortWithWeekday'))\n                }}\n              </p>\n            {{/unless}}\n          {{else}}\n            <button\n              class='text-button text-button--spaced report-builder__section-header-button'\n              type='button'\n              {{on 'click' this.toggleTimesheetsReportedSelected}}\n            >\n              {{t\n                'entity.builda-price.operations.outgoing.report-builder.Select previously unreported items'\n              }}\n            </button>\n  \n            {{#if this.workers.length}}\n              <ReportBuilderPm::TimesheetTypeTable\n                @title={{t 'common.Timesheets'}}\n                @headingName='Task'\n                @workers={{this.workers}}\n                @allTimesheetsSelected={{this.allTimesheetsSelected}}\n                @partTimesheetsSelected={{this.partTimesheetsSelected}}\n                @useChargeOutRates={{this.useChargeOutRates}}\n                @toggleTimesheetsSelected={{this.toggleTimesheetsSelected}}\n                @toggleWorkersTimesheetsSelected={{this.toggleWorkersTimesheetsSelected}}\n                @toggleItemsVisible={{this.toggleItemsVisible}}\n                @toggleTimesheetSelected={{this.toggleTimesheetSelected}}\n                @setItemsReportedFalse={{this.setItemsReportedFalse}}\n                @setItemReportedFalse={{this.setItemReportedFalse}}\n              />\n            {{/if}}\n  \n            {{#if this.labourInvoices.length}}\n              <ReportBuilderPm::InvoiceTypeTable\n                @title={{t 'shared.report-builder.Labour bills'}}\n                @headingName='Task'\n                @toggleAllSelected={{this.toggleLabourSelected}}\n                @toggleResourceItemsSelected={{this.toggleResourceItemsSelected}}\n                @toggleItemsVisible={{this.toggleItemsVisible}}\n                @toggleInvoiceItemSelected={{this.toggleInvoiceItemSelected}}\n                @setItemReportedFalse={{this.setItemReportedFalse}}\n                @setItemsReportedFalse={{this.setItemsReportedFalse}}\n                @allSelected={{this.allLabourSelected}}\n                @partSelected={{this.partLabourSelected}}\n                @invoices={{this.labourInvoices}}\n              />\n            {{/if}}\n          {{/unless}}\n  \n          {{! Things that are manually added to the labour section of the report }}\n          {{#if this.manualTimesheets.length}}\n            <ReportBuilderPm::ManualTypeTable\n              @title={{t\n                'entity.builda-price.operations.outgoing.report-builder.Manual items'\n              }}\n              @items={{this.manualTimesheets}}\n              @deleteItem={{this.deleteManualItem}}\n              @manualKey='timesheet'\n            />\n          {{/if}}\n  \n          <button\n            class='button button--add report-builder__section-button-add'\n            type='button'\n            {{on 'click' (fn this.addManualItem 'timesheet')}}\n          >\n            {{t\n              'entity.builda-price.operations.outgoing.report-builder.Add manual item'\n            }}\n          </button>\n        {{/if}}\n  \n        {{! Labour totals line }}\n        <span class='report-builder__section-total'>\n          <span class='report-builder__section-total-column'>\n            <span>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Labour hours total'\n              }}</span>\n            {{format-duration\n              this.computedTotals.timesheet.manHoursTotal\n              emptyPlaceholder='–'\n            }}\n          </span>\n  \n          <span class='report-builder__section-total-column'>\n            <span>{{t 'shared.report-builder.Labour subtotal'}}</span>\n            {{number-format\n              this.computedTotals.timesheet.subtotal\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n  \n          <span\n            class='report-builder__section-total-column'\n            data-test-labour-markup\n          >\n            <SelectInput\n              @value={{this.timesheetProfitType}}\n              @action={{fn this.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={{fn (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={{fn (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={{fn (mut this.timesheetProfit)}}\n                @number={{this.timesheetMarkup}}\n                @format='percentage'\n                @selectOnFocus={{true}}\n              />\n            {{/if}}\n          </span>\n  \n          <span class='report-builder__section-total-column'>\n            <span>{{t 'shared.report-builder.Labour total'}}</span>\n            {{number-format\n              this.computedTotals.timesheet.total\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n        </span>\n      </section>\n  \n      {{! Subcontractor invocies section }}\n      <section class='report-builder__section' data-test-subcontractors>\n        <div class='report-builder__section-header'>\n          {{! Subcontractors header (toggle) }}\n          <h2\n            class='h2'\n            {{on 'click' (fn this.toggleSection 'subcontractorsSectionExpanded')}}\n          >\n            {{t 'common.Subcontractors'}}&nbsp;&nbsp;<FaIcon\n              @icon={{if\n                this.subcontractorsSectionExpanded\n                'angle-down'\n                'angle-right'\n              }}\n            />\n          </h2>\n        </div>\n  \n        {{! Subcontractor invoices content }}\n        {{#if this.subcontractorsSectionExpanded}}\n          {{#unless this.subcontractorInvoices.length}}\n            {{! Message for when there are no subcontractor invoices in the report }}\n            {{#unless this.filterByDate}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.There are no subcontractor bills'\n                }}\n              </p>\n            {{else}}\n              <p class='report-builder__section-empty'>\n                {{t\n                  'entity.builda-price.operations.outgoing.report-builder.thereAreNoSubcontractorBillsWithAnIssueDateBetweenXAndY'\n                  start=(moment-format this.startDate (t 'date.shortWithWeekday'))\n                  end=(moment-format this.endDate (t 'date.shortWithWeekday'))\n                }}\n              </p>\n            {{/unless}}\n  \n          {{else}}\n            <button\n              class='text-button text-button--spaced report-builder__section-header-button'\n              type='button'\n              {{on 'click' this.toggleSubcontractorsReportedSelected}}\n            >\n              {{t\n                'entity.builda-price.operations.outgoing.report-builder.Select previously unreported items'\n              }}\n            </button>\n  \n            <ReportBuilderPm::InvoiceTypeTable\n              @title={{t 'shared.report-builder.Subcontractor bills'}}\n              @headingName='Task'\n              @toggleAllSelected={{this.toggleSubcontractorsSelected}}\n              @toggleResourceItemsSelected={{this.toggleResourceItemsSelected}}\n              @toggleItemsVisible={{this.toggleItemsVisible}}\n              @toggleInvoiceItemSelected={{this.toggleInvoiceItemSelected}}\n              @setItemReportedFalse={{this.setItemReportedFalse}}\n              @setItemsReportedFalse={{this.setItemsReportedFalse}}\n              @allSelected={{this.allSubcontractorsSelected}}\n              @partSelected={{this.partSubcontractorsSelected}}\n              @invoices={{this.subcontractorInvoices}}\n            />\n          {{/unless}}\n  \n          {{! Items that are manually added to the subcontractor section }}\n          {{#if this.manualSubcontractors.length}}\n            <ReportBuilderPm::ManualTypeTable\n              @title={{t\n                'entity.builda-price.operations.outgoing.report-builder.Manual items'\n              }}\n              @items={{this.manualSubcontractors}}\n              @deleteItem={{this.deleteManualItem}}\n              @manualKey='subcontractor'\n            />\n          {{/if}}\n          <button\n            class='button button--add report-builder__section-button-add'\n            type='button'\n            {{on 'click' (fn this.addManualItem 'subcontractor')}}\n          >\n            {{t\n              'entity.builda-price.operations.outgoing.report-builder.Add manual item'\n            }}\n          </button>\n        {{/if}}\n  \n        {{! Subcontractors totals }}\n        <span class='report-builder__section-total'>\n          <span class='report-builder__section-total-column'>\n            <span>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Subcontractors subtotal'\n              }}</span>\n            {{number-format\n              this.computedTotals.subcontractor.subtotal\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n  \n          <span\n            class='report-builder__section-total-column'\n            data-test-subcontractors-markup\n          >\n            <SelectInput\n              @value={{this.subcontractorProfitType}}\n              @action={{fn this.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={{fn (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={{fn (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={{fn (mut this.subcontractorProfit)}}\n                @number={{this.subcontractorMarkup}}\n                @format='percentage'\n                @selectOnFocus={{true}}\n              />\n            {{/if}}\n          </span>\n  \n          <span class='report-builder__section-total-column'>\n            <span>{{t\n                'entity.builda-price.operations.outgoing.report-builder.Subcontractors total'\n              }}</span>\n            {{number-format\n              this.computedTotals.subcontractor.total\n              style='currency'\n              dashZero=true\n            }}\n          </span>\n        </span>\n      </section>\n      <br />\n      <br />\n    {{/unless}}\n  </article>\n  */\n  {\n    \"id\": \"1KQ2EP4t\",\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],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadReport\\\"]],\\\"pdf\\\"],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare PDF report\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-export-excel\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadReport\\\"]],\\\"excel\\\"],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare Excel report\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-export-csv\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadReport\\\"]],\\\"csv\\\"],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare CSV report\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Report builder\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],[[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],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadReport\\\"]],\\\"pdf\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"no-wrap\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare PDF report\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-export-excel\\\",\\\"\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadReport\\\"]],\\\"excel\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"no-wrap\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare Excel report\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[24,\\\"data-test-export-csv\\\",\\\"\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadReport\\\"]],\\\"csv\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"no-wrap\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Prepare CSV report\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[1,\\\"  \\\"],[10,0],[14,0,\\\"report-builder__sub-header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"report-builder__sub-header-item\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,19],null,[[\\\"@disabled\\\",\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[[52,[30,0,[\\\"filterByDate\\\"]],false,true],\\\"left\\\",[30,0,[\\\"jsStartDate\\\"]],[30,0,[\\\"jsEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],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,20],[[24,0,\\\"mx-2\\\"],[24,\\\"data-test-report-builder-filterCheckBox\\\",\\\"\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"toggleFilter\\\"]]],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\\\",\\\" – \\\",[30,0,[\\\"setProject\\\"]]]],[[\\\"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\\\"]],[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,13],[\\\"click\\\",[30,0,[\\\"removeAllTaskFilters\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"selectedProject\\\"]]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,4],[\\\"common.Select a project\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[1,\\\"    \\\"],[10,0],[14,0,\\\"report-builder__sub-header--fixed\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"float-start\\\"],[12],[1,[28,[35,4],[\\\"shared.report-builder.Report total\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"report-builder__section-total\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[14,\\\"data-test-report-builder-subtotal\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Subtotal\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"total\\\",\\\"subtotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Margin total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"total\\\",\\\"margin\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[14,\\\"data-test-report-builder-total\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"total\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"    \\\"],[10,\\\"section\\\"],[14,0,\\\"report-builder__section\\\"],[14,\\\"data-test-materials\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"report-builder__section-header\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[11,\\\"h2\\\"],[24,0,\\\"h2\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"toggleSection\\\"]],\\\"materialsSectionExpanded\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"materialsSectionExpanded\\\"]],\\\"angle-down\\\",\\\"angle-right\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"materialsSectionExpanded\\\"]],[[[41,[51,[30,0,[\\\"materialInvoices\\\",\\\"length\\\"]]],[[[41,[51,[30,0,[\\\"filterByDate\\\"]]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.There are no materials bills\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.thereAreNoMaterialsBillsWithAnIssueDateBetween\\\"],[[\\\"start\\\",\\\"end\\\"],[[28,[37,28],[[30,0,[\\\"startDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null],[28,[37,28],[[30,0,[\\\"endDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--spaced report-builder__section-header-button\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"toggleMaterialsReportedSelected\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Select previously unreported items\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,29],null,[[\\\"@title\\\",\\\"@toggleAllSelected\\\",\\\"@toggleResourceItemsSelected\\\",\\\"@toggleItemsVisible\\\",\\\"@toggleInvoiceItemSelected\\\",\\\"@setItemReportedFalse\\\",\\\"@setItemsReportedFalse\\\",\\\"@allSelected\\\",\\\"@partSelected\\\",\\\"@invoices\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Material bills\\\"],null],[28,[37,30],[[30,0],\\\"toggleMaterialsSelected\\\"],null],[28,[37,30],[[30,0],\\\"toggleResourceItemsSelected\\\"],null],[28,[37,30],[[30,0],\\\"toggleItemsVisible\\\"],null],[28,[37,30],[[30,0],\\\"toggleInvoiceItemSelected\\\"],null],[28,[37,30],[[30,0],\\\"setItemReportedFalse\\\"],null],[28,[37,30],[[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,31],null,[[\\\"@title\\\",\\\"@items\\\",\\\"@deleteItem\\\",\\\"@manualKey\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Manual items\\\"],null],[30,0,[\\\"manualMaterials\\\"]],[30,0,[\\\"deleteManualItem\\\"]],\\\"material\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add report-builder__section-button-add\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"addManualItem\\\"]],\\\"material\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Add manual item\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,1],[14,0,\\\"report-builder__section-total\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"shared.report-builder.Materials subtotal\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"invoice\\\",\\\"subtotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[14,\\\"data-test-materials-markup\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,32],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"invoiceProfitType\\\"]],[28,[37,14],[[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,33],[[30,0,[\\\"invoiceProfitType\\\"]],\\\"dollar\\\"],null],[[[1,\\\"            \\\"],[8,[39,34],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"$0.00\\\",[28,[37,14],[[28,[37,35],[[30,0,[\\\"invoiceProfit\\\"]]],null]],null],[30,0,[\\\"invoiceDollarProfit\\\"]],\\\"currency\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,33],[[30,0,[\\\"invoiceProfitType\\\"]],\\\"margin\\\"],null],[[[1,\\\"            \\\"],[8,[39,34],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,14],[[28,[37,35],[[30,0,[\\\"invoiceProfit\\\"]]],null]],null],[30,0,[\\\"invoiceMargin\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,33],[[30,0,[\\\"invoiceProfitType\\\"]],\\\"markup\\\"],null],[[[1,\\\"            \\\"],[8,[39,34],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,14],[[28,[37,35],[[30,0,[\\\"invoiceProfit\\\"]]],null]],null],[30,0,[\\\"invoiceMarkup\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"shared.report-builder.Materials total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"invoice\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"    \\\"],[10,\\\"section\\\"],[14,0,\\\"report-builder__section\\\"],[14,\\\"data-test-labour\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"report-builder__section-header\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[11,\\\"h2\\\"],[24,0,\\\"h2\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"toggleSection\\\"]],\\\"labourSectionExpanded\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"labourSectionExpanded\\\"]],\\\"angle-down\\\",\\\"angle-right\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"workers\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"report-builder__section-header-meta\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"use-charge-out-rate-toggle\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Use charge out rates\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],[[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,36],[[30,0,[\\\"workers\\\",\\\"length\\\"]],[30,0,[\\\"labourInvoices\\\",\\\"length\\\"]]],null]],[[[41,[51,[30,0,[\\\"filterByDate\\\"]]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.There are no timesheets\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.thereAreNoTimesheetsCreatedBetweenXAndY\\\"],[[\\\"start\\\",\\\"end\\\"],[[28,[37,28],[[30,0,[\\\"startDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null],[28,[37,28],[[30,0,[\\\"endDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--spaced report-builder__section-header-button\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"toggleTimesheetsReportedSelected\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Select previously unreported items\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"workers\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,37],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\\\"]],[30,0,[\\\"toggleTimesheetsSelected\\\"]],[30,0,[\\\"toggleWorkersTimesheetsSelected\\\"]],[30,0,[\\\"toggleItemsVisible\\\"]],[30,0,[\\\"toggleTimesheetSelected\\\"]],[30,0,[\\\"setItemsReportedFalse\\\"]],[30,0,[\\\"setItemReportedFalse\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"labourInvoices\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[8,[39,29],null,[[\\\"@title\\\",\\\"@headingName\\\",\\\"@toggleAllSelected\\\",\\\"@toggleResourceItemsSelected\\\",\\\"@toggleItemsVisible\\\",\\\"@toggleInvoiceItemSelected\\\",\\\"@setItemReportedFalse\\\",\\\"@setItemsReportedFalse\\\",\\\"@allSelected\\\",\\\"@partSelected\\\",\\\"@invoices\\\"],[[28,[37,4],[\\\"shared.report-builder.Labour bills\\\"],null],\\\"Task\\\",[30,0,[\\\"toggleLabourSelected\\\"]],[30,0,[\\\"toggleResourceItemsSelected\\\"]],[30,0,[\\\"toggleItemsVisible\\\"]],[30,0,[\\\"toggleInvoiceItemSelected\\\"]],[30,0,[\\\"setItemReportedFalse\\\"]],[30,0,[\\\"setItemsReportedFalse\\\"]],[30,0,[\\\"allLabourSelected\\\"]],[30,0,[\\\"partLabourSelected\\\"]],[30,0,[\\\"labourInvoices\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"manualTimesheets\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,31],null,[[\\\"@title\\\",\\\"@items\\\",\\\"@deleteItem\\\",\\\"@manualKey\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Manual items\\\"],null],[30,0,[\\\"manualTimesheets\\\"]],[30,0,[\\\"deleteManualItem\\\"]],\\\"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],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"addManualItem\\\"]],\\\"timesheet\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Add manual item\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,1],[14,0,\\\"report-builder__section-total\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Labour hours total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,38],[[30,0,[\\\"computedTotals\\\",\\\"timesheet\\\",\\\"manHoursTotal\\\"]]],[[\\\"emptyPlaceholder\\\"],[\\\"–\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"shared.report-builder.Labour subtotal\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"timesheet\\\",\\\"subtotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[14,\\\"data-test-labour-markup\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,32],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"timesheetProfitType\\\"]],[28,[37,14],[[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,33],[[30,0,[\\\"timesheetProfitType\\\"]],\\\"dollar\\\"],null],[[[1,\\\"            \\\"],[8,[39,34],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"$0.00\\\",[28,[37,14],[[28,[37,35],[[30,0,[\\\"timesheetProfit\\\"]]],null]],null],[30,0,[\\\"timesheetDollarProfit\\\"]],\\\"currency\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,33],[[30,0,[\\\"timesheetProfitType\\\"]],\\\"margin\\\"],null],[[[1,\\\"            \\\"],[8,[39,34],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,14],[[28,[37,35],[[30,0,[\\\"timesheetProfit\\\"]]],null]],null],[30,0,[\\\"timesheetMargin\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,33],[[30,0,[\\\"timesheetProfitType\\\"]],\\\"markup\\\"],null],[[[1,\\\"            \\\"],[8,[39,34],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,14],[[28,[37,35],[[30,0,[\\\"timesheetProfit\\\"]]],null]],null],[30,0,[\\\"timesheetMarkup\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"shared.report-builder.Labour total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"timesheet\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"    \\\"],[10,\\\"section\\\"],[14,0,\\\"report-builder__section\\\"],[14,\\\"data-test-subcontractors\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"report-builder__section-header\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[11,\\\"h2\\\"],[24,0,\\\"h2\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"toggleSection\\\"]],\\\"subcontractorsSectionExpanded\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"subcontractorsSectionExpanded\\\"]],\\\"angle-down\\\",\\\"angle-right\\\"]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"subcontractorsSectionExpanded\\\"]],[[[41,[51,[30,0,[\\\"subcontractorInvoices\\\",\\\"length\\\"]]],[[[41,[51,[30,0,[\\\"filterByDate\\\"]]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.There are no subcontractor bills\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"report-builder__section-empty\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.thereAreNoSubcontractorBillsWithAnIssueDateBetweenXAndY\\\"],[[\\\"start\\\",\\\"end\\\"],[[28,[37,28],[[30,0,[\\\"startDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null],[28,[37,28],[[30,0,[\\\"endDate\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--spaced report-builder__section-header-button\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"toggleSubcontractorsReportedSelected\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Select previously unreported items\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,29],null,[[\\\"@title\\\",\\\"@headingName\\\",\\\"@toggleAllSelected\\\",\\\"@toggleResourceItemsSelected\\\",\\\"@toggleItemsVisible\\\",\\\"@toggleInvoiceItemSelected\\\",\\\"@setItemReportedFalse\\\",\\\"@setItemsReportedFalse\\\",\\\"@allSelected\\\",\\\"@partSelected\\\",\\\"@invoices\\\"],[[28,[37,4],[\\\"shared.report-builder.Subcontractor bills\\\"],null],\\\"Task\\\",[30,0,[\\\"toggleSubcontractorsSelected\\\"]],[30,0,[\\\"toggleResourceItemsSelected\\\"]],[30,0,[\\\"toggleItemsVisible\\\"]],[30,0,[\\\"toggleInvoiceItemSelected\\\"]],[30,0,[\\\"setItemReportedFalse\\\"]],[30,0,[\\\"setItemsReportedFalse\\\"]],[30,0,[\\\"allSubcontractorsSelected\\\"]],[30,0,[\\\"partSubcontractorsSelected\\\"]],[30,0,[\\\"subcontractorInvoices\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"manualSubcontractors\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[8,[39,31],null,[[\\\"@title\\\",\\\"@items\\\",\\\"@deleteItem\\\",\\\"@manualKey\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Manual items\\\"],null],[30,0,[\\\"manualSubcontractors\\\"]],[30,0,[\\\"deleteManualItem\\\"]],\\\"subcontractor\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add report-builder__section-button-add\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"addManualItem\\\"]],\\\"subcontractor\\\"],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Add manual item\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,1],[14,0,\\\"report-builder__section-total\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Subcontractors subtotal\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"subcontractor\\\",\\\"subtotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[14,\\\"data-test-subcontractors-markup\\\",\\\"\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,32],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"subcontractorProfitType\\\"]],[28,[37,14],[[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,33],[[30,0,[\\\"subcontractorProfitType\\\"]],\\\"dollar\\\"],null],[[[1,\\\"            \\\"],[8,[39,34],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"$0.00\\\",[28,[37,14],[[28,[37,35],[[30,0,[\\\"subcontractorProfit\\\"]]],null]],null],[30,0,[\\\"subcontractorDollarProfit\\\"]],\\\"currency\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,33],[[30,0,[\\\"subcontractorProfitType\\\"]],\\\"margin\\\"],null],[[[1,\\\"            \\\"],[8,[39,34],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,14],[[28,[37,35],[[30,0,[\\\"subcontractorProfit\\\"]]],null]],null],[30,0,[\\\"subcontractorMargin\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,33],[[30,0,[\\\"subcontractorProfitType\\\"]],\\\"markup\\\"],null],[[[1,\\\"            \\\"],[8,[39,34],null,[[\\\"@class\\\",\\\"@placeholder\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\",\\\"@selectOnFocus\\\"],[\\\"text-input\\\",\\\"0%\\\",[28,[37,14],[[28,[37,35],[[30,0,[\\\"subcontractorProfit\\\"]]],null]],null],[30,0,[\\\"subcontractorMarkup\\\"]],\\\"percentage\\\",true]],null],[1,\\\"\\\\n          \\\"]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"report-builder__section-total-column\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.Subcontractors total\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,25],[[30,0,[\\\"computedTotals\\\",\\\"subcontractor\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"project\\\",\\\"si\\\",\\\"si\\\",\\\"si\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"div\\\",\\\"pop-over\\\",\\\"not\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"fn\\\",\\\"h1\\\",\\\"overlaid-dropdown\\\",\\\"label\\\",\\\"span\\\",\\\"date-range-selector\\\",\\\"input\\\",\\\"power-select\\\",\\\"multi-task-selector-input\\\",\\\"h2\\\",\\\"h3\\\",\\\"number-format\\\",\\\"section\\\",\\\"p\\\",\\\"moment-format\\\",\\\"report-builder-pm/invoice-type-table\\\",\\\"action\\\",\\\"report-builder-pm/manual-type-table\\\",\\\"select-input\\\",\\\"eq\\\",\\\"formatted-input\\\",\\\"mut\\\",\\\"or\\\",\\\"report-builder-pm/timesheet-type-table\\\",\\\"format-duration\\\",\\\"br\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/report-builder/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/outgoing/report-builder/pdf\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.operations.outgoing.report-builder.pdf.PDF export'\n        )\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.operations.outgoing.report-builder'\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header class='border-bottom mb-3 d-flex'>\n        <h2 class='my-2'>\n          {{t\n            'entity.builda-price.operations.outgoing.report-builder.pdf.PDF export'\n          }}\n        </h2>\n        <div class='ms-auto report-builder__sub-header-dropdown'>\n          {{#if this.isDownloading}}\n            <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Downloading'}}…\n            </button>\n          {{else}}\n            <button\n              type='button'\n              class='btn btn-primary ms-2'\n              {{on 'click' this.download}}\n            >\n              <FaIcon class='me-1' @icon='download' />\n              {{t 'common.Download'}}\n              PDF\n            </button>\n          {{/if}}\n        </div>\n      </header>\n    {{else}}\n      <div class='mb-3'>\n        {{#if this.isDownloading}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Downloading'\n            }}…\n          </button>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            {{on 'click' this.download}}\n          >\n            <FaIcon class='me-1' @icon='download' />\n            {{t 'common.Download'}}\n            PDF\n          </button>\n        {{/if}}\n      </div>\n    {{/if}}\n  \n    <ReportExporterPm @model={{this.model}} />\n  </article>\n  */\n  {\n    \"id\": \"7z+AHyzX\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.operations.outgoing.report-builder.pdf.PDF export\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.operations.outgoing.report-builder\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.operations.outgoing.report-builder.pdf.PDF export\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-auto report-builder__sub-header-dropdown\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloading\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"download\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,14],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n            PDF\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDownloading\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"download\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,14],[[24,0,\\\"me-1\\\"]],[[\\\"@icon\\\"],[\\\"download\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n          PDF\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n  \\\"],[8,[39,15],null,[[\\\"@model\\\"],[[30,0,[\\\"model\\\"]]]],null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"button\\\",\\\"span\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"report-exporter-pm\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/outgoing/report-builder/pdf.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/operations/products\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Products')\n      }}\n    />\n  {{/unless}}\n  \n  <main class='page__container-content gap-zendesk-support-widget'>\n    <article class='mx-4 mt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Products'}}</h2>\n        {{/if}}\n      </header>\n      <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n        {{#if (and this.isEditable this.productTableData.length)}}\n          <div class='flex-grow-1'>\n            <button\n              class='btn btn-link text-danger text-decoration-underline float-start'\n              type='button'\n              {{on 'click' (fn (mut this.isDeletingProducts) true)}}\n              disabled={{or (not this.selectProductIds.size) this.isLoading}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n          </div>\n        {{/if}}\n        {{#if this.showFilters}}\n          <div class='mx-1'>\n            <SearchSelector\n              style='width: 200px;'\n              @disabled={{this.isLoading}}\n              @key='supplierName'\n              @optionKeys={{array 'supplierName'}}\n              @model={{this.supplierChangeSet}}\n              @noDataMessage={{t 'common.No suppliers'}}\n              @onLoad={{this.loadMoreSuppliers}}\n              @onSelect={{this.setSupplier}}\n              @placeholder={{t 'shared.product.Filter by supplier'}}\n            />\n          </div>\n          <Input\n            class='form-control m-1 w-auto'\n            placeholder={{t 'common.Search'}}\n            @value={{this.searchString}}\n            @type='text'\n            autofocus='true'\n            {{on 'input' (perform this.onChangeSearchTerm)}}\n            data-test-task-product-search\n          />\n        {{/if}}\n        {{#if this.isEditable}}\n          <button\n            type='button'\n            class='btn btn-secondary text-white text-nowrap m-1'\n            disabled={{this.isLoading}}\n            {{on 'click' (fn (mut this.addingProductsFromFile) true)}}\n          >\n            <FaIcon @icon='upload' />&nbsp;&nbsp;{{t\n              'shared.product.Add products from a file'\n            }}\n          </button>\n          <button\n            type='button'\n            class='btn btn-success text-white text-nowrap m-1'\n            disabled={{this.isLoading}}\n            {{on 'click' (fn (mut this.isAddingProduct) true)}}\n          >\n            <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n          </button>\n        {{/if}}\n      </div>\n      <div class='entity-products__table-container'>\n        <PaginationTable\n          @tableHeader={{this.productTableHeader}}\n          @tableData={{this.productTableData}}\n          @noDataText={{t 'common.No data'}}\n          @pageSizes={{this.model.pageSizes}}\n          @pageSize={{this.model.pageSize}}\n          @pageIndex={{this.model.pageIndex}}\n          @onChangePageIndex={{this.onChangePageIndex}}\n          @onChangePageSize={{this.onChangePageSize}}\n          @isLoading={{this.model.products.isRunning}}\n          @totalRecords={{this.totalRecords}}\n          @class='table-bordered'\n        />\n      </div>\n    </article>\n  </main>\n  \n  {{#if this.isEditingProduct}}\n    <ProductEditor\n      @onSaveProduct={{this.onSaveProduct}}\n      @target={{this.model.entity}}\n      @productTable={{'entity-product'}}\n      @entity={{this.sessionData.entity}}\n      @productId={{this.selectedProductId}}\n      @onClose={{fn (mut this.isEditingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingProduct}}\n    <ProductSelector\n      @onAddProduct={{this.onAddProduct}}\n      @onCreateProduct={{this.onCreateProduct}}\n      @onClose={{fn (mut this.isAddingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.addingProductsFromFile}}\n    <ProductsUploader\n      @onUploadProducts={{this.updateProductList}}\n      @saveTarget={{'entity-products'}}\n      @onClose={{fn (mut this.addingProductsFromFile) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isDeletingProducts}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingProducts) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <p>\n        {{t\n          'shared.product.areYouSureYouWantToDeleteXProducts'\n          number=this.selectProductIds.size\n          products=(pluralize this.selectProductIds.size 'product')\n        }}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.deleteProducts.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Deleting'}}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (perform this.deleteProducts)}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingProducts) false)}}\n            >{{t 'common.Cancel'}}</button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"w7qSrQLJ\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Products\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Products\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"isEditable\\\"]],[30,0,[\\\"productTableData\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showFilters\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],[[24,5,\\\"width: 200px;\\\"]],[[\\\"@disabled\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@noDataMessage\\\",\\\"@onLoad\\\",\\\"@onSelect\\\",\\\"@placeholder\\\"],[[30,0,[\\\"isLoading\\\"]],\\\"supplierName\\\",[28,[37,19],[\\\"supplierName\\\"],null],[30,0,[\\\"supplierChangeSet\\\"]],[28,[37,4],[\\\"common.No suppliers\\\"],null],[30,0,[\\\"loadMoreSuppliers\\\"]],[30,0,[\\\"setSupplier\\\"]],[28,[37,4],[\\\"shared.product.Filter by supplier\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,20],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"common.Search\\\"],null]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,\\\"data-test-task-product-search\\\",\\\"\\\"],[4,[38,15],[\\\"input\\\",[28,[37,21],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"searchString\\\"]],\\\"text\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"addingProductsFromFile\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"shared.product.Add products from a file\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isAddingProduct\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"entity-products__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,23],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@isLoading\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"productTableHeader\\\"]],[30,0,[\\\"productTableData\\\"]],[28,[37,4],[\\\"common.No data\\\"],null],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"model\\\",\\\"products\\\",\\\"isRunning\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@onSaveProduct\\\",\\\"@target\\\",\\\"@productTable\\\",\\\"@entity\\\",\\\"@productId\\\",\\\"@onClose\\\"],[[30,0,[\\\"onSaveProduct\\\"]],[30,0,[\\\"model\\\",\\\"entity\\\"]],\\\"entity-product\\\",[30,0,[\\\"sessionData\\\",\\\"entity\\\"]],[30,0,[\\\"selectedProductId\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"isEditingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,25],null,[[\\\"@onAddProduct\\\",\\\"@onCreateProduct\\\",\\\"@onClose\\\"],[[30,0,[\\\"onAddProduct\\\"]],[30,0,[\\\"onCreateProduct\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"isAddingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addingProductsFromFile\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@onUploadProducts\\\",\\\"@saveTarget\\\",\\\"@onClose\\\"],[[30,0,[\\\"updateProductList\\\"]],\\\"entity-products\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"addingProductsFromFile\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeletingProducts\\\"]],[[[1,\\\"  \\\"],[8,[39,27],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"shared.product.areYouSureYouWantToDeleteXProducts\\\"],[[\\\"number\\\",\\\"products\\\"],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],[28,[37,29],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],\\\"product\\\"],null]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"deleteProducts\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"main\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"div\\\",\\\"and\\\",\\\"button\\\",\\\"or\\\",\\\"not\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"search-selector\\\",\\\"array\\\",\\\"input\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"pagination-table\\\",\\\"product-editor\\\",\\\"product-selector\\\",\\\"products-uploader\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"pluralize\\\",\\\"footer\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/operations/products.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    {{outlet}}\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Projects')\n      }}\n    />\n    {{outlet}}\n  {{/if}}\n  */\n  {\n    \"id\": \"qKZU41Xk\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,4],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,4],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,5],[\\\"common.Projects\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <main class='page__container-content gap-zendesk-support-widget'>\n    <article class='m-4 flex-grow-1'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h1 class='flex-grow-1 m-0 my-2'>\n            {{t 'common.Projects'}}\n          </h1>\n        {{/if}}\n        <div class='d-flex align-items-center'>\n          {{#if (media 'isDesktop')}}\n            <span class='m-1'>\n              <SelectInput\n                @value={{this.status}}\n                @action={{fn (mut this.status)}}\n                @class='form-control select-box'\n                data-test-project-status-filter\n                as |si|\n              >\n                <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n                <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n                <si.option @value='CLOSED'>{{t\n                    'common.Closed projects'\n                  }}</si.option>\n                <si.option @value='ARCHIVED'>{{t\n                    'common.Archived projects'\n                  }}</si.option>\n              </SelectInput>\n            </span>\n  \n            <span class='m-1'>\n              <Input\n                class='form-control'\n                placeholder={{t 'common.Search'}}\n                aria-label='Search'\n                @type='text'\n                @value={{this.searchString}}\n                data-test-project-search\n              />\n            </span>\n          {{/if}}\n          {{#if this.canManageProjects}}\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap m-1'\n              {{on 'click' this.openNewProjectForm}}\n              data-test-project-add-new-project\n            >\n              <FaIcon @icon='plus' />&nbsp;{{t 'common.New'}}\n            </button>\n          {{/if}}\n        </div>\n      </header>\n  \n      {{#if this.model.projects.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        {{#if this.filteredProjects.length}}\n          {{#if (media 'isDesktop')}}\n            <div class='px-3'>\n              <div class='row'>\n                {{#if (includes-feature-flags 'canUseProjectCopy')}}\n                  <div class='offset-3 col-1 fw-bold'>{{t\n                      'common.Reference'\n                    }}</div>\n                  <div class='col-3 fw-bold'>{{t 'common.Address'}}</div>\n                  <div class='col-2 fw-bold'>{{t 'common.Project start'}}</div>\n                  <div class='col-2 fw-bold text-center'>{{t\n                      'common.Status'\n                    }}</div>\n                  <div class='col-1 fw-bold text-center'>{{t\n                      'common.Actions'\n                    }}</div>\n                {{else}}\n                  <div class='offset-3 col-2 fw-bold'>{{t\n                      'common.Reference'\n                    }}</div>\n                  <div class='col-3 fw-bold'>{{t 'common.Address'}}</div>\n                  <div class='col-2 fw-bold'>{{t 'common.Project start'}}</div>\n                  <div class='col-2 fw-bold text-center'>{{t\n                      'common.Status'\n                    }}</div>\n                {{/if}}\n              </div>\n            </div>\n          {{/if}}\n          <DragSortList\n            @list={{this.filteredProjects}}\n            @onUpdate={{perform this.onProjectListUpdate}}\n            {{! you can only reorder projects when you can modify the entire list }}\n            @disableDragging={{not this.canManageProjects}}\n            {{! the component also needs to disable dragging because of a issue with a draggable link to }}\n            @itemComponent={{component\n              'project-card'\n              disableDragging=(not this.canManageProjects)\n            }}\n          />\n        {{else}}\n          <div class='error-page error-page--no-data'>\n            <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n            <h3 class='h3 error-page__title'>{{t 'common.No projects'}}</h3>\n          </div>\n        {{/if}}\n        {{#if (includes-feature-flags 'entityHasSubcontractorPackage')}}\n          <div class='mt-5 d-flex justify-content-center align-items-center'>\n            <p style='margin: 0; font-size: 14px;'>\n              {{t 'shared.branding.Proudly powered by'}}</p>\n            <img\n              style='margin-left: 10px; width: 180px;'\n              src={{this.attentionSafetyLogoSrc}}\n            />\n          </div>\n        {{/if}}\n      {{/if}}\n    </article>\n  </main>\n  \n  {{#if this.newProjectData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.newProjectData) false}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n  \n      <form data-test-new-project-form>\n        {{#let\n          (changeset this.newProjectData this.projectValidationMap)\n          as |projectModel|\n        }}\n          <div class='modal-body'>\n            <PtlInput\n              @type='text'\n              @label={{t 'common.Name'}}\n              @key='name'\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              @required={{true}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-name\n            />\n            <PtlInput\n              @type='select'\n              @label={{t 'shared.task.Contract type'}}\n              @key='contractType'\n              @selectNoBlankOption={{true}}\n              @options={{this.contractType}}\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              @required={{true}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-name\n            />\n  \n            <PtlInput\n              @type='text'\n              @label={{t 'common.Reference'}}\n              @key='projectReference'\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-reference\n            />\n            <NewComboBox\n              @isLoading={{this.onAddressChange.isRunning}}\n              @list={{this.addressSuggestions}}\n              @noDataMessage={{t\n                'entity.builda-price.projects.project.settings.No address found'\n              }}\n              @onSelect={{fn this.setAddress projectModel}}\n              @onSearch={{this.onAddressChange}}\n              @debounce={{400}}\n              @label={{t 'common.Address'}}\n              @key='address'\n              @model={{projectModel}}\n              @hasNextPage={{false}}\n              @disabled={{this.createProject.isRunning}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              data-test-new-project-address\n            />\n            <PtlInput\n              @type='date'\n              @label={{t 'common.Start date'}}\n              @key='startDate'\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              @required={{true}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-start-date\n            />\n            <PtlInput\n              @type='textarea'\n              @label={{t 'common.Description'}}\n              @key='description'\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-description\n            />\n          </div>\n  \n          <div class='modal-footer'>\n            <PtlInput\n              @containerClass='form-check'\n              @labelClass='m-0'\n              @type='checkbox'\n              @label={{t 'common.Open project after creation'}}\n              @key='openAndSave'\n              @model={{projectModel}}\n              @forceValidationVisible={{gt this.createProject.performCount 0}}\n              disabled={{this.createProject.isRunning}}\n              data-test-new-project-open-and-save\n            />\n  \n            <button\n              type='button'\n              class='btn btn-secondary text-white'\n              {{on 'click' this.closeNewProjectForm}}\n              data-test-new-project-close-button\n            >\n              {{t 'common.Cancel'}}\n            </button>\n            <button\n              type='button'\n              class='btn btn-primary'\n              disabled={{this.createProject.isRunning}}\n              {{on 'click' (perform this.createProject projectModel)}}\n              data-test-new-project-save-button\n            >\n              {{#if this.createProject.isRunning}}\n                {{t 'common.Creating project'}}&hellip;\n              {{else}}\n                {{t 'common.Create project'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/let}}\n      </form>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"qG+2Ig7m\",\n    \"block\": \"[[[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h1\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Projects\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,\\\"data-test-project-status-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,10],[[28,[37,11],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[1]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,12],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"aria-label\\\",\\\"Search\\\"],[24,\\\"data-test-project-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"canManageProjects\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,\\\"data-test-project-add-new-project\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,0,[\\\"openNewProjectForm\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\" \\\"],[1,[28,[35,6],[\\\"common.New\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"projects\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"filteredProjects\\\",\\\"length\\\"]],[[[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[\\\"canUseProjectCopy\\\"],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"offset-3 col-1 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-3 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Address\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-2 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Project start\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-2 fw-bold text-center\\\"],[12],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-1 fw-bold text-center\\\"],[12],[1,[28,[35,6],[\\\"common.Actions\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"offset-3 col-2 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Reference\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-3 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Address\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-2 fw-bold\\\"],[12],[1,[28,[35,6],[\\\"common.Project start\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-2 fw-bold text-center\\\"],[12],[1,[28,[35,6],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[8,[39,18],null,[[\\\"@list\\\",\\\"@onUpdate\\\",\\\"@disableDragging\\\",\\\"@itemComponent\\\"],[[30,0,[\\\"filteredProjects\\\"]],[28,[37,19],[[30,0,[\\\"onProjectListUpdate\\\"]]],null],[28,[37,20],[[30,0,[\\\"canManageProjects\\\"]]],null],[50,\\\"project-card\\\",0,null,[[\\\"disableDragging\\\"],[[28,[37,20],[[30,0,[\\\"canManageProjects\\\"]]],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,6],[\\\"common.No projects\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,17],[\\\"entityHasSubcontractorPackage\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mt-5 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,5,\\\"margin: 0; font-size: 14px;\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"shared.branding.Proudly powered by\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"img\\\"],[14,5,\\\"margin-left: 10px; width: 180px;\\\"],[15,\\\"src\\\",[30,0,[\\\"attentionSafetyLogoSrc\\\"]]],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"newProjectData\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,10],[[28,[37,11],[[30,0,[\\\"newProjectData\\\"]]],null],false],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"form\\\"],[14,\\\"data-test-new-project-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[44,[[28,[37,29],[[30,0,[\\\"newProjectData\\\"]],[30,0,[\\\"projectValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-name\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"name\\\",[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-name\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"select\\\",[28,[37,6],[\\\"shared.task.Contract type\\\"],null],\\\"contractType\\\",true,[30,0,[\\\"contractType\\\"]],[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-reference\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Reference\\\"],null],\\\"projectReference\\\",[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,32],[[24,\\\"data-test-new-project-address\\\",\\\"\\\"]],[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@disabled\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"onAddressChange\\\",\\\"isRunning\\\"]],[30,0,[\\\"addressSuggestions\\\"]],[28,[37,6],[\\\"entity.builda-price.projects.project.settings.No address found\\\"],null],[28,[37,10],[[30,0,[\\\"setAddress\\\"]],[30,2]],null],[30,0,[\\\"onAddressChange\\\"]],400,[28,[37,6],[\\\"common.Address\\\"],null],\\\"address\\\",[30,2],false,[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-start-date\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.Start date\\\"],null],\\\"startDate\\\",[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-description\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,6],[\\\"common.Description\\\"],null],\\\"description\\\",[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,30],[[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-open-and-save\\\",\\\"\\\"]],[[\\\"@containerClass\\\",\\\"@labelClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"form-check\\\",\\\"m-0\\\",\\\"checkbox\\\",[28,[37,6],[\\\"common.Open project after creation\\\"],null],\\\"openAndSave\\\",[30,2],[28,[37,31],[[30,0,[\\\"createProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,\\\"data-test-new-project-close-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[30,0,[\\\"closeNewProjectForm\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-project-save-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"createProject\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createProject\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Creating project\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Create project\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"projectModel\\\"],false,[\\\"main\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h1\\\",\\\"t\\\",\\\"div\\\",\\\"span\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"input\\\",\\\"button\\\",\\\"on\\\",\\\"fa-icon\\\",\\\"loading-icon\\\",\\\"includes-feature-flags\\\",\\\"drag-sort-list\\\",\\\"perform\\\",\\\"not\\\",\\\"component\\\",\\\"h2\\\",\\\"h3\\\",\\\"p\\\",\\\"img\\\",\\\"modal-dialog\\\",\\\"form\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"new-combo-box\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <ModuleNavigation::Project\n      @selectedProject={{this.model.project.last.value}}\n      @openProjects={{this.model.openProjects.last.value}}\n      @selectedProjectIsLoading={{this.model.project.isRunning}}\n      @openProjectsIsLoading={{this.model.openProjects.isRunning}}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component\n        'module-navigation/project'\n        model=this.model.project.last.value.id\n        selectedProject=this.model.project.last.value\n        openProjects=this.model.openProjects.last.value\n        selectedProjectIsLoading=this.model.project.isRunning\n        openProjectsIsLoading=this.model.openProjects.isRunning\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Project')}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"jQBPmjfM\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/project\\\",0,null,[[\\\"model\\\",\\\"selectedProject\\\",\\\"openProjects\\\",\\\"selectedProjectIsLoading\\\",\\\"openProjectsIsLoading\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"isRunning\\\"]]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Project\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"module-navigation/project\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/documents\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Documents'}}</h2>\n      {{/if}}\n    </header>\n    <div class='mt-3'>\n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <div class='card width--large'>\n          <DragAndDropContainer\n            @parent={{this.project}}\n            @onUploadComplete={{this.onUploadComplete}}\n            @isDragAndDropVisible={{this.isEditable}}\n          >\n            <AttachmentTable\n              @attachments={{this.attachments}}\n              @parent={{this.project}}\n              @project={{this.project}}\n              @users={{this.model.users.last.value}}\n            />\n          </DragAndDropContainer>\n        </div>\n      {{/if}}\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"bryRq7OU\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,5],[\\\"common.Documents\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"card width--large\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"project\\\"]],[30,0,[\\\"onUploadComplete\\\"]],[30,0,[\\\"isEditable\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@attachments\\\",\\\"@parent\\\",\\\"@project\\\",\\\"@users\\\"],[[30,0,[\\\"attachments\\\"]],[30,0,[\\\"project\\\"]],[30,0,[\\\"project\\\"]],[30,0,[\\\"model\\\",\\\"users\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"div\\\",\\\"loading-icon\\\",\\\"drag-and-drop-container\\\",\\\"attachment-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/documents.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/estimate\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"iyZe6Am+\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/estimate.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/estimates/estimate-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"PYdlXigs\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/estimates/estimate-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/estimates/estimate\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Estimates')\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.projects.project.estimates'\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <LinkTo @route='entity.builda-price.projects.project.estimates' class='fs-5'>\n      {{t 'common.Estimates'}}\n    </LinkTo>\n    <FaIcon @icon='chevron-right' class='mx-2 fs-6 text-secondary' />\n    <span class='fw-bold fs-5'>\n      {{this.model.estimate.name}}\n    </span>\n    <header class='border-bottom align-items-center mb-3'>\n      <h2 class='my-2'>{{this.model.estimate.name}}</h2>\n    </header>\n    <div class='embed-builda-price-client-addon'>\n      {{outlet}}\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"t4xOPaL4\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Estimates\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.projects.project.estimates\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,6],[[24,0,\\\"fs-5\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.estimates\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[1,[28,[35,4],[\\\"common.Estimates\\\"],null]],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n  \\\"],[8,[39,7],[[24,0,\\\"mx-2 fs-6 text-secondary\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n  \\\"],[10,1],[14,0,\\\"fw-bold fs-5\\\"],[12],[1,\\\"\\\\n    \\\"],[1,[30,0,[\\\"model\\\",\\\"estimate\\\",\\\"name\\\"]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom align-items-center mb-3\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,[30,0,[\\\"model\\\",\\\"estimate\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"embed-builda-price-client-addon\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"header\\\",\\\"h2\\\",\\\"div\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/estimates/estimate.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/estimates/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! template-lint-disable no-nested-interactive }}\n  {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Estimates')\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Estimates'}}</h2>\n      {{/if}}\n  \n      <div class='d-flex align-items-center flex-wrap'>\n        {{#if\n          (includes-feature-flags\n            this.model.project.last.value 'canManageEstimates'\n          )\n        }}\n          {{#if this.model.unlinkedEstimates.last.value.length}}\n            <span class='m-1'>\n              <button\n                type='button'\n                class='btn btn-primary text-white text-nowrap'\n                {{on 'click' (fn (mut this.showUnlinkedEstimatesDialog) true)}}\n                data-test-estimate-import-estimates-from-pricing\n              >\n                <FaIcon @icon='link' />&nbsp;&nbsp;{{t\n                  'entity.builda-price.projects.project.estimates.Import unlinked estimates from Pricing'\n                }}\n              </button>\n            </span>\n          {{/if}}\n        {{/if}}\n  \n        {{#if (media 'isDesktop')}}\n          <span class='m-1'>\n            <SelectInput\n              @value={{this.filter}}\n              @action={{fn (mut this.filter)}}\n              @class='form-control select-box'\n              data-test-estimate-status-filter\n              as |si|\n            >\n              <si.option @value='all'>{{t\n                  'entity.builda-price.projects.project.estimates.All estimates'\n                }}</si.option>\n              <si.option @value='DRAFT'>{{t\n                  'entity.builda-price.projects.project.estimates.Draft estimates'\n                }}</si.option>\n              <si.option @value='IMPORTED'>{{t\n                  'entity.builda-price.projects.project.estimates.Imported estimates'\n                }}</si.option>\n              <si.option @value='APPROVED'>{{t\n                  'entity.builda-price.projects.project.estimates.Approved estimates'\n                }}</si.option>\n              <si.option @value='REJECTED'>{{t\n                  'entity.builda-price.projects.project.estimates.Rejected estimates'\n                }}</si.option>\n            </SelectInput>\n          </span>\n  \n          <span class='m-1'>\n            <Input\n              class='form-control'\n              placeholder={{t\n                'entity.builda-price.projects.project.estimates.Search for estimates'\n              }}\n              @type='text'\n              @value={{this.searchString}}\n              data-test-estimate-search\n            />\n          </span>\n        {{/if}}\n  \n        {{#if\n          (includes-feature-flags\n            this.model.project.last.value 'canManageEstimates'\n          )\n        }}\n          <span class='m-1'>\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap'\n              {{on 'click' (perform this.openNewEstimateForm)}}\n              data-test-estimate-create\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t\n                'entity.builda-price.projects.project.estimates.Create new estimate'\n              }}\n            </button>\n          </span>\n        {{/if}}\n      </div>\n    </header>\n    {{#if this.model.estimates.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if (media 'isDesktop')}}\n        <div class='px-3'>\n          <div class='row'>\n            {{#if\n              (includes-feature-flags\n                this.model.project.last.value 'canManageEstimates'\n              )\n            }}\n              <div class='col-3 offset-3 fw-bold'>{{t 'common.Merchant'}}</div>\n              <div class='col-2 fw-bold'>{{t 'shared.report.Date created'}}</div>\n              <div class='col-2 fw-bold text-center'>{{t 'common.Status'}}</div>\n              <div class='col-2 fw-bold text-center'>{{t 'common.Actions'}}</div>\n            {{else}}\n              <div class='col-3 offset-3 fw-bold'>{{t 'common.Merchant'}}</div>\n              <div class='col-3 fw-bold'>{{t 'shared.report.Date created'}}</div>\n              <div class='col-3 fw-bold text-center'>{{t 'common.Status'}}</div>\n            {{/if}}\n          </div>\n        </div>\n      {{/if}}\n  \n      {{#each this.filteredEstimates as |estimate|}}\n        <div\n          role='button'\n          class='estimates__card card shadow-sm text-dark p-3 my-3'\n          {{on 'click' (fn this.onEstimateRowClick estimate.id)}}\n          data-test-estimate={{estimate.id}}\n        >\n          {{#if\n            (includes-feature-flags\n              this.model.project.last.value 'canManageEstimates'\n            )\n          }}\n            <div class='row align-items-center'>\n              <div\n                class='col fs-2 estimates__card-estimate-name'\n                data-test-estimate-name={{estimate.id}}\n              >\n                {{estimate.name}}\n              </div>\n              {{#if (media 'isDesktop')}}\n                <div class='col-3 d-flex flex-row flex-wrap fs-5'>\n                  {{#if estimate.pricingMerchantName}}\n                    {{estimate.pricingMerchantName}}\n                  {{else}}\n                    —\n                  {{/if}}\n                </div>\n                <div class='col-2 d-flex flex-row flex-wrap fs-5'>\n                  {{#if estimate.dateCreated}}\n                    {{moment-format\n                      estimate.dateCreated\n                      (t 'date.shortWithWeekday')\n                    }}\n                  {{else}}\n                    —\n                  {{/if}}\n                </div>\n              {{/if}}\n              <div class='col-lg-2 col-3 d-flex justify-content-center'>\n                <span\n                  class='badge rounded-pill fs-6 px-3 py-2\n                    {{if (eq estimate.status \"APPROVED\") \"bg-success\"}}\n                    {{if (eq estimate.status \"REJECTED\") \"bg-danger\"}}\n                    {{if (eq estimate.status \"DRAFT\") \"bg-warning text-dark\"}}\n                    {{if (eq estimate.status \"IMPORTED\") \"bg-info\"}}\n                    '\n                  data-test-estimate-status={{estimate.id}}\n                >\n                  {{convert-to-title-case estimate.status}}\n                </span>\n              </div>\n              <div class='col-2 d-flex align-items-center justify-content-center'>\n                <PopOver\n                  class='p-2'\n                  @direction='bottom-left'\n                  {{on 'click' this.noop}}\n                  as |po|\n                >\n                  <FaIcon @icon='ellipsis-h' role='button' class='fs-3' />\n                  <po.Content>\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      {{on\n                        'click'\n                        (stop-propagation (fn this.openEditEstimateForm estimate))\n                      }}\n                      data-test-estimate-edit\n                    >\n                      <FaIcon @icon='pen' />&nbsp;&nbsp;{{t 'common.Edit'}}\n                    </button>\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      data-test-estimate-duplicate\n                      {{on\n                        'click'\n                        (stop-propagation\n                          (fn (mut this.duplicateEstimateData) estimate)\n                        )\n                      }}\n                    >\n                      <FaIcon @icon='clone' />&nbsp;&nbsp;{{t 'common.Duplicate'}}\n                    </button>\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      data-test-estimate-add-templates\n                      {{on\n                        'click'\n                        (stop-propagation\n                          (perform this.getTemplateOptions estimate)\n                        )\n                      }}\n                    >\n                      <FaIcon @icon='folder' />&nbsp;&nbsp;{{t\n                        'entity.builda-price.projects.project.estimates.Import template'\n                      }}\n                    </button>\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      {{on\n                        'click'\n                        (stop-propagation\n                          (perform this.getPreloadedQuotes estimate)\n                        )\n                      }}\n                    >\n                      <FaIcon @icon='folder-open' />&nbsp;&nbsp;{{t\n                        'entity.builda-price.projects.project.estimates.Import materials'\n                      }}\n                    </button>\n                    <button\n                      type='button'\n                      class='dropdown-item text-nowrap fs-5'\n                      {{on\n                        'click'\n                        (stop-propagation\n                          (fn (mut this.estimateForGenerateTasks) estimate)\n                        )\n                      }}\n                    >\n                      <FaIcon @icon='file-export' />&nbsp;&nbsp;{{t\n                        'entity.builda-price.projects.project.estimates.Generate tasks'\n                      }}\n                    </button>\n                  </po.Content>\n                </PopOver>\n              </div>\n            </div>\n          {{else}}\n            <div class='row align-items-center'>\n              <div\n                class='col fs-2 estimates__card-estimate-name'\n                data-test-estimate-name={{estimate.id}}\n              >\n                {{estimate.name}}\n              </div>\n              {{#if (media 'isDesktop')}}\n                <div class='col-3 d-flex flex-row flex-wrap fs-5'>\n                  {{#if estimate.pricingMerchantName}}\n                    {{estimate.pricingMerchantName}}\n                  {{else}}\n                    —\n                  {{/if}}\n                </div>\n                <div class='col-3 d-flex flex-row flex-wrap fs-5'>\n                  {{#if estimate.dateCreated}}\n                    {{moment-format\n                      estimate.dateCreated\n                      (t 'date.shortWithWeekday')\n                    }}\n                  {{else}}\n                    —\n                  {{/if}}\n                </div>\n              {{/if}}\n              <div class='col-3 d-flex justify-content-center'>\n                <span\n                  class='badge rounded-pill fs-6 px-3 py-2\n                    {{if (eq estimate.status \"APPROVED\") \"bg-success\"}}\n                    {{if (eq estimate.status \"REJECTED\") \"bg-danger\"}}\n                    {{if (eq estimate.status \"DRAFT\") \"bg-warning text-dark\"}}\n                    {{if (eq estimate.status \"IMPORTED\") \"bg-info\"}}\n                    '\n                  data-test-estimate-status={{estimate.id}}\n                >\n                  {{convert-to-title-case estimate.status}}\n                </span>\n              </div>\n            </div>\n          {{/if}}\n        </div>\n      {{else}}\n        <div class='error-page error-page--no-data'>\n          <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n          <h3 class='h3 error-page__title'>{{t\n              'entity.builda-price.projects.project.estimates.No estimates'\n            }}</h3>\n        </div>\n      {{/each}}\n  \n    {{/if}}\n  </article>\n  {{#if this.editingEstimateData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.editingEstimateData) null}}\n      @containerClass='modal-content estimates__modal-container'\n    >\n  \n      <form data-test-edit-estimate-form>\n        {{#let\n          (changeset this.editingEstimateData this.editEstimateValidationMap)\n          as |estimateModel|\n        }}\n          <div class='modal-body'>\n            <PtlInput\n              @type='text'\n              @label={{t 'common.Name'}}\n              @key='name'\n              @model={{estimateModel}}\n              @forceValidationVisible={{gt this.editEstimate.performCount 0}}\n              @required={{true}}\n              disabled={{this.editEstimate.isRunning}}\n              data-test-edit-estimate-name\n            />\n            <PtlInput\n              @type='select'\n              @label={{t 'common.Status'}}\n              @key='status'\n              @options={{this.status}}\n              @model={{estimateModel}}\n              @forceValidationVisible={{gt this.editEstimate.performCount 0}}\n              @required={{true}}\n              disabled={{this.editEstimate.isRunning}}\n              data-test-edit-estimate-status\n            />\n          </div>\n  \n          <div class='modal-footer'>\n            <div class='me-auto'>\n              {{#unless this.editEstimate.isRunning}}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  {{on\n                    'click'\n                    (fn this.openDeleteModal this.editingEstimateData.estimate)\n                  }}\n                  data-test-edit-estimate-delete-button\n                >\n                  {{t\n                    'entity.builda-price.projects.project.estimates.Delete estimate'\n                  }}\n                </button>\n              {{/unless}}\n            </div>\n            <div>\n              {{#if this.editEstimate.isRunning}}\n                <button\n                  type='button'\n                  class='btn btn-primary ms-2'\n                  disabled={{true}}\n                >\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t\n                    'entity.builda-price.projects.project.estimates.Editing estimate'\n                  }}…\n                </button>\n              {{else}}\n                <button\n                  type='button'\n                  class='btn btn-secondary text-white ms-2'\n                  {{on 'click' (fn (mut this.editingEstimateData) null)}}\n                  data-test-edit-estimate-close-button\n                >{{t 'common.Cancel'}}</button>\n                <button\n                  type='button'\n                  class='btn btn-primary ms-2'\n                  disabled={{this.editEstimate.isRunning}}\n                  {{on 'click' (perform this.editEstimate estimateModel)}}\n                  data-test-edit-estimate-save-button\n                >{{t 'common.Save'}}</button>\n              {{/if}}\n            </div>\n          </div>\n  \n        {{/let}}\n      </form>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.newEstimateData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.newEstimateData) null}}\n      @containerClass='modal-content estimates__modal-container'\n    >\n      {{#if this.openNewEstimateForm.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n  \n        <form data-test-new-estimate-form>\n          {{#let\n            (changeset this.newEstimateData this.createNewEstimateValidationMap)\n            as |estimateModel|\n          }}\n            <div class='modal-body'>\n  \n              <PtlInput\n                @type='text'\n                @label={{t 'common.Name'}}\n                @key='name'\n                @model={{estimateModel}}\n                @forceValidationVisible={{gt this.createEstimate.performCount 0}}\n                @required={{true}}\n                disabled={{this.createEstimate.isRunning}}\n                data-test-new-estimate-name\n              />\n              <PtlInput\n                @type='select'\n                @label={{t 'common.Merchant'}}\n                @key='merchant'\n                @options={{this.merchantList}}\n                @model={{estimateModel}}\n                @forceValidationVisible={{gt this.createEstimate.performCount 0}}\n                @required={{true}}\n                disabled={{this.createEstimate.isRunning}}\n                data-test-new-estimate-merchant\n              />\n            </div>\n  \n            <div class='modal-footer'>\n              <div class='d-flex align-items-center'>\n                {{#if this.createEstimate.isRunning}}\n                  <button\n                    type='button'\n                    class='btn btn-primary ms-2'\n                    disabled={{true}}\n                  >\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t\n                      'entity.builda-price.projects.project.estimates.Creating estimate'\n                    }}…\n                  </button>\n                {{else}}\n                  <PtlInput\n                    @containerClass='form-check'\n                    @labelClass='m-0'\n                    @type='checkbox'\n                    @label={{t\n                      'entity.builda-price.projects.project.estimates.Open estimate after creation'\n                    }}\n                    @key='openAndSave'\n                    @model={{estimateModel}}\n                    @forceValidationVisible={{gt\n                      this.createEstimate.performCount\n                      0\n                    }}\n                    disabled={{this.createEstimate.isRunning}}\n                    data-test-new-estimate-open-and-save\n                  />\n  \n                  <button\n                    type='button'\n                    class='btn btn-secondary text-white ms-2'\n                    {{on 'click' (fn (mut this.newEstimateData) null)}}\n                    data-test-new-estimate-close-button\n                  >{{t 'common.Cancel'}}</button>\n                  <button\n                    type='button'\n                    class='btn btn-primary ms-2'\n                    disabled={{this.createEstimate.isRunning}}\n                    {{on 'click' (perform this.createEstimate estimateModel)}}\n                    data-test-new-estimate-save-button\n                  >{{t\n                      'entity.builda-price.projects.project.estimates.Create estimate'\n                    }}</button>\n                {{/if}}\n              </div>\n            </div>\n          {{/let}}\n        </form>\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  \n  <ConfirmDelete\n    @visible={{this.deletingEstimateData}}\n    @message={{this.deleteMessages}}\n    @title={{t 'entity.builda-price.projects.project.estimates.Delete estimate'}}\n    @confirmText={{t\n      'entity.builda-price.projects.project.estimates.delete estimate'\n    }}\n    @deleteButtonText={{t\n      'entity.builda-price.projects.project.estimates.Delete estimate'\n    }}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{perform this.deleteEstimate}}\n    @onCancel={{fn this.closeDeleteModal this.deletingEstimateData}}\n  >\n    <p>{{t 'shared.estimate.This action cannot be undone'}}</p>\n  </ConfirmDelete>\n  \n  {{#if this.duplicateEstimateData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.duplicateEstimateData) null}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'entity.builda-price.projects.project.estimates.areYouSureYouWantToDuplicateThisEstimate'\n          }}\n        </p>\n      </div>\n      <div class='modal-footer'>\n        {{#if this.duplicateEstimate.isRunning}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'entity.builda-price.projects.project.estimates.Duplicating estimate'\n            }}…\n          </button>\n        {{else}}\n          <div class='form-check'>\n            <Input\n              data-test-attach-duplicate-estimate-to-current-project\n              @type='checkbox'\n              id='duplicateAndAttach'\n              class='form-check-input'\n              disabled={{this.duplicateEstimate.isRunning}}\n              {{on\n                'click'\n                (fn (mut this.attachToProject) (not this.attachToProject))\n              }}\n            />\n            <label for='duplicateAndAttach'>{{t\n                'entity.builda-price.projects.project.estimates.Attach to current project'\n              }}\n            </label>\n          </div>\n  \n          <button\n            class='btn btn-secondary text-white'\n            type='button'\n            disabled={{this.duplicateEstimate.isRunning}}\n            {{on 'click' (fn (mut this.duplicateEstimateData) null)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-primary text-white'\n            type='button'\n            disabled={{this.duplicateEstimate.isRunning}}\n            {{on 'click' (perform this.duplicateEstimate)}}\n            data-test-duplicate-estimate-btn\n          >\n            {{t 'common.Duplicate'}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.importTemplateData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content estimates__modal-container'\n      @onClose={{fn (mut this.importTemplateData) null}}\n      @translucentOverlay={{true}}\n    >\n      {{#if this.getTemplateOptions.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <form>\n          <div class='modal-body'>\n            <p>{{t\n                'entity.builda-price.projects.project.estimates.pleaseSelectTheTemplatesYouWouldLikeToImport'\n              }}</p>\n            <div class='ember-power-select--auto-height'>\n              <PowerSelectMultiple\n                @options={{this.templates}}\n                @selected={{this.selectedTemplates}}\n                @searchEnabled={{true}}\n                @searchField='name'\n                @allowClear={{true}}\n                @required={{true}}\n                @placeholder={{t\n                  'entity.builda-price.projects.project.estimates.Select templates'\n                }}\n                @onChange={{fn (mut this.selectedTemplates)}}\n                as |template|\n              >\n                {{template.name}}\n              </PowerSelectMultiple>\n            </div>\n          </div>\n          <div class='modal-footer'>\n            {{#if this.importTemplates.isRunning}}\n              <button\n                type='button'\n                class='btn btn-primary ms-2'\n                disabled={{true}}\n              >\n                <span class='spinner-border spinner-border-sm'>\n                </span>&nbsp;&nbsp;{{t\n                  'entity.builda-price.projects.project.estimates.Importing templates'\n                }}&hellip;\n              </button>{{else}}\n              <button\n                type='button'\n                class='btn btn-secondary text-white ms-2'\n                {{on 'click' (fn (mut this.importTemplateData) null)}}\n              >{{t 'common.Cancel'}}</button>\n              <button\n                type='button'\n                class='btn btn-primary ms-2'\n                {{on 'click' (perform this.importTemplates)}}\n              >\n                {{t 'common.Import'}}\n              </button>\n            {{/if}}\n          </div>\n        </form>\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.importMaterialsData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{this.destroyImportMaterialsModal}}\n      @containerClass='modal-content modal-dialog-scrollable w-auto max-width-75 h-auto'\n    >\n      {{#if this.getPreloadedQuotes.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <div class='modal-body'>\n          {{#if this.newFeatureFlags.entityIsCalStudent}}\n            <p class='alert alert-warning'>\n              {{t\n                'entity.builda-price.projects.project.estimates.importMaterialsWarning'\n              }}\n            </p>\n          {{/if}}\n  \n          <p id='labelForImportMaterials'>\n            {{t\n              'entity.builda-price.projects.project.estimates.selectYourMaterialsQuoteFromTheListOrUploadYourOwn'\n            }}\n          </p>\n          <PowerSelect\n            @options={{this.quotes}}\n            @selected={{this.selectedQuote}}\n            @searchEnabled={{true}}\n            @searchField='quoteNumber'\n            @allowClear={{true}}\n            @onChange={{fn (mut this.selectedQuote)}}\n            @closeOnSelect={{true}}\n            @afterOptionsComponent={{component\n              'pricing-quote-uploader'\n              onFileUpload=this.onFileUpload\n              fileFormats=this.supportedFileFormats\n            }}\n            @placeholder={{t\n              'entity.builda-price.projects.project.estimates.Select an existing quote file'\n            }}\n            as |quote|\n          >\n  \n            {{quote.quoteNumber}}\n            {{#if quote.quoteVersion}}\n              - v{{quote.quoteVersion}}\n            {{/if}}\n            {{#if quote.dateCreated}}\n              {{moment-format quote.dateCreated (t 'date.longWithoutWeekday')}}\n            {{/if}}\n  \n          </PowerSelect>\n        </div>\n        <div class='modal-footer'>\n          <button\n            class='btn btn-secondary text-white'\n            type='button'\n            {{on 'click' this.destroyImportMaterialsModal}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{or\n              (not this.selectedQuote)\n              this.importMaterials.isRunning\n            }}\n            {{on 'click' (perform this.importMaterials)}}\n          >\n            {{#if this.importMaterials.isRunning}}\n              &nbsp;&nbsp;{{t\n                'entity.builda-price.projects.project.estimates.Importing materials'\n              }}&hellip;\n            {{else}}\n              {{t\n                'entity.builda-price.projects.project.estimates.Import materials'\n              }}\n            {{/if}}\n          </button>\n        </div>\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.estimateForGenerateTasks}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{this.closeGenerateTasks}}\n      @containerClass='modal-content estimates__modal-container'\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'entity.builda-price.projects.project.estimates.thisProcessWillGenerateTasksFromEachOfTheItemsInYourEstimate'\n          }}\n        </p>\n        <p class='fw-bold mb-2'>{{t\n            'entity.builda-price.projects.project.estimates.Task generation options'\n          }}:</p>\n        <label>{{t\n            'entity.builda-price.projects.project.estimates.Labour and materials'\n          }}&nbsp;\n          <InfoPopup\n            @text={{t\n              'entity.builda-price.projects.project.estimates.groupingItemsBySubheadingThenProductUsageExplanation'\n            }}\n          />\n        </label>\n  \n        <div class='d-flex my-1'>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupLabourAndMaterialUsage'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{not this.groupLabourAndMaterialBySubheading}}\n                {{on\n                  'click'\n                  (fn (mut this.groupLabourAndMaterialBySubheading) false)\n                }}\n              />\n  \n              <label for='groupLabourAndMaterialUsage'>\n                {{t 'common.Subheading'}}\n                <FaIcon @icon='chevron-right' class='mx-1 fs-6 text-secondary' />\n                {{t 'common.usage'}}\n              </label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupLabourAndMaterialBySubheading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupLabourAndMaterialBySubheading}}\n                {{on\n                  'click'\n                  (fn (mut this.groupLabourAndMaterialBySubheading) true)\n                }}\n              />\n              <label for='groupLabourAndMaterialBySubheading'>{{t\n                  'common.Subheading'\n                }}</label>\n            </div>\n          </div>\n        </div>\n  \n        <label class='pt-1'>{{t 'common.Miscellaneous'}}&nbsp;\n          <InfoPopup\n            @text={{t\n              'entity.builda-price.projects.project.estimates.groupingItemsByHeadingSubheadingExplanation'\n            }}\n          /></label>\n  \n        <div class='d-flex my-1'>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupMiscByItems'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupMiscByItems}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupMiscByItems) true)\n                    (action (mut this.groupMiscBySubheading) false)\n                    (action (mut this.groupMiscByHeading) false)\n                  )\n                }}\n              />\n              <label for='groupMiscByItems'>{{t 'common.Items'}}</label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupMiscBySubheading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupMiscBySubheading}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupMiscByItems) false)\n                    (action (mut this.groupMiscBySubheading) true)\n                    (action (mut this.groupMiscByHeading) false)\n                  )\n                }}\n              />\n              <label for='groupMiscBySubheading'>{{t\n                  'common.Subheadings'\n                }}</label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupMiscByHeading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupMiscByHeading}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupMiscByItems) false)\n                    (action (mut this.groupMiscBySubheading) false)\n                    (action (mut this.groupMiscByHeading) true)\n                  )\n                }}\n              />\n              <label for='groupMiscByHeading'>{{t 'common.Headings'}}</label>\n            </div>\n          </div>\n        </div>\n  \n        <label class='pt-1'>{{t 'common.Subcontractors'}}&nbsp;\n          <InfoPopup\n            @text={{t\n              'entity.builda-price.projects.project.estimates.groupingItemsBySubheadingOptionExplanation'\n            }}\n          /></label>\n  \n        <div class='d-flex my-1'>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupSubcontractorsUsage'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{not this.groupSubcontractorsBySubheading}}\n                {{on\n                  'click'\n                  (fn (mut this.groupSubcontractorsBySubheading) false)\n                }}\n              />\n              <label for='groupSubcontractorsUsage'>{{t 'common.Subheading'}}\n                <FaIcon @icon='chevron-right' class='mx-1 fs-6 text-secondary' />\n                {{t 'common.option'}}</label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupSubcontractorsBySubheading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupSubcontractorsBySubheading}}\n                {{on\n                  'click'\n                  (fn (mut this.groupSubcontractorsBySubheading) true)\n                }}\n              />\n              <label for='groupSubcontractorsBySubheading'>{{t\n                  'common.Subheading'\n                }}</label>\n            </div>\n          </div>\n        </div>\n  \n        <label class='pt-1'>{{t 'common.Overheads'}}&nbsp;\n          <InfoPopup\n            @text={{t\n              'entity.builda-price.projects.project.estimates.groupingItemsByHeadingSubheadingExplanation'\n            }}\n          /></label>\n        <div class='d-flex my-1'>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupOverheadByItems'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupOverheadByItems}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupOverheadByItems) true)\n                    (action (mut this.groupOverheadByHeading) false)\n                    (action (mut this.groupOverheadBySubheading) false)\n                  )\n                }}\n              />\n              <label for='groupOverheadByItems'>{{t 'common.Items'}}</label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupOverheadBySubheading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupOverheadBySubheading}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupOverheadByItems) false)\n                    (action (mut this.groupOverheadByHeading) false)\n                    (action (mut this.groupOverheadBySubheading) true)\n                  )\n                }}\n              />\n              <label for='groupOverheadBySubheading'>{{t\n                  'common.Subheadings'\n                }}</label>\n            </div>\n          </div>\n          <div class='px-2'>\n            <div class='form-check'>\n              <input\n                type='radio'\n                id='groupOverheadByHeading'\n                class='form-check-input'\n                disabled={{this.estimateForGenerateTasks.isRunning}}\n                checked={{this.groupOverheadByHeading}}\n                {{on\n                  'click'\n                  (pipe\n                    (action (mut this.groupOverheadByItems) false)\n                    (action (mut this.groupOverheadByHeading) true)\n                    (action (mut this.groupOverheadBySubheading) false)\n                  )\n                }}\n              />\n              <label for='groupOverheadByHeading'>{{t 'common.Headings'}}</label>\n            </div>\n          </div>\n        </div>\n      </div>\n  \n      <div class='modal-footer'>\n        {{#if this.generateTasks.isRunning}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'entity.builda-price.projects.project.estimates.Generating tasks'\n            }}…\n          </button>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-secondary text-white ms-2'\n            {{on 'click' this.closeGenerateTasks}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            {{on 'click' (perform this.generateTasks)}}\n          >{{t\n              'entity.builda-price.projects.project.estimates.Generate tasks'\n            }}</button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showUnlinkedEstimatesDialog}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{this.destroyImportUnlinkedEstimatesData}}\n      @containerClass='modal-content modal-dialog-scrollable w-auto max-width-50 h-auto'\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'entity.builda-price.projects.project.estimates.theEstimatesBelowWereCreatedInPricingAndAreNotYetLinkedWithAnyProject'\n          }}<br />\n          {{t\n            'entity.builda-price.projects.project.estimates.selectTheEstimatesForThisProjectFromTheListBelowImportingEstimatesWillLinkThemWithThisProject'\n          }}\n        </p>\n        <div\n          class='ember-power-select--auto-height'\n          data-test-import-estimate-from-pricing\n        >\n          <PowerSelectMultiple\n            @options={{this.model.unlinkedEstimates.last.value}}\n            @selected={{this.selectedUnlinkedEstimates}}\n            @searchEnabled={{true}}\n            @searchField='optionDescription'\n            @allowClear={{true}}\n            @required={{true}}\n            @placeholder={{t\n              'entity.builda-price.projects.project.estimates.Select the estimates for this project'\n            }}\n            @onChange={{fn (mut this.selectedUnlinkedEstimates)}}\n            as |template|\n          >\n            {{template.optionDescription}}\n          </PowerSelectMultiple>\n        </div>\n      </div>\n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary text-white'\n          {{on 'click' this.destroyImportUnlinkedEstimatesData}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary ms-2'\n          data-test-import-estimate-save-button\n          {{on 'click' (perform this.importSelectedUnlinkedEstimates)}}\n        >\n          {{#if this.importSelectedUnlinkedEstimates.isRunning}}\n            {{t\n              'entity.builda-price.projects.project.estimates.Importing estimates'\n            }}&hellip;\n          {{else}}\n            {{t\n              'entity.builda-price.projects.project.estimates.Import selected estimates'\n            }}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"eKgcu+p5\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Estimates\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Estimates\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null],[[[41,[30,0,[\\\"model\\\",\\\"unlinkedEstimates\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white text-nowrap\\\"],[24,\\\"data-test-estimate-import-estimates-from-pricing\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"showUnlinkedEstimatesDialog\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"link\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Import unlinked estimates from Pricing\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,17],[[24,\\\"data-test-estimate-status-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"filter\\\"]],[28,[37,14],[[28,[37,15],[[30,0,[\\\"filter\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"all\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.All estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"DRAFT\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Draft estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"IMPORTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Imported estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"APPROVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Approved estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"REJECTED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Rejected estimates\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Search for estimates\\\"],null]],[24,\\\"data-test-estimate-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null],[[[1,\\\"        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap\\\"],[24,\\\"data-test-estimate-create\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"openNewEstimateForm\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Create new estimate\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"estimates\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,20],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"px-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"col-3 offset-3 fw-bold\\\"],[12],[1,[28,[35,4],[\\\"common.Merchant\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-2 fw-bold\\\"],[12],[1,[28,[35,4],[\\\"shared.report.Date created\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-2 fw-bold text-center\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-2 fw-bold text-center\\\"],[12],[1,[28,[35,4],[\\\"common.Actions\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"col-3 offset-3 fw-bold\\\"],[12],[1,[28,[35,4],[\\\"common.Merchant\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-3 fw-bold\\\"],[12],[1,[28,[35,4],[\\\"shared.report.Date created\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-3 fw-bold text-center\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"filteredEstimates\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"estimates__card card shadow-sm text-dark p-3 my-3\\\"],[16,\\\"data-test-estimate\\\",[30,2,[\\\"id\\\"]]],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"onEstimateRowClick\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col fs-2 estimates__card-estimate-name\\\"],[15,\\\"data-test-estimate-name\\\",[30,2,[\\\"id\\\"]]],[12],[1,\\\"\\\\n              \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"col-3 d-flex flex-row flex-wrap fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"pricingMerchantName\\\"]],[[[1,\\\"                  \\\"],[1,[30,2,[\\\"pricingMerchantName\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  —\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-2 d-flex flex-row flex-wrap fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"dateCreated\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,23],[[30,2,[\\\"dateCreated\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  —\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,0],[14,0,\\\"col-lg-2 col-3 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[15,0,[29,[\\\"badge rounded-pill fs-6 px-3 py-2\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"APPROVED\\\"],null],\\\"bg-success\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"REJECTED\\\"],null],\\\"bg-danger\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"IMPORTED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n                  \\\"]]],[15,\\\"data-test-estimate-status\\\",[30,2,[\\\"id\\\"]]],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,25],[[30,2,[\\\"status\\\"]]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col-2 d-flex align-items-center justify-content-center\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,26],[[24,0,\\\"p-2\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@direction\\\"],[\\\"bottom-left\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[39,16],[[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"fs-3\\\"]],[[\\\"@icon\\\"],[\\\"ellipsis-h\\\"]],null],[1,\\\"\\\\n                \\\"],[8,[30,3,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-estimate-edit\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,27],[[28,[37,14],[[30,0,[\\\"openEditEstimateForm\\\"]],[30,2]],null]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"pen\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Edit\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-estimate-duplicate\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,27],[[28,[37,14],[[28,[37,15],[[30,0,[\\\"duplicateEstimateData\\\"]]],null],[30,2]],null]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"clone\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Duplicate\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-estimate-add-templates\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,27],[[28,[37,19],[[30,0,[\\\"getTemplateOptions\\\"]],[30,2]],null]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"folder\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Import template\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,27],[[28,[37,19],[[30,0,[\\\"getPreloadedQuotes\\\"]],[30,2]],null]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"folder-open\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Import materials\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,27],[[28,[37,14],[[28,[37,15],[[30,0,[\\\"estimateForGenerateTasks\\\"]]],null],[30,2]],null]],null]],null],[12],[1,\\\"\\\\n                    \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"file-export\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Generate tasks\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"]],[]]]]],[1,\\\"\\\\n              \\\"]],[3]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"row align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"col fs-2 estimates__card-estimate-name\\\"],[15,\\\"data-test-estimate-name\\\",[30,2,[\\\"id\\\"]]],[12],[1,\\\"\\\\n              \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"col-3 d-flex flex-row flex-wrap fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"pricingMerchantName\\\"]],[[[1,\\\"                  \\\"],[1,[30,2,[\\\"pricingMerchantName\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  —\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"col-3 d-flex flex-row flex-wrap fs-5\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"dateCreated\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,23],[[30,2,[\\\"dateCreated\\\"]],[28,[37,4],[\\\"date.shortWithWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  —\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,0],[14,0,\\\"col-3 d-flex justify-content-center\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[15,0,[29,[\\\"badge rounded-pill fs-6 px-3 py-2\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"APPROVED\\\"],null],\\\"bg-success\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"REJECTED\\\"],null],\\\"bg-danger\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"DRAFT\\\"],null],\\\"bg-warning text-dark\\\"],\\\"\\\\n                  \\\",[52,[28,[37,24],[[30,2,[\\\"status\\\"]],\\\"IMPORTED\\\"],null],\\\"bg-info\\\"],\\\"\\\\n                  \\\"]]],[15,\\\"data-test-estimate-status\\\",[30,2,[\\\"id\\\"]]],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,25],[[30,2,[\\\"status\\\"]]],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.No estimates\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"editingEstimateData\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[28,[37,14],[[28,[37,15],[[30,0,[\\\"editingEstimateData\\\"]]],null],null],null],\\\"modal-content estimates__modal-container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"form\\\"],[14,\\\"data-test-edit-estimate-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[44,[[28,[37,32],[[30,0,[\\\"editingEstimateData\\\"]],[30,0,[\\\"editEstimateValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,33],[[16,\\\"disabled\\\",[30,0,[\\\"editEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-edit-estimate-name\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Name\\\"],null],\\\"name\\\",[30,4],[28,[37,34],[[30,0,[\\\"editEstimate\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n          \\\"],[8,[39,33],[[16,\\\"disabled\\\",[30,0,[\\\"editEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-edit-estimate-status\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"select\\\",[28,[37,4],[\\\"common.Status\\\"],null],\\\"status\\\",[30,0,[\\\"status\\\"]],[30,4],[28,[37,34],[[30,0,[\\\"editEstimate\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"me-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"editEstimate\\\",\\\"isRunning\\\"]]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[24,\\\"data-test-edit-estimate-delete-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"openDeleteModal\\\"]],[30,0,[\\\"editingEstimateData\\\",\\\"estimate\\\"]]],null]],null],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Delete estimate\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"editEstimate\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Editing estimate\\\"],null]],[1,\\\"…\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-edit-estimate-close-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"editingEstimateData\\\"]]],null],null],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"editEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-edit-estimate-save-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"editEstimate\\\"]],[30,4]],null]],null],[12],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[4]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newEstimateData\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[28,[37,14],[[28,[37,15],[[30,0,[\\\"newEstimateData\\\"]]],null],null],null],\\\"modal-content estimates__modal-container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"openNewEstimateForm\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,20],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n      \\\"],[10,\\\"form\\\"],[14,\\\"data-test-new-estimate-form\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[44,[[28,[37,32],[[30,0,[\\\"newEstimateData\\\"]],[30,0,[\\\"createNewEstimateValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,33],[[16,\\\"disabled\\\",[30,0,[\\\"createEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-estimate-name\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Name\\\"],null],\\\"name\\\",[30,5],[28,[37,34],[[30,0,[\\\"createEstimate\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n            \\\"],[8,[39,33],[[16,\\\"disabled\\\",[30,0,[\\\"createEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-estimate-merchant\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"select\\\",[28,[37,4],[\\\"common.Merchant\\\"],null],\\\"merchant\\\",[30,0,[\\\"merchantList\\\"]],[30,5],[28,[37,34],[[30,0,[\\\"createEstimate\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createEstimate\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Creating estimate\\\"],null]],[1,\\\"…\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[8,[39,33],[[16,\\\"disabled\\\",[30,0,[\\\"createEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-estimate-open-and-save\\\",\\\"\\\"]],[[\\\"@containerClass\\\",\\\"@labelClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"form-check\\\",\\\"m-0\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Open estimate after creation\\\"],null],\\\"openAndSave\\\",[30,5],[28,[37,34],[[30,0,[\\\"createEstimate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,\\\"data-test-new-estimate-close-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"newEstimateData\\\"]]],null],null],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"createEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-new-estimate-save-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"createEstimate\\\"]],[30,5]],null]],null],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Create estimate\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[5]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,35],null,[[\\\"@visible\\\",\\\"@message\\\",\\\"@title\\\",\\\"@confirmText\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"deletingEstimateData\\\"]],[30,0,[\\\"deleteMessages\\\"]],[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Delete estimate\\\"],null],[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.delete estimate\\\"],null],[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Delete estimate\\\"],null],[28,[37,4],[\\\"common.Deleting\\\"],null],[28,[37,19],[[30,0,[\\\"deleteEstimate\\\"]]],null],[28,[37,14],[[30,0,[\\\"closeDeleteModal\\\"]],[30,0,[\\\"deletingEstimateData\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n  \\\"],[10,2],[12],[1,[28,[35,4],[\\\"shared.estimate.This action cannot be undone\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"duplicateEstimateData\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"duplicateEstimateData\\\"]]],null],null],null],true,\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.areYouSureYouWantToDuplicateThisEstimate\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"duplicateEstimate\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Duplicating estimate\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],[[24,\\\"data-test-attach-duplicate-estimate-to-current-project\\\",\\\"\\\"],[24,1,\\\"duplicateAndAttach\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"duplicateEstimate\\\",\\\"isRunning\\\"]]],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"attachToProject\\\"]]],null],[28,[37,37],[[30,0,[\\\"attachToProject\\\"]]],null]],null]],null]],[[\\\"@type\\\"],[\\\"checkbox\\\"]],null],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"duplicateAndAttach\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Attach to current project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"duplicateEstimate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"duplicateEstimateData\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"duplicateEstimate\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-duplicate-estimate-btn\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"duplicateEstimate\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Duplicate\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importTemplateData\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content estimates__modal-container\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"importTemplateData\\\"]]],null],null],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"getTemplateOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,20],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.pleaseSelectTheTemplatesYouWouldLikeToImport\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"ember-power-select--auto-height\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,39],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@allowClear\\\",\\\"@required\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"templates\\\"]],[30,0,[\\\"selectedTemplates\\\"]],true,\\\"name\\\",true,true,[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Select templates\\\"],null],[28,[37,14],[[28,[37,15],[[30,0,[\\\"selectedTemplates\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,6,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[6]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importTemplates\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[1,\\\"\\\\n              \\\"],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Importing templates\\\"],null]],[1,\\\"…\\\\n            \\\"],[13]],[]],[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"importTemplateData\\\"]]],null],null],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"importTemplates\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Import\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importMaterialsData\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[30,0,[\\\"destroyImportMaterialsModal\\\"]],\\\"modal-content modal-dialog-scrollable w-auto max-width-75 h-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"getPreloadedQuotes\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,20],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityIsCalStudent\\\"]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"alert alert-warning\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.importMaterialsWarning\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,2],[14,1,\\\"labelForImportMaterials\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.selectYourMaterialsQuoteFromTheListOrUploadYourOwn\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,40],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@allowClear\\\",\\\"@onChange\\\",\\\"@closeOnSelect\\\",\\\"@afterOptionsComponent\\\",\\\"@placeholder\\\"],[[30,0,[\\\"quotes\\\"]],[30,0,[\\\"selectedQuote\\\"]],true,\\\"quoteNumber\\\",true,[28,[37,14],[[28,[37,15],[[30,0,[\\\"selectedQuote\\\"]]],null]],null],true,[50,\\\"pricing-quote-uploader\\\",0,null,[[\\\"onFileUpload\\\",\\\"fileFormats\\\"],[[30,0,[\\\"onFileUpload\\\"]],[30,0,[\\\"supportedFileFormats\\\"]]]]],[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Select an existing quote file\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n          \\\"],[1,[30,7,[\\\"quoteNumber\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,7,[\\\"quoteVersion\\\"]],[[[1,\\\"            - v\\\"],[1,[30,7,[\\\"quoteVersion\\\"]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,7,[\\\"dateCreated\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,23],[[30,7,[\\\"dateCreated\\\"]],[28,[37,4],[\\\"date.longWithoutWeekday\\\"],null]],null]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"]],[7]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"destroyImportMaterialsModal\\\"]]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[28,[37,41],[[28,[37,37],[[30,0,[\\\"selectedQuote\\\"]]],null],[30,0,[\\\"importMaterials\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"importMaterials\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importMaterials\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Importing materials\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Import materials\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"estimateForGenerateTasks\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[30,0,[\\\"closeGenerateTasks\\\"]],\\\"modal-content estimates__modal-container\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.thisProcessWillGenerateTasksFromEachOfTheItemsInYourEstimate\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"fw-bold mb-2\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Task generation options\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Labour and materials\\\"],null]],[1,\\\" \\\\n        \\\"],[8,[39,42],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.groupingItemsBySubheadingThenProductUsageExplanation\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex my-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupLabourAndMaterialUsage\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[28,[37,37],[[30,0,[\\\"groupLabourAndMaterialBySubheading\\\"]]],null]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"groupLabourAndMaterialBySubheading\\\"]]],null],false],null]],null],[12],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupLabourAndMaterialUsage\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Subheading\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,16],[[24,0,\\\"mx-1 fs-6 text-secondary\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.usage\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupLabourAndMaterialBySubheading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupLabourAndMaterialBySubheading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"groupLabourAndMaterialBySubheading\\\"]]],null],true],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupLabourAndMaterialBySubheading\\\"],[12],[1,[28,[35,4],[\\\"common.Subheading\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"pt-1\\\"],[12],[1,[28,[35,4],[\\\"common.Miscellaneous\\\"],null]],[1,\\\" \\\\n        \\\"],[8,[39,42],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.groupingItemsByHeadingSubheadingExplanation\\\"],null]]],null],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex my-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupMiscByItems\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupMiscByItems\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByItems\\\"]]],null],true],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscBySubheading\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByHeading\\\"]]],null],false],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupMiscByItems\\\"],[12],[1,[28,[35,4],[\\\"common.Items\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupMiscBySubheading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupMiscBySubheading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByItems\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscBySubheading\\\"]]],null],true],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByHeading\\\"]]],null],false],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupMiscBySubheading\\\"],[12],[1,[28,[35,4],[\\\"common.Subheadings\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupMiscByHeading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupMiscByHeading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByItems\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscBySubheading\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupMiscByHeading\\\"]]],null],true],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupMiscByHeading\\\"],[12],[1,[28,[35,4],[\\\"common.Headings\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"pt-1\\\"],[12],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[1,\\\" \\\\n        \\\"],[8,[39,42],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.groupingItemsBySubheadingOptionExplanation\\\"],null]]],null],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex my-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupSubcontractorsUsage\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[28,[37,37],[[30,0,[\\\"groupSubcontractorsBySubheading\\\"]]],null]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"groupSubcontractorsBySubheading\\\"]]],null],false],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupSubcontractorsUsage\\\"],[12],[1,[28,[35,4],[\\\"common.Subheading\\\"],null]],[1,\\\"\\\\n              \\\"],[8,[39,16],[[24,0,\\\"mx-1 fs-6 text-secondary\\\"]],[[\\\"@icon\\\"],[\\\"chevron-right\\\"]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.option\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupSubcontractorsBySubheading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupSubcontractorsBySubheading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"groupSubcontractorsBySubheading\\\"]]],null],true],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupSubcontractorsBySubheading\\\"],[12],[1,[28,[35,4],[\\\"common.Subheading\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"pt-1\\\"],[12],[1,[28,[35,4],[\\\"common.Overheads\\\"],null]],[1,\\\" \\\\n        \\\"],[8,[39,42],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.groupingItemsByHeadingSubheadingExplanation\\\"],null]]],null],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex my-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupOverheadByItems\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupOverheadByItems\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByItems\\\"]]],null],true],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByHeading\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadBySubheading\\\"]]],null],false],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupOverheadByItems\\\"],[12],[1,[28,[35,4],[\\\"common.Items\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupOverheadBySubheading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupOverheadBySubheading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByItems\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByHeading\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadBySubheading\\\"]]],null],true],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupOverheadBySubheading\\\"],[12],[1,[28,[35,4],[\\\"common.Subheadings\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"px-2\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"form-check\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,1,\\\"groupOverheadByHeading\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"estimateForGenerateTasks\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"groupOverheadByHeading\\\"]]],[24,4,\\\"radio\\\"],[4,[38,13],[\\\"click\\\",[28,[37,43],[[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByItems\\\"]]],null],false],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadByHeading\\\"]]],null],true],null],[28,[37,44],[[30,0],[28,[37,15],[[30,0,[\\\"groupOverheadBySubheading\\\"]]],null],false],null]],null]],null],[12],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"groupOverheadByHeading\\\"],[12],[1,[28,[35,4],[\\\"common.Headings\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"generateTasks\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Generating tasks\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"closeGenerateTasks\\\"]]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"generateTasks\\\"]]],null]],null],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Generate tasks\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showUnlinkedEstimatesDialog\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\",\\\"@containerClass\\\"],[\\\"modal\\\",true,[30,0,[\\\"destroyImportUnlinkedEstimatesData\\\"]],\\\"modal-content modal-dialog-scrollable w-auto max-width-50 h-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.theEstimatesBelowWereCreatedInPricingAndAreNotYetLinkedWithAnyProject\\\"],null]],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.selectTheEstimatesForThisProjectFromTheListBelowImportingEstimatesWillLinkThemWithThisProject\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ember-power-select--auto-height\\\"],[14,\\\"data-test-import-estimate-from-pricing\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,39],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@allowClear\\\",\\\"@required\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"unlinkedEstimates\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedUnlinkedEstimates\\\"]],true,\\\"optionDescription\\\",true,true,[28,[37,4],[\\\"entity.builda-price.projects.project.estimates.Select the estimates for this project\\\"],null],[28,[37,14],[[28,[37,15],[[30,0,[\\\"selectedUnlinkedEstimates\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,8,[\\\"optionDescription\\\"]]],[1,\\\"\\\\n        \\\"]],[8]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"destroyImportUnlinkedEstimatesData\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[24,\\\"data-test-import-estimate-save-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"importSelectedUnlinkedEstimates\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"importSelectedUnlinkedEstimates\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Importing estimates\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.estimates.Import selected estimates\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"estimate\\\",\\\"po\\\",\\\"estimateModel\\\",\\\"estimateModel\\\",\\\"template\\\",\\\"quote\\\",\\\"template\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"div\\\",\\\"includes-feature-flags\\\",\\\"span\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"select-input\\\",\\\"input\\\",\\\"perform\\\",\\\"loading-icon\\\",\\\"each\\\",\\\"-track-array\\\",\\\"moment-format\\\",\\\"eq\\\",\\\"convert-to-title-case\\\",\\\"pop-over\\\",\\\"stop-propagation\\\",\\\"h3\\\",\\\"modal-dialog\\\",\\\"form\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"confirm-delete\\\",\\\"p\\\",\\\"not\\\",\\\"label\\\",\\\"power-select-multiple\\\",\\\"power-select\\\",\\\"or\\\",\\\"info-popup\\\",\\\"pipe\\\",\\\"action\\\",\\\"br\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/estimates/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/financials\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Financials'}}</h2>\n      {{/if}}\n    </header>\n  \n    {{#if (and this.isLoadingBudget this.isLoadingQuote)}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mt-3 d-flex flex-column align-items-start'>\n        <div class='d-flex flex-row align-items-start flex-wrap'>\n          {{#if\n            (includes-feature-flags\n              this.model.project.last.value 'canUseBudgetVersions'\n            )\n          }}\n            <div\n              class='border rounded p-4 d-flex flex-column mb-4 me-4'\n              style='min-width: 350px;'\n            >\n              <div class='d-flex align-items-center mb-3'>\n                <h2 class='m-0'>\n                  {{t 'common.Budget'}}\n                </h2>\n                {{#if\n                  (and\n                    (not this.isLoadingBudget)\n                    this.model.project.last.value.currentBudgetVersion\n                  )\n                }}\n                  <span class='ms-2 badge rounded-pill bg-primary'>\n                    {{t 'common.Version'}}\n                    {{this.model.project.last.value.currentBudgetVersion.versionNumber}}\n                  </span>\n                {{/if}}\n              </div>\n              {{#if this.isLoadingBudget}}\n                <LoadingIcon @type='ripple' />\n              {{else}}\n                {{#if this.model.project.last.value.currentBudgetVersion}}\n                  {{#if\n                    (and\n                      (gt\n                        this.model.project.last.value.draftBudgetChangeSet.changes.length\n                        0\n                      )\n                      this.canManageBudgetVersions\n                    )\n                  }}\n                    <div\n                      class='alert alert-primary d-flex flex-column'\n                      role='alert'\n                    >{{t\n                        'entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheBudgetSinceTheLastVersion'\n                        changes=(pluralize\n                          this.model.project.last.value.draftBudgetChangeSet.changes.length\n                          'change'\n                        )\n                        number=this.model.project.last.value.draftBudgetChangeSet.changes.length\n                      }}\n                      {{t\n                        'entity.builda-price.projects.project.financials.Create a version to update your budget'\n                      }}\n                      <button\n                        class='mt-3 btn btn-outline-primary btn-sm align-self-end'\n                        type='button'\n                        {{on 'click' (fn (mut this.creatingBudgetVersion) true)}}\n                      >\n                        {{t 'shared.financial.Create a version'}}\n                      </button>\n                    </div>\n                  {{/if}}\n  \n                  <table class='table'>\n                    <thead>\n                      <tr>\n                        <th></th>\n                        <th class='text-right'></th>\n                      </tr>\n                    </thead>\n                    <tbody>\n                      <tr>\n                        <th>{{t 'common.Labour hours'}}</th>\n                        <td class='text-right'>\n                          {{format-duration\n                            this.model.project.last.value.currentBudgetVersion.manHours\n                            emptyPlaceholder='–'\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <td colspan='4'>&nbsp;</td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Labour'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentBudgetVersion.labour\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Materials'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentBudgetVersion.materials\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Subcontractors'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentBudgetVersion.subcontractors\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Sums'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentBudgetVersion.sums\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                    </tbody>\n                    <tfoot>\n                      <tr>\n                        <th></th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentBudgetVersion.total\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                    </tfoot>\n                  </table>\n                {{else}}\n                  {{#if\n                    (gt\n                      this.model.project.last.value.draftBudgetChangeSet.changes.length\n                      0\n                    )\n                  }}\n                    <p class='m-0 mb-3'>\n                      {{if\n                        this.canManageBudgetVersions\n                        (t\n                          'entity.builda-price.projects.project.financials.whenYouAreHappyWithYourTaskBudgetsYouCanCommitThemAsYourFirstBudgetVersion'\n                        )\n                        (t\n                          'entity.builda-price.projects.project.financials.thereIsNoCommittedBudgetVersionForThisProject'\n                        )\n                      }}\n                    </p>\n                    {{#if this.canManageBudgetVersions}}\n                      <button\n                        type='button'\n                        class='btn btn-primary align-self-end'\n                        {{on 'click' (fn (mut this.creatingBudgetVersion) true)}}\n                      >\n                        {{t\n                          'entity.builda-price.projects.project.financials.Create the first budget version'\n                        }}\n                      </button>\n                    {{/if}}\n  \n                  {{else}}\n                    <p class='m-0 mb-3'>\n                      {{if\n                        this.canManageBudgetVersions\n                        (t\n                          'entity.builda-price.projects.project.financials.noneOfYourTasksHaveBudgetsToCreateABudgetCreateSomeTasksWithABudget'\n                        )\n                        (t\n                          'entity.builda-price.projects.project.financials.None of your tasks have budgets'\n                        )\n                      }}\n                    </p>\n                    <LinkTo\n                      class='btn btn-primary align-self-end'\n                      @route='entity.builda-price.projects.project.tasks'\n                    >\n                      {{t 'common.Go to tasks'}}&nbsp;\n                      <FaIcon @icon='external-link-alt' />\n                    </LinkTo>\n                  {{/if}}\n                {{/if}}\n              {{/if}}\n            </div>\n          {{/if}}\n  \n          {{#if\n            (includes-feature-flags\n              this.model.project.last.value 'canUseQuoteVersions'\n            )\n          }}\n            <div\n              class='border rounded p-4 d-flex flex-column mb-4'\n              style='min-width: 350px;'\n            >\n              <div class='d-flex align-items-center mb-3'>\n                <h2 class='m-0'>\n                  {{t 'common.Quote'}}\n                </h2>\n                {{#if\n                  (and\n                    (not this.isLoadingQuote)\n                    this.model.project.last.value.currentQuoteVersion\n                  )\n                }}\n                  <span class='ms-2 badge rounded-pill bg-primary'>\n                    {{t 'common.Version'}}\n                    {{this.model.project.last.value.currentQuoteVersion.versionNumber}}\n                  </span>\n                {{/if}}\n              </div>\n              {{#if this.isLoadingQuote}}\n                <LoadingIcon @type='ripple' />\n              {{else}}\n                {{#if this.model.project.last.value.currentQuoteVersion}}\n                  {{#if\n                    (and\n                      (gt\n                        this.model.project.last.value.draftQuoteChangeSet.changes.length\n                        0\n                      )\n                      this.canManageQuoteVersions\n                    )\n                  }}\n                    <div\n                      class='alert alert-primary d-flex flex-column'\n                      role='alert'\n                    >\n                      {{t\n                        'entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheQuoteSinceTheLastVersion'\n                        changes=(pluralize\n                          this.model.project.last.value.draftQuoteChangeSet.changes.length\n                          'change'\n                        )\n                        number=this.model.project.last.value.draftQuoteChangeSet.changes.length\n                      }}\n                      {{t\n                        'entity.builda-price.projects.project.financials.Create a version to update your quote'\n                      }}\n                      <button\n                        class='mt-3 btn btn-outline-primary btn-sm align-self-end'\n                        type='button'\n                        {{on 'click' (fn (mut this.creatingQuoteVersion) true)}}\n                      >\n                        {{t 'shared.financial.Create a version'}}\n                      </button>\n                    </div>\n                  {{/if}}\n  \n                  <table class='table'>\n                    <thead>\n                      <tr>\n                        <th></th>\n                        <th class='text-right'>{{t 'common.Total'}}</th>\n                      </tr>\n                    </thead>\n                    <tbody>\n                      <tr>\n                        <th>{{t 'common.Labour'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentQuoteVersion.labour\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Materials'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentQuoteVersion.materials\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Subcontractors'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentQuoteVersion.subcontractors\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                      <tr>\n                        <th>{{t 'common.Sums'}}</th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentQuoteVersion.sums\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                    </tbody>\n                    <tfoot>\n                      <tr>\n                        <th></th>\n                        <td class='text-right'>\n                          {{number-format\n                            this.model.project.last.value.currentQuoteVersion.total\n                            style='currency'\n                            dashZero=true\n                          }}\n                        </td>\n                      </tr>\n                    </tfoot>\n                  </table>\n                {{else}}\n                  {{#if\n                    (gt\n                      this.model.project.last.value.draftQuoteChangeSet.changes.length\n                      0\n                    )\n                  }}\n                    <p class='m-0 mb-3'>\n                      {{if\n                        this.canManageBudgetVersions\n                        (t\n                          'entity.builda-price.projects.project.financials.whenYouAreHappyWithYourTaskQuotesYouCanCommitThemAsYourFirstQuoteVersion'\n                        )\n                        (t\n                          'entity.builda-price.projects.project.financials.thereIsNoCommittedQuoteVersionForThisProject'\n                        )\n                      }}\n                    </p>\n                    {{#if this.canManageQuoteVersions}}\n                      <button\n                        type='button'\n                        class='btn btn-primary align-self-end'\n                        {{on 'click' (fn (mut this.creatingQuoteVersion) true)}}\n                      >\n                        {{t\n                          'entity.builda-price.projects.project.financials.Create the first quote version'\n                        }}\n                      </button>\n                    {{/if}}\n                  {{else}}\n                    <p class='m-0 mb-3'>\n                      {{if\n                        this.canManageQuoteVersions\n                        (t\n                          'entity.builda-price.projects.project.financials.noneOfYourTasksHaveQuotesToCreateAQuoteCreateSomeTasksWithAQuote'\n                        )\n                        (t\n                          'entity.builda-price.projects.project.financials.None of your tasks have quotes'\n                        )\n                      }}\n                    </p>\n  \n                    <LinkTo\n                      class='btn btn-primary align-self-end'\n                      @route='entity.builda-price.projects.project.tasks'\n                    >\n                      {{t 'common.Go to tasks'}}&nbsp;\n                      <FaIcon @icon='external-link-alt' />\n                    </LinkTo>\n                  {{/if}}\n                {{/if}}\n              {{/if}}\n            </div>\n          {{/if}}\n        </div>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.creatingBudgetVersion}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.creatingBudgetVersion) false}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n      <div class='modal-body'>\n        {{#if this.createBudgetVersion.isRunning}}\n          <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n        {{else}}\n          <p>\n            {{t\n              'entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheBudgetSinceTheLastVersion'\n              changes=(pluralize\n                this.model.project.last.value.draftBudgetChangeSet.changes.length\n                'change'\n              )\n              number=this.model.project.last.value.draftBudgetChangeSet.changes.length\n            }}\n          </p>\n          <ProjectChangeSetDescription\n            @version={{this.model.project.last.value.currentBudgetVersion}}\n            @changeSet={{this.model.project.last.value.draftBudgetChangeSet}}\n          />\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary text-white'\n          {{on 'click' (fn (mut this.creatingBudgetVersion) false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' (perform this.createBudgetVersion)}}\n        >\n          {{#if this.createBudgetVersion.isRunning}}\n            {{t 'common.Creating version'}}&hellip;\n          {{else}}\n            {{t 'common.Create version'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.creatingQuoteVersion}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.creatingQuoteVersion) false}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n      <div class='modal-body'>\n        {{#if this.createQuoteVersion.isRunning}}\n          <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n        {{else}}\n          <p>\n            {{t\n              'entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheQuoteSinceTheLastVersion'\n              changes=(pluralize\n                this.model.project.last.value.draftQuoteChangeSet.changes.length\n                'change'\n              )\n              number=this.model.project.last.value.draftQuoteChangeSet.changes.length\n            }}\n          </p>\n  \n          <ProjectChangeSetDescription\n            @version={{this.model.project.last.value.currentQuoteVersion}}\n            @changeSet={{this.model.project.last.value.draftQuoteChangeSet}}\n            @hideManHours={{true}}\n          />\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary text-white'\n          {{on 'click' (fn (mut this.creatingQuoteVersion) false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' (perform this.createQuoteVersion)}}\n        >\n          {{#if this.createQuoteVersion.isRunning}}\n            {{t 'common.Creating version'}}&hellip;\n          {{else}}\n            {{t 'common.Create version'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"eOu4vw0P\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,5],[\\\"common.Financials\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,6],[[30,0,[\\\"isLoadingBudget\\\"]],[30,0,[\\\"isLoadingQuote\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mt-3 d-flex flex-column align-items-start\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-row align-items-start flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canUseBudgetVersions\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"border rounded p-4 d-flex flex-column mb-4 me-4\\\"],[14,5,\\\"min-width: 350px;\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,5],[\\\"common.Budget\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[28,[37,10],[[30,0,[\\\"isLoadingBudget\\\"]]],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\"]]],null],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"ms-2 badge rounded-pill bg-primary\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,5],[\\\"common.Version\\\"],null]],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"versionNumber\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoadingBudget\\\"]],[[[1,\\\"              \\\"],[8,[39,7],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\"]],[[[41,[28,[37,6],[[28,[37,12],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],0],null],[30,0,[\\\"canManageBudgetVersions\\\"]]],null],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"alert alert-primary d-flex flex-column\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheBudgetSinceTheLastVersion\\\"],[[\\\"changes\\\",\\\"number\\\"],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],\\\"change\\\"],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n                    \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.Create a version to update your budget\\\"],null]],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"mt-3 btn btn-outline-primary btn-sm align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingBudgetVersion\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"shared.financial.Create a version\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Labour hours\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,24],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"manHours\\\"]]],[[\\\"emptyPlaceholder\\\"],[\\\"–\\\"]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"labour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"materials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"subcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"sums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,12],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],0],null],[[[1,\\\"                  \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[52,[30,0,[\\\"canManageBudgetVersions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.whenYouAreHappyWithYourTaskBudgetsYouCanCommitThemAsYourFirstBudgetVersion\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.thereIsNoCommittedBudgetVersionForThisProject\\\"],null]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageBudgetVersions\\\"]],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingBudgetVersion\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.Create the first budget version\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[52,[30,0,[\\\"canManageBudgetVersions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.noneOfYourTasksHaveBudgetsToCreateABudgetCreateSomeTasksWithABudget\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.None of your tasks have budgets\\\"],null]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[8,[39,28],[[24,0,\\\"btn btn-primary align-self-end\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.tasks\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,5],[\\\"common.Go to tasks\\\"],null]],[1,\\\" \\\\n                    \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canUseQuoteVersions\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"border rounded p-4 d-flex flex-column mb-4\\\"],[14,5,\\\"min-width: 350px;\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h2\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,5],[\\\"common.Quote\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[28,[37,10],[[30,0,[\\\"isLoadingQuote\\\"]]],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\"]]],null],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"ms-2 badge rounded-pill bg-primary\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,5],[\\\"common.Version\\\"],null]],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"versionNumber\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoadingQuote\\\"]],[[[1,\\\"              \\\"],[8,[39,7],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\"]],[[[41,[28,[37,6],[[28,[37,12],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],0],null],[30,0,[\\\"canManageQuoteVersions\\\"]]],null],[[[1,\\\"                  \\\"],[10,0],[14,0,\\\"alert alert-primary d-flex flex-column\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheQuoteSinceTheLastVersion\\\"],[[\\\"changes\\\",\\\"number\\\"],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],\\\"change\\\"],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n                    \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.Create a version to update your quote\\\"],null]],[1,\\\"\\\\n                    \\\"],[11,\\\"button\\\"],[24,0,\\\"mt-3 btn btn-outline-primary btn-sm align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingQuoteVersion\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"shared.financial.Create a version\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,5],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"labour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"materials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"subcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,5],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"sums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,25],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\",\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,12],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],0],null],[[[1,\\\"                  \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[52,[30,0,[\\\"canManageBudgetVersions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.whenYouAreHappyWithYourTaskQuotesYouCanCommitThemAsYourFirstQuoteVersion\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.thereIsNoCommittedQuoteVersionForThisProject\\\"],null]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageQuoteVersions\\\"]],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingQuoteVersion\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.Create the first quote version\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"                  \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[52,[30,0,[\\\"canManageQuoteVersions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.noneOfYourTasksHaveQuotesToCreateAQuoteCreateSomeTasksWithAQuote\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.financials.None of your tasks have quotes\\\"],null]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\\n                  \\\"],[8,[39,28],[[24,0,\\\"btn btn-primary align-self-end\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.tasks\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                    \\\"],[1,[28,[35,5],[\\\"common.Go to tasks\\\"],null]],[1,\\\" \\\\n                    \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n                  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"creatingBudgetVersion\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingBudgetVersion\\\"]]],null],false],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createBudgetVersion\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheBudgetSinceTheLastVersion\\\"],[[\\\"changes\\\",\\\"number\\\"],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],\\\"change\\\"],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\",\\\"changes\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,31],null,[[\\\"@version\\\",\\\"@changeSet\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentBudgetVersion\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftBudgetChangeSet\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingBudgetVersion\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,32],[[30,0,[\\\"createBudgetVersion\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createBudgetVersion\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Creating version\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Create version\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"creatingQuoteVersion\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingQuoteVersion\\\"]]],null],false],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createQuoteVersion\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,2],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.financials.thereHasBeenXChangeToTheQuoteSinceTheLastVersion\\\"],[[\\\"changes\\\",\\\"number\\\"],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]],\\\"change\\\"],null],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\",\\\"changes\\\",\\\"length\\\"]]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,31],null,[[\\\"@version\\\",\\\"@changeSet\\\",\\\"@hideManHours\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"draftQuoteChangeSet\\\"]],true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"creatingQuoteVersion\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,32],[[30,0,[\\\"createQuoteVersion\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"createQuoteVersion\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Creating version\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Create version\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"and\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"includes-feature-flags\\\",\\\"not\\\",\\\"span\\\",\\\"gt\\\",\\\"pluralize\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"td\\\",\\\"format-duration\\\",\\\"number-format\\\",\\\"tfoot\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"modal-dialog\\\",\\\"project-change-set-description\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/financials.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/health-and-safety\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"Cxla7gWt\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/health-and-safety.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/health-and-safety/index-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"wOHy+jj9\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/health-and-safety/index-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/health-and-safety/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.healthAndSafety'}}</h2>\n    </header>\n    {{#if this.model.project.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{outlet}}\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"qP1w83f9\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,3],[\\\"common.healthAndSafety\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[46,[28,[37,7],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"t\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/health-and-safety/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.People'}}</h2>\n      {{/if}}\n    </header>\n    {{#if this.model.project.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='d-flex mt-3 width--large'>\n        <ul class='list-group' style='min-width: 200px;'>\n          {{#each this.tabs as |tab|}}\n            <LinkTo\n              @route={{tab.route}}\n              draggable={{false}}\n              class='list-group-item'\n            >\n              <FaIcon @icon={{tab.icon}} @fixedWidth={{true}} @size='md' />\n              {{tab.name}}\n            </LinkTo>\n          {{/each}}\n        </ul>\n        <div class='flex-grow-1 ms-3'>\n          {{outlet}}\n        </div>\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"dyvuK2Fs\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,5],[\\\"common.People\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,6],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex mt-3 width--large\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group\\\"],[14,5,\\\"min-width: 200px;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"tabs\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[8,[39,11],[[16,\\\"draggable\\\",false],[24,0,\\\"list-group-item\\\"]],[[\\\"@route\\\"],[[30,1,[\\\"route\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[39,12],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[[30,1,[\\\"icon\\\"]],true,\\\"md\\\"]],null],[1,\\\"\\\\n            \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex-grow-1 ms-3\\\"],[12],[1,\\\"\\\\n        \\\"],[46,[28,[37,14],null,null],null,null,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"tab\\\"],false,[\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/clients\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"DG/k/LgG\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/clients.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/clients/client\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.client.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the project'}}\n        </p>\n  \n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.clients.client'\n            @model={{this.model.client.last.value.id}}\n          >\n            {{t 'shared.people-editor.clients.client.View client details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageUsers')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteClient.isRunning}}\n              {{on 'click' (perform this.deleteClient)}}\n            >\n              {{#if this.deleteClient.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.people.clients.client.clientProjectPermissionsExplanation'\n            }}\n          </p>\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.projectPermissionsVisible)\n                (not this.projectPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Project'}}\n            </h4>\n            {{#if this.projectPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.projectPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.projectPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.projectPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'shared.people-editor.Can see all the tasks for this project'\n              }}\n              @key='canViewTasks'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n  \n            {{#unless this.canSeeTaskVisibilityChecks}}\n              <PtlInput\n                @type='powerSelectMultiple'\n                @label='Task visibility'\n                @key='taskAttributes'\n                @description={{t\n                  'entity.builda-price.projects.project.people.client.theTypesOfTasksTheClientCanSeeOnThisProject'\n                }}\n                @optionKeys={{array 'name'}}\n                @options={{this.model.taskVisibilityOptions.last.value}}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @searchEnabled={{true}}\n                @searchField={{'name'}}\n                @disabled={{this.saveUserPermissions.isRunning}}\n              />\n            {{/unless}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'entity.builda-price.projects.project.people.clients.client.withThesePermissionsThisClientCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'entity.builda-price.projects.project.people.clients.client.withThesePermissionsThisClientCannotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseClientReports}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewClientReportsLabel'\n                }}\n                @key='canViewClientReports'\n                @description={{t\n                  'shared.people-editor.users.user.canViewClientReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n  \n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"XWFnvjGs\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"client\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.clients.client\\\",[30,0,[\\\"model\\\",\\\"client\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.clients.client.View client details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteClient\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteClient\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteClient\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.clients.client.clientProjectPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all the tasks for this project\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"canSeeTaskVisibilityChecks\\\"]]],[[[1,\\\"            \\\"],[8,[39,19],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@disabled\\\"],[\\\"powerSelectMultiple\\\",\\\"Task visibility\\\",\\\"taskAttributes\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.client.theTypesOfTasksTheClientCanSeeOnThisProject\\\"],null],[28,[37,22],[\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"taskVisibilityOptions\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,\\\"name\\\",[30,0,[\\\"saveUserPermissions\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.clients.client.withThesePermissionsThisClientCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.clients.client.withThesePermissionsThisClientCannotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseClientReports\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewClientReportsLabel\\\"],null],\\\"canViewClientReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewClientReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,23],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,20],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"unless\\\",\\\"array\\\",\\\"or\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/clients/client.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/clients/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.clients.Search for clients'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingClientToProject) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredClients}}\n      @noData={{t 'shared.people-editor.clients.No clients yet'}}\n      @route={{concat this.model.basePath '.clients.client'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingClientToProject}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingClientToProject) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.people.clients.Add client to project'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.people.clients.addClientsToProjectDescription'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedClients}}\n          @selected={{this.clientToAddToProject}}\n          @onChange={{fn (mut this.clientToAddToProject)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t 'shared.people-editor.clients.Find a client'}}\n          @allowClear={{true}}\n          as |client|\n        >\n          {{client.firstName}}\n          {{client.lastName}}\n          ({{client.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link'\n          @route='entity.settings.people.clients.client'\n          @model='new'\n        >\n          {{t\n            'entity.builda-price.projects.project.people.clients.donNotSeeTheClientAddThemToTheCompany'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addClientToProject.isRunning}}\n          {{on 'click' (fn (mut this.isAddingClientToProject) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.clientToAddToProject)\n            this.addClientToProject.isRunning\n          }}\n          {{on 'click' (perform this.addClientToProject)}}\n        >\n          {{#if this.addClientToProject.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"l4RxA+SJ\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.clients.Search for clients\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToProject\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredClients\\\"]],[28,[37,5],[\\\"shared.people-editor.clients.No clients yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".clients.client\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingClientToProject\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToProject\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.clients.Add client to project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.clients.addClientsToProjectDescription\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedClients\\\"]],[30,0,[\\\"clientToAddToProject\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"clientToAddToProject\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.clients.Find a client\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.clients.client\\\",\\\"new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.clients.donNotSeeTheClientAddThemToTheCompany\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addClientToProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToProject\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"clientToAddToProject\\\"]]],null],[30,0,[\\\"addClientToProject\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addClientToProject\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addClientToProject\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"client\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/clients/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/subcontractors\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"8RkrhkUo\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/subcontractors.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/subcontractors/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1' style='width: 200px;'>\n        <Input\n          class='form-control'\n          placeholder={{t\n            'shared.people-editor.subcontractors.Search for subcontractors'\n          }}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageSubcontractors')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingSubcontractorToProject) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredSubcontractors}}\n      @noData={{t 'shared.people-editor.subcontractors.No subcontractors yet'}}\n      @route={{concat this.model.basePath '.subcontractors.subcontractor'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingSubcontractorToProject}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingSubcontractorToProject) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.people.subcontractors.Add subcontractor to project'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.people.subcontractors.addSubcontractorToProjectDescription'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedSubcontractors}}\n          @selected={{this.subcontractorToAddToProject}}\n          @onChange={{fn (mut this.subcontractorToAddToProject)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t\n            'shared.people-editor.subcontractors.Find a subcontractor'\n          }}\n          @allowClear={{true}}\n          as |user|\n        >\n          {{user.firstName}}\n          {{user.lastName}}\n          ({{user.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.settings.people.subcontractors.subcontractor'\n          @model='new'\n        >\n          {{t\n            'entity.builda-price.projects.project.people.subcontractors.doNotSeeTheSubcontractorAddThemToTheCompany'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addSubcontractorToProject.isRunning}}\n          {{on 'click' (fn (mut this.isAddingSubcontractorToProject) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.subcontractorToAddToProject)\n            this.addSubcontractorToProject.isRunning\n          }}\n          {{on 'click' (perform this.addSubcontractorToProject)}}\n        >\n          {{#if this.addSubcontractorToProject.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"7sLEhcbJ\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[14,5,\\\"width: 200px;\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.subcontractors.Search for subcontractors\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToProject\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredSubcontractors\\\"]],[28,[37,5],[\\\"shared.people-editor.subcontractors.No subcontractors yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".subcontractors.subcontractor\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingSubcontractorToProject\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToProject\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.subcontractors.Add subcontractor to project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.subcontractors.addSubcontractorToProjectDescription\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedSubcontractors\\\"]],[30,0,[\\\"subcontractorToAddToProject\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"subcontractorToAddToProject\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.subcontractors.Find a subcontractor\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.subcontractors.subcontractor\\\",\\\"new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.subcontractors.doNotSeeTheSubcontractorAddThemToTheCompany\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addSubcontractorToProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToProject\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"subcontractorToAddToProject\\\"]]],null],[30,0,[\\\"addSubcontractorToProject\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addSubcontractorToProject\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addSubcontractorToProject\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"user\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/subcontractors/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/subcontractors/subcontractor\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.subcontractor.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the project'}}\n        </p>\n  \n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.subcontractors.subcontractor'\n            @model={{this.model.subcontractor.last.value.id}}\n          >\n            {{t\n              'shared.people-editor.subcontractors.subcontractor.View subcontractor details'\n            }}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageSubcontractors')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n      {{#if (includes-feature-flags 'canManageSubcontractors')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.people.subcontractors.subcontractor.subcontractorProjectPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.projectPermissionsVisible)\n                (not this.projectPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Project'}}\n            </h4>\n            {{#if this.projectPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.projectPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.projectPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.projectPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can make changes to the project'}}\n              @key='canManageProjects'\n              @description={{t\n                'shared.people-editor.canMakeChangesToTheProjectDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.entityCanManageProjects\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanManageProjects\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanManageProjects\n                (get\n                  this.model.permissionsChangeset.last.value 'canManageProjects'\n                )\n              }}\n            />\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project budget'}}\n                @key='canViewBudgets'\n                @description={{t\n                  'shared.people-editor.canSeeTheProjectBudgetDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgets\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewBudgets'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewBudgets\n                  this.model.permissionsChangeset.last.value.canManageBudgets\n                  this.model.permissionsChangeset.last.value.canViewBudgets\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create budget versions'}}\n                  @key='canManageBudgets'\n                  @description={{t\n                    'shared.people-editor.canCreateBudgetVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageBudgets\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageBudgets\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageBudgets\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageBudgets'\n                    )\n                  }}\n                />\n              {{/if}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project quote'}}\n                @key='canViewQuotes'\n                @description={{t\n                  'shared.people-editor.canSeeTheProjectQuoteDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewQuotes\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewQuotes\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewQuotes\n                  (get this.model.permissionsChangeset.last.value 'canViewQuotes')\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewQuotes\n                  this.model.permissionsChangeset.last.value.canManageQuotes\n                  this.model.permissionsChangeset.last.value.canViewQuotes\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create quote versions'}}\n                  @key='canManageQuotes'\n                  @description={{t\n                    'shared.people-editor.canCreateQuoteVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageQuotes\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageQuotes\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageQuotes\n                    (get\n                      this.model.permissionsChangeset.last.value 'canManageQuotes'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project progress'}}\n                @key='canViewProgress'\n                @description={{t\n                  'shared.people-editor.Lets the user see the project progress'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProgress\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProgress\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProgress\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProgress'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewProgress\n                  this.model.permissionsChangeset.last.value.canManageProgress\n                  this.model.permissionsChangeset.last.value.canViewProgress\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create progress versions'}}\n                  @key='canManageProgress'\n                  @description={{t\n                    'shared.people-editor.canCreateProgressVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageProgress\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageProgress\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageProgress\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProgress'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'shared.people-editor.Can see all the tasks for this project'\n              }}\n              @key='canViewTasks'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.entityCanViewTasks\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanViewTasks\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanViewTasks\n                (get this.model.permissionsChangeset.last.value 'canViewTasks')\n              }}\n            />\n            {{#if\n              (or\n                this.entityCanViewTasks\n                this.model.permissionsChangeset.last.value.canManageTasks\n                this.model.permissionsChangeset.last.value.canViewTasks\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can manage tasks for the project'\n                }}\n                @key='canManageTasks'\n                @description={{t\n                  'shared.people-editor.canManageTasksForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageTasks\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageTasks\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageTasks\n                  (get\n                    this.model.permissionsChangeset.last.value 'canManageTasks'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all documents for the project'\n                }}\n                @key='canViewFileStorage'\n                @description={{t\n                  'shared.people-editor.canSeeAllDocumentsForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewFileStorage\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewFileStorage\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewFileStorage\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewFileStorage'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewFileStorage\n                  this.model.permissionsChangeset.last.value.canManageFileStorage\n                  this.model.permissionsChangeset.last.value.canViewFileStorage\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.canManageAllDocumentsForTheProject'\n                  }}\n                  @key='canManageFileStorage'\n                  @description={{t\n                    'shared.people-editor.canManageAllDocumentsForTheProjectDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageFileStorage\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageFileStorage\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageFileStorage\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageFileStorage'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProducts}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all products for the project'\n                }}\n                @key='canViewProducts'\n                @description={{t\n                  'shared.people-editor.canSeeAllProductsForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProducts\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProducts\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProducts\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProducts'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewProducts\n                  this.model.permissionsChangeset.last.value.canManageProducts\n                  this.model.permissionsChangeset.last.value.canViewProducts\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all products for the project'\n                  }}\n                  @key='canManageProducts'\n                  @description={{t\n                    'shared.people-editor.canManageAllProductsForTheProjectDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageProducts\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageProducts\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageProducts\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProducts'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseEstimates}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see and manage estimates'}}\n                @key='canManageEstimates'\n                @description={{t\n                  'shared.people-editor.canSeeAndManageEstimatesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageEstimates\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageEstimates\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageEstimates\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageEstimates'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewSchedulingReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t\n                  'entity.builda-price.projects.project.people.subcontractors.subcontractor.canMakeSchedulingChangesProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageSchedulingReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.allocationsPermissionsVisible)\n                  (not this.allocationsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Allocations'}}\n              </h4>\n              {{#if this.allocationsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.allocationsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.allocationsPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see and manage timesheets'}}\n                @key='canManageTimesheets'\n                @description={{t\n                  'shared.people-editor.canSeeAndManageTimesheetsProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageTimesheets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageTimesheets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageTimesheets\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageTimesheets'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgetReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgetReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgetReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgetLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgetLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgetLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewQuoteReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewQuoteReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewQuoteReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewQuoteReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewCostReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewCostReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewCostReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewCostLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewCostLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewCostLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewChargeupReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewChargeupReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewChargeupReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewChargeupReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProgressReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProgressReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProgressReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewProgressReports'\n                  )\n                }}\n              />\n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanViewInvoicingReports\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanViewInvoicingReports\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanViewInvoicingReports\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewInvoicingReports'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.healthAndSafetyPermissionsVisible)\n                  (not this.healthAndSafetyPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.healthAndSafety'}}\n              </h4>\n              {{#if this.healthAndSafetyPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.healthAndSafetyPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.healthAndSafetyPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.healthAndSafetyPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanCreateHealthAndSafety\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanCreateHealthAndSafety\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanCreateHealthAndSafety\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canCreateHealthAndSafety'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageHealthAndSafety\n                  this.model.permissionsChangeset.last.value.canCreateHealthAndSafety\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'shared.people-editor.canManageHealthAndSafetyDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageHealthAndSafety\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageHealthAndSafety\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageHealthAndSafety\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageHealthAndSafety'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"+/qNf+vZ\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"subcontractor\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.subcontractors.subcontractor\\\",[30,0,[\\\"model\\\",\\\"subcontractor\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.subcontractors.subcontractor.View subcontractor details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.subcontractors.subcontractor.subcontractorProjectPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProjects\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make changes to the project\\\"],null],\\\"canManageProjects\\\",[28,[37,6],[\\\"shared.people-editor.canMakeChangesToTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProjects\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProjects\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProjects\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project budget\\\"],null],\\\"canViewBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeTheProjectBudgetDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create budget versions\\\"],null],\\\"canManageBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canCreateBudgetVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project quote\\\"],null],\\\"canViewQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canSeeTheProjectQuoteDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create quote versions\\\"],null],\\\"canManageQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canCreateQuoteVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project progress\\\"],null],\\\"canViewProgress\\\",[28,[37,6],[\\\"shared.people-editor.Lets the user see the project progress\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create progress versions\\\"],null],\\\"canManageProgress\\\",[28,[37,6],[\\\"shared.people-editor.canCreateProgressVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all the tasks for this project\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage tasks for the project\\\"],null],\\\"canManageTasks\\\",[28,[37,6],[\\\"shared.people-editor.canManageTasksForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all documents for the project\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllDocumentsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsForTheProject\\\"],null],\\\"canManageFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products for the project\\\"],null],\\\"canViewProducts\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products for the project\\\"],null],\\\"canManageProducts\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllProductsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseEstimates\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageEstimates\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage estimates\\\"],null],\\\"canManageEstimates\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageEstimatesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageEstimates\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageEstimates\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.subcontractors.subcontractor.canMakeSchedulingChangesProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageTimesheets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage timesheets\\\"],null],\\\"canManageTimesheets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageTimesheetsProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageTimesheets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageTimesheets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTimesheets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgetReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgetReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgetReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewQuoteReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewQuoteReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewQuoteReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuoteReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewCostReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewCostReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewCostReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewChargeupReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewChargeupReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewChargeupReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewChargeupReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProgressReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProgressReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProgressReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgressReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoicingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canCreateHealthAndSafety\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageHealthAndSafety\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canCreateHealthAndSafety\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageHealthAndSafety\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/subcontractors/subcontractor.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/users\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"CJwM1g94\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/users.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/users/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.users.Search for users'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingUserToProject) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredUsers}}\n      @noData={{t 'shared.people-editor.users.No users yet'}}\n      @route={{concat this.model.basePath '.users.user'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingUserToProject}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='modal-content w-auto'\n      @onClose={{fn (mut this.isAddingUserToProject) false}}\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.people.users.Add user to project'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.people.users.addingAUserToAProjectIsUsefulWhenYouWantToGiveSomeoneAccessOnlyToAParticularProject'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedUsers}}\n          @selected={{this.userToAddToProject}}\n          @onChange={{fn (mut this.userToAddToProject)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t 'shared.people-editor.users.Find a user'}}\n          @allowClear={{true}}\n          as |user|\n        >\n          {{user.firstName}}\n          {{user.lastName}}\n          ({{user.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.settings.people.users.user'\n          @model='new'\n        >\n          {{t\n            'entity.builda-price.projects.project.people.users.doNotSeeTheUserAddThemToTheCompany'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addUserToProject.isRunning}}\n          {{on 'click' (fn (mut this.isAddingUserToProject) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.userToAddToProject)\n            this.addUserToProject.isRunning\n          }}\n          {{on 'click' (perform this.addUserToProject)}}\n        >\n          {{#if this.addUserToProject.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"KLGGDl7U\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.users.Search for users\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToProject\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredUsers\\\"]],[28,[37,5],[\\\"shared.people-editor.users.No users yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".users.user\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingUserToProject\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",\\\"modal-content w-auto\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToProject\\\"]]],null],false],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.users.Add user to project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.users.addingAUserToAProjectIsUsefulWhenYouWantToGiveSomeoneAccessOnlyToAParticularProject\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedUsers\\\"]],[30,0,[\\\"userToAddToProject\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"userToAddToProject\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.users.Find a user\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.users.user\\\",\\\"new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.users.doNotSeeTheUserAddThemToTheCompany\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addUserToProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToProject\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"userToAddToProject\\\"]]],null],[30,0,[\\\"addUserToProject\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addUserToProject\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addUserToProject\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"user\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/users/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/users/user\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.user.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the project'}}\n        </p>\n  \n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.users.user'\n            @model={{this.model.user.last.value.id}}\n          >\n            {{t 'shared.people-editor.users.user.View user details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageUsers')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from project')\n                  (t 'shared.people-editor.Removing from project')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.people.users.user.userProjectPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.projectPermissionsVisible)\n                (not this.projectPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Project'}}\n            </h4>\n            {{#if this.projectPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.projectPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.projectPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.projectPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can make changes to the project'}}\n              @key='canManageProjects'\n              @description={{t\n                'shared.people-editor.canMakeChangesToTheProjectDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.entityCanManageProjects\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanManageProjects\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanManageProjects\n                (get\n                  this.model.permissionsChangeset.last.value 'canManageProjects'\n                )\n              }}\n            />\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project budget'}}\n                @key='canViewBudgets'\n                @description={{t\n                  'shared.people-editor.canSeeTheProjectBudgetDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgets\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewBudgets'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewBudgets\n                  this.model.permissionsChangeset.last.value.canManageBudgets\n                  this.model.permissionsChangeset.last.value.canViewBudgets\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create budget versions'}}\n                  @key='canManageBudgets'\n                  @description={{t\n                    'shared.people-editor.canCreateBudgetVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageBudgets\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageBudgets\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageBudgets\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageBudgets'\n                    )\n                  }}\n                />\n              {{/if}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project quote'}}\n                @key='canViewQuotes'\n                @description={{t\n                  'shared.people-editor.canSeeTheProjectQuoteDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewQuotes\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewQuotes\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewQuotes\n                  (get this.model.permissionsChangeset.last.value 'canViewQuotes')\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewQuotes\n                  this.model.permissionsChangeset.last.value.canManageQuotes\n                  this.model.permissionsChangeset.last.value.canViewQuotes\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create quote versions'}}\n                  @key='canManageQuotes'\n                  @description={{t\n                    'shared.people-editor.canCreateQuoteVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageQuotes\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageQuotes\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageQuotes\n                    (get\n                      this.model.permissionsChangeset.last.value 'canManageQuotes'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the project progress'}}\n                @key='canViewProgress'\n                @description={{t\n                  'shared.people-editor.Lets the user see the project progress'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProgress\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProgress\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProgress\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProgress'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewProgress\n                  this.model.permissionsChangeset.last.value.canManageProgress\n                  this.model.permissionsChangeset.last.value.canViewProgress\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can create progress versions'}}\n                  @key='canManageProgress'\n                  @description={{t\n                    'shared.people-editor.canCreateProgressVersionsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageProgress\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageProgress\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageProgress\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProgress'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'entity.builda-price.projects.project.people.users.user.Can see all the tasks for the project'\n              }}\n              @key='canViewTasks'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.entityCanViewTasks\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanViewTasks\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanViewTasks\n                (get this.model.permissionsChangeset.last.value 'canViewTasks')\n              }}\n            />\n            {{#if\n              (or\n                this.entityCanViewTasks\n                this.model.permissionsChangeset.last.value.canManageTasks\n                this.model.permissionsChangeset.last.value.canViewTasks\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can manage tasks for the project'\n                }}\n                @key='canManageTasks'\n                @description={{t\n                  'shared.people-editor.canManageTasksForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageTasks\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageTasks\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageTasks\n                  (get\n                    this.model.permissionsChangeset.last.value 'canManageTasks'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all documents for the project'\n                }}\n                @key='canViewFileStorage'\n                @description={{t\n                  'shared.people-editor.canSeeAllDocumentsForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewFileStorage\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewFileStorage\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewFileStorage\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewFileStorage'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewFileStorage\n                  this.model.permissionsChangeset.last.value.canManageFileStorage\n                  this.model.permissionsChangeset.last.value.canViewFileStorage\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.canManageAllDocumentsForTheProject'\n                  }}\n                  @key='canManageFileStorage'\n                  @description={{t\n                    'shared.people-editor.canManageAllDocumentsForTheProjectDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageFileStorage\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageFileStorage\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageFileStorage\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageFileStorage'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProducts}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all products for the project'\n                }}\n                @key='canViewProducts'\n                @description={{t\n                  'shared.people-editor.canSeeAllProductsForTheProjectDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProducts\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProducts\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProducts\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProducts'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.entityCanViewProducts\n                  this.model.permissionsChangeset.last.value.canManageProducts\n                  this.model.permissionsChangeset.last.value.canViewProducts\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all products for the project'\n                  }}\n                  @key='canManageProducts'\n                  @description={{t\n                    'shared.people-editor.canManageAllProductsForTheProjectDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageProducts\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageProducts\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageProducts\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProducts'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseEstimates}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see and manage estimates'}}\n                @key='canManageEstimates'\n                @description={{t\n                  'shared.people-editor.canSeeAndManageEstimatesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageEstimates\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageEstimates\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageEstimates\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageEstimates'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewSchedulingReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t\n                  'shared.people-editor.canMakeSchedulingChangesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanManageSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanManageSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanManageSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageSchedulingReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.allocationsPermissionsVisible)\n                  (not this.allocationsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Allocations'}}\n              </h4>\n              {{#if this.allocationsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.allocationsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n  \n            {{#if this.allocationsPermissionsVisible}}\n              {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can see and manage timesheets'\n                  }}\n                  @key='canManageTimesheets'\n                  @description={{t\n                    'shared.people-editor.canSeeAndManageTimesheetsProjectDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageTimesheets\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageTimesheets\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageTimesheets\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageTimesheets'\n                    )\n                  }}\n                />\n              {{/if}}\n              {{#if this.newFeatureFlags.entityCanUseInvoices}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.project.Can see all invoices'\n                  }}\n                  @description={{t\n                    'shared.people-editor.users.user.project.canViewInvoicesDescription'\n                  }}\n                  @key='canViewInvoices'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanViewInvoices\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanViewInvoices\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanViewInvoices\n                    (get\n                      this.model.permissionsChangeset.last.value 'canViewInvoices'\n                    )\n                  }}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageInvoices\n                    this.model.permissionsChangeset.last.value.canViewInvoices\n                    this.entityCanManageInvoices\n                    this.entityCanViewInvoices\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'shared.people-editor.users.user.project.Can create invoices'\n                    }}\n                    @description={{t\n                      'shared.people-editor.users.user.project.canManageInvoicesDescription'\n                    }}\n                    @key='canManageInvoices'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    @toolTip={{if\n                      this.entityCanManageInvoices\n                      this.permissionSupersededMessage\n                    }}\n                    disabled={{or\n                      this.entityCanManageInvoices\n                      this.savePermissions.isRunning\n                    }}\n                    @checked={{or\n                      this.entityCanManageInvoices\n                      (get\n                        this.model.permissionsChangeset.last.value\n                        'canManageInvoices'\n                      )\n                    }}\n                  />\n                {{/if}}\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageInvoices\n                    this.model.permissionsChangeset.last.value.canApproveInvoices\n                    this.entityCanManageInvoices\n                    this.entityCanApproveInvoices\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'shared.people-editor.users.user.project.Can approve invoices'\n                    }}\n                    @description={{t\n                      'shared.people-editor.users.user.project.canApproveInvoicesDescription'\n                    }}\n                    @key='canApproveInvoices'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    @toolTip={{if\n                      this.entityCanApproveInvoices\n                      this.permissionSupersededMessage\n                    }}\n                    disabled={{or\n                      this.entityCanApproveInvoices\n                      this.savePermissions.isRunning\n                    }}\n                    @checked={{or\n                      this.entityCanApproveInvoices\n                      (get\n                        this.model.permissionsChangeset.last.value\n                        'canApproveInvoices'\n                      )\n                    }}\n                  />\n                {{/if}}\n              {{/if}}\n              {{#if this.newFeatureFlags.entityCanUsePurchaseOrders}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.builda-price.projects.project.people.users.user.Can see purchase orders'\n                  }}\n                  @description={{t\n                    'entity.builda-price.projects.project.people.users.user.canSeePurchaseOrdersDescription'\n                  }}\n                  @key='canViewPurchaseOrders'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanViewPurchaseOrders\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanViewPurchaseOrders\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanViewPurchaseOrders\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewPurchaseOrders'\n                    )\n                  }}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManagePurchaseOrders\n                    this.model.permissionsChangeset.last.value.canViewPurchaseOrders\n                    this.entityCanManagePurchaseOrders\n                    this.entityCanViewPurchaseOrders\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'entity.builda-price.projects.project.people.users.user.canManagePurchaseOrders'\n                    }}\n                    @description={{t\n                      'entity.builda-price.projects.project.people.users.user.canManagePurchaseOrdersDescription'\n                    }}\n                    @key='canManagePurchaseOrders'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    @toolTip={{if\n                      this.entityCanManagePurchaseOrders\n                      this.permissionSupersededMessage\n                    }}\n                    disabled={{or\n                      this.entityCanManagePurchaseOrders\n                      this.savePermissions.isRunning\n                    }}\n                    @checked={{or\n                      this.entityCanManagePurchaseOrders\n                      (get\n                        this.model.permissionsChangeset.last.value\n                        'canManagePurchaseOrders'\n                      )\n                    }}\n                  />\n                {{/if}}\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManagePurchaseOrders\n                    this.model.permissionsChangeset.last.value.canApprovePurchaseOrders\n                    this.entityCanManagePurchaseOrders\n                    this.entityCanApprovePurchaseOrders\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'entity.builda-price.projects.project.people.users.user.canApprovePurchaseOrders'\n                    }}\n                    @description={{t\n                      'entity.builda-price.projects.project.people.users.user.canApprovePurchaseOrdersDescription'\n                    }}\n                    @key='canApprovePurchaseOrders'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    @toolTip={{if\n                      this.entityCanApprovePurchaseOrders\n                      this.permissionSupersededMessage\n                    }}\n                    disabled={{or\n                      this.entityCanApprovePurchaseOrders\n                      this.savePermissions.isRunning\n                    }}\n                    @checked={{or\n                      this.entityCanApprovePurchaseOrders\n                      (get\n                        this.model.permissionsChangeset.last.value\n                        'canApprovePurchaseOrders'\n                      )\n                    }}\n                  />\n                {{/if}}\n              {{/if}}\n              {{#if this.newFeatureFlags.entityCanUseStagePayments}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.builda-price.projects.project.people.users.user.Can see stage payments'\n                  }}\n                  @description={{t\n                    'entity.builda-price.projects.project.people.users.user.canSeeStagePaymentsDescription'\n                  }}\n                  @key='canViewStagePayments'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanViewStagePayments\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanViewStagePayments\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanViewStagePayments\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewStagePayments'\n                    )\n                  }}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageStagePayments\n                    this.model.permissionsChangeset.last.value.canViewStagePayments\n                    this.entityCanManageStagePayments\n                    this.entityCanViewStagePayments\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'entity.builda-price.projects.project.people.users.user.canManageStagePayments'\n                    }}\n                    @description={{t\n                      'entity.builda-price.projects.project.people.users.user.canManageStagePaymentsDescription'\n                    }}\n                    @key='canManageStagePayments'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    @toolTip={{if\n                      this.entityCanManageStagePayments\n                      this.permissionSupersededMessage\n                    }}\n                    disabled={{or\n                      this.entityCanManageStagePayments\n                      this.savePermissions.isRunning\n                    }}\n                    @checked={{or\n                      this.entityCanManageStagePayments\n                      (get\n                        this.model.permissionsChangeset.last.value\n                        'canManageStagePayments'\n                      )\n                    }}\n                  />\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgetReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgetReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgetReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewBudgetLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewBudgetLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewBudgetLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewQuoteReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewQuoteReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewQuoteReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewQuoteReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewCostReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewCostReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewCostReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewCostLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewCostLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewCostLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewChargeupReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewChargeupReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewChargeupReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewChargeupReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewProgressReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewProgressReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanViewProgressReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewProgressReports'\n                  )\n                }}\n              />\n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanViewInvoicingReports\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanViewInvoicingReports\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanViewInvoicingReports\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewInvoicingReports'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseGeofencing}}\n              <PtlInput\n                @type='checkbox'\n                @label='Can see all site access data in reports?'\n                @key='canViewAccessReports'\n                @description='Site access reports show real-time site occupancy and access history.'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanViewAccessReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanViewAccessReports\n                  this.savePermissions.isRunning\n                }}\n                checked={{or\n                  this.entityCanViewAccessReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewAccessReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.healthAndSafetyPermissionsVisible)\n                  (not this.healthAndSafetyPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.healthAndSafety'}}\n              </h4>\n              {{#if this.healthAndSafetyPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.healthAndSafetyPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.healthAndSafetyPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.healthAndSafetyPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.entityCanCreateHealthAndSafety\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.entityCanCreateHealthAndSafety\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.entityCanCreateHealthAndSafety\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canCreateHealthAndSafety'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageHealthAndSafety\n                  this.model.permissionsChangeset.last.value.canCreateHealthAndSafety\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'shared.people-editor.canManageHealthAndSafetyDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.entityCanManageHealthAndSafety\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.entityCanManageHealthAndSafety\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.entityCanManageHealthAndSafety\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageHealthAndSafety'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"1LJb7heu\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"user\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.users.user\\\",[30,0,[\\\"model\\\",\\\"user\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.users.user.View user details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from project\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from project\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.users.user.userProjectPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProjects\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make changes to the project\\\"],null],\\\"canManageProjects\\\",[28,[37,6],[\\\"shared.people-editor.canMakeChangesToTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProjects\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProjects\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProjects\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project budget\\\"],null],\\\"canViewBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeTheProjectBudgetDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create budget versions\\\"],null],\\\"canManageBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canCreateBudgetVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project quote\\\"],null],\\\"canViewQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canSeeTheProjectQuoteDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create quote versions\\\"],null],\\\"canManageQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canCreateQuoteVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the project progress\\\"],null],\\\"canViewProgress\\\",[28,[37,6],[\\\"shared.people-editor.Lets the user see the project progress\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can create progress versions\\\"],null],\\\"canManageProgress\\\",[28,[37,6],[\\\"shared.people-editor.canCreateProgressVersionsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.Can see all the tasks for the project\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage tasks for the project\\\"],null],\\\"canManageTasks\\\",[28,[37,6],[\\\"shared.people-editor.canManageTasksForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all documents for the project\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllDocumentsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsForTheProject\\\"],null],\\\"canManageFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products for the project\\\"],null],\\\"canViewProducts\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"entityCanViewProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products for the project\\\"],null],\\\"canManageProducts\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllProductsForTheProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseEstimates\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageEstimates\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage estimates\\\"],null],\\\"canManageEstimates\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageEstimatesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageEstimates\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageEstimates\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageEstimates\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.canMakeSchedulingChangesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageTimesheets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage timesheets\\\"],null],\\\"canManageTimesheets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageTimesheetsProjectDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageTimesheets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageTimesheets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTimesheets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoices\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewInvoices\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.project.Can see all invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.project.canViewInvoicesDescription\\\"],null],\\\"canViewInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewInvoices\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewInvoices\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoices\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageInvoices\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewInvoices\\\"]],[30,0,[\\\"entityCanManageInvoices\\\"]],[30,0,[\\\"entityCanViewInvoices\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageInvoices\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.project.Can create invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.project.canManageInvoicesDescription\\\"],null],\\\"canManageInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageInvoices\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageInvoices\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageInvoices\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageInvoices\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canApproveInvoices\\\"]],[30,0,[\\\"entityCanManageInvoices\\\"]],[30,0,[\\\"entityCanApproveInvoices\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanApproveInvoices\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.project.Can approve invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.project.canApproveInvoicesDescription\\\"],null],\\\"canApproveInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanApproveInvoices\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanApproveInvoices\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canApproveInvoices\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUsePurchaseOrders\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewPurchaseOrders\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.Can see purchase orders\\\"],null],[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canSeePurchaseOrdersDescription\\\"],null],\\\"canViewPurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewPurchaseOrders\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewPurchaseOrders\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewPurchaseOrders\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManagePurchaseOrders\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewPurchaseOrders\\\"]],[30,0,[\\\"entityCanManagePurchaseOrders\\\"]],[30,0,[\\\"entityCanViewPurchaseOrders\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManagePurchaseOrders\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canManagePurchaseOrders\\\"],null],[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canManagePurchaseOrdersDescription\\\"],null],\\\"canManagePurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManagePurchaseOrders\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManagePurchaseOrders\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManagePurchaseOrders\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManagePurchaseOrders\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canApprovePurchaseOrders\\\"]],[30,0,[\\\"entityCanManagePurchaseOrders\\\"]],[30,0,[\\\"entityCanApprovePurchaseOrders\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanApprovePurchaseOrders\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canApprovePurchaseOrders\\\"],null],[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canApprovePurchaseOrdersDescription\\\"],null],\\\"canApprovePurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanApprovePurchaseOrders\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanApprovePurchaseOrders\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canApprovePurchaseOrders\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseStagePayments\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewStagePayments\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.Can see stage payments\\\"],null],[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canSeeStagePaymentsDescription\\\"],null],\\\"canViewStagePayments\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewStagePayments\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewStagePayments\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewStagePayments\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageStagePayments\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewStagePayments\\\"]],[30,0,[\\\"entityCanManageStagePayments\\\"]],[30,0,[\\\"entityCanViewStagePayments\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageStagePayments\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canManageStagePayments\\\"],null],[28,[37,6],[\\\"entity.builda-price.projects.project.people.users.user.canManageStagePaymentsDescription\\\"],null],\\\"canManageStagePayments\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageStagePayments\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageStagePayments\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageStagePayments\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgetReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgetReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgetReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewBudgetLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewQuoteReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewQuoteReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewQuoteReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuoteReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewCostReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewCostReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewCostReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewCostLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewChargeupReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewChargeupReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewChargeupReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewChargeupReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewProgressReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewProgressReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewProgressReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgressReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanViewInvoicingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoicingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseGeofencing\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanViewAccessReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]],[16,\\\"checked\\\",[28,[37,20],[[30,0,[\\\"entityCanViewAccessReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewAccessReports\\\"],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\"],[\\\"checkbox\\\",\\\"Can see all site access data in reports?\\\",\\\"canViewAccessReports\\\",\\\"Site access reports show real-time site occupancy and access history.\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewAccessReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canCreateHealthAndSafety\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageHealthAndSafety\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canCreateHealthAndSafety\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"entityCanManageHealthAndSafety\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageHealthAndSafety\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/users/user.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/workers\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"otPd6mln\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/workers.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/workers/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.workers.Search for workers'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageWorkers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingWorkerToProject) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredWorkers}}\n      @noData={{t 'shared.people-editor.workers.No workers yet'}}\n      @route={{concat this.model.basePath '.workers.worker'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingWorkerToProject}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingWorkerToProject) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.people.workers.Add worker to project'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.people.workers.addingAWorkerToAProjectIsUsefulWhenYouWantToGiveSomeoneAccessOnlyToAParticularProject'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedWorkers}}\n          @selected={{this.workerToAddToProject}}\n          @onChange={{fn (mut this.workerToAddToProject)}}\n          @searchEnabled={{true}}\n          @searchField='searchString'\n          @placeholder={{t 'shared.people-editor.workers.Find a worker'}}\n          @allowClear={{true}}\n          as |worker|\n        >\n          {{worker.firstName}}\n          {{worker.lastName}}\n          ({{worker.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.settings.people.workers.worker'\n          @model='new'\n        >\n          {{t\n            'entity.builda-price.projects.project.people.workers.doNotSeeTheWorkerAddThemToTheCompany'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addWorkerToProject.isRunning}}\n          {{on 'click' (fn (mut this.isAddingWorkerToProject) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.workerToAddToProject)\n            this.addWorkerToProject.isRunning\n          }}\n          {{on 'click' (perform this.addWorkerToProject)}}\n        >\n          {{#if this.addWorkerToProject.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"Xoo+6kzb\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.workers.Search for workers\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageWorkers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToProject\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredWorkers\\\"]],[28,[37,5],[\\\"shared.people-editor.workers.No workers yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".workers.worker\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingWorkerToProject\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToProject\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.workers.Add worker to project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.workers.addingAWorkerToAProjectIsUsefulWhenYouWantToGiveSomeoneAccessOnlyToAParticularProject\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedWorkers\\\"]],[30,0,[\\\"workerToAddToProject\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"workerToAddToProject\\\"]]],null]],null],true,\\\"searchString\\\",[28,[37,5],[\\\"shared.people-editor.workers.Find a worker\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.workers.worker\\\",\\\"new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.people.workers.doNotSeeTheWorkerAddThemToTheCompany\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addWorkerToProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToProject\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"workerToAddToProject\\\"]]],null],[30,0,[\\\"addWorkerToProject\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addWorkerToProject\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addWorkerToProject\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"worker\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/workers/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/people/workers/worker\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.worker.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the project'}}\n        </p>\n  \n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.workers.worker'\n            @model={{this.model.worker.last.value.id}}\n          >\n            {{t 'shared.people-editor.workers.worker.View worker details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageWorkers')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteWorker.isRunning}}\n              {{on 'click' (perform this.deleteWorker)}}\n            >\n              {{#if this.deleteWorker.isRunning}}\n                {{t 'shared.people-editor.Removing from project'}}\n              {{else}}\n                {{t\n                  'entity.builda-price.projects.project.people.workers.worker.Remove from project'\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#if\n        (and\n          this.newFeatureFlags.entityCanUseHealthAndSafety\n          (includes-feature-flags 'canManageWorkers')\n        )\n      }}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.people.workers.worker.workerProjectPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.projectPermissionsVisible)\n                (not this.projectPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Project'}}\n            </h4>\n            {{#if this.projectPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.projectPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.projectPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.projectPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'shared.people-editor.Can see all the tasks for this project'\n              }}\n              @key='canViewTasks'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @description={{t\n                'entity.builda-price.projects.project.people.workers.worker.canSeeAllTheTasksForThisProjectDescription'\n              }}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.entityCanViewTasks\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanViewTasks\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanViewTasks\n                (get this.model.permissionsChangeset.last.value 'canViewTasks')\n              }}\n            />\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.healthAndSafetyPermissionsVisible)\n                (not this.healthAndSafetyPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.healthAndSafety'}}\n            </h4>\n            {{#if\n              (and\n                (not this.healthAndSafetyPermissionsVisible)\n                this.healthAndSafetyPermissionsCount\n              )\n            }}\n              <span class='ms-2 badge bg-info'>\n                {{this.healthAndSafetyPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.healthAndSafetyPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.healthAndSafetyPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n              @key='canCreateHealthAndSafety'\n              @description={{t\n                'shared.people-editor.canUseHealthAndSafetyDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt\n                this.saveWorkerPermissions.performCount\n                0\n              }}\n              @toolTip={{if\n                this.entityCanCreateHealthAndSafety\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.entityCanCreateHealthAndSafety\n                this.saveWorkerPermissions.isRunning\n              }}\n              @checked={{or\n                this.entityCanCreateHealthAndSafety\n                (get\n                  this.model.permissionsChangeset.last.value\n                  'canCreateHealthAndSafety'\n                )\n              }}\n            />\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveWorkerPermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.saveWorkerPermissions\n                  this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.saveWorkerPermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"8aA/vIGz\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"worker\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.workers.worker\\\",[30,0,[\\\"model\\\",\\\"worker\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.workers.worker.View worker details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageWorkers\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteWorker\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Removing from project\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.workers.worker.Remove from project\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,14],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[28,[37,10],[\\\"canManageWorkers\\\"],null]],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.people.workers.worker.workerProjectPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,15],[[28,[37,16],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,17],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,20],[[16,\\\"disabled\\\",[28,[37,21],[[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all the tasks for this project\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,6],[\\\"entity.builda-price.projects.project.people.workers.worker.canSeeAllTheTasksForThisProjectDescription\\\"],null],[28,[37,22],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanViewTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,21],[[30,0,[\\\"entityCanViewTasks\\\"]],[28,[37,23],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,15],[[28,[37,16],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[28,[37,17],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[28,[37,17],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],null],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,20],[[16,\\\"disabled\\\",[28,[37,21],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"saveWorkerPermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,22],[[30,0,[\\\"saveWorkerPermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,21],[[30,0,[\\\"entityCanCreateHealthAndSafety\\\"]],[28,[37,23],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canCreateHealthAndSafety\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveWorkerPermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"saveWorkerPermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveWorkerPermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"and\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/people/workers/worker.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/products\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Products')\n      }}\n    />\n  {{/unless}}\n  <article class='mx-4 mt-4'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Products'}}</h2>\n      {{/if}}\n  \n      {{#if this.showFilters}}\n        <div class='mx-1'>\n          <SearchSelector\n            style='width: 200px;'\n            @disabled={{this.isLoading}}\n            @key='supplierName'\n            @optionKeys={{array 'supplierName'}}\n            @model={{this.supplierChangeSet}}\n            @noDataMessage={{t 'common.No suppliers'}}\n            @onLoad={{this.loadMoreSuppliers}}\n            @onSelect={{this.setSupplier}}\n            @placeholder={{t 'shared.product.Filter by supplier'}}\n          />\n        </div>\n        <Input\n          class='form-control m-1 w-auto'\n          placeholder={{t 'shared.product.Search products'}}\n          @type='text'\n          autofocus='true'\n          @value={{this.searchString}}\n          {{on 'input' (perform this.onChangeSearchTerm)}}\n          data-test-products-project-search\n        />\n      {{/if}}\n      {{#if this.isEditable}}\n        <button\n          type='button'\n          class='btn btn-secondary text-white text-nowrap m-1'\n          disabled={{this.isLoading}}\n          {{on 'click' (fn (mut this.addingProductsFromFile) true)}}\n        >\n          <FaIcon @icon='upload' />&nbsp;&nbsp;{{t\n            'shared.product.Add products from a file'\n          }}\n        </button>\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          disabled={{this.isLoading}}\n          {{on 'click' (fn (mut this.isAddingProduct) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </header>\n    {{#if this.model.project.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n        {{#if (and this.isEditable this.productTableData.length)}}\n          <div class='flex-grow-1'>\n            <button\n              class='btn btn-link text-danger text-decoration-underline float-start'\n              type='button'\n              {{on 'click' (fn (mut this.isDeletingProducts) true)}}\n              disabled={{or (not this.selectProductIds.size) this.isLoading}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n          </div>\n        {{/if}}\n      </div>\n      <div class='project-products__table-container'>\n        <PaginationTable\n          @tableHeader={{this.productTableHeader}}\n          @tableData={{this.productTableData}}\n          @noDataText={{t 'common.No data'}}\n          @pageSizes={{this.model.pageSizes}}\n          @pageSize={{this.model.pageSize}}\n          @pageIndex={{this.model.pageIndex}}\n          @onChangePageIndex={{this.onChangePageIndex}}\n          @onChangePageSize={{this.onChangePageSize}}\n          @isLoading={{this.model.products.isRunning}}\n          @totalRecords={{this.totalRecords}}\n          @class='table-bordered'\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.isEditingProduct}}\n    <ProductEditor\n      @onSaveProduct={{this.onSaveProduct}}\n      @target={{this.model.project.last.value}}\n      @productTable={{'project-product'}}\n      @entity={{this.sessionData.entity}}\n      @productId={{this.selectedProductId}}\n      @onClose={{fn (mut this.isEditingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingProduct}}\n    <ProductSelector\n      @onAddProduct={{this.onAddProduct}}\n      @onCreateProduct={{this.onCreateProduct}}\n      @onClose={{fn (mut this.isAddingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.addingProductsFromFile}}\n    <ProductsUploader\n      @onUploadProducts={{this.updateProductList}}\n      @saveTarget={{'project-products'}}\n      @project={{this.model.project.last.value}}\n      @onClose={{fn (mut this.addingProductsFromFile) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isDeletingProducts}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingProducts) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <p>\n        {{t\n          'shared.product.areYouSureYouWantToDeleteXProducts'\n          number=this.selectProductIds.size\n          products=(pluralize this.selectProductIds.size 'product')\n        }}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.deleteProducts.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Deleting'}}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (perform this.deleteProducts)}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingProducts) false)}}\n            >{{t 'common.Cancel'}}</button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"f2wNqOgS\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Products\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Products\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showFilters\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,5,\\\"width: 200px;\\\"]],[[\\\"@disabled\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@noDataMessage\\\",\\\"@onLoad\\\",\\\"@onSelect\\\",\\\"@placeholder\\\"],[[30,0,[\\\"isLoading\\\"]],\\\"supplierName\\\",[28,[37,11],[\\\"supplierName\\\"],null],[30,0,[\\\"supplierChangeSet\\\"]],[28,[37,4],[\\\"common.No suppliers\\\"],null],[30,0,[\\\"loadMoreSuppliers\\\"]],[30,0,[\\\"setSupplier\\\"]],[28,[37,4],[\\\"shared.product.Filter by supplier\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,12],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.product.Search products\\\"],null]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,\\\"data-test-products-project-search\\\",\\\"\\\"],[4,[38,13],[\\\"input\\\",[28,[37,14],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"addingProductsFromFile\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"shared.product.Add products from a file\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isAddingProduct\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,19],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"isEditable\\\"]],[30,0,[\\\"productTableData\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,21],[[28,[37,22],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"project-products__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,23],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@isLoading\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"productTableHeader\\\"]],[30,0,[\\\"productTableData\\\"]],[28,[37,4],[\\\"common.No data\\\"],null],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"model\\\",\\\"products\\\",\\\"isRunning\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@onSaveProduct\\\",\\\"@target\\\",\\\"@productTable\\\",\\\"@entity\\\",\\\"@productId\\\",\\\"@onClose\\\"],[[30,0,[\\\"onSaveProduct\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"project-product\\\",[30,0,[\\\"sessionData\\\",\\\"entity\\\"]],[30,0,[\\\"selectedProductId\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"isEditingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,25],null,[[\\\"@onAddProduct\\\",\\\"@onCreateProduct\\\",\\\"@onClose\\\"],[[30,0,[\\\"onAddProduct\\\"]],[30,0,[\\\"onCreateProduct\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"isAddingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addingProductsFromFile\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@onUploadProducts\\\",\\\"@saveTarget\\\",\\\"@project\\\",\\\"@onClose\\\"],[[30,0,[\\\"updateProductList\\\"]],\\\"project-products\\\",[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,16],[[28,[37,17],[[30,0,[\\\"addingProductsFromFile\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeletingProducts\\\"]],[[[1,\\\"  \\\"],[8,[39,27],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"shared.product.areYouSureYouWantToDeleteXProducts\\\"],[[\\\"number\\\",\\\"products\\\"],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],[28,[37,29],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],\\\"product\\\"],null]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"deleteProducts\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"div\\\",\\\"search-selector\\\",\\\"array\\\",\\\"input\\\",\\\"on\\\",\\\"perform\\\",\\\"button\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"loading-icon\\\",\\\"and\\\",\\\"or\\\",\\\"not\\\",\\\"pagination-table\\\",\\\"product-editor\\\",\\\"product-selector\\\",\\\"products-uploader\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"pluralize\\\",\\\"footer\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/products.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/progress\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'shared.progress.Labour progress')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4 flex-grow-1'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        <div class='flex-grow-1 d-flex align-items-center'>\n          <h2 class='m-0 my-2'>\n            {{t 'shared.progress.Labour progress'}}\n          </h2>\n  \n          {{#if this.showTaskControls}}\n            {{#unless (or this.isSaving this.isLoading)}}\n              {{#if this.isDraft}}\n                <div class='ms-2 badge rounded-pill bg-info'>\n                  {{t 'common.Draft'}}\n                </div>\n              {{else if this.latestVersion}}\n                <div class='ms-2 badge rounded-pill bg-primary'>\n                  {{t 'common.Version'}}\n                  {{this.latestVersion.versionNumber}}\n                </div>\n              {{/if}}\n            {{else}}\n              <div class='ms-2 badge rounded-pill bg-secondary'>\n                <div class='spinner-border spinner-border-sm text-light'></div>\n              </div>\n            {{/unless}}\n          {{/if}}\n        </div>\n      </header>\n    {{/if}}\n  \n    {{#if\n      (and\n        this.showTaskControls\n        (or this.canSeeSaveDraftButton this.canSeeCreateVersionButton)\n      )\n    }}\n      <div class='d-flex align-items-center justify-content-end'>\n        {{#if this.canSeeSaveDraftButton}}\n          <button\n            type='button'\n            disabled={{or this.isLoading this.isSaving}}\n            class='btn btn-primary text-nowrap m-1'\n            {{on 'click' (perform this.saveDraftProgress)}}\n          >\n            {{#if this.saveDraftProgress.isRunning}}\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{t 'common.Save draft'}}\n            {{/if}}\n          </button>\n        {{/if}}\n  \n        {{#if this.canSeeCreateVersionButton}}\n          <button\n            type='button'\n            disabled={{or this.isLoading (not this.isDraft) this.isSaving}}\n            class='btn btn-primary text-nowrap m-1'\n            {{on 'click' (fn (mut this.showCommitProgressModal) true)}}\n          >\n            {{t 'common.Create version'}}\n          </button>\n        {{/if}}\n      </div>\n    {{/if}}\n  \n    <p>\n      {{t\n        'entity.builda-price.projects.project.progress.labourProgressExplanation'\n      }}\n    </p>\n  \n    {{#if (or this.isLoading)}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if this.model.progressList.last.value.length}}\n        {{#if this.canCompleteTasks}}\n          <div class='row px-3'>\n            <div class='col fw-bold'></div>\n            <div class='col-1 fw-bold text-center'>\n              <LabelPopup\n                @text={{t\n                  'entity.builda-price.projects.project.progress.completeExplanation'\n                }}\n              >\n                {{t 'common.Complete'}}\n              </LabelPopup>\n            </div>\n          </div>\n        {{/if}}\n        {{#each this.progressList as |item|}}\n          <TaskProgressPositionRow\n            @item={{item}}\n            @isSaving={{this.isSaving}}\n            @showCompleteColumn={{this.canCompleteTasks}}\n          />\n        {{/each}}\n      {{else}}\n        <div class='mt-5 d-flex flex-column align-items-center'>\n          <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n          <p class='fs-4 mt-0 mb-3'>\n            <b>\n              {{t 'shared.progress.thisProjectDoesNotHaveAnyTasksYet'}}\n            </b>\n          </p>\n          <LinkTo\n            @route='entity.builda-price.projects.project.tasks'\n            @model={{this.model.project.last.value.id}}\n            class='btn btn-primary'\n          >\n            {{t 'shared.progress.Create some tasks'}}\n          </LinkTo>\n        </div>\n      {{/if}}\n    {{/if}}\n  </article>\n  \n  {{#if this.showCommitProgressModal}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.showCommitProgressModal) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.progress.Make a progress version'\n          }}\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        {{#if this.numberOfChanges}}\n          {{t\n            'entity.builda-price.projects.project.progress.thereHasBeenXChangeToTheProgressSinceTheLastVersion'\n            number=this.numberOfChanges\n            changes=(pluralize this.numberOfChanges 'change')\n          }}\n        {{else}}\n          {{t\n            'entity.builda-price.projects.project.progress.thereHaveBeenNoChangesToTheProgressSinceTheLastVersion'\n          }}\n        {{/if}}\n      </div>\n  \n      <div class='modal-footer text-right'>\n        {{#if this.commitProgressVersion.isRunning}}\n          <button type='button' class='btn btn-primary ms-2' disabled={{true}}>\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Creating version'\n            }}…\n          </button>\n        {{else}}\n          <button\n            type='button'\n            class='btn btn-secondary text-white m-1'\n            {{on 'click' (fn (mut this.showCommitProgressModal) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            type='button'\n            disabled={{this.isSaving}}\n            class='btn btn-primary m-1'\n            {{on 'click' (perform this.commitProgressVersion)}}\n          >\n            {{t 'common.Create version'}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"7Aqs+u8Y\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"shared.progress.Labour progress\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex-grow-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.progress.Labour progress\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showTaskControls\\\"]],[[[41,[51,[28,[37,10],[[30,0,[\\\"isSaving\\\"]],[30,0,[\\\"isLoading\\\"]]],null]],[[[41,[30,0,[\\\"isDraft\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"ms-2 badge rounded-pill bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"common.Draft\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"latestVersion\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"ms-2 badge rounded-pill bg-primary\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"common.Version\\\"],null]],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"latestVersion\\\",\\\"versionNumber\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"]],[]],null]],[]]]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"ms-2 badge rounded-pill bg-secondary\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"spinner-border spinner-border-sm text-light\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"showTaskControls\\\"]],[28,[37,10],[[30,0,[\\\"canSeeSaveDraftButton\\\"]],[30,0,[\\\"canSeeCreateVersionButton\\\"]]],null]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canSeeSaveDraftButton\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,10],[[30,0,[\\\"isLoading\\\"]],[30,0,[\\\"isSaving\\\"]]],null]],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"saveDraftProgress\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveDraftProgress\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Save draft\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canSeeCreateVersionButton\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,10],[[30,0,[\\\"isLoading\\\"]],[28,[37,15],[[30,0,[\\\"isDraft\\\"]]],null],[30,0,[\\\"isSaving\\\"]]],null]],[24,0,\\\"btn btn-primary text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showCommitProgressModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Create version\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"\\\\n    \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.progress.labourProgressExplanation\\\"],null]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"isLoading\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,19],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"progressList\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]],[[[41,[30,0,[\\\"canCompleteTasks\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"row px-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col fw-bold\\\"],[12],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-1 fw-bold text-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"entity.builda-price.projects.project.progress.completeExplanation\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"common.Complete\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"progressList\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,23],null,[[\\\"@item\\\",\\\"@isSaving\\\",\\\"@showCompleteColumn\\\"],[[30,1],[30,0,[\\\"isSaving\\\"]],[30,0,[\\\"canCompleteTasks\\\"]]]],null],[1,\\\"\\\\n\\\"]],[1]],null]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mt-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,24],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"shared.progress.thisProjectDoesNotHaveAnyTasksYet\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,26],[[24,0,\\\"btn btn-primary\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.tasks\\\",[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.progress.Create some tasks\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showCommitProgressModal\\\"]],[[[1,\\\"  \\\"],[8,[39,27],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showCommitProgressModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.progress.Make a progress version\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"numberOfChanges\\\"]],[[[1,\\\"        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.progress.thereHasBeenXChangeToTheProgressSinceTheLastVersion\\\"],[[\\\"number\\\",\\\"changes\\\"],[[30,0,[\\\"numberOfChanges\\\"]],[28,[37,29],[[30,0,[\\\"numberOfChanges\\\"]],\\\"change\\\"],null]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.progress.thereHaveBeenNoChangesToTheProgressSinceTheLastVersion\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"commitProgressVersion\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Creating version\\\"],null]],[1,\\\"…\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white m-1\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"showCommitProgressModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isSaving\\\"]]],[24,0,\\\"btn btn-primary m-1\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"commitProgressVersion\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Create version\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"item\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"div\\\",\\\"h2\\\",\\\"or\\\",\\\"and\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"not\\\",\\\"fn\\\",\\\"mut\\\",\\\"p\\\",\\\"loading-icon\\\",\\\"label-popup\\\",\\\"each\\\",\\\"-track-array\\\",\\\"task-progress-position-row\\\",\\\"fa-icon\\\",\\\"b\\\",\\\"link-to\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"pluralize\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/progress.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/settings\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Settings'}}</h2>\n      {{/if}}\n    </header>\n    <div class='mt-3'>\n      {{#if this.isLoading}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <PtlForm class='width--large mb-4'>\n          <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Name'}}\n            @key='name'\n            @model={{this.model.projectChangeset.last.value}}\n            @required={{true}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n          <PtlInput\n            @type='select'\n            @label={{t 'common.Status'}}\n            @key='status'\n            @options={{this.status}}\n            @required={{true}}\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Reference'}}\n            @key='projectReference'\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n          <NewComboBox\n            @isLoading={{this.onAddressChange.isRunning}}\n            @list={{this.addressSuggestions}}\n            @noDataMessage={{t\n              'entity.builda-price.projects.project.settings.No address found'\n            }}\n            @onSelect={{this.setAddress}}\n            @onSearch={{this.onAddressChange}}\n            @debounce={{400}}\n            @label={{t 'common.Address'}}\n            @key='address'\n            @model={{this.model.projectChangeset.last.value}}\n            @hasNextPage={{false}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n          />\n  \n          {{#if\n            (and\n              this.newFeatureFlags.entityCanUseGeofencing this.canManageProject\n            )\n          }}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'entity.builda-price.projects.project.settings.Enable Geofencing'\n              }}\n              @description={{t\n                'entity.builda-price.projects.project.settings.geoFencingDescription'\n              }}\n              @key='geofencingEnabled'\n              @model={{this.model.projectChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              disabled={{or\n                this.saveProject.isRunning\n                (not this.canManageProject)\n              }}\n            />\n  \n            {{#if this.model.projectChangeset.last.value.geofencingEnabled}}\n              <div class='mb-3'>\n                <GoogleMap\n                  @lat={{this.model.projectChangeset.last.value.lat}}\n                  @lng={{this.model.projectChangeset.last.value.lng}}\n                  {{! dirty number cast }}\n                  @radius={{math\n                    (or this.model.projectChangeset.last.value.rad 0)\n                    '*'\n                    1\n                  }}\n                  @maxRadius={{500}}\n                  @minRadius={{100}}\n                  @onRadiusChange={{this.onRadiusChange}}\n                  @onClick={{this.onClickMap}}\n                >\n                  <NewComboBox\n                    @isLoading={{this.onAddressChange.isRunning}}\n                    @list={{this.addressSuggestions}}\n                    @noDataMessage={{t\n                      'entity.builda-price.projects.project.settings.No address found'\n                    }}\n                    @onSelect={{this.setGoogleMapAddress}}\n                    @onSearch={{this.onAddressChange}}\n                    @debounce={{400}}\n                    @key='address'\n                    @model={{this.googleMapAddressFinder}}\n                    @hasNextPage={{false}}\n                    @placeholder={{t\n                      'entity.builda-price.projects.project.settings.Search for an address'\n                    }}\n                  />\n                </GoogleMap>\n              </div>\n            {{/if}}\n          {{/if}}\n  \n          <PtlInput\n            @type='textarea'\n            @label={{t 'common.Description'}}\n            @key='description'\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n  \n          <PtlInput\n            @type='select'\n            @label={{t 'shared.task.Contract type'}}\n            @key='contractType'\n            @selectNoBlankOption={{true}}\n            @options={{this.contractType}}\n            @required={{true}}\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n  \n          <PtlInput\n            @type='date'\n            @label={{t 'common.Start date'}}\n            @key='startDate'\n            @dependantValidationKeys={{array 'completionDate'}}\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            @required={{true}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n          <PtlInput\n            @type='date'\n            @label={{t 'common.Completion date'}}\n            @key='completionDate'\n            @dependantValidationKeys={{array 'startDate'}}\n            @model={{this.model.projectChangeset.last.value}}\n            @forceValidationVisible={{gt this.saveProject.performCount 0}}\n            disabled={{or this.saveProject.isRunning (not this.canManageProject)}}\n          />\n          {{#if\n            (includes-feature-flags\n              this.model.project.lastSuccessful.value 'canUseWorkerJobAllocation'\n            )\n          }}\n            <div class='mb-3'>\n              <label class='mb-1' for='charge-out-rate-modal-button'>\n                {{t\n                  'entity.builda-price.projects.project.settings.Charge-out rates'\n                }}\n              </label>\n              <div class='input-group'>\n                <button\n                  id='charge-out-rate-modal-button'\n                  type='button'\n                  class='btn btn-primary align-self-start'\n                  disabled={{this.saveProject.isRunning}}\n                  {{on 'click' (fn (mut this.workerAllocationModalVisible) true)}}\n                >{{t\n                    'entity.builda-price.projects.project.settings.Edit worker charge-out rates'\n                  }}</button>\n              </div>\n            </div>\n          {{/if}}\n  \n          {{#if\n            (includes\n              this.accountingPlatform.glAccountVisibleFields 'purchasesGlAccount'\n            )\n          }}\n            <div class='d-flex align-items-center mb-3'>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @containerClass='m-0'\n                  @type='powerSelect'\n                  @label={{t\n                    'entity.builda-price.projects.project.settings.Default purchases account'\n                  }}\n                  @key={{if\n                    this.purchasesGlAccountIsOverridden\n                    'purchasesGlAccount'\n                    'defaultPurchasesGlAccount'\n                  }}\n                  @optionKeys={{array 'code' 'name'}}\n                  @options={{this.model.glAccounts.last.value}}\n                  @allowClear={{true}}\n                  @model={{this.model.projectChangeset.last.value}}\n                  @description={{t\n                    'entity.builda-price.projects.project.settings.purchasesGlAccountDescription'\n                  }}\n                  @placeholder={{t\n                    'entity.builda-price.projects.project.settings.No default account'\n                  }}\n                  @searchEnabled={{true}}\n                  @searchField={{this.accountingPlatform.glAccountsSearchField}}\n                  @forceValidationVisible={{gt this.saveProject.performCount 0}}\n                  @disabled={{or\n                    (not this.purchasesGlAccountIsOverridden)\n                    this.saveProject.isRunning\n                    (not this.canManageProject)\n                  }}\n                />\n              </div>\n  \n              <label class='mx-3 d-flex align-items-center mt-1'>\n                <span>{{t 'common.Override'}}</span>\n                <Input\n                  @type='checkbox'\n                  class='form-check-input m-0 ms-1'\n                  @checked={{this.purchasesGlAccountIsOverridden}}\n                  {{on\n                    'click'\n                    (fn\n                      this.togglePurchasesGlAccountOverride\n                      this.model.projectChangeset.last.value\n                    )\n                  }}\n                  disabled={{or\n                    this.saveProject.isRunning\n                    (not this.canManageProject)\n                  }}\n                />\n              </label>\n            </div>\n          {{/if}}\n  \n          {{#if\n            (includes\n              this.accountingPlatform.glAccountVisibleFields 'salesGlAccount'\n            )\n          }}\n            <div class='d-flex align-items-center mb-3'>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @containerClass='m-0'\n                  @type='powerSelect'\n                  @label={{t\n                    'entity.builda-price.projects.project.settings.Default sales account'\n                  }}\n                  @key={{if\n                    this.salesGlAccountIsOverridden\n                    'salesGlAccount'\n                    'defaultSalesGlAccount'\n                  }}\n                  @optionKeys={{array 'code' 'name'}}\n                  @options={{this.model.glAccounts.last.value}}\n                  @allowClear={{true}}\n                  @model={{this.model.projectChangeset.last.value}}\n                  @description={{t\n                    'entity.builda-price.projects.project.settings.salesGlAccountDescription'\n                  }}\n                  @placeholder={{t\n                    'entity.builda-price.projects.project.settings.No default account'\n                  }}\n                  @searchEnabled={{true}}\n                  @searchField={{this.accountingPlatform.glAccountsSearchField}}\n                  @forceValidationVisible={{gt this.saveProject.performCount 0}}\n                  @disabled={{or\n                    (not this.salesGlAccountIsOverridden)\n                    this.saveProject.isRunning\n                    (not this.canManageProject)\n                  }}\n                />\n              </div>\n              <label class='mx-3 d-flex align-items-center mt-1'>\n                <span>{{t 'common.Override'}}</span>\n                <Input\n                  @type='checkbox'\n                  class='form-check-input m-0 ms-1'\n                  @checked={{this.salesGlAccountIsOverridden}}\n                  {{on\n                    'click'\n                    (fn\n                      this.toggleSalesGlAccountOverride\n                      this.model.projectChangeset.last.value\n                    )\n                  }}\n                  disabled={{or\n                    this.saveProject.isRunning\n                    (not this.canManageProject)\n                  }}\n                />\n              </label>\n            </div>\n          {{/if}}\n  \n          {{#if\n            (and\n              this.accountingPlatform.isActive\n              (eq this.accountingPlatform.activePlatform 'xero')\n              (includes-feature-flags 'canUseXeroIntegration')\n            )\n          }}\n            {{#if (eq this.sessionData.entity.region 'AUS')}}\n              <PtlInput\n                @type='powerSelect'\n                @label={{t\n                  'entity.builda-price.projects.project.settings.Xero tracking category'\n                }}\n                @key='xeroTrackingOption'\n                @optionKeys={{array 'trackingOptionName'}}\n                @options={{this.xeroTrackingOptions}}\n                @model={{this.model.projectChangeset.last.value}}\n                @searchEnabled={{true}}\n                @allowClear={{true}}\n                @searchField='trackingOptionName'\n                @afterOptionsComponent={{component\n                  'power-select-after-options-button'\n                  onClick=(perform this.syncXeroTrackingCategoryOptions)\n                  icon='sync'\n                  text=(t\n                    'entity.builda-price.projects.project.settings.Reload Xero category options'\n                  )\n                  isLoading=this.syncXeroTrackingCategoryOptions.isRunning\n                  loadingText=(t\n                    'entity.builda-price.projects.project.settings.Loading Xero tracking options'\n                  )\n                }}\n                @forceValidationVisible={{gt this.saveProject.performCount 0}}\n                disabled={{this.saveProject.isRunning}}\n                @description={{t\n                  'entity.builda-price.projects.project.settings.xeroProvidesTrackingCategoriesToTagLineItemsInXeroToAidReporting'\n                }}\n              />\n            {{/if}}\n          {{/if}}\n  \n          {{! assume contact info is restricted to project managers - pretty shit }}\n          {{#if this.canManageProject}}\n            <h4 class='my-2'>{{t\n                'entity.builda-price.projects.project.settings.Primary contact details'\n              }}</h4>\n            <PtlInput\n              @type='text'\n              @label={{t 'common.Name'}}\n              @key='contactName'\n              @model={{this.model.projectChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              disabled={{or\n                this.saveProject.isRunning\n                (not this.canManageProject)\n              }}\n            />\n            <PtlInput\n              @type='text'\n              @label={{t 'common.Email'}}\n              @key='contactEmail'\n              @model={{this.model.projectChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              disabled={{or\n                this.saveProject.isRunning\n                (not this.canManageProject)\n              }}\n            />\n            <PtlInput\n              @type='text'\n              @label={{t 'common.Phone number'}}\n              @key='contactNumber'\n              @model={{this.model.projectChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              disabled={{or\n                this.saveProject.isRunning\n                (not this.canManageProject)\n              }}\n            />\n            <PtlInput\n              @type='text'\n              @label={{t\n                'entity.builda-price.projects.project.settings.Postal address'\n              }}\n              @key='contactAddress'\n              @model={{this.model.projectChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              disabled={{or\n                this.saveProject.isRunning\n                (not this.canManageProject)\n              }}\n            />\n          {{/if}}\n  \n          {{#if this.canManageProject}}\n            <div class='d-flex flex-grow-1 mt-3'>\n              {{#if this.canManageProject}}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  disabled={{or\n                    this.deleteProject.isRunning\n                    this.saveProject.isRunning\n                  }}\n                  {{on\n                    'click'\n                    (if\n                      this.canDelete\n                      (action (mut this.isDeletingProject) true)\n                      (action (mut this.isArchivingProject) true)\n                    )\n                  }}\n                  data-test-project-settings-delete-or-archive-button\n                >\n                  {{#if\n                    (or\n                      this.archiveProject.isRunning this.deleteProject.isRunning\n                    )\n                  }}\n                    &nbsp;&nbsp;{{t 'common.Deleting'}}…\n                  {{else}}\n                    {{t\n                      'entity.builda-price.projects.project.settings.Delete project'\n                    }}\n                  {{/if}}\n                </button>\n              {{/if}}\n  \n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveProject.isRunning}}\n                {{on\n                  'click'\n                  (perform\n                    this.saveProject this.model.projectChangeset.last.value\n                  )\n                }}\n              >\n                {{#if this.saveProject.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n                {{else}}\n                  {{t 'common.Save details'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/if}}\n        </PtlForm>\n  \n        {{#if\n          (includes-feature-flags\n            this.model.project.last.value 'canManageProfitMargin'\n          )\n        }}\n          <PtlForm class='width--large'>\n            <ProfitMarginForm\n              @default={{this.model.project.last.value.defaultPercentageValues}}\n              @profitMargin={{this.model.profitMarginChangeset.last.value}}\n              @description={{t 'shared.profit-margins.profitMarginDescription'}}\n              @forceValidationVisible={{gt this.saveProject.performCount 0}}\n              @disabled={{this.saveProfitMargin.isRunning}}\n            />\n  \n            {{#if this.canManageProfitMargin}}\n              <div class='d-flex flex-grow-1 mt-3'>\n                <button\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{this.saveProfitMargin.isRunning}}\n                  {{on\n                    'click'\n                    (perform\n                      this.saveProfitMargin\n                      this.model.projectChangeset.last.value\n                      this.model.profitMarginChangeset.last.value\n                    )\n                  }}\n                >\n                  {{#if this.saveProfitMargin.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n                  {{else}}\n                    {{t 'shared.profit-margins.Save profit margins'}}\n                  {{/if}}\n                </button>\n              </div>\n            {{/if}}\n          </PtlForm>\n        {{/if}}\n      {{/if}}\n    </div>\n  </article>\n  \n  <ConfirmDelete\n    @visible={{this.isDeletingProject}}\n    @title={{t 'entity.builda-price.projects.project.settings.Delete project'}}\n    @messages={{this.deleteMessages}}\n    @confirmText={{t\n      'entity.builda-price.projects.project.settings.delete project'\n    }}\n    @deleteButtonText={{t\n      'entity.builda-price.projects.project.settings.Delete project'\n    }}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{perform this.deleteProject}}\n    @onCancel={{fn (mut this.isDeletingProject) false}}\n  />\n  \n  {{#if this.isArchivingProject}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isArchivingProject) false}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t 'entity.builda-price.projects.project.settings.Delete project'}}\n        </h5>\n      </div>\n  \n      <div class='modal-body' data-test-confirm-delete-dialog>\n        <p data-test-project-settings-archive-dialog>\n          {{t\n            'entity.builda-price.projects.project.settings.youCannotDeleteThisProjectBecauseItHasCostsAssignedToIt'\n          }}\n        </p>\n        <p>{{t\n            'entity.builda-price.projects.project.settings.wouldYouLikeToArchiveTheProjectInstead'\n          }}</p>\n      </div>\n  \n      <footer class='modal-footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.archiveProject.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t\n                'entity.builda-price.projects.project.settings.Archiving project'\n              }}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.archiveProject.isRunning}}\n              {{on 'click' (fn (mut this.isArchivingProject) false)}}\n            >{{t 'common.Cancel'}}</button>\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.archiveProject.isRunning}}\n              {{on 'click' (perform this.archiveProject)}}\n            >\n              {{t\n                'entity.builda-price.projects.project.settings.Archive project'\n              }}\n            </button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.workerAllocationModalVisible}}\n    <WorkerProjectAllocationModal\n      @project={{this.model.project.last.value}}\n      @onClose={{fn (mut this.workerAllocationModalVisible) false}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"uZ7l85ac\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,5],[\\\"common.Settings\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,8],[[24,0,\\\"width--large mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,5],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Name\\\"],null],\\\"name\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,5],[\\\"common.Status\\\"],null],\\\"status\\\",[30,0,[\\\"status\\\"]],true,[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Reference\\\"],null],\\\"projectReference\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,14],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@forceValidationVisible\\\"],[[30,0,[\\\"onAddressChange\\\",\\\"isRunning\\\"]],[30,0,[\\\"addressSuggestions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.No address found\\\"],null],[30,0,[\\\"setAddress\\\"]],[30,0,[\\\"onAddressChange\\\"]],400,[28,[37,5],[\\\"common.Address\\\"],null],\\\"address\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],false,[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseGeofencing\\\"]],[30,0,[\\\"canManageProject\\\"]]],null],[[[1,\\\"          \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Enable Geofencing\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.geoFencingDescription\\\"],null],\\\"geofencingEnabled\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"geofencingEnabled\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@lat\\\",\\\"@lng\\\",\\\"@radius\\\",\\\"@maxRadius\\\",\\\"@minRadius\\\",\\\"@onRadiusChange\\\",\\\"@onClick\\\"],[[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"lat\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"lng\\\"]],[28,[37,17],[[28,[37,11],[[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"rad\\\"]],0],null],\\\"*\\\",1],null],500,100,[30,0,[\\\"onRadiusChange\\\"]],[30,0,[\\\"onClickMap\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[8,[39,14],null,[[\\\"@isLoading\\\",\\\"@list\\\",\\\"@noDataMessage\\\",\\\"@onSelect\\\",\\\"@onSearch\\\",\\\"@debounce\\\",\\\"@key\\\",\\\"@model\\\",\\\"@hasNextPage\\\",\\\"@placeholder\\\"],[[30,0,[\\\"onAddressChange\\\",\\\"isRunning\\\"]],[30,0,[\\\"addressSuggestions\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.No address found\\\"],null],[30,0,[\\\"setGoogleMapAddress\\\"]],[30,0,[\\\"onAddressChange\\\"]],400,\\\"address\\\",[30,0,[\\\"googleMapAddressFinder\\\"]],false,[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Search for an address\\\"],null]]],null],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,5],[\\\"common.Description\\\"],null],\\\"description\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,5],[\\\"shared.task.Contract type\\\"],null],\\\"contractType\\\",true,[30,0,[\\\"contractType\\\"]],true,[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@dependantValidationKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@required\\\"],[\\\"date\\\",[28,[37,5],[\\\"common.Start date\\\"],null],\\\"startDate\\\",[28,[37,18],[\\\"completionDate\\\"],null],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n        \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@dependantValidationKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,5],[\\\"common.Completion date\\\"],null],\\\"completionDate\\\",[28,[37,18],[\\\"startDate\\\"],null],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"lastSuccessful\\\",\\\"value\\\"]],\\\"canUseWorkerJobAllocation\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"charge-out-rate-modal-button\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Charge-out rates\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,1,\\\"charge-out-rate-modal-button\\\"],[24,0,\\\"btn btn-primary align-self-start\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,23],[[28,[37,24],[[30,0,[\\\"workerAllocationModalVisible\\\"]]],null],true],null]],null],[12],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Edit worker charge-out rates\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"purchasesGlAccount\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,10],null,[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@allowClear\\\",\\\"@model\\\",\\\"@description\\\",\\\"@placeholder\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[\\\"m-0\\\",\\\"powerSelect\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Default purchases account\\\"],null],[52,[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]],\\\"purchasesGlAccount\\\",\\\"defaultPurchasesGlAccount\\\"],[28,[37,18],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],true,[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.purchasesGlAccountDescription\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.No default account\\\"],null],true,[30,0,[\\\"accountingPlatform\\\",\\\"glAccountsSearchField\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null],[28,[37,11],[[28,[37,12],[[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]]],null],[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[12],[1,[28,[35,5],[\\\"common.Override\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[8,[39,27],[[24,0,\\\"form-check-input m-0 ms-1\\\"],[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]],[4,[38,22],[\\\"click\\\",[28,[37,23],[[30,0,[\\\"togglePurchasesGlAccountOverride\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"salesGlAccount\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,10],null,[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@allowClear\\\",\\\"@model\\\",\\\"@description\\\",\\\"@placeholder\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[\\\"m-0\\\",\\\"powerSelect\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Default sales account\\\"],null],[52,[30,0,[\\\"salesGlAccountIsOverridden\\\"]],\\\"salesGlAccount\\\",\\\"defaultSalesGlAccount\\\"],[28,[37,18],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],true,[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.salesGlAccountDescription\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.No default account\\\"],null],true,[30,0,[\\\"accountingPlatform\\\",\\\"glAccountsSearchField\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null],[28,[37,11],[[28,[37,12],[[30,0,[\\\"salesGlAccountIsOverridden\\\"]]],null],[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[12],[1,[28,[35,5],[\\\"common.Override\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[8,[39,27],[[24,0,\\\"form-check-input m-0 ms-1\\\"],[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]],[4,[38,22],[\\\"click\\\",[28,[37,23],[[30,0,[\\\"toggleSalesGlAccountOverride\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"salesGlAccountIsOverridden\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[28,[37,28],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"xero\\\"],null],[28,[37,19],[\\\"canUseXeroIntegration\\\"],null]],null],[[[41,[28,[37,28],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"region\\\"]],\\\"AUS\\\"],null],[[[1,\\\"            \\\"],[8,[39,10],[[16,\\\"disabled\\\",[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@searchEnabled\\\",\\\"@allowClear\\\",\\\"@searchField\\\",\\\"@afterOptionsComponent\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\"],[\\\"powerSelect\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Xero tracking category\\\"],null],\\\"xeroTrackingOption\\\",[28,[37,18],[\\\"trackingOptionName\\\"],null],[30,0,[\\\"xeroTrackingOptions\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,true,\\\"trackingOptionName\\\",[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[28,[37,30],[[30,0,[\\\"syncXeroTrackingCategoryOptions\\\"]]],null],\\\"sync\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Reload Xero category options\\\"],null],[30,0,[\\\"syncXeroTrackingCategoryOptions\\\",\\\"isRunning\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Loading Xero tracking options\\\"],null]]]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.xeroProvidesTrackingCategoriesToTagLineItemsInXeroToAidReporting\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageProject\\\"]],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"my-2\\\"],[12],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Primary contact details\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Name\\\"],null],\\\"contactName\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Email\\\"],null],\\\"contactEmail\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Phone number\\\"],null],\\\"contactNumber\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,10],[[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[28,[37,12],[[30,0,[\\\"canManageProject\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Postal address\\\"],null],\\\"contactAddress\\\",[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageProject\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageProject\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,11],[[30,0,[\\\"deleteProject\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]]],null]],[24,\\\"data-test-project-settings-delete-or-archive-button\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[52,[30,0,[\\\"canDelete\\\"]],[28,[37,32],[[30,0],[28,[37,24],[[30,0,[\\\"isDeletingProject\\\"]]],null],true],null],[28,[37,32],[[30,0],[28,[37,24],[[30,0,[\\\"isArchivingProject\\\"]]],null],true],null]]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"archiveProject\\\",\\\"isRunning\\\"]],[30,0,[\\\"deleteProject\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"                    \\\"],[1,[28,[35,5],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Delete project\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,30],[[30,0,[\\\"saveProject\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveProject\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,5],[\\\"common.Save details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"        \\\"],[8,[39,8],[[24,0,\\\"width--large\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,33],null,[[\\\"@default\\\",\\\"@profitMargin\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"defaultPercentageValues\\\"]],[30,0,[\\\"model\\\",\\\"profitMarginChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,5],[\\\"shared.profit-margins.profitMarginDescription\\\"],null],[28,[37,13],[[30,0,[\\\"saveProject\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageProfitMargin\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,30],[[30,0,[\\\"saveProfitMargin\\\"]],[30,0,[\\\"model\\\",\\\"projectChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"profitMarginChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,5],[\\\"shared.profit-margins.Save profit margins\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[8,[39,34],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@confirmText\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"isDeletingProject\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Delete project\\\"],null],[30,0,[\\\"deleteMessages\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.delete project\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.settings.Delete project\\\"],null],[28,[37,5],[\\\"common.Deleting\\\"],null],[28,[37,30],[[30,0,[\\\"deleteProject\\\"]]],null],[28,[37,23],[[28,[37,24],[[30,0,[\\\"isDeletingProject\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isArchivingProject\\\"]],[[[1,\\\"  \\\"],[8,[39,35],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,23],[[28,[37,24],[[30,0,[\\\"isArchivingProject\\\"]]],null],false],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Delete project\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[14,\\\"data-test-confirm-delete-dialog\\\",\\\"\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,\\\"data-test-project-settings-archive-dialog\\\",\\\"\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.youCannotDeleteThisProjectBecauseItHasCostsAssignedToIt\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.wouldYouLikeToArchiveTheProjectInstead\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"archiveProject\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Archiving project\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"archiveProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,23],[[28,[37,24],[[30,0,[\\\"isArchivingProject\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"archiveProject\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,22],[\\\"click\\\",[28,[37,30],[[30,0,[\\\"archiveProject\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.settings.Archive project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"workerAllocationModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,39],null,[[\\\"@project\\\",\\\"@onClose\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,23],[[28,[37,24],[[30,0,[\\\"workerAllocationModalVisible\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h2\\\",\\\"t\\\",\\\"div\\\",\\\"loading-icon\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"new-combo-box\\\",\\\"and\\\",\\\"google-map\\\",\\\"math\\\",\\\"array\\\",\\\"includes-feature-flags\\\",\\\"label\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"includes\\\",\\\"span\\\",\\\"input\\\",\\\"eq\\\",\\\"component\\\",\\\"perform\\\",\\\"h4\\\",\\\"action\\\",\\\"profit-margin-form\\\",\\\"confirm-delete\\\",\\\"modal-dialog\\\",\\\"h5\\\",\\\"p\\\",\\\"footer\\\",\\\"worker-project-allocation-modal\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/settings.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/stage-payments\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        <div class='flex-grow-1 d-flex justify-content-end align-items-center'>\n          <div class='flex-grow-1'>\n            <h2 class='m-0 my-2'>\n              {{t 'shared.stage-payments.Stage payments'}}\n            </h2>\n          </div>\n          <span class='me-1'>\n            <SelectInput\n              @value={{this.status}}\n              @action={{fn (mut this.status)}}\n              @class='form-control select-box'\n              @disabled={{this.pageIsLoading}}\n              as |si|\n            >\n              <si.option @value='ALL'>{{t\n                  'entity.builda-price.projects.project.stage-payments.All stages'\n                }}</si.option>\n              <si.option @value='CLAIMED'>{{t\n                  'entity.builda-price.projects.project.stage-payments.Claimed stages'\n                }}</si.option>\n              <si.option @value='UNCLAIMED'>{{t\n                  'entity.builda-price.projects.project.stage-payments.Unclaimed stages'\n                }}</si.option>\n            </SelectInput>\n          </span>\n          <div class='m-0 p-0 me-1'>\n            <button\n              type='button'\n              class='btn btn-secondary text-white'\n              disabled={{or this.pageIsLoading this.downloadAsPdf.isRunning}}\n              {{on 'click' (fn (mut this.showDownloadOptions) true)}}\n            >\n              {{t 'common.Download'}}\n            </button>\n          </div>\n        </div>\n      </header>\n    {{/if}}\n    {{#if this.pageIsLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if this.isEditable}}\n        <div class='d-flex mb-3 justify-content-end align-items-center'>\n          <button\n            type='button'\n            class='btn btn-link text-primary text-decoration-underline me-2'\n            {{on 'click' (fn (mut this.showProjectLevelContractTermsModal) true)}}\n          >\n            {{t 'entity.builda-price.projects.project.stage-payments.Set notes'}}\n          </button>\n  \n          <div class='d-flex align-items-center'>\n            <DropdownButton\n              @buttonText={{if\n                this.addStagePayments.isRunning\n                (t 'common.Adding')\n                (t 'common.Add')\n              }}\n              @onPrimaryClick={{(perform this.addStagePayments 1)}}\n              @disabled={{this.pageIsLoading}}\n              @btnClass='btn btn-success'\n            >\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (fn (mut this.showCreateStagesModal) true)}}\n              >\n                {{t\n                  'entity.builda-price.projects.project.stage-payments.Add multiple'\n                }}\n              </button>\n            </DropdownButton>\n          </div>\n        </div>\n      {{/if}}\n  \n      {{#if this.model.stagePayments.lastSuccessful.value.length}}\n        <div class='d-flex flex-column flex-lg-row border card rounded mb-3'>\n          <div class='col-lg-4'>\n            <div class='card-body'>\n              <h5 class='card-title'>{{t 'common.Quote'}}</h5>\n              <p class='card-text'>\n                {{number-format\n                  this.model.stagePaymentsValues.lastSuccessful.value.quote\n                  style='currency'\n                }}\n              </p>\n            </div>\n          </div>\n          <div class='col-lg-4'>\n            <div class='card-body'>\n              <h5 class='card-title'>{{t\n                  'entity.builda-price.projects.project.stage-payments.Stages allocated'\n                }}</h5>\n              <p class='card-text'>\n                {{number-format\n                  this.model.stagePaymentsValues.lastSuccessful.value.stagesValue\n                  style='currency'\n                }}\n              </p>\n            </div>\n          </div>\n          <div class='col-lg-4'>\n            <div class='card-body'>\n              <h5 class='card-title'>{{t\n                  'entity.builda-price.projects.project.stage-payments.Remaining quote'\n                }}</h5>\n              <p class='card-text'>\n                {{number-format this.remainingQuote style='currency'}}\n              </p>\n            </div>\n          </div>\n        </div>\n  \n        <div class='mb-2'>\n          {{#if this.selectedStages.size}}\n            <button\n              class='btn btn-link text-danger text-decoration-underline'\n              type='button'\n              {{on 'click' (fn (mut this.showBulkDeleteStagesModal) true)}}\n              disabled={{or (not this.selectedStages.size) this.pageIsLoading}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              type='button'\n              class='btn btn-link text-primary text-decoration-underline'\n              {{on 'click' (fn (mut this.showBulkActionsModal) true)}}\n            >\n              {{t\n                'entity.builda-price.projects.project.stage-payments.Set value'\n              }}\n            </button>\n          {{else}}\n            <div style='min-height: 33.5px'></div>\n          {{/if}}\n        </div>\n        <div class='stage-payments__table-container'>\n          <PaginationTable\n            @tableHeader={{this.tableHeader}}\n            @tableData={{this.tableData}}\n            @onChangePageIndex={{this.onChangePage}}\n            @onChangePageSize={{this.onChangePageSize}}\n            @noDataText={{t 'common.No data'}}\n            @pageSizes={{this.model.pageSizes}}\n            @pageSize={{this.model.pageSize}}\n            @pageIndex={{this.model.pageNumber}}\n            @isLoading={{this.tableIsLoading}}\n            @totalRecords={{this.totalRecords}}\n          />\n        </div>\n      {{else}}\n        <div class='mt-5 d-flex flex-column align-items-center'>\n          <FaIcon @icon='coins' @size='2x' class='mt-0 mb-3' />\n          <p class='fs-4 mt-0 mb-3'>\n            <b>\n              {{t\n                'entity.builda-price.projects.project.stage-payments.thisProjectDoesNotHaveAnyStagesPaymentsYet'\n              }}\n            </b>\n          </p>\n          <button\n            class='btn btn btn-primary m-1'\n            type='button'\n            {{on 'click' (fn (mut this.showCreateStagesModal) true)}}\n          >\n            {{t\n              'entity.builda-price.projects.project.stage-payments.Create stages'\n            }}\n          </button>\n        </div>\n      {{/if}}\n    {{/if}}\n  </article>\n  \n  {{#if this.showCreateStagesModal}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showCreateStagesModal) false}}\n    >\n      <div class='modal-body'>\n        <label class='mb-1' for='stages'>\n          {{t\n            'entity.builda-price.projects.project.stage-payments.Enter number of stages'\n          }}<sup class='text-danger'>*</sup>\n        </label>\n        <div class='input-group'>\n          <Input\n            class='form-control'\n            id='stages'\n            @type='number'\n            @value={{this.numberOfStages}}\n            step='1'\n            min='1'\n            disabled={{this.addStagePayments.isRunning}}\n            {{on 'input' this.preventNegative}}\n          />\n        </div>\n      </div>\n      <div class='modal-footer'>\n        <button\n          class='btn btn-secondary'\n          type='button'\n          {{on\n            'click'\n            (pipe\n              (fn (mut this.showCreateStagesModal) false)\n              (fn (mut this.numberOfStages) null)\n            )\n          }}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          class='btn btn-primary'\n          type='button'\n          {{on 'click' (perform this.addStagePayments this.numberOfStages)}}\n          disabled={{or\n            (not this.numberOfStages)\n            this.addStagePayments.isRunning\n          }}\n        >\n          {{#if this.addStagePayments.isRunning}}\n            {{t 'common.Creating'}}&hellip;\n          {{else}}\n            {{t 'common.Create'}}\n          {{/if}}\n        </button>\n  \n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showNameEditor}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showNameEditor) false}}\n    >\n      {{#let\n        (changeset this.currentStagePayment this.stagePaymentValidationMap)\n        as |stagePayment|\n      }}\n        <div class='modal-body'>\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Name'}}\n            @key='name'\n            @model={{stagePayment}}\n            @forceValidationVisible={{gt this.saveCurrentStage.performCount 0}}\n            disabled={{or this.saveCurrentStage.isRunning (not this.isEditable)}}\n          />\n          <PtlInput\n            @type='number'\n            step='1'\n            min='1'\n            max={{this.totalRecords}}\n            @label={{t\n              'entity.builda-price.projects.project.stage-payments.Stage'\n            }}\n            @key='stageNumber'\n            @model={{stagePayment}}\n            @required={{true}}\n            @forceValidationVisible={{gt this.saveCurrentStage.performCount 0}}\n            disabled={{or this.saveCurrentStage.isRunning (not this.isEditable)}}\n          />\n  \n          <PtlInput\n            @type='percentage'\n            @label={{t 'common.Retentions'}}\n            @key='retention'\n            placeholder='0.0%'\n            @model={{stagePayment}}\n            @forceValidationVisible={{gt this.saveCurrentStage.performCount 0}}\n            disabled={{or this.saveCurrentStage.isRunning (not this.isEditable)}}\n          />\n        </div>\n  \n        <div class='modal-footer'>\n  \n          <button\n            class='btn btn-secondary'\n            type='button'\n            {{on 'click' (fn (mut this.showNameEditor) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          {{#if this.isEditable}}\n            <button\n              class='btn btn-primary'\n              type='button'\n              {{on 'click' (perform this.saveCurrentStage stagePayment)}}\n              disabled={{this.saveCurrentStage.isRunning}}\n            >\n              {{#if this.saveCurrentStage.isRunning}}\n                {{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      {{/let}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showValueEditor}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showValueEditor) false}}\n    >\n  \n      <div hidden {{did-insert (perform this.loadDataForValueModal)}} />\n  \n      {{#if this.loadData.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        {{#let\n          (changeset this.currentStagePayment this.stagePaymentValidationMap)\n          as |stagePayment|\n        }}\n          <div class='modal-body'>\n            <PtlInput\n              @type='currency'\n              @label={{t 'common.Value'}}\n              @key='value'\n              @model={{stagePayment}}\n              @required={{true}}\n              placeholder='$0.00'\n              @forceValidationVisible={{gt this.saveCurrentStage.performCount 0}}\n              disabled={{this.saveCurrentStage.isRunning}}\n            />\n            <div class='d-flex align-items-center'>\n              <button\n                type='button'\n                class='btn btn-link text-decoration-underline'\n                disabled={{or\n                  (not this.model.project.last.value.currentQuoteVersion)\n                  (lt this.useValueFromTasks 1)\n                }}\n                {{on 'click' (perform this.setUseValueFromTasks stagePayment)}}\n              >\n                {{t\n                  'entity.builda-price.projects.project.stage-payments.Use tasks value'\n                }}\n              </button>\n              <button\n                type='button'\n                class='btn btn-link text-decoration-underline ms-2'\n                disabled={{or\n                  (not this.model.project.last.value.currentQuoteVersion)\n                  (not this.remainingQuoteValue)\n                }}\n                {{on 'click' (perform this.setRemainingQuoteValue stagePayment)}}\n              >\n                {{t\n                  'entity.builda-price.projects.project.stage-payments.Use remaining quote'\n                }}\n                {{number-format this.remainingQuote style='currency'}}\n              </button>\n            </div>\n          </div>\n          <div class='modal-footer'>\n            <button\n              class='btn btn-secondary'\n              type='button'\n              {{on 'click' (fn (mut this.showValueEditor) false)}}\n            >\n              {{t 'common.Cancel'}}\n            </button>\n            <button\n              class='btn btn-primary'\n              type='button'\n              {{on 'click' (perform this.saveCurrentStage stagePayment)}}\n              disabled={{this.saveCurrentStage.isRunning}}\n            >\n              {{#if this.saveCurrentStage.isRunning}}\n                {{t 'common.Saving'}}&hellip;\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/let}}\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showDateEditor}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showDateEditor) false}}\n    >\n      {{#let\n        (changeset this.currentStagePayment this.stagePaymentValidationMap)\n        as |stagePayment|\n      }}\n        <div class='modal-body'>\n          <PtlInput\n            @type='date'\n            @label={{t 'common.Due date'}}\n            @key='dueDate'\n            @model={{stagePayment}}\n            @forceValidationVisible={{gt this.saveCurrentStage.performCount 0}}\n            disabled={{this.saveCurrentStage.isRunning}}\n          />\n        </div>\n  \n        <div class='modal-footer'>\n          <button\n            class='btn btn-secondary'\n            type='button'\n            {{on 'click' (fn (mut this.showDateEditor) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on 'click' (perform this.saveCurrentStage stagePayment)}}\n            disabled={{this.saveCurrentStage.isRunning}}\n          >\n            {{#if this.saveCurrentStage.isRunning}}\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{t 'common.Save'}}\n            {{/if}}\n          </button>\n        </div>\n      {{/let}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showTaskSelectorModal}}\n    <StagePaymentTaskSelector\n      @project={{this.model.project.last.value}}\n      @currentStageLinkedTasks={{this.currentStageLinkedTasks}}\n      @allStageLinkedTasks={{this.allStageLinkedTasks}}\n      @stagePayment={{this.currentStagePayment}}\n      @onClose={{fn (mut this.showTaskSelectorModal) false}}\n      @editable={{and\n        this.isEditable\n        (not-eq this.currentStagePayment.status 'CLAIMED')\n      }}\n    />\n  {{/if}}\n  \n  {{#if this.showChecklistModal}}\n    <Checklist\n      @checklist={{this.currentChecklist}}\n      @editable={{and\n        this.isEditable\n        (not-eq this.currentStagePayment.status 'CLAIMED')\n      }}\n      @stagePayment={{this.currentStagePayment}}\n      @addNewQuestion={{this.addNewQuestion}}\n      @deleteQuestion={{this.deleteQuestion}}\n      @onClose={{fn (mut this.showChecklistModal) false}}\n    />\n  {{/if}}\n  \n  {{#if this.showBulkDeleteStagesModal}}\n    <ModalDialog\n      @onClose={{fn (mut this.showBulkDeleteStagesModal) false}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p>\n          {{t\n            'entity.builda-price.projects.project.stage-payments.areYouSureYouWantToDeleteStage'\n            stage=(pluralize this.selectedStages.size 'stage')\n          }}\n        </p>\n      </div>\n      <div class='modal-footer'>\n        <button\n          class='btn btn-danger text-white'\n          type='button'\n          disabled={{this.deleteStages.isRunning}}\n          {{on 'click' (perform this.deleteStages)}}\n        >\n          {{#if this.deleteStages.isRunning}}\n            {{t 'common.Deleting'}}&hellip;\n          {{else}}\n            {{t 'common.Delete'}}\n          {{/if}}\n        </button>\n        <button\n          class='btn btn-secondary text-white'\n          type='button'\n          disabled={{this.deleteStages.isRunning}}\n          {{on 'click' (fn (mut this.showBulkDeleteStagesModal) false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showBulkActionsModal}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showBulkActionsModal) false}}\n    >\n      <div class='modal-body'>\n        <div class='mb-3'>\n          <label class='mb-1' for='value'>\n            {{t 'common.Value'}}\n          </label>\n          <div class='input-group'>\n            <FormattedInput\n              required={{true}}\n              @class='text-input w-100'\n              placeholder='$0.00'\n              @update={{action (mut this.bulkActionsStageValue)}}\n              @number={{this.bulkActionsStageValue}}\n              @format='currency'\n              disabled={{this.saveBulkActionDistributeValue.isRunning}}\n            />\n          </div>\n        </div>\n        <div class='d-flex align-items-center'>\n          <button\n            type='button'\n            class='btn btn-link text-decoration-underline'\n            {{on 'click' this.distributeRemainingQuoteAcrossStages}}\n          >\n            {{t 'entity.builda-price.projects.project.stage-payments.Use quote'}}\n            {{number-format\n              this.remainingQuoteValueInContextWithStages\n              style='currency'\n            }}\n          </button>\n        </div>\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          class='btn btn-secondary'\n          type='button'\n          {{on\n            'click'\n            (pipe\n              (fn (mut this.showBulkActionsModal) false)\n              (fn (mut this.bulkActionsStageValue) 0)\n            )\n          }}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          class='btn btn-primary'\n          type='button'\n          {{on 'click' (perform this.saveBulkActionDistributeValue)}}\n          disabled={{this.saveBulkActionDistributeValue.isRunning}}\n        >\n          {{#if this.saveBulkActionDistributeValue.isRunning}}\n            {{t 'common.Saving'}}&hellip;\n          {{else}}\n            {{t 'common.Save'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showProjectLevelContractTermsModal}}\n    <ModalDialog\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.showProjectLevelContractTermsModal) false}}\n    >\n      {{#let\n        (changeset this.stagePaymentOption this.stagePaymentsOptionsValidationMap)\n        as |stagePaymentOptionsModel|\n      }}\n        <div class='modal-body'>\n          <PtlInput\n            @type='textarea'\n            @label={{t\n              'entity.builda-price.projects.project.stage-payments.Additional notes'\n            }}\n            @key='footerNotes'\n            @model={{stagePaymentOptionsModel}}\n            disabled={{this.saveStagePaymentOptions.isRunning}}\n            @forceValidationVisible={{gt\n              this.saveStagePaymentOptions.performCount\n              0\n            }}\n          />\n        </div>\n        <div class='modal-footer'>\n          <button\n            class='btn btn-secondary'\n            type='button'\n            {{on\n              'click'\n              (fn (mut this.showProjectLevelContractTermsModal) false)\n            }}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on\n              'click'\n              (perform this.saveStagePaymentOptions stagePaymentOptionsModel)\n            }}\n            disabled={{this.saveStagePaymentOptions.isRunning}}\n          >\n            {{#if this.saveStagePaymentOptions.isRunning}}\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{t 'common.Save'}}\n            {{/if}}\n          </button>\n        </div>\n      {{/let}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.showDownloadOptions}}\n    <ModalDialog\n      @onClose={{this.closeDownloadOptions}}\n      @containerClass='modal-content w-auto'\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <div class='form-check mt-1'>\n          <label for='includeTasks' class='form-check-label'>\n            <input\n              type='checkbox'\n              id='includeTasks'\n              class='form-check-input'\n              disabled={{this.downloadAsPdf.isRunning}}\n              checked={{this.includeTasks}}\n              {{on 'click' (fn this.toggleProperty 'includeTasks')}}\n            />\n            {{t\n              'entity.builda-price.projects.project.stage-payments.Include tasks'\n            }}\n          </label>\n        </div>\n        <div class='form-check mt-1 mb-1'>\n          <label for='includeCheckListItems' class='form-check-label'>\n            <input\n              type='checkbox'\n              id='includeCheckListItems'\n              class='form-check-input'\n              disabled={{this.downloadAsPdf.isRunning}}\n              checked={{this.includeCheckListItems}}\n              {{on 'click' (fn this.toggleProperty 'includeCheckListItems')}}\n            />\n            {{t\n              'entity.builda-price.projects.project.stage-payments.Include checklist'\n            }}\n          </label>\n        </div>\n      </div>\n      <div class='modal-footer'>\n        <button\n          class='btn btn-secondary'\n          type='button'\n          {{on 'click' this.closeDownloadOptions}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          class='btn btn-primary'\n          type='button'\n          {{on 'click' (perform this.downloadAsPdf)}}\n          disabled={{this.downloadAsPdf.isRunning}}\n        >\n          {{#if this.downloadAsPdf.isRunning}}\n            {{t 'common.Downloading'}}&hellip;\n          {{else}}\n            {{t 'common.Download'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"HHtwgXsR\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"flex-grow-1 d-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[14,0,\\\"m-0 my-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"shared.stage-payments.Stage payments\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,8],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\",\\\"@disabled\\\"],[[30,0,[\\\"status\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box\\\",[30,0,[\\\"pageIsLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.All stages\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLAIMED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Claimed stages\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"UNCLAIMED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Unclaimed stages\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"m-0 p-0 me-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"pageIsLoading\\\"]],[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showDownloadOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"pageIsLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,14],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex mb-3 justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline me-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showProjectLevelContractTermsModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Set notes\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],null,[[\\\"@buttonText\\\",\\\"@onPrimaryClick\\\",\\\"@disabled\\\",\\\"@btnClass\\\"],[[52,[30,0,[\\\"addStagePayments\\\",\\\"isRunning\\\"]],[28,[37,6],[\\\"common.Adding\\\"],null],[28,[37,6],[\\\"common.Add\\\"],null]],[28,[37,16],[[30,0,[\\\"addStagePayments\\\"]],1],null],[30,0,[\\\"pageIsLoading\\\"]],\\\"btn btn-success\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showCreateStagesModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Add multiple\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"stagePayments\\\",\\\"lastSuccessful\\\",\\\"value\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row border card rounded mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-lg-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"card-body\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h5\\\"],[14,0,\\\"card-title\\\"],[12],[1,[28,[35,6],[\\\"common.Quote\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,2],[14,0,\\\"card-text\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,19],[[30,0,[\\\"model\\\",\\\"stagePaymentsValues\\\",\\\"lastSuccessful\\\",\\\"value\\\",\\\"quote\\\"]]],[[\\\"style\\\"],[\\\"currency\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-lg-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"card-body\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h5\\\"],[14,0,\\\"card-title\\\"],[12],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Stages allocated\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,2],[14,0,\\\"card-text\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,19],[[30,0,[\\\"model\\\",\\\"stagePaymentsValues\\\",\\\"lastSuccessful\\\",\\\"value\\\",\\\"stagesValue\\\"]]],[[\\\"style\\\"],[\\\"currency\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"col-lg-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"card-body\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h5\\\"],[14,0,\\\"card-title\\\"],[12],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Remaining quote\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,2],[14,0,\\\"card-text\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,19],[[30,0,[\\\"remainingQuote\\\"]]],[[\\\"style\\\"],[\\\"currency\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedStages\\\",\\\"size\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,20],[[30,0,[\\\"selectedStages\\\",\\\"size\\\"]]],null],[30,0,[\\\"pageIsLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkDeleteStagesModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkActionsModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Set value\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,5,\\\"min-height: 33.5px\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"stage-payments__table-container\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,21],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@isLoading\\\",\\\"@totalRecords\\\"],[[30,0,[\\\"tableHeader\\\"]],[30,0,[\\\"tableData\\\"]],[30,0,[\\\"onChangePage\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[28,[37,6],[\\\"common.No data\\\"],null],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageNumber\\\"]],[30,0,[\\\"tableIsLoading\\\"]],[30,0,[\\\"totalRecords\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mt-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,22],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"coins\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.thisProjectDoesNotHaveAnyStagesPaymentsYet\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn btn-primary m-1\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showCreateStagesModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Create stages\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showCreateStagesModal\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showCreateStagesModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"stages\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Enter number of stages\\\"],null]],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],[[24,0,\\\"form-control\\\"],[24,1,\\\"stages\\\"],[24,\\\"step\\\",\\\"1\\\"],[24,\\\"min\\\",\\\"1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addStagePayments\\\",\\\"isRunning\\\"]]],[4,[38,13],[\\\"input\\\",[30,0,[\\\"preventNegative\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"number\\\",[30,0,[\\\"numberOfStages\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,28],[[28,[37,9],[[28,[37,10],[[30,0,[\\\"showCreateStagesModal\\\"]]],null],false],null],[28,[37,9],[[28,[37,10],[[30,0,[\\\"numberOfStages\\\"]]],null],null],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,20],[[30,0,[\\\"numberOfStages\\\"]]],null],[30,0,[\\\"addStagePayments\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"addStagePayments\\\"]],[30,0,[\\\"numberOfStages\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addStagePayments\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Creating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Create\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showNameEditor\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showNameEditor\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,30],[[30,0,[\\\"currentStagePayment\\\"]],[30,0,[\\\"stagePaymentValidationMap\\\"]]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,31],[[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[28,[37,20],[[30,0,[\\\"isEditable\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"name\\\",[30,2],[28,[37,32],[[30,0,[\\\"saveCurrentStage\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,31],[[24,\\\"step\\\",\\\"1\\\"],[24,\\\"min\\\",\\\"1\\\"],[16,\\\"max\\\",[30,0,[\\\"totalRecords\\\"]]],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[28,[37,20],[[30,0,[\\\"isEditable\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"number\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.stage-payments.Stage\\\"],null],\\\"stageNumber\\\",[30,2],true,[28,[37,32],[[30,0,[\\\"saveCurrentStage\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[8,[39,31],[[24,\\\"placeholder\\\",\\\"0.0%\\\"],[16,\\\"disabled\\\",[28,[37,12],[[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[28,[37,20],[[30,0,[\\\"isEditable\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,6],[\\\"common.Retentions\\\"],null],\\\"retention\\\",[30,2],[28,[37,32],[[30,0,[\\\"saveCurrentStage\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showNameEditor\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"saveCurrentStage\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showValueEditor\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showValueEditor\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n    \\\"],[11,0],[24,\\\"hidden\\\",\\\"\\\"],[4,[38,33],[[28,[37,16],[[30,0,[\\\"loadDataForValueModal\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"loadData\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,14],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[44,[[28,[37,30],[[30,0,[\\\"currentStagePayment\\\"]],[30,0,[\\\"stagePaymentValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,31],[[24,\\\"placeholder\\\",\\\"$0.00\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,6],[\\\"common.Value\\\"],null],\\\"value\\\",[30,3],true,[28,[37,32],[[30,0,[\\\"saveCurrentStage\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,20],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\"]]],null],[28,[37,34],[[30,0,[\\\"useValueFromTasks\\\"]],1],null]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"setUseValueFromTasks\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Use tasks value\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline ms-2\\\"],[16,\\\"disabled\\\",[28,[37,12],[[28,[37,20],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"currentQuoteVersion\\\"]]],null],[28,[37,20],[[30,0,[\\\"remainingQuoteValue\\\"]]],null]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"setRemainingQuoteValue\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Use remaining quote\\\"],null]],[1,\\\"\\\\n              \\\"],[1,[28,[35,19],[[30,0,[\\\"remainingQuote\\\"]]],[[\\\"style\\\"],[\\\"currency\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showValueEditor\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"saveCurrentStage\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[3]]]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDateEditor\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showDateEditor\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,30],[[30,0,[\\\"currentStagePayment\\\"]],[30,0,[\\\"stagePaymentValidationMap\\\"]]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,31],[[16,\\\"disabled\\\",[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.Due date\\\"],null],\\\"dueDate\\\",[30,4],[28,[37,32],[[30,0,[\\\"saveCurrentStage\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showDateEditor\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"saveCurrentStage\\\"]],[30,4]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveCurrentStage\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[4]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showTaskSelectorModal\\\"]],[[[1,\\\"  \\\"],[8,[39,35],null,[[\\\"@project\\\",\\\"@currentStageLinkedTasks\\\",\\\"@allStageLinkedTasks\\\",\\\"@stagePayment\\\",\\\"@onClose\\\",\\\"@editable\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"currentStageLinkedTasks\\\"]],[30,0,[\\\"allStageLinkedTasks\\\"]],[30,0,[\\\"currentStagePayment\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"showTaskSelectorModal\\\"]]],null],false],null],[28,[37,36],[[30,0,[\\\"isEditable\\\"]],[28,[37,37],[[30,0,[\\\"currentStagePayment\\\",\\\"status\\\"]],\\\"CLAIMED\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showChecklistModal\\\"]],[[[1,\\\"  \\\"],[8,[39,38],null,[[\\\"@checklist\\\",\\\"@editable\\\",\\\"@stagePayment\\\",\\\"@addNewQuestion\\\",\\\"@deleteQuestion\\\",\\\"@onClose\\\"],[[30,0,[\\\"currentChecklist\\\"]],[28,[37,36],[[30,0,[\\\"isEditable\\\"]],[28,[37,37],[[30,0,[\\\"currentStagePayment\\\",\\\"status\\\"]],\\\"CLAIMED\\\"],null]],null],[30,0,[\\\"currentStagePayment\\\"]],[30,0,[\\\"addNewQuestion\\\"]],[30,0,[\\\"deleteQuestion\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"showChecklistModal\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBulkDeleteStagesModal\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkDeleteStagesModal\\\"]]],null],false],null],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.areYouSureYouWantToDeleteStage\\\"],[[\\\"stage\\\"],[[28,[37,39],[[30,0,[\\\"selectedStages\\\",\\\"size\\\"]],\\\"stage\\\"],null]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteStages\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"deleteStages\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteStages\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteStages\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkDeleteStagesModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBulkActionsModal\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkActionsModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"value\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Value\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,40],[[16,\\\"required\\\",true],[24,\\\"placeholder\\\",\\\"$0.00\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBulkActionDistributeValue\\\",\\\"isRunning\\\"]]]],[[\\\"@class\\\",\\\"@update\\\",\\\"@number\\\",\\\"@format\\\"],[\\\"text-input w-100\\\",[28,[37,41],[[30,0],[28,[37,10],[[30,0,[\\\"bulkActionsStageValue\\\"]]],null]],null],[30,0,[\\\"bulkActionsStageValue\\\"]],\\\"currency\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"distributeRemainingQuoteAcrossStages\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Use quote\\\"],null]],[1,\\\"\\\\n          \\\"],[1,[28,[35,19],[[30,0,[\\\"remainingQuoteValueInContextWithStages\\\"]]],[[\\\"style\\\"],[\\\"currency\\\"]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,28],[[28,[37,9],[[28,[37,10],[[30,0,[\\\"showBulkActionsModal\\\"]]],null],false],null],[28,[37,9],[[28,[37,10],[[30,0,[\\\"bulkActionsStageValue\\\"]]],null],0],null]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBulkActionDistributeValue\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"saveBulkActionDistributeValue\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveBulkActionDistributeValue\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showProjectLevelContractTermsModal\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal-content w-auto\\\",\\\"modal\\\",true,[28,[37,9],[[28,[37,10],[[30,0,[\\\"showProjectLevelContractTermsModal\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,30],[[30,0,[\\\"stagePaymentOption\\\"]],[30,0,[\\\"stagePaymentsOptionsValidationMap\\\"]]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,31],[[16,\\\"disabled\\\",[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.stage-payments.Additional notes\\\"],null],\\\"footerNotes\\\",[30,5],[28,[37,32],[[30,0,[\\\"saveStagePaymentOptions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"showProjectLevelContractTermsModal\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"saveStagePaymentOptions\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[5]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDownloadOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,24],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@overlayClass\\\",\\\"@translucentOverlay\\\"],[[30,0,[\\\"closeDownloadOptions\\\"]],\\\"modal-content w-auto\\\",\\\"modal\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-check mt-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"includeTasks\\\"],[14,0,\\\"form-check-label\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,1,\\\"includeTasks\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"includeTasks\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"toggleProperty\\\"]],\\\"includeTasks\\\"],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Include tasks\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-check mt-1 mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"includeCheckListItems\\\"],[14,0,\\\"form-check-label\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,1,\\\"includeCheckListItems\\\"],[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[16,\\\"checked\\\",[30,0,[\\\"includeCheckListItems\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,13],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"toggleProperty\\\"]],\\\"includeCheckListItems\\\"],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.stage-payments.Include checklist\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"closeDownloadOptions\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Download\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"stagePayment\\\",\\\"stagePayment\\\",\\\"stagePayment\\\",\\\"stagePaymentOptionsModel\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"media\\\",\\\"header\\\",\\\"div\\\",\\\"h2\\\",\\\"t\\\",\\\"span\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"button\\\",\\\"or\\\",\\\"on\\\",\\\"loading-icon\\\",\\\"dropdown-button\\\",\\\"perform\\\",\\\"h5\\\",\\\"p\\\",\\\"number-format\\\",\\\"not\\\",\\\"pagination-table\\\",\\\"fa-icon\\\",\\\"b\\\",\\\"modal-dialog\\\",\\\"label\\\",\\\"sup\\\",\\\"input\\\",\\\"pipe\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"did-insert\\\",\\\"lt\\\",\\\"stage-payment-task-selector\\\",\\\"and\\\",\\\"not-eq\\\",\\\"checklist\\\",\\\"pluralize\\\",\\\"formatted-input\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/stage-payments.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"X4KuA/i+\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Tasks')}}\n    />\n  {{/unless}}\n  \n  <article class='m-4'>\n    <header class='border-bottom pb-2 mb-2 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Tasks'}}</h2>\n      {{/if}}\n      {{#unless this.isLoading}}\n        <div class='d-md-flex align-items-center'>\n          {{#if this.canManageTasks}}\n            {{#if (includes-feature-flags 'entityCanUseCsvTaskFileUploader')}}\n              <button\n                type='button'\n                class='btn btn-secondary text-white text-nowrap m-1'\n                disabled={{this.onLoadTaskTemplate.isRunning}}\n                {{on 'click' (fn (mut this.addingTasksFromTakeoff) true)}}\n              >\n                <FaIcon @icon='upload' />&nbsp;&nbsp;{{t\n                  'shared.task.Add tasks from a file'\n                }}\n              </button>\n            {{/if}}\n  \n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap m-1'\n              disabled={{this.onLoadTaskTemplate.isRunning}}\n              {{on 'click' (fn (mut this.addingTaskFromTemplate) true)}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t\n                'shared.task.Add tasks from template'\n              }}\n            </button>\n          {{/if}}\n        </div>\n      {{/unless}}\n    </header>\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if this.taskList.length}}\n        <DragSortList\n          class='d-flex flex-column'\n          @onUpdate={{perform this.onTaskListUpdate}}\n          @itemComponent={{component\n            'nested-task-card'\n            saveNewTask=this.saveNewTask\n            readOnly=(not this.canManageTasks)\n            disableActions=this.onTaskListUpdate.isRunning\n          }}\n          @list={{this.taskList}}\n          {{! to update the order of the tasks you need to see all the tasks }}\n          @disableDragging={{not this.canManageTasks}}\n        />\n        {{#if this.canManageTasks}}\n          <NestedTaskCard::AddTask\n            @saveNewTask={{perform this.saveNewTask}}\n            @disabled={{or this.saveNewTask.isRunning (not this.canManageTasks)}}\n            @autofocus={{true}}\n            @placeholder={{t 'shared.task.Add task'}}\n            data-test-add-parent-task\n          />\n        {{/if}}\n      {{else}}\n        <div class='p-3 d-flex flex-column align-items-center'>\n          <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n          <p class='fs-4 mt-0 mb-3'>\n            <b>\n              {{if\n                this.canManageTasks\n                (t\n                  'entity.builda-price.projects.project.tasks.youHaveNotCreatedAnyTasksYet'\n                )\n                (t\n                  'entity.builda-price.projects.project.tasks.There are no tasks'\n                )\n              }}\n            </b>\n          </p>\n          {{#if this.canManageTasks}}\n            <p class='mt-0 mb-3'>\n              {{t\n                'entity.builda-price.projects.project.tasks.Create your first task to get started'\n              }}\n            </p>\n            <div class='d-flex'>\n              <Input\n                aria-label='New task name'\n                placeholder={{t\n                  'entity.builda-price.projects.project.tasks.Task name'\n                }}\n                class='form-control me-2'\n                @type='text'\n                {{on 'keypress' this.onTaskNameInputKeypress}}\n                @value={{this.firstTaskName}}\n              />\n              <button\n                type='button'\n                class='btn btn-primary text-nowrap'\n                disabled={{not this.firstTaskName}}\n                {{on\n                  'click'\n                  (perform this.saveNewTask this.firstTaskName undefined)\n                }}\n              >\n                {{t 'shared.task.Add task'}}\n              </button>\n            </div>\n          {{/if}}\n        </div>\n      {{/if}}\n    {{/if}}\n  </article>\n  \n  {{#if this.addingTasksFromTakeoff}}\n    <TakeoffUploaderModal\n      @project={{this.model.project.last.value}}\n      @onLoadTakeoff={{perform this.onLoadTakeoff}}\n      @onClose={{fn (mut this.addingTasksFromTakeoff) false}}\n    />\n  {{/if}}\n  {{#if this.addingTaskFromTemplate}}\n    <TaskTemplateModal\n      @onLoadTaskTemplate={{perform this.onLoadTaskTemplate}}\n      @parentTasks={{this.parentTasks}}\n      @onClose={{fn (mut this.addingTaskFromTemplate) false}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"hSZelLo/\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Tasks\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Tasks\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-md-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageTasks\\\"]],[[[41,[28,[37,10],[\\\"entityCanUseCsvTaskFileUploader\\\"],null],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onLoadTaskTemplate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"addingTasksFromTakeoff\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"upload\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"shared.task.Add tasks from a file\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"onLoadTaskTemplate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"addingTaskFromTemplate\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,15],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"shared.task.Add tasks from template\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"taskList\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[8,[39,17],[[24,0,\\\"d-flex flex-column\\\"]],[[\\\"@onUpdate\\\",\\\"@itemComponent\\\",\\\"@list\\\",\\\"@disableDragging\\\"],[[28,[37,18],[[30,0,[\\\"onTaskListUpdate\\\"]]],null],[50,\\\"nested-task-card\\\",0,null,[[\\\"saveNewTask\\\",\\\"readOnly\\\",\\\"disableActions\\\"],[[30,0,[\\\"saveNewTask\\\"]],[28,[37,19],[[30,0,[\\\"canManageTasks\\\"]]],null],[30,0,[\\\"onTaskListUpdate\\\",\\\"isRunning\\\"]]]]],[30,0,[\\\"taskList\\\"]],[28,[37,19],[[30,0,[\\\"canManageTasks\\\"]]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageTasks\\\"]],[[[1,\\\"        \\\"],[8,[39,20],[[24,\\\"data-test-add-parent-task\\\",\\\"\\\"]],[[\\\"@saveNewTask\\\",\\\"@disabled\\\",\\\"@autofocus\\\",\\\"@placeholder\\\"],[[28,[37,18],[[30,0,[\\\"saveNewTask\\\"]]],null],[28,[37,21],[[30,0,[\\\"saveNewTask\\\",\\\"isRunning\\\"]],[28,[37,19],[[30,0,[\\\"canManageTasks\\\"]]],null]],null],true,[28,[37,4],[\\\"shared.task.Add task\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"p-3 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[52,[30,0,[\\\"canManageTasks\\\"]],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.youHaveNotCreatedAnyTasksYet\\\"],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.There are no tasks\\\"],null]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageTasks\\\"]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"mt-0 mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.Create your first task to get started\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,24],[[24,\\\"aria-label\\\",\\\"New task name\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.Task name\\\"],null]],[24,0,\\\"form-control me-2\\\"],[4,[38,12],[\\\"keypress\\\",[30,0,[\\\"onTaskNameInputKeypress\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"firstTaskName\\\"]]]],null],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-nowrap\\\"],[16,\\\"disabled\\\",[28,[37,19],[[30,0,[\\\"firstTaskName\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"saveNewTask\\\"]],[30,0,[\\\"firstTaskName\\\"]],[27]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.task.Add task\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"addingTasksFromTakeoff\\\"]],[[[1,\\\"  \\\"],[8,[39,25],null,[[\\\"@project\\\",\\\"@onLoadTakeoff\\\",\\\"@onClose\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,18],[[30,0,[\\\"onLoadTakeoff\\\"]]],null],[28,[37,13],[[28,[37,14],[[30,0,[\\\"addingTasksFromTakeoff\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"addingTaskFromTemplate\\\"]],[[[1,\\\"  \\\"],[8,[39,26],null,[[\\\"@onLoadTaskTemplate\\\",\\\"@parentTasks\\\",\\\"@onClose\\\"],[[28,[37,18],[[30,0,[\\\"onLoadTaskTemplate\\\"]]],null],[30,0,[\\\"parentTasks\\\"]],[28,[37,13],[[28,[37,14],[[30,0,[\\\"addingTaskFromTemplate\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"div\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"loading-icon\\\",\\\"drag-sort-list\\\",\\\"perform\\\",\\\"not\\\",\\\"nested-task-card/add-task\\\",\\\"or\\\",\\\"p\\\",\\\"b\\\",\\\"input\\\",\\\"takeoff-uploader-modal\\\",\\\"task-template-modal\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Task')}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component\n        'mobile-title-bar/back-button'\n        titleBarBack='entity.builda-price.projects.project.tasks'\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4'>\n    {{#unless this.model.task.isRunning}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      {{#if (media 'isDesktop')}}\n        <header class='border-bottom align-items-center mb-3'>\n          <h2 class='my-2'>{{this.model.task.last.value.name}}</h2>\n        </header>\n      {{/if}}\n      <ContentTabs @tabs={{this.tabs}} />\n      {{outlet}}\n    {{else}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{/unless}}\n  </article>\n  */\n  {\n    \"id\": \"QAsCbnlT\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Task\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/back-button\\\",0,null,[[\\\"titleBarBack\\\"],[\\\"entity.builda-price.projects.project.tasks\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"task\\\",\\\"isRunning\\\"]]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,7],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom align-items-center mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"my-2\\\"],[12],[1,[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[8,[39,11],null,[[\\\"@tabs\\\"],[[30,0,[\\\"tabs\\\"]]]],null],[1,\\\"\\\\n    \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,13],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"if\\\",\\\"header\\\",\\\"h2\\\",\\\"content-tabs\\\",\\\"-outlet\\\",\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/documents\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mt-3'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='card width--large'>\n        <DragAndDropContainer\n          @parent={{this.task}}\n          @onUploadComplete={{this.onUploadComplete}}\n          @isDragAndDropVisible={{this.isEditable}}\n        >\n          <AttachmentTable\n            @attachments={{this.attachments}}\n            @parent={{this.task}}\n            @project={{this.project}}\n            @users={{this.model.users.last.value}}\n          />\n        </DragAndDropContainer>\n      </div>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"1MXYMu/j\",\n    \"block\": \"[[[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"card width--large\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@parent\\\",\\\"@onUploadComplete\\\",\\\"@isDragAndDropVisible\\\"],[[30,0,[\\\"task\\\"]],[30,0,[\\\"onUploadComplete\\\"]],[30,0,[\\\"isEditable\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,4],null,[[\\\"@attachments\\\",\\\"@parent\\\",\\\"@project\\\",\\\"@users\\\"],[[30,0,[\\\"attachments\\\"]],[30,0,[\\\"task\\\"]],[30,0,[\\\"project\\\"]],[30,0,[\\\"model\\\",\\\"users\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"drag-and-drop-container\\\",\\\"attachment-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/documents.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/financials\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mt-3 d-flex flex-column align-items-start'>\n      {{#if\n        (and\n          this.hasBothDraftBudgetAndQuoteChanges\n          this.canManageProjectBudgetAndQuote\n        )\n      }}\n        <div class='alert alert-primary' role='alert'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.financials.thisBudgetAndQuoteHaveBeenModifiedToApplyTheseChangesToTheProject'\n          }}\n          <LinkTo @route='entity.builda-price.projects.project.financials'>{{t\n              'shared.financial.Create a version'\n            }}</LinkTo>.\n        </div>\n      {{else if (and this.hasDraftBudgetChanges this.canManageProjectBudget)}}\n        <div class='alert alert-primary' role='alert'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.financials.thisBudgetHasBeenModifiedToApplyTheseChangesToTheProjectBudget'\n          }}\n          <LinkTo @route='entity.builda-price.projects.project.financials'>{{t\n              'entity.builda-price.projects.project.tasks.task.financials.create a project budget version'\n            }}</LinkTo>.\n        </div>\n      {{else if (and this.hasDraftQuoteChanges this.canManageProjectQuote)}}\n        <div class='alert alert-primary' role='alert'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.financials.thisQuoteHasBeenModifiedToApplyTheseChangesToTheProjectQuote'\n          }}\n          <LinkTo @route='entity.builda-price.projects.project.financials'>{{t\n              'entity.builda-price.projects.project.tasks.task.financials.create a project quote version'\n            }}</LinkTo>.\n        </div>\n      {{/if}}\n  \n      <div class='d-flex flex-row align-items-start flex-wrap'>\n        {{#if this.canViewBudget}}\n          <div class='border rounded p-4 d-flex flex-column mb-4 me-4'>\n            <h2>{{t 'common.Budget'}}</h2>\n            {{#if this.model.loadBudget.isRunning}}\n              <LoadingIcon @type='ripple' />\n            {{else}}\n              {{#if this.hasBudget}}\n                <table class='table'>\n                  <thead>\n                    <tr>\n                      <th></th>\n                      <th class='text-right'>{{t 'common.This task'}}</th>\n                      <th class='text-right text-muted'>{{t\n                          'common.Subtasks'\n                        }}</th>\n                      <th class='text-right'>{{t 'common.Total'}}</th>\n                    </tr>\n                  </thead>\n                  <tbody>\n                    <tr>\n                      <th>{{t 'common.Labour hours'}}</th>\n                      <td class='text-right'>\n                        <FormatDurationWithUnit\n                          @value={{this.task.draftBudgetManHours}}\n                          @suffix={{' hrs'}}\n                          @emptyPlaceholder='–'\n                        />\n                      </td>\n                      <td class='text-right text-muted'>\n                        <FormatDurationWithUnit\n                          @value={{this.task.childrenDraftBudgetManHours}}\n                          @suffix={{' hrs'}}\n                          @emptyPlaceholder='–'\n                        />\n                      </td>\n                      <td class='text-right'>\n                        <FormatDurationWithUnit\n                          @value={{this.task.totalDraftBudgetManHours}}\n                          @suffix={{' hrs'}}\n                          @emptyPlaceholder='–'\n                        />\n                      </td>\n                    </tr>\n                    <tr>\n                      <td colspan='4'>&nbsp;</td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Labour'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftBudgetLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftBudgetLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftBudgetLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Materials'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftBudgetMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftBudgetMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftBudgetMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Subcontractors'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftBudgetSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftBudgetSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftBudgetSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Sums'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftBudgetSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftBudgetSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftBudgetSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  </tbody>\n                  <tfoot>\n                    <tr>\n                      <th></th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.totalDraftBudgetCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.totalDraftChildrenBudgetCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.totalTotalDraftBudgetCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  </tfoot>\n                </table>\n                {{#if this.canManageBudget}}\n                  <button\n                    class='btn btn-primary align-self-end'\n                    type='button'\n                    {{on 'click' this.openUpdateBudgetForm}}\n                  >\n                    {{t\n                      'entity.builda-price.projects.project.tasks.task.financials.Update budget'\n                    }}\n                  </button>\n                {{/if}}\n              {{else}}\n                <p class='m-0 mb-3'>\n                  {{if\n                    this.canManageBudget\n                    (t\n                      'entity.builda-price.projects.project.tasks.task.financials.createABudgetForThisTaskToCompareYourCostsAgainst'\n                    )\n                    (t\n                      'entity.builda-price.projects.project.tasks.task.financials.There is no budget for this task'\n                    )\n                  }}\n                </p>\n                {{#if this.canManageBudget}}\n                  <button\n                    class='btn btn-primary align-self-end'\n                    type='button'\n                    {{on 'click' this.openUpdateBudgetForm}}\n                  >\n                    {{t\n                      'entity.builda-price.projects.project.tasks.task.financials.Create a budget'\n                    }}\n                  </button>\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          </div>\n        {{/if}}\n  \n        {{#if this.canViewQuote}}\n          <div class='border rounded p-4 d-flex flex-column mb-4'>\n            <h2>{{t 'common.Quote'}}</h2>\n            {{#if this.model.loadQuote.isRunning}}\n              <LoadingIcon @type='ripple' />\n            {{else}}\n              {{#if this.hasQuote}}\n                <table class='table'>\n                  <thead>\n                    <tr>\n                      <th></th>\n                      <th class='text-right'>{{t 'common.This task'}}</th>\n                      <th class='text-right text-muted'>{{t\n                          'common.Subtasks'\n                        }}</th>\n                      <th class='text-right'>{{t 'common.Total'}}</th>\n                    </tr>\n                  </thead>\n                  <tbody>\n                    <tr>\n                      <th>{{t 'common.Labour'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftQuoteLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftQuoteLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftQuoteLabour\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Materials'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftQuoteMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftQuoteMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftQuoteMaterials\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Subcontractors'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftQuoteSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftQuoteSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftQuoteSubcontractors\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                    <tr>\n                      <th>{{t 'common.Sums'}}</th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.draftQuoteSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.task.childrenDraftQuoteSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.task.totalDraftQuoteSums\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  </tbody>\n                  <tfoot>\n                    <tr>\n                      <th></th>\n                      <td class='text-right'>\n                        {{number-format\n                          this.totalDraftQuoteCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right text-muted'>\n                        {{number-format\n                          this.totalDraftChildrenQuoteCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                      <td class='text-right'>\n                        {{number-format\n                          this.totalTotalDraftQuoteCurrency\n                          style='currency'\n                          dashZero=true\n                        }}\n                      </td>\n                    </tr>\n                  </tfoot>\n                </table>\n  \n                {{#if this.canManageQuote}}\n                  <button\n                    class='btn btn-primary align-self-end'\n                    type='button'\n                    {{on 'click' this.openUpdateQuoteForm}}\n                  >\n                    {{t\n                      'entity.builda-price.projects.project.tasks.task.financials.Update quote'\n                    }}\n                  </button>\n                {{/if}}\n              {{else}}\n                <p class='m-0 mb-3'>\n                  {{if\n                    this.canManageQuote\n                    (t\n                      'entity.builda-price.projects.project.tasks.task.financials.createAQuoteForThisTaskToCompareYourCostsAgainst'\n                    )\n                    (t\n                      'entity.builda-price.projects.project.tasks.task.financials.There is no quote for this task'\n                    )\n                  }}\n                </p>\n                {{#if this.canManageQuote}}\n                  <button\n                    class='btn btn-primary align-self-end'\n                    type='button'\n                    {{on 'click' this.openUpdateQuoteForm}}\n                  >\n                    {{t\n                      'entity.builda-price.projects.project.tasks.task.financials.Create a quote'\n                    }}\n                  </button>\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n    </div>\n  {{/if}}\n  \n  {{#if this.updateBudgetData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.updateBudgetData) null}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n      {{#let\n        (changeset this.updateBudgetData this.budgetValidationMap)\n        as |budgetModel|\n      }}\n        <div class='modal-body'>\n          <label class='mb-1' for='manHours'>\n            {{t 'common.Labour hours'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='duration'\n                @key='manHours'\n                @model={{budgetModel}}\n                @onChange={{fn this.budgetValueChanged budgetModel 'manHours'}}\n                @forceValidationVisible={{gt this.updateBudget.performCount 0}}\n                disabled={{this.updateBudget.isRunning}}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    <FormatDurationWithUnit\n                      @value={{this.task.childrenDraftBudgetManHours}}\n                      @suffix={{' hrs'}}\n                      @emptyPlaceholder='–'\n                    />\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    <FormatDurationWithUnit\n                      @value={{budgetModel.manHoursTotal}}\n                      @suffix={{' hrs'}}\n                      @emptyPlaceholder='–'\n                    />\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n                </div>\n              </div>\n            {{/if}}\n          </div>\n  \n          <label class='mb-1' for='labour'>\n            {{t 'common.Labour'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='labour'\n                @model={{budgetModel}}\n                @onChange={{fn this.budgetValueChanged budgetModel 'labour'}}\n                @forceValidationVisible={{gt this.updateBudget.performCount 0}}\n                disabled={{this.updateBudget.isRunning}}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftBudgetLabour\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      budgetModel.labourTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          <label class='mb-1' for='materials'>\n            {{t 'common.Materials'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            <div class='flex-grow-1 mb-3'>\n              <PtlInput\n                @type='currency'\n                @key='materials'\n                @containerClass='mb-0'\n                @model={{budgetModel}}\n                @onChange={{fn this.budgetValueChanged budgetModel 'materials'}}\n                @forceValidationVisible={{gt this.updateBudget.performCount 0}}\n                disabled={{this.updateBudget.isRunning}}\n              />\n              {{#if this.totalProductCurrency}}\n                <div\n                  {{on\n                    'click'\n                    (fn this.setMaterialBudgetFromProducts budgetModel)\n                  }}\n                  type='button'\n                  class='form-text btn-link'\n                >{{t\n                    'entity.builda-price.projects.project.tasks.task.financials.Use total from products'\n                  }}:\n                  {{number-format\n                    this.totalProductCurrency\n                    style='currency'\n                    dashZero=true\n                  }}\n                </div>\n              {{/if}}\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftBudgetMaterials\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      budgetModel.materialsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          <label class='mb-1' for='subcontractors'>\n            {{t 'common.Subcontractors'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='subcontractors'\n                @model={{budgetModel}}\n                @onChange={{fn\n                  this.budgetValueChanged\n                  budgetModel\n                  'subcontractors'\n                }}\n                @forceValidationVisible={{gt this.updateBudget.performCount 0}}\n                disabled={{this.updateBudget.isRunning}}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftBudgetSubcontractors\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      budgetModel.subcontractorsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          <label class='mb-1' for='sums'>\n            {{t 'common.Sums'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='sums'\n                @model={{budgetModel}}\n                @onChange={{fn this.budgetValueChanged budgetModel 'sums'}}\n                @forceValidationVisible={{gt this.updateBudget.performCount 0}}\n                disabled={{this.updateBudget.isRunning}}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftBudgetSums\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      budgetModel.sumsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          {{! Total }}\n          {{#if (media 'isDesktop')}}\n            <div class='d-flex justify-content-end mt-4'>\n              <div>\n                <div\n                  style='min-width: 90px; display: block;'\n                  class='input-group-text text-muted text-end'\n                >\n                  {{number-format\n                    budgetModel.total\n                    style='currency'\n                    dashZero=true\n                  }}\n                </div>\n                <div class='form-text text-muted'>{{t\n                    'entity.builda-price.projects.project.tasks.task.financials.Total budget'\n                  }}</div>\n              </div>\n            </div>\n          {{/if}}\n        </div>\n        <div class='modal-footer'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white'\n            {{on 'click' (fn (mut this.updateBudgetData) null)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on 'click' (perform this.updateBudget budgetModel)}}\n            disabled={{budgetModel.isPristine}}\n          >\n            {{#if this.updateBudget.isRunning}}\n              {{t\n                'entity.builda-price.projects.project.tasks.task.financials.Updating budget'\n              }}&hellip;\n            {{else}}\n              {{t\n                'entity.builda-price.projects.project.tasks.task.financials.Update budget'\n              }}\n            {{/if}}\n          </button>\n        </div>\n      {{/let}}\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.updateQuoteData}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.updateQuoteData) null}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n      {{#let\n        (changeset this.updateQuoteData this.quoteValidationMap)\n        as |quoteModel|\n      }}\n        <div class='modal-body'>\n          {{! Labour }}\n          <label class='mb-1' for='labourPercentage'>\n            {{t 'common.Labour'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            {{#if this.task.draftBudgetLabour}}\n              <div class='me-1' style='width: 145px;'>\n                <PtlInput\n                  @type='percentage'\n                  @key='labourPercentage'\n                  @model={{quoteModel}}\n                  @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                  disabled={{not this.task.draftBudgetLabour}}\n                  @onChange={{fn this.profitMarginChanged quoteModel 'labour'}}\n                  @inputGroupText={{profit-type-label\n                    this.task.effectiveProfitMargin.labourPercentage.type\n                  }}\n                  @description={{if\n                    this.task.effectiveProfitMargin.labourPercentage.value\n                    (concat\n                      'Default '\n                      (number-format\n                        this.task.effectiveProfitMargin.labourPercentage.value\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      )\n                    )\n                    (t 'shared.financial.There is no default value')\n                  }}\n                />\n              </div>\n            {{/if}}\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='labour'\n                @model={{quoteModel}}\n                @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                disabled={{this.updateQuote.isRunning}}\n                @onChange={{fn this.quoteValueChanged quoteModel 'labour'}}\n                @description={{if\n                  this.task.draftBudgetLabour\n                  (concat\n                    (t 'common.Budget')\n                    ' '\n                    (number-format\n                      this.task.draftBudgetLabour style='currency' dashZero=true\n                    )\n                  )\n                  (t\n                    'entity.builda-price.projects.project.tasks.task.financials.There is no labour budget'\n                  )\n                }}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftQuoteLabour\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      quoteModel.labourTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          {{! Materials }}\n          <label class='mb-1' for='materialsPercentage'>\n            {{t 'common.Materials'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            {{#if this.task.draftBudgetMaterials}}\n              <div class='me-1' style='width: 145px;'>\n                <PtlInput\n                  @type='percentage'\n                  @key='materialsPercentage'\n                  @model={{quoteModel}}\n                  @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                  disabled={{not this.task.draftBudgetMaterials}}\n                  @onChange={{fn this.profitMarginChanged quoteModel 'materials'}}\n                  @inputGroupText={{profit-type-label\n                    this.task.effectiveProfitMargin.materialsPercentage.type\n                  }}\n                  @description={{if\n                    this.task.effectiveProfitMargin.materialsPercentage.value\n                    (concat\n                      (t 'common.Default')\n                      ' '\n                      (number-format\n                        this.task.effectiveProfitMargin.materialsPercentage.value\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      )\n                    )\n                    (t 'shared.financial.There is no default value')\n                  }}\n                />\n              </div>\n            {{/if}}\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='materials'\n                @model={{quoteModel}}\n                @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                disabled={{this.updateQuote.isRunning}}\n                @onChange={{fn this.quoteValueChanged quoteModel 'materials'}}\n                @description={{if\n                  this.task.draftBudgetMaterials\n                  (concat\n                    (t 'common.Budget')\n                    ' '\n                    (number-format\n                      this.task.draftBudgetMaterials\n                      style='currency'\n                      dashZero=true\n                    )\n                  )\n                  (t\n                    'entity.builda-price.projects.project.tasks.task.financials.There is no materials budget'\n                  )\n                }}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftQuoteMaterials\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      quoteModel.materialsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          {{! Subcontractors }}\n          <label class='mb-1' for='subcontractorsPercentage'>\n            {{t 'common.Subcontractors'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            {{#if this.task.draftBudgetSubcontractors}}\n              <div class='me-1' style='width: 145px;'>\n                <PtlInput\n                  @type='percentage'\n                  @key='subcontractorsPercentage'\n                  @model={{quoteModel}}\n                  @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                  disabled={{not this.task.draftBudgetSubcontractors}}\n                  @onChange={{fn\n                    this.profitMarginChanged\n                    quoteModel\n                    'subcontractors'\n                  }}\n                  @inputGroupText={{profit-type-label\n                    this.task.effectiveProfitMargin.subcontractorsPercentage.type\n                  }}\n                  @description={{if\n                    this.task.effectiveProfitMargin.subcontractorsPercentage.value\n                    (concat\n                      (t 'common.Default')\n                      ' '\n                      (number-format\n                        this.task.effectiveProfitMargin.subcontractorsPercentage.value\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      )\n                    )\n                    (t 'shared.financial.There is no default value')\n                  }}\n                />\n              </div>\n            {{/if}}\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='subcontractors'\n                @model={{quoteModel}}\n                @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                disabled={{this.updateQuote.isRunning}}\n                @onChange={{fn\n                  this.quoteValueChanged\n                  quoteModel\n                  'subcontractors'\n                }}\n                @description={{if\n                  this.task.draftBudgetSubcontractors\n                  (concat\n                    (t 'common.Budget')\n                    ' '\n                    (number-format\n                      this.task.draftBudgetSubcontractors\n                      style='currency'\n                      dashZero=true\n                    )\n                  )\n                  (t\n                    'entity.builda-price.projects.project.tasks.task.financials.There is no subcontractors budget'\n                  )\n                }}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftQuoteSubcontractors\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n  \n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      quoteModel.subcontractorsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n                </div>\n              </div>\n            {{/if}}\n          </div>\n  \n          {{! Sums }}\n          <label class='mb-1' for='sumsPercentage'>\n            {{t 'common.Sums'}}\n          </label>\n          <div class='d-flex flex-wrap'>\n            {{#if this.task.draftBudgetSums}}\n              <div class='me-1' style='width: 145px;'>\n                <PtlInput\n                  @type='percentage'\n                  @key='sumsPercentage'\n                  @model={{quoteModel}}\n                  @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                  disabled={{not this.task.draftBudgetSums}}\n                  @onChange={{fn this.profitMarginChanged quoteModel 'sums'}}\n                  @inputGroupText={{profit-type-label\n                    this.task.effectiveProfitMargin.sumsPercentage.type\n                  }}\n                  @description={{if\n                    this.task.effectiveProfitMargin.sumsPercentage.value\n                    (concat\n                      (t 'common.Default')\n                      ' '\n                      (number-format\n                        this.task.effectiveProfitMargin.sumsPercentage.value\n                        style='percent'\n                        dashZero=true\n                        maximumFractionDigits=2\n                        minimumFractionDigits=2\n                      )\n                    )\n                    (t 'shared.financial.There is no default value')\n                  }}\n                />\n              </div>\n            {{/if}}\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='currency'\n                @key='sums'\n                @model={{quoteModel}}\n                @forceValidationVisible={{gt this.updateQuote.performCount 0}}\n                disabled={{this.updateQuote.isRunning}}\n                @onChange={{fn this.quoteValueChanged quoteModel 'sums'}}\n                @description={{if\n                  this.task.draftBudgetSums\n                  (concat\n                    (t 'common.Budget')\n                    ' '\n                    (number-format\n                      this.task.draftBudgetSums style='currency' dashZero=true\n                    )\n                  )\n                  (t\n                    'entity.builda-price.projects.project.tasks.task.financials.There is no sums budget'\n                  )\n                }}\n              />\n            </div>\n            {{#if (media 'isDesktop')}}\n              <div class='flex-1' style='margin-left: auto;'>\n                <div class='mx-1'>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      this.task.childrenDraftQuoteSums\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                  <div class='form-text text-muted'>{{t 'common.Subtasks'}}</div>\n                </div>\n              </div>\n              <div class='flex-1' style='margin-left: auto;'>\n                <div>\n                  <div\n                    style='min-width: 90px; display: block;'\n                    class='input-group-text text-muted text-end'\n                  >\n                    {{number-format\n                      quoteModel.sumsTotal\n                      style='currency'\n                      dashZero=true\n                    }}\n                  </div>\n                </div>\n                <div class='form-text text-muted'>{{t 'common.Total'}}</div>\n              </div>\n            {{/if}}\n          </div>\n  \n          {{! Total }}\n          {{#if (media 'isDesktop')}}\n            <div class='d-flex justify-content-end mt-4'>\n              <div>\n                <div\n                  style='min-width: 90px; display: block;'\n                  class='input-group-text text-muted text-end'\n                >\n                  {{number-format\n                    quoteModel.total\n                    style='currency'\n                    dashZero=true\n                  }}\n                </div>\n                <div class='form-text text-muted'>{{t\n                    'shared.financial.Total quote'\n                  }}</div>\n              </div>\n            </div>\n          {{/if}}\n        </div>\n  \n        <div class='modal-footer'>\n          <button\n            type='button'\n            class='btn btn-secondary text-white'\n            {{on 'click' (fn (mut this.updateQuoteData) null)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n          {{!TODO add pristine state for quote modal}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on 'click' (perform this.updateQuote quoteModel)}}\n          >\n            {{#if this.updateQuote.isRunning}}\n              {{t\n                'entity.builda-price.projects.project.tasks.task.financials.Updating quote'\n              }}&hellip;\n            {{else}}\n              {{t\n                'entity.builda-price.projects.project.tasks.task.financials.Update quote'\n              }}\n            {{/if}}\n          </button>\n        </div>\n      {{/let}}\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"1rja9nXW\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mt-3 d-flex flex-column align-items-start\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,0,[\\\"hasBothDraftBudgetAndQuoteChanges\\\"]],[30,0,[\\\"canManageProjectBudgetAndQuote\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.thisBudgetAndQuoteHaveBeenModifiedToApplyTheseChangesToTheProject\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.financials\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"shared.financial.Create a version\\\"],null]]],[]]]]],[1,\\\".\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,3],[[30,0,[\\\"hasDraftBudgetChanges\\\"]],[30,0,[\\\"canManageProjectBudget\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.thisBudgetHasBeenModifiedToApplyTheseChangesToTheProjectBudget\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.financials\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.create a project budget version\\\"],null]]],[]]]]],[1,\\\".\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,3],[[30,0,[\\\"hasDraftQuoteChanges\\\"]],[30,0,[\\\"canManageProjectQuote\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.thisQuoteHasBeenModifiedToApplyTheseChangesToTheProjectQuote\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,5],null,[[\\\"@route\\\"],[\\\"entity.builda-price.projects.project.financials\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.create a project quote version\\\"],null]]],[]]]]],[1,\\\".\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]],null]],[]]]],[]]],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-row align-items-start flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewBudget\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"border rounded p-4 d-flex flex-column mb-4 me-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[12],[1,[28,[35,4],[\\\"common.Budget\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"loadBudget\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[8,[39,1],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"hasBudget\\\"]],[[[1,\\\"              \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[\\\"common.This task\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Labour hours\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@suffix\\\",\\\"@emptyPlaceholder\\\"],[[30,0,[\\\"task\\\",\\\"draftBudgetManHours\\\"]],\\\" hrs\\\",\\\"–\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@suffix\\\",\\\"@emptyPlaceholder\\\"],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetManHours\\\"]],\\\" hrs\\\",\\\"–\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@suffix\\\",\\\"@emptyPlaceholder\\\"],[[30,0,[\\\"task\\\",\\\"totalDraftBudgetManHours\\\"]],\\\" hrs\\\",\\\"–\\\"]],null],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"4\\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftBudgetLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftBudgetLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftBudgetMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftBudgetMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftBudgetSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftBudgetSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftBudgetSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftBudgetSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalDraftBudgetCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalDraftChildrenBudgetCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalTotalDraftBudgetCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageBudget\\\"]],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"openUpdateBudgetForm\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Update budget\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[52,[30,0,[\\\"canManageBudget\\\"]],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.createABudgetForThisTaskToCompareYourCostsAgainst\\\"],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no budget for this task\\\"],null]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageBudget\\\"]],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"openUpdateBudgetForm\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Create a budget\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewQuote\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"border rounded p-4 d-flex flex-column mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[12],[1,[28,[35,4],[\\\"common.Quote\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"loadQuote\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[8,[39,1],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"hasQuote\\\"]],[[[1,\\\"              \\\"],[10,\\\"table\\\"],[14,0,\\\"table\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[\\\"common.This task\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[14,0,\\\"text-right\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftQuoteLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftQuoteLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftQuoteMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftQuoteMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftQuoteSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftQuoteSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Sums\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"draftQuoteSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"totalDraftQuoteSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalDraftQuoteCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalDraftChildrenQuoteCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,14],[[30,0,[\\\"totalTotalDraftQuoteCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageQuote\\\"]],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"openUpdateQuoteForm\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Update quote\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"              \\\"],[10,2],[14,0,\\\"m-0 mb-3\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[52,[30,0,[\\\"canManageQuote\\\"]],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.createAQuoteForThisTaskToCompareYourCostsAgainst\\\"],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no quote for this task\\\"],null]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageQuote\\\"]],[[[1,\\\"                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary align-self-end\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"openUpdateQuoteForm\\\"]]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Create a quote\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateBudgetData\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"updateBudgetData\\\"]]],null],null],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,23],[[30,0,[\\\"updateBudgetData\\\"]],[30,0,[\\\"budgetValidationMap\\\"]]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"manHours\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Labour hours\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"duration\\\",\\\"manHours\\\",[30,1],[28,[37,20],[[30,0,[\\\"budgetValueChanged\\\"]],[30,1],\\\"manHours\\\"],null],[28,[37,26],[[30,0,[\\\"updateBudget\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@suffix\\\",\\\"@emptyPlaceholder\\\"],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetManHours\\\"]],\\\" hrs\\\",\\\"–\\\"]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@suffix\\\",\\\"@emptyPlaceholder\\\"],[[30,1,[\\\"manHoursTotal\\\"]],\\\" hrs\\\",\\\"–\\\"]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"labour\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",\\\"labour\\\",[30,1],[28,[37,20],[[30,0,[\\\"budgetValueChanged\\\"]],[30,1],\\\"labour\\\"],null],[28,[37,26],[[30,0,[\\\"updateBudget\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,1,[\\\"labourTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"materials\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1 mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@containerClass\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",\\\"materials\\\",\\\"mb-0\\\",[30,1],[28,[37,20],[[30,0,[\\\"budgetValueChanged\\\"]],[30,1],\\\"materials\\\"],null],[28,[37,26],[[30,0,[\\\"updateBudget\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"totalProductCurrency\\\"]],[[[1,\\\"              \\\"],[11,0],[24,0,\\\"form-text btn-link\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,20],[[30,0,[\\\"setMaterialBudgetFromProducts\\\"]],[30,1]],null]],null],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Use total from products\\\"],null]],[1,\\\":\\\\n                \\\"],[1,[28,[35,14],[[30,0,[\\\"totalProductCurrency\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,1,[\\\"materialsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"subcontractors\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",\\\"subcontractors\\\",[30,1],[28,[37,20],[[30,0,[\\\"budgetValueChanged\\\"]],[30,1],\\\"subcontractors\\\"],null],[28,[37,26],[[30,0,[\\\"updateBudget\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,1,[\\\"subcontractorsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"sums\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Sums\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@onChange\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",\\\"sums\\\",[30,1],[28,[37,20],[[30,0,[\\\"budgetValueChanged\\\"]],[30,1],\\\"sums\\\"],null],[28,[37,26],[[30,0,[\\\"updateBudget\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftBudgetSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,1,[\\\"sumsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex justify-content-end mt-4\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,14],[[30,1,[\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Total budget\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"updateBudgetData\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,1,[\\\"isPristine\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"updateBudget\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateBudget\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Updating budget\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Update budget\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateQuoteData\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"updateQuoteData\\\"]]],null],null],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[44,[[28,[37,23],[[30,0,[\\\"updateQuoteData\\\"]],[30,0,[\\\"quoteValidationMap\\\"]]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"labourPercentage\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Labour\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"task\\\",\\\"draftBudgetLabour\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"me-1\\\"],[14,5,\\\"width: 145px;\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[16,\\\"disabled\\\",[28,[37,29],[[30,0,[\\\"task\\\",\\\"draftBudgetLabour\\\"]]],null]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@inputGroupText\\\",\\\"@description\\\"],[\\\"percentage\\\",\\\"labourPercentage\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"profitMarginChanged\\\"]],[30,2],\\\"labour\\\"],null],[28,[37,30],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"type\\\"]]],null],[52,[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]],[28,[37,31],[\\\"Default \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null],[28,[37,4],[\\\"shared.financial.There is no default value\\\"],null]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateQuote\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@description\\\"],[\\\"currency\\\",\\\"labour\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"quoteValueChanged\\\"]],[30,2],\\\"labour\\\"],null],[52,[30,0,[\\\"task\\\",\\\"draftBudgetLabour\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Budget\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"draftBudgetLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no labour budget\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteLabour\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,2,[\\\"labourTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"materialsPercentage\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Materials\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"task\\\",\\\"draftBudgetMaterials\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"me-1\\\"],[14,5,\\\"width: 145px;\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[16,\\\"disabled\\\",[28,[37,29],[[30,0,[\\\"task\\\",\\\"draftBudgetMaterials\\\"]]],null]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@inputGroupText\\\",\\\"@description\\\"],[\\\"percentage\\\",\\\"materialsPercentage\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"profitMarginChanged\\\"]],[30,2],\\\"materials\\\"],null],[28,[37,30],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"materialsPercentage\\\",\\\"type\\\"]]],null],[52,[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"materialsPercentage\\\",\\\"value\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Default\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"materialsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null],[28,[37,4],[\\\"shared.financial.There is no default value\\\"],null]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateQuote\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@description\\\"],[\\\"currency\\\",\\\"materials\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"quoteValueChanged\\\"]],[30,2],\\\"materials\\\"],null],[52,[30,0,[\\\"task\\\",\\\"draftBudgetMaterials\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Budget\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"draftBudgetMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no materials budget\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteMaterials\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,2,[\\\"materialsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"subcontractorsPercentage\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Subcontractors\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"task\\\",\\\"draftBudgetSubcontractors\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"me-1\\\"],[14,5,\\\"width: 145px;\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[16,\\\"disabled\\\",[28,[37,29],[[30,0,[\\\"task\\\",\\\"draftBudgetSubcontractors\\\"]]],null]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@inputGroupText\\\",\\\"@description\\\"],[\\\"percentage\\\",\\\"subcontractorsPercentage\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"profitMarginChanged\\\"]],[30,2],\\\"subcontractors\\\"],null],[28,[37,30],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"subcontractorsPercentage\\\",\\\"type\\\"]]],null],[52,[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"subcontractorsPercentage\\\",\\\"value\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Default\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"subcontractorsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null],[28,[37,4],[\\\"shared.financial.There is no default value\\\"],null]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateQuote\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@description\\\"],[\\\"currency\\\",\\\"subcontractors\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"quoteValueChanged\\\"]],[30,2],\\\"subcontractors\\\"],null],[52,[30,0,[\\\"task\\\",\\\"draftBudgetSubcontractors\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Budget\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"draftBudgetSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no subcontractors budget\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteSubcontractors\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,2,[\\\"subcontractorsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"sumsPercentage\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Sums\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-wrap\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"task\\\",\\\"draftBudgetSums\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"me-1\\\"],[14,5,\\\"width: 145px;\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[16,\\\"disabled\\\",[28,[37,29],[[30,0,[\\\"task\\\",\\\"draftBudgetSums\\\"]]],null]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@inputGroupText\\\",\\\"@description\\\"],[\\\"percentage\\\",\\\"sumsPercentage\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"profitMarginChanged\\\"]],[30,2],\\\"sums\\\"],null],[28,[37,30],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"sumsPercentage\\\",\\\"type\\\"]]],null],[52,[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"sumsPercentage\\\",\\\"value\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Default\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"effectiveProfitMargin\\\",\\\"sumsPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null],[28,[37,4],[\\\"shared.financial.There is no default value\\\"],null]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,25],[[16,\\\"disabled\\\",[30,0,[\\\"updateQuote\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@description\\\"],[\\\"currency\\\",\\\"sums\\\",[30,2],[28,[37,26],[[30,0,[\\\"updateQuote\\\",\\\"performCount\\\"]],0],null],[28,[37,20],[[30,0,[\\\"quoteValueChanged\\\"]],[30,2],\\\"sums\\\"],null],[52,[30,0,[\\\"task\\\",\\\"draftBudgetSums\\\"]],[28,[37,31],[[28,[37,4],[\\\"common.Budget\\\"],null],\\\" \\\",[28,[37,14],[[30,0,[\\\"task\\\",\\\"draftBudgetSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],null],[28,[37,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.There is no sums budget\\\"],null]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[14,5,\\\"margin-left: auto;\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"mx-1\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,0,[\\\"task\\\",\\\"childrenDraftQuoteSums\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Subtasks\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-1\\\"],[14,5,\\\"margin-left: auto;\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,14],[[30,2,[\\\"sumsTotal\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"common.Total\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,27],[\\\"isDesktop\\\"],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex justify-content-end mt-4\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,5,\\\"min-width: 90px; display: block;\\\"],[14,0,\\\"input-group-text text-muted text-end\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,14],[[30,2,[\\\"total\\\"]]],[[\\\"style\\\",\\\"dashZero\\\"],[\\\"currency\\\",true]]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,[28,[35,4],[\\\"shared.financial.Total quote\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"updateQuoteData\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,28],[[30,0,[\\\"updateQuote\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateQuote\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Updating quote\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.builda-price.projects.project.tasks.task.financials.Update quote\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"budgetModel\\\",\\\"quoteModel\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"and\\\",\\\"t\\\",\\\"link-to\\\",\\\"h2\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"td\\\",\\\"format-duration-with-unit\\\",\\\"number-format\\\",\\\"tfoot\\\",\\\"button\\\",\\\"on\\\",\\\"p\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"let\\\",\\\"changeset\\\",\\\"label\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"media\\\",\\\"perform\\\",\\\"not\\\",\\\"profit-type-label\\\",\\\"concat\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/financials.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.model.task.isRunning}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='d-flex mt-3 width--large'>\n      <ul class='list-group' style='min-width: 200px;'>\n        {{#each this.tabs as |tab|}}\n          <LinkTo\n            @route={{tab.route}}\n            draggable={{false}}\n            class='list-group-item'\n          >\n            <FaIcon @icon={{tab.icon}} @fixedWidth={{true}} @size='md' />\n            {{tab.name}}\n          </LinkTo>\n        {{/each}}\n      </ul>\n      <div class='flex-grow-1 ms-3'>\n        {{outlet}}\n      </div>\n    </div>\n  {{/if}}\n  */\n  {\n    \"id\": \"k8g6q3wt\",\n    \"block\": \"[[[41,[30,0,[\\\"model\\\",\\\"task\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"d-flex mt-3 width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group\\\"],[14,5,\\\"min-width: 200px;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"tabs\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,6],[[16,\\\"draggable\\\",false],[24,0,\\\"list-group-item\\\"]],[[\\\"@route\\\"],[[30,1,[\\\"route\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,7],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[[30,1,[\\\"icon\\\"]],true,\\\"md\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex-grow-1 ms-3\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,9],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"tab\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"+ouxlBCj\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/client\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.client.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the task'}}\n        </p>\n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.clients.client'\n            @model={{this.model.client.last.value.id}}\n          >\n            {{t 'shared.people-editor.clients.client.View client details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageUsers')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from task')\n                  (t 'shared.people-editor.Removing from task')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from task')\n                  (t 'shared.people-editor.Remove from task')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.tasks.task.people.clients.client.clientTaskPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.taskPermissionsVisible)\n                (not this.taskPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Task'}}\n            </h4>\n            {{#if this.taskPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.taskPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.taskPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.taskPermissionsVisible}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task budget'}}\n                @key='canViewBudgets'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgets\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewBudgets'\n                  )\n                }}\n              />\n  \n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task quote'}}\n                @key='canViewQuotes'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuotes\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuotes\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuotes\n                  (get this.model.permissionsChangeset.last.value 'canViewQuotes')\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task progress'}}\n                @key='canViewProgress'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgress\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgress\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgress\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProgress'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all task documents'}}\n                @key='canViewFileStorage'\n                @description={{t\n                  'shared.people-editor.canSeeAllTaskDocumentsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewFileStorage\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewFileStorage\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewFileStorage\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewFileStorage'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewSchedulingReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseClientReports}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewClientReportsLabel'\n                }}\n                @key='canViewClientReports'\n                @description={{t\n                  'shared.people-editor.users.user.canViewClientReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewClientReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewClientReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewClientReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewClientReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuoteReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuoteReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuoteReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewQuoteReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewChargeupReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewChargeupReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewChargeupReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewChargeupReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgressReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgressReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgressReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewProgressReports'\n                  )\n                }}\n              />\n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanViewInvoicingReports\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanViewInvoicingReports\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanViewInvoicingReports\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewInvoicingReports'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"lvjbXZvD\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"client\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.clients.client\\\",[30,0,[\\\"model\\\",\\\"client\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.clients.client.View client details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from task\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Remove from task\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.tasks.task.people.clients.client.clientTaskPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Task\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"taskPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"taskPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task budget\\\"],null],\\\"canViewBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task quote\\\"],null],\\\"canViewQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task progress\\\"],null],\\\"canViewProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all task documents\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllTaskDocumentsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseClientReports\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewClientReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewClientReportsLabel\\\"],null],\\\"canViewClientReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewClientReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewClientReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewClientReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewClientReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuoteReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewChargeupReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgressReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoicingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/client.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1' style='width: 200px;'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.clients.Search for clients'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingClientToTask) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredClients}}\n      @noData={{t 'shared.people-editor.clients.No clients yet'}}\n      @route={{concat this.model.basePath '.clients.client'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingClientToTask}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingClientToTask) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.clients.Add client to task'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.clients.addClientsToTaskExplanation'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedClients}}\n          @selected={{this.clientToAddToTask}}\n          @onChange={{fn (mut this.clientToAddToTask)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t 'shared.people-editor.clients.Find a client'}}\n          @allowClear={{true}}\n          as |user|\n        >\n          {{user.firstName}}\n          {{user.lastName}}\n          ({{user.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.builda-price.projects.project.people.clients'\n          @model={{this.model.project.last.value.id}}\n        >\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.clients.doNotSeeTheClientAddThemToTheProject'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addClientToTask.isRunning}}\n          {{on 'click' (fn (mut this.isAddingClientToTask) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.clientToAddToTask)\n            this.addClientToTask.isRunning\n          }}\n          {{on 'click' (perform this.addClientToTask)}}\n        >\n          {{#if this.addClientToTask.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"2zSP9Lr1\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[14,5,\\\"width: 200px;\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.clients.Search for clients\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToTask\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredClients\\\"]],[28,[37,5],[\\\"shared.people-editor.clients.No clients yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".clients.client\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingClientToTask\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToTask\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.clients.Add client to task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.clients.addClientsToTaskExplanation\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedClients\\\"]],[30,0,[\\\"clientToAddToTask\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"clientToAddToTask\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.clients.Find a client\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.people.clients\\\",[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.clients.doNotSeeTheClientAddThemToTheProject\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addClientToTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingClientToTask\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"clientToAddToTask\\\"]]],null],[30,0,[\\\"addClientToTask\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addClientToTask\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addClientToTask\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"user\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/clients/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"Vk+x8x2j\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1' style='width: 200px;'>\n        <Input\n          class='form-control'\n          placeholder={{t\n            'shared.people-editor.subcontractors.Search for subcontractors'\n          }}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageSubcontractors')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingSubcontractorToTask) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredSubcontractors}}\n      @noData={{t 'shared.people-editor.subcontractors.No subcontractors yet'}}\n      @route={{concat this.model.basePath '.subcontractors.subcontractor'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingSubcontractorToTask}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingSubcontractorToTask) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.subcontractors.Add subcontractor to task'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.subcontractors.addSubcontractorToTaskExplanation'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedSubcontractors}}\n          @selected={{this.subcontractorToAddToTask}}\n          @onChange={{fn (mut this.subcontractorToAddToTask)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t\n            'shared.people-editor.subcontractors.Find a subcontractor'\n          }}\n          @allowClear={{true}}\n          as |subcontractor|\n        >\n          {{subcontractor.firstName}}\n          {{subcontractor.lastName}}\n          ({{subcontractor.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.builda-price.projects.project.people.subcontractors'\n          @model={{this.model.project.last.value.id}}\n        >\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.subcontractors.doNotSeeTheSubcontractorAddThemToTheProject'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addSubcontractorToTask.isRunning}}\n          {{on 'click' (fn (mut this.isAddingSubcontractorToTask) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.subcontractorToAddToTask)\n            this.addSubcontractorToTask.isRunning\n          }}\n          {{on 'click' (perform this.addSubcontractorToTask)}}\n        >\n          {{#if this.addSubcontractorToTask.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"v+fHHSrx\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[14,5,\\\"width: 200px;\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.subcontractors.Search for subcontractors\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToTask\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredSubcontractors\\\"]],[28,[37,5],[\\\"shared.people-editor.subcontractors.No subcontractors yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".subcontractors.subcontractor\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingSubcontractorToTask\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToTask\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.Add subcontractor to task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.addSubcontractorToTaskExplanation\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedSubcontractors\\\"]],[30,0,[\\\"subcontractorToAddToTask\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"subcontractorToAddToTask\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.subcontractors.Find a subcontractor\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.people.subcontractors\\\",[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.doNotSeeTheSubcontractorAddThemToTheProject\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addSubcontractorToTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingSubcontractorToTask\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"subcontractorToAddToTask\\\"]]],null],[30,0,[\\\"addSubcontractorToTask\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addSubcontractorToTask\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addSubcontractorToTask\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"subcontractor\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.subcontractor.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the task'}}\n        </p>\n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.subcontractors.subcontractor'\n            @model={{this.model.subcontractor.last.value.id}}\n          >\n            {{t\n              'shared.people-editor.subcontractors.subcontractor.View subcontractor details'\n            }}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageSubcontractors')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from task')\n                  (t 'shared.people-editor.Removing from task')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from task')\n                  (t 'shared.people-editor.Remove from task')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#if (includes-feature-flags 'canManageSubcontractors')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.subcontractorTaskPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.taskPermissionsVisible)\n                (not this.taskPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Task'}}\n            </h4>\n            {{#if this.taskPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.taskPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.taskPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.taskPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can make changes to the task'}}\n              @key='canManageTasks'\n              @description={{t\n                'shared.people-editor.canMakeChangesToTheTaskDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.projectCanManageTasks\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.projectCanManageTasks\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.projectCanManageTasks\n                (get this.model.permissionsChangeset.last.value 'canManageTasks')\n              }}\n            />\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task budget'}}\n                @key='canViewBudgets'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgets\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewBudgets'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewBudgets\n                  this.model.permissionsChangeset.last.value.canManageBudgets\n                  this.model.permissionsChangeset.last.value.canViewBudgets\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task budget'}}\n                  @key='canManageBudgets'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskBudgetDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageBudgets\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageBudgets\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageBudgets\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageBudgets'\n                    )\n                  }}\n                />\n              {{/if}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task quote'}}\n                @key='canViewQuotes'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuotes\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuotes\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuotes\n                  (get this.model.permissionsChangeset.last.value 'canViewQuotes')\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewQuotes\n                  this.model.permissionsChangeset.last.value.canManageQuotes\n                  this.model.permissionsChangeset.last.value.canViewQuotes\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task quote'}}\n                  @key='canManageQuotes'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskQuoteDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageQuotes\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageQuotes\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageQuotes\n                    (get\n                      this.model.permissionsChangeset.last.value 'canManageQuotes'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task progress'}}\n                @key='canViewProgress'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgress\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgress\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgress\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProgress'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewProgress\n                  this.model.permissionsChangeset.last.value.canManageProgress\n                  this.model.permissionsChangeset.last.value.canViewProgress\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task progress'}}\n                  @key='canManageProgress'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskProgressDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageProgress\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageProgress\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageProgress\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProgress'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all task documents'}}\n                @key='canViewFileStorage'\n                @description={{t\n                  'shared.people-editor.canSeeAllTaskDocumentsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewFileStorage\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewFileStorage\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewFileStorage\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewFileStorage'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewFileStorage\n                  this.model.permissionsChangeset.last.value.canManageFileStorage\n                  this.model.permissionsChangeset.last.value.canViewFileStorage\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.Can manage all task documents'\n                  }}\n                  @key='canManageFileStorage'\n                  @description={{t\n                    'entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.canManageAllDocumentsForTheTaskDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageFileStorage\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageFileStorage\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageFileStorage\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageFileStorage'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProducts}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all products for the task'\n                }}\n                @key='canViewProducts'\n                @description={{t\n                  'shared.people-editor.canSeeAllProductsForTheTaskDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProducts\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProducts\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProducts\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProducts'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewProducts\n                  this.model.permissionsChangeset.last.value.canManageProducts\n                  this.model.permissionsChangeset.last.value.canViewProducts\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all products for the task'\n                  }}\n                  @key='canManageProducts'\n                  @description={{t\n                    'shared.people-editor.canManageAllProductsForTheTaskDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageProducts\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageProducts\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageProducts\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProducts'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewSchedulingReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t\n                  'shared.people-editor.canMakeSchedulingChangesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanManageSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanManageSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanManageSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageSchedulingReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.allocationsPermissionsVisible)\n                  (not this.allocationsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Allocations'}}\n              </h4>\n              {{#if this.allocationsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.allocationsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.allocationsPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see and manage timesheets'}}\n                @key='canManageTimesheets'\n                @description={{t\n                  'shared.people-editor.canSeeAndManageTimesheetsTaskDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanManageTimesheets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanManageTimesheets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanManageTimesheets\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageTimesheets'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuoteReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuoteReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuoteReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewQuoteReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <div></div>\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewChargeupReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewChargeupReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewChargeupReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewChargeupReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgressReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgressReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgressReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewProgressReports'\n                  )\n                }}\n              />\n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanViewInvoicingReports\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanViewInvoicingReports\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanViewInvoicingReports\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewInvoicingReports'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"RiAnB6zD\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"subcontractor\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.subcontractors.subcontractor\\\",[30,0,[\\\"model\\\",\\\"subcontractor\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.subcontractors.subcontractor.View subcontractor details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from task\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Remove from task\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageSubcontractors\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.subcontractorTaskPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Task\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"taskPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"taskPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make changes to the task\\\"],null],\\\"canManageTasks\\\",[28,[37,6],[\\\"shared.people-editor.canMakeChangesToTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task budget\\\"],null],\\\"canViewBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task budget\\\"],null],\\\"canManageBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskBudgetDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task quote\\\"],null],\\\"canViewQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task quote\\\"],null],\\\"canManageQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskQuoteDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task progress\\\"],null],\\\"canViewProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task progress\\\"],null],\\\"canManageProgress\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskProgressDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all task documents\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllTaskDocumentsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.Can manage all task documents\\\"],null],\\\"canManageFileStorage\\\",[28,[37,6],[\\\"entity.builda-price.projects.project.tasks.task.people.subcontractors.subcontractor.canManageAllDocumentsForTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products for the task\\\"],null],\\\"canViewProducts\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsForTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products for the task\\\"],null],\\\"canManageProducts\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllProductsForTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.canMakeSchedulingChangesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageTimesheets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage timesheets\\\"],null],\\\"canManageTimesheets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageTimesheetsTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageTimesheets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageTimesheets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTimesheets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuoteReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[10,0],[12],[13],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewChargeupReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgressReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoicingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/subcontractors/subcontractor.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/users\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"X4dmyMOk\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/users.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/users/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.users.Search for users'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingUserToTask) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredUsers}}\n      @noData={{t 'shared.people-editor.users.No users yet'}}\n      @route={{concat this.model.basePath '.users.user'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingUserToTask}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingUserToTask) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.users.Add user to task'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.users.addUserToTaskExplanation'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedUsers}}\n          @selected={{this.userToAddToTask}}\n          @onChange={{fn (mut this.userToAddToTask)}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder={{t 'shared.people-editor.users.Find a user'}}\n          @allowClear={{true}}\n          as |user|\n        >\n          {{user.firstName}}\n          {{user.lastName}}\n          ({{user.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.builda-price.projects.project.people.users'\n          @model={{this.model.project.last.value.id}}\n        >\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.users.doNotSeeTheUserAddThemToTheProject'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.userToAddToTask.isRunning}}\n          {{on 'click' (fn (mut this.isAddingUserToTask) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or (not this.userToAddToTask) this.addUserToTask.isRunning}}\n          {{on 'click' (perform this.addUserToTask)}}\n        >\n          {{#if this.addUserToTask.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"14iFBEJk\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.users.Search for users\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToTask\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredUsers\\\"]],[28,[37,5],[\\\"shared.people-editor.users.No users yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".users.user\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingUserToTask\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToTask\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.users.Add user to task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.users.addUserToTaskExplanation\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedUsers\\\"]],[30,0,[\\\"userToAddToTask\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"userToAddToTask\\\"]]],null]],null],true,\\\"name\\\",[28,[37,5],[\\\"shared.people-editor.users.Find a user\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.people.users\\\",[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.users.doNotSeeTheUserAddThemToTheProject\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"userToAddToTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingUserToTask\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"userToAddToTask\\\"]]],null],[30,0,[\\\"addUserToTask\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addUserToTask\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addUserToTask\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"user\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/users/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/users/user\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.user.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the task'}}\n        </p>\n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.users.user'\n            @model={{this.model.user.last.value.id}}\n          >\n            {{t 'shared.people-editor.users.user.View user details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          {{#if (includes-feature-flags 'canManageUsers')}}\n            <button\n              type='button'\n              class='btn btn-secondary m-1'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Removing you from task')\n                  (t 'shared.people-editor.Removing from task')\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.userIsYou\n                  (t 'shared.people-editor.Remove yourself from task')\n                  (t 'shared.people-editor.Remove from task')\n                }}\n              {{/if}}\n            </button>\n          {{/if}}\n        </div>\n      </PtlForm>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t\n              'entity.builda-price.projects.project.tasks.task.people.users.user.userTaskPermissionsExplanation'\n            }}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.taskPermissionsVisible)\n                (not this.taskPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Task'}}\n            </h4>\n            {{#if this.taskPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.taskPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.taskPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.taskPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can make changes to the task'}}\n              @key='canManageTasks'\n              @description={{t\n                'shared.people-editor.canMakeChangesToTheTaskDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              @toolTip={{if\n                this.projectCanManageTasks\n                this.permissionSupersededMessage\n              }}\n              disabled={{or\n                this.projectCanManageTasks\n                this.savePermissions.isRunning\n              }}\n              @checked={{or\n                this.projectCanManageTasks\n                (get this.model.permissionsChangeset.last.value 'canManageTasks')\n              }}\n            />\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task budget'}}\n                @key='canViewBudgets'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgets\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewBudgets'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewBudgets\n                  this.model.permissionsChangeset.last.value.canManageBudgets\n                  this.model.permissionsChangeset.last.value.canViewBudgets\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task budget'}}\n                  @key='canManageBudgets'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskBudgetDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageBudgets\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageBudgets\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageBudgets\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageBudgets'\n                    )\n                  }}\n                />\n              {{/if}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task quote'}}\n                @key='canViewQuotes'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuotes\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuotes\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuotes\n                  (get this.model.permissionsChangeset.last.value 'canViewQuotes')\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewQuotes\n                  this.model.permissionsChangeset.last.value.canManageQuotes\n                  this.model.permissionsChangeset.last.value.canViewQuotes\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task quote'}}\n                  @key='canManageQuotes'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskQuoteDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageQuotes\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageQuotes\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageQuotes\n                    (get\n                      this.model.permissionsChangeset.last.value 'canManageQuotes'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see the task progress'}}\n                @key='canViewProgress'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgress\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgress\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgress\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProgress'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewProgress\n                  this.model.permissionsChangeset.last.value.canManageProgress\n                  this.model.permissionsChangeset.last.value.canViewProgress\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage the task progress'}}\n                  @key='canManageProgress'\n                  @description={{t\n                    'shared.people-editor.canManageTheTaskProgressDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageProgress\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageProgress\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageProgress\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProgress'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all task documents'}}\n                @key='canViewFileStorage'\n                @description={{t\n                  'shared.people-editor.canSeeAllTaskDocumentsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewFileStorage\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewFileStorage\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewFileStorage\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewFileStorage'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewFileStorage\n                  this.model.permissionsChangeset.last.value.canManageFileStorage\n                  this.model.permissionsChangeset.last.value.canViewFileStorage\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage all documents'}}\n                  @key='canManageFileStorage'\n                  @description={{t\n                    'shared.people-editor.canManageAllDocumentsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageFileStorage\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageFileStorage\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageFileStorage\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageFileStorage'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProducts}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all products for the task'\n                }}\n                @key='canViewProducts'\n                @description={{t\n                  'shared.people-editor.canSeeAllProductsForTheTaskDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProducts\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProducts\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProducts\n                  (get\n                    this.model.permissionsChangeset.last.value 'canViewProducts'\n                  )\n                }}\n              />\n              {{#if\n                (or\n                  this.projectCanViewProducts\n                  this.model.permissionsChangeset.last.value.canManageProducts\n                  this.model.permissionsChangeset.last.value.canViewProducts\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all products for the task'\n                  }}\n                  @key='canManageProducts'\n                  @description={{t\n                    'shared.people-editor.canManageAllProductsForTheTaskDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanManageProducts\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanManageProducts\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanManageProducts\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canManageProducts'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewSchedulingReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t\n                  'shared.people-editor.canMakeSchedulingChangesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanManageSchedulingReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanManageSchedulingReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanManageSchedulingReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageSchedulingReports'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.allocationsPermissionsVisible)\n                  (not this.allocationsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Allocations'}}\n              </h4>\n              {{#if this.allocationsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.allocationsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.allocationsPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see and manage timesheets'}}\n                @key='canManageTimesheets'\n                @description={{t\n                  'shared.people-editor.canSeeAndManageTimesheetsTaskDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanManageTimesheets\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanManageTimesheets\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanManageTimesheets\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canManageTimesheets'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports'\n                  }}:\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see budget data in reports'}}\n                @description={{t\n                  'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                }}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewBudgetLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewBudgetLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewBudgetLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see quote data in reports'}}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewQuoteReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewQuoteReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewQuoteReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewQuoteReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see cost data in reports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostFinancialReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewCostLabourHourReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewCostLabourHourReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewCostLabourHourReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewCostLabourHourReports'\n                  )\n                }}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewChargeupReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewChargeupReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewChargeupReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewChargeupReports'\n                  )\n                }}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                @toolTip={{if\n                  this.projectCanViewProgressReports\n                  this.permissionSupersededMessage\n                }}\n                disabled={{or\n                  this.projectCanViewProgressReports\n                  this.savePermissions.isRunning\n                }}\n                @checked={{or\n                  this.projectCanViewProgressReports\n                  (get\n                    this.model.permissionsChangeset.last.value\n                    'canViewProgressReports'\n                  )\n                }}\n              />\n              {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.users.user.Can see all invoicing data in reports'\n                  }}\n                  @key='canViewInvoicingReports'\n                  @description={{t\n                    'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @toolTip={{if\n                    this.projectCanViewInvoicingReports\n                    this.permissionSupersededMessage\n                  }}\n                  disabled={{or\n                    this.projectCanViewInvoicingReports\n                    this.savePermissions.isRunning\n                  }}\n                  @checked={{or\n                    this.projectCanViewInvoicingReports\n                    (get\n                      this.model.permissionsChangeset.last.value\n                      'canViewInvoicingReports'\n                    )\n                  }}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"/yEUsPu2\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"user\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.users.user\\\",[30,0,[\\\"model\\\",\\\"user\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.users.user.View user details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Removing you from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Removing from task\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"userIsYou\\\"]],[28,[37,6],[\\\"shared.people-editor.Remove yourself from task\\\"],null],[28,[37,6],[\\\"shared.people-editor.Remove from task\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.projects.project.tasks.task.people.users.user.userTaskPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"taskPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Task\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"taskPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"taskPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"taskPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageTasks\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make changes to the task\\\"],null],\\\"canManageTasks\\\",[28,[37,6],[\\\"shared.people-editor.canMakeChangesToTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageTasks\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageTasks\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTasks\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task budget\\\"],null],\\\"canViewBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageBudgets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task budget\\\"],null],\\\"canManageBudgets\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskBudgetDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageBudgets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageBudgets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageBudgets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task quote\\\"],null],\\\"canViewQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageQuotes\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task quote\\\"],null],\\\"canManageQuotes\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskQuoteDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageQuotes\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageQuotes\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageQuotes\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see the task progress\\\"],null],\\\"canViewProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageProgress\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage the task progress\\\"],null],\\\"canManageProgress\\\",[28,[37,6],[\\\"shared.people-editor.canManageTheTaskProgressDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageProgress\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageProgress\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProgress\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all task documents\\\"],null],\\\"canViewFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllTaskDocumentsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageFileStorage\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all documents\\\"],null],\\\"canManageFileStorage\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageFileStorage\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageFileStorage\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageFileStorage\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products for the task\\\"],null],\\\"canViewProducts\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsForTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"projectCanViewProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageProducts\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products for the task\\\"],null],\\\"canManageProducts\\\",[28,[37,6],[\\\"shared.people-editor.canManageAllProductsForTheTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageProducts\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageProducts\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProducts\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.canMakeSchedulingChangesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageSchedulingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageSchedulingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanManageTimesheets\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see and manage timesheets\\\"],null],\\\"canManageTimesheets\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAndManageTimesheetsTaskDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanManageTimesheets\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanManageTimesheets\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageTimesheets\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,16],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanSeeTheFollowingReports\\\"],null]],[1,\\\":\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see budget data in reports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewBudgetLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewBudgetLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewQuoteReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewQuoteReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewQuoteReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,20],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see cost data in reports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostFinancialReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewCostLabourHourReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewCostLabourHourReports\\\"],null]],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewChargeupReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewChargeupReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewChargeupReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewProgressReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewProgressReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewProgressReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"              \\\"],[8,[39,19],[[16,\\\"disabled\\\",[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@toolTip\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,21],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],[52,[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[30,0,[\\\"permissionSupersededMessage\\\"]]],[28,[37,20],[[30,0,[\\\"projectCanViewInvoicingReports\\\"]],[28,[37,22],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],\\\"canViewInvoicingReports\\\"],null]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"h4\\\",\\\"span\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"gt\\\",\\\"get\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/users/user.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"vOE0Iao4\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.workers.Search for workers'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageWorkers')}}\n        <button\n          type='button'\n          class='btn btn-success text-white text-nowrap m-1'\n          {{on 'click' (fn (mut this.isAddingWorkerToTask) true)}}\n        >\n          <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n        </button>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredWorkers}}\n      @noData={{t 'shared.people-editor.workers.No workers yet'}}\n      @route={{concat this.model.basePath '.workers.worker'}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingWorkerToTask}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isAddingWorkerToTask) false}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.workers.Add worker to task'\n          }}\n        </h3>\n      </div>\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.workers.addWorkerToTaskExplanation'\n          }}\n        </p>\n  \n        <PowerSelect\n          @tagName='div'\n          class='mb-1'\n          @options={{this.unassignedWorkers}}\n          @selected={{this.workerToAddToTask}}\n          @onChange={{fn (mut this.workerToAddToTask)}}\n          @searchEnabled={{true}}\n          @searchField='searchString'\n          @placeholder={{t 'shared.people-editor.workers.Find a worker'}}\n          @allowClear={{true}}\n          as |worker|\n        >\n          {{worker.firstName}}\n          {{worker.lastName}}\n          ({{worker.email}})\n        </PowerSelect>\n        <LinkTo\n          class='link ps-0'\n          @route='entity.builda-price.projects.project.people.workers'\n          @model={{this.model.task.last.value.project.id}}\n        >\n          {{t\n            'entity.builda-price.projects.project.tasks.task.people.workers.doNotSeeTheWorkerAddThemToTheProject'\n          }}\n          <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n        </LinkTo>\n  \n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          disabled={{this.addWorkerToTask.isRunning}}\n          {{on 'click' (fn (mut this.isAddingWorkerToTask) false)}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{or\n            (not this.workerToAddToTask)\n            this.addWorkerToTask.isRunning\n          }}\n          {{on 'click' (perform this.addWorkerToTask)}}\n        >\n          {{#if this.addWorkerToTask.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'common.Add'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"Cr6PdtVF\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.workers.Search for workers\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageWorkers\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToTask\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,12],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\"],[[30,0,[\\\"filteredWorkers\\\"]],[28,[37,5],[\\\"shared.people-editor.workers.No workers yet\\\"],null],[28,[37,13],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".workers.worker\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingWorkerToTask\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToTask\\\"]]],null],false],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.workers.Add worker to task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.workers.addWorkerToTaskExplanation\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@onChange\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@allowClear\\\"],[\\\"div\\\",[30,0,[\\\"unassignedWorkers\\\"]],[30,0,[\\\"workerToAddToTask\\\"]],[28,[37,9],[[28,[37,10],[[30,0,[\\\"workerToAddToTask\\\"]]],null]],null],true,\\\"searchString\\\",[28,[37,5],[\\\"shared.people-editor.workers.Find a worker\\\"],null],true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"firstName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"lastName\\\"]]],[1,\\\"\\\\n        (\\\"],[1,[30,1,[\\\"email\\\"]]],[1,\\\")\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[8,[39,18],[[24,0,\\\"link ps-0\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.builda-price.projects.project.people.workers\\\",[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\",\\\"project\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.people.workers.doNotSeeTheWorkerAddThemToTheProject\\\"],null]],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addWorkerToTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[28,[37,10],[[30,0,[\\\"isAddingWorkerToTask\\\"]]],null],false],null]],null],[12],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[28,[37,19],[[28,[37,20],[[30,0,[\\\"workerToAddToTask\\\"]]],null],[30,0,[\\\"addWorkerToTask\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"addWorkerToTask\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addWorkerToTask\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"worker\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"fa-icon\\\",\\\"people-table\\\",\\\"concat\\\",\\\"modal-dialog\\\",\\\"h3\\\",\\\"p\\\",\\\"power-select\\\",\\\"link-to\\\",\\\"or\\\",\\\"not\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/worker\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-0'>{{t 'common.Details'}}</h3>\n        <p class='mb-3'>\n          {{this.model.worker.last.value.fullName}}\n          {{t 'shared.people-editor.is assigned to the task'}}\n        </p>\n        <div class='d-flex'>\n          <LinkTo\n            class='btn btn-primary m-1'\n            @route='entity.settings.people.workers.worker'\n            @model={{this.model.worker.last.value.id}}\n          >\n            {{t 'shared.people-editor.workers.worker.View worker details'}}\n            <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n          </LinkTo>\n  \n          <button\n            type='button'\n            class='btn btn-secondary m-1'\n            disabled={{this.deleteWorker.isRunning}}\n            {{on 'click' (perform this.deleteWorker)}}\n          >\n            {{#if this.deleteWorker.isRunning}}\n              {{t 'shared.people-editor.Removing from task'}}\n            {{else}}\n              {{t 'shared.people-editor.Remove from task'}}\n            {{/if}}\n          </button>\n        </div>\n      </PtlForm>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"fwj2dfCU\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[30,0,[\\\"model\\\",\\\"worker\\\",\\\"last\\\",\\\"value\\\",\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.people-editor.is assigned to the task\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.settings.people.workers.worker\\\",[30,0,[\\\"model\\\",\\\"worker\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.workers.worker.View worker details\\\"],null]],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"deleteWorker\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Removing from task\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Remove from task\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/people/workers/worker.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/products\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mt-3 h-100'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n        {{#if (and this.isEditable this.productTableData.length)}}\n          <div class='flex-grow-1'>\n            <button\n              class='btn btn-link text-danger text-decoration-underline float-start'\n              type='button'\n              {{on 'click' (fn (mut this.isDeletingProducts) true)}}\n              disabled={{not this.selectProductIds.size}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n          </div>\n        {{/if}}\n        <div class='d-flex'>\n          {{#if this.showFilters}}\n            <Input\n              class='form-control m-1 w-auto'\n              placeholder={{t 'shared.product.Search products'}}\n              @value={{this.searchString}}\n              @type='text'\n              autofocus='true'\n              {{on 'input' (perform this.onChangeSearchTerm)}}\n              data-test-task-product-search\n            />\n          {{/if}}\n          {{#if this.isEditable}}\n            <button\n              type='button'\n              class='btn btn-success text-white text-nowrap m-1'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (fn (mut this.isAddingProduct) true)}}\n            >\n              <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n            </button>\n          {{/if}}\n        </div>\n      </header>\n      <div class='task-products__table-container'>\n        <PaginationTable\n          @tableHeader={{this.productTableHeader}}\n          @tableData={{this.productTableData}}\n          @noDataText={{t 'common.No data'}}\n          @pageSizes={{this.model.pageSizes}}\n          @pageSize={{this.model.pageSize}}\n          @pageIndex={{this.model.pageIndex}}\n          @onChangePageIndex={{this.onChangePageIndex}}\n          @onChangePageSize={{this.onChangePageSize}}\n          @isLoading={{this.model.products.isRunning}}\n          @totalRecords={{this.totalRecords}}\n          @class='table-bordered'\n        />\n      </div>\n    {{/if}}\n  </div>\n  \n  {{#if this.isEditingProduct}}\n    <ProductEditor\n      @onSaveProduct={{this.onSaveProduct}}\n      @target={{this.model.task.last.value}}\n      @productTable={{'task-product'}}\n      @entity={{this.sessionData.entity}}\n      @productId={{this.selectedProductId}}\n      @onClose={{fn (mut this.isEditingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isAddingProduct}}\n    <ProductSelector\n      @onAddProduct={{this.onAddProduct}}\n      @onCreateProduct={{this.onCreateProduct}}\n      @onClose={{fn (mut this.isAddingProduct) false}}\n    />\n  {{/if}}\n  \n  {{#if this.isDeletingProducts}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingProducts) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      <p>\n        {{t\n          'shared.product.areYouSureYouWantToDeleteXProducts'\n          number=this.selectProductIds.size\n          products=(pluralize this.selectProductIds.size 'product')\n        }}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.deleteProducts.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Deleting'}}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (perform this.deleteProducts)}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.deleteProducts.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingProducts) false)}}\n            >{{t 'common.Cancel'}}</button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"lio+IZ2S\",\n    \"block\": \"[[[10,0],[14,0,\\\"mt-3 h-100\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,0,[\\\"isEditable\\\"]],[30,0,[\\\"productTableData\\\",\\\"length\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,6],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"isDeletingProducts\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showFilters\\\"]],[[[1,\\\"          \\\"],[8,[39,11],[[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.product.Search products\\\"],null]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,\\\"data-test-task-product-search\\\",\\\"\\\"],[4,[38,7],[\\\"input\\\",[28,[37,12],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"searchString\\\"]],\\\"text\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isEditable\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"isAddingProduct\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,13],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,10],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"task-products__table-container\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,14],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@isLoading\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"productTableHeader\\\"]],[30,0,[\\\"productTableData\\\"]],[28,[37,10],[\\\"common.No data\\\"],null],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageIndex\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"model\\\",\\\"products\\\",\\\"isRunning\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,15],null,[[\\\"@onSaveProduct\\\",\\\"@target\\\",\\\"@productTable\\\",\\\"@entity\\\",\\\"@productId\\\",\\\"@onClose\\\"],[[30,0,[\\\"onSaveProduct\\\"]],[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\"]],\\\"task-product\\\",[30,0,[\\\"sessionData\\\",\\\"entity\\\"]],[30,0,[\\\"selectedProductId\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"isEditingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isAddingProduct\\\"]],[[[1,\\\"  \\\"],[8,[39,16],null,[[\\\"@onAddProduct\\\",\\\"@onCreateProduct\\\",\\\"@onClose\\\"],[[30,0,[\\\"onAddProduct\\\"]],[30,0,[\\\"onCreateProduct\\\"]],[28,[37,8],[[28,[37,9],[[30,0,[\\\"isAddingProduct\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeletingProducts\\\"]],[[[1,\\\"  \\\"],[8,[39,17],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,10],[\\\"shared.product.areYouSureYouWantToDeleteXProducts\\\"],[[\\\"number\\\",\\\"products\\\"],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],[28,[37,19],[[30,0,[\\\"selectProductIds\\\",\\\"size\\\"]],\\\"product\\\"],null]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,10],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"deleteProducts\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteProducts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"isDeletingProducts\\\"]]],null],false],null]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"and\\\",\\\"button\\\",\\\"not\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"t\\\",\\\"input\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"pagination-table\\\",\\\"product-editor\\\",\\\"product-selector\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"pluralize\\\",\\\"footer\\\",\\\"span\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/products.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/projects/project/tasks/task/settings\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mt-3'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <PtlForm class='width--large mb-4'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Name'}}\n          @key='name'\n          @model={{this.model.taskChangeset.last.value}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveTask.performCount 0}}\n          disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n        />\n        <PtlInput\n          @type='textarea'\n          @label={{t 'common.Description'}}\n          @key='description'\n          @model={{this.model.taskChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveTask.performCount 0}}\n          disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n        />\n  \n        <div class='d-flex align-items-center mb-3'>\n          <div class='flex-grow-1'>\n            {{#if this.contractTypeIsOverridden}}\n              <PtlInput\n                @type='select'\n                @label={{t 'shared.task.Contract type'}}\n                @containerClass='m-0'\n                @options={{this.contractType}}\n                @key='contractType'\n                @selectNoBlankOption={{true}}\n                @model={{this.model.taskChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveTask.performCount 0}}\n                disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n              />\n            {{else}}\n              <div>\n                <label class='mb-1'>{{t 'shared.task.Contract type'}}</label>\n                <div class='input-group'>\n                  <Input\n                    class='form-control'\n                    @type='text'\n                    @value={{this.humanReadableContractType}}\n                    disabled={{true}}\n                  />\n                </div>\n              </div>\n            {{/if}}\n          </div>\n  \n          <label class='mx-3 d-flex align-items-center mt-4'>\n            <span>{{t 'common.Override'}}</span>\n            <Input\n              @type='checkbox'\n              class='form-check-input m-0 ms-1'\n              @checked={{this.contractTypeIsOverridden}}\n              {{on\n                'click'\n                (fn\n                  this.toggleContractTypeOverride\n                  this.model.taskChangeset.last.value\n                )\n              }}\n              disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n            />\n          </label>\n        </div>\n  \n        <PtlInput\n          @type='select'\n          @label={{t 'common.Task type'}}\n          @key='taskType'\n          @selectNoBlankOption={{true}}\n          @options={{this.taskTypes}}\n          @required={{true}}\n          @model={{this.model.taskChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveTask.performCount 0}}\n          disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n        />\n        <PtlInput\n          @type='select'\n          @label={{t 'common.Status'}}\n          @key='timesheetStatus'\n          @selectNoBlankOption={{true}}\n          @options={{this.timesheetStatus}}\n          @required={{true}}\n          @model={{this.model.taskChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveTask.performCount 0}}\n          @description={{t\n            'entity.builda-price.projects.project.tasks.task.settings.activeTasksAreAvailableToLogCostsAgainst'\n          }}\n          disabled={{or\n            this.saveTask.isRunning\n            this.hasInactiveParents\n            (not this.canManageTask)\n          }}\n        />\n  \n        {{#if\n          (includes\n            this.accountingPlatform.glAccountVisibleFields 'purchasesGlAccount'\n          )\n        }}\n          <div class='d-flex align-items-center mb-3'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @containerClass='m-0'\n                @type='powerSelect'\n                @label={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.Default purchases account'\n                }}\n                @description={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.purchasesGlAccountDescription'\n                }}\n                @key={{if\n                  this.purchasesGlAccountIsOverridden\n                  'purchasesGlAccount'\n                  'defaultPurchasesGlAccount'\n                }}\n                @optionKeys={{array 'code' 'name'}}\n                @options={{this.model.glAccounts.last.value}}\n                @allowClear={{true}}\n                @model={{this.model.taskChangeset.last.value}}\n                @searchEnabled={{true}}\n                @searchField='code'\n                @forceValidationVisible={{gt this.saveTask.performCount 0}}\n                @disabled={{or\n                  (not this.purchasesGlAccountIsOverridden)\n                  this.saveTask.isRunning\n                  (not this.canManageTask)\n                }}\n                @placeholder={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.No default account'\n                }}\n              />\n            </div>\n  \n            <label class='mx-3 d-flex align-items-center mt-1'>\n              <span>{{t 'common.Override'}}</span>\n              <Input\n                @type='checkbox'\n                class='form-check-input m-0 ms-1'\n                @checked={{this.purchasesGlAccountIsOverridden}}\n                {{on\n                  'click'\n                  (fn\n                    this.togglePurchasesGlAccountOverride\n                    this.model.taskChangeset.last.value\n                  )\n                }}\n                disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n              />\n            </label>\n          </div>\n        {{/if}}\n  \n        {{#if\n          (includes\n            this.accountingPlatform.glAccountVisibleFields 'salesGlAccount'\n          )\n        }}\n          <div class='d-flex align-items-center mb-3'>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @containerClass='m-0'\n                @type='powerSelect'\n                @label={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.Default sales account'\n                }}\n                @description={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.salesGlAccountDescription'\n                }}\n                @key={{if\n                  this.salesGlAccountIsOverridden\n                  'salesGlAccount'\n                  'defaultSalesGlAccount'\n                }}\n                @optionKeys={{array 'code' 'name'}}\n                @options={{this.model.glAccounts.last.value}}\n                @allowClear={{true}}\n                @model={{this.model.taskChangeset.last.value}}\n                @searchEnabled={{true}}\n                @searchField='code'\n                @forceValidationVisible={{gt this.saveTask.performCount 0}}\n                @disabled={{or\n                  (not this.salesGlAccountIsOverridden)\n                  this.saveTask.isRunning\n                  (not this.canManageTask)\n                }}\n                @placeholder={{t\n                  'entity.builda-price.projects.project.tasks.task.settings.No default account'\n                }}\n              />\n            </div>\n  \n            <label class='mx-3 d-flex align-items-center mt-1'>\n              <span>{{t 'common.Override'}}</span>\n              <Input\n                @type='checkbox'\n                class='form-check-input m-0 ms-1'\n                @checked={{this.salesGlAccountIsOverridden}}\n                {{on\n                  'click'\n                  (fn\n                    this.toggleSalesGlAccountOverride\n                    this.model.taskChangeset.last.value\n                  )\n                }}\n                disabled={{or this.saveTask.isRunning (not this.canManageTask)}}\n              />\n            </label>\n          </div>\n        {{/if}}\n  \n        {{#if this.canManageTask}}\n          <div class='d-flex flex-grow-1 mt-3'>\n            <button\n              type='button'\n              class='btn btn-link text-danger text-decoration-underline'\n              disabled={{this.deleteTask.isRunning}}\n              {{on 'click' this.openDeleteModal}}\n            >\n              {{#if this.deleteTask.isRunning}}\n                &nbsp;&nbsp;{{t 'common.Deleting'}}…\n              {{else}}\n                {{t 'common.Delete'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveTask.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.saveTask\n                  this.model.taskChangeset.last.value\n                  this.model.profitMarginChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.saveTask.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n              {{else}}\n                {{t 'common.Save details'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/if}}\n      </PtlForm>\n  \n      {{#if\n        (includes-feature-flags\n          this.model.task.last.value 'canManageProfitMargin'\n        )\n      }}\n        <PtlForm class='width--large'>\n          <ProfitMarginForm\n            @default={{this.model.task.last.value.defaultPercentageValues}}\n            @profitMargin={{this.model.profitMarginChangeset.last.value}}\n            @description={{t 'shared.profit-margins.profitMarginDescription'}}\n            @forceValidationVisible={{gt this.saveProfitMargin.performCount 0}}\n            @disabled={{this.saveProfitMargin.isRunning}}\n          />\n  \n          <div class='d-flex flex-grow-1 mt-3'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveProfitMargin.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.saveProfitMargin\n                  this.model.taskChangeset.last.value\n                  this.model.profitMarginChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.saveProfitMargin.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n              {{else}}\n                {{t 'shared.profit-margins.Save profit margins'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  \n  <ConfirmDelete\n    @visible={{this.isDeletingTask}}\n    @title={{t\n      'entity.builda-price.projects.project.tasks.task.settings.Delete task'\n    }}\n    @messages={{this.deleteMessages}}\n    @confirmText={{this.deleteConfirmText}}\n    @deleteButtonText={{t\n      'entity.builda-price.projects.project.tasks.task.settings.deleteTask'\n      subtasks=(if\n        this.model.task.last.value.activeChildren.length\n        (t\n          'entity.builda-price.projects.project.tasks.task.settings.and its subtasks'\n        )\n      )\n    }}\n    @deletingButtonText={{t 'common.Deleting'}}\n    @onDelete={{perform this.deleteTask}}\n    @onCancel={{fn (mut this.isDeletingTask) false}}\n  />\n  \n  {{#if this.isDependencyTransferModalOpen}}\n    <ModalDialog\n      @onClose={{this.closeDependencyTransferModal}}\n      @containerClass='modal-content w-auto width--small'\n      @translucentOverlay={{true}}\n      @overlayClass='modal'\n    >\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.settings.This task has cost or other items mapped to it'\n          }}\n        </h5>\n      </div>\n  \n      <div class='modal-body'>\n        <p>\n          {{t\n            'entity.builda-price.projects.project.tasks.task.settings.selectAnotherTaskToMoveThemToBeforeDeletingThisTask'\n          }}\n        </p>\n        <TaskTransferSelector\n          @tasks={{this.availableDependencyTransferDestinationTasks}}\n          @excludedTasks={{array this.model.task.last.value}}\n          @selectedTask={{this.dependencyTransferDestinationTask}}\n          @onSelectTask={{this.selectDependencyTransferDestination}}\n        />\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary text-white'\n          {{on 'click' this.closeDependencyTransferModal}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-danger text-white'\n          disabled={{or\n            (not this.dependencyTransferDestinationTask)\n            this.deleteTask.isRunning\n          }}\n          {{on\n            'click'\n            (perform this.deleteTask this.dependencyTransferDestinationTask)\n          }}\n        >\n          {{#if this.deleteTask.isRunning}}\n            <span class='spinner-border spinner-border-sm'></span>&nbsp;&nbsp;{{t\n              'common.Deleting'\n            }}&hellip;\n          {{else}}\n            {{t\n              'entity.builda-price.projects.project.tasks.task.settings.moveItemsDeleteTask'\n            }}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"76+vtM2V\",\n    \"block\": \"[[[10,0],[14,0,\\\"mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,3],[[24,0,\\\"width--large mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,5],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,5],[\\\"common.Name\\\"],null],\\\"name\\\",[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,5],[\\\"common.Description\\\"],null],\\\"description\\\",[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"contractTypeIsOverridden\\\"]],[[[1,\\\"            \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@containerClass\\\",\\\"@options\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,5],[\\\"shared.task.Contract type\\\"],null],\\\"m-0\\\",[30,0,[\\\"contractType\\\"]],\\\"contractType\\\",true,[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,5],[\\\"shared.task.Contract type\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],[[24,0,\\\"form-control\\\"],[16,\\\"disabled\\\",true]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"humanReadableContractType\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-4\\\"],[12],[1,\\\"\\\\n          \\\"],[10,1],[12],[1,[28,[35,5],[\\\"common.Override\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[8,[39,11],[[24,0,\\\"form-check-input m-0 ms-1\\\"],[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"toggleContractTypeOverride\\\"]],[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"contractTypeIsOverridden\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,5],[\\\"common.Task type\\\"],null],\\\"taskType\\\",true,[30,0,[\\\"taskTypes\\\"]],true,[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,6],[[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[30,0,[\\\"hasInactiveParents\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\"],[\\\"select\\\",[28,[37,5],[\\\"common.Status\\\"],null],\\\"timesheetStatus\\\",true,[30,0,[\\\"timesheetStatus\\\"]],true,[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.activeTasksAreAvailableToLogCostsAgainst\\\"],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"purchasesGlAccount\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,6],null,[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@allowClear\\\",\\\"@model\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\",\\\"@placeholder\\\"],[\\\"m-0\\\",\\\"powerSelect\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.Default purchases account\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.purchasesGlAccountDescription\\\"],null],[52,[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]],\\\"purchasesGlAccount\\\",\\\"defaultPurchasesGlAccount\\\"],[28,[37,16],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],true,[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,\\\"code\\\",[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null],[28,[37,7],[[28,[37,8],[[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]]],null],[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.No default account\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,5],[\\\"common.Override\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,11],[[24,0,\\\"form-check-input m-0 ms-1\\\"],[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"togglePurchasesGlAccountOverride\\\"]],[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"purchasesGlAccountIsOverridden\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"salesGlAccount\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,6],null,[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@allowClear\\\",\\\"@model\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\",\\\"@placeholder\\\"],[\\\"m-0\\\",\\\"powerSelect\\\",[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.Default sales account\\\"],null],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.salesGlAccountDescription\\\"],null],[52,[30,0,[\\\"salesGlAccountIsOverridden\\\"]],\\\"salesGlAccount\\\",\\\"defaultSalesGlAccount\\\"],[28,[37,16],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],true,[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,\\\"code\\\",[28,[37,9],[[30,0,[\\\"saveTask\\\",\\\"performCount\\\"]],0],null],[28,[37,7],[[28,[37,8],[[30,0,[\\\"salesGlAccountIsOverridden\\\"]]],null],[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.No default account\\\"],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"mx-3 d-flex align-items-center mt-1\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[12],[1,[28,[35,5],[\\\"common.Override\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,11],[[24,0,\\\"form-check-input m-0 ms-1\\\"],[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[28,[37,8],[[30,0,[\\\"canManageTask\\\"]]],null]],null]],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"toggleSalesGlAccountOverride\\\"]],[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"salesGlAccountIsOverridden\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageTask\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"openDeleteModal\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteTask\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,5],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,5],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"saveTask\\\"]],[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"profitMarginChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveTask\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,5],[\\\"common.Save details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\"]],\\\"canManageProfitMargin\\\"],null],[[[1,\\\"      \\\"],[8,[39,3],[[24,0,\\\"width--large\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[39,20],null,[[\\\"@default\\\",\\\"@profitMargin\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\",\\\"@disabled\\\"],[[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\",\\\"defaultPercentageValues\\\"]],[30,0,[\\\"model\\\",\\\"profitMarginChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,5],[\\\"shared.profit-margins.profitMarginDescription\\\"],null],[28,[37,9],[[30,0,[\\\"saveProfitMargin\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"saveProfitMargin\\\"]],[30,0,[\\\"model\\\",\\\"taskChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"profitMarginChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveProfitMargin\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,5],[\\\"shared.profit-margins.Save profit margins\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[8,[39,21],null,[[\\\"@visible\\\",\\\"@title\\\",\\\"@messages\\\",\\\"@confirmText\\\",\\\"@deleteButtonText\\\",\\\"@deletingButtonText\\\",\\\"@onDelete\\\",\\\"@onCancel\\\"],[[30,0,[\\\"isDeletingTask\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.Delete task\\\"],null],[30,0,[\\\"deleteMessages\\\"]],[30,0,[\\\"deleteConfirmText\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.deleteTask\\\"],[[\\\"subtasks\\\"],[[52,[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\",\\\"activeChildren\\\",\\\"length\\\"]],[28,[37,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.and its subtasks\\\"],null]]]]],[28,[37,5],[\\\"common.Deleting\\\"],null],[28,[37,18],[[30,0,[\\\"deleteTask\\\"]]],null],[28,[37,14],[[28,[37,22],[[30,0,[\\\"isDeletingTask\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDependencyTransferModalOpen\\\"]],[[[1,\\\"  \\\"],[8,[39,23],null,[[\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@overlayClass\\\"],[[30,0,[\\\"closeDependencyTransferModal\\\"]],\\\"modal-content w-auto width--small\\\",true,\\\"modal\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.This task has cost or other items mapped to it\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.selectAnotherTaskToMoveThemToBeforeDeletingThisTask\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,26],null,[[\\\"@tasks\\\",\\\"@excludedTasks\\\",\\\"@selectedTask\\\",\\\"@onSelectTask\\\"],[[30,0,[\\\"availableDependencyTransferDestinationTasks\\\"]],[28,[37,16],[[30,0,[\\\"model\\\",\\\"task\\\",\\\"last\\\",\\\"value\\\"]]],null],[30,0,[\\\"dependencyTransferDestinationTask\\\"]],[30,0,[\\\"selectDependencyTransferDestination\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"closeDependencyTransferModal\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,5],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"dependencyTransferDestinationTask\\\"]]],null],[30,0,[\\\"deleteTask\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"deleteTask\\\"]],[30,0,[\\\"dependencyTransferDestinationTask\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteTask\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,5],[\\\"entity.builda-price.projects.project.tasks.task.settings.moveItemsDeleteTask\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"label\\\",\\\"input\\\",\\\"span\\\",\\\"on\\\",\\\"fn\\\",\\\"includes\\\",\\\"array\\\",\\\"button\\\",\\\"perform\\\",\\\"includes-feature-flags\\\",\\\"profit-margin-form\\\",\\\"confirm-delete\\\",\\\"mut\\\",\\\"modal-dialog\\\",\\\"h5\\\",\\\"p\\\",\\\"task-transfer-selector\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/projects/project/tasks/task/settings.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"qu/FcpUr\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <ModuleNavigation::Reports::CompanyReports />\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Reports')}}\n    />\n  \n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"jbA5hA8W\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,null,null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Reports\\\"],null]]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"module-navigation/reports/company-reports\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/forecast-breakdown\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.reports.company.forecast-breakdown.Forecast report'\n        )\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.forecastTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n              disabled={{this.downloadAsCsv.isRunning}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <p>\n        {{t 'shared.reports.forecastBreakdownReportExplanation'}}\n      </p>\n      <div class='d-flex align-items-center my-3'>\n        <PopOver\n          @disableBlur={{true}}\n          @direction='bottom-right'\n          @disabled={{this.isLoading}}\n          as |po|\n        >\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Filters'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content class='py-3 px-3' style='width: 250px;'>\n            <label class='align-items-center'>\n              <LabelPopup\n                class='mb-1'\n                @text={{t\n                  'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n                }}\n              >\n                {{t 'shared.reports.Report date'}}\n              </LabelPopup>\n              <input\n                class='form-control w-100'\n                placeholder={{t 'shared.reports.Pick a date'}}\n                type='date'\n                value={{this.controllerDate}}\n                {{on 'change' this.onDateChange}}\n              />\n            </label>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t 'common.Status'}}</label>\n              <SelectInput\n                @value={{this.controllerStatus}}\n                @action={{this.filterStatus}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n                <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n                <si.option @value='CLOSED'>{{t\n                    'common.Closed projects'\n                  }}</si.option>\n                <si.option @value='ARCHIVED'>{{t\n                    'common.Archived projects'\n                  }}</si.option>\n              </SelectInput>\n            </div>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t\n                  'shared.reports.Exclude projects'\n                }}</label>\n              <PowerSelectMultiple\n                @options={{this.filteredProjects}}\n                @selected={{this.excludedProjects}}\n                @searchEnabled={{true}}\n                @searchField='name'\n                @placeholder={{t 'shared.reports.selectProjectsToExclude'}}\n                @renderInPlace={{true}}\n                @onChange={{fn (mut this.excludedProjects)}}\n                as |project|\n              >\n                {{project.name}}\n              </PowerSelectMultiple>\n            </div>\n  \n            <div class='text-right mt-3'>\n              <button\n                class='btn btn-primary'\n                {{on 'click' this.applyFilter}}\n                type='button'\n              >{{t 'common.Apply filters'}}</button>\n            </div>\n          </po.Content>\n        </PopOver>\n        {{#if this.hasFilters}}\n          <button\n            class='text-button ms-2'\n            type='button'\n            {{on 'click' this.removeFilter}}\n          >\n            <FaIcon @icon='times' />&nbsp;{{t 'common.Reset filters'}}\n          </button>\n        {{/if}}\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.forecastTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"C1pQ9kql\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.reports.company.forecast-breakdown.Forecast report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,10],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"shared.reports.forecastBreakdownReportExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@disableBlur\\\",\\\"@direction\\\",\\\"@disabled\\\"],[true,\\\"bottom-right\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Filters\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"py-3 px-3\\\"],[24,5,\\\"width: 250px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],[[24,0,\\\"mb-1\\\"]],[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control w-100\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"controllerDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,13],[\\\"change\\\",[30,0,[\\\"onDateChange\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"controllerStatus\\\"]],[30,0,[\\\"filterStatus\\\"]],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"shared.reports.Exclude projects\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,21],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@renderInPlace\\\",\\\"@onChange\\\"],[[30,0,[\\\"filteredProjects\\\"]],[30,0,[\\\"excludedProjects\\\"]],true,\\\"name\\\",[28,[37,4],[\\\"shared.reports.selectProjectsToExclude\\\"],null],true,[28,[37,22],[[28,[37,23],[[30,0,[\\\"excludedProjects\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[4]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"text-right mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"applyFilter\\\"]]],null],[12],[1,[28,[35,4],[\\\"common.Apply filters\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasFilters\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"removeFilter\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"common.Reset filters\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,24],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"po\\\",\\\"si\\\",\\\"project\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"select-input\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/forecast-breakdown.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/invoicing\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'entity.builda-price.reports.company.invoicing.Invoicing report')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.invoiceTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.invoiceTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"HWtJlXgw\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.reports.company.invoicing.Invoicing report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,10],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,15],[[28,[37,16],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,13],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,22],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,25],[[28,[37,25],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,13],[\\\"change\\\",[28,[37,15],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,26],[[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,26],[[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/invoicing.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/labour-hours\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.reports.company.labour-hours.Labour hours report'\n        )\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.entityLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <div>\n          <SelectInput\n            @value={{this.status}}\n            @action={{fn (mut this.status)}}\n            @class='form-control select-box'\n            as |si|\n          >\n            <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n            <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n            <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n            <si.option @value='CLOSED'>{{t 'common.Closed projects'}}</si.option>\n            <si.option @value='ARCHIVED'>{{t\n                'common.Archived projects'\n              }}</si.option>\n          </SelectInput>\n        </div>\n        {{#if this.showDownloadButton}}\n          <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n            <button type='button' class='btn btn-secondary text-white m-1'>\n              {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsPdf)}}\n                disabled={{this.downloadAsPdf.isRunning}}\n              >\n                {{#if this.downloadAsPdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as PDF'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAndSavePdf)}}\n                  disabled={{this.downloadAndSavePdf.isRunning}}\n                >\n                  {{#if this.downloadAndSavePdf.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save PDF'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv false)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as CSV'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAsCsv true)}}\n                  disabled={{this.downloadAsCsv.isRunning}}\n                >\n                  {{#if this.downloadAsCsv.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save CSV'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n            </po.Content>\n          </PopOver>\n        {{/if}}\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.entityLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"lK+yAhQ1\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.reports.company.labour-hours.Labour hours report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"entityLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,12],[[28,[37,13],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDownloadButton\\\"]],[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,2,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,20],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,17],[\\\"change\\\",[28,[37,18],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,22],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"entityLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"si\\\",\\\"po\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"div\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/labour-hours.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/notes\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.noteReport.last.value.name}}\n          </h2>\n        {{/if}}\n        {{#if this.showDownloadButton}}\n          <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n            <button type='button' class='btn btn-secondary text-white m-1'>\n              {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsPdf)}}\n                disabled={{this.downloadAsPdf.isRunning}}\n              >\n                {{#if this.downloadAsPdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as PDF'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAndSavePdf)}}\n                  disabled={{this.downloadAndSavePdf.isRunning}}\n                >\n                  {{#if this.downloadAndSavePdf.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save PDF'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv)}}\n              >\n                {{t 'shared.reports.Download as CSV'}}\n              </button>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n              >\n                {{t 'shared.reports.Download and save CSV'}}\n              </button>\n            </po.Content>\n          </PopOver>\n        {{/if}}\n      </header>\n  \n      <div class='d-flex flex-wrap gap-3 my-3'>\n        {{#if this.invoiceId}}\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on 'click' this.removeAllProjectFilters}}\n          >\n            <FaIcon @icon='times' />&nbsp;&nbsp;{{t 'common.Remove filter'}}\n          </button>\n        {{else}}\n          <div class='d-flex align-items-center flex-wrap gap-3'>\n            {{t 'common.Date range'}}:&nbsp;\n            <DateRangeSelector\n              @align='left'\n              @startDate={{this.dateRangeSelectorStartDate}}\n              @endDate={{this.dateRangeSelectorEndDate}}\n              @onApply={{this.setDateRange}}\n            />\n          </div>\n          <div class='d-flex align-items-center'>\n            <label>{{t 'common.Selected projects'}}:&nbsp;&nbsp;</label>\n  \n            <PowerSelectMultiple\n              @options={{this.model.getProjects.last.value}}\n              @selected={{this.selectedProjects}}\n              @searchEnabled={{true}}\n              @placeholder='–'\n              @searchField='name'\n              @onChange={{fn (mut this.selectedProjects)}}\n              as |project|\n            >\n              {{project.name}}\n            </PowerSelectMultiple>\n  \n            {{#if this.selectedProjects.length}}\n              &nbsp;&nbsp;\n              <button\n                class='text-button'\n                type='button'\n                {{on 'click' this.removeAllProjectFilters}}\n              >\n                <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n              </button>\n            {{/if}}\n          </div>\n          <div class='d-flex align-items-center'>\n            <label>{{t 'common.Selected workers'}}:&nbsp;&nbsp;</label>\n  \n            <PowerSelectMultiple\n              @options={{this.model.getWorkers.last.value}}\n              @selected={{this.selectedWorkers}}\n              @searchEnabled={{true}}\n              @placeholder='–'\n              @searchField='fullName'\n              @onChange={{fn (mut this.selectedWorkers)}}\n              as |worker|\n            >\n              {{worker.fullName}}\n            </PowerSelectMultiple>\n  \n            {{#if this.selectedWorkers.length}}\n              &nbsp;&nbsp;\n              <button\n                class='text-button'\n                type='button'\n                {{on 'click' this.removeAllWorkerFilters}}\n              >\n                <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n              </button>\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <div id={{this.pdfExportTargetId}} class='container-sm p-0 m-0'>\n        <ReportEngineElementContainer\n          @elements={{this.model.noteReport.last.value.elements}}\n          @hideClass={{this.pdfExportHideClass}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"Sb8Gm5ti\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"noteReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showDownloadButton\\\"]],[[[1,\\\"        \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-wrap gap-3 my-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceId\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllProjectFilters\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center flex-wrap gap-3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Date range\\\"],null]],[1,\\\": \\\\n          \\\"],[8,[39,13],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"left\\\",[30,0,[\\\"dateRangeSelectorStartDate\\\"]],[30,0,[\\\"dateRangeSelectorEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,8],[\\\"common.Selected projects\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,15],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@placeholder\\\",\\\"@searchField\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"getProjects\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedProjects\\\"]],true,\\\"–\\\",\\\"name\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"selectedProjects\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedProjects\\\",\\\"length\\\"]],[[[1,\\\"              \\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllProjectFilters\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,8],[\\\"common.Selected workers\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,15],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@placeholder\\\",\\\"@searchField\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"getWorkers\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedWorkers\\\"]],true,\\\"–\\\",\\\"fullName\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"selectedWorkers\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,3,[\\\"fullName\\\"]]],[1,\\\"\\\\n          \\\"]],[3]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedWorkers\\\",\\\"length\\\"]],[[[1,\\\"              \\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllWorkerFilters\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[14,0,\\\"container-sm p-0 m-0\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@elements\\\",\\\"@hideClass\\\"],[[30,0,[\\\"model\\\",\\\"noteReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]],[30,0,[\\\"pdfExportHideClass\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"project\\\",\\\"worker\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"date-range-selector\\\",\\\"label\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/notes.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/position\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'shared.reports.Position report')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.entityLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n  \n        <div>\n          <SelectInput\n            @value={{this.status}}\n            @action={{fn (mut this.status)}}\n            @class='form-control select-box'\n            as |si|\n          >\n            <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n            <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n            <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n            <si.option @value='CLOSED'>{{t 'common.Closed projects'}}</si.option>\n            <si.option @value='ARCHIVED'>{{t\n                'common.Archived projects'\n              }}</si.option>\n          </SelectInput>\n        </div>\n        {{#if this.showDownloadButton}}\n          <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n            <button type='button' class='btn btn-secondary text-white m-1'>\n              {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsPdf)}}\n                disabled={{this.downloadAsPdf.isRunning}}\n              >\n                {{#if this.downloadAsPdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as PDF'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAndSavePdf)}}\n                  disabled={{this.downloadAndSavePdf.isRunning}}\n                >\n                  {{#if this.downloadAndSavePdf.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save PDF'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (fn (mut this.csvExportOptions) true)}}\n              >\n                {{t 'shared.reports.Download as CSV'}}\n              </button>\n            </po.Content>\n          </PopOver>\n        {{/if}}\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.entityLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{t 'common.Export'}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            disabled={{this.isExportDisabled}}\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n          >\n            {{#if this.downloadAndSaveCSV.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"IFLa0rPE\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"shared.reports.Position report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"entityLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,12],[[28,[37,13],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDownloadButton\\\"]],[[[1,\\\"        \\\"],[8,[39,14],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,2,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,18],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[2]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,20],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,17],[\\\"change\\\",[28,[37,18],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,22],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"entityLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,23],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,26],[[28,[37,26],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,3,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,3,[\\\"value\\\"]]],[16,1,[30,4]],[24,4,\\\"checkbox\\\"],[4,[38,17],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,4]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,4]],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,27],[[28,[37,18],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,27],[[28,[37,18],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSaveCSV\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"div\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/position.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/profit-margins\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.reports.company.profit-margins.Profit margin report'\n        )\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.profitMarginsTable.last.value.name}}</h2>\n        {{/if}}\n        {{#if this.showDownloadButton}}\n          <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n            <button type='button' class='btn btn-secondary text-white m-1'>\n              {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n            </button>\n            <po.Content>\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsPdf)}}\n                disabled={{this.downloadAsPdf.isRunning}}\n              >\n                {{#if this.downloadAsPdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as PDF'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAndSavePdf)}}\n                  disabled={{this.downloadAndSavePdf.isRunning}}\n                >\n                  {{#if this.downloadAndSavePdf.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save PDF'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv false)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download as CSV'}}\n                {{/if}}\n              </button>\n              {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                <button\n                  type='button'\n                  class='dropdown-item text-nowrap fs-5'\n                  {{on 'click' (perform this.downloadAsCsv true)}}\n                  disabled={{this.downloadAsCsv.isRunning}}\n                >\n                  {{#if this.downloadAsCsv.isRunning}}\n                    {{t 'common.Downloading'}}&hellip;\n                  {{else}}\n                    {{t 'shared.reports.Download and save CSV'}}\n                  {{/if}}\n                </button>\n              {{/if}}\n            </po.Content>\n          </PopOver>\n        {{/if}}\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <PopOver\n          @disableBlur={{true}}\n          @direction='bottom-right'\n          @disabled={{this.isLoading}}\n          as |po|\n        >\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Filters'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content class='py-3 px-3' style='width: 250px;'>\n            <label class='align-items-center'>\n              <LabelPopup\n                class='mb-1'\n                @text={{t\n                  'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n                }}\n              >\n                {{t 'shared.reports.Report date'}}\n              </LabelPopup>\n              <input\n                class='form-control w-100'\n                placeholder={{t 'shared.reports.Pick a date'}}\n                type='date'\n                value={{this.controllerDate}}\n                {{on 'change' this.onDateChange}}\n              />\n            </label>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t 'common.Status'}}</label>\n              <SelectInput\n                @value={{this.controllerStatus}}\n                @action={{action 'filterStatus'}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n                <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n                <si.option @value='CLOSED'>{{t\n                    'common.Closed projects'\n                  }}</si.option>\n                <si.option @value='ARCHIVED'>{{t\n                    'common.Archived projects'\n                  }}</si.option>\n              </SelectInput>\n            </div>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t\n                  'shared.reports.Exclude projects'\n                }}</label>\n              <PowerSelectMultiple\n                @options={{this.filteredProjects}}\n                @selected={{this.excludedProjects}}\n                @searchEnabled={{true}}\n                @searchField='name'\n                @placeholder={{t 'shared.reports.selectProjectsToExclude'}}\n                @renderInPlace={{true}}\n                @onChange={{fn (mut this.excludedProjects)}}\n                as |project|\n              >\n                {{project.name}}\n              </PowerSelectMultiple>\n            </div>\n  \n            <div class='text-right mt-3'>\n              <button\n                class='btn btn-primary'\n                {{on 'click' this.applyFilter}}\n                type='button'\n              >{{t 'common.Apply filters'}}</button>\n            </div>\n          </po.Content>\n        </PopOver>\n        {{#if this.hasFilters}}\n          <button\n            class='text-button ms-2'\n            type='button'\n            {{on 'click' this.removeFilter}}\n          >\n            <FaIcon @icon='times' />&nbsp;{{t 'common.Reset filters'}}\n          </button>\n        {{/if}}\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.profitMarginsTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"7rjJJWzR\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.reports.company.profit-margins.Profit margin report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showDownloadButton\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@disableBlur\\\",\\\"@direction\\\",\\\"@disabled\\\"],[true,\\\"bottom-right\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Filters\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"py-3 px-3\\\"],[24,5,\\\"width: 250px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[14,0,\\\"align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,17],[[24,0,\\\"mb-1\\\"]],[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control w-100\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"controllerDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,13],[\\\"change\\\",[30,0,[\\\"onDateChange\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,19],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"controllerStatus\\\"]],[28,[37,20],[[30,0],\\\"filterStatus\\\"],null],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"shared.reports.Exclude projects\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,21],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@renderInPlace\\\",\\\"@onChange\\\"],[[30,0,[\\\"filteredProjects\\\"]],[30,0,[\\\"excludedProjects\\\"]],true,\\\"name\\\",[28,[37,4],[\\\"shared.reports.selectProjectsToExclude\\\"],null],true,[28,[37,22],[[28,[37,23],[[30,0,[\\\"excludedProjects\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[4]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"text-right mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"applyFilter\\\"]]],null],[12],[1,[28,[35,4],[\\\"common.Apply filters\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasFilters\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"removeFilter\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"common.Reset filters\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,24],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"po\\\",\\\"si\\\",\\\"project\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"select-input\\\",\\\"action\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/profit-margins.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/company/wip\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t\n          'entity.builda-price.reports.company.wip.Work in progress report'\n        )\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.wipReportTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n              disabled={{this.downloadAsCsv.isRunning}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <p>\n        {{t\n          'entity.builda-price.reports.company.wip.workInProgressReportExplanation'\n        }}\n      </p>\n      <div class='d-flex align-items-center my-3'>\n        <PopOver\n          @disableBlur={{true}}\n          @direction='bottom-right'\n          @disabled={{this.isLoading}}\n          as |po|\n        >\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Filters'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content class='py-3 px-3' style='width: 250px;'>\n            <div>\n              <label class='align-items-center mb-1'>\n                {{t 'entity.builda-price.reports.company.wip.Balance date'}}\n              </label>\n              <input\n                class='form-control w-100'\n                placeholder={{t 'shared.reports.Pick a date'}}\n                type='date'\n                value={{this.controllerDate}}\n                {{on 'change' this.onDateChange}}\n              />\n            </div>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t 'common.Status'}}</label>\n              <SelectInput\n                @value={{this.controllerStatus}}\n                @action={{this.filterStatus}}\n                @class='form-control select-box w-100'\n                as |si|\n              >\n                <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n                <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n                <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n                <si.option @value='CLOSED'>{{t\n                    'common.Closed projects'\n                  }}</si.option>\n                <si.option @value='ARCHIVED'>{{t\n                    'common.Archived projects'\n                  }}</si.option>\n              </SelectInput>\n            </div>\n  \n            <div class='mt-2'>\n              <label class='no-wrap mb-1'>{{t\n                  'shared.reports.Exclude projects'\n                }}</label>\n              <PowerSelectMultiple\n                @options={{this.filteredProjects}}\n                @selected={{this.excludedProjects}}\n                @searchEnabled={{true}}\n                @searchField='name'\n                @placeholder={{t 'shared.reports.selectProjectsToExclude'}}\n                @renderInPlace={{true}}\n                @onChange={{fn (mut this.excludedProjects)}}\n                as |project|\n              >\n                {{project.name}}\n              </PowerSelectMultiple>\n            </div>\n  \n            <div class='text-right mt-3'>\n              <button\n                class='btn btn-primary'\n                {{on 'click' this.applyFilter}}\n                type='button'\n              >{{t 'common.Apply filters'}}</button>\n            </div>\n          </po.Content>\n        </PopOver>\n        {{#if this.hasFilters}}\n          <button\n            class='text-button ms-2'\n            type='button'\n            {{on 'click' this.removeFilter}}\n          >\n            <FaIcon @icon='times' />&nbsp;{{t 'common.Reset filters'}}\n          </button>\n        {{/if}}\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.wipReportTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"1l9XZja5\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.builda-price.reports.company.wip.Work in progress report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"wipReportTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,10],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"entity.builda-price.reports.company.wip.workInProgressReportExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@disableBlur\\\",\\\"@direction\\\",\\\"@disabled\\\"],[true,\\\"bottom-right\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Filters\\\"],null]],[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],[[24,0,\\\"py-3 px-3\\\"],[24,5,\\\"width: 250px;\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"align-items-center mb-1\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.builda-price.reports.company.wip.Balance date\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control w-100\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"controllerDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,13],[\\\"change\\\",[30,0,[\\\"onDateChange\\\"]]],null],[12],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,19],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"controllerStatus\\\"]],[30,0,[\\\"filterStatus\\\"]],\\\"form-control select-box w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,4],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"]],[3]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"no-wrap mb-1\\\"],[12],[1,[28,[35,4],[\\\"shared.reports.Exclude projects\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@renderInPlace\\\",\\\"@onChange\\\"],[[30,0,[\\\"filteredProjects\\\"]],[30,0,[\\\"excludedProjects\\\"]],true,\\\"name\\\",[28,[37,4],[\\\"shared.reports.selectProjectsToExclude\\\"],null],true,[28,[37,21],[[28,[37,22],[[30,0,[\\\"excludedProjects\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[4]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"text-right mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"applyFilter\\\"]]],null],[12],[1,[28,[35,4],[\\\"common.Apply filters\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasFilters\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button ms-2\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[30,0,[\\\"removeFilter\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,4],[\\\"common.Reset filters\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,23],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"wipReportTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"po\\\",\\\"si\\\",\\\"project\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"input\\\",\\\"select-input\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/company/wip.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    {{outlet}}\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Projects')\n      }}\n    />\n    {{outlet}}\n  {{/if}}\n  */\n  {\n    \"id\": \"c3peSh+m\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,4],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,4],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,5],[\\\"common.Projects\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[46,[28,[37,3],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <main class='page__container-content gap-zendesk-support-widget'>\n    <article class='m-4 flex-grow-1'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center'>\n        {{#if (media 'isDesktop')}}\n          <h1 class='flex-grow-1 m-0 my-2'>\n            {{t 'common.Projects'}}\n          </h1>\n        {{/if}}\n        <div class='d-flex align-items-center'>\n          <span class='m-1'>\n            <SelectInput\n              @value={{this.status}}\n              @action={{fn (mut this.status)}}\n              @class='form-control select-box'\n              data-test-project-status-filter\n              as |si|\n            >\n              <si.option @value='OPEN'>{{t 'common.Open projects'}}</si.option>\n              <si.option @value='ALL'>{{t 'common.All projects'}}</si.option>\n              <si.option @value='HELD'>{{t 'common.Held projects'}}</si.option>\n              <si.option @value='CLOSED'>{{t\n                  'common.Closed projects'\n                }}</si.option>\n              <si.option @value='ARCHIVED'>{{t\n                  'common.Archived projects'\n                }}</si.option>\n            </SelectInput>\n          </span>\n  \n          <span class='m-1'>\n            <Input\n              class='form-control'\n              placeholder={{t 'common.Search for projects'}}\n              aria-label='Search for projects'\n              @type='text'\n              @value={{this.searchString}}\n              data-test-project-search\n            />\n          </span>\n        </div>\n      </header>\n  \n      {{#if this.model.projectsData.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <ReportEngineElement @element={{this.projectsData}} class='p-0' />\n        {{#if (includes-feature-flags 'entityHasSubcontractorPackage')}}\n          <div class='mt-5 d-flex justify-content-center align-items-center'>\n            <p style='margin: 0; font-size: 14px;'>{{t\n                'shared.branding.Proudly powered by'\n              }}</p>\n            <img\n              style='margin-left: 10px; width: 180px;'\n              src={{this.attentionSafetyLogoSrc}}\n            />\n          </div>\n        {{/if}}\n      {{/if}}\n    </article>\n  </main>\n  */\n  {\n    \"id\": \"m0a4mQhT\",\n    \"block\": \"[[[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 pb-2 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h1\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"common.Projects\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,9],[[24,\\\"data-test-project-status-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"status\\\"]],[28,[37,10],[[28,[37,11],[[30,0,[\\\"status\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"OPEN\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Open projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.All projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"HELD\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Held projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"CLOSED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Closed projects\\\"],null]]],[]]]]],[1,\\\"\\\\n            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ARCHIVED\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,6],[\\\"common.Archived projects\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,12],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search for projects\\\"],null]],[24,\\\"aria-label\\\",\\\"Search for projects\\\"],[24,\\\"data-test-project-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"projectsData\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,13],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[8,[39,14],[[24,0,\\\"p-0\\\"]],[[\\\"@element\\\"],[[30,0,[\\\"projectsData\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"entityHasSubcontractorPackage\\\"],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"mt-5 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,2],[14,5,\\\"margin: 0; font-size: 14px;\\\"],[12],[1,[28,[35,6],[\\\"shared.branding.Proudly powered by\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,\\\"img\\\"],[14,5,\\\"margin-left: 10px; width: 180px;\\\"],[15,\\\"src\\\",[30,0,[\\\"attentionSafetyLogoSrc\\\"]]],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"si\\\"],false,[\\\"main\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"media\\\",\\\"h1\\\",\\\"t\\\",\\\"div\\\",\\\"span\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"input\\\",\\\"loading-icon\\\",\\\"report-engine-element\\\",\\\"includes-feature-flags\\\",\\\"p\\\",\\\"img\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <ModuleNavigation::Reports::Project\n      @selectedProject={{this.model.project.last.value}}\n      @openProjects={{this.model.openProjects.last.value}}\n      @selectedProjectIsLoading={{this.model.project.isRunning}}\n      @openProjectsIsLoading={{this.model.openProjects.isRunning}}\n    />\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component\n        'module-navigation/reports/project'\n        model=this.model.project.last.value.id\n        selectedProject=this.model.project.last.value\n        openProjects=this.model.openProjects.last.value\n        selectedProjectIsLoading=this.model.project.isRunning\n        openProjectsIsLoading=this.model.openProjects.isRunning\n      }}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Project')}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <main class='page__container-content gap-zendesk-support-widget'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"doPK3UZ0\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@selectedProject\\\",\\\"@openProjects\\\",\\\"@selectedProjectIsLoading\\\",\\\"@openProjectsIsLoading\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/reports/project\\\",0,null,[[\\\"model\\\",\\\"selectedProject\\\",\\\"openProjects\\\",\\\"selectedProjectIsLoading\\\",\\\"openProjectsIsLoading\\\"],[[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\",\\\"id\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"openProjects\\\",\\\"isRunning\\\"]]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,7],[\\\"common.Project\\\"],null]]]]]],null],[1,\\\"\\\\n  \\\"],[8,[39,6],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"module-navigation/reports/project\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/access\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.report.last.value.name}}\n          </h2>\n        {{/if}}\n  \n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button\n            type='button'\n            class='btn btn-secondary text-white m-1'\n            data-test-access-report-download\n          >\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.report.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv)}}\n            >\n              {{t 'shared.report.Download as CSV'}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv true)}}\n            >\n              {{t 'shared.reports.Download and save CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex flex-wrap gap-3 my-3'>\n        <div class='d-flex align-items-center'>\n          {{t 'common.Date range'}}:&nbsp;\n          <DateRangeSelector\n            @align='left'\n            @startDate={{this.dateRangeSelectorStartDate}}\n            @endDate={{this.dateRangeSelectorEndDate}}\n            @onApply={{this.setDateRange}}\n          />\n        </div>\n        <div class='d-flex align-items-center ms-2'>\n          <label>\n            <Input\n              @type='checkbox'\n              class='form-check-input ml-1 mb-1 mr-1'\n              @checked={{this.filterByDate}}\n              {{on 'click' (fn (mut this.filterByDate) (not this.filterByDate))}}\n            />\n            {{t 'common.Filter by date'}}\n          </label>\n        </div>\n        <div class='d-flex align-items-center'>\n          <label>{{t 'common.Selected workers'}}:&nbsp;&nbsp;</label>\n          <PowerSelectMultiple\n            @options={{this.model.workers.last.value}}\n            @selected={{this.selectedWorkers}}\n            @searchEnabled={{true}}\n            @searchField='fullName'\n            @placeholder='–'\n            @onChange={{fn (mut this.selectedWorkers)}}\n            as |worker|\n          >\n            {{worker.fullName}}\n          </PowerSelectMultiple>\n  \n          {{#if this.selectedWorkers.length}}\n            &nbsp;&nbsp;\n            <button\n              class='text-button'\n              type='button'\n              {{on 'click' this.removeAllWorkerFilters}}\n            >\n              <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n            </button>\n          {{/if}}\n        </div>\n      </div>\n  \n      <div class='alert alert-secondary d-flex align-items-center' role='alert'>\n        <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n        {{t\n          'entity.builda-price.reports.projects.project.access.accessReportDisclaimer'\n        }}\n      </div>\n  \n      <div id={{this.pdfExportTargetId}} class='container-sm p-0 m-0'>\n        <ReportEngineElementContainer\n          @elements={{this.model.report.last.value.elements}}\n          @hideClass={{this.pdfExportHideClass}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"zw5o6yS+\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"report\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,\\\"data-test-access-report-download\\\",\\\"\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.report.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.report.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-wrap gap-3 my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"common.Date range\\\"],null]],[1,\\\": \\\\n        \\\"],[8,[39,13],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"left\\\",[30,0,[\\\"dateRangeSelectorStartDate\\\"]],[30,0,[\\\"dateRangeSelectorEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center ms-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],[[24,0,\\\"form-check-input ml-1 mb-1 mr-1\\\"],[4,[38,10],[\\\"click\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"filterByDate\\\"]]],null],[28,[37,18],[[30,0,[\\\"filterByDate\\\"]]],null]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"filterByDate\\\"]]]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Filter by date\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,8],[\\\"common.Selected workers\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,19],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"workers\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedWorkers\\\"]],true,\\\"fullName\\\",\\\"–\\\",[28,[37,16],[[28,[37,17],[[30,0,[\\\"selectedWorkers\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[30,2,[\\\"fullName\\\"]]],[1,\\\"\\\\n        \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedWorkers\\\",\\\"length\\\"]],[[[1,\\\"            \\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllWorkerFilters\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"alert alert-secondary d-flex align-items-center\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n      \\\"],[1,[28,[35,8],[\\\"entity.builda-price.reports.projects.project.access.accessReportDisclaimer\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[14,0,\\\"container-sm p-0 m-0\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,20],null,[[\\\"@elements\\\",\\\"@hideClass\\\"],[[30,0,[\\\"model\\\",\\\"report\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]],[30,0,[\\\"pdfExportHideClass\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"worker\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"date-range-selector\\\",\\\"label\\\",\\\"input\\\",\\\"fn\\\",\\\"mut\\\",\\\"not\\\",\\\"power-select-multiple\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/access.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/budget/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.budgetTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.budgetTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAndSaveCSV.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"T639uE3Z\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"budgetTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"budgetTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,10],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSaveCSV\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/budget/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/budget/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.budgetTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.budgetTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"9ialFKbd\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"budgetTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,19],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"budgetTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/budget/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/chargeup/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.chargeupReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.chargeupReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"iHNwd1iS\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"chargeupReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,14],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"chargeupReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/chargeup/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/chargeup/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.chargeupReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAndSavePdf)}}\n              disabled={{this.downloadAndSavePdf.isRunning}}\n            >\n              {{#if this.downloadAndSavePdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download and save PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.chargeupReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"B72Ahjhu\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"chargeupReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,17],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"chargeupReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/chargeup/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.projectLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <div class='alert alert-secondary mb-3' role='alert'>\n          <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n          <span>\n            {{t\n              'entity.builda-price.reports.projects.project.cost-to-complete.Values are GST exclusive'\n            }}\n          </span>\n        </div>\n        <ReportEngineElementContainer\n          @elements={{this.model.projectLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"1dx7/mEh\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"projectLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"alert alert-secondary mb-3\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,9],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"entity.builda-price.reports.projects.project.cost-to-complete.Values are GST exclusive\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,19],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"projectLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,10],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,24],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,24],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"span\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.taskLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAndSavePdf)}}\n              disabled={{this.downloadAndSavePdf.isRunning}}\n            >\n              {{#if this.downloadAndSavePdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download and save PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <div class='alert alert-secondary mb-3' role='alert'>\n          <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n          <span>{{t\n              'entity.builda-price.reports.projects.project.cost-to-complete.Values are GST exclusive'\n            }}</span>\n        </div>\n        <ReportEngineElementContainer\n          @elements={{this.model.taskLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"z99wAMt0\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"alert alert-secondary mb-3\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[12],[1,[28,[35,10],[\\\"entity.builda-price.reports.projects.project.cost-to-complete.Values are GST exclusive\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,20],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,21],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,24],[[28,[37,24],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,25],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,25],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"span\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/cost-to-complete/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/cost\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.costTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <div>\n          <SelectInput\n            @value={{this.costType}}\n            @action={{this.setCostType}}\n            @class='form-control select-box'\n            as |si|\n          >\n            <si.option @value='TIMESHEETS'>{{t 'common.Timesheets'}}</si.option>\n            <si.option @value='BILLS'>{{t 'common.Bills'}}</si.option>\n            <si.option @value='ALL'>{{t 'common.All'}}</si.option>\n          </SelectInput>\n        </div>\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex my-3'>\n        <div class='d-flex align-items-center'>\n          {{t 'common.Date range'}}:&nbsp;\n          <DateRangeSelector\n            @align='left'\n            @startDate={{this.dateRangeSelectorStartDate}}\n            @endDate={{this.dateRangeSelectorEndDate}}\n            @onApply={{this.setDateRange}}\n          />\n        </div>\n        <div class='d-flex align-items-center ms-2'>\n          <label>\n            <Input\n              @type='checkbox'\n              class='form-check-input ms-1 mb-1 me-1'\n              @checked={{this.filterByDate}}\n              {{on 'click' this.setFilterByDate}}\n            />\n            {{t 'common.Filter by date'}}\n          </label>\n        </div>\n        <div class='d-flex align-items-center'>\n          <label>&nbsp;&nbsp;&nbsp;&nbsp;{{t\n              'common.Selected tasks'\n            }}:&nbsp;&nbsp;</label>\n          <MultiTaskSelectorInput\n            @showTaskPopUp={{this.showTaskPopUp}}\n            @selectedProject={{this.model.project.last.value}}\n            @selectedTasks={{this.selectedTasks}}\n            @setSelectedTasks={{this.setSelectedTasks}}\n            @removeSelectedTask={{this.removeSelectedTask}}\n          />\n          {{#if this.selectedTasks.length}}\n            &nbsp;&nbsp;\n            <button\n              class='text-button'\n              type='button'\n              {{on 'click' this.removeAllTaskFilters}}\n            >\n              <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n            </button>\n          {{/if}}\n          {{#if this.showAllocationTypeFilter}}\n            <div class='ms-2'>\n              <FilterPill {{on 'click' (fn (mut this.allocationType) null)}}>\n                {{t 'common.Allocation type'}}:\n                {{this.allocationTypeLabel}}\n              </FilterPill>\n            </div>\n          {{/if}}\n        </div>\n      </div>\n  \n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.costTable.last.value.elements}}\n          @hideClass={{this.pdfExportHideClass}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"oKkJZMkU\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"costTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"costType\\\"]],[30,0,[\\\"setCostType\\\"]],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"TIMESHEETS\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,8],[\\\"common.Timesheets\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"BILLS\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,8],[\\\"common.Bills\\\"],null]]],[]]]]],[1,\\\"\\\\n          \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"ALL\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,8],[\\\"common.All\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\" \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,2,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"common.Date range\\\"],null]],[1,\\\": \\\\n        \\\"],[8,[39,16],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"left\\\",[30,0,[\\\"dateRangeSelectorStartDate\\\"]],[30,0,[\\\"dateRangeSelectorEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center ms-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,18],[[24,0,\\\"form-check-input ms-1 mb-1 me-1\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"setFilterByDate\\\"]]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"filterByDate\\\"]]]],null],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Filter by date\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"    \\\"],[1,[28,[35,8],[\\\"common.Selected tasks\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,19],null,[[\\\"@showTaskPopUp\\\",\\\"@selectedProject\\\",\\\"@selectedTasks\\\",\\\"@setSelectedTasks\\\",\\\"@removeSelectedTask\\\"],[[30,0,[\\\"showTaskPopUp\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedTasks\\\"]],[30,0,[\\\"setSelectedTasks\\\"]],[30,0,[\\\"removeSelectedTask\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedTasks\\\",\\\"length\\\"]],[[[1,\\\"            \\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"removeAllTaskFilters\\\"]]],null],[12],[1,\\\"\\\\n            \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showAllocationTypeFilter\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-2\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,20],[[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"allocationType\\\"]]],null],null],null]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"common.Allocation type\\\"],null]],[1,\\\":\\\\n              \\\"],[1,[30,0,[\\\"allocationTypeLabel\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@elements\\\",\\\"@hideClass\\\"],[[30,0,[\\\"model\\\",\\\"costTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]],[30,0,[\\\"pdfExportHideClass\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,22],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,25],[[28,[37,25],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,3,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,3,[\\\"value\\\"]]],[16,1,[30,4]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,4]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,4]],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,26],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,26],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"si\\\",\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"div\\\",\\\"select-input\\\",\\\"t\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"date-range-selector\\\",\\\"label\\\",\\\"input\\\",\\\"multi-task-selector-input\\\",\\\"filter-pill\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/cost.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.forecastTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <p>\n        {{t 'shared.reports.forecastBreakdownReportExplanation'}}\n      </p>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n  \n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.forecastTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"VwH6ERFp\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,8],[\\\"shared.reports.forecastBreakdownReportExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,17],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"p\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'shared.reports.Position report')\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.forecastTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <p>\n        {{t 'shared.reports.forecastBreakdownReportExplanation'}}\n      </p>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.forecastTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"r03pXb/C\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"shared.reports.Position report\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,12],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,4],[\\\"shared.reports.forecastBreakdownReportExplanation\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,19],null,[[\\\"@text\\\"],[[28,[37,4],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,4],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,15],[\\\"change\\\",[28,[37,16],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"forecastTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"p\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/forecast-breakdown/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/invoicing/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.invoiceTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.invoiceTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"eZPA8uMm\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,10],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/invoicing/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/invoicing/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.invoiceTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAndSavePdf)}}\n              disabled={{this.downloadAndSavePdf.isRunning}}\n            >\n              {{#if this.downloadAndSavePdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download and save PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.invoiceTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"6uuME8Qv\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,19],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"invoiceTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/invoicing/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/labour-hours/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.labourHoursTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n  \n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.labourHoursTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"BQKiDBly\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"labourHoursTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,14],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"labourHoursTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/labour-hours/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/labour-hours/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.taskLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.taskLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"dqgfREuC\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,17],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/labour-hours/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/notes\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.noteReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv true)}}\n            >\n              {{t 'shared.reports.Download and save CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex flex-wrap gap-3 my-3'>\n        {{#if this.invoiceId}}\n          <button\n            class='btn btn-primary'\n            type='button'\n            {{on 'click' this.removeAllTaskFilters}}\n          >\n            <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n          </button>\n        {{else}}\n          <div class='d-flex align-items-center flex-wrap gap-3'>\n            {{t 'common.Date range'}}:&nbsp;\n            <DateRangeSelector\n              @align='left'\n              @startDate={{this.dateRangeSelectorStartDate}}\n              @endDate={{this.dateRangeSelectorEndDate}}\n              @onApply={{this.setDateRange}}\n            />\n  \n            <div class='d-flex align-items-center'>\n              <label>\n                <Input\n                  @type='checkbox'\n                  class='form-check-input ml-1 mb-1 mr-1'\n                  @checked={{this.filterByDate}}\n                  {{on 'click' this.setFilterByDate}}\n                />\n                {{t 'common.Filter by date'}}\n              </label>\n            </div>\n          </div>\n          <div class='d-flex align-items-center'>\n            <label>{{t 'common.Selected tasks'}}:&nbsp;&nbsp;</label>\n            <MultiTaskSelectorInput\n              @showTaskPopUp={{this.showTaskPopUp}}\n              @selectedProject={{this.model.project.last.value}}\n              @selectedTasks={{this.selectedTasks}}\n              @setSelectedTasks={{this.setSelectedTasks}}\n              @removeSelectedTask={{this.removeSelectedTask}}\n            />\n            {{#if this.selectedTasks.length}}\n              &nbsp;&nbsp;\n              <button\n                class='text-button'\n                type='button'\n                {{on 'click' this.removeAllTaskFilters}}\n              >\n                <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n              </button>\n            {{/if}}\n          </div>\n          <div class='d-flex align-items-center'>\n            <label>{{t 'common.Selected workers'}}:&nbsp;&nbsp;</label>\n  \n            <PowerSelectMultiple\n              @options={{this.model.getWorkers.last.value}}\n              @selected={{this.selectedWorkers}}\n              @searchEnabled={{true}}\n              @searchField='fullName'\n              @placeholder='–'\n              @onChange={{fn (mut this.selectedWorkers)}}\n              as |worker|\n            >\n              {{worker.fullName}}\n            </PowerSelectMultiple>\n  \n            {{#if this.selectedWorkers.length}}\n              &nbsp;&nbsp;\n              <button\n                class='text-button'\n                type='button'\n                {{on 'click' this.removeAllWorkerFilters}}\n              >\n                <FaIcon @icon='times' />&nbsp;{{t 'common.Remove filter'}}\n              </button>\n            {{/if}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <div id={{this.pdfExportTargetId}} class='container-sm p-0 m-0'>\n        <ReportEngineElementContainer\n          @elements={{this.model.noteReport.last.value.elements}}\n          @hideClass={{this.pdfExportHideClass}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"PUCMiaoQ\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"noteReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex flex-wrap gap-3 my-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"invoiceId\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllTaskFilters\\\"]]],null],[12],[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-center flex-wrap gap-3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Date range\\\"],null]],[1,\\\": \\\\n          \\\"],[8,[39,13],null,[[\\\"@align\\\",\\\"@startDate\\\",\\\"@endDate\\\",\\\"@onApply\\\"],[\\\"left\\\",[30,0,[\\\"dateRangeSelectorStartDate\\\"]],[30,0,[\\\"dateRangeSelectorEndDate\\\"]],[30,0,[\\\"setDateRange\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[24,0,\\\"form-check-input ml-1 mb-1 mr-1\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"setFilterByDate\\\"]]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"filterByDate\\\"]]]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,8],[\\\"common.Filter by date\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,8],[\\\"common.Selected tasks\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@showTaskPopUp\\\",\\\"@selectedProject\\\",\\\"@selectedTasks\\\",\\\"@setSelectedTasks\\\",\\\"@removeSelectedTask\\\"],[[30,0,[\\\"showTaskPopUp\\\"]],[30,0,[\\\"model\\\",\\\"project\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedTasks\\\"]],[30,0,[\\\"setSelectedTasks\\\"]],[30,0,[\\\"removeSelectedTask\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"selectedTasks\\\",\\\"length\\\"]],[[[1,\\\"              \\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllTaskFilters\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,[28,[35,8],[\\\"common.Selected workers\\\"],null]],[1,\\\":  \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,17],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"model\\\",\\\"getWorkers\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"selectedWorkers\\\"]],true,\\\"fullName\\\",\\\"–\\\",[28,[37,18],[[28,[37,19],[[30,0,[\\\"selectedWorkers\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,2,[\\\"fullName\\\"]]],[1,\\\"\\\\n          \\\"]],[2]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedWorkers\\\",\\\"length\\\"]],[[[1,\\\"              \\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"removeAllWorkerFilters\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[1,\\\" \\\"],[1,[28,[35,8],[\\\"common.Remove filter\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[14,0,\\\"container-sm p-0 m-0\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,20],null,[[\\\"@elements\\\",\\\"@hideClass\\\"],[[30,0,[\\\"model\\\",\\\"noteReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]],[30,0,[\\\"pdfExportHideClass\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\",\\\"worker\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"date-range-selector\\\",\\\"label\\\",\\\"input\\\",\\\"multi-task-selector-input\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/notes.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/position/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.projectLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.projectLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"GPUf379U\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"projectLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"projectLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,10],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/position/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/position/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.taskLevelReport.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAndSavePdf)}}\n              disabled={{this.downloadAndSavePdf.isRunning}}\n            >\n              {{#if this.downloadAndSavePdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download and save PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.taskLevelReport.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"9wgBODa5\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,19],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"taskLevelReport\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/position/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/profit-margins/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.profitMarginsTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.profitMarginsTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"IiOOKi5/\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,14],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/profit-margins/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/profit-margins/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.profitMarginsTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsCsv false)}}\n            >\n              {{#if this.downloadAsCsv.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as CSV'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAsCsv true)}}\n                disabled={{this.downloadAsCsv.isRunning}}\n              >\n                {{#if this.downloadAsCsv.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save CSV'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.profitMarginsTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"QKbeiUDc\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,17],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"profitMarginsTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"po\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/profit-margins/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/quote/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4 flex-grow-1'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.quoteTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <button\n                type='button'\n                class='dropdown-item text-nowrap fs-5'\n                {{on 'click' (perform this.downloadAndSavePdf)}}\n                disabled={{this.downloadAndSavePdf.isRunning}}\n              >\n                {{#if this.downloadAndSavePdf.isRunning}}\n                  {{t 'common.Downloading'}}&hellip;\n                {{else}}\n                  {{t 'shared.reports.Download and save PDF'}}\n                {{/if}}\n              </button>\n            {{/if}}\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id={{this.pdfExportTargetId}}>\n        <ReportEngineElementContainer\n          @elements={{this.model.quoteTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"pzKVGpqu\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4 flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"quoteTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,6],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,8],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,12],[[28,[37,13],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,8],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],null,[[\\\"@text\\\"],[[28,[37,8],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,8],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,8],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,10],[\\\"change\\\",[28,[37,11],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[30,0,[\\\"pdfExportTargetId\\\"]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"quoteTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,19],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,8],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,10],[\\\"change\\\",[28,[37,12],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,8],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,8],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,23],[[28,[37,11],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,8],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"div\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/quote/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/reports/projects/project/quote/task/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-2'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <header\n        class='border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row'\n      >\n        {{#if (media 'isDesktop')}}\n          <h2 class='flex-grow-1 m-0 my-2'>\n            {{this.model.quoteTable.last.value.name}}\n          </h2>\n        {{/if}}\n        <PopOver @direction='bottom-left' @disabled={{this.isLoading}} as |po|>\n          <button type='button' class='btn btn-secondary text-white m-1'>\n            {{t 'common.Download'}}&nbsp;&nbsp;<FaIcon @icon='caret-down' />\n          </button>\n          <po.Content>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAsPdf)}}\n              disabled={{this.downloadAsPdf.isRunning}}\n            >\n              {{#if this.downloadAsPdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download as PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (perform this.downloadAndSavePdf)}}\n              disabled={{this.downloadAndSavePdf.isRunning}}\n            >\n              {{#if this.downloadAndSavePdf.isRunning}}\n                {{t 'common.Downloading'}}&hellip;\n              {{else}}\n                {{t 'shared.reports.Download and save PDF'}}\n              {{/if}}\n            </button>\n            <button\n              type='button'\n              class='dropdown-item text-nowrap fs-5'\n              {{on 'click' (fn (mut this.csvExportOptions) true)}}\n            >\n              {{t 'shared.reports.Download as CSV'}}\n            </button>\n          </po.Content>\n        </PopOver>\n      </header>\n  \n      <div class='d-flex align-items-center my-3'>\n        <label class='d-flex align-items-center m-1'>\n          <LabelPopup\n            @text={{t\n              'shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications'\n            }}\n          >\n            {{t 'shared.reports.Report date'}}\n          </LabelPopup>\n          <input\n            class='form-control ms-1'\n            style='width: auto;'\n            placeholder={{t 'shared.reports.Pick a date'}}\n            type='date'\n            value={{this.selectedDate}}\n            {{on 'change' (perform this.onDateChange)}}\n          />\n        </label>\n      </div>\n      <div id='{{this.pdfExportTargetId}}'>\n        <ReportEngineElementContainer\n          @elements={{this.model.quoteTable.last.value.elements}}\n        />\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.csvExportOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeCSVExport}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <p class='mt-0'>\n          {{t 'shared.reports.selectTheReportsThatNeedToBeExportedBelow'}}\n        </p>\n        {{#each this.csvOptions as |option index|}}\n          <div class='form-check mb-1'>\n            <input\n              type='checkbox'\n              class='form-check-input'\n              name={{option.name}}\n              checked={{option.value}}\n              id={{index}}\n              {{on 'change' (fn this.toggleCsvOption index)}}\n            />\n            <label for={{index}}>{{option.name}}</label>\n          </div>\n        {{/each}}\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeCSVExport}}\n        >{{t 'common.Cancel'}}</button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          disabled={{this.isExportDisabled}}\n          {{on\n            'click'\n            (pipe\n              (perform this.downloadAsCsv this.csvOptions false)\n              this.closeCSVExport\n            )\n          }}\n        >\n          {{#if this.downloadAsCsv.isRunning}}\n            {{t 'common.Exporting'}}&hellip;\n          {{else}}\n            {{t 'common.Export'}}\n          {{/if}}\n        </button>\n        {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n          <button\n            type='button'\n            class='btn btn-primary'\n            {{on\n              'click'\n              (pipe\n                (perform this.downloadAsCsv this.csvOptions true)\n                this.closeCSVExport\n              )\n            }}\n            disabled={{this.isExportDisabled}}\n          >\n            {{#if this.downloadAsCsv.isRunning}}\n              {{t 'common.Exporting'}}&hellip;\n            {{else}}\n              {{t 'shared.reports.Export and save CSV'}}\n            {{/if}}\n          </button>\n        {{/if}}\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"dlhkBIc9\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3 d-flex align-items-center flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"isDesktop\\\"],null],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"model\\\",\\\"quoteTable\\\",\\\"last\\\",\\\"value\\\",\\\"name\\\"]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[8,[39,8],null,[[\\\"@direction\\\",\\\"@disabled\\\"],[\\\"bottom-left\\\",[30,0,[\\\"isLoading\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-secondary text-white m-1\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"common.Download\\\"],null]],[1,\\\"  \\\"],[8,[39,11],null,[[\\\"@icon\\\"],[\\\"caret-down\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAsPdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsPdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[16,\\\"disabled\\\",[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"downloadAndSavePdf\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAndSavePdf\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"common.Downloading\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,10],[\\\"shared.reports.Download and save PDF\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,14],[[28,[37,15],[[30,0,[\\\"csvExportOptions\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,10],[\\\"shared.reports.Download as CSV\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center my-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"d-flex align-items-center m-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@text\\\"],[[28,[37,10],[\\\"shared.reports.whenGeneratingThisReportForAPastDateItReflectsTheDataAsItWasThenExceptForTimesheetOrBillModifications\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,10],[\\\"shared.reports.Report date\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control ms-1\\\"],[24,5,\\\"width: auto;\\\"],[16,\\\"placeholder\\\",[28,[37,10],[\\\"shared.reports.Pick a date\\\"],null]],[16,2,[30,0,[\\\"selectedDate\\\"]]],[24,4,\\\"date\\\"],[4,[38,12],[\\\"change\\\",[28,[37,13],[[30,0,[\\\"onDateChange\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[15,1,[29,[[30,0,[\\\"pdfExportTargetId\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[8,[39,19],null,[[\\\"@elements\\\"],[[30,0,[\\\"model\\\",\\\"quoteTable\\\",\\\"last\\\",\\\"value\\\",\\\"elements\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"csvExportOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,20],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeCSVExport\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,10],[\\\"shared.reports.selectTheReportsThatNeedToBeExportedBelow\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"csvOptions\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,0],[14,0,\\\"form-check mb-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-check-input\\\"],[16,3,[30,2,[\\\"name\\\"]]],[16,\\\"checked\\\",[30,2,[\\\"value\\\"]]],[16,1,[30,3]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"change\\\",[28,[37,14],[[30,0,[\\\"toggleCsvOption\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n          \\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[30,3]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"closeCSVExport\\\"]]],null],[12],[1,[28,[35,10],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],false],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,10],[\\\"common.Export\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isExportDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,24],[[28,[37,13],[[30,0,[\\\"downloadAsCsv\\\"]],[30,0,[\\\"csvOptions\\\"]],true],null],[30,0,[\\\"closeCSVExport\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadAsCsv\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"common.Exporting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,10],[\\\"shared.reports.Export and save CSV\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"po\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"article\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"header\\\",\\\"media\\\",\\\"h2\\\",\\\"pop-over\\\",\\\"button\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"on\\\",\\\"perform\\\",\\\"fn\\\",\\\"mut\\\",\\\"label\\\",\\\"label-popup\\\",\\\"input\\\",\\\"report-engine-element-container\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"each\\\",\\\"-track-array\\\",\\\"pipe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/reports/projects/project/quote/task/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/scheduling\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <main class='page__container-content overflow-hidden'>\n      {{outlet}}\n    </main>\n  \n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Scheduling'}}\n    />\n    <main class='page__container-content overflow-hidden h-100'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"QPVtVjaQ\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content overflow-hidden\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[8,[39,5],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Scheduling\\\"]]]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content overflow-hidden h-100\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,4],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/scheduling.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/builda-price/scheduling/timeline\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{! TODO implement when there are more than two pages }}\n  {{!-- {{#unless (media 'isDesktop')}}\n    {{to-elsewhere\n      named='mobile-title-bar-middle-content'\n      send=(component 'mobile-title-bar/page-title' title='Timeline')\n    }}\n  {{/unless}} --}}\n  <article class='d-flex flex-column h-100'>\n    <div class='px-4 pt-4'>\n      <header class='border-bottom mb-3 pb-2 d-flex align-items-center flex-wrap'>\n        {{#if (media 'isDesktop')}}\n          <h1 class='ms-0 me-3 my-2'>{{t 'common.Scheduling'}}</h1>\n        {{/if}}\n        <PowerSelectMultiple\n          @options={{this.model.projects.last.value}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @selected={{this.selectedProjects}}\n          @placeholder={{t 'common.Select a project'}}\n          @onChange={{this.onSetProjects}}\n          as |project|\n        >\n          {{project.name}}\n        </PowerSelectMultiple>\n      </header>\n    </div>\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else if this.model.projects.last.value.length}}\n      <div\n        class='d-flex align-items-center mx-4 mb-3 flex-wrap'\n        {{did-insert (perform this.initializeGanttChart)}}\n      >\n        {{#if this.ganttChartIsVisible}}\n          <div class='d-flex align-items-center flex-lg-grow-1 flex-wrap'>\n            <div class='m-1 d-flex' role='group'>\n              <div class='position-relative'>\n                {{#if this.undoCount}}\n                  <span\n                    class='position-absolute gantt-chart__badge top-0 start-100 translate-middle badge rounded-pill bg-danger'\n                  >\n                    {{this.undoCount}}\n                  </span>\n                {{/if}}\n  \n                <button\n                  type='button'\n                  title='Undo'\n                  class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center rounded-0 rounded-start'\n                  disabled={{or (not this.undoCount) this.projectIsSetting}}\n                  {{on 'click' this.onUndo}}\n                >\n                  <FaIcon @icon='undo' />\n                </button>\n              </div>\n  \n              <div class='position-relative'>\n                {{#if this.redoCount}}\n                  <span\n                    class='position-absolute gantt-chart__badge top-0 start-100 translate-middle badge rounded-pill bg-danger'\n                  >\n                    {{this.redoCount}}\n                  </span>\n                {{/if}}\n  \n                <button\n                  type='button'\n                  title='Redo'\n                  class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center rounded-0 rounded-end'\n                  style='margin-left: -1px;'\n                  disabled={{or (not this.redoCount) this.projectIsSetting}}\n                  {{on 'click' this.onRedo}}\n                >\n                  <FaIcon @icon='redo' />\n                </button>\n              </div>\n            </div>\n  \n            <div class='btn-group m-1' role='group'>\n              <button\n                type='button'\n                title='Expand all'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onCollapseAllClick}}\n              >\n                <FaIcon @icon='angle-double-down' />\n              </button>\n              <button\n                type='button'\n                title='Collapse all'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onExpandAllClick}}\n              >\n                <FaIcon @icon='angle-double-up' />\n              </button>\n            </div>\n  \n            <div class='btn-group m-1' role='group'>\n              <button\n                type='button'\n                title='Zoom in'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onZoomInClick}}\n              >\n                <FaIcon @icon='search-plus' />\n              </button>\n  \n              <button\n                type='button'\n                title='Zoom out'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onZoomOutClick}}\n              >\n                <FaIcon @icon='search-minus' />\n              </button>\n              <button\n                type='button'\n                title='Zoom to fit'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onZoomToFitClick}}\n              >\n                <FaIcon @icon='compress-arrows-alt' />\n              </button>\n  \n            </div>\n  \n            <div class='btn-group m-1' role='group'>\n              <button\n                type='button'\n                title='Previous time span'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onShiftPreviousClick}}\n              >\n                <FaIcon @icon='caret-left' />\n              </button>\n              <button\n                type='button'\n                title='Go to today'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onGoToTodayClick}}\n              >\n                <FaIcon @icon='calendar-day' />\n              </button>\n              <button\n                type='button'\n                title='Next time span'\n                class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' this.onShiftNextClick}}\n              >\n                <FaIcon @icon='caret-right' />\n              </button>\n            </div>\n  \n            {{#if this.showDownloadButton}}\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            {{/if}}\n  \n            <div class='btn-group m-1 position-relative' role='group'>\n              <PopOver @direction='bottom-right' {{on 'click' this.noop}} as |po|>\n                <button\n                  type='button'\n                  class='btn btn-outline-secondary fs-4 p-2 d-flex align-items-center'\n                  disabled={{this.projectIsSetting}}\n                >\n                  <FaIcon @icon='cog' />\n                </button>\n                <po.Content>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttCriticalPathsEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttCriticalPathsEnabled}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Critical paths'}}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttDependenciesEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttDependenciesEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Draw dependencies'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' (fn this.toggleSetting 'ganttFillTicksEnabled')}}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttFillTicksEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Stretch tasks to fill ticks'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttNonWorkingTimeEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttNonWorkingTimeEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Highlight non-working time'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttColumnLinesEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttColumnLinesEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Show column lines'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' (fn this.toggleSetting 'ganttRollupsEnabled')}}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttRollupsEnabled}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Show rollups'}}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttProgressLineEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttProgressLineEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Show progress lines'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttParentAreaEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttParentAreaEnabled}}\n                    />\n                    {{t\n                      'entity.builda-price.scheduling.timeline.Show parent area'\n                    }}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' (fn this.toggleSetting 'ganttLabelsEnabled')}}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttLabelsEnabled}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Task labels'}}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on\n                      'click'\n                      (fn this.toggleSetting 'ganttSubGridConfigsEnabled')\n                    }}\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttSubGridConfigsEnabled}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Hide schedule'}}\n                  </label>\n                  <label\n                    class='dropdown-item text-nowrap fs-5'\n                    {{on 'click' (fn this.toggleSetting 'ganttTableCollapsed')}}\n                    data-test-hide-table-setting\n                  >\n                    <input\n                      type='checkbox'\n                      style='pointer-events: none;'\n                      checked={{this.ganttTableCollapsed}}\n                    />\n                    {{t 'entity.builda-price.scheduling.timeline.Hide table'}}\n                  </label>\n                </po.Content>\n              </PopOver>\n            </div>\n          </div>\n  \n          <span class='m-1'>\n            <input\n              class='form-control'\n              placeholder={{t 'common.Search'}}\n              aria-label='Search'\n              value={{this.searchString}}\n              {{on 'input' this.onSearchChange}}\n            />\n          </span>\n  \n          {{#if (and this.canUseImportAndManage this.showImportTasksButton)}}\n            <span class='m-1'>\n              <button\n                type='button'\n                class='btn btn-primary'\n                disabled={{this.projectIsSetting}}\n                {{on 'click' (fn (mut this.taskImportModalVisible) true)}}\n              >\n                <FaIcon @icon='tasks' />&nbsp;{{t\n                  'entity.builda-price.scheduling.timeline.Import tasks'\n                }}\n              </button>\n            </span>\n          {{/if}}\n  \n          <span class='m-1'>\n            {{#if this.onSyncGantt.isRunning}}\n              <button type='button' class='btn btn-primary' disabled={{true}}>\n                <span class='spinner-border spinner-border-sm'></span>&nbsp;{{t\n                  'common.Saving'\n                }}&hellip;\n              </button>\n            {{else}}\n              <button\n                type='button'\n                disabled={{or\n                  (not this.undoCount)\n                  (or (not this.ganttChartIsVisible) this.projectIsSetting)\n                }}\n                class='btn btn-primary text-nowrap'\n                {{on 'click' (perform this.onSyncGantt)}}\n              >\n                <FaIcon @icon='save' />&nbsp;{{t 'common.Save'}}\n              </button>\n            {{/if}}\n          </span>\n        {{/if}}\n      </div>\n  \n      {{#if this.ganttChartIsVisible}}\n        <div id='gantt-chart-container' class='flex-fill'></div>\n      {{else}}\n        <div class='p-3 d-flex flex-column align-items-center'>\n          <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n          <p class='fs-4 mt-0 mb-3'>\n            <b>\n              {{t\n                'entity.builda-price.scheduling.timeline.Choose a project to view its timeline'\n              }}\n            </b>\n          </p>\n        </div>\n      {{/if}}\n    {{else}}\n      <div class='p-3 d-flex flex-column align-items-center'>\n        <FaIcon @icon='tasks' @size='2x' class='mt-0 mb-3' />\n        <p class='fs-4 mt-0 mb-3'>\n          <b>\n            {{t\n              'entity.builda-price.scheduling.timeline.There are no projects yet'\n            }}\n          </b>\n        </p>\n        {{#if (and (includes-feature-flags 'canManageProjects') this.showLinks)}}\n          <LinkTo @route='entity.builda-price.projects' class='btn btn-primary'>\n            {{t 'entity.builda-price.scheduling.timeline.Create a project'}}\n          </LinkTo>\n        {{/if}}\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.taskImportModalVisible}}\n    <TimelineTaskImportModal\n      @projects={{this.manageableProjects}}\n      @onClose={{this.onTaskImportModalClose}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"v/9ncthp\",\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\\\"],[41,[30,0,[\\\"showDownloadButton\\\"]],[[[1,\\\"            \\\"],[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\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"btn-group m-1 position-relative\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,17],[[4,[38,15],[\\\"click\\\",[30,0,[\\\"noop\\\"]]],null]],[[\\\"@direction\\\"],[\\\"bottom-right\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-outline-secondary fs-4 p-2 d-flex align-items-center\\\"],[15,\\\"disabled\\\",[30,0,[\\\"projectIsSetting\\\"]]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"cog\\\"]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[30,2,[\\\"Content\\\"]],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttCriticalPathsEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttCriticalPathsEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Critical paths\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttDependenciesEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttDependenciesEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Draw dependencies\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttFillTicksEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttFillTicksEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Stretch tasks to fill ticks\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttNonWorkingTimeEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttNonWorkingTimeEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Highlight non-working time\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttColumnLinesEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttColumnLinesEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Show column lines\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttRollupsEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttRollupsEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Show rollups\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttProgressLineEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttProgressLineEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Show progress lines\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttParentAreaEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttParentAreaEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Show parent area\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttLabelsEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttLabelsEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Task labels\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttSubGridConfigsEnabled\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttSubGridConfigsEnabled\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Hide schedule\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[11,\\\"label\\\"],[24,0,\\\"dropdown-item text-nowrap fs-5\\\"],[24,\\\"data-test-hide-table-setting\\\",\\\"\\\"],[4,[38,15],[\\\"click\\\",[28,[37,19],[[30,0,[\\\"toggleSetting\\\"]],\\\"ganttTableCollapsed\\\"],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"input\\\"],[14,5,\\\"pointer-events: none;\\\"],[15,\\\"checked\\\",[30,0,[\\\"ganttTableCollapsed\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Hide table\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"]],[]]]]],[1,\\\"\\\\n            \\\"]],[2]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,6],[\\\"common.Search\\\"],null]],[24,\\\"aria-label\\\",\\\"Search\\\"],[16,2,[30,0,[\\\"searchString\\\"]]],[4,[38,15],[\\\"input\\\",[30,0,[\\\"onSearchChange\\\"]]],null],[12],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,21],[[30,0,[\\\"canUseImportAndManage\\\"]],[30,0,[\\\"showImportTasksButton\\\"]]],null],[[[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,22],[[30,0,[\\\"taskImportModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"tasks\\\"]],null],[1,\\\" \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Import tasks\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onSyncGantt\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-primary\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\" \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"undoCount\\\"]]],null],[28,[37,13],[[28,[37,14],[[30,0,[\\\"ganttChartIsVisible\\\"]]],null],[30,0,[\\\"projectIsSetting\\\"]]],null]],null]],[24,0,\\\"btn btn-primary text-nowrap\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"onSyncGantt\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[8,[39,16],null,[[\\\"@icon\\\"],[\\\"save\\\"]],null],[1,\\\" \\\"],[1,[28,[35,6],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"ganttChartIsVisible\\\"]],[[[1,\\\"      \\\"],[10,0],[14,1,\\\"gantt-chart-container\\\"],[14,0,\\\"flex-fill\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"p-3 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,16],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Choose a project to view its timeline\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"p-3 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,16],[[24,0,\\\"mt-0 mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"tasks\\\",\\\"2x\\\"]],null],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"fs-4 mt-0 mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.There are no projects yet\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,21],[[28,[37,25],[\\\"canManageProjects\\\"],null],[30,0,[\\\"showLinks\\\"]]],null],[[[1,\\\"        \\\"],[8,[39,26],[[24,0,\\\"btn btn-primary\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.projects\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.builda-price.scheduling.timeline.Create a project\\\"],null]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"taskImportModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,27],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\\\",\\\"and\\\",\\\"mut\\\",\\\"p\\\",\\\"b\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"timeline-task-import-modal\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/builda-price/scheduling/timeline.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/disabled\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='m-4 text-center'>\n    <h1 class='h1'>Your company has been disabled.</h1>\n    <p class='p'>This is usually due to a subscription cancellation or a\n      non-payment.</p>\n  \n    {{#if\n      (and\n        (includes-feature-flags 'userIsEntityAdmin') this.hasChargebeeSubscription\n      )\n    }}\n      <p class='p'>\n        <button\n          class='button'\n          type='button'\n          {{on 'click' this.openChargebee}}\n        >Manage your subscription</button>\n      </p>\n    {{else}}\n      <p class='p'>\n        If you believe this to be in error, please\n        <a\n          class='link'\n          href='https://buildaprice.zendesk.com/hc/en-us/requests/new'\n          target='_blank'\n          rel='noopener noreferrer'\n        >click here</a>\n        to contact support.\n      </p>\n      <button class='button' type='button' {{on 'click' this.logout}}>Sign out</button>\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"xLSsrIsY\",\n    \"block\": \"[[[10,0],[14,0,\\\"m-4 text-center\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Your company has been disabled.\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,\\\"This is usually due to a subscription cancellation or a\\\\n    non-payment.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,4],[[28,[37,5],[\\\"userIsEntityAdmin\\\"],null],[30,0,[\\\"hasChargebeeSubscription\\\"]]],null],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"openChargebee\\\"]]],null],[12],[1,\\\"Manage your subscription\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,\\\"\\\\n      If you believe this to be in error, please\\\\n      \\\"],[10,3],[14,0,\\\"link\\\"],[14,6,\\\"https://buildaprice.zendesk.com/hc/en-us/requests/new\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"click here\\\"],[13],[1,\\\"\\\\n      to contact support.\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"logout\\\"]]],null],[12],[1,\\\"Sign out\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"div\\\",\\\"h1\\\",\\\"p\\\",\\\"if\\\",\\\"and\\\",\\\"includes-feature-flags\\\",\\\"button\\\",\\\"on\\\",\\\"a\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/disabled.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"LKh/yDVu\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <EmberWormhole @to='title-bar__content'>\n  \n      {{#if (includes-feature-flags 'isAPBCustomer')}}\n        <a\n          href='https://www.buildaprice.co.nz'\n          target='_blank'\n          rel='noopener noreferrer'\n          class='btn btn-light btn-sm'\n        >\n          <img width='20' src={{this.buildaPriceLogoSrc}} />&nbsp;&nbsp;Powered by\n          Builda Price\n        </a>\n      {{/if}}\n  \n      <div\n        class='flex-grow-1 d-flex align-items-center justify-content-end text-light'\n      >\n        {{! month picker }}\n        <div class='d-flex align-items-center me-3'>\n          <MonthPicker @period={{this.sessionData.period}} @dark={{true}} />\n        </div>\n  \n        {{! support button }}\n        <a\n          href='https://support.otbs.co.nz/hc/en-us/categories/202045998-Financial-Portal'\n          target='_blank'\n          class='d-flex align-items-center link-light title-bar__icon'\n          rel='noopener noreferrer'\n        >\n          <FaIcon @icon='question-circle' />\n        </a>\n      </div>\n    </EmberWormhole>\n  \n    <div class='page__container'>\n      <ModuleNavigation::Financials />\n  \n      <main class='page__container-content'>\n        {{outlet}}\n      </main>\n    </div>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-title-bar-avatar-content'\n      @send={{component\n        'mobile-title-bar/avatar/avatar-link'\n        label='Support'\n        link='https://support.otbs.co.nz/hc/en-us/categories/202045998-Financial-Portal'\n      }}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-right-content'\n      @send={{component\n        'month-picker'\n        period=this.sessionData.period\n        compact=true\n      }}\n    />\n  \n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  \n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'module-navigation/financials'}}\n    />\n    <main class='page__container-content'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"2evM6Xty\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@to\\\"],[\\\"title-bar__content\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,3],[\\\"isAPBCustomer\\\"],null],[[[1,\\\"      \\\"],[10,3],[14,6,\\\"https://www.buildaprice.co.nz\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,0,\\\"btn btn-light btn-sm\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"img\\\"],[14,\\\"width\\\",\\\"20\\\"],[15,\\\"src\\\",[30,0,[\\\"buildaPriceLogoSrc\\\"]]],[12],[13],[1,\\\"  Powered by\\\\n        Builda Price\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex-grow-1 d-flex align-items-center justify-content-end text-light\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center me-3\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],null,[[\\\"@period\\\",\\\"@dark\\\"],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],true]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\"      \\\"],[10,3],[14,6,\\\"https://support.otbs.co.nz/hc/en-us/categories/202045998-Financial-Portal\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"d-flex align-items-center link-light title-bar__icon\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,8],null,[[\\\"@icon\\\"],[\\\"question-circle\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,13],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-avatar-content\\\",[50,\\\"mobile-title-bar/avatar/avatar-link\\\",0,null,[[\\\"label\\\",\\\"link\\\"],[\\\"Support\\\",\\\"https://support.otbs.co.nz/hc/en-us/categories/202045998-Financial-Portal\\\"]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,13],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-right-content\\\",[50,\\\"month-picker\\\",0,null,[[\\\"period\\\",\\\"compact\\\"],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],true]]]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,13],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,13],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/financials\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"ember-wormhole\\\",\\\"includes-feature-flags\\\",\\\"a\\\",\\\"img\\\",\\\"div\\\",\\\"month-picker\\\",\\\"fa-icon\\\",\\\"module-navigation/financials\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/chart-of-accounts-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"Ts96xiYg\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/chart-of-accounts-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/chart-of-accounts\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Chart of accounts'}}\n    />\n  {{/unless}}\n  {{#unless this.isLoading}}\n    <StickyTop>\n      <div class='width--medium'>\n        <LoadingButton\n          @action={{action 'save'}}\n          @class='button float-end coa-editor__save-button'\n          @isLoading={{this.isSaving}}\n        >Save</LoadingButton>\n      </div>\n    </StickyTop>\n  {{/unless}}\n  \n  <div class='width--medium m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>Chart of accounts</h1>\n      </header>\n    {{/if}}\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='coa-editor block-module'>\n        <header class='block-module__header'>\n          <h2 class='h2'>Profit &amp; Loss</h2>\n        </header>\n  \n        <CoaEditor\n          @class='profit-and-loss-list'\n          @accounts={{this.model}}\n          @nestedAccounts={{this.nestedAccounts.profit-and-loss}}\n          @deleteAccount={{action 'deleteAccount'}}\n          @createChildAccount={{action 'createChildAccount'}}\n        />\n  \n        <footer class='block-module__footer'>\n          <button\n            class='button button--add float-end'\n            type='button'\n            {{action 'addLine' 'profit-and-loss'}}\n          >Add account</button>\n        </footer>\n      </div>\n  \n      <div class='coa-editor block-module'>\n        <header class='block-module__header'>\n          <h2 class='h2'>Balance Sheet</h2>\n        </header>\n  \n        <CoaEditor\n          @class='balance-sheet-list'\n          @accounts={{this.model}}\n          @nestedAccounts={{this.nestedAccounts.balance-sheet}}\n          @deleteAccount={{action 'deleteAccount'}}\n          @createChildAccount={{action 'createChildAccount'}}\n        />\n  \n        <footer class='block-module__footer'>\n          <button\n            class='button button--add float-end'\n            type='button'\n            {{action 'addLine' 'balance-sheet'}}\n          >Add account</button>\n        </footer>\n      </div>\n  \n      <div class='coa-editor block-module'>\n        <header class='block-module__header'>\n          <h2 class='h2'>Other Data</h2>\n        </header>\n  \n        <CoaEditor\n          @class='other-data-list'\n          @accounts={{this.model}}\n          @nestedAccounts={{this.nestedAccounts.other-data}}\n          @deleteAccount={{action 'deleteAccount'}}\n          @createChildAccount={{action 'createChildAccount'}}\n        />\n  \n        <footer class='block-module__footer'>\n          <button\n            class='button button--add float-end'\n            type='button'\n            {{action 'addLine' 'other-data'}}\n          >Add account</button>\n        </footer>\n      </div>\n  \n      {{#if this.isDeleting}}\n        <ModalDialog\n          @overlayClass='modal'\n          @translucentOverlay={{true}}\n          @containerClass='block-module'\n          @onClose={{action 'cancelDelete'}}\n        >\n          <p>Are you sure you want to delete this account? This action cannot be\n            undone and could break users’ reports.</p>\n          <footer>\n            <button\n              class='float-end button button--delete'\n              type='button'\n              {{action 'doDelete' this.account}}\n            >Delete</button>\n            <button\n              class='float-end button button--plain button--spaced'\n              type='button'\n              {{action 'cancelDelete'}}\n            >{{t 'common.Cancel'}}</button>\n          </footer>\n        </ModalDialog>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"G/0s0QOp\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Chart of accounts\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"isLoading\\\"]]],[[[1,\\\"  \\\"],[8,[39,4],null,null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"width--medium\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,6],null,[[\\\"@action\\\",\\\"@class\\\",\\\"@isLoading\\\"],[[28,[37,7],[[30,0],\\\"save\\\"],null],\\\"button float-end coa-editor__save-button\\\",[30,0,[\\\"isSaving\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"width--medium m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Chart of accounts\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,11],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"coa-editor block-module\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Profit & Loss\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@class\\\",\\\"@accounts\\\",\\\"@nestedAccounts\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[\\\"profit-and-loss-list\\\",[30,0,[\\\"model\\\"]],[30,0,[\\\"nestedAccounts\\\",\\\"profit-and-loss\\\"]],[28,[37,7],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,7],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add float-end\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"addLine\\\",\\\"profit-and-loss\\\"],null],[12],[1,\\\"Add account\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"coa-editor block-module\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Balance Sheet\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@class\\\",\\\"@accounts\\\",\\\"@nestedAccounts\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[\\\"balance-sheet-list\\\",[30,0,[\\\"model\\\"]],[30,0,[\\\"nestedAccounts\\\",\\\"balance-sheet\\\"]],[28,[37,7],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,7],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add float-end\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"addLine\\\",\\\"balance-sheet\\\"],null],[12],[1,\\\"Add account\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"coa-editor block-module\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Other Data\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@class\\\",\\\"@accounts\\\",\\\"@nestedAccounts\\\",\\\"@deleteAccount\\\",\\\"@createChildAccount\\\"],[\\\"other-data-list\\\",[30,0,[\\\"model\\\"]],[30,0,[\\\"nestedAccounts\\\",\\\"other-data\\\"]],[28,[37,7],[[30,0],\\\"deleteAccount\\\"],null],[28,[37,7],[[30,0],\\\"createChildAccount\\\"],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add float-end\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"addLine\\\",\\\"other-data\\\"],null],[12],[1,\\\"Add account\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeleting\\\"]],[[[1,\\\"      \\\"],[8,[39,16],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,7],[[30,0],\\\"cancelDelete\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"Are you sure you want to delete this account? This action cannot be\\\\n          undone and could break users’ reports.\\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"footer\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"doDelete\\\",[30,0,[\\\"account\\\"]]],null],[12],[1,\\\"Delete\\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,7],[[30,0],\\\"cancelDelete\\\"],null],[12],[1,[28,[35,18],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"sticky-top\\\",\\\"div\\\",\\\"loading-button\\\",\\\"action\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"loading-icon\\\",\\\"h2\\\",\\\"coa-editor\\\",\\\"footer\\\",\\\"button\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/chart-of-accounts.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/dashboard\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Dashboard'}}\n    />\n  {{/unless}}\n  <div class='m-4 dashboard'>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <Dashboard::ModuleRows\n        @modules={{this.model.modules}}\n        @data={{this.model.configData}}\n      />\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"EgT+IJcZ\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Dashboard\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"m-4 dashboard\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,6],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,7],null,[[\\\"@modules\\\",\\\"@data\\\"],[[30,0,[\\\"model\\\",\\\"modules\\\"]],[30,0,[\\\"model\\\",\\\"configData\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"dashboard/module-rows\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/general-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"l96IA54h\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/general-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/general\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Reporting period'}}\n    />\n  {{/unless}}\n  <div class='width--medium m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>Reporting period</h1>\n      </header>\n    {{/if}}\n    <form class='block-module'>\n      <div class='tabular-form-controls'>\n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            for='opening-balance-date-input'\n          >Opening Balance Date</label>\n  \n          <div class='tabular-form-controls__cell'>\n            <SelectInput\n              @value={{this.balanceDate}}\n              @action={{fn (mut this.balanceDate)}}\n              @id='opening-balance-date-input'\n              @class='select-box'\n              as |si|\n            >\n              {{#each this.months as |month|}}\n                <si.option @value={{month.value}}>{{month.name}}</si.option>\n              {{/each}}\n            </SelectInput>\n          </div>\n        </div>\n  \n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          >\n            {{this.firstClosedPeriodLabel}}\n            <InfoPopup @text={{this.firstClosedPeriodExplanation}} />\n          </label>\n  \n          <div class='tabular-form-controls__cell'>\n            <SelectInput\n              @value={{this.firstClosedMonth}}\n              @action={{fn (mut this.firstClosedMonth)}}\n              @disabled={{this.openAllPeriods}}\n              @class='select-box'\n              as |si|\n            >\n              {{#each this.months as |month|}}\n                <si.option @value={{month.value}}>{{month.name}}</si.option>\n              {{/each}}\n            </SelectInput>\n  \n            <SelectInput\n              @value={{this.firstClosedYear}}\n              @action={{fn (mut this.firstClosedYear)}}\n              @disabled={{this.openAllPeriods}}\n              @class='select-box'\n              as |si|\n            >\n              {{#each this.years as |year|}}\n                <si.option @value={{year}}>{{year}}</si.option>\n              {{/each}}\n            </SelectInput>\n  \n            <label>\n              <Input @type='checkbox' @checked={{this.openAllPeriods}} />\n              Open All Periods\n            </label>\n          </div>\n        </div>\n      </div>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @class='float-end button'\n          @isLoading={{this.isSaving}}\n          @action={{action 'save'}}\n          @buttonText='Save Entity'\n        />\n      </footer>\n    </form>\n  </div>\n  */\n  {\n    \"id\": \"FFRQhMl/\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Reporting period\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"width--medium m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Reporting period\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"form\\\"],[14,0,\\\"block-module\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"opening-balance-date-input\\\"],[12],[1,\\\"Opening Balance Date\\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@id\\\",\\\"@class\\\"],[[30,0,[\\\"balanceDate\\\"]],[28,[37,11],[[28,[37,12],[[30,0,[\\\"balanceDate\\\"]]],null]],null],\\\"opening-balance-date-input\\\",\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"months\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,2,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,2,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"firstClosedPeriodLabel\\\"]]],[1,\\\"\\\\n          \\\"],[8,[39,15],null,[[\\\"@text\\\"],[[30,0,[\\\"firstClosedPeriodExplanation\\\"]]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"tabular-form-controls__cell\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,10],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@disabled\\\",\\\"@class\\\"],[[30,0,[\\\"firstClosedMonth\\\"]],[28,[37,11],[[28,[37,12],[[30,0,[\\\"firstClosedMonth\\\"]]],null]],null],[30,0,[\\\"openAllPeriods\\\"]],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"months\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,4,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,4,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"          \\\"]],[3]]]]],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,10],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@disabled\\\",\\\"@class\\\"],[[30,0,[\\\"firstClosedYear\\\"]],[28,[37,11],[[28,[37,12],[[30,0,[\\\"firstClosedYear\\\"]]],null]],null],[30,0,[\\\"openAllPeriods\\\"]],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"years\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[8,[30,5,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,6]]],[[\\\"default\\\"],[[[[1,[30,6]]],[]]]]],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"          \\\"]],[5]]]]],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"openAllPeriods\\\"]]]],null],[1,\\\"\\\\n            Open All Periods\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button\\\",[30,0,[\\\"isSaving\\\"]],[28,[37,19],[[30,0],\\\"save\\\"],null],\\\"Save Entity\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"si\\\",\\\"month\\\",\\\"si\\\",\\\"month\\\",\\\"si\\\",\\\"year\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"div\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"form\\\",\\\"label\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"each\\\",\\\"-track-array\\\",\\\"info-popup\\\",\\\"input\\\",\\\"footer\\\",\\\"loading-button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/general.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/groups-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"iSm8OxT1\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/groups-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/groups\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Groups'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>Groups</h1>\n      </header>\n    {{/if}}\n    <header>\n      <ul class='tabs'>\n        <li class='tabs__tab'><LinkTo\n            @route='entity.financials.groups.membership'\n          >Membership</LinkTo></li>\n        <li class='tabs__tab'><LinkTo\n            @route='entity.financials.groups.access'\n          >Access</LinkTo></li>\n        <li class='tabs__tab'><LinkTo\n            @route='entity.financials.groups.order'\n          >Order</LinkTo></li>\n      </ul>\n    </header>\n  \n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{outlet}}\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"qxNjXtl1\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Groups\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Groups\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[10,\\\"header\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"ul\\\"],[14,0,\\\"tabs\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[8,[39,10],null,[[\\\"@route\\\"],[\\\"entity.financials.groups.membership\\\"]],[[\\\"default\\\"],[[[[1,\\\"Membership\\\"]],[]]]]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[8,[39,10],null,[[\\\"@route\\\"],[\\\"entity.financials.groups.access\\\"]],[[\\\"default\\\"],[[[[1,\\\"Access\\\"]],[]]]]],[13],[1,\\\"\\\\n      \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[8,[39,10],null,[[\\\"@route\\\"],[\\\"entity.financials.groups.order\\\"]],[[\\\"default\\\"],[[[[1,\\\"Order\\\"]],[]]]]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,11],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[46,[28,[37,12],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"ul\\\",\\\"li\\\",\\\"link-to\\\",\\\"loading-icon\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/groups.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/groups/membership-and-access\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (eq this.propertyToToggle 'isInGroup')}}\n    <p>You are currently editing\n      <strong>group membership</strong>. A check mark means a branch’s data will\n      be included in that group’s averages or totals.</p>\n  {{else}}\n    <p>You are currently editing\n      <strong>group access</strong>. A check mark means a branch has permission to\n      view that group’s averages or totals.</p>\n  {{/if}}\n  \n  {{#unless this.noEditGroups}}\n    {{! If the noEditGroups option is set, do not allow editing or saving }}\n    <p>\n      <LoadingButton\n        @action={{action 'save'}}\n        @class='button'\n        @isLoading={{this.isSaving}}\n      >Save</LoadingButton>\n      <button\n        class='button button--add'\n        type='button'\n        {{action 'addNewGroup'}}\n      >New group</button>\n    </p>\n  {{else}}\n    {{! This is to make sure that there is enough space where the buttons would have been }}\n    <br /><br />\n  {{/unless}}\n  \n  <table class='shrink groups-editor data-table'>\n    <thead>\n      <tr>\n        <th>Branches</th>\n        {{#each this.model.groups as |group|}}\n          <th><label><Input\n                @value={{group.name}}\n                placeholder='Unnamed'\n              /></label></th>\n        {{/each}}\n      </tr>\n    </thead>\n  \n    <tbody>\n      {{#each this.tableContent as |branch|}}\n        <tr>\n          <td>{{branch.name}}</td>\n  \n          {{! custom }}\n          {{#each branch.groupData as |groupData|}}\n            <td><label><Input\n                  @type='checkbox'\n                  @checked={{groupData.propertyToToggle}}\n                /></label></td>\n          {{/each}}\n        </tr>\n      {{/each}}\n    </tbody>\n  \n    <tfoot>\n      <tr class='subdued'>\n        <td>Consolidation group</td>\n        {{#each this.model.groups as |group|}}\n          <td><label><Input\n                @type='checkbox'\n                @checked={{group.consolidation}}\n              /></label></td>\n        {{/each}}\n      </tr>\n  \n      {{#unless this.noEditGroups}}\n        {{! Do not allow deleting if noEditGroups is true }}\n        <tr class='subdued'>\n          <td>Delete group…</td>\n  \n          {{#each this.model.groups as |group|}}\n            <td><button\n                class='text-button text-button--delete'\n                type='button'\n                {{action 'deleteGroup' group}}\n              ><FaIcon @icon='times' /></button></td>\n          {{/each}}\n        </tr>\n      {{/unless}}\n    </tfoot>\n  </table>\n  \n  {{#if this.groupBeingDeleted}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n      @onClose={{action 'cancelDeleteGroup'}}\n    >\n      <header class='block-module__header'>\n        <h2 class='h2'>Delete group</h2>\n      </header>\n  \n      <p>Are you sure you want to delete ‘{{this.groupBeingDeleted.name}}’?</p>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @action={{action 'confirmDeleteGroup' this.groupBeingDeleted}}\n          @isLoading={{this.isDeleting}}\n          @class='float-end button button--delete'\n        >\n          Delete\n        </LoadingButton>\n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action 'cancelDeleteGroup'}}\n        >{{t 'common.Cancel'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"dyX6nipJ\",\n    \"block\": \"[[[41,[28,[37,1],[[30,0,[\\\"propertyToToggle\\\"]],\\\"isInGroup\\\"],null],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"You are currently editing\\\\n    \\\"],[10,\\\"strong\\\"],[12],[1,\\\"group membership\\\"],[13],[1,\\\". A check mark means a branch’s data will\\\\n    be included in that group’s averages or totals.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"You are currently editing\\\\n    \\\"],[10,\\\"strong\\\"],[12],[1,\\\"group access\\\"],[13],[1,\\\". A check mark means a branch has permission to\\\\n    view that group’s averages or totals.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"noEditGroups\\\"]]],[[[1,\\\"  \\\"],[10,2],[12],[1,\\\"\\\\n    \\\"],[8,[39,5],null,[[\\\"@action\\\",\\\"@class\\\",\\\"@isLoading\\\"],[[28,[37,6],[[30,0],\\\"save\\\"],null],\\\"button\\\",[30,0,[\\\"isSaving\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--add\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"addNewGroup\\\"],null],[12],[1,\\\"New group\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[10,\\\"table\\\"],[14,0,\\\"shrink groups-editor data-table\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"th\\\"],[12],[1,\\\"Branches\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"model\\\",\\\"groups\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"th\\\"],[12],[10,\\\"label\\\"],[12],[8,[39,16],[[24,\\\"placeholder\\\",\\\"Unnamed\\\"]],[[\\\"@value\\\"],[[30,1,[\\\"name\\\"]]]],null],[13],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"tableContent\\\"]]],null]],null],null,[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,2,[\\\"groupData\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[10,\\\"label\\\"],[12],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,3,[\\\"propertyToToggle\\\"]]]],null],[13],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"tr\\\"],[14,0,\\\"subdued\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"td\\\"],[12],[1,\\\"Consolidation group\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"model\\\",\\\"groups\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"td\\\"],[12],[10,\\\"label\\\"],[12],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,4,[\\\"consolidation\\\"]]]],null],[13],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"noEditGroups\\\"]]],[[[1,\\\"      \\\"],[10,\\\"tr\\\"],[14,0,\\\"subdued\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Delete group…\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"model\\\",\\\"groups\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--delete\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"deleteGroup\\\",[30,5]],null],[12],[8,[39,20],null,[[\\\"@icon\\\"],[\\\"times\\\"]],null],[13],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"groupBeingDeleted\\\"]],[[[1,\\\"  \\\"],[8,[39,21],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,6],[[30,0],\\\"cancelDeleteGroup\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Delete group\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,2],[12],[1,\\\"Are you sure you want to delete ‘\\\"],[1,[30,0,[\\\"groupBeingDeleted\\\",\\\"name\\\"]]],[1,\\\"’?\\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,5],null,[[\\\"@action\\\",\\\"@isLoading\\\",\\\"@class\\\"],[[28,[37,6],[[30,0],\\\"confirmDeleteGroup\\\",[30,0,[\\\"groupBeingDeleted\\\"]]],null],[30,0,[\\\"isDeleting\\\"]],\\\"float-end button button--delete\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        Delete\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,6],[[30,0],\\\"cancelDeleteGroup\\\"],null],[12],[1,[28,[35,25],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"group\\\",\\\"branch\\\",\\\"groupData\\\",\\\"group\\\",\\\"group\\\"],false,[\\\"if\\\",\\\"eq\\\",\\\"p\\\",\\\"strong\\\",\\\"unless\\\",\\\"loading-button\\\",\\\"action\\\",\\\"button\\\",\\\"br\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"label\\\",\\\"input\\\",\\\"tbody\\\",\\\"td\\\",\\\"tfoot\\\",\\\"fa-icon\\\",\\\"modal-dialog\\\",\\\"header\\\",\\\"h2\\\",\\\"footer\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/groups/membership-and-access.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/groups/order\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <p>Here you can edit the order in which groups will appear.</p>\n  \n  {{#unless this.noEditGroups}}\n    {{! Do not allow saving if noEditGroups is true }}\n    <LoadingButton\n      @isLoading={{this.isSaving}}\n      @class='button'\n      @action={{action 'save'}}\n    >Save</LoadingButton>\n  {{/unless}}\n  \n  {{#if this.model.groups}}\n    <SortableList\n      @content={{this.model.groups}}\n      @property='name'\n      @class='block'\n    />\n  {{else}}\n    <p class='ptl-placeholder'>There are no groups yet. Go to the\n      <LinkTo @route='entity.financials.groups.access'>memebership</LinkTo>\n      tab to add some.</p>\n  {{/if}}\n  */\n  {\n    \"id\": \"SyvPE4tB\",\n    \"block\": \"[[[10,2],[12],[1,\\\"Here you can edit the order in which groups will appear.\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"noEditGroups\\\"]]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@isLoading\\\",\\\"@class\\\",\\\"@action\\\"],[[30,0,[\\\"isSaving\\\"]],\\\"button\\\",[28,[37,3],[[30,0],\\\"save\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groups\\\"]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@content\\\",\\\"@property\\\",\\\"@class\\\"],[[30,0,[\\\"model\\\",\\\"groups\\\"]],\\\"name\\\",\\\"block\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"There are no groups yet. Go to the\\\\n    \\\"],[8,[39,6],null,[[\\\"@route\\\"],[\\\"entity.financials.groups.access\\\"]],[[\\\"default\\\"],[[[[1,\\\"memebership\\\"]],[]]]]],[1,\\\"\\\\n    tab to add some.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"p\\\",\\\"unless\\\",\\\"loading-button\\\",\\\"action\\\",\\\"if\\\",\\\"sortable-list\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/groups/order.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Import'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <div class='width--large'>\n      {{#if (media 'isDesktop')}}\n        <header class='border-bottom mb-3'>\n          <h1 class='h1'>Import</h1>\n        </header>\n      {{/if}}\n  \n      <nav class='steps step-{{this.step}}'>\n        <ol>\n          <li><LinkTo @route='entity.financials.import.start' class='link'>Select\n              period</LinkTo></li>\n          <li><LinkTo\n              @route='entity.financials.import.data'\n              @model='profit-and-loss'\n              class='link'\n            >Profit &amp; Loss</LinkTo></li>\n          <li><LinkTo\n              @route='entity.financials.import.data'\n              @model='balance-sheet'\n              class='link'\n            >Balance Sheet</LinkTo></li>\n  \n          {{#if this.hasOtherData}}\n            <li><LinkTo\n                @route='entity.financials.import.data'\n                @model='other-data'\n                class='link'\n              >Other Data</LinkTo></li>\n          {{/if}}\n        </ol>\n      </nav>\n  \n      <div>\n        {{outlet}}\n      </div>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"X0WCS1Fk\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Import\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"width--large\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Import\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,\\\"nav\\\"],[15,0,[29,[\\\"steps step-\\\",[30,0,[\\\"step\\\"]]]]],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ol\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[12],[8,[39,12],[[24,0,\\\"link\\\"]],[[\\\"@route\\\"],[\\\"entity.financials.import.start\\\"]],[[\\\"default\\\"],[[[[1,\\\"Select\\\\n            period\\\"]],[]]]]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[12],[8,[39,12],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.import.data\\\",\\\"profit-and-loss\\\"]],[[\\\"default\\\"],[[[[1,\\\"Profit & Loss\\\"]],[]]]]],[13],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[12],[8,[39,12],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.import.data\\\",\\\"balance-sheet\\\"]],[[\\\"default\\\"],[[[[1,\\\"Balance Sheet\\\"]],[]]]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"hasOtherData\\\"]],[[[1,\\\"          \\\"],[10,\\\"li\\\"],[12],[8,[39,12],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.import.data\\\",\\\"other-data\\\"]],[[\\\"default\\\"],[[[[1,\\\"Other Data\\\"]],[]]]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,13],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"div\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"nav\\\",\\\"ol\\\",\\\"li\\\",\\\"link-to\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import/data\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <h2>\n    {{this.stepName}}\n    for\n    {{moment-format this.sessionData.period 'MMMM YYYY' 'YYYY-MM'}}\n  </h2>\n  \n  <div\n    class='financial-data-viewer limit-large\n      {{if this.isConfiguring \"configuring\"}}'\n  >\n    <FinancialDataTable\n      @accountList={{this.accountList}}\n      @selectedSystem={{this.selectedSystem}}\n      @remap={{action 'remap'}}\n      @invertMap={{action 'invertMap'}}\n      @toggleConfigPane={{action 'toggleConfigPane'}}\n    />\n  \n    <FinancialDataImporter\n      @period={{this.period}}\n      @systems={{this.visibleSystems}}\n      @selectedSystem={{this.selectedSystem}}\n      @canChangeSystem={{this.sessionData.entity.canChangeSystem}}\n      @maps={{this.unusedMaps}}\n      @isImporting={{this.isImporting}}\n      @importData={{this.model.import}}\n      @selectSystem={{action 'selectSystem'}}\n      @import={{action 'import'}}\n      @remap={{action 'remap'}}\n      @save={{action 'save'}}\n      @advance={{action 'advance'}}\n    />\n  </div>\n  */\n  {\n    \"id\": \"x/DCldKH\",\n    \"block\": \"[[[10,\\\"h2\\\"],[12],[1,\\\"\\\\n  \\\"],[1,[30,0,[\\\"stepName\\\"]]],[1,\\\"\\\\n  for\\\\n  \\\"],[1,[28,[35,1],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],\\\"MMMM YYYY\\\",\\\"YYYY-MM\\\"],null]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[15,0,[29,[\\\"financial-data-viewer limit-large\\\\n    \\\",[52,[30,0,[\\\"isConfiguring\\\"]],\\\"configuring\\\"]]]],[12],[1,\\\"\\\\n  \\\"],[8,[39,4],null,[[\\\"@accountList\\\",\\\"@selectedSystem\\\",\\\"@remap\\\",\\\"@invertMap\\\",\\\"@toggleConfigPane\\\"],[[30,0,[\\\"accountList\\\"]],[30,0,[\\\"selectedSystem\\\"]],[28,[37,5],[[30,0],\\\"remap\\\"],null],[28,[37,5],[[30,0],\\\"invertMap\\\"],null],[28,[37,5],[[30,0],\\\"toggleConfigPane\\\"],null]]],null],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,6],null,[[\\\"@period\\\",\\\"@systems\\\",\\\"@selectedSystem\\\",\\\"@canChangeSystem\\\",\\\"@maps\\\",\\\"@isImporting\\\",\\\"@importData\\\",\\\"@selectSystem\\\",\\\"@import\\\",\\\"@remap\\\",\\\"@save\\\",\\\"@advance\\\"],[[30,0,[\\\"period\\\"]],[30,0,[\\\"visibleSystems\\\"]],[30,0,[\\\"selectedSystem\\\"]],[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"canChangeSystem\\\"]],[30,0,[\\\"unusedMaps\\\"]],[30,0,[\\\"isImporting\\\"]],[30,0,[\\\"model\\\",\\\"import\\\"]],[28,[37,5],[[30,0],\\\"selectSystem\\\"],null],[28,[37,5],[[30,0],\\\"import\\\"],null],[28,[37,5],[[30,0],\\\"remap\\\"],null],[28,[37,5],[[30,0],\\\"save\\\"],null],[28,[37,5],[[30,0],\\\"advance\\\"],null]]],null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"h2\\\",\\\"moment-format\\\",\\\"div\\\",\\\"if\\\",\\\"financial-data-table\\\",\\\"action\\\",\\\"financial-data-importer\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import/data.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import/done\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='block-module block-module--centered'>\n    <h3 class='h3'>Your import is complete!</h3>\n    <p>Go to the\n      <LinkTo @route='entity.financials.reports.kpis.index' class='link'>KPIs page</LinkTo>\n      to view analysis of these numbers.</p>\n  </div>\n  */\n  {\n    \"id\": \"QAGyQujn\",\n    \"block\": \"[[[10,0],[14,0,\\\"block-module block-module--centered\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,\\\"Your import is complete!\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"Go to the\\\\n    \\\"],[8,[39,3],[[24,0,\\\"link\\\"]],[[\\\"@route\\\"],[\\\"entity.financials.reports.kpis.index\\\"]],[[\\\"default\\\"],[[[[1,\\\"KPIs page\\\"]],[]]]]],[1,\\\"\\\\n    to view analysis of these numbers.\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"h3\\\",\\\"p\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import/done.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"ItP0sLvo\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/import/start\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='block-module block-module--centered'>\n    <p>Get started by selecting a month to add or change.</p>\n    <p><MonthPicker @period={{this.sessionData.period}} /></p>\n    <button class='button' type='button' {{action 'advance'}}>Continue</button>\n  </div>\n  */\n  {\n    \"id\": \"HbUj3OTR\",\n    \"block\": \"[[[10,0],[14,0,\\\"block-module block-module--centered\\\"],[12],[1,\\\"\\\\n  \\\"],[10,2],[12],[1,\\\"Get started by selecting a month to add or change.\\\"],[13],[1,\\\"\\\\n  \\\"],[10,2],[12],[8,[39,2],null,[[\\\"@period\\\"],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]]]],null],[13],[1,\\\"\\\\n  \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"advance\\\"],null],[12],[1,\\\"Continue\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"p\\\",\\\"month-picker\\\",\\\"button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/import/start.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/kpis-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"21lgQEX0\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/kpis-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/kpis\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='KPIs'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if this.model.length}}<LoadingButton\n        @isLoading={{this.isSaving}}\n        @action={{action 'save'}}\n        @class='float-end button'\n      >Save</LoadingButton>{{/if}}\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>KPIs</h1>\n      </header>\n    {{/if}}\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      {{#if this.model.length}}\n        <section class='master-detail'>\n          <aside class='master-detail__master'>\n            <SortableList @content={{this.model}} as |kpi|>\n              <li data-id={{kpi.id}}><LinkTo\n                  @route='entity.financials.kpis.kpi'\n                  @model={{kpi.id}}\n                >{{kpi.name}}</LinkTo></li>\n            </SortableList>\n          </aside>\n  \n          <article class='master-detail__detail'>\n            {{outlet}}\n          </article>\n        </section>\n      {{else}}\n        <div class='error-page error-page--no-data'>\n          <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n          <h3 class='h3 error-page__title'>There are no KPIs set up.</h3>\n        </div>\n      {{/if}}\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"keyJndr0\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"KPIs\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[41,[30,0,[\\\"model\\\",\\\"length\\\"]],[[[8,[39,6],null,[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"isSaving\\\"]],[28,[37,7],[[30,0],\\\"save\\\"],null],\\\"float-end button\\\"]],[[\\\"default\\\"],[[[[1,\\\"Save\\\"]],[]]]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"KPIs\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,10],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[10,\\\"section\\\"],[14,0,\\\"master-detail\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"aside\\\"],[14,0,\\\"master-detail__master\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,13],null,[[\\\"@content\\\"],[[30,0,[\\\"model\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[10,\\\"li\\\"],[15,\\\"data-id\\\",[30,1,[\\\"id\\\"]]],[12],[8,[39,15],null,[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.kpis.kpi\\\",[30,1,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,[30,1,[\\\"name\\\"]]]],[]]]]],[13],[1,\\\"\\\\n          \\\"]],[1]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"article\\\"],[14,0,\\\"master-detail__detail\\\"],[12],[1,\\\"\\\\n          \\\"],[46,[28,[37,16],null,null],null,null,null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,19],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"There are no KPIs set up.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13]],[\\\"kpi\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"loading-button\\\",\\\"action\\\",\\\"header\\\",\\\"h1\\\",\\\"loading-icon\\\",\\\"section\\\",\\\"aside\\\",\\\"sortable-list\\\",\\\"li\\\",\\\"link-to\\\",\\\"-outlet\\\",\\\"div\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/kpis.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/kpis/kpi\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <header>\n    <h1 class='h1'>{{this.model.name}}</h1>\n  </header>\n  \n  <form>\n    <div class='tabular-form-controls'>\n      <div class='tabular-form-controls__row'>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          for='kpi-name'\n        >Name</label>\n        <Input\n          @value={{this.model.name}}\n          class='tabular-form-controls__cell text-input text-input--wide'\n          id='kpi-name'\n        />\n      </div>\n  \n      <div class='tabular-form-controls__row'>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          for='kpi-intro-line'\n        >Intro line</label>\n        <Input\n          @value={{this.model.introLine}}\n          class='tabular-form-controls__cell text-input text-input--wide'\n          id='kpi-intro-line'\n        />\n      </div>\n  \n      <div class='tabular-form-controls__row'>\n        <label\n          for='kpi-active'\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n        >Active</label>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--info'\n        >\n          <Input\n            @type='checkbox'\n            id='kpi-active'\n            @checked={{this.model.active}}\n          />\n          Active KPIs are available on the Dashboard and the KPIs page.</label>\n      </div>\n  \n      <div class='tabular-form-controls__row'>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          for='kpi-description'\n        >Description</label>\n        <Textarea\n          @value={{this.model.description}}\n          class='tabular-form-controls__cell text-input text-input--wide'\n          id='kpi-description'\n          rows='8'\n        />\n        <MarkdownToHtml\n          @class='tabular-form-controls__cell markdown-output'\n          @markdown={{this.model.description}}\n        />\n      </div>\n  \n      <div class='tabular-form-controls__row'>\n        <label\n          class='tabular-form-controls__cell tabular-form-controls__cell--label'\n          for='kpi-strategies'\n        >Strategies</label>\n        <Textarea\n          @value={{this.model.strategies}}\n          class='tabular-form-controls__cell text-input text-input--wide'\n          id='kpi-strategies'\n          rows='8'\n        />\n        <MarkdownToHtml\n          @class='tabular-form-controls__cell markdown-output'\n          @markdown={{this.model.strategies}}\n        />\n      </div>\n    </div>\n  </form>\n  */\n  {\n    \"id\": \"bWrUjMDY\",\n    \"block\": \"[[[10,\\\"header\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,[30,0,[\\\"model\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"tabular-form-controls\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"kpi-name\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,5],[[24,0,\\\"tabular-form-controls__cell text-input text-input--wide\\\"],[24,1,\\\"kpi-name\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"name\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"kpi-intro-line\\\"],[12],[1,\\\"Intro line\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,5],[[24,0,\\\"tabular-form-controls__cell text-input text-input--wide\\\"],[24,1,\\\"kpi-intro-line\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"introLine\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"kpi-active\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[12],[1,\\\"Active\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--info\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,5],[[24,1,\\\"kpi-active\\\"]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"model\\\",\\\"active\\\"]]]],null],[1,\\\"\\\\n        Active KPIs are available on the Dashboard and the KPIs page.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"kpi-description\\\"],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,6],[[24,0,\\\"tabular-form-controls__cell text-input text-input--wide\\\"],[24,1,\\\"kpi-description\\\"],[24,\\\"rows\\\",\\\"8\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"description\\\"]]]],null],[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@markdown\\\"],[\\\"tabular-form-controls__cell markdown-output\\\",[30,0,[\\\"model\\\",\\\"description\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"kpi-strategies\\\"],[12],[1,\\\"Strategies\\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,6],[[24,0,\\\"tabular-form-controls__cell text-input text-input--wide\\\"],[24,1,\\\"kpi-strategies\\\"],[24,\\\"rows\\\",\\\"8\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"model\\\",\\\"strategies\\\"]]]],null],[1,\\\"      \\\"],[8,[39,7],null,[[\\\"@class\\\",\\\"@markdown\\\"],[\\\"tabular-form-controls__cell markdown-output\\\",[30,0,[\\\"model\\\",\\\"strategies\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"header\\\",\\\"h1\\\",\\\"form\\\",\\\"div\\\",\\\"label\\\",\\\"input\\\",\\\"textarea\\\",\\\"markdown-to-html\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/kpis/kpi.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/planning/strategies\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Strategies'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <button\n          class='float-end button'\n          type='button'\n          {{action 'save'}}\n        >Save</button>\n        <h1 class='h1'>Strategies</h1>\n      </header>\n    {{/if}}\n  \n    <div class='width--large'>\n      <section>\n        <h2 class='h2'>Finances</h2>\n  \n        <StrategiesTable\n          @targets={{this.accountTargets}}\n          @metrics={{this.untargetedAccounts}}\n          @addTarget={{action 'addTarget'}}\n          @removeTarget={{action 'removeTarget'}}\n        />\n      </section>\n  \n      <section>\n        <h2 class='h2'>KPIs</h2>\n  \n        <StrategiesTable\n          @targets={{this.kpiTargets}}\n          @metrics={{this.untargetedKPIs}}\n          @includeBreakdowns={{true}}\n          @purgeEmptyBreakdownLines={{action 'purgeEmptyBreakdownLines'}}\n          @addTarget={{action 'addTarget'}}\n          @removeTarget={{action 'removeTarget'}}\n        />\n      </section>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"Nwzz8ozm\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Strategies\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"save\\\"],null],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Strategies\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Finances\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@targets\\\",\\\"@metrics\\\",\\\"@addTarget\\\",\\\"@removeTarget\\\"],[[30,0,[\\\"accountTargets\\\"]],[30,0,[\\\"untargetedAccounts\\\"]],[28,[37,8],[[30,0],\\\"addTarget\\\"],null],[28,[37,8],[[30,0],\\\"removeTarget\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"KPIs\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,13],null,[[\\\"@targets\\\",\\\"@metrics\\\",\\\"@includeBreakdowns\\\",\\\"@purgeEmptyBreakdownLines\\\",\\\"@addTarget\\\",\\\"@removeTarget\\\"],[[30,0,[\\\"kpiTargets\\\"]],[30,0,[\\\"untargetedKPIs\\\"]],true,[28,[37,8],[[30,0],\\\"purgeEmptyBreakdownLines\\\"],null],[28,[37,8],[[30,0],\\\"addTarget\\\"],null],[28,[37,8],[[30,0],\\\"removeTarget\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"div\\\",\\\"section\\\",\\\"h2\\\",\\\"strategies-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/planning/strategies.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"07pKVGDn\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/balance-sheet-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"tGMVp2Xv\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/balance-sheet-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/balance-sheet\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Balance sheet'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n        <div class='data-withheld-notice-container'>\n          {{#if this.model.groupsRedacted}}\n            <GroupsRedactedNotice />\n          {{/if}}\n  \n          {{#if this.model.ownDataWithheld}}\n            <DataWithheldNotice />\n          {{/if}}\n        </div>\n      {{/if}}\n  \n      {{#if (media 'isDesktop')}}\n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n        <h1 class='h1'>Balance Sheet</h1>\n      {{/if}}\n    </header>\n  \n    {{#if this.model.entities}}\n      <table class='data-table financials-table'>\n        <thead>\n          <tr>\n            <th>Balance Sheet</th>\n  \n            {{#each this.orderedEntities as |entity|}}\n              <th class='financials-table__heading'>\n                <a\n                  {{action 'shiftFarLeft' entity}}\n                  class='financials-table__heading-link'\n                  title='Click to put this column first'\n                >\n                  {{entity.name}}\n                  {{if\n                    (is-array entity.members)\n                    (if entity.consolidation 'total' 'avg')\n                  }}\n                  {{#if entity.includedEntities}}\n                    <br />\n                    ({{entity.includedEntities}}\n                    /\n                    {{entity.members.length}}\n                    entities)\n                  {{/if}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n        </thead>\n        <tbody>\n          <FinancialsTableSection\n            @canSeeBreakdown={{this.canSeeBreakdown}}\n            @toggleShowChildren={{action 'toggleShowChildren'}}\n            @toggleShowBreakdown={{action 'toggleShowBreakdown'}}\n            @accounts={{this.balanceSheet}}\n            @showMonth={{true}}\n            @showYTD={{false}}\n            @totalsRow='Net Equity'\n            @hasGroups={{true}}\n          />\n        </tbody>\n      </table>\n  \n      <p class='ptl-placeholder'>Click on any table column heading to put that\n        column first.</p>\n  \n      <p class='ptl-placeholder limit-small'>* Numbers in this row will be sum of\n        its subsections for a single branch but not necessarily for groups. More\n        information can be found on the\n        <a\n          href='http://support.otbs.co.nz/hc/en-us/sections/203085588'\n          class='link'\n        >support site.</a></p>\n  \n    {{else}}\n      <div class='error-page error-page--no-data'>\n        <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n        <h3 class='h3 error-page__title'>There are no groups accessible.</h3>\n        <p>If you believe you have received this message in error, please check\n          with your system administrator.</p>\n      </div>\n    {{/if}}\n  \n    {{#if this.showBreakdown}}\n      <MetricBreakdown\n        @selectedMetric={{this.selectedMetric}}\n        @selectedGroup={{this.selectedGroup}}\n        @periodType={{this.selectedPeriodType}}\n        @overlay-class='breakdown'\n        @clickOutsideToClose={{true}}\n        @translucentOverlay={{true}}\n        @close={{action 'toggleShowBreakdown'}}\n        @accountType='balances'\n      />\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"meYSuJbW\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Balance sheet\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Balance Sheet\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"entities\\\"]],[[[1,\\\"    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Balance Sheet\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n              \\\"],[11,3],[24,0,\\\"financials-table__heading-link\\\"],[24,\\\"title\\\",\\\"Click to put this column first\\\"],[4,[38,12],[[30,0],\\\"shiftFarLeft\\\",[30,1]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[1,[52,[28,[37,21],[[30,1,[\\\"members\\\"]]],null],[52,[30,1,[\\\"consolidation\\\"]],\\\"total\\\",\\\"avg\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"includedEntities\\\"]],[[[1,\\\"                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  (\\\"],[1,[30,1,[\\\"includedEntities\\\"]]],[1,\\\"\\\\n                  /\\\\n                  \\\"],[1,[30,1,[\\\"members\\\",\\\"length\\\"]]],[1,\\\"\\\\n                  entities)\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,24],null,[[\\\"@canSeeBreakdown\\\",\\\"@toggleShowChildren\\\",\\\"@toggleShowBreakdown\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@showYTD\\\",\\\"@totalsRow\\\",\\\"@hasGroups\\\"],[[30,0,[\\\"canSeeBreakdown\\\"]],[28,[37,12],[[30,0],\\\"toggleShowChildren\\\"],null],[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],[30,0,[\\\"balanceSheet\\\"]],true,false,\\\"Net Equity\\\",true]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"Click on any table column heading to put that\\\\n      column first.\\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,2],[14,0,\\\"ptl-placeholder limit-small\\\"],[12],[1,\\\"* Numbers in this row will be sum of\\\\n      its subsections for a single branch but not necessarily for groups. More\\\\n      information can be found on the\\\\n      \\\"],[10,3],[14,6,\\\"http://support.otbs.co.nz/hc/en-us/sections/203085588\\\"],[14,0,\\\"link\\\"],[12],[1,\\\"support site.\\\"],[13],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,27],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"There are no groups accessible.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n        with your system administrator.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBreakdown\\\"]],[[[1,\\\"    \\\"],[8,[39,29],null,[[\\\"@selectedMetric\\\",\\\"@selectedGroup\\\",\\\"@periodType\\\",\\\"@overlay-class\\\",\\\"@clickOutsideToClose\\\",\\\"@translucentOverlay\\\",\\\"@close\\\",\\\"@accountType\\\"],[[30,0,[\\\"selectedMetric\\\"]],[30,0,[\\\"selectedGroup\\\"]],[30,0,[\\\"selectedPeriodType\\\"]],\\\"breakdown\\\",true,true,[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],\\\"balances\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"entity\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"is-array\\\",\\\"br\\\",\\\"tbody\\\",\\\"financials-table-section\\\",\\\"p\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\",\\\"metric-breakdown\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/balance-sheet.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"m4XRRNIb\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='ITM custom P&L'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n        <div class='data-withheld-notice-container'>\n          {{#if this.model.groupsRedacted}}\n            <GroupsRedactedNotice />\n          {{/if}}\n  \n          {{#if this.model.ownDataWithheld}}\n            <DataWithheldNotice />\n          {{/if}}\n        </div>\n      {{/if}}\n  \n      {{#if (media 'isDesktop')}}\n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n      {{/if}}\n  \n      <nav class='tabs'>\n        <ul class='tabs__group'>\n          <li class='tabs__tab'>\n            <a\n              class='{{if this.profitAndLossTableVisible \"active\"}}'\n              {{action 'setProfitAndLossTableVisible' true}}\n            >\n              Profit And Loss\n            </a>\n          </li>\n          <li class='tabs__tab'>\n            <a\n              class='{{unless this.profitAndLossTableVisible \"active\"}}'\n              {{action 'setProfitAndLossTableVisible' false}}\n            >\n              Expenses Table\n            </a>\n          </li>\n        </ul>\n      </nav>\n    </header>\n  \n    <div class='itm-financials-controls'>\n      <div class='itm-financials-controls__section'>\n        <span class='itm-financials-controls__section__title'>\n          Stores:\n        </span>\n        <PowerSelectMultiple\n          @options={{this.allowedEntities}}\n          @selected={{this.selectedEntities}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder='Click to add a store…'\n          @onChange={{action 'selectEntity'}}\n          as |entity|\n        >\n          {{entity.name}}\n        </PowerSelectMultiple>\n  \n        <span class='itm-financials-controls__section__title--last'>\n          Groups:\n        </span>\n        <PowerSelectMultiple\n          @options={{this.allowedGroups}}\n          @selected={{this.selectedGroups}}\n          @searchEnabled={{true}}\n          @searchField='name'\n          @placeholder='Click to add a group…'\n          @onChange={{action 'selectGroup'}}\n          as |group|\n        >\n          {{group.name}}\n        </PowerSelectMultiple>\n      </div>\n  \n      <div class='itm-financials-controls__section'>\n        {{! Only show this option if the user is an entity admin }}\n        {{#if (includes-feature-flags 'userIsEntityAdmin')}}\n          <button\n            class='button itm-financials-controls__invite-button'\n            type='button'\n            {{action this.set 'userCreateModalVisible' true}}\n          >\n            Invite Someone to Compare\n          </button>\n        {{/if}}\n  \n        <OverlaidDropdown\n          @buttonText='Filter Table'\n          @title='Filters'\n          @align='right'\n          @buttonClasses='button button--secondary file-input-button'\n        >\n          <label\n            class='overlaid-dropdown__option'\n            {{action 'toggleMonthVisible'}}\n          >\n            {{#if this.monthVisible}}\n              <FaIcon @icon='check-square' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n            {{/if}}\n            Show Month values\n          </label>\n  \n          <label class='overlaid-dropdown__option' {{action 'toggleYtdVisible'}}>\n            {{#if this.ytdVisible}}\n              <FaIcon @icon='check-square' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n            {{/if}}\n            Show YTD values\n          </label>\n  \n          <label\n            class='overlaid-dropdown__option'\n            {{action this.toggleProperty 'lastYearVisible'}}\n          >\n            {{#if this.lastYearVisible}}\n              <FaIcon @icon='check-square' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n            {{/if}}\n            Show last year values\n          </label>\n  \n          <label\n            class='overlaid-dropdown__option'\n            {{action this.toggleProperty 'percentageVisible'}}\n          >\n            {{#if this.percentageVisible}}\n              <FaIcon @icon='check-square' @fixedWidth={{true}} />\n            {{else}}\n              <FaIcon @icon='square' @prefix='far' @fixedWidth={{true}} />\n            {{/if}}\n            Show % of values\n          </label>\n        </OverlaidDropdown>\n      </div>\n    </div>\n  \n    {{#if this.model}}\n      {{#if this.profitAndLossTableVisible}}\n        <table class='data-table financials-table'>\n          <thead>\n            <tr>\n              <th class='financials-table__heading' colspan='2'></th>\n              {{#if this.sessionData.entity.parent.id}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{this.sessionData.entity.name}}</span>\n                </th>\n              {{/if}}\n              {{#each this.selectedEntities as |entity|}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{entity.name}}</span>\n                </th>\n              {{/each}}\n              {{#each this.selectedGroups as |group|}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{group.name}}{{if group.consolidation ' total' ' avg'}}</span>\n                </th>\n              {{/each}}\n            </tr>\n            <tr>\n              <th class='financials-table__heading' colspan='2'></th>\n              {{! TODO don't depend on netProfit for array length }}\n              {{#each this.model.netProfit.month}}\n                {{#if this.monthVisible}}\n                  <th\n                    class='financials-table__heading'\n                    colspan='{{if this.lastYearVisible 2 1}}'\n                  >\n                    <span class='financials-table__heading--center'>Current Month</span>\n                  </th>\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <th\n                    class='financials-table__heading'\n                    colspan='{{if this.lastYearVisible 2 1}}'\n                  >\n                    <span class='financials-table__heading--center'>Year To Date</span>\n                  </th>\n                {{/if}}\n              {{/each}}\n            </tr>\n            <tr class='data-table__subheading-row'>\n              <th class='financials-table__heading' colspan='2'>Description</th>\n              {{! TODO don't depend on netProfit for array length }}\n              {{#each this.model.netProfit.month}}\n                {{#if this.monthVisible}}\n                  <th class='financials-table__heading'>\n                    <div class='text-right'>\n                      Actual\n                      {{#if this.percentageVisible}}\n                        <span class='float-end financials-table__percentage'>% of\n                          Sales</span>\n                      {{/if}}\n                    </div>\n                  </th>\n                  {{#if this.lastYearVisible}}\n                    <th class='financials-table__heading'>\n                      <div class='text-right'>\n                        Last Year\n                        {{#if this.percentageVisible}}\n                          <span class='float-end financials-table__percentage'>%\n                            of Sales</span>\n                        {{/if}}\n                      </div>\n                    </th>\n                  {{/if}}\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <th class='financials-table__heading'>\n                    <div class='text-right'>\n                      Actual\n                      {{#if this.percentageVisible}}\n                        <span class='float-end financials-table__percentage'>% of\n                          Sales</span>\n                      {{/if}}\n                    </div>\n                  </th>\n                  {{#if this.lastYearVisible}}\n                    <th class='financials-table__heading'>\n                      <div class='text-right'>\n                        Last Year\n                        {{#if this.percentageVisible}}\n                          <span class='float-end financials-table__percentage'>%\n                            of Sales</span>\n                        {{/if}}\n                      </div>\n                    </th>\n                  {{/if}}\n                {{/if}}\n              {{/each}}\n            </tr>\n          </thead>\n  \n          <tbody>\n            {{! Cost Of Sales }}\n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @expandableTotalRow={{true}}\n              @depth={{0}}\n              @data={{this.model.sales}}\n            />\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @data={{this.model.costOfSales}}\n            />\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.systemMargin}}\n              @title='System Margin'\n            />\n  \n            {{#each this.model.stockVariation.children as |child|}}\n              <ItmFinancialTableSection\n                @childrenHidden={{true}}\n                @lastYearVisible={{this.lastYearVisible}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n              />\n            {{/each}}\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.achievedMargin}}\n              @title='Achieved Margin'\n            />\n  \n            {{! Loyalties & Freight }}\n            {{#each this.model.loyaltiesAndFreight.children as |child|}}\n              <ItmFinancialTableSection\n                @lastYearVisible={{this.lastYearVisible}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n              />\n            {{/each}}\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.grossMargin}}\n              @title='Gross Margin'\n            />\n  \n            {{! Expenses }}\n            {{#each this.model.expenses.children as |child|}}\n              <ItmFinancialTableSection\n                @childrenHidden={{true}}\n                @lastYearVisible={{this.lastYearVisible}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n              />\n            {{/each}}\n  \n            <ItmFinancialTableSection\n              @childrenHidden={{true}}\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @data={{this.model.expenses}}\n              @highlighted={{true}}\n            />\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.ebitda}}\n              @title='EBITDA'\n            />\n  \n            {{! Sundry }}\n            {{#each this.model.otherIncomeAndDepreciation.children as |child|}}\n              <ItmFinancialTableSection\n                @lastYearVisible={{this.lastYearVisible}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n              />\n            {{/each}}\n  \n            <ItmFinancialTableSection\n              @lastYearVisible={{this.lastYearVisible}}\n              @percentageVisible={{this.percentageVisible}}\n              @ytdVisible={{this.ytdVisible}}\n              @monthVisible={{this.monthVisible}}\n              @depth={{0}}\n              @splitLines={{true}}\n              @data={{this.model.netProfit}}\n              @title='Net Profit'\n            />\n  \n          </tbody>\n        </table>\n      {{else}}\n        <table class='data-table financials-table'>\n          <thead>\n            <tr>\n              <th class='financials-table__heading' colspan='2'></th>\n              {{#if this.sessionData.entity.parent.id}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{this.sessionData.entity.name}}</span>\n                </th>\n              {{/if}}\n              {{#each this.selectedEntities as |entity|}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{entity.name}}</span>\n                </th>\n              {{/each}}\n              {{#each this.selectedGroups as |group|}}\n                <th\n                  class='financials-table__heading'\n                  colspan={{this.financialsTableColspan}}\n                >\n                  <span\n                    class='financials-table__heading--center'\n                  >{{group.name}}{{if group.consolidation ' total' ' avg'}}</span>\n                </th>\n              {{/each}}\n            </tr>\n            <tr>\n              <th class='financials-table__heading' colspan='2'></th>\n              {{! template-lint-disable no-unused-block-params }}\n              {{#each this.model.netProfit.month as |unused index|}}\n                {{#if this.monthVisible}}\n                  <th\n                    class='financials-table__heading'\n                    colspan='{{if this.lastYearVisible 2 1}}'\n                  >\n                    <span class='financials-table__heading--center'>Current Month</span>\n                  </th>\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <th\n                    class='financials-table__heading'\n                    colspan='{{if this.lastYearVisible 2 1}}'\n                  >\n                    <span class='financials-table__heading--center'>Year To Date</span>\n                  </th>\n                {{/if}}\n              {{/each}}\n            </tr>\n            <tr class='data-table__subheading-row'>\n              <th class='financials-table__heading' colspan='2'>Description</th>\n              {{! template-lint-disable no-unused-block-params }}\n              {{#each this.model.netProfit.month as |unused index|}}\n                {{#if this.monthVisible}}\n                  <th class='financials-table__heading'>\n                    <div class='text-right'>\n                      Actual\n                      {{#if this.percentageVisible}}\n                        <span class='float-end financials-table__percentage'>% of\n                          Sales</span>\n                      {{/if}}\n                    </div>\n                  </th>\n                  {{#if this.lastYearVisible}}\n                    <th class='financials-table__heading'>\n                      <div class='text-right'>\n                        Last Year\n                        {{#if this.percentageVisible}}\n                          <span class='float-end financials-table__percentage'>%\n                            of Sales</span>\n                        {{/if}}\n                      </div>\n                    </th>\n                  {{/if}}\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <th class='financials-table__heading'>\n                    <div class='text-right'>\n                      Actual\n                      {{#if this.percentageVisible}}\n                        <span class='float-end financials-table__percentage'>% of\n                          Sales</span>\n                      {{/if}}\n                    </div>\n                  </th>\n                  {{#if this.lastYearVisible}}\n                    <th class='financials-table__heading'>\n                      <div class='text-right'>\n                        Last Year\n                        {{#if this.percentageVisible}}\n                          <span class='float-end financials-table__percentage'>%\n                            of Sales</span>\n                        {{/if}}\n                      </div>\n                    </th>\n                  {{/if}}\n                {{/if}}\n              {{/each}}\n            </tr>\n          </thead>\n  \n          <tbody>\n            {{! Expenses }}\n            {{#each this.model.expenses.children as |child|}}\n              <ItmFinancialTableSection\n                @lastYearVisible={{this.lastYearVisible}}\n                @showChildren={{true}}\n                @percentageVisible={{this.percentageVisible}}\n                @ytdVisible={{this.ytdVisible}}\n                @monthVisible={{this.monthVisible}}\n                @depth={{0}}\n                @data={{child}}\n                @parentScoped={{false}}\n              />\n            {{/each}}\n  \n            <tr class='data-table__total-row'>\n              <td colspan='2'>Total Expenses</td>\n              {{! TODO don't depend on netProfit for array length }}\n              {{#each this.model.netProfit.month as |unused index|}}\n                {{#if this.monthVisible}}\n                  <td\n                    class='text-right\n                      {{if\n                        (lt this.model.expenses.month 0)\n                        \"financials-table__negative-value\"\n                      }}'\n                  >\n                    {{number-format\n                      (object-at this.model.expenses.month index)\n                      maximumFractionDigits=0\n                      dashZero=true\n                    }}\n                  </td>\n                  {{#if this.lastYearVisible}}\n                    <td\n                      class='text-right\n                        {{if\n                          (lt this.model.expenses.monthPrev 0)\n                          \"financials-table__negative-value\"\n                        }}'\n                    >\n                      {{number-format\n                        (object-at this.model.expenses.monthPrev index)\n                        maximumFractionDigits=0\n                        dashZero=true\n                      }}\n                    </td>\n                  {{/if}}\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  <td\n                    class='text-right\n                      {{if\n                        (lt this.model.expenses.ytd 0)\n                        \"financials-table__negative-value\"\n                      }}'\n                  >\n                    {{number-format\n                      (object-at this.model.expenses.ytd index)\n                      maximumFractionDigits=0\n                      dashZero=true\n                    }}\n                  </td>\n                  {{#if this.lastYearVisible}}\n                    <td\n                      class='text-right\n                        {{if\n                          (lt this.model.expenses.ytdPrev 0)\n                          \"financials-table__negative-value\"\n                        }}'\n                    >\n                      {{number-format\n                        (object-at this.model.expenses.ytdPrev index)\n                        maximumFractionDigits=0\n                        dashZero=true\n                      }}\n                    </td>\n                  {{/if}}\n                {{/if}}\n              {{/each}}\n            </tr>\n          </tbody>\n        </table>\n      {{/if}}\n    {{else}}\n      <div class='text-center error no-data'>\n        <h2><FaIcon @icon='info-circle' /></h2>\n        <h3>Pick a store or group to see report.</h3>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.userCreateModalVisible}}\n    <ModalDialog\n      @overlayClass='modal'\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n      @onClose={{action this.toggleProperty 'userCreateModalVisible'}}\n    >\n      <header class='block-module__header'>\n        <h2 class='h2'>Create User</h2>\n      </header>\n  \n      <div class='tabular-form-controls'>\n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            for='user-first-name'\n          >First name</label>\n          <Input\n            class='tabular-form-controls__cell text-input'\n            @value={{this.newUserData.firstName}}\n            id='user-first-name'\n          />\n        </div>\n  \n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            for='user-last-name'\n          >Last name</label>\n          <Input\n            class='tabular-form-controls__cell text-input'\n            @value={{this.newUserData.lastName}}\n            id='user-last-name'\n          />\n        </div>\n  \n        <div class='tabular-form-controls__row'>\n          <label\n            class='tabular-form-controls__cell tabular-form-controls__cell--label'\n            for='user-email'\n          >Email</label>\n          <Input\n            class='tabular-form-controls__cell text-input'\n            @value={{this.newUserData.email}}\n            @type='email'\n            id='user-email'\n          />\n        </div>\n      </div>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @class='float-end button button--spaced'\n          @isLoading={{this.isCreatingNewUser}}\n          @action={{action 'createNewUser'}}\n          @buttonText='Create'\n        />\n        <button\n          class='float-end button button--plain button--spaced'\n          type='button'\n          {{action this.toggleProperty 'userCreateModalVisible'}}\n        >{{t 'common.Cancel'}}</button>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"t1Bfr1pg\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"ITM custom P&L\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,\\\"nav\\\"],[14,0,\\\"tabs\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ul\\\"],[14,0,\\\"tabs__group\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[16,0,[29,[[52,[30,0,[\\\"profitAndLossTableVisible\\\"]],\\\"active\\\"]]]],[4,[38,12],[[30,0],\\\"setProfitAndLossTableVisible\\\",true],null],[12],[1,\\\"\\\\n            Profit And Loss\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"li\\\"],[14,0,\\\"tabs__tab\\\"],[12],[1,\\\"\\\\n          \\\"],[11,3],[16,0,[29,[[52,[51,[30,0,[\\\"profitAndLossTableVisible\\\"]]],\\\"active\\\"]]]],[4,[38,12],[[30,0],\\\"setProfitAndLossTableVisible\\\",false],null],[12],[1,\\\"\\\\n            Expenses Table\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"itm-financials-controls\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"itm-financials-controls__section\\\"],[12],[1,\\\"\\\\n      \\\"],[10,1],[14,0,\\\"itm-financials-controls__section__title\\\"],[12],[1,\\\"\\\\n        Stores:\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"allowedEntities\\\"]],[30,0,[\\\"selectedEntities\\\"]],true,\\\"name\\\",\\\"Click to add a store…\\\",[28,[37,12],[[30,0],\\\"selectEntity\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n\\\\n      \\\"],[10,1],[14,0,\\\"itm-financials-controls__section__title--last\\\"],[12],[1,\\\"\\\\n        Groups:\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,18],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[[30,0,[\\\"allowedGroups\\\"]],[30,0,[\\\"selectedGroups\\\"]],true,\\\"name\\\",\\\"Click to add a group…\\\",[28,[37,12],[[30,0],\\\"selectGroup\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n      \\\"]],[2]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"itm-financials-controls__section\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[\\\"userIsEntityAdmin\\\"],null],[[[1,\\\"        \\\"],[11,\\\"button\\\"],[24,0,\\\"button itm-financials-controls__invite-button\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"userCreateModalVisible\\\",true],null],[12],[1,\\\"\\\\n          Invite Someone to Compare\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[8,[39,20],null,[[\\\"@buttonText\\\",\\\"@title\\\",\\\"@align\\\",\\\"@buttonClasses\\\"],[\\\"Filter Table\\\",\\\"Filters\\\",\\\"right\\\",\\\"button button--secondary file-input-button\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,12],[[30,0],\\\"toggleMonthVisible\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          Show Month values\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,12],[[30,0],\\\"toggleYtdVisible\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          Show YTD values\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,12],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"lastYearVisible\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          Show last year values\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"label\\\"],[24,0,\\\"overlaid-dropdown__option\\\"],[4,[38,12],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"percentageVisible\\\"],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"check-square\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[8,[39,22],null,[[\\\"@icon\\\",\\\"@prefix\\\",\\\"@fixedWidth\\\"],[\\\"square\\\",\\\"far\\\",true]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          Show % of values\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\"]],[[[41,[30,0,[\\\"profitAndLossTableVisible\\\"]],[[[1,\\\"      \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"parent\\\",\\\"id\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedEntities\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedGroups\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,4,[\\\"name\\\"]]],[1,[52,[30,4,[\\\"consolidation\\\"]],\\\" total\\\",\\\" avg\\\"]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[29,[[52,[30,0,[\\\"lastYearVisible\\\"]],2,1]]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,\\\"Current Month\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[29,[[52,[30,0,[\\\"lastYearVisible\\\"]],2,1]]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,\\\"Year To Date\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    Actual\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"% of\\\\n                        Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      Last Year\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"%\\\\n                          of Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    Actual\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"% of\\\\n                        Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      Last Year\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"%\\\\n                          of Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@expandableTotalRow\\\",\\\"@depth\\\",\\\"@data\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],true,0,[30,0,[\\\"model\\\",\\\"sales\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,0,[\\\"model\\\",\\\"costOfSales\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"systemMargin\\\"]],\\\"System Margin\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"stockVariation\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@childrenHidden\\\",\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[true,[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,5]]],null],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"achievedMargin\\\"]],\\\"Achieved Margin\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"loyaltiesAndFreight\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,6]]],null],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"grossMargin\\\"]],\\\"Gross Margin\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@childrenHidden\\\",\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[true,[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,7]]],null],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],null,[[\\\"@childrenHidden\\\",\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\",\\\"@highlighted\\\"],[true,[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,0,[\\\"model\\\",\\\"expenses\\\"]],true]],null],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"ebitda\\\"]],\\\"EBITDA\\\"]],null],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"otherIncomeAndDepreciation\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,8]]],null],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\"\\\\n          \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@splitLines\\\",\\\"@data\\\",\\\"@title\\\"],[[30,0,[\\\"lastYearVisible\\\"]],[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,true,[30,0,[\\\"model\\\",\\\"netProfit\\\"]],\\\"Net Profit\\\"]],null],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"parent\\\",\\\"id\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedEntities\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,9,[\\\"name\\\"]]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"selectedGroups\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[30,0,[\\\"financialsTableColspan\\\"]]],[12],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,[30,10,[\\\"name\\\"]]],[1,[52,[30,10,[\\\"consolidation\\\"]],\\\" total\\\",\\\" avg\\\"]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[29,[[52,[30,0,[\\\"lastYearVisible\\\"]],2,1]]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,\\\"Current Month\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[15,\\\"colspan\\\",[29,[[52,[30,0,[\\\"lastYearVisible\\\"]],2,1]]]],[12],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"financials-table__heading--center\\\"],[12],[1,\\\"Year To Date\\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[11,12]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Description\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    Actual\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"% of\\\\n                        Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      Last Year\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"%\\\\n                          of Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    Actual\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"% of\\\\n                        Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                      Last Year\\\\n\\\"],[41,[30,0,[\\\"percentageVisible\\\"]],[[[1,\\\"                        \\\"],[10,1],[14,0,\\\"float-end financials-table__percentage\\\"],[12],[1,\\\"%\\\\n                          of Sales\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[13,14]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"children\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[39,30],null,[[\\\"@lastYearVisible\\\",\\\"@showChildren\\\",\\\"@percentageVisible\\\",\\\"@ytdVisible\\\",\\\"@monthVisible\\\",\\\"@depth\\\",\\\"@data\\\",\\\"@parentScoped\\\"],[[30,0,[\\\"lastYearVisible\\\"]],true,[30,0,[\\\"percentageVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],[30,0,[\\\"monthVisible\\\"]],0,[30,15],false]],null],[1,\\\"\\\\n\\\"]],[15]],null],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__total-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"td\\\"],[14,\\\"colspan\\\",\\\"2\\\"],[12],[1,\\\"Total Expenses\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,0,[\\\"model\\\",\\\"netProfit\\\",\\\"month\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                    \\\",[52,[28,[37,32],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"month\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,33],[[28,[37,34],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"month\\\"]],[30,17]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                      \\\",[52,[28,[37,32],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"monthPrev\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[28,[37,34],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"monthPrev\\\"]],[30,17]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"                \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                    \\\",[52,[28,[37,32],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"ytd\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,33],[[28,[37,34],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"ytd\\\"]],[30,17]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lastYearVisible\\\"]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[15,0,[29,[\\\"text-right\\\\n                      \\\",[52,[28,[37,32],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"ytdPrev\\\"]],0],null],\\\"financials-table__negative-value\\\"]]]],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[28,[37,34],[[30,0,[\\\"model\\\",\\\"expenses\\\",\\\"ytdPrev\\\"]],[30,17]],null]],[[\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[0,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[16,17]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"text-center error no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[12],[8,[39,22],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Pick a store or group to see report.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"userCreateModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,37],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,12],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"userCreateModalVisible\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,\\\"header\\\"],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Create User\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"tabular-form-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"user-first-name\\\"],[12],[1,\\\"First name\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,38],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"user-first-name\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"newUserData\\\",\\\"firstName\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"user-last-name\\\"],[12],[1,\\\"Last name\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,38],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"user-last-name\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"newUserData\\\",\\\"lastName\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"tabular-form-controls__row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"tabular-form-controls__cell tabular-form-controls__cell--label\\\"],[14,\\\"for\\\",\\\"user-email\\\"],[12],[1,\\\"Email\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,38],[[24,0,\\\"tabular-form-controls__cell text-input\\\"],[24,1,\\\"user-email\\\"]],[[\\\"@value\\\",\\\"@type\\\"],[[30,0,[\\\"newUserData\\\",\\\"email\\\"]],\\\"email\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,40],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button button--spaced\\\",[30,0,[\\\"isCreatingNewUser\\\"]],[28,[37,12],[[30,0],\\\"createNewUser\\\"],null],\\\"Create\\\"]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--plain button--spaced\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,0,[\\\"toggleProperty\\\"]],\\\"userCreateModalVisible\\\"],null],[12],[1,[28,[35,41],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entity\\\",\\\"group\\\",\\\"entity\\\",\\\"group\\\",\\\"child\\\",\\\"child\\\",\\\"child\\\",\\\"child\\\",\\\"entity\\\",\\\"group\\\",\\\"unused\\\",\\\"index\\\",\\\"unused\\\",\\\"index\\\",\\\"child\\\",\\\"unused\\\",\\\"index\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"nav\\\",\\\"ul\\\",\\\"li\\\",\\\"a\\\",\\\"span\\\",\\\"power-select-multiple\\\",\\\"includes-feature-flags\\\",\\\"overlaid-dropdown\\\",\\\"label\\\",\\\"fa-icon\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"tbody\\\",\\\"itm-financial-table-section\\\",\\\"td\\\",\\\"lt\\\",\\\"number-format\\\",\\\"object-at\\\",\\\"h2\\\",\\\"h3\\\",\\\"modal-dialog\\\",\\\"input\\\",\\\"footer\\\",\\\"loading-button\\\",\\\"t\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/itm-profit-and-loss.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/other-data-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"781vr8D5\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/other-data-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/other-data\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Other data'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n          <div class='data-withheld-notice-container'>\n            {{#if this.model.groupsRedacted}}\n              <GroupsRedactedNotice />\n            {{/if}}\n  \n            {{#if this.model.ownDataWithheld}}\n              <DataWithheldNotice />\n            {{/if}}\n          </div>\n        {{/if}}\n  \n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n  \n        <h1 class='h1'>Other Data</h1>\n      </header>\n    {{else}}\n      {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n        <div class='data-withheld-notice-container'>\n          {{#if this.model.groupsRedacted}}\n            <GroupsRedactedNotice />\n          {{/if}}\n  \n          {{#if this.model.ownDataWithheld}}\n            <DataWithheldNotice />\n          {{/if}}\n        </div>\n      {{/if}}\n    {{/if}}\n  \n    {{#if this.otherData}}\n      {{#if this.model.entities}}\n        <table class='data-table financials-table'>\n          <thead>\n            <tr>\n              <th>Other Data</th>\n  \n              {{#each this.orderedEntities as |entity|}}\n                <th colspan={{this.colSpan}} class='financials-table__heading'>\n                  <a\n                    {{action 'shiftFarLeft' entity}}\n                    class='financials-table__heading-link'\n                    title='Click to put this column first'\n                  >\n                    {{entity.name}}\n                    {{if\n                      (is-array entity.members)\n                      (if entity.consolidation 'total' 'avg')\n                    }}\n                    {{#if entity.includedEntities}}\n                      <br />\n                      ({{entity.includedEntities}}\n                      /\n                      {{entity.members.length}}\n                      entities)\n                    {{/if}}\n                  </a>\n                </th>\n              {{/each}}\n            </tr>\n  \n            <tr class='data-table__subheading-row'>\n              <th></th>\n  \n              {{! template-lint-disable no-unused-block-params }}\n              {{#each this.orderedEntities as |entity|}}\n                <th class='financials-table__heading'>Month</th>\n                <th class='financials-table__heading'>YTD</th>\n              {{/each}}\n            </tr>\n          </thead>\n          <tbody>\n            <FinancialsTableSection\n              @canSeeBreakdown={{this.canSeeBreakdown}}\n              @toggleShowChildren={{action 'toggleShowChildren'}}\n              @toggleShowBreakdown={{action 'toggleShowBreakdown'}}\n              @accounts={{this.otherData}}\n              @showMonth={{true}}\n              @showYTD={{true}}\n            />\n          </tbody>\n        </table>\n  \n        <p class='ptl-placeholder'>Click on any table column heading to put that\n          column first.</p>\n  \n        <p class='ptl-placeholder limit-small'>* Numbers in this row will be sum\n          of its subsections for a single branch but not necessarily for groups.\n          More information can be found on the\n          <a\n            href='http://support.otbs.co.nz/hc/en-us/sections/203085588'\n            class='link'\n          >support site.</a></p>\n  \n      {{else}}\n        <div class='error-page error-page--no-data'>\n          <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n          <h3 class='h3 error-page__title'>There are no groups accessible.</h3>\n          <p>If you believe you have received this message in error, please check\n            with your system administrator.</p>\n        </div>\n      {{/if}}\n    {{else}}\n      <div class='error-page error-page--no-data'>\n        <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n        <h3 class='h3 error-page__title'>This entity has no accounts in this\n          section.</h3>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.showBreakdown}}\n    <MetricBreakdown\n      @selectedMetric={{this.selectedMetric}}\n      @selectedGroup={{this.selectedGroup}}\n      @periodType={{this.selectedPeriodType}}\n      @overlay-class='breakdown'\n      @clickOutsideToClose={{true}}\n      @translucentOverlay={{true}}\n      @close={{action 'toggleShowBreakdown'}}\n      @accountType='balances'\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"WwqTnkLZ\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Other data\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"            \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"            \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Other Data\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"otherData\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"entities\\\"]],[[[1,\\\"      \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[1,\\\"Other Data\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"colSpan\\\"]]],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                \\\"],[11,3],[24,0,\\\"financials-table__heading-link\\\"],[24,\\\"title\\\",\\\"Click to put this column first\\\"],[4,[38,12],[[30,0],\\\"shiftFarLeft\\\",[30,1]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n                  \\\"],[1,[52,[28,[37,21],[[30,1,[\\\"members\\\"]]],null],[52,[30,1,[\\\"consolidation\\\"]],\\\"total\\\",\\\"avg\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"includedEntities\\\"]],[[[1,\\\"                    \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                    (\\\"],[1,[30,1,[\\\"includedEntities\\\"]]],[1,\\\"\\\\n                    /\\\\n                    \\\"],[1,[30,1,[\\\"members\\\",\\\"length\\\"]]],[1,\\\"\\\\n                    entities)\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,19],[[28,[37,19],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,24],null,[[\\\"@canSeeBreakdown\\\",\\\"@toggleShowChildren\\\",\\\"@toggleShowBreakdown\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@showYTD\\\"],[[30,0,[\\\"canSeeBreakdown\\\"]],[28,[37,12],[[30,0],\\\"toggleShowChildren\\\"],null],[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],[30,0,[\\\"otherData\\\"]],true,true]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,2],[14,0,\\\"ptl-placeholder\\\"],[12],[1,\\\"Click on any table column heading to put that\\\\n        column first.\\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,2],[14,0,\\\"ptl-placeholder limit-small\\\"],[12],[1,\\\"* Numbers in this row will be sum\\\\n        of its subsections for a single branch but not necessarily for groups.\\\\n        More information can be found on the\\\\n        \\\"],[10,3],[14,6,\\\"http://support.otbs.co.nz/hc/en-us/sections/203085588\\\"],[14,0,\\\"link\\\"],[12],[1,\\\"support site.\\\"],[13],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,27],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"There are no groups accessible.\\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n          with your system administrator.\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,27],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"This entity has no accounts in this\\\\n        section.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showBreakdown\\\"]],[[[1,\\\"  \\\"],[8,[39,29],null,[[\\\"@selectedMetric\\\",\\\"@selectedGroup\\\",\\\"@periodType\\\",\\\"@overlay-class\\\",\\\"@clickOutsideToClose\\\",\\\"@translucentOverlay\\\",\\\"@close\\\",\\\"@accountType\\\"],[[30,0,[\\\"selectedMetric\\\"]],[30,0,[\\\"selectedGroup\\\"]],[30,0,[\\\"selectedPeriodType\\\"]],\\\"breakdown\\\",true,true,[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],\\\"balances\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entity\\\",\\\"entity\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"is-array\\\",\\\"br\\\",\\\"tbody\\\",\\\"financials-table-section\\\",\\\"p\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\",\\\"metric-breakdown\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/other-data.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/personal-data-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"2Bqeh+Jz\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/personal-data-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/personal-data\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Personal data'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      {{#if (media 'isDesktop')}}\n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n        <h1 class='h1'>Personal Data</h1>\n      {{/if}}\n    </header>\n  \n    {{#if this.model}}\n      <div class='financials-controls do-not-print control-wrapper'>\n        <label class='financials-controls__option'>\n          <Input @type='checkbox' @checked={{this.monthVisible}} />\n          Show month values\n        </label>\n  \n        <label class='financials-controls__option'>\n          <Input @type='checkbox' @checked={{this.ytdVisible}} />\n          Show YTD values\n        </label>\n  \n        <div class='financials-controls__option'>\n          <label class='options-selection' for='duration-picker'>\n            Number of periods:\n          </label>\n          <SelectInput\n            @value={{this.duration}}\n            @action={{fn (mut this.duration)}}\n            @class='select-box'\n            @id='duration-picker'\n            as |si|\n          >\n            {{#each this.durationOptions as |option|}}\n              <si.option @value={{option}}>{{option}}</si.option>\n            {{/each}}\n          </SelectInput>\n        </div>\n  \n        <div class='financials-controls__option'>\n          <label class='options-selection'>\n            Interval:\n          </label>\n          <SelectInput\n            @value={{this.interval}}\n            @action={{fn (mut this.interval)}}\n            @class='select-box'\n            as |si|\n          >\n            {{#each this.intervalOptions as |option|}}\n              <si.option @value={{option.value}}>{{option.name}}</si.option>\n            {{/each}}\n          </SelectInput>\n        </div>\n      </div>\n  \n      <table class='data-table financials-table'>\n        <thead>\n          <tr>\n            <th>Profit and Loss</th>\n  \n            {{#each this.dateRange as |date|}}\n              <th colspan={{this.colSpan}} class='financials-table__heading'>\n                <a class='financials-table__heading'>\n                  {{moment-format date 'MMM YYYY'}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n  \n          <tr class='data-table__subheading-row'>\n            <th></th>\n            {{! Empty cell to line up }}\n            {{#each this.intervalCount}}\n              {{#if this.monthVisible}}\n                <th class='financials-table__heading'>Month</th>\n              {{/if}}\n  \n              {{#if this.ytdVisible}}\n                <th class='financials-table__heading'>YTD</th>\n              {{/if}}\n  \n              {{#if (not (or this.monthVisible this.ytdVisible))}}\n                <th></th>\n              {{/if}}\n            {{/each}}\n          </tr>\n  \n        </thead>\n  \n        <tbody>\n          <PersonalFinancialTableSection\n            @toggleShowChildren={{action 'toggleShowChildren'}}\n            @accounts={{this.profitAndLoss}}\n            @showMonth={{this.monthVisible}}\n            @showYTD={{this.ytdVisible}}\n            @totalsRow='Net Profit'\n            @filterHeaders={{true}}\n            @periodCount={{this.duration}}\n            @doNotPrintTotal={{this.doNotPrintNetProfit}}\n          />\n        </tbody>\n      </table>\n  \n      <table class='financials-table data-table'>\n        <thead>\n          <tr>\n            <th>Balance Sheet</th>\n  \n            {{#each this.dateRange as |date|}}\n              <th class='financials-table__heading'>\n                <a class='financials-table__heading'>\n                  {{moment-format date 'MMM YYYY'}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n  \n          <tr class='data-table__subheading-row'>\n            <th></th>\n            {{! Empty cell to line up }}\n            {{#each this.intervalCount}}\n              <th class='financials-table__heading'>YTD</th>\n            {{/each}}\n          </tr>\n        </thead>\n  \n        <tbody>\n          <PersonalFinancialTableSection\n            @toggleShowChildren={{action 'toggleShowChildren'}}\n            @accounts={{this.balanceSheet}}\n            @showMonth={{true}}\n            @totalsRow='Net Equity'\n            @filterHeaders={{true}}\n            @periodCount={{this.duration}}\n            @doNotPrintTotal={{this.doNotPrintNetEquity}}\n          />\n        </tbody>\n      </table>\n  \n      <p>You can prevent sections from printing by clicking on the\n        <FaIcon @icon='eye' />\n        icons.</p>\n    {{else}}\n      <div class='text-center error no-data'>\n        <h2><FaIcon @icon='info-circle' /></h2>\n        <h3>There are no groups accessible.</h3>\n        <p>If you believe you have received this message in error, please check\n          with your system administrator.</p>\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"aHdhvCKc\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Personal data\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,8],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Personal Data\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"financials-controls do-not-print control-wrapper\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"financials-controls__option\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,12],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"monthVisible\\\"]]]],null],[1,\\\"\\\\n        Show month values\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"financials-controls__option\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,12],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"ytdVisible\\\"]]]],null],[1,\\\"\\\\n        Show YTD values\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"financials-controls__option\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"options-selection\\\"],[14,\\\"for\\\",\\\"duration-picker\\\"],[12],[1,\\\"\\\\n          Number of periods:\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\",\\\"@id\\\"],[[30,0,[\\\"duration\\\"]],[28,[37,14],[[28,[37,15],[[30,0,[\\\"duration\\\"]]],null]],null],\\\"select-box\\\",\\\"duration-picker\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"durationOptions\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,2]]],[[\\\"default\\\"],[[[[1,[30,2]]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\"        \\\"]],[1]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"financials-controls__option\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"options-selection\\\"],[12],[1,\\\"\\\\n          Interval:\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,13],null,[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"interval\\\"]],[28,[37,14],[[28,[37,15],[[30,0,[\\\"interval\\\"]]],null]],null],\\\"select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"intervalOptions\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[8,[30,3,[\\\"option\\\"]],null,[[\\\"@value\\\"],[[30,4,[\\\"value\\\"]]]],[[\\\"default\\\"],[[[[1,[30,4,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"        \\\"]],[3]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Profit and Loss\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"dateRange\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"colSpan\\\"]]],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n              \\\"],[10,3],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,23],[[30,5],\\\"MMM YYYY\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"intervalCount\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[28,[37,25],[[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]]],null]],null],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],null,[[\\\"@toggleShowChildren\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@showYTD\\\",\\\"@totalsRow\\\",\\\"@filterHeaders\\\",\\\"@periodCount\\\",\\\"@doNotPrintTotal\\\"],[[28,[37,8],[[30,0],\\\"toggleShowChildren\\\"],null],[30,0,[\\\"profitAndLoss\\\"]],[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],\\\"Net Profit\\\",true,[30,0,[\\\"duration\\\"]],[30,0,[\\\"doNotPrintNetProfit\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"financials-table data-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Balance Sheet\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"dateRange\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n              \\\"],[10,3],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,23],[[30,6],\\\"MMM YYYY\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"intervalCount\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,27],null,[[\\\"@toggleShowChildren\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@totalsRow\\\",\\\"@filterHeaders\\\",\\\"@periodCount\\\",\\\"@doNotPrintTotal\\\"],[[28,[37,8],[[30,0],\\\"toggleShowChildren\\\"],null],[30,0,[\\\"balanceSheet\\\"]],true,\\\"Net Equity\\\",true,[30,0,[\\\"duration\\\"]],[30,0,[\\\"doNotPrintNetEquity\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,2],[12],[1,\\\"You can prevent sections from printing by clicking on the\\\\n      \\\"],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"eye\\\"]],null],[1,\\\"\\\\n      icons.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"text-center error no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[12],[8,[39,29],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,\\\"There are no groups accessible.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n        with your system administrator.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"si\\\",\\\"option\\\",\\\"si\\\",\\\"option\\\",\\\"date\\\",\\\"date\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"div\\\",\\\"label\\\",\\\"input\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"each\\\",\\\"-track-array\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"a\\\",\\\"moment-format\\\",\\\"not\\\",\\\"or\\\",\\\"tbody\\\",\\\"personal-financial-table-section\\\",\\\"p\\\",\\\"fa-icon\\\",\\\"h2\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/personal-data.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/profit-and-loss-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"br2Wd9IA\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/profit-and-loss-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/general-ledger/profit-and-loss\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Profit and loss'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n        <div class='data-withheld-notice-container'>\n          {{#if this.model.groupsRedacted}}\n            <GroupsRedactedNotice />\n          {{/if}}\n  \n          {{#if this.model.ownDataWithheld}}\n            <DataWithheldNotice />\n          {{/if}}\n        </div>\n      {{/if}}\n  \n      {{#if (media 'isDesktop')}}\n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n  \n        <h1 class='h1'>Profit and Loss</h1>\n      {{/if}}\n    </header>\n    {{#if this.showBreakdown}}\n      <MetricBreakdown\n        @selectedMetric={{this.selectedMetric}}\n        @selectedGroup={{this.selectedGroup}}\n        @periodType={{this.selectedPeriodType}}\n        @overlay-class='breakdown'\n        @clickOutsideToClose={{true}}\n        @translucentOverlay={{true}}\n        @close={{action 'toggleShowBreakdown'}}\n        @accountType='balances'\n      />\n    {{/if}}\n  \n    {{#if this.model.entities}}\n      <div class='financials-controls'>\n        <div class='control-wrapper'>\n          <label>\n            <Input @type='checkbox' @checked={{this.monthVisible}} />\n            Show month values\n          </label>\n  \n          <label>\n            <Input @type='checkbox' @checked={{this.ytdVisible}} />\n            Show YTD values\n          </label>\n        </div>\n      </div>\n  \n      <table class='data-table financials-table'>\n        <thead>\n          <tr>\n            <th>Profit and Loss</th>\n  \n            {{#each this.orderedEntities as |entity|}}\n              <th colspan={{this.colSpan}} class='financials-table__heading'>\n                <a\n                  {{action 'shiftFarLeft' entity}}\n                  class='financials-table__heading-link'\n                  title='Click to put this column first'\n                >\n                  {{entity.name}}\n                  {{if\n                    (is-array entity.members)\n                    (if entity.consolidation 'total' 'avg')\n                  }}\n                  {{#if entity.includedEntities}}\n                    <br />\n                    ({{entity.includedEntities}}\n                    /\n                    {{entity.members.length}}\n                    entities)\n                  {{/if}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n  \n          <tr class='data-table__subheading-row'>\n            <th></th>\n  \n            {{! template-lint-disable no-unused-block-params }}\n            {{#each this.orderedEntities as |entity|}}\n              {{#if this.monthVisible}}\n                <th class='financials-table__heading'>Month</th>\n              {{/if}}\n  \n              {{#if this.ytdVisible}}\n                <th class='financials-table__heading'>YTD</th>\n              {{/if}}\n  \n              {{#if (not (or this.monthVisible this.ytdVisible))}}\n                <th class='financials-table__heading'>–</th>\n              {{/if}}\n            {{/each}}\n          </tr>\n        </thead>\n        <tbody>\n          <FinancialsTableSection\n            @canSeeBreakdown={{this.canSeeBreakdown}}\n            @toggleShowChildren={{action 'toggleShowChildren'}}\n            @toggleShowBreakdown={{action 'toggleShowBreakdown'}}\n            @accounts={{this.profitAndLoss}}\n            @showMonth={{this.monthVisible}}\n            @showYTD={{this.ytdVisible}}\n            @totalsRow='Net Profit'\n            @hasGroups={{true}}\n          />\n        </tbody>\n      </table>\n  \n      <div class='footnote'>\n        <p>Click on any table column heading to put that column first.</p>\n        <p>* Numbers in this row will be sum of its subsections for a single\n          branch but not necessarily for groups. More information can be found on\n          the\n          <a\n            href='http://support.otbs.co.nz/hc/en-us/sections/203085588'\n            class='link'\n          >support site.</a></p>\n      </div>\n    {{else}}\n      <div class='error-page error-page--no-data'>\n        <h2 class='h2 error-page__icon'><FaIcon @icon='info-circle' /></h2>\n        <h3 class='h3 error-page__title'>There are no groups accessible.</h3>\n        <p>If you believe you have received this message in error, please check\n          with your system administrator.</p>\n      </div>\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"Qn0F0TpQ\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Profit and loss\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"          \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"          \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Profit and Loss\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showBreakdown\\\"]],[[[1,\\\"    \\\"],[8,[39,14],null,[[\\\"@selectedMetric\\\",\\\"@selectedGroup\\\",\\\"@periodType\\\",\\\"@overlay-class\\\",\\\"@clickOutsideToClose\\\",\\\"@translucentOverlay\\\",\\\"@close\\\",\\\"@accountType\\\"],[[30,0,[\\\"selectedMetric\\\"]],[30,0,[\\\"selectedGroup\\\"]],[30,0,[\\\"selectedPeriodType\\\"]],\\\"breakdown\\\",true,true,[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],\\\"balances\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"entities\\\"]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"financials-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"control-wrapper\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"monthVisible\\\"]]]],null],[1,\\\"\\\\n          Show month values\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,16],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"ytdVisible\\\"]]]],null],[1,\\\"\\\\n          Show YTD values\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"Profit and Loss\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"colSpan\\\"]]],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n              \\\"],[11,3],[24,0,\\\"financials-table__heading-link\\\"],[24,\\\"title\\\",\\\"Click to put this column first\\\"],[4,[38,12],[[30,0],\\\"shiftFarLeft\\\",[30,1]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[1,[52,[28,[37,24],[[30,1,[\\\"members\\\"]]],null],[52,[30,1,[\\\"consolidation\\\"]],\\\"total\\\",\\\"avg\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"includedEntities\\\"]],[[[1,\\\"                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  (\\\"],[1,[30,1,[\\\"includedEntities\\\"]]],[1,\\\"\\\\n                  /\\\\n                  \\\"],[1,[30,1,[\\\"members\\\",\\\"length\\\"]]],[1,\\\"\\\\n                  entities)\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,22],[[28,[37,22],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,26],[[28,[37,7],[[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]]],null]],null],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"–\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,28],null,[[\\\"@canSeeBreakdown\\\",\\\"@toggleShowChildren\\\",\\\"@toggleShowBreakdown\\\",\\\"@accounts\\\",\\\"@showMonth\\\",\\\"@showYTD\\\",\\\"@totalsRow\\\",\\\"@hasGroups\\\"],[[30,0,[\\\"canSeeBreakdown\\\"]],[28,[37,12],[[30,0],\\\"toggleShowChildren\\\"],null],[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],[30,0,[\\\"profitAndLoss\\\"]],[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]],\\\"Net Profit\\\",true]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"footnote\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"Click on any table column heading to put that column first.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"* Numbers in this row will be sum of its subsections for a single\\\\n        branch but not necessarily for groups. More information can be found on\\\\n        the\\\\n        \\\"],[10,3],[14,6,\\\"http://support.otbs.co.nz/hc/en-us/sections/203085588\\\"],[14,0,\\\"link\\\"],[12],[1,\\\"support site.\\\"],[13],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"error-page error-page--no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2 error-page__icon\\\"],[12],[8,[39,31],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 error-page__title\\\"],[12],[1,\\\"There are no groups accessible.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n        with your system administrator.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"entity\\\",\\\"entity\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"metric-breakdown\\\",\\\"label\\\",\\\"input\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"is-array\\\",\\\"br\\\",\\\"not\\\",\\\"tbody\\\",\\\"financials-table-section\\\",\\\"p\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/general-ledger/profit-and-loss.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/imports-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"e5Wr5pst\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/imports-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/imports\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title='Data availability'}}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        <h1 class='h1'>Data Availability</h1>\n      </header>\n    {{/if}}\n  \n    <table class='data-table import-timeline-table'>\n      <thead>\n        <tr>\n          <th></th>\n  \n          {{#each this.model.periods as |period index|}}\n            {{#if (or (eq index 0) (eq (moment-format period.date 'M') '1'))}}\n              <th\n                colspan={{math 13 '-' (moment-format period.date 'M')}}\n              >{{moment-format period.date 'YYYY'}}</th>\n            {{/if}}\n          {{/each}}\n        </tr>\n        <tr>\n          <th></th>\n  \n          {{#each this.model.periods as |period|}}\n            <th class='text-center'>{{moment-format period.date 'MM'}}</th>\n          {{/each}}\n        </tr>\n      </thead>\n      <tbody>\n        {{#each this.model.entities as |branch|}}\n          <tr>\n            <td>{{branch.name}}</td>\n  \n            {{#each branch.periods as |period|}}\n              <td class={{if period 'present'}}></td>\n            {{/each}}\n          </tr>\n        {{/each}}\n      </tbody>\n      <tfoot>\n        <tr class='data-table__total-row'>\n          <td>Total (out of {{this.model.entities.length}})</td>\n  \n          {{#each this.model.periods as |period|}}\n            <td>{{period.count}}</td>\n          {{/each}}\n        </tr>\n      </tfoot>\n    </table>\n  </article>\n  */\n  {\n    \"id\": \"V0WVpuPC\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Data availability\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Data Availability\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table import-timeline-table\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"periods\\\"]]],null]],null],null,[[[41,[28,[37,14],[[28,[37,15],[[30,2],0],null],[28,[37,15],[[28,[37,16],[[30,1,[\\\"date\\\"]],\\\"M\\\"],null],\\\"1\\\"],null]],null],[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[28,[37,17],[13,\\\"-\\\",[28,[37,16],[[30,1,[\\\"date\\\"]],\\\"M\\\"],null]],null]],[12],[1,[28,[35,16],[[30,1,[\\\"date\\\"]],\\\"YYYY\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1,2]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"th\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"periods\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"th\\\"],[14,0,\\\"text-center\\\"],[12],[1,[28,[35,16],[[30,3,[\\\"date\\\"]],\\\"MM\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"entities\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"td\\\"],[12],[1,[30,4,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,4,[\\\"periods\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"td\\\"],[15,0,[52,[30,5],\\\"present\\\"]],[12],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"tfoot\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__total-row\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"td\\\"],[12],[1,\\\"Total (out of \\\"],[1,[30,0,[\\\"model\\\",\\\"entities\\\",\\\"length\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,13],[[28,[37,13],[[30,0,[\\\"model\\\",\\\"periods\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"td\\\"],[12],[1,[30,6,[\\\"count\\\"]]],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"period\\\",\\\"index\\\",\\\"period\\\",\\\"branch\\\",\\\"period\\\",\\\"period\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"h1\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"or\\\",\\\"eq\\\",\\\"moment-format\\\",\\\"math\\\",\\\"tbody\\\",\\\"td\\\",\\\"tfoot\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/imports.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/kpis-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"kfdiUxil\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/kpis-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/kpis\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"AFDDhDvm\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/kpis.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/kpis/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title='Key performance indicators'\n      }}\n    />\n  {{/unless}}\n  <article class='m-4'>\n    {{#if (media 'isDesktop')}}\n      <header class='border-bottom mb-3'>\n        {{#if (or this.model.groupsRedacted this.model.ownDataWithheld)}}\n          <div class='data-withheld-notice-container'>\n            {{#if this.model.groupsRedacted}}\n              <GroupsRedactedNotice />\n            {{/if}}\n  \n            {{#if this.model.ownDataWithheld}}\n              <DataWithheldNotice />\n            {{/if}}\n          </div>\n        {{/if}}\n  \n        <button\n          class='text-button text-button--download float-end'\n          type='button'\n          {{action 'downloadSheet'}}\n        >\n          Download report as CSV\n        </button>\n        <h1 class='h1'>Key Performance Indicators</h1>\n  \n      </header>\n    {{else}}\n  \n      {{#if this.model.groupsRedacted}}\n        <p class='h4'>\n          Group data has not yet been released for this period\n        </p>\n      {{/if}}\n    {{/if}}\n  \n    {{#if (get this.model.kpis '0.data.length')}}\n      <div class='financials-controls'>\n        <label>\n          <Input @type='checkbox' @checked={{this.monthVisible}} />\n          Show month values\n        </label>\n  \n        <label>\n          <Input @type='checkbox' @checked={{this.ytdVisible}} />\n          Show YTD values\n        </label>\n      </div>\n  \n      <table class='data-table financials-table'>\n        <thead>\n          <tr>\n            <th>KPI</th>\n            {{#each this.orderedEntities as |entity|}}\n              <th colspan={{this.colSpan}} class='financials-table__heading'>\n                {{! template-lint-disable link-href-attributes }}\n                <a\n                  {{action 'shiftFarLeft' entity}}\n                  class='financials-table__heading-link'\n                  title='Click to put this column first'\n                >\n                  {{entity.name}}\n                  {{if\n                    (is-array entity.members)\n                    (if entity.consolidation 'total' 'avg')\n                  }}\n                  {{#if entity.includedEntities}}\n                    <br />\n                    ({{entity.includedEntities}}\n                    /\n                    {{entity.members.length}}\n                    entities)\n                  {{/if}}\n                </a>\n              </th>\n            {{/each}}\n          </tr>\n  \n          <tr class='data-table__subheading-row'>\n            <th>{{this.periodString}}</th>\n            {{! template-lint-disable no-unused-block-params }}\n            {{#each this.orderedEntities as |_entity|}}\n              {{#if this.monthVisible}}\n                <th class='financials-table__heading'>Month</th>\n              {{/if}}\n  \n              {{#if this.ytdVisible}}\n                <th class='financials-table__heading'>YTD</th>\n              {{/if}}\n  \n              {{#if (not (or this.monthVisible this.ytdVisible))}}\n                <th class='financials-table__heading'>–</th>\n              {{/if}}\n            {{/each}}\n          </tr>\n        </thead>\n        <tbody>\n          {{#each this.kpisSortedByEntity as |kpi|}}\n            <tr>\n              {{! KPI name column }}\n              <td>\n                {{#if this.linkToDetail}}\n                  <LinkTo\n                    @route='entity.financials.reports.kpis.kpi'\n                    @model={{kpi.slug}}\n                    class='link'\n                  >{{kpi.name}}</LinkTo>\n                {{else}}\n                  {{kpi.name}}\n                {{/if}}\n              </td>\n  \n              {{! Data columns }}\n              {{#each kpi.data as |data index|}}\n                {{#if this.monthVisible}}\n                  {{#if (and (not-eq index 0) this.canSeeBreakdown)}}\n                    <td\n                      {{action 'toggleShowBreakdown' kpi data.entity 'month'}}\n                      class='text-right financials-table__inspectable-cell'\n                    >\n                      {{number-format\n                        data.month\n                        style=(get this.formattedStyle kpi.format)\n                        maximumFractionDigits=2\n                        dashZero=true\n                      }}\n                    </td>\n                  {{else}}\n                    <td class='text-right'>\n                      {{number-format\n                        data.month\n                        style=(get this.formattedStyle kpi.format)\n                        maximumFractionDigits=2\n                        dashZero=true\n                      }}\n                    </td>\n                  {{/if}}\n                {{/if}}\n                {{#if this.ytdVisible}}\n                  {{#if (and (not-eq index 0) this.canSeeBreakdown)}}\n                    <td\n                      {{action 'toggleShowBreakdown' kpi data.entity 'ytd'}}\n                      class='text-right financials-table__inspectable-cell'\n                    >\n                      {{number-format\n                        data.ytd\n                        style=(get this.formattedStyle kpi.format)\n                        maximumFractionDigits=2\n                        dashZero=true\n                      }}\n                    </td>\n                  {{else}}\n                    <td class='text-right'>\n                      {{number-format\n                        data.ytd\n                        style=(get this.formattedStyle kpi.format)\n                        maximumFractionDigits=2\n                        dashZero=true\n                      }}\n                    </td>\n                  {{/if}}\n                {{/if}}\n              {{/each}}\n            </tr>\n          {{/each}}\n  \n        </tbody>\n  \n      </table>\n    {{else}}\n      <div class='text-center error no-data'>\n        <h2><FaIcon @icon='info-circle' /></h2>\n        <h3>There are no reports accessible.</h3>\n        <p>If you believe you have received this message in error, please check\n          with your system administrator.</p>\n      </div>\n    {{/if}}\n  </article>\n  \n  {{#if this.showBreakdown}}\n    <MetricBreakdown\n      @selectedMetric={{this.selectedMetric}}\n      @selectedGroup={{this.selectedGroup}}\n      @periodType={{this.selectedPeriodType}}\n      @clickOutsideToClose={{true}}\n      @translucentOverlay={{true}}\n      @close={{action 'toggleShowBreakdown'}}\n      @accountType='kpis'\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"TnvEg80Q\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[\\\"Key performance indicators\\\"]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"    \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]]],null],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"data-withheld-notice-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"            \\\"],[8,[39,9],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ownDataWithheld\\\"]],[[[1,\\\"            \\\"],[8,[39,10],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--download float-end\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],\\\"downloadSheet\\\"],null],[12],[1,\\\"\\\\n        Download report as CSV\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"Key Performance Indicators\\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"groupsRedacted\\\"]],[[[1,\\\"      \\\"],[10,2],[14,0,\\\"h4\\\"],[12],[1,\\\"\\\\n        Group data has not yet been released for this period\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,0,[\\\"model\\\",\\\"kpis\\\"]],\\\"0.data.length\\\"],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"financials-controls\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"monthVisible\\\"]]]],null],[1,\\\"\\\\n        Show month values\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,17],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"ytdVisible\\\"]]]],null],[1,\\\"\\\\n        Show YTD values\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"table\\\"],[14,0,\\\"data-table financials-table\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,\\\"KPI\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"th\\\"],[15,\\\"colspan\\\",[30,0,[\\\"colSpan\\\"]]],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"              \\\"],[11,3],[24,0,\\\"financials-table__heading-link\\\"],[24,\\\"title\\\",\\\"Click to put this column first\\\"],[4,[38,12],[[30,0],\\\"shiftFarLeft\\\",[30,1]],null],[12],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[1,[52,[28,[37,25],[[30,1,[\\\"members\\\"]]],null],[52,[30,1,[\\\"consolidation\\\"]],\\\"total\\\",\\\"avg\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"includedEntities\\\"]],[[[1,\\\"                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  (\\\"],[1,[30,1,[\\\"includedEntities\\\"]]],[1,\\\"\\\\n                  /\\\\n                  \\\"],[1,[30,1,[\\\"members\\\",\\\"length\\\"]]],[1,\\\"\\\\n                  entities)\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"tr\\\"],[14,0,\\\"data-table__subheading-row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"th\\\"],[12],[1,[30,0,[\\\"periodString\\\"]]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"orderedEntities\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"Month\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ytdVisible\\\"]],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"YTD\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[[28,[37,7],[[30,0,[\\\"monthVisible\\\"]],[30,0,[\\\"ytdVisible\\\"]]],null]],null],[[[1,\\\"              \\\"],[10,\\\"th\\\"],[14,0,\\\"financials-table__heading\\\"],[12],[1,\\\"–\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[2]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,0,[\\\"kpisSortedByEntity\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"            \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"linkToDetail\\\"]],[[[1,\\\"                \\\"],[8,[39,30],[[24,0,\\\"link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.reports.kpis.kpi\\\",[30,3,[\\\"slug\\\"]]]],[[\\\"default\\\"],[[[[1,[30,3,[\\\"name\\\"]]]],[]]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[30,3,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,3,[\\\"data\\\"]]],null]],null],null,[[[41,[30,0,[\\\"monthVisible\\\"]],[[[41,[28,[37,31],[[28,[37,32],[[30,5],0],null],[30,0,[\\\"canSeeBreakdown\\\"]]],null],[[[1,\\\"                  \\\"],[11,\\\"td\\\"],[24,0,\\\"text-right financials-table__inspectable-cell\\\"],[4,[38,12],[[30,0],\\\"toggleShowBreakdown\\\",[30,3],[30,4,[\\\"entity\\\"]],\\\"month\\\"],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[30,4,[\\\"month\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,3,[\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[30,4,[\\\"month\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,3,[\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[41,[30,0,[\\\"ytdVisible\\\"]],[[[41,[28,[37,31],[[28,[37,32],[[30,5],0],null],[30,0,[\\\"canSeeBreakdown\\\"]]],null],[[[1,\\\"                  \\\"],[11,\\\"td\\\"],[24,0,\\\"text-right financials-table__inspectable-cell\\\"],[4,[38,12],[[30,0],\\\"toggleShowBreakdown\\\",[30,3],[30,4,[\\\"entity\\\"]],\\\"ytd\\\"],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[30,4,[\\\"ytd\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,3,[\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[10,\\\"td\\\"],[14,0,\\\"text-right\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,33],[[30,4,[\\\"ytd\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,3,[\\\"format\\\"]]],null],2,true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[4,5]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"text-center error no-data\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h2\\\"],[12],[8,[39,35],null,[[\\\"@icon\\\"],[\\\"info-circle\\\"]],null],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,\\\"There are no reports accessible.\\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"If you believe you have received this message in error, please check\\\\n        with your system administrator.\\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showBreakdown\\\"]],[[[1,\\\"  \\\"],[8,[39,37],null,[[\\\"@selectedMetric\\\",\\\"@selectedGroup\\\",\\\"@periodType\\\",\\\"@clickOutsideToClose\\\",\\\"@translucentOverlay\\\",\\\"@close\\\",\\\"@accountType\\\"],[[30,0,[\\\"selectedMetric\\\"]],[30,0,[\\\"selectedGroup\\\"]],[30,0,[\\\"selectedPeriodType\\\"]],true,true,[28,[37,12],[[30,0],\\\"toggleShowBreakdown\\\"],null],\\\"kpis\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entity\\\",\\\"_entity\\\",\\\"kpi\\\",\\\"data\\\",\\\"index\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"article\\\",\\\"if\\\",\\\"header\\\",\\\"or\\\",\\\"div\\\",\\\"groups-redacted-notice\\\",\\\"data-withheld-notice\\\",\\\"button\\\",\\\"action\\\",\\\"h1\\\",\\\"p\\\",\\\"get\\\",\\\"label\\\",\\\"input\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\",\\\"is-array\\\",\\\"br\\\",\\\"not\\\",\\\"tbody\\\",\\\"td\\\",\\\"link-to\\\",\\\"and\\\",\\\"not-eq\\\",\\\"number-format\\\",\\\"h2\\\",\\\"fa-icon\\\",\\\"h3\\\",\\\"metric-breakdown\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/kpis/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/financials/reports/kpis/kpi\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    <header class='border-bottom mb-3'>\n      <RadioSlider\n        @options={{this.periodTypeOptions}}\n        @selected={{this.periodType}}\n        @class='float-end'\n      />\n      <h1 class='h1'>KPI Detail</h1>\n    </header>\n  \n    <section class='master-detail kpi-page'>\n      <aside class='master-detail__master'>\n        <ul>\n          {{#each this.model.kpiMeta as |kpi|}}\n            <li>\n              <LinkTo\n                @route='entity.financials.reports.kpis.kpi'\n                @model={{kpi.id}}\n              >\n                {{kpi.name}}\n              </LinkTo>\n            </li>\n          {{/each}}\n        </ul>\n      </aside>\n  \n      <article\n        class='master-detail__detail kpi-page__detail\n          {{if this.noData \"no-data error-page kpi-page--error\"}}'\n      >\n        {{#unless this.noData}}\n          {{#let this.currentStats as |stats|}}\n            <section class='stats'>\n              {{#if stats.rankable}}\n                <div class='metric ranking'>\n                  <div class='number'>\n                    {{#if stats.rankings}}\n                      {{get stats.rankings '0.rank'}}<sup>\n                        {{ordinal-for stats.rankings '0.rank'}}</sup>\n                    {{else}}\n                      –\n                    {{/if}}\n                  </div>\n                  <div class='label'>Ranking out of\n                    {{get stats.rankings '0.outOf'}}\n                    entities</div>\n                </div>\n                <div class='metric'>\n                  <div class='number'>{{if\n                      stats.best\n                      (number-format\n                        stats.best\n                        style=(get this.formattedStyle this.model.kpi.meta.format)\n                        maximumFractionDigits=2\n                        dashZero=false\n                      )\n                      '–'\n                    }}</div>\n                  <div class='label'>National best for\n                    {{moment-format this.period 'MM/YYYY' 'YYYY-MM'}}</div>\n                </div>\n              {{/if}}\n  \n              <div class='metric'>\n                <div class='number'>{{if\n                    stats.mean\n                    (number-format\n                      stats.mean\n                      style=(get this.formattedStyle this.model.kpi.meta.format)\n                      maximumFractionDigits=2\n                      dashZero=false\n                    )\n                    '–'\n                  }}</div>\n                <div class='label'>National average for\n                  {{moment-format this.period 'MM/YYYY' 'YYYY-MM'}}</div>\n              </div>\n  \n              <div class='metric'>\n                <div class='number'>\n                  {{#if\n                    (or\n                      (get stats.rankings '0.value')\n                      (eq (get stats.rankings '0.value') 0)\n                    )\n                  }}\n                    {{number-format\n                      stats.rankings\n                      '0.value'\n                      style=(get this.formattedStyle this.model.kpi.meta.format)\n                      maximumFractionDigits=2\n                      dashZero=false\n                    }}\n                  {{else}}\n                    –\n                  {{/if}}\n                </div>\n                <div class='label'>{{this.sessionData.branch.name}}\n                  for\n                  {{moment-format\n                    this.sessionData.period\n                    'MM/YYYY'\n                    'YYYY-MM'\n                  }}</div>\n              </div>\n            </section>\n          {{/let}}\n  \n          <section class='kpi-chart'>\n            <Charts::LineChart\n              @metrics={{this.model.kpi}}\n              @series={{this.model.series}}\n              @period={{this.chartPeriod}}\n              @reuse={{false}}\n            />\n          </section>\n  \n          {{#if this.selectedPeriodData}}\n            {{#let\n              (get this.selectedPeriodData.periodTypes this.periodType)\n              as |calculation|\n            }}\n              <section class='breakdown'>\n                <CalculationBreakdown\n                  @calc={{this.model.kpi.meta.calculationSteps}}\n                  @inputs={{calculation.inputs}}\n                  @result={{calculation.value}}\n                  @format={{get this.formattedStyle this.model.kpi.meta.format}}\n                />\n              </section>\n            {{/let}}\n          {{else}}\n            <section class='breakdown breakdown--no-data'>\n              No calculation data for current period\n            </section>\n          {{/if}}\n  \n          {{#if\n            (or this.model.kpi.meta.description this.model.kpi.meta.strategies)\n          }}\n            <section class='kpi-information'>\n              {{#if this.model.kpi.meta.description}}\n                <div>\n                  <h2>Explanation</h2>\n                  <MarkdownToHtml @markdown={{this.model.kpi.meta.description}} />\n                </div>\n              {{/if}}\n  \n              {{#if this.model.kpi.meta.strategies}}\n                <div>\n                  <h2>Strategies</h2>\n                  <MarkdownToHtml @markdown={{this.model.kpi.meta.strategies}} />\n                </div>\n              {{/if}}\n            </section>\n          {{/if}}\n        {{else}}\n          <p class='error-page__title'>There is no data to display for this\n            period.</p>\n        {{/unless}}\n      </article>\n    </section>\n  </article>\n  */\n  {\n    \"id\": \"d8BWObul\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom mb-3\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,2],null,[[\\\"@options\\\",\\\"@selected\\\",\\\"@class\\\"],[[30,0,[\\\"periodTypeOptions\\\"]],[30,0,[\\\"periodType\\\"]],\\\"float-end\\\"]],null],[1,\\\"\\\\n    \\\"],[10,\\\"h1\\\"],[14,0,\\\"h1\\\"],[12],[1,\\\"KPI Detail\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,\\\"section\\\"],[14,0,\\\"master-detail kpi-page\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"aside\\\"],[14,0,\\\"master-detail__master\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"model\\\",\\\"kpiMeta\\\"]]],null]],null],null,[[[1,\\\"          \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,10],null,[[\\\"@route\\\",\\\"@model\\\"],[\\\"entity.financials.reports.kpis.kpi\\\",[30,1,[\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n              \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n            \\\"]],[]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"article\\\"],[15,0,[29,[\\\"master-detail__detail kpi-page__detail\\\\n        \\\",[52,[30,0,[\\\"noData\\\"]],\\\"no-data error-page kpi-page--error\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"noData\\\"]]],[[[44,[[30,0,[\\\"currentStats\\\"]]],[[[1,\\\"          \\\"],[10,\\\"section\\\"],[14,0,\\\"stats\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"rankable\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"metric ranking\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"rankings\\\"]],[[[1,\\\"                    \\\"],[1,[28,[35,15],[[30,2,[\\\"rankings\\\"]],\\\"0.rank\\\"],null]],[10,\\\"sup\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,17],[[30,2,[\\\"rankings\\\"]],\\\"0.rank\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    –\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"Ranking out of\\\\n                  \\\"],[1,[28,[35,15],[[30,2,[\\\"rankings\\\"]],\\\"0.outOf\\\"],null]],[1,\\\"\\\\n                  entities\\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,[52,[30,2,[\\\"best\\\"]],[28,[37,18],[[30,2,[\\\"best\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"format\\\"]]],null],2,false]]],\\\"–\\\"]],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"National best for\\\\n                  \\\"],[1,[28,[35,19],[[30,0,[\\\"period\\\"]],\\\"MM/YYYY\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,[52,[30,2,[\\\"mean\\\"]],[28,[37,18],[[30,2,[\\\"mean\\\"]]],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"format\\\"]]],null],2,false]]],\\\"–\\\"]],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"National average for\\\\n                \\\"],[1,[28,[35,19],[[30,0,[\\\"period\\\"]],\\\"MM/YYYY\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"metric\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"number\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[28,[37,15],[[30,2,[\\\"rankings\\\"]],\\\"0.value\\\"],null],[28,[37,21],[[28,[37,15],[[30,2,[\\\"rankings\\\"]],\\\"0.value\\\"],null],0],null]],null],[[[1,\\\"                  \\\"],[1,[28,[35,18],[[30,2,[\\\"rankings\\\"]],\\\"0.value\\\"],[[\\\"style\\\",\\\"maximumFractionDigits\\\",\\\"dashZero\\\"],[[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"format\\\"]]],null],2,false]]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                  –\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"branch\\\",\\\"name\\\"]]],[1,\\\"\\\\n                for\\\\n                \\\"],[1,[28,[35,19],[[30,0,[\\\"sessionData\\\",\\\"period\\\"]],\\\"MM/YYYY\\\",\\\"YYYY-MM\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]],[1,\\\"\\\\n        \\\"],[10,\\\"section\\\"],[14,0,\\\"kpi-chart\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,22],null,[[\\\"@metrics\\\",\\\"@series\\\",\\\"@period\\\",\\\"@reuse\\\"],[[30,0,[\\\"model\\\",\\\"kpi\\\"]],[30,0,[\\\"model\\\",\\\"series\\\"]],[30,0,[\\\"chartPeriod\\\"]],false]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"selectedPeriodData\\\"]],[[[44,[[28,[37,15],[[30,0,[\\\"selectedPeriodData\\\",\\\"periodTypes\\\"]],[30,0,[\\\"periodType\\\"]]],null]],[[[1,\\\"            \\\"],[10,\\\"section\\\"],[14,0,\\\"breakdown\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,23],null,[[\\\"@calc\\\",\\\"@inputs\\\",\\\"@result\\\",\\\"@format\\\"],[[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"calculationSteps\\\"]],[30,3,[\\\"inputs\\\"]],[30,3,[\\\"value\\\"]],[28,[37,15],[[30,0,[\\\"formattedStyle\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"format\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]]]],[]],[[[1,\\\"          \\\"],[10,\\\"section\\\"],[14,0,\\\"breakdown breakdown--no-data\\\"],[12],[1,\\\"\\\\n            No calculation data for current period\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"description\\\"]],[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"strategies\\\"]]],null],[[[1,\\\"          \\\"],[10,\\\"section\\\"],[14,0,\\\"kpi-information\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"description\\\"]],[[[1,\\\"              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Explanation\\\"],[13],[1,\\\"\\\\n                \\\"],[8,[39,25],null,[[\\\"@markdown\\\"],[[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"description\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"strategies\\\"]],[[[1,\\\"              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Strategies\\\"],[13],[1,\\\"\\\\n                \\\"],[8,[39,25],null,[[\\\"@markdown\\\"],[[30,0,[\\\"model\\\",\\\"kpi\\\",\\\"meta\\\",\\\"strategies\\\"]]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"error-page__title\\\"],[12],[1,\\\"There is no data to display for this\\\\n          period.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"kpi\\\",\\\"stats\\\",\\\"calculation\\\"],false,[\\\"article\\\",\\\"header\\\",\\\"radio-slider\\\",\\\"h1\\\",\\\"section\\\",\\\"aside\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"li\\\",\\\"link-to\\\",\\\"if\\\",\\\"unless\\\",\\\"let\\\",\\\"div\\\",\\\"get\\\",\\\"sup\\\",\\\"ordinal-for\\\",\\\"number-format\\\",\\\"moment-format\\\",\\\"or\\\",\\\"eq\\\",\\\"charts/line-chart\\\",\\\"calculation-breakdown\\\",\\\"h2\\\",\\\"markdown-to-html\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/financials/reports/kpis/kpi.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/module-dashboard\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (gt this.sessionData.entities.length 1)}}\n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'module-navigation/module-dashboard'}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n  {{/if}}\n  <main class='page__container'>\n    <div class='dashboard-container'>\n      <div class='dashboard-section__modules'>\n        {{#if this.modules.allowedModules}}\n          <div class='dashboard-section__modules-container'>\n            <div class='dashboard-section__modules-row'>\n              {{#each this.modules.allowedModules as |module|}}\n                <span role='button' {{on 'click' (fn this.goToModule module)}}>\n                  <DashboardItem::Module @module={{module}} />\n                </span>\n              {{/each}}\n            </div>\n          </div>\n        {{else}}\n          <h2 class='h2'>\n            Your entity doesn't have any modules yet\n          </h2>\n        {{/if}}\n      </div>\n    </div>\n  </main>\n  */\n  {\n    \"id\": \"S+DbdrNd\",\n    \"block\": \"[[[41,[28,[37,1],[[30,0,[\\\"sessionData\\\",\\\"entities\\\",\\\"length\\\"]],1],null],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/module-dashboard\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"main\\\"],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"dashboard-container\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"dashboard-section__modules\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"modules\\\",\\\"allowedModules\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"dashboard-section__modules-container\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"dashboard-section__modules-row\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"modules\\\",\\\"allowedModules\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[11,1],[24,\\\"role\\\",\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"goToModule\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n                \\\"],[8,[39,11],null,[[\\\"@module\\\"],[[30,1]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"\\\\n          Your entity doesn't have any modules yet\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"module\\\"],false,[\\\"if\\\",\\\"gt\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"main\\\",\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"span\\\",\\\"on\\\",\\\"fn\\\",\\\"dashboard-item/module\\\",\\\"h2\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/module-dashboard.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if (media 'isDesktop')}}\n    <div class='page__container'>\n      <ModuleNavigation::Settings />\n  \n      <main class='page__container-content gap-zendesk-support-widget'>\n        {{outlet}}\n      </main>\n    </div>\n  {{else}}\n    <ToElsewhere\n      @named='mobile-side-menu-content'\n      @send={{component 'module-navigation/settings'}}\n    />\n    <ToElsewhere\n      @named='mobile-title-bar-left-content'\n      @send={{component 'mobile-title-bar/burger-button'}}\n    />\n    <main class='page__container-content'>\n      {{outlet}}\n    </main>\n  {{/if}}\n  */\n  {\n    \"id\": \"3aGiyhar\",\n    \"block\": \"[[[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,null,null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content gap-zendesk-support-widget\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,6],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[8,[39,7],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-side-menu-content\\\",[50,\\\"module-navigation/settings\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[8,[39,7],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-left-content\\\",[50,\\\"mobile-title-bar/burger-button\\\",0,null,null]]],null],[1,\\\"\\\\n  \\\"],[10,\\\"main\\\"],[14,0,\\\"page__container-content\\\"],[12],[1,\\\"\\\\n    \\\"],[46,[28,[37,6],null,null],null,null,null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"media\\\",\\\"div\\\",\\\"module-navigation/settings\\\",\\\"main\\\",\\\"component\\\",\\\"-outlet\\\",\\\"to-elsewhere\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/auto-mapping-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"afOjJVir\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/auto-mapping-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/auto-mapping\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Auto mapping')\n      }}\n    />\n  {{/unless}}\n  <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Auto mapping'}}</h2>\n      {{/if}}\n    </header>\n    <form class='block-module width--large'>\n      <div class='block-module__header'>\n        <div>\n          <LoadingButton\n            @isLoading={{this.isSaving}}\n            @action={{action 'save'}}\n            @class='button float-end'\n            @buttonText={{t 'common.Save'}}\n            data-test-save-button\n          />\n          <h2 class='h2'>{{t\n              'entity.settings.auto-mapping.Bill Auto Mapping Directives'\n            }}</h2>\n        </div>\n  \n        <p>\n          {{t\n            'entity.settings.auto-mapping.theDirectivesBelowWillBeUsedWhenAnBillIsImported'\n          }}\n          {{! TODO make sure there is an auto-map button on the invoices }}\n        </p>\n        <p>\n          {{t\n            'entity.settings.auto-mapping.billReferenceDirectivesTakePrecedenceOverMerchantAccountOnes'\n          }}\n        </p>\n      </div>\n  \n      <div class='{{if this.showInvalid \"show-invalid\"}}'>\n        <div class='float-end'>\n          <span>{{t 'entity.settings.auto-mapping.Directive Type'}}:</span>\n          <RadioSlider\n            @options={{this.displayOptions}}\n            @selected={{this.selectedDisplayOption}}\n            @class='button--spaced'\n            data-test-toggle-directive-type\n          />\n        </div>\n  \n        {{#if (eq this.selectedDisplayOption 'reference')}}\n          {{! Reference type directives }}\n          <div>\n            <span class='h3 no-wrap'>{{t\n                'entity.settings.auto-mapping.Bill Reference Directives'\n              }}</span>\n            <button\n              class='text-button text-button--add button--spaced'\n              data-test-add-reference-directive=''\n              type='submit'\n              {{action 'addDirective' 'reference'}}\n            >{{t 'common.Add'}}</button>\n          </div>\n  \n          <br />\n  \n          <div class='auto-mapping__directive-section'>\n            {{#unless\n              (or\n                this.openReferenceDirectives.length\n                this.closedReferenceDirectives.length\n              )\n            }}\n              {{! If there are no reference directives, then show a message explainin what they are }}\n              <span data-test-no-reference-directives-message=''>\n                <p>{{t\n                    'entity.settings.auto-mapping.billReferenceDirectivesCauseNewBillsToBeAutoMappedToAProjectIfTheirReferenceMatchesSomeTextYouProvide'\n                  }}</p>\n                <p>{{t\n                    'entity.settings.auto-mapping.youDonNotHaveAnyBillReferenceDirectivesYet'\n                  }}</p>\n              </span>\n            {{else}}\n              {{! Show the list of open reference directives }}\n              {{#each this.openReferenceDirectives as |directive|}}\n                <br />\n                <AutoMapping::DirectivePm\n                  @class={{if\n                    (get this.duplicates directive.lowerValue)\n                    'invalid'\n                  }}\n                  @directive={{directive}}\n                  @projects={{this.model.projects}}\n                  @delete={{action this.set 'readyToDelete' directive}}\n                  data-test-directive='reference'\n                />\n              {{/each}}\n  \n              {{! Show a title for directives with projects that are not open }}\n              {{#if this.closedReferenceDirectives.length}}\n                <div class='h4' data-test-project-open-separator=''>\n                  {{! Show a separating line if there are directives with open projects to separate from }}\n                  {{#if this.openReferenceDirectives.length}}<br /><hr />{{/if}}\n                  {{t\n                    'entity.settings.auto-mapping.billReferenceDirectivesForClosedProjects'\n                  }}\n                  <br />\n                </div>\n              {{/if}}\n  \n              {{! Show the list of closed reference directives }}\n              {{#each this.closedReferenceDirectives as |directive|}}\n                <br />\n                <AutoMapping::DirectivePm\n                  @class={{if\n                    (get this.duplicates directive.lowerValue)\n                    'invalid'\n                  }}\n                  @directive={{directive}}\n                  @projects={{this.model.projects}}\n                  @delete={{action this.set 'readyToDelete' directive}}\n                  data-test-directive='reference'\n                />\n              {{/each}}\n            {{/unless}}\n          </div>\n  \n        {{else if (eq this.selectedDisplayOption 'account')}}\n          {{! Account type directives }}\n          <div>\n            <span class='h3'>{{t\n                'entity.settings.auto-mapping.Merchant Account Directives'\n              }}</span>\n            <button\n              class='text-button text-button--add button--spaced'\n              data-test-add-account-directive=''\n              type='submit'\n              {{action 'addDirective' 'account'}}\n            >{{t 'common.Add'}}</button>\n          </div>\n  \n          <br />\n  \n          <div class='auto-mapping__directive-section'>\n            {{#unless this.model.merchantAccounts.length}}\n              {{! Only show a message if there are no merchant accounts to pick from }}\n              <p>{{t\n                  'entity.settings.auto-mapping.weHavenNotSeenAnySuitableMerchantAccountsOnYourBillsYet'\n                }}\n                {{t\n                  'entity.settings.auto-mapping.thisSectionWillBecomeAvailableOnceWeDo'\n                }}\n                {{t\n                  'entity.settings.auto-mapping.theAccountsMustBeProjectSpecificSubAccounts'\n                }}</p>\n            {{else}}\n  \n              {{#unless this.accountDirectives.length}}\n                {{! If there are no account directives, show a message explaining them }}\n                <span data-test-no-account-directives-message=''>\n                  <p>{{t\n                      'entity.settings.auto-mapping.merchantAccountDirectiveCauseNewBillsToBeAutoMappedToAProjectIfTheyBilledToASpecificMerchantAccount'\n                    }}</p>\n                  <p>{{t\n                      'entity.settings.auto-mapping.youDonNotHaveAnyMerchantAccountDirectivesYet'\n                    }}</p>\n                </span>\n              {{else}}\n                {{! Show a list of account directives for open projects }}\n                {{#each this.openAccountDirectives as |directive|}}\n                  <br />\n                  <AutoMapping::DirectivePm\n                    @directive={{directive}}\n                    @projects={{this.model.projects}}\n                    @allAccounts={{this.model.merchantAccounts}}\n                    @unusedAccounts={{this.unusedAccounts}}\n                    @showInvalid={{this.showInvalid}}\n                    @delete={{action this.set 'readyToDelete' directive}}\n                    data-test-directive='account'\n                  />\n                {{/each}}\n  \n                {{! Show a title for directives with projects that are not open }}\n                {{#if this.closedAccountDirectives.length}}\n                  <div class='h4' data-test-project-open-separator=''>\n                    {{! Show a separating line if there are directives with open projects to separate from }}\n                    {{#if this.openAccountDirectives.length}}<br /><hr />{{/if}}\n                    {{t\n                      'entity.settings.auto-mapping.merchantAccountDirectivesForClosedProjects'\n                    }}\n                    <br />\n                  </div>\n  \n                  {{! Show a list of account directives for closed projects }}\n                  {{#each this.closedAccountDirectives as |directive|}}\n                    <br />\n                    <AutoMapping::DirectivePm\n                      @directive={{directive}}\n                      @projects={{this.model.projects}}\n                      @allAccounts={{this.model.merchantAccounts}}\n                      @unusedAccounts={{this.unusedAccounts}}\n                      @showInvalid={{this.showInvalid}}\n                      @delete={{action this.set 'readyToDelete' directive}}\n                      data-test-directive='account'\n                    />\n                  {{/each}}\n                {{/if}}\n              {{/unless}}\n            {{/unless}}\n          </div>\n        {{/if}}\n      </div>\n  \n      <footer class='block-module__footer'>\n        <LoadingButton\n          @isLoading={{this.isSaving}}\n          @action={{action 'save'}}\n          @class='button float-end'\n          @buttonText={{t 'common.Save'}}\n          data-test-save-button\n        />\n      </footer>\n    </form>\n  \n    {{#if this.readyToDelete}}\n      <ModalDialog\n        @overlayClass='modal'\n        @translucentOverlay={{true}}\n        @containerClass='block-module'\n        @onClose={{action this.set 'readyToDelete' null}}\n      >\n        <p>{{t\n            'entity.settings.auto-mapping.areYouSureYouWantToDeleteThisDirective'\n          }}\n          {{t 'common.This action cannot be undone'}}</p>\n        <LoadingButton\n          @class='float-end button button--spaced button--delete'\n          @action={{action 'deleteDirective' this.readyToDelete}}\n          @buttonText={{t 'common.Delete'}}\n          data-test-confirm-delete-button\n        />\n        <button\n          class='float-end button button--spaced button--plain'\n          type='button'\n          {{action this.set 'readyToDelete' null}}\n        >{{t 'common.Cancel'}}</button>\n      </ModalDialog>\n    {{/if}}\n  \n  </article>\n  */\n  {\n    \"id\": \"vf4NQug+\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Auto mapping\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Auto mapping\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"form\\\"],[14,0,\\\"block-module width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"block-module__header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[8,[39,11],[[24,\\\"data-test-save-button\\\",\\\"\\\"]],[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@class\\\",\\\"@buttonText\\\"],[[30,0,[\\\"isSaving\\\"]],[28,[37,12],[[30,0],\\\"save\\\"],null],\\\"button float-end\\\",[28,[37,4],[\\\"common.Save\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.Bill Auto Mapping Directives\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.theDirectivesBelowWillBeUsedWhenAnBillIsImported\\\"],null]],[1,\\\"\\\\n\\\"],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.billReferenceDirectivesTakePrecedenceOverMerchantAccountOnes\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[15,0,[29,[[52,[30,0,[\\\"showInvalid\\\"]],\\\"show-invalid\\\"]]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end\\\"],[12],[1,\\\"\\\\n        \\\"],[10,1],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.Directive Type\\\"],null]],[1,\\\":\\\"],[13],[1,\\\"\\\\n        \\\"],[8,[39,15],[[24,\\\"data-test-toggle-directive-type\\\",\\\"\\\"]],[[\\\"@options\\\",\\\"@selected\\\",\\\"@class\\\"],[[30,0,[\\\"displayOptions\\\"]],[30,0,[\\\"selectedDisplayOption\\\"]],\\\"button--spaced\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,16],[[30,0,[\\\"selectedDisplayOption\\\"]],\\\"reference\\\"],null],[[[1,\\\"        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"h3 no-wrap\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.Bill Reference Directives\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--add button--spaced\\\"],[24,\\\"data-test-add-reference-directive\\\",\\\"\\\"],[24,4,\\\"submit\\\"],[4,[38,12],[[30,0],\\\"addDirective\\\",\\\"reference\\\"],null],[12],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"auto-mapping__directive-section\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,19],[[30,0,[\\\"openReferenceDirectives\\\",\\\"length\\\"]],[30,0,[\\\"closedReferenceDirectives\\\",\\\"length\\\"]]],null]],[[[1,\\\"            \\\"],[10,1],[14,\\\"data-test-no-reference-directives-message\\\",\\\"\\\"],[12],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.billReferenceDirectivesCauseNewBillsToBeAutoMappedToAProjectIfTheirReferenceMatchesSomeTextYouProvide\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.youDonNotHaveAnyBillReferenceDirectivesYet\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,21],[[28,[37,21],[[30,0,[\\\"openReferenceDirectives\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[8,[39,22],[[24,\\\"data-test-directive\\\",\\\"reference\\\"]],[[\\\"@class\\\",\\\"@directive\\\",\\\"@projects\\\",\\\"@delete\\\"],[[52,[28,[37,23],[[30,0,[\\\"duplicates\\\"]],[30,1,[\\\"lowerValue\\\"]]],null],\\\"invalid\\\"],[30,1],[30,0,[\\\"model\\\",\\\"projects\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",[30,1]],null]]],null],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"closedReferenceDirectives\\\",\\\"length\\\"]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"h4\\\"],[14,\\\"data-test-project-open-separator\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                \\\"],[41,[30,0,[\\\"openReferenceDirectives\\\",\\\"length\\\"]],[[[10,\\\"br\\\"],[12],[13],[10,\\\"hr\\\"],[12],[13]],[]],null],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.billReferenceDirectivesForClosedProjects\\\"],null]],[1,\\\"\\\\n                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,21],[[28,[37,21],[[30,0,[\\\"closedReferenceDirectives\\\"]]],null]],null],null,[[[1,\\\"              \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n              \\\"],[8,[39,22],[[24,\\\"data-test-directive\\\",\\\"reference\\\"]],[[\\\"@class\\\",\\\"@directive\\\",\\\"@projects\\\",\\\"@delete\\\"],[[52,[28,[37,23],[[30,0,[\\\"duplicates\\\"]],[30,2,[\\\"lowerValue\\\"]]],null],\\\"invalid\\\"],[30,2],[30,0,[\\\"model\\\",\\\"projects\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",[30,2]],null]]],null],[1,\\\"\\\\n\\\"]],[2]],null]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,0,[\\\"selectedDisplayOption\\\"]],\\\"account\\\"],null],[[[1,\\\"        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.Merchant Account Directives\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button text-button--add button--spaced\\\"],[24,\\\"data-test-add-account-directive\\\",\\\"\\\"],[24,4,\\\"submit\\\"],[4,[38,12],[[30,0],\\\"addDirective\\\",\\\"account\\\"],null],[12],[1,[28,[35,4],[\\\"common.Add\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"auto-mapping__directive-section\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"merchantAccounts\\\",\\\"length\\\"]]],[[[1,\\\"            \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.weHavenNotSeenAnySuitableMerchantAccountsOnYourBillsYet\\\"],null]],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.thisSectionWillBecomeAvailableOnceWeDo\\\"],null]],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.theAccountsMustBeProjectSpecificSubAccounts\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"accountDirectives\\\",\\\"length\\\"]]],[[[1,\\\"              \\\"],[10,1],[14,\\\"data-test-no-account-directives-message\\\",\\\"\\\"],[12],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.merchantAccountDirectiveCauseNewBillsToBeAutoMappedToAProjectIfTheyBilledToASpecificMerchantAccount\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.youDonNotHaveAnyMerchantAccountDirectivesYet\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,21],[[28,[37,21],[[30,0,[\\\"openAccountDirectives\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[8,[39,22],[[24,\\\"data-test-directive\\\",\\\"account\\\"]],[[\\\"@directive\\\",\\\"@projects\\\",\\\"@allAccounts\\\",\\\"@unusedAccounts\\\",\\\"@showInvalid\\\",\\\"@delete\\\"],[[30,3],[30,0,[\\\"model\\\",\\\"projects\\\"]],[30,0,[\\\"model\\\",\\\"merchantAccounts\\\"]],[30,0,[\\\"unusedAccounts\\\"]],[30,0,[\\\"showInvalid\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",[30,3]],null]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"closedAccountDirectives\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"h4\\\"],[14,\\\"data-test-project-open-separator\\\",\\\"\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\"                  \\\"],[41,[30,0,[\\\"openAccountDirectives\\\",\\\"length\\\"]],[[[10,\\\"br\\\"],[12],[13],[10,\\\"hr\\\"],[12],[13]],[]],null],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.merchantAccountDirectivesForClosedProjects\\\"],null]],[1,\\\"\\\\n                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,21],[[28,[37,21],[[30,0,[\\\"closedAccountDirectives\\\"]]],null]],null],null,[[[1,\\\"                  \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[8,[39,22],[[24,\\\"data-test-directive\\\",\\\"account\\\"]],[[\\\"@directive\\\",\\\"@projects\\\",\\\"@allAccounts\\\",\\\"@unusedAccounts\\\",\\\"@showInvalid\\\",\\\"@delete\\\"],[[30,4],[30,0,[\\\"model\\\",\\\"projects\\\"]],[30,0,[\\\"model\\\",\\\"merchantAccounts\\\"]],[30,0,[\\\"unusedAccounts\\\"]],[30,0,[\\\"showInvalid\\\"]],[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",[30,4]],null]]],null],[1,\\\"\\\\n\\\"]],[4]],null]],[]],null]],[]]]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]],null]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,11],[[24,\\\"data-test-save-button\\\",\\\"\\\"]],[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@class\\\",\\\"@buttonText\\\"],[[30,0,[\\\"isSaving\\\"]],[28,[37,12],[[30,0],\\\"save\\\"],null],\\\"button float-end\\\",[28,[37,4],[\\\"common.Save\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"readyToDelete\\\"]],[[[1,\\\"    \\\"],[8,[39,26],null,[[\\\"@overlayClass\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\",\\\"@onClose\\\"],[\\\"modal\\\",true,\\\"block-module\\\",[28,[37,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",null],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.auto-mapping.areYouSureYouWantToDeleteThisDirective\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.This action cannot be undone\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,11],[[24,\\\"data-test-confirm-delete-button\\\",\\\"\\\"]],[[\\\"@class\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"float-end button button--spaced button--delete\\\",[28,[37,12],[[30,0],\\\"deleteDirective\\\",[30,0,[\\\"readyToDelete\\\"]]],null],[28,[37,4],[\\\"common.Delete\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end button button--spaced button--plain\\\"],[24,4,\\\"button\\\"],[4,[38,12],[[30,0],[30,0,[\\\"set\\\"]],\\\"readyToDelete\\\",null],null],[12],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"directive\\\",\\\"directive\\\",\\\"directive\\\",\\\"directive\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"form\\\",\\\"div\\\",\\\"loading-button\\\",\\\"action\\\",\\\"p\\\",\\\"span\\\",\\\"radio-slider\\\",\\\"eq\\\",\\\"button\\\",\\\"br\\\",\\\"or\\\",\\\"each\\\",\\\"-track-array\\\",\\\"auto-mapping/directive-pm\\\",\\\"get\\\",\\\"hr\\\",\\\"footer\\\",\\\"modal-dialog\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/auto-mapping.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/chart-of-accounts\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>\n        {{t 'entity.settings.chart-of-accounts.Chart of accounts'}}\n      </h2>\n    </header>\n    {{outlet}}\n  </article>\n  */\n  {\n    \"id\": \"2FfQmBsT\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,3],[\\\"entity.settings.chart-of-accounts.Chart of accounts\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"t\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/chart-of-accounts.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/chart-of-accounts/chart-of-account\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-3 ms-1 mt-1'>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    </div>\n    <PtlForm class='width--medium'>\n      <div class='d-flex mb-3 align-items-center'>\n        <h3 class='m-0'>{{t 'common.Details'}}</h3>\n        {{#if this.showSyncIcon}}\n          <FaIcon\n            @title='This account is synced with your accounting package'\n            class='ms-3'\n            @icon='sync'\n          />\n        {{/if}}\n      </div>\n      {{#let\n        (changeset this.glAccount this.glAccountValidationMap)\n        as |glAccountModel|\n      }}\n  \n        {{#if (includes this.accountingPlatform.glAccountVisibleFields 'name')}}\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Name'}}\n            @key='name'\n            @model={{glAccountModel}}\n            @required={{true}}\n            @forceValidationVisible={{gt this.saveAccount.performCount 0}}\n            disabled={{this.disableForm}}\n          />\n        {{/if}}\n        {{#if (includes this.accountingPlatform.glAccountVisibleFields 'code')}}\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Code'}}\n            @key='code'\n            @model={{glAccountModel}}\n            @required={{true}}\n            @forceValidationVisible={{gt this.saveAccount.performCount 0}}\n            disabled={{this.disableForm}}\n          />\n        {{/if}}\n  \n        {{#if\n          (includes this.accountingPlatform.glAccountVisibleFields 'taxRate')\n        }}\n          <PtlInput\n            @type='percentage'\n            @label={{t 'common.Tax rate'}}\n            @key='taxRate'\n            @model={{glAccountModel}}\n            @forceValidationVisible={{gt this.saveAccount.performCount 0}}\n            disabled={{this.disableForm}}\n          />\n        {{/if}}\n        {{#if this.canEditGlAccounts}}\n          <div class='d-flex align-items-centers'>\n            {{#unless\n              (or\n                this.glAccount.isNew\n                this.glAccount.isLinkedToActiveAccountingPlatform\n              )\n            }}\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{or\n                  this.deleteAccount.isRunning\n                  this.saveAccount.isRunning\n                }}\n                {{on 'click' (perform this.deleteAccount)}}\n              >\n                {{#if this.deleteAccount.isRunning}}\n                  <span class='spinner-border spinner-border-sm'></span>\n                  &nbsp;&nbsp;{{t 'common.Deleting'}}&hellip;\n                {{else}}\n                  {{t\n                    'entity.settings.chart-of-accounts.chart-of-account.Delete account'\n                  }}\n                {{/if}}\n              </button>\n            {{/unless}}\n            <div class='float-end ms-auto'>\n              {{#if\n                (and\n                  this.accountingPlatform.isActive\n                  this.glAccount.isLinkedToActiveAccountingPlatform\n                )\n              }}\n                <div>\n                  <a\n                    href={{this.glAccount.viewGlAccountUrl}}\n                    class='btn btn-primary'\n                    target='_blank'\n                    rel='noopener noreferrer'\n                    role='button'\n                    aria-disabled='true'\n                  >\n                    {{t\n                      'entity.settings.chart-of-accounts.chart-of-account.editAccountInLabel'\n                      label=this.accountingPlatform.label\n                    }}\n                  </a>\n                </div>\n              {{else}}\n                <button\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{or\n                    this.deleteAccount.isRunning\n                    this.saveAccount.isRunning\n                  }}\n                  {{on 'click' (perform this.saveAccount glAccountModel)}}\n                >\n                  {{#if this.saveAccount.isRunning}}\n                    <span class='spinner-border spinner-border-sm'></span>\n                    &nbsp;&nbsp;{{t 'common.Saving'}}\n                    &hellip;\n                  {{else}}\n                    {{if\n                      this.glAccount.isNew\n                      (t 'common.Create')\n                      (t 'common.Save')\n                    }}\n                  {{/if}}\n                </button>\n              {{/if}}\n            </div>\n          </div>\n        {{/if}}\n      {{/let}}\n    </PtlForm>\n  {{/if}}\n  */\n  {\n    \"id\": \"+YUTDy2b\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"width--medium\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex mb-3 align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showSyncIcon\\\"]],[[[1,\\\"        \\\"],[8,[39,7],[[24,0,\\\"ms-3\\\"]],[[\\\"@title\\\",\\\"@icon\\\"],[\\\"This account is synced with your accounting package\\\",\\\"sync\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,9],[[30,0,[\\\"glAccount\\\"]],[30,0,[\\\"glAccountValidationMap\\\"]]],null]],[[[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"name\\\"],null],[[[1,\\\"        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"name\\\",[30,1],true,[28,[37,12],[[30,0,[\\\"saveAccount\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,10],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"code\\\"],null],[[[1,\\\"        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Code\\\"],null],\\\"code\\\",[30,1],true,[28,[37,12],[[30,0,[\\\"saveAccount\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,10],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"taxRate\\\"],null],[[[1,\\\"        \\\"],[8,[39,11],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,6],[\\\"common.Tax rate\\\"],null],\\\"taxRate\\\",[30,1],[28,[37,12],[[30,0,[\\\"saveAccount\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"canEditGlAccounts\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,14],[[30,0,[\\\"glAccount\\\",\\\"isNew\\\"]],[30,0,[\\\"glAccount\\\",\\\"isLinkedToActiveAccountingPlatform\\\"]]],null]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,14],[[30,0,[\\\"deleteAccount\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveAccount\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"deleteAccount\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteAccount\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.chart-of-accounts.chart-of-account.Delete account\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,0],[14,0,\\\"float-end ms-auto\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,19],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[30,0,[\\\"glAccount\\\",\\\"isLinkedToActiveAccountingPlatform\\\"]]],null],[[[1,\\\"              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,3],[15,6,[30,0,[\\\"glAccount\\\",\\\"viewGlAccountUrl\\\"]]],[14,0,\\\"btn btn-primary\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"entity.settings.chart-of-accounts.chart-of-account.editAccountInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[28,[37,14],[[30,0,[\\\"deleteAccount\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveAccount\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveAccount\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveAccount\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"\\\\n                  …\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[52,[30,0,[\\\"glAccount\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"common.Create\\\"],null],[28,[37,6],[\\\"common.Save\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]]],[\\\"glAccountModel\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"let\\\",\\\"changeset\\\",\\\"includes\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"unless\\\",\\\"or\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"span\\\",\\\"and\\\",\\\"a\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/chart-of-accounts/chart-of-account.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/chart-of-accounts/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n    {{#if (and this.isEditable this.model.glAccounts.last.value.length)}}\n      <div class='flex-grow-1'>\n        <button\n          class='btn btn-link text-danger text-decoration-underline float-start'\n          type='button'\n          {{on 'click' (fn (mut this.isDeletingAccounts) true)}}\n          disabled={{or (not this.selectedAccountIds.size) this.isLoading}}\n        >\n          {{t 'common.Delete'}}\n        </button>\n      </div>\n    {{/if}}\n  \n    <input\n      class='form-control m-1 w-auto'\n      placeholder={{t 'common.Search'}}\n      value={{this.searchString}}\n      data-test-gl-account-search\n      readonly={{this.isLoading}}\n      {{on 'input' (perform this.onChangeSearchTerm)}}\n      type='search'\n      autofocus='true'\n    />\n  \n    {{#if this.isEditable}}\n      {{#if this.accountingPlatform.isActive}}\n        <button\n          type='button'\n          class='btn btn-primary text-white text-nowrap m-1'\n          disabled={{this.syncWithAccountingPackage.isRunning}}\n          {{on 'click' (perform this.syncWithAccountingPackage)}}\n        >\n          {{#if this.syncWithAccountingPackage.isRunning}}\n            {{t 'common.Syncing'}}&hellip;\n          {{else}}\n            {{t 'common.syncWithLabel' label=this.accountingPlatform.label}}\n          {{/if}}\n        </button>\n      {{/if}}\n      <button\n        type='button'\n        class='btn btn-success text-white text-nowrap m-1'\n        disabled={{this.isLoading}}\n        {{on 'click' this.addNewGlAccount}}\n        data-test-add-gl-account\n      >\n        <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n      </button>\n    {{/if}}\n  </div>\n  \n  <div class='gl-accounts__table-container'>\n    <PaginationTable\n      @tableHeader={{this.tableHeader}}\n      @tableData={{this.tableData}}\n      @noDataText={{t 'entity.settings.chart-of-accounts.No accounts'}}\n      @isLoading={{this.model.glAccounts.isRunning}}\n      @pageSizes={{this.model.pageSizes}}\n      @pageSize={{this.model.pageSize}}\n      @pageIndex={{this.model.pageNumber}}\n      @onChangePageIndex={{this.onChangePageIndex}}\n      @onChangePageSize={{this.onChangePageSize}}\n      @totalRecords={{this.totalRecords}}\n      @class='table-bordered'\n    />\n  </div>\n  \n  {{#if this.isDeletingAccounts}}\n    <ModalDialog\n      @overlayClass='modal'\n      @containerClass='block-module'\n      @translucentOverlay={{true}}\n      @onClose={{fn (mut this.isDeletingAccounts) false}}\n    >\n      <p>\n        {{t\n          'entity.settings.chart-of-accounts.areYouSureYouWantToDeleteXGlAccounts'\n          number=this.selectedAccountIds.size\n          accounts=(pluralize this.selectedAccountIds.size 'account')\n        }}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          <button\n            class='btn btn-danger text-white ms-2'\n            type='button'\n            disabled={{this.deleteAccounts.isRunning}}\n            {{on 'click' (perform this.deleteAccounts)}}\n          >\n            {{#if this.deleteAccounts.isRunning}}\n              {{t 'common.Deleting'}}&hellip;\n            {{else}}\n              {{t 'common.Delete'}}\n            {{/if}}\n          </button>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.deleteAccounts.isRunning}}\n            {{on 'click' (fn (mut this.isDeletingAccounts) false)}}\n          >\n            {{t 'common.Cancel'}}\n          </button>\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"INNUDBRB\",\n    \"block\": \"[[[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"isEditable\\\"]],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,4],[[28,[37,5],[[30,0,[\\\"selectedAccountIds\\\",\\\"size\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"isDeletingAccounts\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,9],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,9],[\\\"common.Search\\\"],null]],[16,2,[30,0,[\\\"searchString\\\"]]],[24,\\\"data-test-gl-account-search\\\",\\\"\\\"],[16,\\\"readonly\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,4,\\\"search\\\"],[4,[38,6],[\\\"input\\\",[28,[37,11],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"syncWithAccountingPackage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"syncWithAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"syncWithAccountingPackage\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,9],[\\\"common.Syncing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,9],[\\\"common.syncWithLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"data-test-add-gl-account\\\",\\\"\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"addNewGlAccount\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[8,[39,12],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,9],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"gl-accounts__table-container\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,13],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"tableHeader\\\"]],[30,0,[\\\"tableData\\\"]],[28,[37,9],[\\\"entity.settings.chart-of-accounts.No accounts\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageNumber\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeletingAccounts\\\"]],[[[1,\\\"  \\\"],[8,[39,14],null,[[\\\"@overlayClass\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\",\\\"@onClose\\\"],[\\\"modal\\\",\\\"block-module\\\",true,[28,[37,7],[[28,[37,8],[[30,0,[\\\"isDeletingAccounts\\\"]]],null],false],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,9],[\\\"entity.settings.chart-of-accounts.areYouSureYouWantToDeleteXGlAccounts\\\"],[[\\\"number\\\",\\\"accounts\\\"],[[30,0,[\\\"selectedAccountIds\\\",\\\"size\\\"]],[28,[37,16],[[30,0,[\\\"selectedAccountIds\\\",\\\"size\\\"]],\\\"account\\\"],null]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteAccounts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"deleteAccounts\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteAccounts\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,9],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteAccounts\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"isDeletingAccounts\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,9],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"if\\\",\\\"and\\\",\\\"button\\\",\\\"or\\\",\\\"not\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"t\\\",\\\"input\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"pagination-table\\\",\\\"modal-dialog\\\",\\\"p\\\",\\\"pluralize\\\",\\\"footer\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/chart-of-accounts/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/company-loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"soLo31TY\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/company-loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/company\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'entity.settings.company.Company details')\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Settings'}}</h2>\n      {{/if}}\n    </header>\n    {{#if (or this.model.companyLogo.isRunning this.model.glAccounts.isRunning)}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-3'>{{t 'entity.settings.company.Company details'}}</h3>\n        {{#let\n          (changeset this.model.entity this.entityValidationMap)\n          as |entityModel|\n        }}\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Name'}}\n            @key='name'\n            @model={{entityModel}}\n            @required={{true}}\n            disabled={{this.saveEntity.isRunning}}\n            @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'shared.contacts.Contact email'}}\n            @key='contactEmail'\n            @model={{entityModel}}\n            disabled={{this.saveEntity.isRunning}}\n            @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Address'}}\n            @key='address'\n            @model={{entityModel}}\n            disabled={{this.saveEntity.isRunning}}\n            @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{this.businessNumberLabel}}\n            @key='businessNumber'\n            @model={{entityModel}}\n            disabled={{this.saveEntity.isRunning}}\n            @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n          />\n          {{#if (not-eq this.model.entity.region 'AUS')}}\n            <PtlInput\n              @type='text'\n              @label={{this.taxNumberLabel}}\n              @key='taxNumber'\n              @model={{entityModel}}\n              disabled={{this.saveEntity.isRunning}}\n              @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n            />\n          {{/if}}\n  \n          {{#if\n            (includes\n              this.accountingPlatform.glAccountVisibleFields 'purchasesGlAccount'\n            )\n          }}\n            <PtlInput\n              @type='powerSelect'\n              @label={{t 'entity.settings.company.Default purchases account'}}\n              @key='purchasesGlAccount'\n              @optionKeys={{array 'code' 'name'}}\n              @options={{this.model.glAccounts.last.value}}\n              @model={{entityModel}}\n              @description={{t\n                'entity.settings.company.purchasesGlAccountDescription'\n              }}\n              @placeholder={{t 'entity.settings.company.No default account'}}\n              @searchEnabled={{true}}\n              @searchField='code'\n              @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n              @allowClear={{true}}\n              @disabled={{this.saveEntity.isRunning}}\n            />\n          {{/if}}\n  \n          {{#if\n            (includes\n              this.accountingPlatform.glAccountVisibleFields 'salesGlAccount'\n            )\n          }}\n            <PtlInput\n              @type='powerSelect'\n              @label={{t 'entity.settings.company.Default sales account'}}\n              @key='salesGlAccount'\n              @optionKeys={{array 'code' 'name'}}\n              @options={{this.model.glAccounts.last.value}}\n              @model={{entityModel}}\n              @description={{t\n                'entity.settings.company.salesGlAccountDescription'\n              }}\n              @placeholder={{t 'entity.settings.company.No default account'}}\n              @searchEnabled={{true}}\n              @searchField='code'\n              @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n              @allowClear={{true}}\n              @disabled={{this.saveEntity.isRunning}}\n            />\n          {{/if}}\n  \n          <h4>{{t 'common.Logo'}}</h4>\n          <div class='d-flex align-items-center' style='min-height: 60px;'>\n            {{#if entityModel.companyLogo}}\n              <img\n                class='d-inline-block overflow-hidden mb-2 me-2'\n                id='image-preview'\n                src={{entityModel.companyLogo.href}}\n                style='object-fit: contain; height:100px; width:100px'\n              />\n              <button\n                class='btn btn-link text-danger text-decoration-underline float-start'\n                type='button'\n                {{on 'click' (fn this.clearLogo entityModel)}}\n              >\n                {{t 'entity.settings.company.Clear logo'}}\n              </button>\n            {{else}}\n              <div\n                class='d-inline-block overflow-hidden bg-light rounded mb-2 me-2'\n                style='height:100px; width:100px'\n              ></div>\n              <input\n                aria-label='logo-upload'\n                type='file'\n                {{on 'change' (fn this.updateLogo entityModel)}}\n                accept='.jpg, .jpeg, .png, .gif'\n              />\n            {{/if}}\n          </div>\n  \n          <div class='d-flex flex-grow-1 mt-3'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveEntity.isRunning}}\n              {{on 'click' (perform this.saveEntity entityModel)}}\n            >\n              {{#if this.saveEntity.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t\n                  'entity.settings.company.Saving details'\n                }}&hellip;\n              {{else}}\n                {{t 'entity.settings.company.Save company details'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/let}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if\n      (and (includes-feature-flags 'userIsEntityAdmin') this.chargebee.ready)\n    }}\n      <PtlForm class='width--small mb-4'>\n        <h3 class='h3'>{{t 'entity.settings.company.Subscription'}}</h3>\n        <p class='p'>{{t\n            'entity.settings.company.clickTheButtonBelowToManageYourSubscription'\n          }}</p>\n        <div class='d-flex'>\n          <button\n            class='button'\n            type='button'\n            {{on 'click' (action 'openChargebee')}}\n          >{{t 'entity.settings.company.Manage your subscription'}}</button>\n        </div>\n      </PtlForm>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseInvoices')}}\n      <PtlForm class='width--small mb-4'>\n        {{#if this.model.invoiceOptions.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else}}\n          <h3 class='mb-3'>{{t 'entity.settings.company.Invoicing details'}}</h3>\n          {{#let\n            (changeset\n              this.model.invoiceOptions.last.value this.invoiceValidationMap\n            )\n            as |invoiceOptionsModel|\n          }}\n            <h4 class='mb-2'>{{t 'common.Invoice'}}</h4>\n            <div class='d-flex align-items-centers'>\n              <div class='me-2'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.Prefix'}}\n                  @key='invoicePrefix'\n                  @model={{invoiceOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.saveInvoiceOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.saveInvoiceOption.performCount\n                    0\n                  }}\n                />\n              </div>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.nextInvoiceNumber'}}\n                  @key='nextInvoiceNumber'\n                  @model={{invoiceOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.saveInvoiceOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.saveInvoiceOption.performCount\n                    0\n                  }}\n                />\n              </div>\n            </div>\n            <div class='mb-2'>\n              <label class='mb-1' for='paymentTermDay'>\n                {{t 'shared.contacts.Payment terms'}}\n              </label>\n              <div class='d-flex align-items-centers'>\n                <div class='me-2'>\n                  <PtlInput\n                    @type='number'\n                    @key='paymentTermDay'\n                    min='1'\n                    style='width: 75px;'\n                    @model={{invoiceOptionsModel}}\n                    @forceValidationVisible={{gt\n                      this.saveSupplier.performCount\n                      0\n                    }}\n                    disabled={{this.disableForm}}\n                  />\n                </div>\n                <div class='flex-grow-1'>\n                  <PtlInput\n                    @type='select'\n                    @key='paymentTermType'\n                    @selectNoBlankOption={{true}}\n                    @options={{this.paymentTermType}}\n                    @model={{invoiceOptionsModel}}\n                    @forceValidationVisible={{gt\n                      this.saveSupplier.performCount\n                      0\n                    }}\n                    disabled={{this.disableForm}}\n                  />\n                </div>\n              </div>\n            </div>\n            <PtlInput\n              @type='textarea'\n              @label={{t 'entity.settings.company.Footer notes'}}\n              @key='invoiceFooterNotes'\n              @model={{invoiceOptionsModel}}\n              disabled={{this.saveInvoiceOption.isRunning}}\n              @forceValidationVisible={{gt this.saveInvoiceOption.performCount 0}}\n            />\n            <h4 class='mb-2'>{{t 'common.Credit note'}}</h4>\n            <div class='d-flex align-items-centers'>\n              <div class='me-2'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.Prefix'}}\n                  @key='creditNotePrefix'\n                  @model={{invoiceOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.saveInvoiceOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.saveInvoiceOption.performCount\n                    0\n                  }}\n                />\n              </div>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.nextCreditNoteNumber'}}\n                  @key='nextCreditNoteNumber'\n                  @model={{invoiceOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.saveInvoiceOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.saveInvoiceOption.performCount\n                    0\n                  }}\n                />\n              </div>\n            </div>\n            <PtlInput\n              @type='textarea'\n              @label={{t 'entity.settings.company.Footer notes'}}\n              @key='creditNoteFooterNotes'\n              @model={{invoiceOptionsModel}}\n              disabled={{this.saveInvoiceOption.isRunning}}\n              @forceValidationVisible={{gt this.saveInvoiceOption.performCount 0}}\n            />\n            <div class='text-left'>\n              <button\n                class='btn btn-link m-0 p-0 text-decoration-underline'\n                {{on 'click' this.initInvoiceBreakdown}}\n                type='button'\n              >\n                {{t 'entity.settings.company.Default breakdown options'}}\n              </button>\n            </div>\n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveInvoiceOption.isRunning}}\n                {{on\n                  'click'\n                  (perform this.saveInvoiceOption invoiceOptionsModel)\n                }}\n              >\n                {{#if this.saveInvoiceOption.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{t 'entity.settings.company.Save invoicing details'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/let}}\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUsePurchaseOrders')}}\n      <PtlForm class='width--small mb-4'>\n        {{#if this.model.purchaseOrderOptions.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else}}\n          <h3 class='h3 mb-3'>{{t\n              'entity.settings.company.Purchase order details'\n            }}</h3>\n  \n          {{#let\n            (changeset\n              this.model.purchaseOrderOptions.last.value\n              this.purchaseOrderValidationMap\n            )\n            as |purchaseOrderOptionsModel|\n          }}\n            <div class='d-flex align-items-centers'>\n              <div class='me-2'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.Prefix'}}\n                  @key='prefix'\n                  @model={{purchaseOrderOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.savePurchaseOrderOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.savePurchaseOrderOption.performCount\n                    0\n                  }}\n                />\n              </div>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @type='text'\n                  @label={{t 'entity.settings.company.nextPurchaseOrderNumber'}}\n                  @key='nextPurchaseOrderNumber'\n                  @model={{purchaseOrderOptionsModel}}\n                  @toolTip=''\n                  disabled={{this.savePurchaseOrderOption.isRunning}}\n                  @forceValidationVisible={{gt\n                    this.savePurchaseOrderOption.performCount\n                    0\n                  }}\n                />\n              </div>\n            </div>\n            <PtlInput\n              @type='textarea'\n              @label={{t 'entity.settings.company.Footer notes'}}\n              @key='footerNotes'\n              @model={{purchaseOrderOptionsModel}}\n              disabled={{this.savePurchaseOrderOption.isRunning}}\n              @forceValidationVisible={{gt\n                this.savePurchaseOrderOption.performCount\n                0\n              }}\n            />\n            <PtlInput\n              @type='percentage'\n              @label={{t\n                'entity.settings.company.Percentage tolerance for matching'\n              }}\n              @key='matchingPercentageTolerance'\n              @model={{purchaseOrderOptionsModel}}\n              disabled={{this.savePurchaseOrderOption.isRunning}}\n              @forceValidationVisible={{gt\n                this.savePurchaseOrderOption.performCount\n                0\n              }}\n            />\n            <PtlInput\n              @type='currency'\n              @label={{t 'entity.settings.company.Amount tolerance for matching'}}\n              @key='matchingAmountTolerance'\n              @model={{purchaseOrderOptionsModel}}\n              disabled={{this.savePurchaseOrderOption.isRunning}}\n              @forceValidationVisible={{gt\n                this.savePurchaseOrderOption.performCount\n                0\n              }}\n            />\n  \n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.savePurchaseOrderOption.isRunning}}\n                {{on\n                  'click'\n                  (perform this.savePurchaseOrderOption purchaseOrderOptionsModel)\n                }}\n              >\n                {{#if this.savePurchaseOrderOption.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{t 'entity.settings.company.Save purchase order details'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/let}}\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canUseStagePayments')}}\n      <PtlForm class='width--small mb-4'>\n        {{#if this.model.stagePaymentOptions.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else}}\n          <h3 class='h3 mb-3'>\n            {{t 'entity.settings.company.Stage payment details'}}\n          </h3>\n          {{#let\n            (changeset\n              this.stagePaymentOption this.stagePaymentsOptionsValidationMap\n            )\n            as |stagePaymentOptionsModel|\n          }}\n            <PtlInput\n              @type='textarea'\n              @label={{t 'entity.settings.company.Default stage payment notes'}}\n              @key='footerNotes'\n              @model={{stagePaymentOptionsModel}}\n              disabled={{this.saveStagePaymentOptions.isRunning}}\n              @forceValidationVisible={{gt\n                this.saveStagePaymentOptions.performCount\n                0\n              }}\n            />\n  \n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveStagePaymentOptions.isRunning}}\n                {{on\n                  'click'\n                  (perform this.saveStagePaymentOptions stagePaymentOptionsModel)\n                }}\n              >\n                {{#if this.saveStagePaymentOptions.isRunning}}\n                  <span class='spinner-border spinner-border-sm'>\n                  </span>{{t 'common.Saving'}}&hellip;\n                {{else}}\n                  {{t 'entity.settings.company.Save stage payment details'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/let}}\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if (includes-feature-flags 'canManageProfitMargin')}}\n      <PtlForm class='width--small mb-4'>\n        {{#if this.model.loadEntityProfitMargin.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else}}\n  \n          {{#let\n            (changeset this.profitMargin this.profitMarginValidationMap)\n            as |profitMarginsModel|\n          }}\n            <h3 class='h3 mb-3'>{{t 'common.Profit margins'}}</h3>\n            <p>\n              {{t\n                'entity.settings.company.profitMarginsArePercentagesThatDefineYourDesiredProfitMarginsOnEachTypeOfSection'\n              }}\n              {{t\n                'entity.settings.company.generallyThisMarginWillBeUsedToCalculateQuoteFiguresFromABudget'\n              }}\n            </p>\n            <PtlInput\n              @type='select'\n              @toolTip={{t\n                'shared.profit-margins.marginIsThePercentageOfWhatYouAreChargingTheCustomerThatIsProfitMarkupIsThePercentageOfYourCostThatIsAddedToYourCostToGetProfit'\n              }}\n              @label={{t 'shared.profit-margins.Profit type'}}\n              @key='profitType'\n              @required={{true}}\n              @options={{this.profitTypes}}\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n              @selectNoBlankOption={{true}}\n            />\n            <PtlInput\n              @type='percentage'\n              @label={{t 'common.Labour'}}\n              @key='labourPercentage'\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n            />\n            <div class='mb-3'>\n              <label\n                class='form-check form-switch d-flex align-items-center mb-0'\n              >\n                <Input\n                  data-test-company-additional-labour-margin-toggle\n                  @type='checkbox'\n                  class='form-check-input mt-0 me-2'\n                  @checked={{not-eq\n                    profitMarginsModel.additionalLabourMargin\n                    null\n                  }}\n                  disabled={{this.updateProfitMargins.isRunning}}\n                  {{on\n                    'click'\n                    (fn this.toggleAdditionalLabourMargin profitMarginsModel)\n                  }}\n                />\n                {{t 'shared.profit-margins.Additional labour margin'}}\n              </label>\n            </div>\n            {{#if (not-eq profitMarginsModel.additionalLabourMargin null)}}\n              <PtlInput\n                data-test-company-additional-labour-margin-input\n                @type='percentage'\n                @key='additionalLabourMargin'\n                @model={{profitMarginsModel}}\n                @forceValidationVisible={{gt\n                  this.updateProfitMargins.performCount\n                  0\n                }}\n                disabled={{this.updateProfitMargins.isRunning}}\n                @description={{t\n                  'shared.profit-margins.additionalLabourMarginDescription'\n                }}\n              />\n            {{/if}}\n            <PtlInput\n              @type='percentage'\n              @label={{t 'common.Materials'}}\n              @key='materialsPercentage'\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n            />\n            <PtlInput\n              @type='percentage'\n              @label={{t 'common.Subcontractors'}}\n              @key='subcontractorsPercentage'\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n            />\n            <PtlInput\n              @type='percentage'\n              @label={{t 'common.Sums'}}\n              @key='sumsPercentage'\n              @model={{profitMarginsModel}}\n              @forceValidationVisible={{gt\n                this.updateProfitMargins.performCount\n                0\n              }}\n              disabled={{this.updateProfitMargins.isRunning}}\n            />\n  \n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.updateProfitMargins.isRunning}}\n                {{on\n                  'click'\n                  (perform this.updateProfitMargins profitMarginsModel)\n                }}\n              >\n                {{#if this.updateProfitMargins.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t\n                    'entity.settings.company.updating profit margins'\n                  }}…\n                {{else}}\n                  {{t 'shared.profit-margins.Save profit margins'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/let}}\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  </article>\n  \n  {{#if this.invoiceBreakdownOptions}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.invoiceBreakdownOptions) null}}\n      @containerClass='modal-content w-auto h-auto modal-dialog-scrollable'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h5 class='modal-title'>\n          {{t 'entity.settings.company.Breakdown options'}}\n        </h5>\n      </div>\n  \n      <div class='modal-body'>\n        <PtlInput\n          @type='textarea'\n          @label={{t 'entity.settings.company.Notes'}}\n          @key='breakdownNotes'\n          @model={{this.invoiceBreakdownOptions}}\n          disabled={{this.saveBreakdownOptions.isRunning}}\n        />\n  \n        <PtlInput\n          @containerClass='form-check mb-2'\n          @type='checkbox'\n          @label={{t 'entity.settings.company.Include billable'}}\n          @key='includeBillable'\n          @model={{this.invoiceBreakdownOptions}}\n          @description={{t 'entity.settings.company.includeBillableDescription'}}\n          disabled={{this.saveBreakdownOptions.isRunning}}\n        />\n        <PtlInput\n          @containerClass='form-check mb-2'\n          @type='checkbox'\n          @label={{t 'entity.settings.company.Include previously invoiced'}}\n          @key='includeInvoiced'\n          @model={{this.invoiceBreakdownOptions}}\n          @description={{t 'entity.settings.company.includeInvoicedDescription'}}\n          disabled={{this.saveBreakdownOptions.isRunning}}\n        />\n  \n        <label class='mb-1'>\n          {{t 'entity.settings.company.First group by'}}\n        </label>\n        <div class='d-flex align-items-center gap-3 ms-1'>\n          <PtlInput\n            @type='radio'\n            @key='firstGroupBy'\n            @id='groupByTask'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'common.Task'}}\n            @value='TASK'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n          <PtlInput\n            @type='radio'\n            @key='firstGroupBy'\n            @id='groupByAllocationType'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'common.Allocation type'}}\n            @value='ALLOCATION_TYPE'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n        </div>\n  \n        <label class='mb-1'>\n          {{t 'entity.settings.company.Labour bills'}}\n        </label>\n        <div class='d-flex align-items-center gap-3 ms-1'>\n          <PtlInput\n            @type='radio'\n            @key='labourDetail'\n            @id='labourSection'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'entity.settings.company.Total only'}}\n            @value='TOTAL'\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='labourDetail'\n            @id='labourBill'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'common.Bill'}}\n            @value='BILL'\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='labourDetail'\n            @id='labourItem'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'entity.settings.company.Bill item'}}\n            @value='BILL_ITEM'\n            @containerClass='mb-1'\n          />\n        </div>\n        <div class='ms-1'>\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'entity.settings.company.Include margin'}}\n            @key='includeLabourBillsProfitMargins'\n            @model={{this.invoiceBreakdownOptions}}\n            @description={{t\n              'entity.settings.company.includeProfitMarginsDescription'\n            }}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n        </div>\n  \n        <label class='mb-1'>\n          {{t 'common.Timesheets'}}\n        </label>\n        <div class='ms-1 mb-1'>\n          <GroupingSelector\n            @groups={{this.timesheetGroupingOptions}}\n            @value={{this.invoiceBreakdownOptions.timesheetDetails}}\n            @onChange={{fn (mut this.invoiceBreakdownOptions.timesheetDetails)}}\n            as |gs|\n          >\n            {{#each gs.axes as |axis i|}}\n              <label class='pdf-export-options__grouping-label'>\n                {{#if (eq i 0)}}\n                  {{t 'shared.report-builder.First break down by'}}…\n                {{else}}\n                  …{{t 'shared.report-builder.and then by'}}…\n                {{/if}}\n              </label>\n  \n              <select\n                class='pdf-export-options__grouping-control'\n                {{on 'change' (action axis.update value='target.value')}}\n                disabled={{this.saveBreakdownOptions.isRunning}}\n              >\n                {{#each axis.options as |opt|}}\n                  <option value={{opt.key}} selected={{opt.isSelected}}>\n                    {{opt.name}}\n                  </option>\n                {{/each}}\n              </select>\n              <br />\n            {{/each}}\n          </GroupingSelector>\n        </div>\n        {{#if\n          this.model.entity.effectiveProfitMargin.additionalLabourMargin.value\n        }}\n          <div class='ms-1'>\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'entity.settings.company.Additional margin'}}\n              @key='includeTimesheetsProfitMargins'\n              @model={{this.invoiceBreakdownOptions}}\n              @description={{t\n                'entity.settings.company.includeTimesheetsProfitMarginsDescription'\n              }}\n              disabled={{this.saveBreakdownOptions.isRunning}}\n              {{on\n                'change'\n                (fn\n                  this.onToggleTimesheetMargin\n                  'includeTimesheetsProfitMargins'\n                  'includeTimesheetsCostMargins'\n                )\n              }}\n            />\n          </div>\n        {{/if}}\n  \n        <div class='ms-1'>\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'entity.settings.company.Show cost margin'}}\n            @key='includeTimesheetsCostMargins'\n            @model={{this.invoiceBreakdownOptions}}\n            @description={{t\n              'entity.settings.company.includeTimesheetsCostMarginsDescription'\n            }}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            {{on\n              'change'\n              (fn\n                this.onToggleTimesheetMargin\n                'includeTimesheetsCostMargins'\n                'includeTimesheetsProfitMargins'\n              )\n            }}\n          />\n        </div>\n  \n        <label class='mb-1'>\n          {{t 'entity.settings.company.Material bills'}}\n        </label>\n        <div class='d-flex align-items-center gap-3 ms-1'>\n          <PtlInput\n            @type='radio'\n            @key='materialsDetail'\n            @id='materialsSection'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'entity.settings.company.Total only'}}\n            @value='TOTAL'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='materialsDetail'\n            @id='materialsBill'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'common.Bill'}}\n            @value='BILL'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='materialsDetail'\n            @id='materialsItem'\n            @model={{this.invoiceBreakdownOptions}}\n            @label={{t 'entity.settings.company.Bill item'}}\n            @value='BILL_ITEM'\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @containerClass='mb-1'\n          />\n        </div>\n        <div class='ms-1'>\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'entity.settings.company.Include margin'}}\n            @key='includeMaterialBillsProfitMargins'\n            @model={{this.invoiceBreakdownOptions}}\n            @description={{t\n              'entity.settings.company.includeProfitMarginsDescription'\n            }}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n        </div>\n  \n        <label class='mb-1'>\n          {{t 'entity.settings.company.Subcontractor bills'}}\n        </label>\n        <div class='d-flex align-items-center gap-3 ms-1 mt-0'>\n          <PtlInput\n            @type='radio'\n            @key='subcontractorsDetail'\n            @id='subcontractorsSection'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'entity.settings.company.Total only'}}\n            @value='TOTAL'\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='subcontractorsDetail'\n            @id='subcontractorsBill'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'common.Bill'}}\n            @value='BILL'\n            @containerClass='mb-1'\n          />\n          <PtlInput\n            @type='radio'\n            @key='subcontractorsDetail'\n            @id='subcontractorsItem'\n            @model={{this.invoiceBreakdownOptions}}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n            @label={{t 'entity.settings.company.Bill item'}}\n            @value='BILL_ITEM'\n            @containerClass='mb-1'\n          />\n        </div>\n        <div class='ms-1'>\n          <PtlInput\n            @type='checkbox'\n            @label={{t 'entity.settings.company.Include margin'}}\n            @key='includeSubcontractorBillsProfitMargins'\n            @model={{this.invoiceBreakdownOptions}}\n            @description={{t\n              'entity.settings.company.includeProfitMarginsDescription'\n            }}\n            disabled={{this.saveBreakdownOptions.isRunning}}\n          />\n        </div>\n      </div>\n  \n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.invoiceBreakdownOptions) null)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary'\n          {{on 'click' (perform this.saveBreakdownOptions)}}\n        >\n          {{#if this.saveBreakdownOptions.isRunning}}\n            <span class='spinner-border spinner-border-sm'></span>\n            &nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n          {{else}}\n            {{t 'common.Save'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"QHiyCAZz\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"entity.settings.company.Company details\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Settings\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"model\\\",\\\"companyLogo\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,10],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.Company details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"model\\\",\\\"entity\\\"]],[30,0,[\\\"entityValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Name\\\"],null],\\\"name\\\",[30,1],true,[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"shared.contacts.Contact email\\\"],null],\\\"contactEmail\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Address\\\"],null],\\\"address\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[30,0,[\\\"businessNumberLabel\\\"]],\\\"businessNumber\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[30,0,[\\\"model\\\",\\\"entity\\\",\\\"region\\\"]],\\\"AUS\\\"],null],[[[1,\\\"          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[30,0,[\\\"taxNumberLabel\\\"]],\\\"taxNumber\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"purchasesGlAccount\\\"],null],[[[1,\\\"          \\\"],[8,[39,15],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@description\\\",\\\"@placeholder\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@allowClear\\\",\\\"@disabled\\\"],[\\\"powerSelect\\\",[28,[37,4],[\\\"entity.settings.company.Default purchases account\\\"],null],\\\"purchasesGlAccount\\\",[28,[37,19],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],[30,1],[28,[37,4],[\\\"entity.settings.company.purchasesGlAccountDescription\\\"],null],[28,[37,4],[\\\"entity.settings.company.No default account\\\"],null],true,\\\"code\\\",[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null],true,[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,0,[\\\"accountingPlatform\\\",\\\"glAccountVisibleFields\\\"]],\\\"salesGlAccount\\\"],null],[[[1,\\\"          \\\"],[8,[39,15],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@description\\\",\\\"@placeholder\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@forceValidationVisible\\\",\\\"@allowClear\\\",\\\"@disabled\\\"],[\\\"powerSelect\\\",[28,[37,4],[\\\"entity.settings.company.Default sales account\\\"],null],\\\"salesGlAccount\\\",[28,[37,19],[\\\"code\\\",\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"glAccounts\\\",\\\"last\\\",\\\"value\\\"]],[30,1],[28,[37,4],[\\\"entity.settings.company.salesGlAccountDescription\\\"],null],[28,[37,4],[\\\"entity.settings.company.No default account\\\"],null],true,\\\"code\\\",[28,[37,16],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null],true,[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,\\\"h4\\\"],[12],[1,[28,[35,4],[\\\"common.Logo\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[14,5,\\\"min-height: 60px;\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"companyLogo\\\"]],[[[1,\\\"            \\\"],[10,\\\"img\\\"],[14,0,\\\"d-inline-block overflow-hidden mb-2 me-2\\\"],[14,1,\\\"image-preview\\\"],[15,\\\"src\\\",[30,1,[\\\"companyLogo\\\",\\\"href\\\"]]],[14,5,\\\"object-fit: contain; height:100px; width:100px\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,25],[[30,0,[\\\"clearLogo\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Clear logo\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"d-inline-block overflow-hidden bg-light rounded mb-2 me-2\\\"],[14,5,\\\"height:100px; width:100px\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[11,\\\"input\\\"],[24,\\\"aria-label\\\",\\\"logo-upload\\\"],[24,\\\"accept\\\",\\\".jpg, .jpeg, .png, .gif\\\"],[24,4,\\\"file\\\"],[4,[38,24],[\\\"change\\\",[28,[37,25],[[30,0,[\\\"updateLogo\\\"]],[30,1]],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveEntity\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Saving details\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Save company details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,29],[[28,[37,30],[\\\"userIsEntityAdmin\\\"],null],[30,0,[\\\"chargebee\\\",\\\"ready\\\"]]],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.Subscription\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[14,0,\\\"p\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.clickTheButtonBelowToManageYourSubscription\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,32],[[30,0],\\\"openChargebee\\\"],null]],null],[12],[1,[28,[35,4],[\\\"entity.settings.company.Manage your subscription\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[\\\"canUseInvoices\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"invoiceOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.Invoicing details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"model\\\",\\\"invoiceOptions\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"invoiceValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,4],[\\\"common.Invoice\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.Prefix\\\"],null],\\\"invoicePrefix\\\",[30,2],\\\"\\\",[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.nextInvoiceNumber\\\"],null],\\\"nextInvoiceNumber\\\",[30,2],\\\"\\\",[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"paymentTermDay\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.contacts.Payment terms\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,15],[[24,\\\"min\\\",\\\"1\\\"],[24,5,\\\"width: 75px;\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"number\\\",\\\"paymentTermDay\\\",[30,2],[28,[37,16],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"paymentTermType\\\",true,[30,0,[\\\"paymentTermType\\\"]],[30,2],[28,[37,16],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Footer notes\\\"],null],\\\"invoiceFooterNotes\\\",[30,2],[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,4],[\\\"common.Credit note\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.Prefix\\\"],null],\\\"creditNotePrefix\\\",[30,2],\\\"\\\",[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.nextCreditNoteNumber\\\"],null],\\\"nextCreditNoteNumber\\\",[30,2],\\\"\\\",[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Footer notes\\\"],null],\\\"creditNoteFooterNotes\\\",[30,2],[28,[37,16],[[30,0,[\\\"saveInvoiceOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"text-left\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link m-0 p-0 text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[30,0,[\\\"initInvoiceBreakdown\\\"]]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Default breakdown options\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveInvoiceOption\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveInvoiceOption\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Save invoicing details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[2]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[\\\"canUsePurchaseOrders\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"purchaseOrderOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.company.Purchase order details\\\"],null]],[13],[1,\\\"\\\\n\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"model\\\",\\\"purchaseOrderOptions\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"purchaseOrderValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.Prefix\\\"],null],\\\"prefix\\\",[30,3],\\\"\\\",[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@toolTip\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"entity.settings.company.nextPurchaseOrderNumber\\\"],null],\\\"nextPurchaseOrderNumber\\\",[30,3],\\\"\\\",[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Footer notes\\\"],null],\\\"footerNotes\\\",[30,3],[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"entity.settings.company.Percentage tolerance for matching\\\"],null],\\\"matchingPercentageTolerance\\\",[30,3],[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,4],[\\\"entity.settings.company.Amount tolerance for matching\\\"],null],\\\"matchingAmountTolerance\\\",[30,3],[28,[37,16],[[30,0,[\\\"savePurchaseOrderOption\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"savePurchaseOrderOption\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePurchaseOrderOption\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Save purchase order details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[3]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[\\\"canUseStagePayments\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"stagePaymentOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Stage payment details\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"stagePaymentOption\\\"]],[30,0,[\\\"stagePaymentsOptionsValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Default stage payment notes\\\"],null],\\\"footerNotes\\\",[30,4],[28,[37,16],[[30,0,[\\\"saveStagePaymentOptions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveStagePaymentOptions\\\"]],[30,4]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveStagePaymentOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[1,\\\"\\\\n                \\\"],[13],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Save stage payment details\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[4]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[\\\"canManageProfitMargin\\\"],null],[[[1,\\\"    \\\"],[8,[39,11],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"loadEntityProfitMargin\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,10],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"profitMargin\\\"]],[30,0,[\\\"profitMarginValidationMap\\\"]]],null]],[[[1,\\\"          \\\"],[10,\\\"h3\\\"],[14,0,\\\"h3 mb-3\\\"],[12],[1,[28,[35,4],[\\\"common.Profit margins\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.settings.company.profitMarginsArePercentagesThatDefineYourDesiredProfitMarginsOnEachTypeOfSection\\\"],null]],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.settings.company.generallyThisMarginWillBeUsedToCalculateQuoteFiguresFromABudget\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@toolTip\\\",\\\"@label\\\",\\\"@key\\\",\\\"@required\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@selectNoBlankOption\\\"],[\\\"select\\\",[28,[37,4],[\\\"shared.profit-margins.marginIsThePercentageOfWhatYouAreChargingTheCustomerThatIsProfitMarkupIsThePercentageOfYourCostThatIsAddedToYourCostToGetProfit\\\"],null],[28,[37,4],[\\\"shared.profit-margins.Profit type\\\"],null],\\\"profitType\\\",true,[30,0,[\\\"profitTypes\\\"]],[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null],true]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"common.Labour\\\"],null],\\\"labourPercentage\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check form-switch d-flex align-items-center mb-0\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,26],[[24,\\\"data-test-company-additional-labour-margin-toggle\\\",\\\"\\\"],[24,0,\\\"form-check-input mt-0 me-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]],[4,[38,24],[\\\"click\\\",[28,[37,25],[[30,0,[\\\"toggleAdditionalLabourMargin\\\"]],[30,5]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[28,[37,17],[[30,5,[\\\"additionalLabourMargin\\\"]],null],null]]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"shared.profit-margins.Additional labour margin\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[30,5,[\\\"additionalLabourMargin\\\"]],null],null],[[[1,\\\"            \\\"],[8,[39,15],[[24,\\\"data-test-company-additional-labour-margin-input\\\",\\\"\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@description\\\"],[\\\"percentage\\\",\\\"additionalLabourMargin\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null],[28,[37,4],[\\\"shared.profit-margins.additionalLabourMarginDescription\\\"],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"common.Materials\\\"],null],\\\"materialsPercentage\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"common.Subcontractors\\\"],null],\\\"subcontractorsPercentage\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"percentage\\\",[28,[37,4],[\\\"common.Sums\\\"],null],\\\"sumsPercentage\\\",[30,5],[28,[37,16],[[30,0,[\\\"updateProfitMargins\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"updateProfitMargins\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateProfitMargins\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.settings.company.updating profit margins\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.profit-margins.Save profit margins\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[5]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"invoiceBreakdownOptions\\\"]],[[[1,\\\"  \\\"],[8,[39,34],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,25],[[28,[37,35],[[30,0,[\\\"invoiceBreakdownOptions\\\"]]],null],null],null],\\\"modal-content w-auto h-auto modal-dialog-scrollable\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h5\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Breakdown options\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"textarea\\\",[28,[37,4],[\\\"entity.settings.company.Notes\\\"],null],\\\"breakdownNotes\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"form-check mb-2\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include billable\\\"],null],\\\"includeBillable\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeBillableDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@containerClass\\\",\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"form-check mb-2\\\",\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include previously invoiced\\\"],null],\\\"includeInvoiced\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeInvoicedDescription\\\"],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.First group by\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"firstGroupBy\\\",\\\"groupByTask\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Task\\\"],null],\\\"TASK\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"firstGroupBy\\\",\\\"groupByAllocationType\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Allocation type\\\"],null],\\\"ALLOCATION_TYPE\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Labour bills\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"labourDetail\\\",\\\"labourItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include margin\\\"],null],\\\"includeLabourBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Timesheets\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1 mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,37],null,[[\\\"@groups\\\",\\\"@value\\\",\\\"@onChange\\\"],[[30,0,[\\\"timesheetGroupingOptions\\\"]],[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]],[28,[37,25],[[28,[37,35],[[30,0,[\\\"invoiceBreakdownOptions\\\",\\\"timesheetDetails\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,39],[[28,[37,39],[[30,6,[\\\"axes\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,\\\"label\\\"],[14,0,\\\"pdf-export-options__grouping-label\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,40],[[30,8],0],null],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"shared.report-builder.First break down by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                …\\\"],[1,[28,[35,4],[\\\"shared.report-builder.and then by\\\"],null]],[1,\\\"…\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[11,\\\"select\\\"],[24,0,\\\"pdf-export-options__grouping-control\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]],[4,[38,24],[\\\"change\\\",[28,[37,32],[[30,0],[30,7,[\\\"update\\\"]]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,39],[[28,[37,39],[[30,7,[\\\"options\\\"]]],null]],null],null,[[[1,\\\"                \\\"],[10,\\\"option\\\"],[15,2,[30,9,[\\\"key\\\"]]],[15,\\\"selected\\\",[30,9,[\\\"isSelected\\\"]]],[12],[1,\\\"\\\\n                  \\\"],[1,[30,9,[\\\"name\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[7,8]],null],[1,\\\"        \\\"]],[6]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"additionalLabourMargin\\\",\\\"value\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]],[4,[38,24],[\\\"change\\\",[28,[37,25],[[30,0,[\\\"onToggleTimesheetMargin\\\"]],\\\"includeTimesheetsProfitMargins\\\",\\\"includeTimesheetsCostMargins\\\"],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Additional margin\\\"],null],\\\"includeTimesheetsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeTimesheetsProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]],[4,[38,24],[\\\"change\\\",[28,[37,25],[[30,0,[\\\"onToggleTimesheetMargin\\\"]],\\\"includeTimesheetsCostMargins\\\",\\\"includeTimesheetsProfitMargins\\\"],null]],null]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Show cost margin\\\"],null],\\\"includeTimesheetsCostMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeTimesheetsCostMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Material bills\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"materialsDetail\\\",\\\"materialsItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include margin\\\"],null],\\\"includeMaterialBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.company.Subcontractor bills\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3 ms-1 mt-0\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsSection\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Total only\\\"],null],\\\"TOTAL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsBill\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"common.Bill\\\"],null],\\\"BILL\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\",\\\"@containerClass\\\"],[\\\"radio\\\",\\\"subcontractorsDetail\\\",\\\"subcontractorsItem\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.Bill item\\\"],null],\\\"BILL_ITEM\\\",\\\"mb-1\\\"]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"ms-1\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@description\\\"],[\\\"checkbox\\\",[28,[37,4],[\\\"entity.settings.company.Include margin\\\"],null],\\\"includeSubcontractorBillsProfitMargins\\\",[30,0,[\\\"invoiceBreakdownOptions\\\"]],[28,[37,4],[\\\"entity.settings.company.includeProfitMarginsDescription\\\"],null]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,25],[[28,[37,35],[[30,0,[\\\"invoiceBreakdownOptions\\\"]]],null],null],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,24],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveBreakdownOptions\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveBreakdownOptions\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"entityModel\\\",\\\"invoiceOptionsModel\\\",\\\"purchaseOrderOptionsModel\\\",\\\"stagePaymentOptionsModel\\\",\\\"profitMarginsModel\\\",\\\"gs\\\",\\\"axis\\\",\\\"i\\\",\\\"opt\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"or\\\",\\\"loading-icon\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"not-eq\\\",\\\"includes\\\",\\\"array\\\",\\\"h4\\\",\\\"div\\\",\\\"img\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"input\\\",\\\"perform\\\",\\\"span\\\",\\\"and\\\",\\\"includes-feature-flags\\\",\\\"p\\\",\\\"action\\\",\\\"label\\\",\\\"modal-dialog\\\",\\\"mut\\\",\\\"h5\\\",\\\"grouping-selector\\\",\\\"each\\\",\\\"-track-array\\\",\\\"eq\\\",\\\"select\\\",\\\"option\\\",\\\"br\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/company.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/contacts\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='mx-4 mt-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.contacts'}}</h2>\n    </header>\n    {{outlet}}\n  </article>\n  */\n  {\n    \"id\": \"5WbU548I\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,3],[\\\"common.contacts\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[46,[28,[37,5],null,null],null,null,null],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"t\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/contacts.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/contacts/contact\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-3 ms-1 mt-1'>\n      <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n    </div>\n    <PtlForm class='width--medium'>\n      <div class='d-flex mb-3 align-items-center'>\n        <h3 class='m-0'>{{t 'common.Details'}}</h3>\n        {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n          <FaIcon\n            @title='This supplier is synced with your accounting package'\n            class='ms-3'\n            @icon='sync'\n          />\n        {{/if}}\n      </div>\n      <PtlInput\n        @type='text'\n        @label={{t 'common.Name'}}\n        @key='name'\n        @model={{this.model.supplierChangeset.last.value}}\n        @required={{true}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n      <PtlInput\n        @type='text'\n        @label={{t 'shared.contacts.Contact person'}}\n        @key='contactPerson'\n        @model={{this.model.supplierChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n      <PtlInput\n        @type='text'\n        @label={{t 'shared.contacts.Contact number'}}\n        @key='contactNumber'\n        @model={{this.model.supplierChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n      <PtlInput\n        @type='text'\n        @label={{t 'shared.contacts.Contact email'}}\n        @key='contactEmail'\n        @model={{this.model.supplierChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n      <PtlInput\n        @type='text'\n        @label={{t 'common.Address'}}\n        @key='address'\n        @model={{this.model.supplierChangeset.last.value}}\n        @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n        disabled={{this.disableForm}}\n      />\n  \n      <label class='mb-1'>\n        {{t 'entity.settings.contacts.contact.Default allocation type'}}\n        &nbsp;<InfoPopup\n          @text={{t\n            'entity.settings.contacts.contact.defaultAllocationFeatureTooltip'\n          }}\n        />\n      </label>\n      <div class='d-flex align-items-center gap-3'>\n        <PtlInput\n          @type='radio'\n          @key='defaultBillAllocationType'\n          @id='MATERIALS'\n          @model={{this.model.supplierChangeset.last.value}}\n          disabled={{this.saveSupplier.isRunning}}\n          @label={{t 'common.Materials'}}\n          @value='MATERIALS'\n        />\n        <PtlInput\n          @type='radio'\n          @key='defaultBillAllocationType'\n          @id='SUBCONTRACTORS'\n          @model={{this.model.supplierChangeset.last.value}}\n          disabled={{this.saveSupplier.isRunning}}\n          @label={{t 'common.Subcontractors'}}\n          @value='SUBCONTRACTORS'\n        />\n        <PtlInput\n          @type='radio'\n          @key='defaultBillAllocationType'\n          @id='LABOUR'\n          @model={{this.model.supplierChangeset.last.value}}\n          disabled={{this.saveSupplier.isRunning}}\n          @label={{t 'common.Labour'}}\n          @value='LABOUR'\n        />\n      </div>\n  \n      <h4 class='mb-2'>{{t 'common.Purchases'}}</h4>\n      <div class='mb-3'>\n        <label class='mb-1' for='paymentTermDay'>\n          {{t 'shared.contacts.Payment terms'}}\n        </label>\n        {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n          <Input\n            class='form-control'\n            id='paymentTermDay'\n            name='paymentTermDay'\n            @type='text'\n            placeholder={{this.supplier.purchaseDisplayPaymentTerm}}\n            autocomplete='off'\n            disabled={{true}}\n          />\n        {{else}}\n          <div class='d-flex align-items-centers'>\n            <div class='me-2'>\n              <PtlInput\n                @type='number'\n                @key='paymentTermDay'\n                @containerClass='m-0'\n                min='1'\n                style='width: 75px;'\n                @model={{this.model.supplierChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n                disabled={{this.disableForm}}\n              />\n            </div>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='select'\n                @key='paymentTermType'\n                @containerClass='m-0'\n                @selectNoBlankOption={{true}}\n                @options={{this.paymentTermType}}\n                @model={{this.model.supplierChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n                disabled={{this.disableForm}}\n              />\n            </div>\n          </div>\n        {{/if}}\n      </div>\n  \n      <h4 class='mb-2'>{{t 'common.Sales'}}</h4>\n      <div class='mb-3'>\n        <label class='mb-1' for='salesPaymentTermDay'>\n          {{t 'shared.contacts.Payment terms'}}\n        </label>\n        {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n          <Input\n            class='form-control'\n            id='salesPaymentTermDay'\n            name='salesPaymentTermDay'\n            @type='text'\n            placeholder={{this.supplier.salesDisplayPaymentTerm}}\n            autocomplete='off'\n            disabled={{true}}\n          />\n        {{else}}\n          <div class='d-flex align-items-centers'>\n            <div class='me-2'>\n              <PtlInput\n                @type='number'\n                @key='salesPaymentTermDay'\n                @containerClass='m-0'\n                min='1'\n                style='width: 75px;'\n                @model={{this.model.supplierChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n                disabled={{this.disableForm}}\n              />\n            </div>\n            <div class='flex-grow-1'>\n              <PtlInput\n                @type='select'\n                @containerClass='m-0'\n                @key='salesPaymentTermType'\n                @selectNoBlankOption={{true}}\n                @options={{this.salesPaymentTermType}}\n                @model={{this.model.supplierChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveSupplier.performCount 0}}\n                disabled={{this.disableForm}}\n              />\n            </div>\n          </div>\n        {{/if}}\n      </div>\n  \n      {{#if\n        (and\n          this.accountingPlatform.isActive\n          (not this.supplier.isContactLinkedToAccountingPlatform)\n        )\n      }}\n        <div class='mb-3'>\n          <label class='mb-1' for='sync-with-accounting-platform'>\n            <Input\n              class='form-check-input'\n              id='sync-with-accounting-platform'\n              name='sync-with-accounting-platform'\n              @type='checkbox'\n              @checked={{this.onChangeSyncWithAccountingPlatform}}\n              {{on\n                'change'\n                (fn\n                  (mut this.onChangeSyncWithAccountingPlatform)\n                  (not this.onChangeSyncWithAccountingPlatform)\n                )\n              }}\n              autocomplete='off'\n            />\n  \n            {{if\n              this.supplier.isNew\n              (t\n                'entity.settings.contacts.contact.alsoCreateInLabel'\n                label=this.accountingPlatform.label\n              )\n              (t\n                'entity.settings.contacts.contact.syncWithLabelOnSave'\n                label=this.accountingPlatform.label\n              )\n            }}\n  \n          </label>\n        </div>\n      {{/if}}\n  \n      <div class='d-flex justify-content-between align-items-center'>\n        <h4 class='m-0'>Aliases &nbsp;<InfoPopup\n            @text={{html-safe\n              (t 'entity.settings.contacts.contact.aliasFeatureTooltip')\n            }}\n          /></h4>\n        <button\n          type='button'\n          class='btn btn-link text-primary text-decoration-underline m-1'\n          disabled={{this.isLoading}}\n          {{on 'click' (fn (mut this.showAddAliasModal) true)}}\n        >\n          {{t 'entity.settings.contacts.contact.Add new alias'}}\n        </button>\n      </div>\n      <div class='mb-2'>\n        <PaginationTable\n          @tableHeader={{this.aliasesTableHeader}}\n          @tableData={{this.aliasesTableData}}\n          @isLoading={{this.isLoading}}\n          @noDataText='No aliases'\n          @class='table-bordered '\n          @hidePagination={{true}}\n        />\n      </div>\n  \n      {{#if this.canEditSupplier}}\n        <div class='d-flex align-items-center'>\n          {{#unless this.supplier.isNew}}\n            <LabelPopup @text={{this.deleteSupplierDisabledTitle}}>\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{or\n                  this.deleteSupplier.isRunning\n                  this.saveSupplier.isRunning\n                  this.supplier.isLinkedToResources\n                  this.supplier.isLinkedToActiveAccountingPlatform\n                }}\n                {{on 'click' (fn (mut this.isDeletingSupplier) true)}}\n              >\n                {{t 'entity.settings.contacts.contact.Delete contact'}}\n              </button>\n            </LabelPopup>\n          {{/unless}}\n          {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n            <div class='ms-auto d-flex gap-2'>\n              <a\n                href={{this.supplier.viewContactUrl}}\n                class='btn btn-primary'\n                target='_blank'\n                rel='noopener noreferrer'\n                role='button'\n                aria-disabled='true'\n              >\n                {{t\n                  'entity.settings.contacts.contact.editContactInLabel'\n                  label=this.accountingPlatform.label\n                }}\n              </a>\n              {{#if this.accountingPlatform.isActive}}\n                <button\n                  type='button'\n                  class='btn btn-primary'\n                  disabled={{this.updateSingleContact.isRunning}}\n                  {{on 'click' (perform this.updateSingleContact)}}\n                >\n                  {{#if this.updateSingleContact.isRunning}}\n                    <span class='spinner-border spinner-border-sm'>\n                    </span>&nbsp;&nbsp;{{t 'common.Updating'}}&hellip;\n                  {{else}}\n                    {{t\n                      'entity.settings.contacts.contact.updateFromLabel'\n                      label=this.accountingPlatform.label\n                    }}\n                  {{/if}}\n                </button>\n              {{/if}}\n            </div>\n          {{/if}}\n          <button\n            type='button'\n            class='btn btn-primary\n              {{if\n                this.supplier.isContactLinkedToAccountingPlatform\n                \"ms-2\"\n                \"ms-auto\"\n              }}'\n            disabled={{or\n              this.deleteSupplier.isRunning\n              this.saveSupplier.isRunning\n            }}\n            {{on\n              'click'\n              (perform this.saveSupplier this.model.supplierChangeset.last.value)\n            }}\n          >\n            {{#if this.saveSupplier.isRunning}}\n              <span class='spinner-border spinner-border-sm'>\n              </span>&nbsp;&nbsp;\n              {{t 'common.Saving'}}&hellip;\n            {{else}}\n              {{if this.supplier.isNew (t 'common.Create') (t 'common.Save')}}\n            {{/if}}\n          </button>\n        </div>\n      {{/if}}\n    </PtlForm>\n  {{/if}}\n  {{#if this.showAddAliasModal}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeAddAliasModal}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-header'>\n        <h3 class='modal-title'>\n          {{t 'entity.settings.contacts.contact.Add new alias'}}\n        </h3>\n      </div>\n  \n      <div class='modal-body'>\n        <label class='mb-1' for='alias'>\n          {{t 'entity.settings.contacts.contact.Alias name'}}\n          <sup class='text-danger'>*</sup>\n        </label>\n        <div class='input-group'>\n          <Input\n            class='form-control'\n            id='alias'\n            @type='text'\n            @value={{this.aliasNameInput}}\n            disabled={{this.addNewAlias.isRunning}}\n            {{did-insert this.focusInput}}\n          />\n        </div>\n      </div>\n      <div class='modal-footer'>\n        <button\n          type='button'\n          class='btn btn-secondary'\n          {{on 'click' this.closeAddAliasModal}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          type='button'\n          class='btn btn-primary text-white'\n          disabled={{this.addNewAlias.isRunning}}\n          {{on 'click' (perform this.addNewAlias)}}\n        >\n          {{#if this.addNewAlias.isRunning}}\n            {{t 'common.Adding'}}&hellip;\n          {{else}}\n            {{t 'entity.settings.contacts.contact.Add alias'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.isDeletingSupplier}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingSupplier) false}}\n      @translucentOverlay={{true}}\n      @containerClass='modal-content w-auto'\n    >\n  \n      <div class='modal-body'>\n        {{#if this.supplier.isContactLinkedToAccountingPlatform}}\n          <div class='alert alert-warning' role='alert'>\n            <FaIcon @icon='exclamation-triangle' @size='lg' class='me-2' />\n            <span class='me-2'>\n              {{t\n                'entity.settings.contacts.deleteAccountingPlatformSuppliersForNextSync'\n                label=this.accountingPlatform.label\n              }}\n            </span>\n            <a\n              role='button'\n              class='btn btn-outline-primary'\n              target='_blank'\n              href={{this.supplier.viewContactUrl}}\n              rel='noopener noreferrer'\n            >\n              {{t\n                'entity.settings.contacts.contact.viewInLabel'\n                label=this.accountingPlatform.label\n              }}\n            </a>\n          </div>\n        {{/if}}\n        <p>\n          {{t\n            'entity.settings.contacts.contact.areYouSureYouWantToDeleteTheContact'\n          }}\n          {{t 'common.This action cannot be undone'}}\n        </p>\n      </div>\n  \n      <div class='modal-footer'>\n  \n        <button\n          class='btn btn-danger text-white'\n          type='button'\n          disabled={{this.deleteSupplier.isRunning}}\n          {{on 'click' (perform this.deleteSupplier)}}\n        >\n          {{#if this.deleteSupplier.isRunning}}\n            {{t 'common.Deleting'}}&hellip;\n          {{else}}\n            {{t 'common.Delete'}}\n          {{/if}}\n        </button>\n        <button\n          class='btn btn-secondary text-white'\n          type='button'\n          disabled={{this.deleteSupplier.isRunning}}\n          {{on 'click' (fn (mut this.isDeletingSupplier) false)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n  \n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"ZXWeuRr2\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,4],[[24,0,\\\"width--medium\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex mb-3 align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"        \\\"],[8,[39,7],[[24,0,\\\"ms-3\\\"]],[[\\\"@title\\\",\\\"@icon\\\"],[\\\"This supplier is synced with your accounting package\\\",\\\"sync\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"name\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"shared.contacts.Contact person\\\"],null],\\\"contactPerson\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"shared.contacts.Contact number\\\"],null],\\\"contactNumber\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"shared.contacts.Contact email\\\"],null],\\\"contactEmail\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Address\\\"],null],\\\"address\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Default allocation type\\\"],null]],[1,\\\"\\\\n       \\\"],[8,[39,11],null,[[\\\"@text\\\"],[[28,[37,6],[\\\"entity.settings.contacts.contact.defaultAllocationFeatureTooltip\\\"],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex align-items-center gap-3\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"defaultBillAllocationType\\\",\\\"MATERIALS\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,6],[\\\"common.Materials\\\"],null],\\\"MATERIALS\\\"]],null],[1,\\\"\\\\n      \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"defaultBillAllocationType\\\",\\\"SUBCONTRACTORS\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,6],[\\\"common.Subcontractors\\\"],null],\\\"SUBCONTRACTORS\\\"]],null],[1,\\\"\\\\n      \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@id\\\",\\\"@model\\\",\\\"@label\\\",\\\"@value\\\"],[\\\"radio\\\",\\\"defaultBillAllocationType\\\",\\\"LABOUR\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,6],[\\\"common.Labour\\\"],null],\\\"LABOUR\\\"]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,6],[\\\"common.Purchases\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"paymentTermDay\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.contacts.Payment terms\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"        \\\"],[8,[39,13],[[24,0,\\\"form-control\\\"],[24,1,\\\"paymentTermDay\\\"],[24,3,\\\"paymentTermDay\\\"],[16,\\\"placeholder\\\",[30,0,[\\\"supplier\\\",\\\"purchaseDisplayPaymentTerm\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[16,\\\"disabled\\\",true]],[[\\\"@type\\\"],[\\\"text\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[24,\\\"min\\\",\\\"1\\\"],[24,5,\\\"width: 75px;\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@containerClass\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"number\\\",\\\"paymentTermDay\\\",\\\"m-0\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@containerClass\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"paymentTermType\\\",\\\"m-0\\\",true,[30,0,[\\\"paymentTermType\\\"]],[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,6],[\\\"common.Sales\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"salesPaymentTermDay\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"shared.contacts.Payment terms\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"        \\\"],[8,[39,13],[[24,0,\\\"form-control\\\"],[24,1,\\\"salesPaymentTermDay\\\"],[24,3,\\\"salesPaymentTermDay\\\"],[16,\\\"placeholder\\\",[30,0,[\\\"supplier\\\",\\\"salesDisplayPaymentTerm\\\"]]],[24,\\\"autocomplete\\\",\\\"off\\\"],[16,\\\"disabled\\\",true]],[[\\\"@type\\\"],[\\\"text\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex align-items-centers\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[24,\\\"min\\\",\\\"1\\\"],[24,5,\\\"width: 75px;\\\"],[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@key\\\",\\\"@containerClass\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"number\\\",\\\"salesPaymentTermDay\\\",\\\"m-0\\\",[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,8],[[16,\\\"disabled\\\",[30,0,[\\\"disableForm\\\"]]]],[[\\\"@type\\\",\\\"@containerClass\\\",\\\"@key\\\",\\\"@selectNoBlankOption\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",\\\"m-0\\\",\\\"salesPaymentTermType\\\",true,[30,0,[\\\"salesPaymentTermType\\\"]],[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,9],[[30,0,[\\\"saveSupplier\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,14],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[28,[37,15],[[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]]],null]],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"sync-with-accounting-platform\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,13],[[24,0,\\\"form-check-input\\\"],[24,1,\\\"sync-with-accounting-platform\\\"],[24,3,\\\"sync-with-accounting-platform\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,16],[\\\"change\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"onChangeSyncWithAccountingPlatform\\\"]]],null],[28,[37,15],[[30,0,[\\\"onChangeSyncWithAccountingPlatform\\\"]]],null]],null]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"onChangeSyncWithAccountingPlatform\\\"]]]],null],[1,\\\"\\\\n\\\\n          \\\"],[1,[52,[30,0,[\\\"supplier\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.contacts.contact.alsoCreateInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]],[28,[37,6],[\\\"entity.settings.contacts.contact.syncWithLabelOnSave\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]]],[1,\\\"\\\\n\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"d-flex justify-content-between align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"Aliases  \\\"],[8,[39,11],null,[[\\\"@text\\\"],[[28,[37,19],[[28,[37,6],[\\\"entity.settings.contacts.contact.aliasFeatureTooltip\\\"],null]],null]]],null],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-primary text-decoration-underline m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"showAddAliasModal\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Add new alias\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"mb-2\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,21],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@isLoading\\\",\\\"@noDataText\\\",\\\"@class\\\",\\\"@hidePagination\\\"],[[30,0,[\\\"aliasesTableHeader\\\"]],[30,0,[\\\"aliasesTableData\\\"]],[30,0,[\\\"isLoading\\\"]],\\\"No aliases\\\",\\\"table-bordered \\\",true]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canEditSupplier\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"supplier\\\",\\\"isNew\\\"]]],[[[1,\\\"          \\\"],[8,[39,23],null,[[\\\"@text\\\"],[[30,0,[\\\"deleteSupplierDisabledTitle\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"supplier\\\",\\\"isLinkedToResources\\\"]],[30,0,[\\\"supplier\\\",\\\"isLinkedToActiveAccountingPlatform\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"isDeletingSupplier\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Delete contact\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"ms-auto d-flex gap-2\\\"],[12],[1,\\\"\\\\n            \\\"],[10,3],[15,6,[30,0,[\\\"supplier\\\",\\\"viewContactUrl\\\"]]],[14,0,\\\"btn btn-primary\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-disabled\\\",\\\"true\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.editContactInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateSingleContact\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"updateSingleContact\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateSingleContact\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Updating\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.updateFromLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn btn-primary\\\\n            \\\",[52,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],\\\"ms-2\\\",\\\"ms-auto\\\"]]]],[16,\\\"disabled\\\",[28,[37,24],[[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"saveSupplier\\\"]],[30,0,[\\\"model\\\",\\\"supplierChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveSupplier\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[1,\\\"\\\\n            \\\"],[13],[1,\\\"  \\\\n            \\\"],[1,[28,[35,6],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[52,[30,0,[\\\"supplier\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"common.Create\\\"],null],[28,[37,6],[\\\"common.Save\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[41,[30,0,[\\\"showAddAliasModal\\\"]],[[[1,\\\"  \\\"],[8,[39,28],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeAddAliasModal\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Add new alias\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"alias\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Alias name\\\"],null]],[1,\\\"\\\\n        \\\"],[10,\\\"sup\\\"],[14,0,\\\"text-danger\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"input-group\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,13],[[24,0,\\\"form-control\\\"],[24,1,\\\"alias\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addNewAlias\\\",\\\"isRunning\\\"]]],[4,[38,30],[[30,0,[\\\"focusInput\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"aliasNameInput\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"closeAddAliasModal\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"addNewAlias\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"addNewAlias\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"addNewAlias\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Adding\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.Add alias\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDeletingSupplier\\\"]],[[[1,\\\"  \\\"],[8,[39,28],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"isDeletingSupplier\\\"]]],null],false],null],true,\\\"modal-content w-auto\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"supplier\\\",\\\"isContactLinkedToAccountingPlatform\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"alert alert-warning\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,7],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"exclamation-triangle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n          \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.deleteAccountingPlatformSuppliersForNextSync\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,3],[14,\\\"role\\\",\\\"button\\\"],[14,0,\\\"btn btn-outline-primary\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[15,6,[30,0,[\\\"supplier\\\",\\\"viewContactUrl\\\"]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.viewInLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.contacts.contact.areYouSureYouWantToDeleteTheContact\\\"],null]],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.This action cannot be undone\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer\\\"],[12],[1,\\\"\\\\n\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"deleteSupplier\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,6],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteSupplier\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[28,[37,18],[[30,0,[\\\"isDeletingSupplier\\\"]]],null],false],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"fa-icon\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"label\\\",\\\"info-popup\\\",\\\"h4\\\",\\\"input\\\",\\\"and\\\",\\\"not\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"html-safe\\\",\\\"button\\\",\\\"pagination-table\\\",\\\"unless\\\",\\\"label-popup\\\",\\\"or\\\",\\\"a\\\",\\\"perform\\\",\\\"span\\\",\\\"modal-dialog\\\",\\\"sup\\\",\\\"did-insert\\\",\\\"p\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/contacts/contact.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/contacts/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='mb-1 pb-2 d-lg-flex justify-content-end align-items-center'>\n    {{#if (and this.isEditable this.model.suppliers.last.value.length)}}\n      <div class='flex-grow-1'>\n        <button\n          class='btn btn-link text-danger text-decoration-underline float-start'\n          type='button'\n          {{on 'click' this.onDeletingSuppliers}}\n          disabled={{or (not this.selectedSupplierIds.size) this.isLoading}}\n        >\n          {{t 'common.Delete'}}\n        </button>\n      </div>\n    {{/if}}\n  \n    <input\n      class='form-control m-1 w-auto'\n      placeholder={{t 'common.Search'}}\n      value={{this.searchString}}\n      readonly={{this.isLoading}}\n      {{on 'input' (perform this.onChangeSearchTerm)}}\n      type='search'\n      autofocus='true'\n    />\n  \n    {{#if this.isEditable}}\n      {{#if this.model.hasDuplicateSuppliers.last.value}}\n        <button\n          class='btn btn-primary m-1'\n          {{on 'click' this.openMergeDuplicateSuppliersDialog}}\n          type='button'\n        >{{t 'entity.settings.contacts.Fix duplicates'}}</button>\n      {{/if}}\n      {{#if this.accountingPlatform.isActive}}\n        <button\n          type='button'\n          class='btn btn-primary text-white text-nowrap m-1'\n          disabled={{this.syncWithAccountingPackage.isRunning}}\n          {{on 'click' (perform this.syncWithAccountingPackage)}}\n        >\n          {{#if this.syncWithAccountingPackage.isRunning}}\n            {{t 'common.Syncing'}}&hellip;\n          {{else}}\n            {{t 'common.syncWithLabel' label=this.accountingPlatform.label}}\n          {{/if}}\n        </button>\n      {{/if}}\n      <button\n        type='button'\n        class='btn btn-success text-white text-nowrap m-1'\n        disabled={{this.isLoading}}\n        {{on 'click' this.goNewSupplier}}\n      >\n        <FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}\n      </button>\n    {{/if}}\n  </div>\n  \n  <div class='suppliers__table-container'>\n    <PaginationTable\n      @tableHeader={{this.supplierTableHeader}}\n      @tableData={{this.supplierTableData}}\n      @noDataText={{t 'common.No suppliers'}}\n      @isLoading={{this.model.suppliers.isRunning}}\n      @pageSizes={{this.model.pageSizes}}\n      @pageSize={{this.model.pageSize}}\n      @pageIndex={{this.model.pageNumber}}\n      @onChangePageIndex={{this.onChangePageIndex}}\n      @onChangePageSize={{this.onChangePageSize}}\n      @totalRecords={{this.totalRecords}}\n      @class='table-bordered'\n    />\n  </div>\n  \n  {{#if this.isDeletingSuppliers}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.isDeletingSuppliers) false}}\n      @translucentOverlay={{true}}\n      @containerClass='block-module'\n    >\n      {{#if this.needDeleteXeroSuppliers.length}}\n        <div class='alert alert-warning' role='alert'>\n          <FaIcon @icon='exclamation-triangle' @size='lg' class='me-2' />\n          <span class='me-2'>\n            {{t\n              'entity.settings.contacts.deleteAccountingPlatformSuppliersForNextSync'\n            }}\n          </span>\n  \n          <div class='suppliers__delete-xero-suppliers-container mt-3'>\n            {{#each this.needDeleteXeroSuppliers as |supplier|}}\n              <p class='mt-0'>\n                <a\n                  target='_blank'\n                  href='https://go.xero.com/organisationlogin/default.aspx?shortcode={{this.xeroIntegration.companyId}}&redirecturl=/Contacts/View/{{supplier.xeroContactId}}'\n                  rel='noopener noreferrer'\n                >\n                  <FaIcon @icon='external-link-alt' />\n                  {{supplier.name}}\n                </a>\n              </p>\n            {{/each}}\n          </div>\n        </div>\n      {{/if}}\n  \n      <p>\n        {{t 'entity.settings.contacts.Are you sure you want to delete'}}\n        {{pluralize this.selectedSupplierIds.size (t 'common.supplier')}}?\n        {{t 'common.This action cannot be undone'}}\n      </p>\n      <footer class='block-module__footer'>\n        <div class='float-end d-flex align-items-center'>\n          {{#if this.deleteSuppliers.isRunning}}\n            <button\n              type='button'\n              class='btn btn-danger text-white ms-2'\n              disabled={{true}}\n            >\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Deleting'}}…\n            </button>\n          {{else}}\n            <button\n              class='btn btn-danger text-white ms-2'\n              type='button'\n              disabled={{this.deleteSuppliers.isRunning}}\n              {{on 'click' (perform this.deleteSuppliers)}}\n            >\n              {{t 'common.Delete'}}\n            </button>\n            <button\n              class='btn btn-secondary text-white ms-2'\n              type='button'\n              disabled={{this.deleteSuppliers.isRunning}}\n              {{on 'click' (fn (mut this.isDeletingSuppliers) false)}}\n            >{{t 'common.Cancel'}}</button>\n          {{/if}}\n        </div>\n      </footer>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.onMergeDuplicateSuppliers}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{this.closeDuplicateSupplierModal}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n  \n      {{#if this.onCheckingDuplicateSuppliers.isRunning}}\n        <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n      {{else}}\n        <div class='modal-header'>\n          <div>\n            <h2 class='h2'>{{t\n                'entity.settings.contacts.Fix duplicate suppliers'\n              }}</h2>\n          </div>\n        </div>\n  \n        <div class='modal-body suppliers__duplicate-supplier-list-container'>\n          <LazyEach\n            @items={{this.mergeOptions}}\n            @automatic={{true}}\n            @initialNumberOfItemsVisible='5'\n            @increment='5'\n            @itemDisplayName='suppliers'\n            @emptyText={{t 'entity.settings.contacts.No duplicate suppliers'}}\n            as |options identifier optionsIndex|\n          >\n            {{#if (get (get options 0) 'text')}}\n              <div\n                class='card shadow-sm p-3 mb-3 suppliers__duplicate-suppliers-card-{{optionsIndex}}'\n              >\n                <div class='row'>\n                  <div class='col-md col-12'>\n                    <div class='fw-bold'> {{get (get options 0) 'title'}}</div>\n                    <div> {{get (get options 0) 'text'}}</div>\n                  </div>\n                  <div class='col-md col-12'>\n                    <button\n                      class='btn btn-primary float-end'\n                      {{on 'click' (perform this.mergeDuplicatedSupplier)}}\n                      disabled={{this.mergeDuplicatedSupplier.isRunning}}\n                      type='button'\n                    >\n                      {{#if this.mergeDuplicatedSupplier.isRunning}}\n                        <span\n                          class='spinner-border spinner-border-sm'\n                        ></span>&nbsp;&nbsp;{{t 'common.Merging'}}…\n                      {{else}}\n                        <span>\n                          {{t 'common.Merge'}}\n                        </span>\n                      {{/if}}\n                    </button>\n                  </div>\n                </div>\n              </div>\n            {{else}}\n              <div\n                class='{{identifier}}\n                  card shadow-sm p-3 mb-3 suppliers__duplicate-suppliers-card-{{optionsIndex}}'\n              >\n                {{#each options as |option index|}}\n                  <div\n                    class='row py-2 align-items-center\n                      {{if\n                        (not-eq index (math options.length \"-\" 1))\n                        \"border-bottom\"\n                      }}'\n                  >\n                    <div class='col-md col-12'>\n                      <div\n                        class='fw-bold\n                          {{if\n                            (eq\n                              option.supplierInfo.name.attributeAction \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq option.supplierInfo.name.attributeAction \"ADDED\")\n                            \"text-success\"\n                          }}'\n                      >\n                        {{option.supplierInfo.name.value}}\n                      </div>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.contactPerson.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.contactPerson.attributeAction\n                              \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.contactPerson.value}}\n                          {{option.supplierInfo.contactPerson.value}}\n                        {{else}}\n                          {{t 'entity.settings.contacts.No contact person'}}\n                        {{/if}}\n                      </div>\n                    </div>\n                    <div class='col-md col-12'>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.contactEmail.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.contactEmail.attributeAction\n                              \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.contactEmail.value}}\n                          {{option.supplierInfo.contactEmail.value}}\n                        {{else}}\n                          {{t 'entity.settings.contacts.No contact Email'}}\n                        {{/if}}\n                      </div>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.contactNumber.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.contactNumber.attributeAction\n                              \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.contactNumber.value}}\n                          {{option.supplierInfo.contactNumber.value}}\n                        {{else}}\n                          {{t 'entity.settings.contacts.No contact number'}}\n                        {{/if}}\n                      </div>\n                    </div>\n                    <div class='col-md col-12'>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.address.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.address.attributeAction \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.address.value}}\n                          {{option.supplierInfo.address.value}}\n                        {{else}}\n                          {{t 'entity.settings.contacts.No address'}}\n                        {{/if}}\n                      </div>\n                    </div>\n                    <div class='col-md col-12'>\n                      <div\n                        class='{{if\n                            (eq\n                              option.supplierInfo.paymentTerm.attributeAction\n                              \"REMOVED\"\n                            )\n                            \"text-danger\"\n                          }}\n                          {{if\n                            (eq\n                              option.supplierInfo.paymentTerm.attributeAction\n                              \"ADDED\"\n                            )\n                            \"text-success\"\n                          }}'\n                      >\n                        {{#if option.supplierInfo.paymentTerm.value}}\n                          {{option.supplierInfo.paymentTerm.value}}\n                        {{else}}\n                          {{t 'shared.contacts.No payment terms'}}\n                        {{/if}}\n                      </div>\n                    </div>\n                    <div class='col-md col-12'>\n                      {{#if\n                        (or\n                          (eq option.mergeType 'TARGET_ATTRIBUTES_READ_ONLY')\n                          (eq option.mergeType 'TARGET_ATTRIBUTES_UPDATED')\n                        )\n                      }}\n                        <button\n                          class='btn btn-primary float-end'\n                          {{on\n                            'click'\n                            (perform\n                              this.mergeAndUseDuplicatedSupplier options index\n                            )\n                          }}\n                          disabled={{and\n                            (eq this.mergeIndex optionsIndex)\n                            this.mergeAndUseDuplicatedSupplier.isRunning\n                          }}\n                          type='button'\n                        >\n                          {{#if\n                            (and\n                              (eq this.mergeIndex optionsIndex)\n                              this.mergeAndUseDuplicatedSupplier.isRunning\n                            )\n                          }}\n                            <span\n                              class='spinner-border spinner-border-sm'\n                            ></span>&nbsp;&nbsp;{{t 'common.Merging'}}…\n                          {{else}}\n                            <span>\n                              {{t 'common.mergeUse'}}\n                            </span>\n                          {{/if}}\n                        </button>\n                      {{/if}}\n                      {{#if (eq option.mergeType 'READ_ONLY')}}\n                        {{#if\n                          (and\n                            this.accountingPlatform.isActive\n                            option.supplierInfo.xeroContactId\n                          )\n                        }}\n                          <div class='pull-right'>\n                            <InfoPopup\n                              @text={{t\n                                'entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst'\n                              }}\n                            />\n                            <a\n                              href='https://go.xero.com/organisationlogin/default.aspx?shortcode={{this.xeroIntegration.companyId}}&redirecturl=/Contacts/View/{{option.supplierInfo.xeroContactId}}'\n                              class='btn btn-secondary ms-5'\n                              target='_blank'\n                              rel='noopener noreferrer'\n                              role='button'\n                            >\n                              {{t 'common.View in Xero'}}\n                            </a>\n                          </div>\n                        {{else if\n                          (and\n                            this.accountingPlatform.isActive\n                            option.supplierInfo.quickbooksContactId\n                          )\n                        }}\n                          <div class='pull-right'>\n                            <InfoPopup\n                              @text={{t\n                                'entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst'\n                              }}\n                            />\n                            <a\n                              href='{{this.quickbooks.quickbooksUrl}}/app/customerdetail?nameId={{option.supplierInfo.quickbooksContactId}}'\n                              class='btn btn-secondary ms-5'\n                              target='_blank'\n                              rel='noopener noreferrer'\n                              role='button'\n                            >\n                              {{t 'entity.settings.contacts.View in QuickBooks'}}\n                            </a>\n                          </div>\n  \n                        {{else if\n                          (and\n                            this.accountingPlatform.isActive\n                            option.supplierInfo.quickbooksVendorId\n                          )\n                        }}\n                          <div class='pull-right'>\n                            <InfoPopup\n                              @text={{t\n                                'entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst'\n                              }}\n                            />\n                            <a\n                              href='{{this.quickbooks.quickbooksUrl}}/app/vendordetail?nameId={{option.supplierInfo.quickbooksVendorId}}'\n                              class='btn btn-secondary ms-5'\n                              target='_blank'\n                              rel='noopener noreferrer'\n                              role='button'\n                            >\n                              {{t 'entity.settings.contacts.View in QuickBooks'}}\n                            </a>\n                          </div>\n                        {{/if}}\n                      {{/if}}\n                    </div>\n                  </div>\n                {{/each}}\n              </div>\n            {{/if}}\n          </LazyEach>\n        </div>\n  \n        <div class='modal-footer d-flex'>\n          <div class='d-flex align-items-center'>\n            <button\n              type='button'\n              class='btn btn-secondary text-white ms-2'\n              disabled={{or\n                this.mergeAndUseDuplicatedSupplier.isRunning\n                this.mergeDuplicatedSupplier.isRunning\n              }}\n              {{on 'click' this.closeDuplicateSupplierModal}}\n            >{{t 'common.Close'}}</button>\n          </div>\n        </div>\n      {{/if}}\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"AdE0TKIx\",\n    \"block\": \"[[[10,0],[14,0,\\\"mb-1 pb-2 d-lg-flex justify-content-end align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,0,[\\\"isEditable\\\"]],[30,0,[\\\"model\\\",\\\"suppliers\\\",\\\"last\\\",\\\"value\\\",\\\"length\\\"]]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline float-start\\\"],[16,\\\"disabled\\\",[28,[37,4],[[28,[37,5],[[30,0,[\\\"selectedSupplierIds\\\",\\\"size\\\"]]],null],[30,0,[\\\"isLoading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"onDeletingSuppliers\\\"]]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,7],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[11,\\\"input\\\"],[24,0,\\\"form-control m-1 w-auto\\\"],[16,\\\"placeholder\\\",[28,[37,7],[\\\"common.Search\\\"],null]],[16,2,[30,0,[\\\"searchString\\\"]]],[16,\\\"readonly\\\",[30,0,[\\\"isLoading\\\"]]],[24,\\\"autofocus\\\",\\\"true\\\"],[24,4,\\\"search\\\"],[4,[38,6],[\\\"input\\\",[28,[37,9],[[30,0,[\\\"onChangeSearchTerm\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isEditable\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"hasDuplicateSuppliers\\\",\\\"last\\\",\\\"value\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary m-1\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"openMergeDuplicateSuppliersDialog\\\"]]],null],[12],[1,[28,[35,7],[\\\"entity.settings.contacts.Fix duplicates\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[[[1,\\\"      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"syncWithAccountingPackage\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"syncWithAccountingPackage\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"syncWithAccountingPackage\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,7],[\\\"common.Syncing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,7],[\\\"common.syncWithLabel\\\"],[[\\\"label\\\"],[[30,0,[\\\"accountingPlatform\\\",\\\"label\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isLoading\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"goNewSupplier\\\"]]],null],[12],[1,\\\"\\\\n      \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Add\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"suppliers__table-container\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,11],null,[[\\\"@tableHeader\\\",\\\"@tableData\\\",\\\"@noDataText\\\",\\\"@isLoading\\\",\\\"@pageSizes\\\",\\\"@pageSize\\\",\\\"@pageIndex\\\",\\\"@onChangePageIndex\\\",\\\"@onChangePageSize\\\",\\\"@totalRecords\\\",\\\"@class\\\"],[[30,0,[\\\"supplierTableHeader\\\"]],[30,0,[\\\"supplierTableData\\\"]],[28,[37,7],[\\\"common.No suppliers\\\"],null],[30,0,[\\\"model\\\",\\\"suppliers\\\",\\\"isRunning\\\"]],[30,0,[\\\"model\\\",\\\"pageSizes\\\"]],[30,0,[\\\"model\\\",\\\"pageSize\\\"]],[30,0,[\\\"model\\\",\\\"pageNumber\\\"]],[30,0,[\\\"onChangePageIndex\\\"]],[30,0,[\\\"onChangePageSize\\\"]],[30,0,[\\\"totalRecords\\\"]],\\\"table-bordered\\\"]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDeletingSuppliers\\\"]],[[[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@translucentOverlay\\\",\\\"@containerClass\\\"],[\\\"modal\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"isDeletingSuppliers\\\"]]],null],false],null],true,\\\"block-module\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"needDeleteXeroSuppliers\\\",\\\"length\\\"]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-warning\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"exclamation-triangle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.deleteAccountingPlatformSuppliersForNextSync\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"suppliers__delete-xero-suppliers-container mt-3\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"needDeleteXeroSuppliers\\\"]]],null]],null],null,[[[1,\\\"            \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n              \\\"],[10,3],[14,\\\"target\\\",\\\"_blank\\\"],[15,6,[29,[\\\"https://go.xero.com/organisationlogin/default.aspx?shortcode=\\\",[30,0,[\\\"xeroIntegration\\\",\\\"companyId\\\"]],\\\"&redirecturl=/Contacts/View/\\\",[30,1,[\\\"xeroContactId\\\"]]]]],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,10],null,[[\\\"@icon\\\"],[\\\"external-link-alt\\\"]],null],[1,\\\"\\\\n                \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,2],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.Are you sure you want to delete\\\"],null]],[1,\\\"\\\\n      \\\"],[1,[28,[35,20],[[30,0,[\\\"selectedSupplierIds\\\",\\\"size\\\"]],[28,[37,7],[\\\"common.supplier\\\"],null]],null]],[1,\\\"?\\\\n      \\\"],[1,[28,[35,7],[\\\"common.This action cannot be undone\\\"],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"footer\\\"],[14,0,\\\"block-module__footer\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"float-end d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteSuppliers\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[10,\\\"button\\\"],[14,0,\\\"btn btn-danger text-white ms-2\\\"],[15,\\\"disabled\\\",true],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Deleting\\\"],null]],[1,\\\"…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteSuppliers\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"deleteSuppliers\\\"]]],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,7],[\\\"common.Delete\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteSuppliers\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,13],[[28,[37,14],[[30,0,[\\\"isDeletingSuppliers\\\"]]],null],false],null]],null],[12],[1,[28,[35,7],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"onMergeDuplicateSuppliers\\\"]],[[[1,\\\"  \\\"],[8,[39,12],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[30,0,[\\\"closeDuplicateSupplierModal\\\"]],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"onCheckingDuplicateSuppliers\\\",\\\"isRunning\\\"]],[[[1,\\\"      \\\"],[8,[39,22],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"modal-header\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h2\\\"],[14,0,\\\"h2\\\"],[12],[1,[28,[35,7],[\\\"entity.settings.contacts.Fix duplicate suppliers\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-body suppliers__duplicate-supplier-list-container\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,24],null,[[\\\"@items\\\",\\\"@automatic\\\",\\\"@initialNumberOfItemsVisible\\\",\\\"@increment\\\",\\\"@itemDisplayName\\\",\\\"@emptyText\\\"],[[30,0,[\\\"mergeOptions\\\"]],true,\\\"5\\\",\\\"5\\\",\\\"suppliers\\\",[28,[37,7],[\\\"entity.settings.contacts.No duplicate suppliers\\\"],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,25],[[28,[37,25],[[30,2],0],null],\\\"text\\\"],null],[[[1,\\\"            \\\"],[10,0],[15,0,[29,[\\\"card shadow-sm p-3 mb-3 suppliers__duplicate-suppliers-card-\\\",[30,4]]]],[12],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"fw-bold\\\"],[12],[1,\\\" \\\"],[1,[28,[35,25],[[28,[37,25],[[30,2],0],null],\\\"title\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[10,0],[12],[1,\\\" \\\"],[1,[28,[35,25],[[28,[37,25],[[30,2],0],null],\\\"text\\\"],null]],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary float-end\\\"],[16,\\\"disabled\\\",[30,0,[\\\"mergeDuplicatedSupplier\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"mergeDuplicatedSupplier\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"mergeDuplicatedSupplier\\\",\\\"isRunning\\\"]],[[[1,\\\"                      \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Merging\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[10,1],[12],[1,\\\"\\\\n                        \\\"],[1,[28,[35,7],[\\\"common.Merge\\\"],null]],[1,\\\"\\\\n                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[15,0,[29,[[30,3],\\\"\\\\n                card shadow-sm p-3 mb-3 suppliers__duplicate-suppliers-card-\\\",[30,4]]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,2]],null]],null],null,[[[1,\\\"                \\\"],[10,0],[15,0,[29,[\\\"row py-2 align-items-center\\\\n                    \\\",[52,[28,[37,26],[[30,6],[28,[37,27],[[30,2,[\\\"length\\\"]],\\\"-\\\",1],null]],null],\\\"border-bottom\\\"]]]],[12],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[\\\"fw-bold\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"name\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"name\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n                      \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"name\\\",\\\"value\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactPerson\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactPerson\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"contactPerson\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"contactPerson\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.No contact person\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactEmail\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactEmail\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"contactEmail\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"contactEmail\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.No contact Email\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactNumber\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"contactNumber\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"contactNumber\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"contactNumber\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.No contact number\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"address\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"address\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"address\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"address\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.No address\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,0],[15,0,[29,[[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"paymentTerm\\\",\\\"attributeAction\\\"]],\\\"REMOVED\\\"],null],\\\"text-danger\\\"],\\\"\\\\n                        \\\",[52,[28,[37,28],[[30,5,[\\\"supplierInfo\\\",\\\"paymentTerm\\\",\\\"attributeAction\\\"]],\\\"ADDED\\\"],null],\\\"text-success\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"supplierInfo\\\",\\\"paymentTerm\\\",\\\"value\\\"]],[[[1,\\\"                        \\\"],[1,[30,5,[\\\"supplierInfo\\\",\\\"paymentTerm\\\",\\\"value\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                        \\\"],[1,[28,[35,7],[\\\"shared.contacts.No payment terms\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                    \\\"],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"col-md col-12\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[28,[37,28],[[30,5,[\\\"mergeType\\\"]],\\\"TARGET_ATTRIBUTES_READ_ONLY\\\"],null],[28,[37,28],[[30,5,[\\\"mergeType\\\"]],\\\"TARGET_ATTRIBUTES_UPDATED\\\"],null]],null],[[[1,\\\"                      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary float-end\\\"],[16,\\\"disabled\\\",[28,[37,2],[[28,[37,28],[[30,0,[\\\"mergeIndex\\\"]],[30,4]],null],[30,0,[\\\"mergeAndUseDuplicatedSupplier\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"mergeAndUseDuplicatedSupplier\\\"]],[30,2],[30,6]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[28,[37,28],[[30,0,[\\\"mergeIndex\\\"]],[30,4]],null],[30,0,[\\\"mergeAndUseDuplicatedSupplier\\\",\\\"isRunning\\\"]]],null],[[[1,\\\"                          \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Merging\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                          \\\"],[10,1],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],[\\\"common.mergeUse\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,28],[[30,5,[\\\"mergeType\\\"]],\\\"READ_ONLY\\\"],null],[[[41,[28,[37,2],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[30,5,[\\\"supplierInfo\\\",\\\"xeroContactId\\\"]]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n                          \\\"],[8,[39,29],null,[[\\\"@text\\\"],[[28,[37,7],[\\\"entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst\\\"],null]]],null],[1,\\\"\\\\n                          \\\"],[10,3],[15,6,[29,[\\\"https://go.xero.com/organisationlogin/default.aspx?shortcode=\\\",[30,0,[\\\"xeroIntegration\\\",\\\"companyId\\\"]],\\\"&redirecturl=/Contacts/View/\\\",[30,5,[\\\"supplierInfo\\\",\\\"xeroContactId\\\"]]]]],[14,0,\\\"btn btn-secondary ms-5\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],[\\\"common.View in Xero\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[30,5,[\\\"supplierInfo\\\",\\\"quickbooksContactId\\\"]]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n                          \\\"],[8,[39,29],null,[[\\\"@text\\\"],[[28,[37,7],[\\\"entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst\\\"],null]]],null],[1,\\\"\\\\n                          \\\"],[10,3],[15,6,[29,[[30,0,[\\\"quickbooks\\\",\\\"quickbooksUrl\\\"]],\\\"/app/customerdetail?nameId=\\\",[30,5,[\\\"supplierInfo\\\",\\\"quickbooksContactId\\\"]]]]],[14,0,\\\"btn btn-secondary ms-5\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.View in QuickBooks\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[41,[28,[37,2],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[30,5,[\\\"supplierInfo\\\",\\\"quickbooksVendorId\\\"]]],null],[[[1,\\\"                        \\\"],[10,0],[14,0,\\\"pull-right\\\"],[12],[1,\\\"\\\\n                          \\\"],[8,[39,29],null,[[\\\"@text\\\"],[[28,[37,7],[\\\"entity.settings.contacts.duplicatesSyncedFromYourAccountingSystemNeedToBeRemovedThereFirst\\\"],null]]],null],[1,\\\"\\\\n                          \\\"],[10,3],[15,6,[29,[[30,0,[\\\"quickbooks\\\",\\\"quickbooksUrl\\\"]],\\\"/app/vendordetail?nameId=\\\",[30,5,[\\\"supplierInfo\\\",\\\"quickbooksVendorId\\\"]]]]],[14,0,\\\"btn btn-secondary ms-5\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"role\\\",\\\"button\\\"],[12],[1,\\\"\\\\n                            \\\"],[1,[28,[35,7],[\\\"entity.settings.contacts.View in QuickBooks\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"],[13],[1,\\\"\\\\n                      \\\"]],[]],null]],[]]]],[]]]],[]],null],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"]],[2,3,4]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[28,[37,4],[[30,0,[\\\"mergeAndUseDuplicatedSupplier\\\",\\\"isRunning\\\"]],[30,0,[\\\"mergeDuplicatedSupplier\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"closeDuplicateSupplierModal\\\"]]],null],[12],[1,[28,[35,7],[\\\"common.Close\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"supplier\\\",\\\"options\\\",\\\"identifier\\\",\\\"optionsIndex\\\",\\\"option\\\",\\\"index\\\"],false,[\\\"div\\\",\\\"if\\\",\\\"and\\\",\\\"button\\\",\\\"or\\\",\\\"not\\\",\\\"on\\\",\\\"t\\\",\\\"input\\\",\\\"perform\\\",\\\"fa-icon\\\",\\\"pagination-table\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\",\\\"span\\\",\\\"each\\\",\\\"-track-array\\\",\\\"p\\\",\\\"a\\\",\\\"pluralize\\\",\\\"footer\\\",\\\"loading-icon\\\",\\\"h2\\\",\\\"lazy-each\\\",\\\"get\\\",\\\"not-eq\\\",\\\"math\\\",\\\"eq\\\",\\\"info-popup\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/contacts/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/estimates/embedded-page\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=this.model.pageTitle}}\n    />\n  {{/unless}}\n  {{#if this.model.sessionId.isRunning}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    {{#if (or this.model.isUnknown (not this.model.sessionId.value))}}\n      <div\n        class='flex-grow-1 text-center p-5 d-flex flex-column align-items-center'\n      >\n        <FaIcon @icon='dizzy' @size='5x' class='mb-3' />\n        <h1 class='mb-0'>Oops!</h1>\n        <h3>{{t 'common.Could not load page'}}</h3>\n      </div>\n    {{else}}\n      <PricingPage\n        @path={{this.model.path}}\n        @sessionId={{this.model.sessionId.value}}\n      />\n    {{/if}}\n  {{/if}}\n  */\n  {\n    \"id\": \"Dzl8HJ9B\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[30,0,[\\\"model\\\",\\\"pageTitle\\\"]]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"sessionId\\\",\\\"isRunning\\\"]],[[[1,\\\"  \\\"],[8,[39,5],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,0,[\\\"model\\\",\\\"isUnknown\\\"]],[28,[37,7],[[30,0,[\\\"model\\\",\\\"sessionId\\\",\\\"value\\\"]]],null]],null],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"flex-grow-1 text-center p-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,9],[[24,0,\\\"mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"dizzy\\\",\\\"5x\\\"]],null],[1,\\\"\\\\n      \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"Oops!\\\"],[13],[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[12],[1,[28,[35,12],[\\\"common.Could not load page\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,13],null,[[\\\"@path\\\",\\\"@sessionId\\\"],[[30,0,[\\\"model\\\",\\\"path\\\"]],[30,0,[\\\"model\\\",\\\"sessionId\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"or\\\",\\\"not\\\",\\\"div\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"h3\\\",\\\"t\\\",\\\"pricing-page\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/estimates/embedded-page.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/integrations\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component\n        'mobile-title-bar/page-title'\n        title=(t 'common.Integrations')\n      }}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Integrations'}}</h2>\n      {{/if}}\n    </header>\n  \n    {{#if this.model.defaultEntityFeatures.length}}\n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-3'>{{t\n            'entity.settings.integrations.Integration options'\n          }}</h3>\n        {{#each this.model.defaultEntityFeatures as |feature|}}\n          <PtlInput\n            @type='checkbox'\n            @label={{feature.label}}\n            @key={{feature.key}}\n            @description={{feature.description}}\n            @model={{this.model.featurePermissionsChangeset}}\n            disabled={{this.updateCompanyFeatures.isRunning}}\n          />\n        {{/each}}\n        <div class='d-flex flex-grow-1 mt-3'>\n          <button\n            type='button'\n            class='btn btn-primary ms-auto'\n            disabled={{this.updateCompanyFeatures.isRunning}}\n            {{on\n              'click'\n              (perform\n                this.updateCompanyFeatures this.model.featurePermissionsChangeset\n              )\n            }}\n          >\n            {{#if this.updateCompanyFeatures.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t\n                'entity.settings.integrations.Saving options'\n              }}&hellip;\n            {{else}}\n              {{t 'entity.settings.integrations.Save options'}}\n            {{/if}}\n          </button>\n        </div>\n      </PtlForm>\n    {{/if}}\n  \n    {{#if this.newFeatureFlags.entityCanUseIPS}}\n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-3'>{{t 'common.IPS'}}</h3>\n  \n        {{#if this.ips.ready}}\n          <IpsUsage class='mt-0 mb-3' />\n        {{/if}}\n  \n        {{#if this.model.ipsConnection.isRunning}}\n          <LoadingIcon @type='ripple' />\n        {{else if this.model.ipsConnection.last.value}}\n          {{#let\n            (changeset\n              this.model.ipsConnection.last.value this.ipsConnectionValidator\n            )\n            as |ipsCon|\n          }}\n            {{#if ipsCon.isNew}}\n              {{! no connection yet, so this form creates one; the server issues the ipsEmail }}\n              <p class='mt-0'>\n                {{t\n                  'entity.settings.integrations.setUpIpsToStartProcessingYourDocuments'\n                }}\n              </p>\n  \n              <PtlInput\n                @type='email'\n                @label={{t\n                  'entity.settings.integrations.Email address for unprocessed documents'\n                }}\n                @key='contactEmail'\n                @model={{ipsCon}}\n                @required={{true}}\n                @description={{t\n                  'entity.settings.integrations.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress'\n                }}\n                @forceValidationVisible={{gt\n                  this.saveIpsConnection.performCount\n                  0\n                }}\n                disabled={{this.saveIpsConnection.isRunning}}\n                data-test-ips-contact-email\n              />\n  \n              <div class='d-flex flex-grow-1 mt-3'>\n                <button\n                  data-test-ips-create\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{this.saveIpsConnection.isRunning}}\n                  {{on 'click' (perform this.saveIpsConnection ipsCon)}}\n                >\n                  {{#if this.saveIpsConnection.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t\n                      'entity.settings.integrations.Setting up IPS'\n                    }}&hellip;\n                  {{else}}\n                    {{t 'entity.settings.integrations.Set up IPS'}}\n                  {{/if}}\n                </button>\n              </div>\n            {{else}}\n              <div class='mb-3'>\n                <label class='mb-1' for='ips-email'>\n                  {{t 'entity.settings.integrations.Your IPS email address'}}\n                </label>\n                <Input\n                  data-test-ips-email\n                  class='form-control'\n                  id='ips-email'\n                  @type='text'\n                  @value={{ipsCon.ipsEmail}}\n                  disabled={{true}}\n                />\n                <div class='form-text text-muted'>\n                  {{t\n                    'entity.settings.integrations.documentsSentToThisAddressWillArriveInTheSystem'\n                  }}\n                </div>\n              </div>\n  \n              <PtlInput\n                @type='email'\n                @label={{t\n                  'entity.settings.integrations.Email address for unprocessed documents'\n                }}\n                @key='contactEmail'\n                @model={{ipsCon}}\n                @required={{true}}\n                @description={{t\n                  'entity.settings.integrations.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress'\n                }}\n                @forceValidationVisible={{gt\n                  this.saveIpsConnection.performCount\n                  0\n                }}\n                disabled={{this.saveIpsConnection.isRunning}}\n                data-test-ips-contact-email\n              />\n  \n              <div class='d-flex flex-grow-1 mt-3'>\n                <button\n                  data-test-ips-save\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{this.saveIpsConnection.isRunning}}\n                  {{on 'click' (perform this.saveIpsConnection ipsCon)}}\n                >\n                  {{#if this.saveIpsConnection.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n                  {{else}}\n                    {{t 'common.Save'}}\n                    {{t 'common.IPS'}}\n                  {{/if}}\n                </button>\n              </div>\n            {{/if}}\n          {{/let}}\n        {{else}}\n          <p class='mt-0'>\n            {{t\n              'entity.settings.integrations.noIpsConnectionFoundPleaseContactSupport'\n            }}\n          </p>\n        {{/if}}\n      </PtlForm>\n    {{/if}}\n  \n    {{#if\n      (includes-some-feature-flags\n        'canUsePayroll' 'canUseBills' 'canUseFinancialReporting'\n      )\n    }}\n      {{#unless this.quickbooks.ready}}\n        <PtlForm class='width--small mb-4'>\n          <h3 class='h2'>Xero</h3>\n          {{#if this.xeroCompanyName}}\n            <div class='row align-items-center mt-2 mb-3'>\n              <a\n                data-test-xero-organisation-link\n                class='link'\n                target='_black'\n                href='https://go.xero.com/organisationlogin/default.aspx?shortcode={{this.shortCode}}'\n              >\n                {{this.xeroCompanyName}}&nbsp;&nbsp;\n                <FaIcon @icon='external-link-alt' @fixedWidth={{true}} />\n              </a>\n            </div>\n          {{else}}\n            <div class='mt-2'>\n              <button\n                data-test-xero-connect\n                type='button'\n                class='btn btn-primary'\n                {{on 'click' (perform this.setXeroCompany)}}\n              >{{t\n                  'entity.settings.integrations.Connect Xero organisation'\n                }}</button>\n            </div>\n          {{/if}}\n  \n          {{#if this.xeroCompanyName}}\n            {{#let\n              (changeset this.xeroConnection this.xeroValidationMap)\n              as |xeroModel|\n            }}\n              <PtlInput\n                @type='select'\n                @label={{t 'entity.settings.integrations.Send bills with status'}}\n                @key='defaultInvoiceStatus'\n                @options={{this.defaultInvoiceStatusOptions}}\n                @model={{xeroModel}}\n                @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n                disabled={{this.saveEntity.isRunning}}\n              />\n              <PtlInput\n                @type='select'\n                @label={{t\n                  'entity.settings.integrations.Send credit notes with status'\n                }}\n                @key='defaultCreditNoteStatus'\n                @options={{this.defaultCreditNoteStatusOptions}}\n                @model={{xeroModel}}\n                @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n                disabled={{this.saveEntity.isRunning}}\n              />\n              <PtlInput\n                @type='select'\n                @label={{t\n                  'entity.settings.integrations.Send timesheets with status'\n                }}\n                @key='defaultTimesheetStatus'\n                @options={{this.defaultTimesheetStatusOptions}}\n                @model={{xeroModel}}\n                @forceValidationVisible={{gt this.saveEntity.performCount 0}}\n                disabled={{this.saveEntity.isRunning}}\n              />\n              <div class='d-flex flex-grow-1 mt-3'>\n                <button\n                  data-test-xero-disconnect\n                  type='button'\n                  class='btn btn-danger text-white'\n                  disabled={{this.removeXeroCompany.isRunning}}\n                  {{on 'click' (perform this.removeXeroCompany)}}\n                >\n                  {{#if this.removeXeroCompany.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t 'common.Disconnecting'}}&hellip;\n                  {{else}}\n                    {{t 'common.Disconnect'}}\n                  {{/if}}\n                </button>\n                <button\n                  data-test-xero-save\n                  type='button'\n                  class='btn btn-primary ms-auto'\n                  disabled={{this.saveXeroConnection.isRunning}}\n                  {{on 'click' (perform this.saveXeroConnection xeroModel)}}\n                >\n                  {{#if this.saveXeroConnection.isRunning}}\n                    <span\n                      class='spinner-border spinner-border-sm'\n                    ></span>&nbsp;&nbsp;{{t 'common.Saving'}}&hellip;\n                  {{else}}\n                    {{t 'common.Save'}}\n                    Xero\n                  {{/if}}\n                </button>\n              </div>\n            {{/let}}\n          {{/if}}\n        </PtlForm>\n      {{/unless}}\n  \n      {{#unless this.xeroIntegration.ready}}\n        <PtlForm class='width--small mb-4'>\n          <h3 class='h2'>{{t 'common.QuickBooks'}}</h3>\n          {{#if (and this.quickbooks.companyName this.quickbooks.ready)}}\n            <div class='row align-items-center mt-2 mb-3'>\n              <a\n                class='link'\n                target='_black'\n                href='{{this.quickbooksUrl}}/app/get-things-done?companyid={{this.quickbooks.companyId}}'\n              >\n                {{this.quickbooks.companyName}}&nbsp;&nbsp;\n                <FaIcon @icon='external-link-alt' @fixedWidth={{true}} />\n              </a>\n            </div>\n  \n            <div class='d-flex flex-grow-1 mt-3'>\n              <button\n                type='button'\n                class='btn btn-danger text-white'\n                disabled={{this.removeQuickBooksCompany.isRunning}}\n                {{on 'click' (perform this.removeQuickBooksCompany)}}\n              >\n                {{#if this.removeQuickBooksCompany.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Disconnecting'}}&hellip;\n                {{else}}\n                  {{t 'common.Disconnect'}}\n                {{/if}}\n              </button>\n            </div>\n          {{else}}\n            <div class='mt-2'>\n              <button\n                type='button'\n                class='btn btn-primary'\n                {{on 'click' (perform this.setQuickBooksCompany)}}\n              >\n                {{t 'entity.settings.integrations.Connect to QuickBooks'}}\n              </button>\n            </div>\n          {{/if}}\n        </PtlForm>\n      {{/unless}}\n    {{/if}}\n  \n    {{#unless this.updatePlaceMakersIntegration.isRunning}}\n      {{#if (eq this.sessionData.entity.region 'NZL')}}\n        <PtlForm class='width--small mb-4'>\n          <h3 class='m-0'>PlaceMakers</h3>\n          {{! computed property is not computing value change, we added the task Running check to unload and render}}\n          {{#if (includes-feature-flags 'canUsePlaceMakers')}}\n            <PmIntegrationSettings />\n          {{else}}\n            <div class='m-0'>\n              <p>{{t\n                  'entity.settings.integrations.toUseThePlacemakersIntegrationPleaseEnableItFirst'\n                }}</p>\n              <button\n                type='button'\n                class='btn btn-primary'\n                {{on 'click' (perform this.updatePlaceMakersIntegration true)}}\n                disabled={{this.updatePlaceMakersIntegration.isRunning}}\n              >\n                {{#if this.updatePlaceMakersIntegration.isRunning}}\n                  <span\n                    class='spinner-border spinner-border-sm'\n                  ></span>&nbsp;&nbsp;{{t 'common.Enabling'}}&hellip;\n                {{else}}\n                  {{t 'common.Enable'}}\n                {{/if}}\n              </button>\n            </div>\n          {{/if}}\n        </PtlForm>\n      {{/if}}\n    {{/unless}}\n  \n    {{#if (includes-feature-flags 'canUseItmInvoiceIntegration')}}\n      {{#if (eq this.sessionData.entity.region 'NZL')}}\n        <PtlForm class='width--small mb-4'>\n          <h3>ITM {{t 'common.Invoice'}}</h3>\n          {{#if this.model.itmSuppliers.isRunning}}\n            <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n          {{else}}\n            <div>\n              <p>{{t\n                  'entity.settings.integrations.ifYouHaveAnAccountWithAnItmStoreWeCanImportYourInvoicesAutomatically'\n                }}</p>\n              <p>{{t\n                  'entity.settings.integrations.pleaseSelectTheITMStoresYouHaveAccountsWithAndClick'\n                }}\n                <i>{{t\n                    'entity.settings.integrations.Request Integration'\n                  }}</i>.</p>\n            </div>\n  \n            <PowerSelectMultiple\n              @tagName='div'\n              @options={{this.requestableItmStores}}\n              @selected={{this.selectedItmStores}}\n              @searchEnabled={{true}}\n              @searchField='name'\n              @placeholder={{t 'entity.settings.integrations.Select ITM stores'}}\n              @onChange={{fn (mut this.selectedItmStores)}}\n              as |store|\n            >\n              {{store.name}}\n            </PowerSelectMultiple>\n  \n            <div class='mt-2'>\n              <button\n                type='button'\n                class='btn btn-primary pull-right ms-auto'\n                disabled={{or\n                  this.requestItmStores.isRunning\n                  (not this.selectedItmStores.length)\n                }}\n                {{on 'click' (perform this.requestItmStores)}}\n              >\n                {{#if this.requestItmStores.isRunning}}\n                  {{t\n                    'entity.settings.integrations.Requesting Integration'\n                  }}&hellip;\n                {{else}}\n                  {{t 'entity.settings.integrations.Request Integration'}}\n                {{/if}}\n              </button>\n            </div>\n  \n            {{#if this.requestedItmStores.length}}\n              <div>\n                <p>{{t\n                    'entity.settings.integrations.integrationRequestsHaveBeenSentToTheFollowingStores'\n                  }}</p>\n                <p>{{t\n                    'entity.settings.integrations.itMayTakeAFewDaysForAStoreToFulfilTheRequestIfYouAreHavingIssuesWithYourIntegrationPlease'\n                  }}\n                  <a class='link' href='#' {{on 'click' this.contactSupport}}>{{t\n                      'entity.settings.integrations.Contact support'\n                    }}</a>.\n                </p>\n              </div>\n              <div>\n                <table class='itm-invoice-integration-settings-table'>\n                  <thead>\n                    <tr>\n                      <th>{{t 'common.Integration'}}</th>\n                      <th>{{t 'common.Status'}}</th>\n                      <th>{{t 'common.Action'}}</th>\n                    </tr>\n                  </thead>\n                  <tbody>\n                    {{#each this.requestedItmStores as |store|}}\n                      <tr>\n                        <td>{{store.name}}</td>\n                        <td>{{store.status}}</td>\n                        <td>\n                          {{#if\n                            (or\n                              (eq store.status 'Connected')\n                              (eq store.status 'Pending')\n                            )\n                          }}\n                            <button\n                              class='text-button'\n                              type='button'\n                              {{on 'click' (fn this.cancelItmStoreRequest store)}}\n                            >\n                              <FaIcon\n                                @icon='times'\n                                @fixedWidth={{true}}\n                                @size='1'\n                              />\n                              {{t 'common.Cancel'}}\n                            </button>\n                          {{else if (eq store.status 'Canceled')}}\n                            <button\n                              class='text-button'\n                              type='button'\n                              {{on\n                                'click'\n                                (fn this.reconnectITmStoreRequest store)\n                              }}\n                            >\n                              <FaIcon @icon='plug' @fixedWidth={{true}} />\n                              {{t 'common.Reconnect'}}\n                            </button>\n                          {{/if}}\n                        </td>\n                      </tr>\n                    {{/each}}\n                  </tbody>\n                </table>\n              </div>\n            {{else}}\n              <div class='itm-invoice-integration-settings-table__placeholder'>\n                <FaIcon @icon='cogs' @fixedWidth={{true}} @size='2' />\n                <p>{{t\n                    'entity.settings.integrations.yourIntegrationRequestsWillAppearHere'\n                  }}</p>\n              </div>\n            {{/if}}\n          {{/if}}\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </article>\n  */\n  {\n    \"id\": \"tTh/Z40v\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Integrations\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Integrations\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"defaultEntityFeatures\\\",\\\"length\\\"]],[[[1,\\\"    \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.Integration options\\\"],null]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[30,0,[\\\"model\\\",\\\"defaultEntityFeatures\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"updateCompanyFeatures\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\"],[\\\"checkbox\\\",[30,1,[\\\"label\\\"]],[30,1,[\\\"key\\\"]],[30,1,[\\\"description\\\"]],[30,0,[\\\"model\\\",\\\"featurePermissionsChangeset\\\"]]]],null],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updateCompanyFeatures\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"updateCompanyFeatures\\\"]],[30,0,[\\\"model\\\",\\\"featurePermissionsChangeset\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updateCompanyFeatures\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Saving options\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Save options\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseIPS\\\"]],[[[1,\\\"    \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"common.IPS\\\"],null]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"ips\\\",\\\"ready\\\"]],[[[1,\\\"        \\\"],[8,[39,19],[[24,0,\\\"mt-0 mb-3\\\"]],null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"ipsConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"        \\\"],[8,[39,20],null,[[\\\"@type\\\"],[\\\"ripple\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"model\\\",\\\"ipsConnection\\\",\\\"last\\\",\\\"value\\\"]],[[[44,[[28,[37,22],[[30,0,[\\\"model\\\",\\\"ipsConnection\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"ipsConnectionValidator\\\"]]],null]],[[[41,[30,2,[\\\"isNew\\\"]],[[[1,\\\"            \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.setUpIpsToStartProcessingYourDocuments\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-ips-contact-email\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\"],[\\\"email\\\",[28,[37,4],[\\\"entity.settings.integrations.Email address for unprocessed documents\\\"],null],\\\"contactEmail\\\",[30,2],true,[28,[37,4],[\\\"entity.settings.integrations.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress\\\"],null],[28,[37,24],[[30,0,[\\\"saveIpsConnection\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"data-test-ips-create\\\",\\\"\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveIpsConnection\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Setting up IPS\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Set up IPS\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[14,\\\"for\\\",\\\"ips-email\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Your IPS email address\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n              \\\"],[8,[39,26],[[24,\\\"data-test-ips-email\\\",\\\"\\\"],[24,0,\\\"form-control\\\"],[24,1,\\\"ips-email\\\"],[16,\\\"disabled\\\",true]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,2,[\\\"ipsEmail\\\"]]]],null],[1,\\\"\\\\n              \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.documentsSentToThisAddressWillArriveInTheSystem\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]]],[24,\\\"data-test-ips-contact-email\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@description\\\",\\\"@forceValidationVisible\\\"],[\\\"email\\\",[28,[37,4],[\\\"entity.settings.integrations.Email address for unprocessed documents\\\"],null],\\\"contactEmail\\\",[30,2],true,[28,[37,4],[\\\"entity.settings.integrations.anyEmailsOrDocumentsThatIpsIsUnableToProcessWillBeSentToThisAddress\\\"],null],[28,[37,24],[[30,0,[\\\"saveIpsConnection\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"data-test-ips-save\\\",\\\"\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveIpsConnection\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveIpsConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n                  \\\"],[1,[28,[35,4],[\\\"common.IPS\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[2]]]],[]],[[[1,\\\"        \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.noIpsConnectionFoundPleaseContactSupport\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]],[]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,27],[\\\"canUsePayroll\\\",\\\"canUseBills\\\",\\\"canUseFinancialReporting\\\"],null],[[[41,[51,[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]]],[[[1,\\\"      \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h2\\\"],[12],[1,\\\"Xero\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"xeroCompanyName\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"row align-items-center mt-2 mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,3],[14,\\\"data-test-xero-organisation-link\\\",\\\"\\\"],[14,0,\\\"link\\\"],[14,\\\"target\\\",\\\"_black\\\"],[15,6,[29,[\\\"https://go.xero.com/organisationlogin/default.aspx?shortcode=\\\",[30,0,[\\\"shortCode\\\"]]]]],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"xeroCompanyName\\\"]]],[1,\\\"  \\\\n              \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,\\\"data-test-xero-connect\\\",\\\"\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"setXeroCompany\\\"]]],null]],null],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.Connect Xero organisation\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"xeroCompanyName\\\"]],[[[44,[[28,[37,22],[[30,0,[\\\"xeroConnection\\\"]],[30,0,[\\\"xeroValidationMap\\\"]]],null]],[[[1,\\\"            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,4],[\\\"entity.settings.integrations.Send bills with status\\\"],null],\\\"defaultInvoiceStatus\\\",[30,0,[\\\"defaultInvoiceStatusOptions\\\"]],[30,3],[28,[37,24],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,4],[\\\"entity.settings.integrations.Send credit notes with status\\\"],null],\\\"defaultCreditNoteStatus\\\",[30,0,[\\\"defaultCreditNoteStatusOptions\\\"]],[30,3],[28,[37,24],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,13],[[16,\\\"disabled\\\",[30,0,[\\\"saveEntity\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,4],[\\\"entity.settings.integrations.Send timesheets with status\\\"],null],\\\"defaultTimesheetStatus\\\",[30,0,[\\\"defaultTimesheetStatusOptions\\\"]],[30,3],[28,[37,24],[[30,0,[\\\"saveEntity\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"data-test-xero-disconnect\\\",\\\"\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"removeXeroCompany\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"removeXeroCompany\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"removeXeroCompany\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Disconnecting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Disconnect\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,\\\"data-test-xero-save\\\",\\\"\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveXeroConnection\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"saveXeroConnection\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveXeroConnection\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n                  Xero\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[3]]]],[]],null],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"xeroIntegration\\\",\\\"ready\\\"]]],[[[1,\\\"      \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"h2\\\"],[12],[1,[28,[35,4],[\\\"common.QuickBooks\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,30],[[30,0,[\\\"quickbooks\\\",\\\"companyName\\\"]],[30,0,[\\\"quickbooks\\\",\\\"ready\\\"]]],null],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"row align-items-center mt-2 mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,3],[14,0,\\\"link\\\"],[14,\\\"target\\\",\\\"_black\\\"],[15,6,[29,[[30,0,[\\\"quickbooksUrl\\\"]],\\\"/app/get-things-done?companyid=\\\",[30,0,[\\\"quickbooks\\\",\\\"companyId\\\"]]]]],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"quickbooks\\\",\\\"companyName\\\"]]],[1,\\\"  \\\\n              \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"external-link-alt\\\",true]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-3\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-danger text-white\\\"],[16,\\\"disabled\\\",[30,0,[\\\"removeQuickBooksCompany\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"removeQuickBooksCompany\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"removeQuickBooksCompany\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Disconnecting\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Disconnect\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"setQuickBooksCompany\\\"]]],null]],null],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Connect to QuickBooks\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"updatePlaceMakersIntegration\\\",\\\"isRunning\\\"]]],[[[41,[28,[37,31],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"region\\\"]],\\\"NZL\\\"],null],[[[1,\\\"      \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"PlaceMakers\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[\\\"canUsePlaceMakers\\\"],null],[[[1,\\\"          \\\"],[8,[39,33],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.toUseThePlacemakersIntegrationPleaseEnableItFirst\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"updatePlaceMakersIntegration\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"updatePlaceMakersIntegration\\\"]],true],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"updatePlaceMakersIntegration\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Enabling\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"common.Enable\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,32],[\\\"canUseItmInvoiceIntegration\\\"],null],[[[41,[28,[37,31],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"region\\\"]],\\\"NZL\\\"],null],[[[1,\\\"      \\\"],[8,[39,9],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[12],[1,\\\"ITM \\\"],[1,[28,[35,4],[\\\"common.Invoice\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"itmSuppliers\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[8,[39,20],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,0],[12],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.ifYouHaveAnAccountWithAnItmStoreWeCanImportYourInvoicesAutomatically\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.pleaseSelectTheITMStoresYouHaveAccountsWithAndClick\\\"],null]],[1,\\\"\\\\n              \\\"],[10,\\\"i\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.Request Integration\\\"],null]],[13],[1,\\\".\\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,35],null,[[\\\"@tagName\\\",\\\"@options\\\",\\\"@selected\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@onChange\\\"],[\\\"div\\\",[30,0,[\\\"requestableItmStores\\\"]],[30,0,[\\\"selectedItmStores\\\"]],true,\\\"name\\\",[28,[37,4],[\\\"entity.settings.integrations.Select ITM stores\\\"],null],[28,[37,36],[[28,[37,37],[[30,0,[\\\"selectedItmStores\\\"]]],null]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n          \\\"]],[4]]]]],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"mt-2\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary pull-right ms-auto\\\"],[16,\\\"disabled\\\",[28,[37,38],[[30,0,[\\\"requestItmStores\\\",\\\"isRunning\\\"]],[28,[37,39],[[30,0,[\\\"selectedItmStores\\\",\\\"length\\\"]]],null]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"requestItmStores\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"requestItmStores\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Requesting Integration\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,4],[\\\"entity.settings.integrations.Request Integration\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"requestedItmStores\\\",\\\"length\\\"]],[[[1,\\\"            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.integrationRequestsHaveBeenSentToTheFollowingStores\\\"],null]],[13],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.itMayTakeAFewDaysForAStoreToFulfilTheRequestIfYouAreHavingIssuesWithYourIntegrationPlease\\\"],null]],[1,\\\"\\\\n                \\\"],[11,3],[24,0,\\\"link\\\"],[24,6,\\\"#\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"contactSupport\\\"]]],null],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.Contact support\\\"],null]],[13],[1,\\\".\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[10,\\\"table\\\"],[14,0,\\\"itm-invoice-integration-settings-table\\\"],[12],[1,\\\"\\\\n                \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Integration\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Status\\\"],null]],[13],[1,\\\"\\\\n                    \\\"],[10,\\\"th\\\"],[12],[1,[28,[35,4],[\\\"common.Action\\\"],null]],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n                \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[30,0,[\\\"requestedItmStores\\\"]]],null]],null],null,[[[1,\\\"                    \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,[30,5,[\\\"name\\\"]]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,[30,5,[\\\"status\\\"]]],[13],[1,\\\"\\\\n                      \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,38],[[28,[37,31],[[30,5,[\\\"status\\\"]],\\\"Connected\\\"],null],[28,[37,31],[[30,5,[\\\"status\\\"]],\\\"Pending\\\"],null]],null],[[[1,\\\"                          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,36],[[30,0,[\\\"cancelItmStoreRequest\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n                            \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"times\\\",true,\\\"1\\\"]],null],[1,\\\"\\\\n                            \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,31],[[30,5,[\\\"status\\\"]],\\\"Canceled\\\"],null],[[[1,\\\"                          \\\"],[11,\\\"button\\\"],[24,0,\\\"text-button\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,36],[[30,0,[\\\"reconnectITmStoreRequest\\\"]],[30,5]],null]],null],[12],[1,\\\"\\\\n                            \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\"],[\\\"plug\\\",true]],null],[1,\\\"\\\\n                            \\\"],[1,[28,[35,4],[\\\"common.Reconnect\\\"],null]],[1,\\\"\\\\n                          \\\"],[13],[1,\\\"\\\\n                        \\\"]],[]],null]],[]]],[1,\\\"                      \\\"],[13],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"itm-invoice-integration-settings-table__placeholder\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,29],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"cogs\\\",true,\\\"2\\\"]],null],[1,\\\"\\\\n              \\\"],[10,2],[12],[1,[28,[35,4],[\\\"entity.settings.integrations.yourIntegrationRequestsWillAppearHere\\\"],null]],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\"      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[13]],[\\\"feature\\\",\\\"ipsCon\\\",\\\"xeroModel\\\",\\\"store\\\",\\\"store\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ptl-input\\\",\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"span\\\",\\\"ips-usage\\\",\\\"loading-icon\\\",\\\"let\\\",\\\"changeset\\\",\\\"p\\\",\\\"gt\\\",\\\"label\\\",\\\"input\\\",\\\"includes-some-feature-flags\\\",\\\"a\\\",\\\"fa-icon\\\",\\\"and\\\",\\\"eq\\\",\\\"includes-feature-flags\\\",\\\"pm-integration-settings\\\",\\\"i\\\",\\\"power-select-multiple\\\",\\\"fn\\\",\\\"mut\\\",\\\"or\\\",\\\"not\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"td\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/integrations.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <article class='m-4'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.People'}}</h2>\n    </header>\n    <div class='d-flex mt-3 width--large'>\n      <ul class='list-group' style='min-width: 200px;'>\n        {{#each this.tabs as |tab|}}\n          <LinkTo\n            @route={{tab.route}}\n            draggable={{false}}\n            class='list-group-item'\n          >\n            <FaIcon @icon={{tab.icon}} @fixedWidth={{true}} @size='md' />\n            {{tab.name}}\n          </LinkTo>\n        {{/each}}\n      </ul>\n      <div class='flex-grow-1 ms-3'>\n        {{outlet}}\n      </div>\n    </div>\n  </article>\n  */\n  {\n    \"id\": \"a2v3DoTb\",\n    \"block\": \"[[[10,\\\"article\\\"],[14,0,\\\"m-4\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,3],[\\\"common.People\\\"],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"d-flex mt-3 width--large\\\"],[12],[1,\\\"\\\\n    \\\"],[10,\\\"ul\\\"],[14,0,\\\"list-group\\\"],[14,5,\\\"min-width: 200px;\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"tabs\\\"]]],null]],null],null,[[[1,\\\"        \\\"],[8,[39,8],[[16,\\\"draggable\\\",false],[24,0,\\\"list-group-item\\\"]],[[\\\"@route\\\"],[[30,1,[\\\"route\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[8,[39,9],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[[30,1,[\\\"icon\\\"]],true,\\\"md\\\"]],null],[1,\\\"\\\\n          \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"flex-grow-1 ms-3\\\"],[12],[1,\\\"\\\\n      \\\"],[46,[28,[37,11],null,null],null,null,null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"tab\\\"],false,[\\\"article\\\",\\\"header\\\",\\\"h2\\\",\\\"t\\\",\\\"div\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"link-to\\\",\\\"fa-icon\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/clients\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"WbrVkX40\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/clients.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/clients/client\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.First name'}}\n          @key='firstName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.user.isNew}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.user.isNew) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Last name'}}\n          @key='lastName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.user.isNew}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.user.isNew) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Email'}}\n          @key='email'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.user.isNew}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.user.isNew) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='tel'\n          @label={{t 'common.Phone number'}}\n          @key='phoneNumber'\n          @model={{this.model.userChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.user.isNew) this.saveUser.isRunning}}\n        />\n  \n        <div class='d-flex flex-grow-1 mt-2'>\n          {{#if this.user.isNew}}\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveUser.isRunning}}\n              {{on\n                'click'\n                (perform this.saveUser this.model.userChangeset.last.value)\n              }}\n            >\n              {{#if this.saveUser.isRunning}}\n                {{t\n                  'entity.settings.people.clients.client.Saving client'\n                }}&hellip;\n              {{else}}\n                {{if\n                  this.user.isNew\n                  (t 'entity.settings.people.clients.client.Create client')\n                  (t 'entity.settings.people.clients.client.Save client')\n                }}\n              {{/if}}\n            </button>\n          {{else if this.canManageUser}}\n            <button\n              type='button'\n              class='btn btn-link text-danger text-decoration-underline'\n              disabled={{this.deleteUser.isRunning}}\n              {{on 'click' (perform this.deleteUser)}}\n            >\n              {{#if this.deleteUser.isRunning}}\n                {{t\n                  'entity.settings.people.clients.client.Deleting client'\n                }}&hellip;\n              {{else}}\n                {{t 'entity.settings.people.clients.client.Delete client'}}\n              {{/if}}\n            </button>\n  \n            {{#if (includes-feature-flags 'userIsAdmin')}}\n              {{#unless this.user.isNew}}\n                <div class='d-flex justify-content-end ms-auto'>\n                  <button\n                    class='btn btn-link ms-auto text-decoration-underline'\n                    type='button'\n                    {{on 'click' (fn this.loginAs this.user)}}\n                  >\n                    {{concat\n                      (t 'shared.people-editor.Login as')\n                      ' '\n                      this.user.fullName\n                    }}\n                  </button>\n                </div>\n              {{/unless}}\n            {{/if}}\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#unless (or this.user.isNew (not this.canManageUser))}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-3'>\n            {{t\n              'entity.settings.people.clients.client.clientEntityPermissionsExplanation'\n            }}\n          </p>\n  \n          <div class='d-flex'>\n            <LinkTo\n              class='btn btn-primary m-1'\n              @route='entity.builda-price.projects'\n            >\n              {{t 'entity.settings.people.clients.client.Go to projects'}}\n              <FaIcon @icon='external-link-alt' @fixedWidth={{true}} @size='md' />\n            </LinkTo>\n          </div>\n        </PtlForm>\n      {{/unless}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"o/pZ4KGr\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Email\\\"],null],\\\"email\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"tel\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"saveUser\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.Saving client\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[52,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.people.clients.client.Create client\\\"],null],[28,[37,6],[\\\"entity.settings.people.clients.client.Save client\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"canManageUser\\\"]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.Deleting client\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.Delete client\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,14],[\\\"userIsAdmin\\\"],null],[[[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex justify-content-end ms-auto\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link ms-auto text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"loginAs\\\"]],[30,0,[\\\"user\\\"]]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,17],[[28,[37,6],[\\\"shared.people-editor.Login as\\\"],null],\\\" \\\",[30,0,[\\\"user\\\",\\\"fullName\\\"]]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"]],[]],null]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,8],[[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,9],[[30,0,[\\\"canManageUser\\\"]]],null]],null]],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.clientEntityPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"d-flex\\\"],[12],[1,\\\"\\\\n          \\\"],[8,[39,19],[[24,0,\\\"btn btn-primary m-1\\\"]],[[\\\"@route\\\"],[\\\"entity.builda-price.projects\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.settings.people.clients.client.Go to projects\\\"],null]],[1,\\\"\\\\n            \\\"],[8,[39,20],null,[[\\\"@icon\\\",\\\"@fixedWidth\\\",\\\"@size\\\"],[\\\"external-link-alt\\\",true,\\\"md\\\"]],null],[1,\\\"\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"includes-feature-flags\\\",\\\"unless\\\",\\\"fn\\\",\\\"concat\\\",\\\"p\\\",\\\"link-to\\\",\\\"fa-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/clients/client.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/clients/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-1 d-flex align-items-center justify-content-end'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.clients.Search for clients'}}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <div class='d-flex flex-column flex-lg-row'>\n          <LinkTo\n            @route={{concat this.model.basePath '.clients.client'}}\n            @model='new'\n            class='btn btn-success text-white text-nowrap m-1'\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}</LinkTo>\n        </div>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredClients}}\n      @noData={{t 'shared.people-editor.clients.No clients yet'}}\n      @route={{concat this.model.basePath '.clients.client'}}\n      @showLoginAs={{includes-feature-flags 'userIsAdmin'}}\n      @onClickLoginAs={{this.loginAs}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"7ldE7v8F\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.clients.Search for clients\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],[[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".clients.client\\\"],null],\\\"new\\\"]],[[\\\"default\\\"],[[[[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,10],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\",\\\"@showLoginAs\\\",\\\"@onClickLoginAs\\\"],[[30,0,[\\\"filteredClients\\\"]],[28,[37,5],[\\\"shared.people-editor.clients.No clients yet\\\"],null],[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".clients.client\\\"],null],[28,[37,6],[\\\"userIsAdmin\\\"],null],[30,0,[\\\"loginAs\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"people-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/clients/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/subcontractors\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"BcvWO5X4\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/subcontractors.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/subcontractors/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-1 d-flex align-items-center justify-content-end'>\n      <span class='m-1' style='width: 200px;'>\n        <Input\n          class='form-control'\n          placeholder={{t\n            'shared.people-editor.subcontractors.Search for subcontractors'\n          }}\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <div class='d-flex flex-column flex-lg-row'>\n          <LinkTo\n            @route={{concat this.model.basePath '.subcontractors.subcontractor'}}\n            @model='new'\n            class='btn btn-success text-white text-nowrap m-1'\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}</LinkTo>\n        </div>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredSubcontractors}}\n      @noData={{t 'shared.people-editor.subcontractors.No subcontractors yet'}}\n      @route={{concat this.model.basePath '.subcontractors.subcontractor'}}\n      @showLoginAs={{includes-feature-flags 'userIsAdmin'}}\n      @onClickLoginAs={{this.loginAs}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"nJ4fVtuX\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[14,5,\\\"width: 200px;\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.subcontractors.Search for subcontractors\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],[[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".subcontractors.subcontractor\\\"],null],\\\"new\\\"]],[[\\\"default\\\"],[[[[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,10],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\",\\\"@showLoginAs\\\",\\\"@onClickLoginAs\\\"],[[30,0,[\\\"filteredSubcontractors\\\"]],[28,[37,5],[\\\"shared.people-editor.subcontractors.No subcontractors yet\\\"],null],[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".subcontractors.subcontractor\\\"],null],[28,[37,6],[\\\"userIsAdmin\\\"],null],[30,0,[\\\"loginAs\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"people-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/subcontractors/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/subcontractors/subcontractor\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.First name'}}\n          @key='firstName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Last name'}}\n          @key='lastName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Email'}}\n          @key='email'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n  \n        <PtlInput\n          @type='tel'\n          @label={{t 'common.Phone number'}}\n          @key='phoneNumber'\n          @model={{this.model.userChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n  \n        {{#if this.canManageUser}}\n          <div class='d-flex flex-grow-1 mt-2'>\n            {{#unless this.user.isNew}}\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{this.deleteUser.isRunning}}\n                {{on 'click' (perform this.deleteUser)}}\n              >\n                {{#if this.deleteUser.isRunning}}\n                  {{t 'shared.people-editor.Deleting user'}}\n                  &hellip;\n                {{else}}\n                  {{t 'shared.people-editor.Delete user'}}\n                {{/if}}\n              </button>\n            {{/unless}}\n  \n            {{#if this.canEditUser}}\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveUser.isRunning}}\n                {{on\n                  'click'\n                  (perform this.saveUser this.model.userChangeset.last.value)\n                }}\n              >\n                {{#if this.saveUser.isRunning}}\n                  {{t\n                    'entity.settings.people.subcontractors.subcontractor.Saving subcontractor'\n                  }}&hellip;\n                {{else}}\n                  {{if\n                    this.user.isNew\n                    (t\n                      'entity.settings.people.subcontractors.subcontractor.Create subcontractor'\n                    )\n                    (t\n                      'entity.settings.people.subcontractors.subcontractor.Save subcontractor'\n                    )\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n  \n            {{#if (includes-feature-flags 'userIsAdmin')}}\n              {{#unless this.user.isNew}}\n                <div class='d-flex justify-content-end ms-auto'>\n                  <button\n                    class='btn btn-link ms-auto text-decoration-underline'\n                    type='button'\n                    {{on 'click' (fn this.loginAs this.user)}}\n                  >\n                    {{concat\n                      (t 'shared.people-editor.Login as')\n                      ' '\n                      this.user.fullName\n                    }}\n                  </button>\n                </div>\n              {{/unless}}\n            {{/if}}\n          </div>\n        {{/if}}\n      </PtlForm>\n  \n      {{#unless\n        (or\n          (or this.user.isNew this.user.lastLoginDate)\n          (not this.canManageUserPermissions)\n        )\n      }}\n        <div class='alert alert-primary' role='alert'>\n          <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n          <span class='me-2'>\n            {{this.user.firstName}}\n            {{t 'shared.people-editor.trySendReminderEmail'}}\n          </span>\n          <button\n            type='button'\n            class='btn btn-outline-primary'\n            {{on\n              'click'\n              (perform\n                this.sendPasswordResetEmail this.model.userChangeset.last.value\n              )\n            }}\n            disabled={{this.sendPasswordResetEmail.isRunning}}\n          >\n            {{#if this.sendPasswordResetEmail.isRunning}}\n              {{t 'shared.people-editor.Sending reminder email'}}&hellip;\n            {{else}}\n              {{t 'shared.people-editor.Send reminder email'}}\n            {{/if}}\n          </button>\n        </div>\n      {{/unless}}\n  \n      {{#if (and this.canManageUserPermissions (not this.user.isNew))}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n          <p class='mb-4'>\n            {{t 'shared.people-editor.userPermissionsExplanation'}}\n          </p>\n  \n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.projectPermissionsVisible)\n                (not this.projectPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Project'}}\n            </h4>\n            {{#if this.projectPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.projectPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.projectPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.projectPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can see all projects'}}\n              @key='canViewProjects'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n            {{#if\n              (or\n                this.model.permissionsChangeset.last.value.canManageProjects\n                this.model.permissionsChangeset.last.value.canViewProjects\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can manage all projects'}}\n                @description={{t\n                  'shared.people-editor.canManageAllProjectsDescription'\n                }}\n                @key='canManageProjects'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.Can see all tasks'}}\n              @description={{t\n                'shared.people-editor.Lets the user see all tasks'\n              }}\n              @key='canViewTasks'\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n            {{#if\n              (or\n                this.model.permissionsChangeset.last.value.canManageTasks\n                this.model.permissionsChangeset.last.value.canViewTasks\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can manage all tasks'}}\n                @description={{t\n                  'shared.people-editor.canManageAllTasksDescription'\n                }}\n                @key='canManageTasks'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all project budgets'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllProjectBudgetsDescription'\n                }}\n                @key='canViewBudgets'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageBudgets\n                  this.model.permissionsChangeset.last.value.canViewBudgets\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all project budgets'\n                  }}\n                  @description={{t\n                    'shared.people-editor.canManageAllProjectBudgetsDescription'\n                  }}\n                  @key='canManageBudgets'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all project quotes'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllProjectQuotesDescription'\n                }}\n                @key='canViewQuotes'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageQuotes\n                  this.model.permissionsChangeset.last.value.canViewQuotes\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all project quotes'\n                  }}\n                  @description={{t\n                    'shared.people-editor.canManageAllProjectQuotesDescription'\n                  }}\n                  @key='canManageQuotes'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all project progress'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllProjectProgressDescription'\n                }}\n                @key='canViewProgress'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageProgress\n                  this.model.permissionsChangeset.last.value.canViewProgress\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can manage all project progress'\n                  }}\n                  @description={{t\n                    'shared.people-editor.canManageAllProjectProgressDescription'\n                  }}\n                  @key='canManageProgress'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all documents'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllDocumentsDescription'\n                }}\n                @key='canViewFileStorage'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageFileStorage\n                  this.model.permissionsChangeset.last.value.canViewFileStorage\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage all documents'}}\n                  @description={{t\n                    'shared.people-editor.canManageAllDocumentsDescription'\n                  }}\n                  @key='canManageFileStorage'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProducts}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see all products'}}\n                @description={{t\n                  'shared.people-editor.canSeeAllProductsDescription'\n                }}\n                @key='canViewProducts'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageProducts\n                  this.model.permissionsChangeset.last.value.canViewProducts\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can manage all products'}}\n                  @description={{t\n                    'shared.people-editor.canManageAllProductsDescription'\n                  }}\n                  @key='canManageProducts'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseEstimates}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make estimates'}}\n                @key='canEstimate'\n                @description={{t\n                  'shared.people-editor.canMakeEstimatesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canManageEstimateSettings'}}\n                @key='canManageEstimateSettings'\n                @description={{t\n                  'shared.people-editor.canManageEstimateSettingsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseScheduling}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.schedulingPermissionsVisible)\n                  (not this.schedulingPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Scheduling'}}\n              </h4>\n              {{#if this.schedulingPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.schedulingPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.schedulingPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.schedulingPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can see scheduling reports'}}\n                @key='canViewSchedulingReports'\n                @description={{t\n                  'shared.people-editor.Gives access to see the timeline'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.Can make scheduling changes'}}\n                @key='canManageSchedulingReports'\n                @description={{t\n                  'shared.people-editor.canMakeSchedulingChangesDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if\n            (or\n              this.newFeatureFlags.entityCanUseTimesheets\n              this.newFeatureFlags.entityCanUseBills\n            )\n          }}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.allocationsPermissionsVisible)\n                  (not this.allocationsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Allocations'}}\n              </h4>\n              {{#if this.allocationsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.allocationsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.allocationsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.allocationsPermissionsVisible}}\n              {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'shared.people-editor.Can see all timesheets and notes'\n                  }}\n                  @key='canViewTimesheets'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageTimesheets\n                    this.model.permissionsChangeset.last.value.canViewTimesheets\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'shared.people-editor.Can manage all timesheets and notes'\n                    }}\n                    @description={{t\n                      'shared.people-editor.canManageAllTimesheetsAndNotesDescription'\n                    }}\n                    @key='canManageTimesheets'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                {{/if}}\n                <PtlInput\n                  @type='powerSelectMultiple'\n                  @label={{t 'shared.people-editor.Timesheet workers'}}\n                  @key='workers'\n                  @description={{t\n                    'shared.people-editor.timesheetWorkersDescription'\n                  }}\n                  @optionKeys={{array 'fullName'}}\n                  @options={{this.model.workers.last.value}}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  @searchEnabled={{true}}\n                  @searchField='fullName'\n                  @placeholder={{t\n                    'shared.people-editor.Select a worker grant permissions for'\n                  }}\n                  @disabled={{this.saveUserPermissions.isRunning}}\n                />\n              {{/if}}\n              {{#if this.newFeatureFlags.entityCanUseBills}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.Can see all the bills'}}\n                  @key='canViewBills'\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageBills\n                    this.model.permissionsChangeset.last.value.canViewBills\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t 'shared.people-editor.Can manage all bills'}}\n                    @description={{t\n                      'shared.people-editor.Lets the user create and map bills'\n                    }}\n                    @key='canManageBills'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                {{/if}}\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.reportsPermissionsVisible)\n                (not this.reportsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Reports'}}\n            </h4>\n            {{#if this.reportsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.reportsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.reportsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.reportsPermissionsVisible}}\n  \n            <div class='alert alert-primary' role='alert'>\n              <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n              <span class='me-2'>\n                {{#if this.canViewReports.length}}\n                  {{t\n                    'shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                  }}\n                  <span class='fw-bold'>{{this.canViewReports}}</span>.\n                {{else}}\n                  {{t\n                    'shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports'\n                  }}\n                {{/if}}\n              </span>\n            </div>\n  \n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canSeeAllBudgetDataInReports'}}\n                @key='canViewBudgetFinancialReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                }}\n                @description={{t\n                  'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                }}\n                @key='canViewBudgetLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all quote data in reports'\n                }}\n                @key='canViewQuoteReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.newFeatureFlags.entityCanUseTimesheets\n                this.newFeatureFlags.entityCanUseBills\n              )\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canSeeAllCostDataInReports'}}\n                @key='canViewCostFinancialReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                }}\n                @key='canViewCostLabourHourReports'\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all work value data in reports'\n                }}\n                @key='canViewChargeupReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.Can see all progress data in reports'\n                }}\n                @key='canViewProgressReports'\n                @description={{t\n                  'shared.people-editor.canSeeAllProgressDataInReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n            {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'shared.people-editor.users.user.Can see all invoicing data in reports'\n                }}\n                @key='canViewInvoicingReports'\n                @description={{t\n                  'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n            {{/if}}\n          {{/if}}\n          {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.healthAndSafetyPermissionsVisible)\n                  (not this.healthAndSafetyPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.healthAndSafety'}}\n              </h4>\n              {{#if this.healthAndSafetyPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.healthAndSafetyPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.healthAndSafetyPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.healthAndSafetyPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageHealthAndSafety\n                  this.model.permissionsChangeset.last.value.canCreateHealthAndSafety\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'shared.people-editor.canManageHealthAndSafetyDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n          <div\n            class='d-flex align-items-center mb-3'\n            role='button'\n            {{on\n              'click'\n              (fn\n                (mut this.settingsPermissionsVisible)\n                (not this.settingsPermissionsVisible)\n              )\n            }}\n          >\n            <h4 class='m-0'>\n              {{t 'common.Settings'}}\n            </h4>\n            {{#if this.settingsPermissionsCount}}\n              <span class='ms-2 badge bg-info'>\n                {{this.settingsPermissionsCount}}\n              </span>\n            {{/if}}\n            <h4 class='m-0 ms-auto'>\n              <FaIcon\n                @icon={{if\n                  this.settingsPermissionsVisible\n                  'chevron-down'\n                  'chevron-right'\n                }}\n              />\n            </h4>\n          </div>\n          {{#if this.settingsPermissionsVisible}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t 'shared.people-editor.canViewWorkers'}}\n              @key='canViewWorkers'\n              @description={{t 'shared.people-editor.Lets users view workers'}}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"D0i/EvsA\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Email\\\"],null],\\\"email\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"tel\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageUser\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Deleting user\\\"],null]],[1,\\\"\\\\n                …\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Delete user\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canEditUser\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"saveUser\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.subcontractors.subcontractor.Saving subcontractor\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.people.subcontractors.subcontractor.Create subcontractor\\\"],null],[28,[37,6],[\\\"entity.settings.people.subcontractors.subcontractor.Save subcontractor\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"userIsAdmin\\\"],null],[[[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex justify-content-end ms-auto\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link ms-auto text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"loginAs\\\"]],[30,0,[\\\"user\\\"]]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,17],[[28,[37,6],[\\\"shared.people-editor.Login as\\\"],null],\\\" \\\",[30,0,[\\\"user\\\",\\\"fullName\\\"]]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,8],[[28,[37,8],[[30,0,[\\\"user\\\",\\\"isNew\\\"]],[30,0,[\\\"user\\\",\\\"lastLoginDate\\\"]]],null],[28,[37,9],[[30,0,[\\\"canManageUserPermissions\\\"]]],null]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"user\\\",\\\"firstName\\\"]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.trySendReminderEmail\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-outline-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"sendPasswordResetEmail\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"sendPasswordResetEmail\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sendPasswordResetEmail\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Sending reminder email\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Send reminder email\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"canManageUserPermissions\\\"]],[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null]],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.userPermissionsExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all projects\\\"],null],\\\"canViewProjects\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProjects\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProjects\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all projects\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectsDescription\\\"],null],\\\"canManageProjects\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all tasks\\\"],null],[28,[37,6],[\\\"shared.people-editor.Lets the user see all tasks\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all tasks\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllTasksDescription\\\"],null],\\\"canManageTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project budgets\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectBudgetsDescription\\\"],null],\\\"canViewBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project budgets\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectBudgetsDescription\\\"],null],\\\"canManageBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project quotes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectQuotesDescription\\\"],null],\\\"canViewQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project quotes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectQuotesDescription\\\"],null],\\\"canManageQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project progress\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectProgressDescription\\\"],null],\\\"canViewProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project progress\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectProgressDescription\\\"],null],\\\"canManageProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all documents\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllDocumentsDescription\\\"],null],\\\"canViewFileStorage\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all documents\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsDescription\\\"],null],\\\"canManageFileStorage\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsDescription\\\"],null],\\\"canViewProducts\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProductsDescription\\\"],null],\\\"canManageProducts\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseEstimates\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make estimates\\\"],null],\\\"canEstimate\\\",[28,[37,6],[\\\"shared.people-editor.canMakeEstimatesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageEstimateSettings\\\"],null],\\\"canManageEstimateSettings\\\",[28,[37,6],[\\\"shared.people-editor.canManageEstimateSettingsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.canMakeSchedulingChangesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,8],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all timesheets and notes\\\"],null],\\\"canViewTimesheets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTimesheets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTimesheets\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all timesheets and notes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllTimesheetsAndNotesDescription\\\"],null],\\\"canManageTimesheets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@disabled\\\"],[\\\"powerSelectMultiple\\\",[28,[37,6],[\\\"shared.people-editor.Timesheet workers\\\"],null],\\\"workers\\\",[28,[37,6],[\\\"shared.people-editor.timesheetWorkersDescription\\\"],null],[28,[37,24],[\\\"fullName\\\"],null],[30,0,[\\\"model\\\",\\\"workers\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],true,\\\"fullName\\\",[28,[37,6],[\\\"shared.people-editor.Select a worker grant permissions for\\\"],null],[30,0,[\\\"saveUserPermissions\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all the bills\\\"],null],\\\"canViewBills\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBills\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBills\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all bills\\\"],null],[28,[37,6],[\\\"shared.people-editor.Lets the user create and map bills\\\"],null],\\\"canManageBills\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n            \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\"\\\\n                \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.subcontractors.subcontractor.withThesePermissionsThisSubcontractorCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllBudgetDataInReports\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageHealthAndSafety\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canCreateHealthAndSafety\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"        \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"settingsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"settingsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"common.Settings\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"settingsPermissionsCount\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[30,0,[\\\"settingsPermissionsCount\\\"]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"settingsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"settingsPermissionsVisible\\\"]],[[[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canViewWorkers\\\"],null],\\\"canViewWorkers\\\",[28,[37,6],[\\\"shared.people-editor.Lets users view workers\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"unless\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"includes-feature-flags\\\",\\\"fn\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"and\\\",\\\"p\\\",\\\"mut\\\",\\\"h4\\\",\\\"array\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/subcontractors/subcontractor.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/users\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"E9jATaW6\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/users.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/users/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='mb-1 d-flex align-items-center justify-content-end'>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.users.Search for users'}}\n          data-test-user-search\n          @type='text'\n          @value={{this.searchString}}\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageUsers')}}\n        <div class='d-flex flex-column flex-lg-row'>\n          <LinkTo\n            @route={{concat this.model.basePath '.users.user'}}\n            @model='new'\n            class='btn btn-success text-white text-nowrap m-1'\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}</LinkTo>\n        </div>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredUsers}}\n      @noData={{t 'shared.people-editor.users.No users yet'}}\n      @route={{concat this.model.basePath '.users.user'}}\n      @showLoginAs={{includes-feature-flags 'userIsAdmin'}}\n      @onClickLoginAs={{this.loginAs}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"5RgJo2CI\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"mb-1 d-flex align-items-center justify-content-end\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,5],[\\\"shared.people-editor.users.Search for users\\\"],null]],[24,\\\"data-test-user-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[\\\"canManageUsers\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,7],[[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".users.user\\\"],null],\\\"new\\\"]],[[\\\"default\\\"],[[[[8,[39,9],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,5],[\\\"common.Add\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,10],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\",\\\"@showLoginAs\\\",\\\"@onClickLoginAs\\\"],[[30,0,[\\\"filteredUsers\\\"]],[28,[37,5],[\\\"shared.people-editor.users.No users yet\\\"],null],[28,[37,8],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".users.user\\\"],null],[28,[37,6],[\\\"userIsAdmin\\\"],null],[30,0,[\\\"loginAs\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"input\\\",\\\"t\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"people-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/users/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/users/user\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.First name'}}\n          @key='firstName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Last name'}}\n          @key='lastName'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Email'}}\n          @key='email'\n          @model={{this.model.userChangeset.last.value}}\n          @required={{this.canEditUser}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        <PtlInput\n          @type='tel'\n          @label={{t 'common.Phone number'}}\n          @key='phoneNumber'\n          @model={{this.model.userChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or (not this.canEditUser) this.saveUser.isRunning}}\n        />\n        {{#if this.canManageUser}}\n          <div class='d-flex flex-grow-1 mt-2'>\n            {{#unless this.user.isNew}}\n              <button\n                type='button'\n                class='btn btn-link text-danger text-decoration-underline'\n                disabled={{this.deleteUser.isRunning}}\n                {{on 'click' (perform this.deleteUser)}}\n              >\n                {{#if this.deleteUser.isRunning}}\n                  {{t 'shared.people-editor.Deleting user'}}\n                  &hellip;\n                {{else}}\n                  {{t 'shared.people-editor.Delete user'}}\n                {{/if}}\n              </button>\n            {{/unless}}\n  \n            {{#if (includes-feature-flags 'userIsAdmin')}}\n              {{#unless this.user.isNew}}\n                <div class='d-flex justify-content-end ms-auto'>\n                  <button\n                    class='btn btn-link ms-auto text-decoration-underline'\n                    type='button'\n                    {{on 'click' (fn this.loginAs this.user)}}\n                  >\n                    {{concat\n                      (t 'shared.people-editor.Login as')\n                      ' '\n                      this.user.fullName\n                    }}\n                  </button>\n                </div>\n              {{/unless}}\n            {{/if}}\n  \n            {{#if this.canEditUser}}\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.saveUser.isRunning}}\n                {{on\n                  'click'\n                  (perform this.saveUser this.model.userChangeset.last.value)\n                }}\n              >\n                {{#if this.saveUser.isRunning}}\n                  {{t 'entity.settings.people.users.user.Saving user'}}&hellip;\n                {{else}}\n                  {{if\n                    this.user.isNew\n                    (t 'entity.settings.people.users.user.Create user')\n                    (t 'entity.settings.people.users.user.Save user')\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n          </div>\n        {{/if}}\n      </PtlForm>\n  \n      {{#unless\n        (or\n          (or this.user.isNew this.user.lastLoginDate)\n          (not this.canManageUserPermissions)\n        )\n      }}\n        <div class='alert alert-primary' role='alert'>\n          <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n          <span class='me-2'>\n            {{this.user.firstName}}\n            {{t 'shared.people-editor.trySendReminderEmail'}}\n          </span>\n          <button\n            type='button'\n            class='btn btn-outline-primary'\n            {{on\n              'click'\n              (perform\n                this.sendPasswordResetEmail this.model.userChangeset.last.value\n              )\n            }}\n            disabled={{this.sendPasswordResetEmail.isRunning}}\n          >\n            {{#if this.sendPasswordResetEmail.isRunning}}\n              {{t 'shared.people-editor.Sending reminder email'}}&hellip;\n            {{else}}\n              {{t 'shared.people-editor.Send reminder email'}}\n            {{/if}}\n          </button>\n        </div>\n      {{/unless}}\n  \n      {{#if (and this.canManageUserPermissions (not this.user.isNew))}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n  \n          {{#if this.permissionsDescription}}\n            <p class='mb-4'>\n              {{this.permissionsDescription}}\n            </p>\n          {{/if}}\n  \n          {{#if (includes-feature-flags 'userIsEntityAdmin')}}\n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'entity.settings.people.users.user.Can be a company administrator'\n              }}\n              @key='isCompanyAdministrator'\n              @description={{t\n                'entity.settings.people.users.user.canBeACompanyAdministratorDescription'\n              }}\n              @model={{this.model.permissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n              disabled={{this.savePermissions.isRunning}}\n            />\n          {{/if}}\n  \n          {{#if (includes-feature-flags 'canUseBuildaPrice')}}\n            {{#unless\n              this.model.permissionsChangeset.last.value.isCompanyAdministrator\n            }}\n              <PtlInput\n                @type='checkbox'\n                @label={{t\n                  'entity.settings.people.users.user.Can be a company manager'\n                }}\n                @key='canManageEverything'\n                @description={{t\n                  'entity.settings.people.users.user.canBeACompanyManagerDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n  \n              {{#unless\n                this.model.permissionsChangeset.last.value.canManageEverything\n              }}\n                <div\n                  class='d-flex align-items-center mb-3'\n                  role='button'\n                  {{on\n                    'click'\n                    (fn\n                      (mut this.projectPermissionsVisible)\n                      (not this.projectPermissionsVisible)\n                    )\n                  }}\n                >\n                  <h4 class='m-0'>\n                    {{t 'common.Project'}}\n                  </h4>\n                  {{#if this.projectPermissionsCount}}\n                    <span class='ms-2 badge bg-info'>\n                      {{this.projectPermissionsCount}}\n                    </span>\n                  {{/if}}\n                  <h4 class='m-0 ms-auto'>\n                    <FaIcon\n                      @icon={{if\n                        this.projectPermissionsVisible\n                        'chevron-down'\n                        'chevron-right'\n                      }}\n                    />\n                  </h4>\n                </div>\n                {{#if this.projectPermissionsVisible}}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t 'shared.people-editor.Can see all projects'}}\n                    @key='canViewProjects'\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                  {{#if\n                    (or\n                      this.model.permissionsChangeset.last.value.canManageProjects\n                      this.model.permissionsChangeset.last.value.canViewProjects\n                    )\n                  }}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can manage all projects'}}\n                      @description={{t\n                        'shared.people-editor.canManageAllProjectsDescription'\n                      }}\n                      @key='canManageProjects'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if\n                    (or\n                      this.model.permissionsChangeset.last.value.canViewProjects\n                      this.model.permissionsChangeset.last.value.canViewTasks\n                    )\n                  }}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can see all tasks'}}\n                      @description={{t\n                        'shared.people-editor.Lets the user see all tasks'\n                      }}\n                      @key='canViewTasks'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if\n                    (or\n                      this.model.permissionsChangeset.last.value.canManageTasks\n                      this.model.permissionsChangeset.last.value.canViewTasks\n                    )\n                  }}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can manage all tasks'}}\n                      @description={{t\n                        'shared.people-editor.canManageAllTasksDescription'\n                      }}\n                      @key='canManageTasks'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all project budgets'\n                      }}\n                      @description={{t\n                        'shared.people-editor.canSeeAllProjectBudgetsDescription'\n                      }}\n                      @key='canViewBudgets'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageBudgets\n                        this.model.permissionsChangeset.last.value.canViewBudgets\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all project budgets'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllProjectBudgetsDescription'\n                        }}\n                        @key='canManageBudgets'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all project quotes'\n                      }}\n                      @description={{t\n                        'shared.people-editor.canSeeAllProjectQuotesDescription'\n                      }}\n                      @key='canViewQuotes'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageQuotes\n                        this.model.permissionsChangeset.last.value.canViewQuotes\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all project quotes'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllProjectQuotesDescription'\n                        }}\n                        @key='canManageQuotes'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseProjectProgress}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all project progress'\n                      }}\n                      @description={{t\n                        'shared.people-editor.canSeeAllProjectProgressDescription'\n                      }}\n                      @key='canViewProgress'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageProgress\n                        this.model.permissionsChangeset.last.value.canViewProgress\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all project progress'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllProjectProgressDescription'\n                        }}\n                        @key='canManageProgress'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseFileStorage}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can see all documents'}}\n                      @description={{t\n                        'shared.people-editor.canSeeAllDocumentsDescription'\n                      }}\n                      @key='canViewFileStorage'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageFileStorage\n                        this.model.permissionsChangeset.last.value.canViewFileStorage\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all documents'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllDocumentsDescription'\n                        }}\n                        @key='canManageFileStorage'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseProducts}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can see all products'}}\n                      @description={{t\n                        'shared.people-editor.canSeeAllProductsDescription'\n                      }}\n                      @key='canViewProducts'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    {{#if\n                      (or\n                        this.model.permissionsChangeset.last.value.canManageProducts\n                        this.model.permissionsChangeset.last.value.canViewProducts\n                      )\n                    }}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can manage all products'\n                        }}\n                        @description={{t\n                          'shared.people-editor.canManageAllProductsDescription'\n                        }}\n                        @key='canManageProducts'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                    {{/if}}\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseEstimates}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t 'shared.people-editor.Can make estimates'}}\n                      @key='canEstimate'\n                      @description={{t\n                        'shared.people-editor.canMakeEstimatesDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.canManageEstimateSettings'\n                      }}\n                      @key='canManageEstimateSettings'\n                      @description={{t\n                        'shared.people-editor.canManageEstimateSettingsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                {{/if}}\n                {{#if this.newFeatureFlags.entityCanUseScheduling}}\n                  <div\n                    class='d-flex align-items-center mb-3'\n                    role='button'\n                    {{on\n                      'click'\n                      (fn\n                        (mut this.schedulingPermissionsVisible)\n                        (not this.schedulingPermissionsVisible)\n                      )\n                    }}\n                  >\n                    <h4 class='m-0'>\n                      {{t 'common.Scheduling'}}\n                    </h4>\n                    {{#if this.schedulingPermissionsCount}}\n                      <span class='ms-2 badge bg-info'>\n                        {{this.schedulingPermissionsCount}}\n                      </span>\n                    {{/if}}\n                    <h4 class='m-0 ms-auto'>\n                      <FaIcon\n                        @icon={{if\n                          this.schedulingPermissionsVisible\n                          'chevron-down'\n                          'chevron-right'\n                        }}\n                      />\n                    </h4>\n                  </div>\n                  {{#if this.schedulingPermissionsVisible}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see scheduling reports'\n                      }}\n                      @key='canViewSchedulingReports'\n                      @description={{t\n                        'shared.people-editor.Gives access to see the timeline'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can make scheduling changes'\n                      }}\n                      @key='canManageSchedulingReports'\n                      @description={{t\n                        'shared.people-editor.canMakeSchedulingChangesDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                {{/if}}\n                {{#if\n                  (or\n                    this.newFeatureFlags.entityCanUseTimesheets\n                    this.newFeatureFlags.entityCanUseBills\n                  )\n                }}\n                  <div\n                    class='d-flex align-items-center mb-3'\n                    role='button'\n                    {{on\n                      'click'\n                      (fn\n                        (mut this.allocationsPermissionsVisible)\n                        (not this.allocationsPermissionsVisible)\n                      )\n                    }}\n                  >\n                    <h4 class='m-0'>\n                      {{t 'common.Allocations'}}\n                    </h4>\n                    {{#if this.allocationsPermissionsCount}}\n                      <span class='ms-2 badge bg-info'>\n                        {{this.allocationsPermissionsCount}}\n                      </span>\n                    {{/if}}\n                    <h4 class='m-0 ms-auto'>\n                      <FaIcon\n                        @icon={{if\n                          this.allocationsPermissionsVisible\n                          'chevron-down'\n                          'chevron-right'\n                        }}\n                      />\n                    </h4>\n                  </div>\n  \n                  {{#if this.allocationsPermissionsVisible}}\n                    {{#if this.newFeatureFlags.entityCanUseTimesheets}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.Can see all timesheets and notes'\n                        }}\n                        @key='canViewTimesheets'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageTimesheets\n                          this.model.permissionsChangeset.last.value.canViewTimesheets\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'shared.people-editor.Can manage all timesheets and notes'\n                          }}\n                          @description={{t\n                            'shared.people-editor.canManageAllTimesheetsAndNotesDescription'\n                          }}\n                          @key='canManageTimesheets'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                      <PtlInput\n                        @type='powerSelectMultiple'\n                        @label={{t 'shared.people-editor.Timesheet workers'}}\n                        @key='workers'\n                        @description={{t\n                          'shared.people-editor.timesheetWorkersDescription'\n                        }}\n                        @optionKeys={{array 'fullName'}}\n                        @options={{this.model.workers.last.value}}\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        @forceValidationVisible={{gt\n                          this.savePermissions.performCount\n                          0\n                        }}\n                        @searchEnabled={{true}}\n                        @searchField='fullName'\n                        @placeholder={{t\n                          'shared.people-editor.Select a worker grant permissions for'\n                        }}\n                        @disabled={{this.saveUserPermissions.isRunning}}\n                      />\n                    {{/if}}\n                    {{#if this.newFeatureFlags.entityCanUseBills}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t 'shared.people-editor.Can see all the bills'}}\n                        @key='canViewBills'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageBills\n                          this.model.permissionsChangeset.last.value.canViewBills\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t 'shared.people-editor.Can manage all bills'}}\n                          @description={{t\n                            'shared.people-editor.Lets the user create and map bills'\n                          }}\n                          @key='canManageBills'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageBills\n                          this.model.permissionsChangeset.last.value.canApproveBills\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t 'shared.people-editor.Can approve bills'}}\n                          @description={{t\n                            'shared.people-editor.canApproveBillsDescription'\n                          }}\n                          @key='canApproveBills'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                    {{/if}}\n                    {{#if this.newFeatureFlags.entityCanUseInvoices}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'shared.people-editor.users.user.entity.Can see all invoices'\n                        }}\n                        @description={{t\n                          'shared.people-editor.users.user.entity.canViewInvoicesDescription'\n                        }}\n                        @key='canViewInvoices'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageInvoices\n                          this.model.permissionsChangeset.last.value.canViewInvoices\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'shared.people-editor.users.user.entity.Can create invoices'\n                          }}\n                          @description={{t\n                            'shared.people-editor.users.user.entity.canManageInvoicesDescription'\n                          }}\n                          @key='canManageInvoices'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageInvoices\n                          this.model.permissionsChangeset.last.value.canApproveInvoices\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'shared.people-editor.users.user.entity.Can approve invoices'\n                          }}\n                          @description={{t\n                            'shared.people-editor.users.user.entity.canApproveInvoicesDescription'\n                          }}\n                          @key='canApproveInvoices'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                    {{/if}}\n                    {{#if this.newFeatureFlags.entityCanUsePurchaseOrders}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'entity.settings.people.users.user.Can see all the purchase orders'\n                        }}\n                        @description={{t\n                          'entity.settings.people.users.user.canSeeAllThePurchaseOrdersDescription'\n                        }}\n                        @key='canViewPurchaseOrders'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManagePurchaseOrders\n                          this.model.permissionsChangeset.last.value.canViewPurchaseOrders\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'entity.settings.people.users.user.Can manage all purchase orders'\n                          }}\n                          @description={{t\n                            'entity.settings.people.users.user.canManageAllPurchaseOrdersDescription'\n                          }}\n                          @key='canManagePurchaseOrders'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManagePurchaseOrders\n                          this.model.permissionsChangeset.last.value.canApprovePurchaseOrders\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'entity.settings.people.users.user.Can approve all purchase orders'\n                          }}\n                          @description={{t\n                            'entity.settings.people.users.user.canApproveAllPurchaseOrdersDescription'\n                          }}\n                          @key='canApprovePurchaseOrders'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                    {{/if}}\n                    {{#if this.newFeatureFlags.entityCanUseStagePayments}}\n                      <PtlInput\n                        @type='checkbox'\n                        @label={{t\n                          'entity.settings.people.users.user.Can see all the stage payments'\n                        }}\n                        @description={{t\n                          'entity.settings.people.users.user.canSeeAllTheStagePaymentsDescription'\n                        }}\n                        @key='canViewStagePayments'\n                        @model={{this.model.permissionsChangeset.last.value}}\n                        disabled={{this.savePermissions.isRunning}}\n                      />\n                      {{#if\n                        (or\n                          this.model.permissionsChangeset.last.value.canManageStagePayments\n                          this.model.permissionsChangeset.last.value.canViewStagePayments\n                        )\n                      }}\n                        <PtlInput\n                          @type='checkbox'\n                          @label={{t\n                            'entity.settings.people.users.user.Can manage all stage payments'\n                          }}\n                          @description={{t\n                            'entity.settings.people.users.user.canManageAllStagePaymentsDescription'\n                          }}\n                          @key='canManageStagePayments'\n                          @model={{this.model.permissionsChangeset.last.value}}\n                          disabled={{this.savePermissions.isRunning}}\n                        />\n                      {{/if}}\n                    {{/if}}\n                  {{/if}}\n                {{/if}}\n                <div\n                  class='d-flex align-items-center mb-3'\n                  role='button'\n                  {{on\n                    'click'\n                    (fn\n                      (mut this.reportsPermissionsVisible)\n                      (not this.reportsPermissionsVisible)\n                    )\n                  }}\n                >\n                  <h4 class='m-0'>\n                    {{t 'common.Reports'}}\n                  </h4>\n                  {{#if this.reportsPermissionsCount}}\n                    <span class='ms-2 badge bg-info'>\n                      {{this.reportsPermissionsCount}}\n                    </span>\n                  {{/if}}\n                  <h4 class='m-0 ms-auto'>\n                    <FaIcon\n                      @icon={{if\n                        this.reportsPermissionsVisible\n                        'chevron-down'\n                        'chevron-right'\n                      }}\n                    />\n                  </h4>\n                </div>\n                {{#if this.reportsPermissionsVisible}}\n                  {{#if this.newFeatureFlags.canUsePayroll}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'entity.settings.people.users.user.Can run payroll reports'\n                      }}\n                      @key='canViewPayrollReports'\n                      @description={{t\n                        'entity.settings.people.users.user.canRunPayrollReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.canUseReportBuilder}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'entity.settings.people.users.user.Can use the report builder'\n                      }}\n                      @key='canUseReportBuilderReport'\n                      @description={{t\n                        'entity.settings.people.users.user.canUseTheReportBuilderDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n  \n                  <div class='alert alert-primary' role='alert'>\n                    <FaIcon @icon='info-circle' @size='lg' class='me-2' />\n                    <span class='me-2'>\n                      {{#if this.canViewReports.length}}\n                        {{t\n                          'shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports'\n                        }}\n                        <span class='fw-bold'>{{this.canViewReports}}</span>.\n                      {{else}}\n                        {{t\n                          'shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports'\n                        }}\n                      {{/if}}\n                    </span>\n                  </div>\n                  {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.canSeeAllBudgetDataInReports'\n                      }}\n                      @description={{t\n                        'shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription'\n                      }}\n                      @key='canViewBudgetFinancialReports'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.users.user.canViewBudgetHourReportsLabel'\n                      }}\n                      @description={{t\n                        'shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription'\n                      }}\n                      @key='canViewBudgetLabourHourReports'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all quote data in reports'\n                      }}\n                      @key='canViewQuoteReports'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if\n                    (or\n                      this.newFeatureFlags.entityCanUseTimesheets\n                      this.newFeatureFlags.entityCanUseBills\n                    )\n                  }}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.canSeeAllCostDataInReports'\n                      }}\n                      @key='canViewCostFinancialReports'\n                      @description={{t\n                        'shared.people-editor.canSeeAllCostDataInReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.users.user.canViewActualHourReportsLabel'\n                      }}\n                      @key='canViewCostLabourHourReports'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all work value data in reports'\n                      }}\n                      @key='canViewChargeupReports'\n                      @description={{t\n                        'shared.people-editor.canSeeAllWorkValueDataInReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseProjectFinancials}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.Can see all progress data in reports'\n                      }}\n                      @key='canViewProgressReports'\n                      @description={{t\n                        'shared.people-editor.canSeeAllProgressDataInReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseInvoicingReport}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label={{t\n                        'shared.people-editor.users.user.Can see all invoicing data in reports'\n                      }}\n                      @key='canViewInvoicingReports'\n                      @description={{t\n                        'shared.people-editor.users.user.canViewInvoicingReportsDescription'\n                      }}\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                  {{#if this.newFeatureFlags.entityCanUseGeofencing}}\n                    <PtlInput\n                      @type='checkbox'\n                      @label='Can see all site access data in reports?'\n                      @key='canViewAccessReports'\n                      @description='Site access reports show real-time site occupancy and access history.'\n                      @model={{this.model.permissionsChangeset.last.value}}\n                      @forceValidationVisible={{gt\n                        this.savePermissions.performCount\n                        0\n                      }}\n                      disabled={{this.savePermissions.isRunning}}\n                    />\n                  {{/if}}\n                {{/if}}\n              {{/unless}}\n            {{/unless}}\n          {{/if}}\n  \n          {{#unless\n            this.model.permissionsChangeset.last.value.isCompanyAdministrator\n          }}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.settingsPermissionsVisible)\n                  (not this.settingsPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.Settings'}}\n              </h4>\n  \n              {{#if this.settingsPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.settingsPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.settingsPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.settingsPermissionsVisible}}\n              {{#if (includes-feature-flags 'canUseBuildaPrice')}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canViewWorkers'}}\n                  @key='canViewWorkers'\n                  @description={{t\n                    'shared.people-editor.Lets users view workers'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n                {{#if\n                  (or\n                    this.model.permissionsChangeset.last.value.canManageWorkers\n                    this.model.permissionsChangeset.last.value.canViewWorkers\n                  )\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'entity.settings.people.users.user.canManageWorkers'\n                    }}\n                    @key='canManageWorkers'\n                    @description={{t\n                      'entity.settings.people.users.user.canManageWorkersDescription'\n                    }}\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                {{/if}}\n              {{/if}}\n  \n              <PtlInput\n                @type='checkbox'\n                @label={{t 'entity.settings.people.users.user.canViewUsers'}}\n                @key='canViewUsers'\n                @description={{t\n                  'entity.settings.people.users.user.canViewUsersDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageUsers\n                  this.model.permissionsChangeset.last.value.canViewUsers\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'entity.settings.people.users.user.canManageUsers'}}\n                  @key='canManageUsers'\n                  @description={{t\n                    'entity.settings.people.users.user.canManageUsersDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n  \n              {{#if (includes-feature-flags 'canUseIntegrations')}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.settings.people.users.user.canManageIntegrations'\n                  }}\n                  @key='canManageIntegrations'\n                  @description={{t\n                    'entity.settings.people.users.user.canManageIntegrationsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n          {{/unless}}\n  \n          {{#if (includes-feature-flags 'canUseFinancialReporting')}}\n            {{#unless\n              this.model.permissionsChangeset.last.value.isCompanyAdministrator\n            }}\n              <div\n                class='d-flex align-items-center mb-3'\n                role='button'\n                {{on\n                  'click'\n                  (fn\n                    (mut this.financialReportingPermissionsVisible)\n                    (not this.financialReportingPermissionsVisible)\n                  )\n                }}\n              >\n                <h4 class='m-0'>\n                  {{t 'common.Financial portal'}}\n                </h4>\n                {{#if this.financialReportingPermissionsCount}}\n                  <span class='ms-2 badge bg-info'>\n                    {{this.financialReportingPermissionsCount}}\n                  </span>\n                {{/if}}\n                <h4 class='m-0 ms-auto'>\n                  <FaIcon\n                    @icon={{if\n                      this.financialReportingPermissionsVisible\n                      'chevron-down'\n                      'chevron-right'\n                    }}\n                  />\n                </h4>\n              </div>\n  \n              {{#if this.financialReportingPermissionsVisible}}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t\n                    'entity.settings.people.users.user.Can view financials'\n                  }}\n                  @key='canViewFinancialReporting'\n                  @description={{t\n                    'entity.settings.people.users.user.canViewFinancialsDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n                {{#if\n                  this.model.permissionsChangeset.last.value.canViewFinancialReporting\n                }}\n                  <PtlInput\n                    @type='checkbox'\n                    @label={{t\n                      'entity.settings.people.users.user.Can manage financials'\n                    }}\n                    @key='canManageFinancialReporting'\n                    @description={{t\n                      'entity.settings.people.users.user.canManageFinancialsDescription'\n                    }}\n                    @model={{this.model.permissionsChangeset.last.value}}\n                    @forceValidationVisible={{gt\n                      this.savePermissions.performCount\n                      0\n                    }}\n                    disabled={{this.savePermissions.isRunning}}\n                  />\n                {{/if}}\n              {{/if}}\n            {{/unless}}\n          {{/if}}\n  \n          {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n            <div\n              class='d-flex align-items-center mb-3'\n              role='button'\n              {{on\n                'click'\n                (fn\n                  (mut this.healthAndSafetyPermissionsVisible)\n                  (not this.healthAndSafetyPermissionsVisible)\n                )\n              }}\n            >\n              <h4 class='m-0'>\n                {{t 'common.healthAndSafety'}}\n              </h4>\n              {{#if this.healthAndSafetyPermissionsCount}}\n                <span class='ms-2 badge bg-info'>\n                  {{this.healthAndSafetyPermissionsCount}}\n                </span>\n              {{/if}}\n              <h4 class='m-0 ms-auto'>\n                <FaIcon\n                  @icon={{if\n                    this.healthAndSafetyPermissionsVisible\n                    'chevron-down'\n                    'chevron-right'\n                  }}\n                />\n              </h4>\n            </div>\n            {{#if this.healthAndSafetyPermissionsVisible}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.permissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.savePermissions.performCount 0}}\n                disabled={{this.savePermissions.isRunning}}\n              />\n              {{#if\n                (or\n                  this.model.permissionsChangeset.last.value.canManageHealthAndSafety\n                  this.model.permissionsChangeset.last.value.canCreateHealthAndSafety\n                )\n              }}\n                <PtlInput\n                  @type='checkbox'\n                  @label={{t 'shared.people-editor.canManageHealthAndSafety'}}\n                  @key='canManageHealthAndSafety'\n                  @description={{t\n                    'shared.people-editor.canManageHealthAndSafetyDescription'\n                  }}\n                  @model={{this.model.permissionsChangeset.last.value}}\n                  @forceValidationVisible={{gt\n                    this.savePermissions.performCount\n                    0\n                  }}\n                  disabled={{this.savePermissions.isRunning}}\n                />\n              {{/if}}\n            {{/if}}\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1 mt-2'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.savePermissions.isRunning}}\n              {{on\n                'click'\n                (perform\n                  this.savePermissions this.model.permissionsChangeset.last.value\n                )\n              }}\n            >\n              {{#if this.savePermissions.isRunning}}\n                {{t 'shared.people-editor.Saving permissions'}}&hellip;\n              {{else}}\n                {{t 'shared.people-editor.Save permissions'}}\n              {{/if}}\n            </button>\n          </div>\n        </PtlForm>\n      {{/if}}\n    {{/if}}\n  </div>\n  */\n  {\n    \"id\": \"pudkHGJM\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Email\\\"],null],\\\"email\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"canEditUser\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[28,[37,9],[[30,0,[\\\"canEditUser\\\"]]],null],[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"tel\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageUser\\\"]],[[[1,\\\"        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteUser\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Deleting user\\\"],null]],[1,\\\"\\\\n                …\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Delete user\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"userIsAdmin\\\"],null],[[[41,[51,[30,0,[\\\"user\\\",\\\"isNew\\\"]]],[[[1,\\\"              \\\"],[10,0],[14,0,\\\"d-flex justify-content-end ms-auto\\\"],[12],[1,\\\"\\\\n                \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link ms-auto text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"loginAs\\\"]],[30,0,[\\\"user\\\"]]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,17],[[28,[37,6],[\\\"shared.people-editor.Login as\\\"],null],\\\" \\\",[30,0,[\\\"user\\\",\\\"fullName\\\"]]],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canEditUser\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"saveUser\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.users.user.Saving user\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"user\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.people.users.user.Create user\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.Save user\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,8],[[28,[37,8],[[30,0,[\\\"user\\\",\\\"isNew\\\"]],[30,0,[\\\"user\\\",\\\"lastLoginDate\\\"]]],null],[28,[37,9],[[30,0,[\\\"canManageUserPermissions\\\"]]],null]],null]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,18],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[30,0,[\\\"user\\\",\\\"firstName\\\"]]],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"shared.people-editor.trySendReminderEmail\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-outline-primary\\\"],[16,\\\"disabled\\\",[30,0,[\\\"sendPasswordResetEmail\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"sendPasswordResetEmail\\\"]],[30,0,[\\\"model\\\",\\\"userChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sendPasswordResetEmail\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Sending reminder email\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Send reminder email\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"canManageUserPermissions\\\"]],[28,[37,9],[[30,0,[\\\"user\\\",\\\"isNew\\\"]]],null]],null],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"permissionsDescription\\\"]],[[[1,\\\"          \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[30,0,[\\\"permissionsDescription\\\"]]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"userIsEntityAdmin\\\"],null],[[[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can be a company administrator\\\"],null],\\\"isCompanyAdministrator\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canBeACompanyAdministratorDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"canUseBuildaPrice\\\"],null],[[[41,[51,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isCompanyAdministrator\\\"]]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can be a company manager\\\"],null],\\\"canManageEverything\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canBeACompanyManagerDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageEverything\\\"]]],[[[1,\\\"              \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"projectPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"common.Project\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsCount\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,0,[\\\"projectPermissionsCount\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"projectPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"projectPermissionsVisible\\\"]],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all projects\\\"],null],\\\"canViewProjects\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProjects\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProjects\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all projects\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectsDescription\\\"],null],\\\"canManageProjects\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProjects\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all tasks\\\"],null],[28,[37,6],[\\\"shared.people-editor.Lets the user see all tasks\\\"],null],\\\"canViewTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTasks\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTasks\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all tasks\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllTasksDescription\\\"],null],\\\"canManageTasks\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project budgets\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectBudgetsDescription\\\"],null],\\\"canViewBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBudgets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBudgets\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project budgets\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectBudgetsDescription\\\"],null],\\\"canManageBudgets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project quotes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectQuotesDescription\\\"],null],\\\"canViewQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageQuotes\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewQuotes\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project quotes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectQuotesDescription\\\"],null],\\\"canManageQuotes\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectProgress\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all project progress\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProjectProgressDescription\\\"],null],\\\"canViewProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProgress\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProgress\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all project progress\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProjectProgressDescription\\\"],null],\\\"canManageProgress\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseFileStorage\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all documents\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllDocumentsDescription\\\"],null],\\\"canViewFileStorage\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageFileStorage\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFileStorage\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all documents\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllDocumentsDescription\\\"],null],\\\"canManageFileStorage\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProducts\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all products\\\"],null],[28,[37,6],[\\\"shared.people-editor.canSeeAllProductsDescription\\\"],null],\\\"canViewProducts\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageProducts\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewProducts\\\"]]],null],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all products\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllProductsDescription\\\"],null],\\\"canManageProducts\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseEstimates\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make estimates\\\"],null],\\\"canEstimate\\\",[28,[37,6],[\\\"shared.people-editor.canMakeEstimatesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageEstimateSettings\\\"],null],\\\"canManageEstimateSettings\\\",[28,[37,6],[\\\"shared.people-editor.canManageEstimateSettingsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseScheduling\\\"]],[[[1,\\\"                \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"schedulingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"common.Scheduling\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsCount\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,0,[\\\"schedulingPermissionsCount\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"schedulingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"schedulingPermissionsVisible\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see scheduling reports\\\"],null],\\\"canViewSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.Gives access to see the timeline\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can make scheduling changes\\\"],null],\\\"canManageSchedulingReports\\\",[28,[37,6],[\\\"shared.people-editor.canMakeSchedulingChangesDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,8],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"                \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"allocationsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"common.Allocations\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsCount\\\"]],[[[1,\\\"                    \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[30,0,[\\\"allocationsPermissionsCount\\\"]]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                  \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                    \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"allocationsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"allocationsPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all timesheets and notes\\\"],null],\\\"canViewTimesheets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageTimesheets\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewTimesheets\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all timesheets and notes\\\"],null],[28,[37,6],[\\\"shared.people-editor.canManageAllTimesheetsAndNotesDescription\\\"],null],\\\"canManageTimesheets\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                    \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@optionKeys\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@placeholder\\\",\\\"@disabled\\\"],[\\\"powerSelectMultiple\\\",[28,[37,6],[\\\"shared.people-editor.Timesheet workers\\\"],null],\\\"workers\\\",[28,[37,6],[\\\"shared.people-editor.timesheetWorkersDescription\\\"],null],[28,[37,24],[\\\"fullName\\\"],null],[30,0,[\\\"model\\\",\\\"workers\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null],true,\\\"fullName\\\",[28,[37,6],[\\\"shared.people-editor.Select a worker grant permissions for\\\"],null],[30,0,[\\\"saveUserPermissions\\\",\\\"isRunning\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all the bills\\\"],null],\\\"canViewBills\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBills\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewBills\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can manage all bills\\\"],null],[28,[37,6],[\\\"shared.people-editor.Lets the user create and map bills\\\"],null],\\\"canManageBills\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageBills\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canApproveBills\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can approve bills\\\"],null],[28,[37,6],[\\\"shared.people-editor.canApproveBillsDescription\\\"],null],\\\"canApproveBills\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoices\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.entity.Can see all invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.entity.canViewInvoicesDescription\\\"],null],\\\"canViewInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageInvoices\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewInvoices\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.entity.Can create invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.entity.canManageInvoicesDescription\\\"],null],\\\"canManageInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageInvoices\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canApproveInvoices\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.entity.Can approve invoices\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.entity.canApproveInvoicesDescription\\\"],null],\\\"canApproveInvoices\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUsePurchaseOrders\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can see all the purchase orders\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canSeeAllThePurchaseOrdersDescription\\\"],null],\\\"canViewPurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManagePurchaseOrders\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewPurchaseOrders\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can manage all purchase orders\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canManageAllPurchaseOrdersDescription\\\"],null],\\\"canManagePurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManagePurchaseOrders\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canApprovePurchaseOrders\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can approve all purchase orders\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canApproveAllPurchaseOrdersDescription\\\"],null],\\\"canApprovePurchaseOrders\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseStagePayments\\\"]],[[[1,\\\"                    \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can see all the stage payments\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canSeeAllTheStagePaymentsDescription\\\"],null],\\\"canViewStagePayments\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageStagePayments\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewStagePayments\\\"]]],null],[[[1,\\\"                      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can manage all stage payments\\\"],null],[28,[37,6],[\\\"entity.settings.people.users.user.canManageAllStagePaymentsDescription\\\"],null],\\\"canManageStagePayments\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"              \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"reportsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n                \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[28,[35,6],[\\\"common.Reports\\\"],null]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsCount\\\"]],[[[1,\\\"                  \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[30,0,[\\\"reportsPermissionsCount\\\"]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"                \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"reportsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reportsPermissionsVisible\\\"]],[[[41,[30,0,[\\\"newFeatureFlags\\\",\\\"canUsePayroll\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can run payroll reports\\\"],null],\\\"canViewPayrollReports\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canRunPayrollReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"canUseReportBuilder\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can use the report builder\\\"],null],\\\"canUseReportBuilderReport\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canUseTheReportBuilderDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n                \\\"],[10,0],[14,0,\\\"alert alert-primary\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,18],[[24,0,\\\"me-2\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"info-circle\\\",\\\"lg\\\"]],null],[1,\\\"\\\\n                  \\\"],[10,1],[14,0,\\\"me-2\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canViewReports\\\",\\\"length\\\"]],[[[1,\\\"                      \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisSubcontractorCanSeeTheFollowingReports\\\"],null]],[1,\\\"\\\\n                      \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,[30,0,[\\\"canViewReports\\\"]]],[13],[1,\\\".\\\\n\\\"]],[]],[[[1,\\\"                      \\\"],[1,[28,[35,6],[\\\"shared.people-editor.withThesePermissionsThisUserCanNotSeeAnyReports\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllBudgetDataInReports\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canSeeAllBudgetDataInReportsDescription\\\"],null],\\\"canViewBudgetFinancialReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabel\\\"],null],[28,[37,6],[\\\"shared.people-editor.users.user.canViewBudgetHourReportsLabelDescription\\\"],null],\\\"canViewBudgetLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all quote data in reports\\\"],null],\\\"canViewQuoteReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseTimesheets\\\"]],[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseBills\\\"]]],null],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReports\\\"],null],\\\"canViewCostFinancialReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllCostDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewActualHourReportsLabel\\\"],null],\\\"canViewCostLabourHourReports\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all work value data in reports\\\"],null],\\\"canViewChargeupReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllWorkValueDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseProjectFinancials\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.Can see all progress data in reports\\\"],null],\\\"canViewProgressReports\\\",[28,[37,6],[\\\"shared.people-editor.canSeeAllProgressDataInReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseInvoicingReport\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.users.user.Can see all invoicing data in reports\\\"],null],\\\"canViewInvoicingReports\\\",[28,[37,6],[\\\"shared.people-editor.users.user.canViewInvoicingReportsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseGeofencing\\\"]],[[[1,\\\"                  \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",\\\"Can see all site access data in reports?\\\",\\\"canViewAccessReports\\\",\\\"Site access reports show real-time site occupancy and access history.\\\",[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isCompanyAdministrator\\\"]]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"settingsPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"settingsPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.Settings\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"settingsPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"settingsPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"settingsPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"settingsPermissionsVisible\\\"]],[[[41,[28,[37,15],[\\\"canUseBuildaPrice\\\"],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canViewWorkers\\\"],null],\\\"canViewWorkers\\\",[28,[37,6],[\\\"shared.people-editor.Lets users view workers\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageWorkers\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewWorkers\\\"]]],null],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageWorkers\\\"],null],\\\"canManageWorkers\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageWorkersDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canViewUsers\\\"],null],\\\"canViewUsers\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canViewUsersDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageUsers\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewUsers\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageUsers\\\"],null],\\\"canManageUsers\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageUsersDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"canUseIntegrations\\\"],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageIntegrations\\\"],null],\\\"canManageIntegrations\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageIntegrationsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[\\\"canUseFinancialReporting\\\"],null],[[[41,[51,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isCompanyAdministrator\\\"]]],[[[1,\\\"            \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"financialReportingPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"financialReportingPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n              \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Financial portal\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"financialReportingPermissionsCount\\\"]],[[[1,\\\"                \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                  \\\"],[1,[30,0,[\\\"financialReportingPermissionsCount\\\"]]],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"              \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n                \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"financialReportingPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"financialReportingPermissionsVisible\\\"]],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can view financials\\\"],null],\\\"canViewFinancialReporting\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canViewFinancialsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canViewFinancialReporting\\\"]],[[[1,\\\"                \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.users.user.Can manage financials\\\"],null],\\\"canManageFinancialReporting\\\",[28,[37,6],[\\\"entity.settings.people.users.user.canManageFinancialsDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"          \\\"],[11,0],[24,0,\\\"d-flex align-items-center mb-3\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,16],[[28,[37,22],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null],[28,[37,9],[[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,6],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"ms-2 badge bg-info\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"healthAndSafetyPermissionsCount\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[10,\\\"h4\\\"],[14,0,\\\"m-0 ms-auto\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,18],null,[[\\\"@icon\\\"],[[52,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],\\\"chevron-down\\\",\\\"chevron-right\\\"]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"healthAndSafetyPermissionsVisible\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canManageHealthAndSafety\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"canCreateHealthAndSafety\\\"]]],null],[[[1,\\\"              \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafety\\\"],null],\\\"canManageHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canManageHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"savePermissions\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1 mt-2\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"permissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"unless\\\",\\\"button\\\",\\\"on\\\",\\\"perform\\\",\\\"includes-feature-flags\\\",\\\"fn\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"span\\\",\\\"and\\\",\\\"p\\\",\\\"mut\\\",\\\"h4\\\",\\\"array\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/users/user.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/workers\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"ob0AmGTn\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/workers.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/workers/index\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#if this.isLoading}}\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  {{else}}\n    <div class='float-end mb-1 d-flex align-items-center'>\n      <span class='m-1'>\n        <SelectInput\n          @value={{this.filter}}\n          @action={{fn (mut this.filter)}}\n          @class='form-control select-box'\n          data-test-worker-filter\n          as |si|\n        >\n          <si.option @value='active'>{{t\n              'entity.settings.people.workers.Active workers'\n            }}</si.option>\n          <si.option @value='all'>{{t\n              'entity.settings.people.workers.All workers'\n            }}</si.option>\n          <si.option @value='inactive'>{{t\n              'entity.settings.people.workers.Inactive workers'\n            }}</si.option>\n        </SelectInput>\n      </span>\n      <span class='m-1'>\n        <Input\n          class='form-control'\n          placeholder={{t 'shared.people-editor.workers.Search for workers'}}\n          @type='text'\n          @value={{this.searchString}}\n          data-test-worker-search\n        />\n      </span>\n      {{#if (includes-feature-flags 'canManageWorkers')}}\n        <div class='d-flex flex-column flex-lg-row'>\n          <LinkTo\n            @route={{concat this.model.basePath '.workers.worker'}}\n            @model='new'\n            class='btn btn-success text-white text-nowrap m-1'\n            data-test-add-worker\n          ><FaIcon @icon='plus' />&nbsp;&nbsp;{{t 'common.Add'}}</LinkTo>\n        </div>\n      {{/if}}\n    </div>\n    <PeopleTable\n      @filteredList={{this.filteredWorkers}}\n      @noData={{t 'shared.people-editor.workers.No workers yet'}}\n      @route={{concat this.model.basePath '.workers.worker'}}\n      @showWorkerCode={{true}}\n      @onCopyAuthCode={{this.copyAuthCode}}\n    />\n  {{/if}}\n  */\n  {\n    \"id\": \"ouIJAUog\",\n    \"block\": \"[[[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"  \\\"],[8,[39,1],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"float-end mb-1 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,4],[[24,\\\"data-test-worker-filter\\\",\\\"\\\"]],[[\\\"@value\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"filter\\\"]],[28,[37,5],[[28,[37,6],[[30,0,[\\\"filter\\\"]]],null]],null],\\\"form-control select-box\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"active\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"entity.settings.people.workers.Active workers\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"all\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"entity.settings.people.workers.All workers\\\"],null]]],[]]]]],[1,\\\"\\\\n        \\\"],[8,[30,1,[\\\"option\\\"]],null,[[\\\"@value\\\"],[\\\"inactive\\\"]],[[\\\"default\\\"],[[[[1,[28,[35,7],[\\\"entity.settings.people.workers.Inactive workers\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"]],[1]]]]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"m-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,8],[[24,0,\\\"form-control\\\"],[16,\\\"placeholder\\\",[28,[37,7],[\\\"shared.people-editor.workers.Search for workers\\\"],null]],[24,\\\"data-test-worker-search\\\",\\\"\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,0,[\\\"searchString\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[\\\"canManageWorkers\\\"],null],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"d-flex flex-column flex-lg-row\\\"],[12],[1,\\\"\\\\n        \\\"],[8,[39,10],[[24,0,\\\"btn btn-success text-white text-nowrap m-1\\\"],[24,\\\"data-test-add-worker\\\",\\\"\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[28,[37,11],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".workers.worker\\\"],null],\\\"new\\\"]],[[\\\"default\\\"],[[[[8,[39,12],null,[[\\\"@icon\\\"],[\\\"plus\\\"]],null],[1,\\\"  \\\"],[1,[28,[35,7],[\\\"common.Add\\\"],null]]],[]]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n  \\\"],[8,[39,13],null,[[\\\"@filteredList\\\",\\\"@noData\\\",\\\"@route\\\",\\\"@showWorkerCode\\\",\\\"@onCopyAuthCode\\\"],[[30,0,[\\\"filteredWorkers\\\"]],[28,[37,7],[\\\"shared.people-editor.workers.No workers yet\\\"],null],[28,[37,11],[[30,0,[\\\"model\\\",\\\"basePath\\\"]],\\\".workers.worker\\\"],null],true,[30,0,[\\\"copyAuthCode\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"si\\\"],false,[\\\"if\\\",\\\"loading-icon\\\",\\\"div\\\",\\\"span\\\",\\\"select-input\\\",\\\"fn\\\",\\\"mut\\\",\\\"t\\\",\\\"input\\\",\\\"includes-feature-flags\\\",\\\"link-to\\\",\\\"concat\\\",\\\"fa-icon\\\",\\\"people-table\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/workers/index.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/people/workers/worker\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1'>\n    {{#if this.isRunning}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <div class='mb-3 ms-1 mt-1'>\n        <PageTitleBreadcrumbs @crumbStack={{this.crumbStack}} />\n      </div>\n      <PtlForm class='mb-3'>\n        <h3 class='mb-3'>{{t 'common.Details'}}</h3>\n        <PtlInput\n          @type='text'\n          @label={{t 'common.First name'}}\n          @key='firstName'\n          @model={{this.model.workerChangeset.last.value}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Last name'}}\n          @key='lastName'\n          @model={{this.model.workerChangeset.last.value}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'shared.contacts.Contact email'}}\n          @description={{t\n            'entity.settings.people.workers.worker.contactEmailDescription'\n          }}\n          @key='email'\n          @model={{this.model.workerChangeset.last.value}}\n          @required={{true}}\n          @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n        <PtlInput\n          @type='text'\n          @label={{t 'common.Phone number'}}\n          @key='phoneNumber'\n          @model={{this.model.workerChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n  \n        <PtlInput\n          @type='select'\n          @label={{t 'common.Language'}}\n          @key='language'\n          @options={{this.languages}}\n          @model={{this.model.workerChangeset.last.value}}\n          @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          disabled={{or this.saveWorker.isRunning (not this.canManageWorkers)}}\n        />\n  \n        {{#if this.canManageWorkers}}\n          {{#if this.canUseWorkerType}}\n            <PtlInput\n              @type='select'\n              @label={{t 'entity.settings.people.workers.worker.Worker type'}}\n              @key='isContractor'\n              @options={{this.workerTypes}}\n              @description={{t\n                'entity.settings.people.workers.worker.workerTypeDescription'\n              }}\n              @model={{this.model.workerChangeset.last.value}}\n              @required={{true}}\n              @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n              disabled={{or\n                this.saveWorker.isRunning\n                (not this.canManageWorkers)\n              }}\n            />\n          {{/if}}\n          {{#unless this.model.workerChangeset.last.value.isContractor}}\n            {{#if this.canUsePayRate}}\n              <PtlInput\n                @type='currency'\n                @label={{t 'common.Pay rate'}}\n                @key='payRate'\n                @formatterOptions={{hash dashZero=false}}\n                @model={{this.model.workerChangeset.last.value}}\n                @required={{true}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            {{/if}}\n            {{#if this.canUseCostRate}}\n              <PtlInput\n                @type='currency'\n                @label={{t 'entity.settings.people.workers.worker.Cost rate'}}\n                @key='costRate'\n                @formatterOptions={{hash dashZero=false}}\n                @model={{this.model.workerChangeset.last.value}}\n                @required={{true}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                @onChange={{this.setDefaultChargeOutRate}}\n                @containerClass={{if\n                  (or\n                    this.canUseWorkerCostCalculator\n                    (and (not this.worker.isNew) this.canUseBackdateCostRate)\n                  )\n                  'mb-2'\n                  'mb-3'\n                }}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            {{/if}}\n            {{#if\n              (or\n                this.canUseWorkerCostCalculator\n                (and (not this.worker.isNew) this.canUseBackdateCostRate)\n              )\n            }}\n              <div class='d-flex mb-3'>\n                {{#if this.canUseWorkerCostCalculator}}\n                  <div class='text-left me-2'>\n                    <WorkerCostCalculator\n                      @worker={{this.model.worker.last.value}}\n                      @payRate={{this.model.workerChangeset.last.value.payRate}}\n                      @labourCostCalculators={{this.model.labourCostCalculators.last.value}}\n                    />\n                  </div>\n                {{/if}}\n                {{#if (and (not this.worker.isNew) this.canUseBackdateCostRate)}}\n                  <div class='text-left'>\n                    <button\n                      type='button'\n                      class='btn btn-link text-decoration-underline m-0 p-0'\n                      {{on 'click' this.initBackdateCostRateChangeset}}\n                      disabled={{this.backdateCostRate.isRunning}}\n                    >\n                      {{t\n                        'entity.settings.people.workers.worker.Change cost rate on existing timesheets'\n                      }}\n                    </button>\n                  </div>\n                {{/if}}\n              </div>\n            {{/if}}\n          {{/unless}}\n          {{#if this.canUseChargeOutRate}}\n            <div class='d-flex mb-3'>\n              <div class='flex-grow-1'>\n                <PtlInput\n                  @type='currency'\n                  @label={{t 'common.Charge-out rate'}}\n                  @key='chargeOutRate'\n                  @formatterOptions={{hash dashZero=false}}\n                  class='rounded-0 rounded-start'\n                  @model={{this.model.workerChangeset.last.value}}\n                  @required={{true}}\n                  @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                  @containerClass={{if\n                    (and (not this.worker.isNew) this.canUseBackdateChargeOutRate)\n                    'mb-2'\n                    'mb-3'\n                  }}\n                  disabled={{or\n                    this.saveWorker.isRunning\n                    (not this.canManageWorkers)\n                  }}\n                />\n                {{#if\n                  (and (not this.worker.isNew) this.canUseBackdateChargeOutRate)\n                }}\n                  <div class='text-left'>\n                    <button\n                      type='button'\n                      class='btn btn-link text-decoration-underline m-0 p-0'\n                      {{on 'click' this.initBackdateChargeOutRateChangeset}}\n                      disabled={{this.backdateChargeOutRate.isRunning}}\n                    >\n                      {{t\n                        'entity.settings.people.workers.worker.changeChargeOutRateOnExistingTimesheets'\n                      }}\n                    </button>\n                  </div>\n                {{/if}}\n              </div>\n              {{#unless this.model.workerChangeset.last.value.isContractor}}\n                <div>\n                  <div>\n                    <label class='mb-1'>\n                      {{profit-type-label\n                        this.sessionData.entity.effectiveProfitMargin.labourPercentage.type\n                        effective=true\n                      }}\n                    </label>\n                    <div class='input-group d-block mb-2'>\n                      <span\n                        class='input-group-text text-muted rounded-0 rounded-end'\n                      >\n                        {{number-format\n                          this.effectiveProfitMargin\n                          style='percent'\n                          dashZero=false\n                          maximumFractionDigits=2\n                          minimumFractionDigits=2\n                        }}</span>\n                    </div>\n                    {{#if\n                      this.sessionData.entity.effectiveProfitMargin.labourPercentage.value\n                    }}\n                      <button\n                        class='btn btn-link m-0 p-0 text-decoration-underline'\n                        {{on 'click' this.setDefaultEffectiveMargin}}\n                        type='button'\n                      >\n                        {{concat\n                          (t 'common.Use default')\n                          ' '\n                          (number-format\n                            this.sessionData.entity.effectiveProfitMargin.labourPercentage.value\n                            style='percent'\n                            dashZero=true\n                            maximumFractionDigits=2\n                            minimumFractionDigits=2\n                          )\n                        }}\n                      </button>\n                    {{else}}\n                      <div class='form-text text-muted'>\n                        {{t 'shared.financial.There is no default value'}}\n                      </div>\n                    {{/if}}\n                  </div>\n                </div>\n              {{/unless}}\n            </div>\n          {{/if}}\n          <h4 class='mb-2'>{{t\n              'entity.settings.people.workers.worker.Emergency contacts'\n            }}</h4>\n          <div class='row'>\n            <div class='col-4'>\n              <PtlInput\n                @type='text'\n                @label={{t 'common.Name'}}\n                @key='emergencyContactNameOne'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n            <div class='col-3'>\n              <PtlInput\n                @type='text'\n                @label={{t 'entity.settings.people.workers.worker.Relationship'}}\n                @key='emergencyContactRelationshipOne'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n            <div class='col-5'>\n              <PtlInput\n                @type='text'\n                @label={{t 'common.Phone number'}}\n                @key='emergencyContactPhoneNumberOne'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n          </div>\n  \n          <div class='row'>\n            <div class='col-4'>\n              <PtlInput\n                @type='text'\n                @label={{t 'common.Name'}}\n                @key='emergencyContactNameTwo'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n            <div class='col-3'>\n              <PtlInput\n                @type='text'\n                @label={{t 'entity.settings.people.workers.worker.Relationship'}}\n                @key='emergencyContactRelationshipTwo'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n            <div class='col-5'>\n              <PtlInput\n                @type='text'\n                @label={{t 'common.Phone number'}}\n                @key='emergencyContactPhoneNumberTwo'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            </div>\n          </div>\n  \n          {{#if\n            (or\n              (includes-some-feature-flags\n                'entityCanUseSmartPayroll' 'entityCanUseKeypay'\n              )\n              (and\n                this.accountingPlatform.isActive\n                (eq this.accountingPlatform.activePlatform 'xero')\n                (includes-feature-flags 'canUseXeroIntegration')\n              )\n              (and\n                this.accountingPlatform.isActive\n                (eq this.accountingPlatform.activePlatform 'quickbooks')\n                (includes-feature-flags 'canUseQuickbooksIntegration')\n              )\n            )\n          }}\n            <h4 class='mb-2'>{{t 'common.Integrations'}}</h4>\n            {{#if (includes-feature-flags 'entityCanUseSmartPayroll')}}\n              <PtlInput\n                @type='text'\n                @label={{t\n                  'entity.settings.people.workers.worker.Smartly employee code'\n                }}\n                @description={{t\n                  'entity.settings.people.workers.worker.smartlyEmployeeCodeDescription'\n                }}\n                @key='smartPayrollEmployeeCode'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n              <PtlInput\n                @type='text'\n                @label={{t\n                  'entity.settings.people.workers.worker.Smartly employee department code'\n                }}\n                @description={{t\n                  'entity.settings.people.workers.worker.smartlyEmployeeDepartmentCodeDescription'\n                }}\n                @key='smartPayrollEmployeeDepartmentCode'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{or\n                  this.saveWorker.isRunning\n                  (not this.canManageWorkers)\n                }}\n              />\n            {{/if}}\n  \n            {{#if (includes-feature-flags 'entityCanUseKeypay')}}\n              <PtlInput\n                @type='text'\n                @label={{t\n                  'entity.settings.people.workers.worker.Keypay employee code'\n                }}\n                @description={{t\n                  'entity.settings.people.workers.worker.keypayEmployeeCodeDescription'\n                }}\n                @key='keypayEmployeeCode'\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{this.saveWorker.isRunning}}\n              />\n            {{/if}}\n  \n            {{#if\n              (and\n                (eq this.accountingPlatform.activePlatform 'xero')\n                (includes-feature-flags 'canUseXeroIntegration')\n              )\n            }}\n              <PtlInput\n                @type='powerSelect'\n                @label={{t 'entity.settings.people.workers.worker.Xero employee'}}\n                @key='xeroEmployee'\n                @optionKeys={{array 'name'}}\n                @description={{t\n                  'entity.settings.people.workers.worker.xeroEmployeeDescription'\n                }}\n                @options={{this.model.accountingPlatformEmployees.last.value}}\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                @searchEnabled={{true}}\n                @searchField={{'name'}}\n                @disabled={{or\n                  this.saveWorker.isRunning\n                  this.reloadEmployees.isRunning\n                }}\n              />\n              <div>\n                <button\n                  type='button'\n                  class='btn btn-link text-decoration-underline m-0 p-0 mb-2'\n                  {{on 'click' (perform this.reloadEmployees)}}\n                  disabled={{this.reloadEmployees.isRunning}}\n                >\n                  {{#if this.reloadEmployees.isRunning}}\n                    {{t\n                      'entity.settings.people.workers.worker.Reloading Xero employees'\n                    }}&hellip;\n                  {{else}}\n                    {{t\n                      'entity.settings.people.workers.worker.Reload Xero employees'\n                    }}\n                  {{/if}}\n                </button>\n              </div>\n  \n              <PtlInput\n                @type='powerSelect'\n                @label={{t\n                  'entity.settings.people.workers.worker.Xero earnings rate'\n                }}\n                @description={{t\n                  'entity.settings.people.workers.worker.xeroEarningsRateDescription'\n                }}\n                @key='xeroEarningsRate'\n                @options={{this.model.xeroEarningsRates.last.value}}\n                @optionKeys={{array 'name'}}\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                @searchEnabled={{true}}\n                @searchField={{'name'}}\n                @disabled={{or\n                  this.saveWorker.isRunning\n                  this.reloadEarningsRates.isRunning\n                }}\n              />\n  \n              <div>\n                <button\n                  type='button'\n                  class='btn btn-link text-decoration-underline m-0 p-0 mb-2'\n                  {{on 'click' (perform this.reloadEarningsRates)}}\n                  disabled={{this.reloadEarningsRates.isRunning}}\n                >\n                  {{#if this.reloadEarningsRates.isRunning}}\n                    {{t\n                      'entity.settings.people.workers.worker.Reloading Xero earnings rates'\n                    }}&hellip;\n                  {{else}}\n                    {{t\n                      'entity.settings.people.workers.worker.Reload Xero earnings rates'\n                    }}\n                  {{/if}}\n                </button>\n              </div>\n            {{/if}}\n  \n            {{#if\n              (and\n                (eq this.accountingPlatform.activePlatform 'quickbooks')\n                (includes-feature-flags 'canUseQuickbooksIntegration')\n              )\n            }}\n              <PtlInput\n                @type='powerSelect'\n                @label={{t\n                  'entity.settings.people.workers.worker.QuickBooks employee'\n                }}\n                @key='quickbooksEmployee'\n                @optionKeys={{array 'name'}}\n                @description={{t\n                  'entity.settings.people.workers.worker.quickbooksEmployeeHelperText'\n                }}\n                @options={{this.model.accountingPlatformEmployees.last.value}}\n                @model={{this.model.workerChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                @searchEnabled={{true}}\n                @searchField={{'name'}}\n                @allowClear={{true}}\n                @disabled={{or\n                  this.saveWorker.isRunning\n                  this.reloadEmployees.isRunning\n                }}\n                @afterOptionsComponent={{component\n                  'power-select-after-options-button'\n                  onClick=(perform this.reloadEmployees)\n                  icon='sync'\n                  text=(t\n                    'entity.settings.people.workers.worker.Reload QuickBooks employees'\n                  )\n                  isLoading=this.reloadEmployees.isRunning\n                  loadingText=(t\n                    'entity.settings.people.workers.worker.Loading QuickBooks employees'\n                  )\n                }}\n              />\n            {{/if}}\n          {{/if}}\n        {{/if}}\n  \n        <div class='d-flex flex-grow-1'>\n          {{#if (and this.worker.isActive (not this.enableWorker.isRunning))}}\n            {{#unless this.worker.isNew}}\n              {{#if this.canManageWorkers}}\n                <button\n                  type='button'\n                  class='btn btn-link text-danger text-decoration-underline'\n                  disabled={{or\n                    this.deleteWorker.isRunning\n                    this.saveWorker.isRunning\n                  }}\n                  {{on 'click' (perform this.deleteWorker)}}\n                >\n                  {{#if this.deleteWorker.isRunning}}\n                    {{if\n                      this.canDeleteWorker\n                      (t 'entity.settings.people.workers.worker.Deleting worker')\n                      (t 'entity.settings.people.workers.worker.Disabling worker')\n                    }}&hellip;\n                  {{else}}\n                    {{if\n                      this.canDeleteWorker\n                      (t 'entity.settings.people.workers.worker.Delete worker')\n                      (t 'entity.settings.people.workers.worker.Disable worker')\n                    }}\n                  {{/if}}\n                </button>\n              {{/if}}\n            {{/unless}}\n  \n            {{#if this.canManageWorkers}}\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{or\n                  this.deleteWorker.isRunning\n                  this.saveWorker.isRunning\n                }}\n                {{on\n                  'click'\n                  (perform this.saveWorker this.model.workerChangeset.last.value)\n                }}\n              >\n                {{#if this.saveWorker.isRunning}}\n                  {{t\n                    'entity.settings.people.workers.worker.Saving worker'\n                  }}&hellip;\n                {{else}}\n                  {{if\n                    this.worker.isNew\n                    (t 'entity.settings.people.workers.worker.Create worker')\n                    (t 'entity.settings.people.workers.worker.Save worker')\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n          {{else}}\n            {{#if this.canManageWorkers}}\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.enableWorker.isRunning}}\n                {{on\n                  'click'\n                  (perform\n                    this.enableWorker this.model.workerChangeset.last.value\n                  )\n                }}\n              >\n                {{#if this.enableWorker.isRunning}}\n                  {{t\n                    'entity.settings.people.workers.worker.Enabling worker'\n                  }}&hellip;\n                {{else}}\n                  {{t 'entity.settings.people.workers.worker.Enable worker'}}\n                {{/if}}\n              </button>\n            {{/if}}\n          {{/if}}\n        </div>\n      </PtlForm>\n  \n      {{#if this.canManageWorkers}}\n        {{#unless this.worker.isNew}}\n          <PtlForm class='mb-3'>\n            <h3 class='mb-0'>{{t 'shared.people-editor.Permissions'}}</h3>\n            <p class='mb-4'>\n              {{t\n                'entity.settings.people.workers.worker.workerPermissionsExplanation'\n              }}\n            </p>\n  \n            <PtlInput\n              @type='checkbox'\n              @label={{t\n                'entity.settings.people.workers.worker.Can see all projects and tasks'\n              }}\n              @key='canSeeProjectsAndTasks'\n              @description={{t\n                'entity.settings.people.workers.worker.canSeeAllProjectsAndTasksDescription'\n              }}\n              @model={{this.model.workerPermissionsChangeset.last.value}}\n              @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n              disabled={{this.saveWorker.isRunning}}\n            />\n  \n            {{#if this.newFeatureFlags.entityCanUseHealthAndSafety}}\n              <PtlInput\n                @type='checkbox'\n                @label={{t 'shared.people-editor.canUseHealthAndSafety'}}\n                @key='canCreateHealthAndSafety'\n                @description={{t\n                  'shared.people-editor.canUseHealthAndSafetyDescription'\n                }}\n                @model={{this.model.workerPermissionsChangeset.last.value}}\n                @forceValidationVisible={{gt this.saveWorker.performCount 0}}\n                disabled={{this.saveWorker.isRunning}}\n              />\n            {{/if}}\n  \n            <div class='d-flex flex-grow-1'>\n              <button\n                type='button'\n                class='btn btn-primary ms-auto'\n                disabled={{this.savePermissions.isRunning}}\n                {{on\n                  'click'\n                  (perform\n                    this.savePermissions\n                    this.model.workerPermissionsChangeset.last.value\n                  )\n                }}\n              >\n                {{#if this.savePermissions.isRunning}}\n                  {{t 'shared.people-editor.Saving permissions'}}&hellip;\n                {{else}}\n                  {{t 'shared.people-editor.Save permissions'}}\n                {{/if}}\n              </button>\n            </div>\n          </PtlForm>\n        {{/unless}}\n      {{/if}}\n  \n      {{#unless this.worker.isNew}}\n        <PtlForm class='mb-3'>\n          <h3 class='mb-3'>{{t\n              'entity.settings.people.workers.worker.Worker login code'\n            }}</h3>\n          <p class='mt-0'>\n            {{t\n              'entity.settings.people.workers.worker.workerLoginCodeExplanation'\n            }}\n          </p>\n          <div class='d-flex align-items-center position-relative'>\n  \n            {{#if this.worker.authCode}}\n              <div\n                role='button'\n                class='bg-white border rounded px-2 py-1 flex-grow-1'\n                data-bs-placement='bottom'\n                {{on 'click' this.copyAuthCode}}\n                {{bootstrap-tooltip\n                  (if\n                    this.copiedAuthCode\n                    (t 'common.Copied')\n                    (t 'common.Click to copy')\n                  )\n                }}\n              >\n                <span class='fw-bold'>\n                  {{this.worker.authCode}}\n                </span>\n              </div>\n            {{else}}\n              <div\n                role='button'\n                class='bg-white border rounded px-2 py-1 flex-grow-1'\n              >\n                <span class='fw-bold'>\n                  {{t 'common.Not set'}}\n                </span>\n              </div>\n            {{/if}}\n  \n            {{#if this.canManageWorkers}}\n              <button\n                class='btn ms-2\n                  {{if\n                    this.worker.authCode\n                    \"btn-outline-danger\"\n                    \"btn-outline-success\"\n                  }}'\n                type='button'\n                {{on 'click' (perform this.resetWorkerAuthCode)}}\n              >\n                {{#if this.resetWorkerAuthCode.isRunning}}\n                  {{t\n                    'entity.settings.people.workers.worker.Generating new code'\n                  }}&hellip;\n                {{else}}\n                  {{if\n                    this.worker.authCode\n                    (t 'entity.settings.people.workers.worker.Generate new code')\n                    (t 'entity.settings.people.workers.worker.Generate code')\n                  }}\n                {{/if}}\n              </button>\n            {{/if}}\n          </div>\n        </PtlForm>\n      {{/unless}}\n    {{/if}}\n  </div>\n  \n  {{#if this.backdateChargeOutRateChangeSet}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.backdateChargeOutRateChangeSet) null}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        <p>\n          {{t\n            'entity.settings.people.workers.worker.overwriteTheChargeOutRatesConfirm'\n          }}\n        </p>\n        <PtlInput\n          @type='currency'\n          @label={{t 'common.Charge-out rate'}}\n          @key='chargeOutRate'\n          @formatterOptions={{hash dashZero=false}}\n          @required={{true}}\n          @model={{this.backdateChargeOutRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateChargeOutRate.performCount 0}}\n          disabled={{this.backdateChargeOutRate.isRunning}}\n        />\n        <PtlInput\n          @type='date'\n          @label={{t 'common.From'}}\n          @key='startDate'\n          @model={{this.backdateChargeOutRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateChargeOutRate.performCount 0}}\n          disabled={{this.backdateChargeOutRate.isRunning}}\n        />\n        <PtlInput\n          @type='date'\n          @label={{t 'common.To'}}\n          @key='endDate'\n          @model={{this.backdateChargeOutRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateChargeOutRate.performCount 0}}\n          disabled={{this.backdateChargeOutRate.isRunning}}\n        />\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.backdateChargeOutRate.isRunning}}\n            {{on 'click' (fn (mut this.backdateChargeOutRateChangeSet) null)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.backdateChargeOutRate.isRunning}}\n            {{on\n              'click'\n              (perform\n                this.backdateChargeOutRate this.model.workerChangeset.last.value\n              )\n            }}\n          >\n            {{#if this.backdateChargeOutRate.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Applying'}}&hellip;\n            {{else}}\n              {{t 'common.Apply'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.backdateCostRateChangeSet}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.backdateCostRateChangeSet) null}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body mt-2'>\n        <p>\n          {{t\n            'entity.settings.people.workers.worker.overwriteTheCostRatesConfirm'\n          }}\n        </p>\n        <PtlInput\n          @type='currency'\n          @label={{t 'entity.settings.people.workers.worker.Cost rate'}}\n          @key='costRate'\n          @formatterOptions={{hash dashZero=false}}\n          @required={{true}}\n          @model={{this.backdateCostRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateCostRate.performCount 0}}\n          disabled={{this.backdateCostRate.isRunning}}\n        />\n        <PtlInput\n          @type='date'\n          @label={{t 'common.From'}}\n          @key='startDate'\n          @model={{this.backdateCostRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateCostRate.performCount 0}}\n          disabled={{this.backdateCostRate.isRunning}}\n        />\n        <PtlInput\n          @type='date'\n          @label={{t 'common.To'}}\n          @key='endDate'\n          @model={{this.backdateCostRateChangeSet}}\n          @forceValidationVisible={{gt this.backdateCostRate.performCount 0}}\n          disabled={{this.backdateCostRate.isRunning}}\n        />\n      </div>\n  \n      <div class='modal-footer d-flex'>\n        <div class='d-flex align-items-center'>\n          <button\n            class='btn btn-secondary text-white ms-2'\n            type='button'\n            disabled={{this.backdateCostRate.isRunning}}\n            {{on 'click' (fn (mut this.backdateCostRateChangeSet) null)}}\n          >{{t 'common.Cancel'}}</button>\n          <button\n            type='button'\n            class='btn btn-primary ms-2'\n            disabled={{this.backdateCostRate.isRunning}}\n            {{on\n              'click'\n              (perform\n                this.backdateCostRate this.model.workerChangeset.last.value\n              )\n            }}\n          >\n            {{#if this.backdateCostRate.isRunning}}\n              <span\n                class='spinner-border spinner-border-sm'\n              ></span>&nbsp;&nbsp;{{t 'common.Applying'}}&hellip;\n            {{else}}\n              {{t 'common.Apply'}}\n            {{/if}}\n          </button>\n        </div>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"a142buBC\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRunning\\\"]],[[[1,\\\"    \\\"],[8,[39,2],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[10,0],[14,0,\\\"mb-3 ms-1 mt-1\\\"],[12],[1,\\\"\\\\n      \\\"],[8,[39,3],null,[[\\\"@crumbStack\\\"],[[30,0,[\\\"crumbStack\\\"]]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"common.Details\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"shared.contacts.Contact email\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.contactEmailDescription\\\"],null],\\\"email\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,6],[\\\"common.Language\\\"],null],\\\"language\\\",[30,0,[\\\"languages\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageWorkers\\\"]],[[[41,[30,0,[\\\"canUseWorkerType\\\"]],[[[1,\\\"          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@description\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Worker type\\\"],null],\\\"isContractor\\\",[30,0,[\\\"workerTypes\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.workerTypeDescription\\\"],null],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isContractor\\\"]]],[[[41,[30,0,[\\\"canUsePayRate\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,6],[\\\"common.Pay rate\\\"],null],\\\"payRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"canUseCostRate\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\",\\\"@onChange\\\",\\\"@containerClass\\\"],[\\\"currency\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Cost rate\\\"],null],\\\"costRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],[30,0,[\\\"setDefaultChargeOutRate\\\"]],[52,[28,[37,8],[[30,0,[\\\"canUseWorkerCostCalculator\\\"]],[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateCostRate\\\"]]],null]],null],\\\"mb-2\\\",\\\"mb-3\\\"]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,8],[[30,0,[\\\"canUseWorkerCostCalculator\\\"]],[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateCostRate\\\"]]],null]],null],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"d-flex mb-3\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canUseWorkerCostCalculator\\\"]],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"text-left me-2\\\"],[12],[1,\\\"\\\\n                  \\\"],[8,[39,14],null,[[\\\"@worker\\\",\\\"@payRate\\\",\\\"@labourCostCalculators\\\"],[[30,0,[\\\"model\\\",\\\"worker\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"payRate\\\"]],[30,0,[\\\"model\\\",\\\"labourCostCalculators\\\",\\\"last\\\",\\\"value\\\"]]]],null],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateCostRate\\\"]]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"text-left\\\"],[12],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"initBackdateCostRateChangeset\\\"]]],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Change cost rate on existing timesheets\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"canUseChargeOutRate\\\"]],[[[1,\\\"          \\\"],[10,0],[14,0,\\\"d-flex mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,7],[[24,0,\\\"rounded-0 rounded-start\\\"],[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\",\\\"@containerClass\\\"],[\\\"currency\\\",[28,[37,6],[\\\"common.Charge-out rate\\\"],null],\\\"chargeOutRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],true,[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],[52,[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateChargeOutRate\\\"]]],null],\\\"mb-2\\\",\\\"mb-3\\\"]]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[28,[37,9],[[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],null],[30,0,[\\\"canUseBackdateChargeOutRate\\\"]]],null],[[[1,\\\"                \\\"],[10,0],[14,0,\\\"text-left\\\"],[12],[1,\\\"\\\\n                  \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"initBackdateChargeOutRateChangeset\\\"]]],null],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.changeChargeOutRateOnExistingTimesheets\\\"],null]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\",\\\"isContractor\\\"]]],[[[1,\\\"              \\\"],[10,0],[12],[1,\\\"\\\\n                \\\"],[10,0],[12],[1,\\\"\\\\n                  \\\"],[10,\\\"label\\\"],[14,0,\\\"mb-1\\\"],[12],[1,\\\"\\\\n                    \\\"],[1,[28,[35,18],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"type\\\"]]],[[\\\"effective\\\"],[true]]]],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n                  \\\"],[10,0],[14,0,\\\"input-group d-block mb-2\\\"],[12],[1,\\\"\\\\n                    \\\"],[10,1],[14,0,\\\"input-group-text text-muted rounded-0 rounded-end\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,20],[[30,0,[\\\"effectiveProfitMargin\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",false,2,2]]]],[13],[1,\\\"\\\\n                  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]],[[[1,\\\"                    \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link m-0 p-0 text-decoration-underline\\\"],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"setDefaultEffectiveMargin\\\"]]],null],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,21],[[28,[37,6],[\\\"common.Use default\\\"],null],\\\" \\\",[28,[37,20],[[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"effectiveProfitMargin\\\",\\\"labourPercentage\\\",\\\"value\\\"]]],[[\\\"style\\\",\\\"dashZero\\\",\\\"maximumFractionDigits\\\",\\\"minimumFractionDigits\\\"],[\\\"percent\\\",true,2,2]]]],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"                    \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,\\\"\\\\n                      \\\"],[1,[28,[35,6],[\\\"shared.financial.There is no default value\\\"],null]],[1,\\\"\\\\n                    \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"                \\\"],[13],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Emergency contacts\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-4\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"emergencyContactNameOne\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-3\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Relationship\\\"],null],\\\"emergencyContactRelationshipOne\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-5\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"emergencyContactPhoneNumberOne\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"row\\\"],[12],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-4\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Name\\\"],null],\\\"emergencyContactNameTwo\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-3\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Relationship\\\"],null],\\\"emergencyContactRelationshipTwo\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"col-5\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"common.Phone number\\\"],null],\\\"emergencyContactPhoneNumberTwo\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,8],[[28,[37,23],[\\\"entityCanUseSmartPayroll\\\",\\\"entityCanUseKeypay\\\"],null],[28,[37,13],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[28,[37,24],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"xero\\\"],null],[28,[37,25],[\\\"canUseXeroIntegration\\\"],null]],null],[28,[37,13],[[30,0,[\\\"accountingPlatform\\\",\\\"isActive\\\"]],[28,[37,24],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"quickbooks\\\"],null],[28,[37,25],[\\\"canUseQuickbooksIntegration\\\"],null]],null]],null],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-2\\\"],[12],[1,[28,[35,6],[\\\"common.Integrations\\\"],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[\\\"entityCanUseSmartPayroll\\\"],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Smartly employee code\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.smartlyEmployeeCodeDescription\\\"],null],\\\"smartPayrollEmployeeCode\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[28,[37,9],[[30,0,[\\\"canManageWorkers\\\"]]],null]],null]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Smartly employee department code\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.smartlyEmployeeDepartmentCodeDescription\\\"],null],\\\"smartPayrollEmployeeDepartmentCode\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,25],[\\\"entityCanUseKeypay\\\"],null],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Keypay employee code\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.keypayEmployeeCodeDescription\\\"],null],\\\"keypayEmployeeCode\\\",[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[28,[37,24],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"xero\\\"],null],[28,[37,25],[\\\"canUseXeroIntegration\\\"],null]],null],[[[1,\\\"            \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@description\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@disabled\\\"],[\\\"powerSelect\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Xero employee\\\"],null],\\\"xeroEmployee\\\",[28,[37,26],[\\\"name\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.xeroEmployeeDescription\\\"],null],[30,0,[\\\"model\\\",\\\"accountingPlatformEmployees\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],true,\\\"name\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]]],null]]],null],[1,\\\"\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0 mb-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"reloadEmployees\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Reloading Xero employees\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Reload Xero employees\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\\n            \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@description\\\",\\\"@key\\\",\\\"@options\\\",\\\"@optionKeys\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@disabled\\\"],[\\\"powerSelect\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Xero earnings rate\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.xeroEarningsRateDescription\\\"],null],\\\"xeroEarningsRate\\\",[30,0,[\\\"model\\\",\\\"xeroEarningsRates\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,26],[\\\"name\\\"],null],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],true,\\\"name\\\",[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"reloadEarningsRates\\\",\\\"isRunning\\\"]]],null]]],null],[1,\\\"\\\\n\\\\n            \\\"],[10,0],[12],[1,\\\"\\\\n              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0 mb-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"reloadEarningsRates\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"reloadEarningsRates\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"reloadEarningsRates\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Reloading Xero earnings rates\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Reload Xero earnings rates\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[28,[37,24],[[30,0,[\\\"accountingPlatform\\\",\\\"activePlatform\\\"]],\\\"quickbooks\\\"],null],[28,[37,25],[\\\"canUseQuickbooksIntegration\\\"],null]],null],[[[1,\\\"            \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@optionKeys\\\",\\\"@description\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\",\\\"@searchEnabled\\\",\\\"@searchField\\\",\\\"@allowClear\\\",\\\"@disabled\\\",\\\"@afterOptionsComponent\\\"],[\\\"powerSelect\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.QuickBooks employee\\\"],null],\\\"quickbooksEmployee\\\",[28,[37,26],[\\\"name\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.quickbooksEmployeeHelperText\\\"],null],[30,0,[\\\"model\\\",\\\"accountingPlatformEmployees\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null],true,\\\"name\\\",true,[28,[37,8],[[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]]],null],[50,\\\"power-select-after-options-button\\\",0,null,[[\\\"onClick\\\",\\\"icon\\\",\\\"text\\\",\\\"isLoading\\\",\\\"loadingText\\\"],[[28,[37,27],[[30,0,[\\\"reloadEmployees\\\"]]],null],\\\"sync\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Reload QuickBooks employees\\\"],null],[30,0,[\\\"reloadEmployees\\\",\\\"isRunning\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Loading QuickBooks employees\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[30,0,[\\\"worker\\\",\\\"isActive\\\"]],[28,[37,9],[[30,0,[\\\"enableWorker\\\",\\\"isRunning\\\"]]],null]],null],[[[41,[51,[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],[[[41,[30,0,[\\\"canManageWorkers\\\"]],[[[1,\\\"              \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline\\\"],[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"deleteWorker\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"                  \\\"],[1,[52,[30,0,[\\\"canDeleteWorker\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Deleting worker\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.Disabling worker\\\"],null]]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                  \\\"],[1,[52,[30,0,[\\\"canDeleteWorker\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Delete worker\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.Disable worker\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"              \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageWorkers\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[28,[37,8],[[30,0,[\\\"deleteWorker\\\",\\\"isRunning\\\"]],[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"saveWorker\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Saving worker\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"worker\\\",\\\"isNew\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Create worker\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.Save worker\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[30,0,[\\\"canManageWorkers\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"enableWorker\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"enableWorker\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"enableWorker\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Enabling worker\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Enable worker\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"canManageWorkers\\\"]],[[[41,[51,[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],[[[1,\\\"        \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n          \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-0\\\"],[12],[1,[28,[35,6],[\\\"shared.people-editor.Permissions\\\"],null]],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"mb-4\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.workerPermissionsExplanation\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Can see all projects and tasks\\\"],null],\\\"canSeeProjectsAndTasks\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.canSeeAllProjectsAndTasksDescription\\\"],null],[30,0,[\\\"model\\\",\\\"workerPermissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"newFeatureFlags\\\",\\\"entityCanUseHealthAndSafety\\\"]],[[[1,\\\"            \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"saveWorker\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@description\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"checkbox\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafety\\\"],null],\\\"canCreateHealthAndSafety\\\",[28,[37,6],[\\\"shared.people-editor.canUseHealthAndSafetyDescription\\\"],null],[30,0,[\\\"model\\\",\\\"workerPermissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]],[28,[37,10],[[30,0,[\\\"saveWorker\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1\\\"],[12],[1,\\\"\\\\n            \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"savePermissions\\\"]],[30,0,[\\\"model\\\",\\\"workerPermissionsChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"savePermissions\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Saving permissions\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"shared.people-editor.Save permissions\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"worker\\\",\\\"isNew\\\"]]],[[[1,\\\"      \\\"],[8,[39,4],[[24,0,\\\"mb-3\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n        \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Worker login code\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[10,2],[14,0,\\\"mt-0\\\"],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.workerLoginCodeExplanation\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex align-items-center position-relative\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"worker\\\",\\\"authCode\\\"]],[[[1,\\\"            \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"bg-white border rounded px-2 py-1 flex-grow-1\\\"],[24,\\\"data-bs-placement\\\",\\\"bottom\\\"],[4,[38,16],[\\\"click\\\",[30,0,[\\\"copyAuthCode\\\"]]],null],[4,[38,30],[[52,[30,0,[\\\"copiedAuthCode\\\"]],[28,[37,6],[\\\"common.Copied\\\"],null],[28,[37,6],[\\\"common.Click to copy\\\"],null]]],null],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[30,0,[\\\"worker\\\",\\\"authCode\\\"]]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[10,0],[14,\\\"role\\\",\\\"button\\\"],[14,0,\\\"bg-white border rounded px-2 py-1 flex-grow-1\\\"],[12],[1,\\\"\\\\n              \\\"],[10,1],[14,0,\\\"fw-bold\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[\\\"common.Not set\\\"],null]],[1,\\\"\\\\n              \\\"],[13],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canManageWorkers\\\"]],[[[1,\\\"            \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"btn ms-2\\\\n                \\\",[52,[30,0,[\\\"worker\\\",\\\"authCode\\\"]],\\\"btn-outline-danger\\\",\\\"btn-outline-success\\\"]]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"resetWorkerAuthCode\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"resetWorkerAuthCode\\\",\\\"isRunning\\\"]],[[[1,\\\"                \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.Generating new code\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"                \\\"],[1,[52,[30,0,[\\\"worker\\\",\\\"authCode\\\"]],[28,[37,6],[\\\"entity.settings.people.workers.worker.Generate new code\\\"],null],[28,[37,6],[\\\"entity.settings.people.workers.worker.Generate code\\\"],null]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]],[[[1,\\\"  \\\"],[8,[39,31],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,32],[[28,[37,33],[[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]]],null],null],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.overwriteTheChargeOutRatesConfirm\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,6],[\\\"common.Charge-out rate\\\"],null],\\\"chargeOutRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],true,[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateChargeOutRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.From\\\"],null],\\\"startDate\\\",[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateChargeOutRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.To\\\"],null],\\\"endDate\\\",[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateChargeOutRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,32],[[28,[37,33],[[30,0,[\\\"backdateChargeOutRateChangeSet\\\"]]],null],null],null]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"backdateChargeOutRate\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"backdateChargeOutRate\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Applying\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Apply\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"backdateCostRateChangeSet\\\"]],[[[1,\\\"  \\\"],[8,[39,31],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,32],[[28,[37,33],[[30,0,[\\\"backdateCostRateChangeSet\\\"]]],null],null],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body mt-2\\\"],[12],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,6],[\\\"entity.settings.people.workers.worker.overwriteTheCostRatesConfirm\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@formatterOptions\\\",\\\"@required\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"currency\\\",[28,[37,6],[\\\"entity.settings.people.workers.worker.Cost rate\\\"],null],\\\"costRate\\\",[28,[37,12],null,[[\\\"dashZero\\\"],[false]]],true,[30,0,[\\\"backdateCostRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateCostRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.From\\\"],null],\\\"startDate\\\",[30,0,[\\\"backdateCostRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateCostRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n      \\\"],[8,[39,7],[[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"date\\\",[28,[37,6],[\\\"common.To\\\"],null],\\\"endDate\\\",[30,0,[\\\"backdateCostRateChangeSet\\\"]],[28,[37,10],[[30,0,[\\\"backdateCostRate\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer d-flex\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"d-flex align-items-center\\\"],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary text-white ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,32],[[28,[37,33],[[30,0,[\\\"backdateCostRateChangeSet\\\"]]],null],null],null]],null],[12],[1,[28,[35,6],[\\\"common.Cancel\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-2\\\"],[16,\\\"disabled\\\",[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,16],[\\\"click\\\",[28,[37,27],[[30,0,[\\\"backdateCostRate\\\"]],[30,0,[\\\"model\\\",\\\"workerChangeset\\\",\\\"last\\\",\\\"value\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"backdateCostRate\\\",\\\"isRunning\\\"]],[[[1,\\\"            \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,6],[\\\"common.Applying\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"            \\\"],[1,[28,[35,6],[\\\"common.Apply\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"if\\\",\\\"loading-icon\\\",\\\"page-title-breadcrumbs\\\",\\\"ptl-form\\\",\\\"h3\\\",\\\"t\\\",\\\"ptl-input\\\",\\\"or\\\",\\\"not\\\",\\\"gt\\\",\\\"unless\\\",\\\"hash\\\",\\\"and\\\",\\\"worker-cost-calculator\\\",\\\"button\\\",\\\"on\\\",\\\"label\\\",\\\"profit-type-label\\\",\\\"span\\\",\\\"number-format\\\",\\\"concat\\\",\\\"h4\\\",\\\"includes-some-feature-flags\\\",\\\"eq\\\",\\\"includes-feature-flags\\\",\\\"array\\\",\\\"perform\\\",\\\"component\\\",\\\"p\\\",\\\"bootstrap-tooltip\\\",\\\"modal-dialog\\\",\\\"fn\\\",\\\"mut\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/people/workers/worker.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/entity/settings/profile\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{#unless (media 'isDesktop')}}\n    <ToElsewhere\n      @named='mobile-title-bar-middle-content'\n      @send={{component 'mobile-title-bar/page-title' title=(t 'common.Profile')}}\n    />\n  {{/unless}}\n  \n  <article class='mx-4 mt-4 h-100'>\n    <header class='border-bottom pb-2 mb-3 d-flex align-items-center'>\n      {{#if (media 'isDesktop')}}\n        <h2 class='flex-grow-1 m-0 my-2'>{{t 'common.Profile'}}</h2>\n      {{/if}}\n    </header>\n    {{#if this.isLoading}}\n      <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n    {{else}}\n      <PtlForm\n        class='width--small mb-4'\n        {{did-insert this.initUserCanManageHealthAndSafety}}\n      >\n  \n        <h3 class='mb-3'>{{t 'entity.settings.profile.User details'}}</h3>\n        {{#let\n          (changeset this.model.user.last.value this.userValidationMap)\n          as |userModel|\n        }}\n          <PtlInput\n            @type='text'\n            @label={{t 'common.First name'}}\n            @key='firstName'\n            @model={{userModel}}\n            @required={{true}}\n            disabled={{this.saveUser.isRunning}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Last name'}}\n            @key='lastName'\n            @model={{userModel}}\n            @required={{true}}\n            disabled={{this.saveUser.isRunning}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Email'}}\n            @key='email'\n            @model={{userModel}}\n            @required={{true}}\n            disabled={{this.saveUser.isRunning}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          />\n          <PtlInput\n            @type='text'\n            @label={{t 'common.Phone number'}}\n            @key='phoneNumber'\n            @model={{userModel}}\n            disabled={{this.saveUser.isRunning}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n          />\n          <PtlInput\n            @type='select'\n            @label={{t 'common.Language'}}\n            @key='language'\n            @options={{this.languages}}\n            @model={{userModel}}\n            @forceValidationVisible={{gt this.saveUser.performCount 0}}\n            disabled={{this.saveUser.isRunning}}\n          />\n  \n          <div class='mb-3'>\n            <button\n              type='button'\n              class='btn btn-link text-decoration-underline p-0'\n              {{on 'click' (fn (mut this.termsOfServiceModalVisible) true)}}\n            >\n              {{t 'entity.settings.profile.View Terms of Service'}}\n            </button>\n          </div>\n  \n          {{#if\n            (includes-feature-flags\n              'userIsEntityAdmin' 'entityCanUseHealthAndSafety'\n            )\n          }}\n            <h4 class='mb-3'>\n              {{t 'common.healthAndSafety'}}\n            </h4>\n  \n            <div class='form-check mb-3'>\n              <label>\n                <Input\n                  class='form-check-input'\n                  @type='checkbox'\n                  @checked={{this.userCanManageHealthAndSafety}}\n                  disabled={{this.saveUser.isRunning}}\n                />\n                {{t 'entity.settings.profile.Manage health and safety'}}\n              </label>\n              <div class='form-text text-muted'>\n                {{t\n                  'entity.settings.profile.grantYourselfAccessToManageAndSuperviseHealthAndSafety'\n                }}\n              </div>\n            </div>\n          {{/if}}\n  \n          <div class='d-flex flex-grow-1'>\n            <button\n              type='button'\n              class='btn btn-primary ms-auto'\n              disabled={{this.saveUser.isRunning}}\n              {{on 'click' (perform this.saveUser userModel)}}\n            >\n              {{#if this.saveUser.isRunning}}\n                <span\n                  class='spinner-border spinner-border-sm'\n                ></span>&nbsp;&nbsp;{{t 'common.Saving'}}…\n              {{else}}\n                {{t 'common.Save'}}\n              {{/if}}\n            </button>\n          </div>\n        {{/let}}\n      </PtlForm>\n  \n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-1'>{{t 'entity.settings.profile.Change password'}}</h3>\n        <div>\n          <button\n            type='button'\n            class='btn btn-link text-decoration-underline m-0 p-0 mt-2'\n            {{on 'click' (fn (mut this.passwordModalVisible) true)}}\n          >\n            {{t 'entity.settings.profile.Click here to change password'}}\n          </button>\n        </div>\n      </PtlForm>\n  \n      <PtlForm class='width--small mb-4'>\n        <h3 class='mb-1'>{{t\n            'entity.settings.profile.Remove yourself from company'\n          }}</h3>\n        <p>\n          {{t\n            'entity.settings.profile.ifYouChooseToDoThisYouWillNotBeAbleToAccess'\n          }}\n          <b>{{this.sessionData.entity.name}}</b>\n        </p>\n        <div>\n          <button\n            type='button'\n            class='btn btn-link text-danger text-decoration-underline m-0 p-0'\n            {{on 'click' (perform this.deleteUser)}}\n          >\n            {{t 'entity.settings.profile.Remove me from this company'}}\n          </button>\n        </div>\n      </PtlForm>\n    {{/if}}\n  </article>\n  \n  {{#if this.passwordModalVisible}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{perform this.closePasswordModal}}\n      @containerClass='modal-content w-auto'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        <div class='form-group mb-2'>\n          <label for='old-password'>{{t\n              'entity.settings.profile.Current password'\n            }}</label>\n          <Input\n            @type='password'\n            @value={{this.oldPassword}}\n            class='form-control'\n            id='old-password'\n          />\n  \n        </div>\n        <div class='form-group mb-2'>\n          <label for='new-password'>{{t\n              'entity.settings.profile.New password'\n            }}</label>\n          <Input\n            @type='password'\n            @value={{this.newPassword}}\n            class='form-control'\n            id='new-password'\n          />\n        </div>\n        <div class='form-group mb-2'>\n          <label for='confirm-password'>{{t\n              'entity.settings.profile.Confirm password'\n            }}</label>\n          <Input\n            @type='password'\n            @value={{this.confirmPassword}}\n            class='form-control'\n            id='confirm-password'\n          />\n        </div>\n      </div>\n      <div class='modal-footer text-right'>\n        <button\n          class='btn btn-secondary'\n          type='button'\n          {{on 'click' (perform this.closePasswordModal)}}\n        >\n          {{t 'common.Cancel'}}\n        </button>\n        <button\n          class='float-end btn btn-primary'\n          type='button'\n          {{on 'click' (perform (mut this.changePassword))}}\n        >\n          {{#if this.changePassword.isRunning}}\n            {{t 'common.Changing'}}&hellip;\n          {{else}}\n            {{t 'common.Confirm change'}}\n          {{/if}}\n        </button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  \n  {{#if this.termsOfServiceModalVisible}}\n    <ModalDialog\n      @overlayClass='modal'\n      @onClose={{fn (mut this.termsOfServiceModalVisible) false}}\n      @containerClass='modal-content modal-dialog-scrollable w-75'\n      @translucentOverlay={{true}}\n    >\n      <div class='modal-body'>\n        {{html-safe this.model.terms.last.value}}\n      </div>\n  \n      <div class='modal-footer text-right'>\n        <button\n          type='button'\n          aria-label='button close'\n          class='btn btn-secondary'\n          {{on 'click' (fn (mut this.termsOfServiceModalVisible) false)}}\n        >{{t 'common.Close'}}</button>\n      </div>\n    </ModalDialog>\n  {{/if}}\n  */\n  {\n    \"id\": \"pEqIxCum\",\n    \"block\": \"[[[41,[51,[28,[37,1],[\\\"isDesktop\\\"],null]],[[[1,\\\"  \\\"],[8,[39,2],null,[[\\\"@named\\\",\\\"@send\\\"],[\\\"mobile-title-bar-middle-content\\\",[50,\\\"mobile-title-bar/page-title\\\",0,null,[[\\\"title\\\"],[[28,[37,4],[\\\"common.Profile\\\"],null]]]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,\\\"article\\\"],[14,0,\\\"mx-4 mt-4 h-100\\\"],[12],[1,\\\"\\\\n  \\\"],[10,\\\"header\\\"],[14,0,\\\"border-bottom pb-2 mb-3 d-flex align-items-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[\\\"isDesktop\\\"],null],[[[1,\\\"      \\\"],[10,\\\"h2\\\"],[14,0,\\\"flex-grow-1 m-0 my-2\\\"],[12],[1,[28,[35,4],[\\\"common.Profile\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLoading\\\"]],[[[1,\\\"    \\\"],[8,[39,9],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"    \\\"],[8,[39,10],[[24,0,\\\"width--small mb-4\\\"],[4,[38,11],[[30,0,[\\\"initUserCanManageHealthAndSafety\\\"]]],null]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-3\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.User details\\\"],null]],[13],[1,\\\"\\\\n\\\"],[44,[[28,[37,14],[[30,0,[\\\"model\\\",\\\"user\\\",\\\"last\\\",\\\"value\\\"]],[30,0,[\\\"userValidationMap\\\"]]],null]],[[[1,\\\"        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.First name\\\"],null],\\\"firstName\\\",[30,1],true,[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Last name\\\"],null],\\\"lastName\\\",[30,1],true,[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@required\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Email\\\"],null],\\\"email\\\",[30,1],true,[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"text\\\",[28,[37,4],[\\\"common.Phone number\\\"],null],\\\"phoneNumber\\\",[30,1],[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n        \\\"],[8,[39,15],[[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@label\\\",\\\"@key\\\",\\\"@options\\\",\\\"@model\\\",\\\"@forceValidationVisible\\\"],[\\\"select\\\",[28,[37,4],[\\\"common.Language\\\"],null],\\\"language\\\",[30,0,[\\\"languages\\\"]],[30,1],[28,[37,16],[[30,0,[\\\"saveUser\\\",\\\"performCount\\\"]],0],null]]],null],[1,\\\"\\\\n\\\\n        \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline p-0\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"termsOfServiceModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.View Terms of Service\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,22],[\\\"userIsEntityAdmin\\\",\\\"entityCanUseHealthAndSafety\\\"],null],[[[1,\\\"          \\\"],[10,\\\"h4\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,4],[\\\"common.healthAndSafety\\\"],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"form-check mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,25],[[24,0,\\\"form-check-input\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"userCanManageHealthAndSafety\\\"]]]],null],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.Manage health and safety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"form-text text-muted\\\"],[12],[1,\\\"\\\\n              \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.grantYourselfAccessToManageAndSuperviseHealthAndSafety\\\"],null]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n        \\\"],[10,0],[14,0,\\\"d-flex flex-grow-1\\\"],[12],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary ms-auto\\\"],[16,\\\"disabled\\\",[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]]],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"saveUser\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveUser\\\",\\\"isRunning\\\"]],[[[1,\\\"              \\\"],[10,1],[14,0,\\\"spinner-border spinner-border-sm\\\"],[12],[13],[1,\\\"  \\\"],[1,[28,[35,4],[\\\"common.Saving\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"              \\\"],[1,[28,[35,4],[\\\"common.Save\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"          \\\"],[13],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n\\\"]],[1]]],[1,\\\"    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,10],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.Change password\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-decoration-underline m-0 p-0 mt-2\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"passwordModalVisible\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.Click here to change password\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\\n    \\\"],[8,[39,10],[[24,0,\\\"width--small mb-4\\\"]],null,[[\\\"default\\\"],[[[[1,\\\"\\\\n      \\\"],[10,\\\"h3\\\"],[14,0,\\\"mb-1\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.Remove yourself from company\\\"],null]],[13],[1,\\\"\\\\n      \\\"],[10,2],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.ifYouChooseToDoThisYouWillNotBeAbleToAccess\\\"],null]],[1,\\\"\\\\n        \\\"],[10,\\\"b\\\"],[12],[1,[30,0,[\\\"sessionData\\\",\\\"entity\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[12],[1,\\\"\\\\n        \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-link text-danger text-decoration-underline m-0 p-0\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"deleteUser\\\"]]],null]],null],[12],[1,\\\"\\\\n          \\\"],[1,[28,[35,4],[\\\"entity.settings.profile.Remove me from this company\\\"],null]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"passwordModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,26],[[30,0,[\\\"closePasswordModal\\\"]]],null],\\\"modal-content w-auto\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"old-password\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.Current password\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[8,[39,25],[[24,0,\\\"form-control\\\"],[24,1,\\\"old-password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"oldPassword\\\"]]]],null],[1,\\\"\\\\n\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"new-password\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.New password\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[8,[39,25],[[24,0,\\\"form-control\\\"],[24,1,\\\"new-password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"newPassword\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"form-group mb-2\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"confirm-password\\\"],[12],[1,[28,[35,4],[\\\"entity.settings.profile.Confirm password\\\"],null]],[13],[1,\\\"\\\\n        \\\"],[8,[39,25],[[24,0,\\\"form-control\\\"],[24,1,\\\"confirm-password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"confirmPassword\\\"]]]],null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,26],[[30,0,[\\\"closePasswordModal\\\"]]],null]],null],[12],[1,\\\"\\\\n        \\\"],[1,[28,[35,4],[\\\"common.Cancel\\\"],null]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,0,\\\"float-end btn btn-primary\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,26],[[28,[37,21],[[30,0,[\\\"changePassword\\\"]]],null]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"changePassword\\\",\\\"isRunning\\\"]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Changing\\\"],null]],[1,\\\"…\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[1,[28,[35,4],[\\\"common.Confirm change\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"termsOfServiceModalVisible\\\"]],[[[1,\\\"  \\\"],[8,[39,30],null,[[\\\"@overlayClass\\\",\\\"@onClose\\\",\\\"@containerClass\\\",\\\"@translucentOverlay\\\"],[\\\"modal\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"termsOfServiceModalVisible\\\"]]],null],false],null],\\\"modal-content modal-dialog-scrollable w-75\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"modal-body\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,31],[[30,0,[\\\"model\\\",\\\"terms\\\",\\\"last\\\",\\\"value\\\"]]],null]],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[10,0],[14,0,\\\"modal-footer text-right\\\"],[12],[1,\\\"\\\\n      \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"button close\\\"],[24,0,\\\"btn btn-secondary\\\"],[24,4,\\\"button\\\"],[4,[38,19],[\\\"click\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"termsOfServiceModalVisible\\\"]]],null],false],null]],null],[12],[1,[28,[35,4],[\\\"common.Close\\\"],null]],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"userModel\\\"],false,[\\\"unless\\\",\\\"media\\\",\\\"to-elsewhere\\\",\\\"component\\\",\\\"t\\\",\\\"article\\\",\\\"header\\\",\\\"if\\\",\\\"h2\\\",\\\"loading-icon\\\",\\\"ptl-form\\\",\\\"did-insert\\\",\\\"h3\\\",\\\"let\\\",\\\"changeset\\\",\\\"ptl-input\\\",\\\"gt\\\",\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"includes-feature-flags\\\",\\\"h4\\\",\\\"label\\\",\\\"input\\\",\\\"perform\\\",\\\"span\\\",\\\"p\\\",\\\"b\\\",\\\"modal-dialog\\\",\\\"html-safe\\\"]]\",\n    \"moduleName\": \"portal/templates/entity/settings/profile.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/error\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='flex-grow-1 text-center p-5 d-flex flex-column align-items-center'>\n    <FaIcon @icon='dizzy' @size='5x' class='mb-3' />\n    <h1 class='mb-0'>Oops</h1>\n    <h3>Something went wrong</h3>\n  \n    <LinkTo @route='index' class='btn btn-lg btn-primary'>Try again</LinkTo>\n  </div>\n  */\n  {\n    \"id\": \"S/xBlQ7T\",\n    \"block\": \"[[[10,0],[14,0,\\\"flex-grow-1 text-center p-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n  \\\"],[8,[39,1],[[24,0,\\\"mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"dizzy\\\",\\\"5x\\\"]],null],[1,\\\"\\\\n  \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"Oops\\\"],[13],[1,\\\"\\\\n  \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Something went wrong\\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[8,[39,4],[[24,0,\\\"btn btn-lg btn-primary\\\"]],[[\\\"@route\\\"],[\\\"index\\\"]],[[\\\"default\\\"],[[[[1,\\\"Try again\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"h3\\\",\\\"link-to\\\"]]\",\n    \"moduleName\": \"portal/templates/error.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/initiate-password-reset\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='vh-100 bg-dark bg-gradient'>\n    <div class='container h-100 d-flex justify-content-center align-items-center'>\n      <div class='card shadow-lg' style='width: 450px;'>\n        <div class='card-body p-sm-5 text-center'>\n  \n          <form {{action 'resetPassword' on='submit'}}>\n            <h1 class='mb-3'>Reset your password</h1>\n            <div class='mb-3'>\n              <Input\n                id='email-address'\n                class='form-control form-control-lg'\n                @value={{this.email}}\n              />\n            </div>\n            <LoadingButton\n              @class='btn btn-primary btn-lg w-100'\n              @isLoading={{this.isResettingPassword}}\n              @action={{action 'resetPassword'}}\n              @buttonText='Send password reset email'\n            />\n          </form>\n        </div>\n      </div>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"ouRsjDc1\",\n    \"block\": \"[[[10,0],[14,0,\\\"vh-100 bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container h-100 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg\\\"],[14,5,\\\"width: 450px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5 text-center\\\"],[12],[1,\\\"\\\\n\\\\n        \\\"],[11,\\\"form\\\"],[4,[38,2],[[30,0],\\\"resetPassword\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Reset your password\\\"],[13],[1,\\\"\\\\n          \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],[[24,1,\\\"email-address\\\"],[24,0,\\\"form-control form-control-lg\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"email\\\"]]]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n          \\\"],[8,[39,5],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"btn btn-primary btn-lg w-100\\\",[30,0,[\\\"isResettingPassword\\\"]],[28,[37,2],[[30,0],\\\"resetPassword\\\"],null],\\\"Send password reset email\\\"]],null],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"form\\\",\\\"action\\\",\\\"h1\\\",\\\"input\\\",\\\"loading-button\\\"]]\",\n    \"moduleName\": \"portal/templates/initiate-password-reset.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/loading\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"xQuGqETj\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/loading.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/login\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <LoadingIcon @type='ripple' @class='loading-icon--padded' />\n  */\n  {\n    \"id\": \"0q3Z2Pb9\",\n    \"block\": \"[[[8,[39,0],null,[[\\\"@type\\\",\\\"@class\\\"],[\\\"ripple\\\",\\\"loading-icon--padded\\\"]],null]],[],false,[\\\"loading-icon\\\"]]\",\n    \"moduleName\": \"portal/templates/login.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/logout-redirect\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    {{outlet}}\n  */\n  {\n    \"id\": \"/Dnn3c5w\",\n    \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],false,[\\\"component\\\",\\\"-outlet\\\"]]\",\n    \"moduleName\": \"portal/templates/logout-redirect.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/no-access\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='vh-100 bg-dark bg-gradient'>\n    <div class='container h-100 d-flex justify-content-center align-items-center'>\n      <div class='card shadow-lg' style='width: 450px;'>\n        <div class='card-body p-sm-5 text-center'>\n          <h1 class='mb-3'>\n            You can't access this company\n          </h1>\n          <p>\n            Either you haven't been given access to this company, or the company\n            has been disabled.\n          </p>\n          <p>\n            If you believe you have received this message in error, please contact\n            the company manager.\n          </p>\n  \n          {{#if (gt this.sessionData.allowedEntities.length 1)}}\n            <button\n              type='button'\n              class='btn btn-primary btn-lg w-100'\n              {{on 'click' (fn (mut this.orgSelectorOpen) true)}}\n            >\n              Change company\n            </button>\n          {{else}}\n            <button\n              class='btn btn-primary btn-lg w-100'\n              type='button'\n              {{on 'click' this.signOut}}\n            >\n              Sign out\n            </button>\n          {{/if}}\n        </div>\n      </div>\n    </div>\n  </div>\n  \n  {{#if this.orgSelectorOpen}}\n    <EntitySelector @onClose={{fn (mut this.orgSelectorOpen) false}} />\n  {{/if}}\n  */\n  {\n    \"id\": \"9zP/Hc7f\",\n    \"block\": \"[[[10,0],[14,0,\\\"vh-100 bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container h-100 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg\\\"],[14,5,\\\"width: 450px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5 text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n          You can't access this company\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          Either you haven't been given access to this company, or the company\\\\n          has been disabled.\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,2],[12],[1,\\\"\\\\n          If you believe you have received this message in error, please contact\\\\n          the company manager.\\\\n        \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,4],[[30,0,[\\\"sessionData\\\",\\\"allowedEntities\\\",\\\"length\\\"]],1],null],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-lg w-100\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[28,[37,8],[[30,0,[\\\"orgSelectorOpen\\\"]]],null],true],null]],null],[12],[1,\\\"\\\\n            Change company\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-lg w-100\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"signOut\\\"]]],null],[12],[1,\\\"\\\\n            Sign out\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"orgSelectorOpen\\\"]],[[[1,\\\"  \\\"],[8,[39,9],null,[[\\\"@onClose\\\"],[[28,[37,7],[[28,[37,8],[[30,0,[\\\"orgSelectorOpen\\\"]]],null],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[],false,[\\\"div\\\",\\\"h1\\\",\\\"p\\\",\\\"if\\\",\\\"gt\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"mut\\\",\\\"entity-selector\\\"]]\",\n    \"moduleName\": \"portal/templates/no-access.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/not-found\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='page__container'>\n    <div\n      class='flex-grow-1 text-center p-5 d-flex flex-column align-items-center'\n    >\n      <FaIcon @icon='dizzy' @size='5x' class='mb-3' />\n      <h1 class='mb-0'>404</h1>\n      <h3>Page not found</h3>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"nSS0ZRzF\",\n    \"block\": \"[[[10,0],[14,0,\\\"page__container\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"flex-grow-1 text-center p-5 d-flex flex-column align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[8,[39,1],[[24,0,\\\"mb-3\\\"]],[[\\\"@icon\\\",\\\"@size\\\"],[\\\"dizzy\\\",\\\"5x\\\"]],null],[1,\\\"\\\\n    \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-0\\\"],[12],[1,\\\"404\\\"],[13],[1,\\\"\\\\n    \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Page not found\\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"fa-icon\\\",\\\"h1\\\",\\\"h3\\\"]]\",\n    \"moduleName\": \"portal/templates/not-found.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/project\", [\"exports\", \"oss-portal-addon/templates/project\"], function (_exports, _project) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _project.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/no-site\", [\"exports\", \"oss-portal-addon/templates/project/no-site\"], function (_exports, _noSite) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _noSite.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/no-site\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site\", [\"exports\", \"oss-portal-addon/templates/project/site\"], function (_exports, _site) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _site.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/dashboard\", [\"exports\", \"oss-portal-addon/templates/project/site/dashboard\"], function (_exports, _dashboard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _dashboard.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/dashboard\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/details\", [\"exports\", \"oss-portal-addon/templates/project/site/details\"], function (_exports, _details) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _details.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/details\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/hazards\", [\"exports\", \"oss-portal-addon/templates/project/site/hazards\"], function (_exports, _hazards) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _hazards.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/hazards\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/hazards/board\", [\"exports\", \"oss-portal-addon/templates/project/site/hazards/board\"], function (_exports, _board) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _board.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/hazards/board\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/hazards/selection\", [\"exports\", \"oss-portal-addon/templates/project/site/hazards/selection\"], function (_exports, _selection) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _selection.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/hazards/selection\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/index\", [\"exports\", \"oss-portal-addon/templates/project/site/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _index.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/index\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/ppe\", [\"exports\", \"oss-portal-addon/templates/project/site/ppe\"], function (_exports, _ppe) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _ppe.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/ppe\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/reports/index\", [\"exports\", \"oss-portal-addon/templates/project/site/reports/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _index.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/reports/index\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/reports/report\", [\"exports\", \"oss-portal-addon/templates/project/site/reports/report\"], function (_exports, _report) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _report.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/reports/report\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/setup\", [\"exports\", \"oss-portal-addon/templates/project/site/setup\"], function (_exports, _setup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _setup.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/setup\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/setup/notifiable\", [\"exports\", \"oss-portal-addon/templates/project/site/setup/notifiable\"], function (_exports, _notifiable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _notifiable.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/setup/notifiable\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/setup/summary\", [\"exports\", \"oss-portal-addon/templates/project/site/setup/summary\"], function (_exports, _summary) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _summary.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/setup/summary\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/project/site/signin\", [\"exports\", \"oss-portal-addon/templates/project/site/signin\"], function (_exports, _signin) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _signin.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/project/site/signin\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/reports\", [\"exports\", \"oss-portal-addon/templates/reports\"], function (_exports, _reports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _reports.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/reports\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/reset-password\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='vh-100 bg-dark bg-gradient'>\n    <div class='container h-100 d-flex justify-content-center align-items-center'>\n      <div class='card shadow-lg' style='width: 450px;'>\n        <div class='card-body p-sm-5 text-center'>\n          {{#unless this.tokenExpired}}\n            <h1 class='mb-3'>Reset your password</h1>\n  \n            <form autocomplete='off' {{action 'resetPasswordForm' on='submit'}}>\n              <div class='mb-3'>\n                <Input\n                  id='new-password'\n                  @type='password'\n                  class='form-control form-control-lg'\n                  placeholder='New password'\n                  @value={{this.newPassword}}\n                />\n              </div>\n              <div class='mb-3'>\n                <Input\n                  id='confirm-password'\n                  @type='password'\n                  class='form-control form-control-lg'\n                  placeholder='Confirm password'\n                  @value={{this.confirmPassword}}\n                />\n              </div>\n              <LoadingButton\n                @class='btn btn-primary btn-lg w-100'\n                @isLoading={{this.isResettingPassword}}\n                @action={{action 'resetPasswordForm'}}\n                @buttonText='Reset password'\n              />\n            </form>\n          {{else}}\n            <h1 class='mb-3'>Reset your password</h1>\n            <p class='mb-3'>Your token is invalid or has expired.</p>\n            <button\n              type='button'\n              class='btn btn-primary btn-lg w-100'\n              {{action 'handleRequestPasswordReset'}}\n            >\n              Click here to request a new reset link…\n            </button>\n          {{/unless}}\n        </div>\n      </div>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"OLs82MBi\",\n    \"block\": \"[[[10,0],[14,0,\\\"vh-100 bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container h-100 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg\\\"],[14,5,\\\"width: 450px;\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5 text-center\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"tokenExpired\\\"]]],[[[1,\\\"          \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Reset your password\\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[11,\\\"form\\\"],[24,\\\"autocomplete\\\",\\\"off\\\"],[4,[38,4],[[30,0],\\\"resetPasswordForm\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[12],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,5],[[24,1,\\\"new-password\\\"],[24,0,\\\"form-control form-control-lg\\\"],[24,\\\"placeholder\\\",\\\"New password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"newPassword\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[10,0],[14,0,\\\"mb-3\\\"],[12],[1,\\\"\\\\n              \\\"],[8,[39,5],[[24,1,\\\"confirm-password\\\"],[24,0,\\\"form-control form-control-lg\\\"],[24,\\\"placeholder\\\",\\\"Confirm password\\\"]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"password\\\",[30,0,[\\\"confirmPassword\\\"]]]],null],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n            \\\"],[8,[39,6],null,[[\\\"@class\\\",\\\"@isLoading\\\",\\\"@action\\\",\\\"@buttonText\\\"],[\\\"btn btn-primary btn-lg w-100\\\",[30,0,[\\\"isResettingPassword\\\"]],[28,[37,4],[[30,0],\\\"resetPasswordForm\\\"],null],\\\"Reset password\\\"]],null],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"          \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Reset your password\\\"],[13],[1,\\\"\\\\n          \\\"],[10,2],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Your token is invalid or has expired.\\\"],[13],[1,\\\"\\\\n          \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-primary btn-lg w-100\\\"],[24,4,\\\"button\\\"],[4,[38,4],[[30,0],\\\"handleRequestPasswordReset\\\"],null],[12],[1,\\\"\\\\n            Click here to request a new reset link…\\\\n          \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"unless\\\",\\\"h1\\\",\\\"form\\\",\\\"action\\\",\\\"input\\\",\\\"loading-button\\\",\\\"p\\\",\\\"button\\\"]]\",\n    \"moduleName\": \"portal/templates/reset-password.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/templates/site\", [\"exports\", \"oss-portal-addon/templates/site\"], function (_exports, _site) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _site.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"oss-portal-addon/templates/site\"eaimeta@70e063a35619d71f\n});","define(\"portal/templates/terms-of-service\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    <div class='vh-100 bg-dark bg-gradient'>\n    <div class='container h-100 d-flex justify-content-center align-items-center'>\n      <div class='card shadow-lg w-75'>\n        <div class='card-body p-sm-5 text-center'>\n          <form>\n            <h1 class='mb-3'>Terms of service</h1>\n  \n            <div class='overflow-auto mb-3 border p-3' style='height: 50vh'>\n              {{html-safe this.model.terms}}\n            </div>\n  \n            <div class='form-check mb-3 text-left'>\n              <Input\n                class='form-check-input'\n                id='terms'\n                @type='checkbox'\n                @checked={{this.model.user.hasAcceptedTerms}}\n              />\n              <label class='form-check-label' for='terms'>\n                I agree to these terms\n              </label>\n            </div>\n  \n            <LoadingButton\n              @isLoading={{this.isSubmitting}}\n              @action={{action 'continue'}}\n              @class='btn btn-primary btn-lg w-100'\n            >\n              Continue\n            </LoadingButton>\n          </form>\n        </div>\n      </div>\n    </div>\n  </div>\n  */\n  {\n    \"id\": \"DH5du54D\",\n    \"block\": \"[[[10,0],[14,0,\\\"vh-100 bg-dark bg-gradient\\\"],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container h-100 d-flex justify-content-center align-items-center\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"card shadow-lg w-75\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"card-body p-sm-5 text-center\\\"],[12],[1,\\\"\\\\n        \\\"],[10,\\\"form\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h1\\\"],[14,0,\\\"mb-3\\\"],[12],[1,\\\"Terms of service\\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"overflow-auto mb-3 border p-3\\\"],[14,5,\\\"height: 50vh\\\"],[12],[1,\\\"\\\\n            \\\"],[1,[28,[35,3],[[30,0,[\\\"model\\\",\\\"terms\\\"]]],null]],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[10,0],[14,0,\\\"form-check mb-3 text-left\\\"],[12],[1,\\\"\\\\n            \\\"],[8,[39,4],[[24,0,\\\"form-check-input\\\"],[24,1,\\\"terms\\\"]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"model\\\",\\\"user\\\",\\\"hasAcceptedTerms\\\"]]]],null],[1,\\\"\\\\n            \\\"],[10,\\\"label\\\"],[14,0,\\\"form-check-label\\\"],[14,\\\"for\\\",\\\"terms\\\"],[12],[1,\\\"\\\\n              I agree to these terms\\\\n            \\\"],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n\\\\n          \\\"],[8,[39,6],null,[[\\\"@isLoading\\\",\\\"@action\\\",\\\"@class\\\"],[[30,0,[\\\"isSubmitting\\\"]],[28,[37,7],[[30,0],\\\"continue\\\"],null],\\\"btn btn-primary btn-lg w-100\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n            Continue\\\\n          \\\"]],[]]]]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],false,[\\\"div\\\",\\\"form\\\",\\\"h1\\\",\\\"html-safe\\\",\\\"input\\\",\\\"label\\\",\\\"loading-button\\\",\\\"action\\\"]]\",\n    \"moduleName\": \"portal/templates/terms-of-service.hbs\",\n    \"isStrictMode\": false\n  });\n});","define(\"portal/test-support/helpers\", [\"exports\", \"ember-power-calendar/test-support/helpers\"], function (_exports, _helpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _helpers.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-power-calendar/test-support/helpers\"eaimeta@70e063a35619d71f\n});","define(\"portal/transforms/array\", [\"exports\", \"@ember/array\", \"@ember-data/serializer/transform\"], function (_exports, _array, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\",0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n  class _default extends _transform.default {\n    deserialize(serialized) {\n      return (0, _array.isArray)(serialized) ? serialized : [];\n    }\n    serialize(deserialized) {\n      return (0, _array.isArray)(deserialized) ? deserialized : [];\n    }\n  }\n  _exports.default = _default;\n});","define(\"portal/transforms/boolean\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.BooleanTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n});","define(\"portal/transforms/date\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.DateTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n});","define(\"portal/transforms/number\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.NumberTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n});","define(\"portal/transforms/string\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.StringTransform;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n});","define(\"portal/transitions\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function _default() {\n    this.setDefault({\n      duration: 200,\n      easing: 'ease-out'\n    });\n\n    // From any route to a deeper entity route\n    this.transition(this.fromRoute(() => true), this.toRoute((newRoute, oldRoute) => {\n      const newParts = newRoute.split('.');\n      const oldParts = oldRoute.split('.');\n      if (['index', 'index_loading'].includes((0, _object.get)(newParts, 'lastObject'))) {\n        newParts.pop();\n      }\n      if (['index', 'index_loading'].includes((0, _object.get)(oldParts, 'lastObject'))) {\n        oldParts.pop();\n      }\n      return newParts[0] === 'entity' && oldParts[0] === 'entity' && oldParts.length < newParts.length;\n    }), this.use('toLeft'), this.reverse('toRight'), this.media('(max-width: 992px)'));\n  }\n});","define(\"portal/utils/am5-bp-theme\", [\"exports\", \"@amcharts/amcharts5\"], function (_exports, am5) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@amcharts/amcharts5\"eaimeta@70e063a35619d71f\n  class BpTheme extends am5.Theme {\n    setupDefaultRules() {\n      this.rule('InterfaceColors').setAll({\n        positive: am5.color('#5cb85c'),\n        negative: am5.color('#ff7052')\n      });\n      // variations of these colors will be generated by the library\n      this.rule('ColorSet').set('colors', [\n      // am5.color('#5cb85c'), // green\n      am5.color('#20aaff'),\n      // blue\n      am5.color('#B95F89'),\n      // purple\n      am5.color('#ffbe0b') // yellow\n      ]);\n    }\n  }\n  _exports.default = BpTheme;\n});","define(\"portal/utils/auto-map\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = autoMap;\n  _exports.sanitizeString = sanitizeString;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  /**\n   * Selects one directive from a list that applies to the invoice\n   * @param {Object} invoice - The invoice that is to be mapped\n   * @param {Object[]} directives - The directives to choose from\n   * @returns {Object} directive\n   */\n  function autoMap(invoice, directives = []) {\n    // Return a matching reference directive if one can be found\n    const invoiceReference = (0, _object.get)(invoice, 'reference');\n    const matchingReferenceDirective = invoiceReference && directives.find(d => (0, _object.get)(d, 'kind') === 'reference' && sanitizeString((0, _object.get)(d, 'value')) === sanitizeString(invoiceReference));\n    if (matchingReferenceDirective) return matchingReferenceDirective;\n\n    // Return a matching account directive if one can be found\n    const invoiceAccount = (0, _object.get)(invoice, 'supplierDebtorAccountCode');\n    const matchingAccountDirective = invoiceAccount && directives.find(d => (0, _object.get)(d, 'kind') === 'account' && sanitizeString((0, _object.get)(d, 'value')) === sanitizeString(invoiceAccount));\n    if (matchingAccountDirective) return matchingAccountDirective;\n\n    // Return null since no directive can be found\n    return null;\n  }\n  function sanitizeString(string) {\n    return string\n    // Ignore case\n    .toLowerCase()\n    // Ignore length of white space\n    .replace(/\\s\\s+/g, ' ')\n    // Replace tabs or any other type of white space with a space character\n    .replace(/\\s/g, ' ')\n    // Ignore leading or trailaing white space\n    .trim();\n  }\n});","define(\"portal/utils/balance-calculator\", [\"exports\", \"@ember/object/computed\", \"@ember/object\"], function (_exports, _computed, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.addValue = addValue;\n  _exports.default = calcBalacnes;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function calcBalacnes(accounts, imp, maps, step) {\n    const balances = [];\n    const extBals = (0, _object.get)(imp, 'externalBalances') || [];\n    const manBals = (0, _object.get)(imp, 'manualBalances') || [];\n    accounts.forEach(account => {\n      const manBal = manBals.findBy('account', (0, _object.get)(account, 'id'));\n      const balance = _object.default.extend({\n        account,\n        date: (0, _object.get)(imp, 'date'),\n        value: (0, _object.computed)('manualBalance', 'manualBalance.value', 'maps.[]', 'maps.@each.value', 'maps.@each.inverted', function () {\n          const manual = (0, _object.get)(this, 'manualBalance');\n          if (manual) {\n            return (0, _object.get)(manual, 'value');\n          }\n          let total = null;\n          (0, _object.get)(this, 'maps').forEach(map => {\n            if ((0, _object.get)(map, 'value') != null) {\n              total += (0, _object.get)(map, 'value');\n            }\n          });\n          return total;\n        }),\n        isManual: (0, _computed.notEmpty)('manualBalance'),\n        entity: (0, _object.get)(imp, 'entity'),\n        manualBalance: manBal ? _object.default.create(manBal) : null,\n        maps: []\n      }).create();\n      const mapsForAccount = maps.filterBy('account.id', (0, _object.get)(account, 'id')).filterBy('system', (0, _object.get)(imp, 'system'));\n      mapsForAccount.forEach(map => {\n        const extBal = extBals.findBy('externalId', (0, _object.get)(map, 'externalId'));\n        if (!(0, _object.get)(map, 'sourceBalance')) {\n          addValue(map, extBal, step);\n        } else {\n          (0, _object.set)(map, 'sourceBalance', extBal);\n        }\n        (0, _object.get)(balance, 'maps').pushObject(map);\n      });\n      balances.pushObject(balance);\n    });\n    return balances;\n  }\n  function addValue(map, balance, step) {\n    (0, _object.set)(map, 'step', step);\n    (0, _object.set)(map, 'sourceBalance', balance);\n  }\n});","define(\"portal/utils/bill-parsers/bunnings\", [\"exports\", \"moment\", \"portal/utils/parse-currency-string\"], function (_exports, _moment, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = bunningsInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function bunningsInvoiceParser(source) {\n    const types = {\n      10: 'head',\n      20: 'item',\n      30: 'total'\n    };\n    try {\n      const invoices = source.reduce((bills, line, index) => {\n        const [type] = line;\n        const lastBill = bills[0];\n        switch (types[type]) {\n          case 'head':\n            bills.unshift(extractHead(line, index + 1));\n            break;\n          case 'item':\n            if (lastBill) {\n              lastBill.items.push(extractItem(line, index + 1));\n              break;\n            } else {\n              throw new Error('Invalid file, invoice item found before invoice. Invoice row (10) must precede item row (20).');\n            }\n          case 'total':\n            checkTotal(lastBill, line, index + 1);\n            break;\n          default:\n            throw new Error(`Unknown row type${type ? ' \"' + type + '\" ' : ' '}on bill ${bills.length}, row ${index + 1}, column 1. Expected 10, 20, or 30.` // eslint-disable-line max-len\n            );\n        }\n        return bills;\n      }, []);\n      return {\n        invoices: invoices.reverse(),\n        errors: []\n      };\n    } catch (error) {\n      return {\n        invoices: [],\n        errors: [error.message]\n      };\n    }\n  }\n  function extractHead(line, rowIndex) {\n    const [type,\n    // eslint-disable-line no-unused-vars\n    customerNumber,\n    // eslint-disable-line no-unused-vars\n    issuedTo,\n    // eslint-disable-line no-unused-vars\n    issueDate, invoiceNumber, orderNumber, jobNumber, specialInstructions] = line;\n    const reference = [orderNumber, jobNumber, specialInstructions].filter(i => i).join(' - ');\n    if (!invoiceNumber) throw new Error(`Expected \"Invoice Number\" at row ${rowIndex}, column 5.`);\n    if (!issueDate) throw new Error(`Expected \"Issue Date\" at row ${rowIndex}, column 4.`);\n    const parsedIssueDate = (0, _moment.default)(issueDate, 'DD/MM/YYYY');\n    if (!parsedIssueDate.isValid()) throw new Error(`Expected issue date in \"DD/MM/YYYY\" format. Instead got ${issueDate}.`);\n    return {\n      reference,\n      billNumber: invoiceNumber,\n      issuer: 'Bunnings',\n      issueDate: parsedIssueDate.toDate(),\n      dueDate: parsedIssueDate.add(1, 'month').set('date', 20).toDate(),\n      items: [],\n      source: 'web:bunnings'\n    };\n  }\n  function extractItem(line, rowIndex) {\n    const [type,\n    // eslint-disable-line no-unused-vars\n    sku, description, unit,\n    // eslint-disable-line no-unused-vars\n    quantity, price,\n    // eslint-disable-line no-unused-vars\n    discount,\n    // eslint-disable-line no-unused-vars\n    net, total // eslint-disable-line no-unused-vars\n    ] = line;\n    if (!description) throw new Error(`Expected \"Description\" at row ${rowIndex}, column 3.`);\n    if (!sku) throw new Error(`Expected \"SKU\" at row ${rowIndex}, column 2.`);\n    if (!quantity) throw new Error(`Expected \"Quantity\" at row ${rowIndex}, column 5.`);\n    if (!net) throw new Error(`Expected \"Net\" at row ${rowIndex}, column 8.`);\n    return {\n      description,\n      productCode: sku,\n      quantity: Number(quantity),\n      unitPrice: (0, _parseCurrencyString.default)(net)\n    };\n  }\n  function checkTotal(invoice, line, rowIndex) {\n    const [type,\n    // eslint-disable-line no-unused-vars\n    _subTotal, gst,\n    // eslint-disable-line no-unused-vars\n    total // eslint-disable-line no-unused-vars\n    ] = line;\n    const subTotal = Number((0, _parseCurrencyString.default)(_subTotal));\n    const itemsTotal = invoice.items.reduce((total, item) => total + item.quantity * item.unitPrice, 0);\n    if (Math.abs(itemsTotal - subTotal) > 0.1) {\n      throw new Error(`Expected \"Sub Total\" on row ${rowIndex}, column 2 to equal the sum of the items (${itemsTotal.toFixed(2)}). Instead got ${subTotal.toFixed(2)}.` // eslint-disable-line max-len\n      );\n    }\n  }\n});","define(\"portal/utils/bill-parsers/carters-type-1\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = cartersInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['Document Date', 'Document Number', 'Type', 'Your Ref.', 'Contract Number', 'Address', 'Status', 'Total Value', 'Outstanding Value', 'Due Date'];\n\n  // An example invoice\n  // Document Date, Document Number, Type, Your Ref., Contract Number, Address, Status     , Total Value, Outstanding Value, Due Date\n  // 26/03/2018   , TG0744244      , IN  , FREIDLEIB, TG1254349E1    , Taken  , Outstanding, 285.41     , 285.41           , 31/03/2018\n\n  /**\n   * Turns the data from a carters invoice file into the portal domain invoice format.\n   * @param {Array} source - 2D array representing the source csv file.\n   * @returns {Object} - An object with an `invoices` member who's value is an array with one invoice in it.\n   */\n  function cartersInvoiceParser(source) {\n    const newInvoice = {\n      reference: source[1][3],\n      billNumber: source[1][1],\n      issuer: 'Carters',\n      issueDate: (0, _moment.default)(source[1][0], 'DD/MM/YYYY').toDate(),\n      dueDate: (0, _moment.default)(source[1][9], 'DD/MM/YYYY').toDate(),\n      items: [{\n        description: `Total (invoice number ${source[1][1]})`,\n        quantity: 1,\n        unitPrice: extractNumber(source[1][7] / 1.15) // Total in file is including GST\n      }],\n      source: 'web:carters-type-1'\n    };\n    return {\n      invoices: [newInvoice]\n    };\n  }\n\n  /**\n   * Checks that the number is valid and rounds to 2DP\n   * @param {String} input - A string that is a plain number\n   * @returns {Number} - The string turned into a number with 2DP accuracy\n   */\n  function extractNumber(input) {\n    return isNaN(input) ? 0 : Math.floor(Number(input) * 100) / 100;\n  }\n});","define(\"portal/utils/bill-parsers/carters-type-2\", [\"exports\", \"portal/utils/find-date\", \"portal/utils/extract-number\"], function (_exports, _findDate, _extractNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = cartersInvoiceParser2;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/find-date\",0,\"portal/utils/extract-number\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['ContactName', 'InvoiceNumber', 'InvoiceDate', 'DueDate', 'Description', 'Quantity', 'UnitAmount'];\n\n  // An example invoice\n  // Document Date, Document Number, Type, Your Ref., Contract Number, Address, Status     , Total Value, Outstanding Value, Due Date\n  // 26/03/2018   , TG0744244      , IN  , FREIDLEIB, TG1254349E1    , Taken  , Outstanding, 285.41     , 285.41           , 31/03/2018\n\n  /**\n   * Turns the data from a carters invoice file into the portal domain invoice format.\n   * @param {Array} source - 2D array representing the source csv file.\n   * @returns {Object} - An object with an `invoices` member who's value is an array with one invoice in it.\n   */\n  function cartersInvoiceParser2(source) {\n    const invoicesMap = {};\n\n    // Get the column indices for each header in the first line.\n    const indices = source[0].reduce((allKeys, header, index) => Object.assign(allKeys, {\n      [header]: index\n    }), {});\n\n    // Iterate over the lines of the file, skip the first line as it has headers in it.\n    for (const line of source.slice(1)) {\n      const billNumber = line[indices['InvoiceNumber']];\n      let invoice = invoicesMap[billNumber];\n      if (!invoice) {\n        // If it is the first line for a new invoice, it should contain a description (the reference) and not a quantity or unit price.\n        if (line[indices['Quantity']] || line[indices['UnitAmount']]) {\n          return {\n            errors: 'Could not find reference line for bill: ' + billNumber\n          };\n        }\n        invoice = {\n          billNumber,\n          reference: line[indices['Description']],\n          // The reference is stored in the description of the first item.\n          issuer: line[indices['ContactName']],\n          issueDate: (0, _findDate.default)(line[indices['InvoiceDate']], 'DD/MM/YYYY'),\n          dueDate: (0, _findDate.default)(line[indices['DueDate']], 'DD/MM/YYYY'),\n          items: [],\n          source: 'web:carters-type-2'\n        };\n        invoicesMap[billNumber] = invoice;\n      } else {\n        // If it is not the first line for a new invoice, it should contain a valid item with a quantity and unit price.\n        if (line[indices['Quantity']] == null || line[indices['UnitAmount']] == null || !line[indices['Description']]) {\n          return {\n            errors: 'Invalid item line: ' + line\n          };\n        }\n        invoice.items.push({\n          description: line[indices['Description']],\n          quantity: line[indices['Quantity']],\n          unitPrice: (0, _extractNumber.default)(line[indices['UnitAmount']])\n        });\n      }\n    }\n    const invoicesArray = Object.keys(invoicesMap).map(key => invoicesMap[key]);\n    return {\n      invoices: invoicesArray\n    };\n  }\n});","define(\"portal/utils/bill-parsers/carters-type-3\", [\"exports\", \"portal/utils/find-date\", \"portal/utils/extract-number\"], function (_exports, _findDate, _extractNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = cartersInvoiceParser3;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/find-date\",0,\"portal/utils/extract-number\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['Account Number', 'Invoice Number', 'Credit Address', 'Delivery Address', 'Document Type', 'Document Date', 'Branch', 'Customer Number', 'Customer Order Number', 'Contract Number', 'Delivery Date', 'Tax', 'Total Nett', 'Total Gross'];\n  const indices = REQUIRED_HEADERS.reduce((allKeys, header, index) => Object.assign(allKeys, {\n    [header]: index\n  }), {});\n  function cartersInvoiceParser3(source) {\n    const invoices = [];\n    // Dump the header row\n    // Each line is a separate invoice\n    for (const [index, invoice] of source.slice(1).entries()) {\n      const billNumber = invoice[indices['Invoice Number']];\n      const totalNet = invoice[indices['Total Nett']]; // Yes, this is misspelled in the format.\n      const documentDate = invoice[indices['Document Date']];\n      const customerOrderNumber = invoice[indices['Customer Order Number']];\n      const deliveryDate = invoice[indices['Delivery Date']];\n      // const accountNumber       = invoice[indices['Account Number']];\n      // const creditAddress       = invoice[indices['Credit Address']];\n      // const deliveryAddress     = invoice[indices['Delivery Address']];\n      // const documentType        = invoice[indices['Document Type']];\n      // const branch              = invoice[indices['Branch']];\n      // const customerNumber      = invoice[indices['Customer Number']];\n      // const contractNumber      = invoice[indices['Contract Number']];\n      // const totalGross          = invoice[indices['Total Gross']];\n      // const tax                 = invoice[indices['Tax']];\n\n      if (!billNumber) return {\n        errors: [`Invoice number not provided on line ${index + 2}`]\n      };\n      if (!totalNet) return {\n        errors: [`Total nett not provided on line ${index + 2}`]\n      };\n      invoices.push({\n        billNumber,\n        reference: customerOrderNumber,\n        issuer: 'Carters',\n        issueDate: (0, _findDate.default)(documentDate, 'DD/MM/YYYY'),\n        dueDate: (0, _findDate.default)(deliveryDate, 'DD/MM/YYYY'),\n        items: [{\n          description: `Total (invoice number ${billNumber})`,\n          quantity: 1,\n          unitPrice: (0, _extractNumber.default)(totalNet)\n        }],\n        source: 'web:carters-type-3'\n      });\n    }\n    return {\n      invoices\n    };\n  }\n});","define(\"portal/utils/bill-parsers/carters-type-4\", [\"exports\", \"portal/utils/find-date\", \"portal/utils/extract-number\"], function (_exports, _findDate, _extractNumber) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = cartersInvoiceParser4;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/find-date\",0,\"portal/utils/extract-number\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['Account Number', 'Invoice Number', 'Customer Number', 'Customer Order Number', 'Contract Number', 'Delivery Date', 'Product Code', 'Product Description', 'Quantity Delivered', 'Sales Unit', 'Unit Price excluding GST', 'Discount %', 'Nett Value', 'Extended Line Value'];\n  const indices = REQUIRED_HEADERS.reduce((allKeys, header, index) => Object.assign(allKeys, {\n    [header]: index\n  }), {});\n  function cartersInvoiceParser4(source) {\n    const invoices = {};\n    // Dump the header row\n    // Each line is a invoice line\n    for (const [_index, invoice] of source.slice(1).entries()) {\n      // eslint-disable-line no-unused-vars\n      // deal with the invoice\n      const billNumber = invoice[indices['Invoice Number']];\n      const customerOrderNumber = invoice[indices['Customer Order Number']];\n      const deliveryDate = invoice[indices['Delivery Date']];\n      if (!billNumber) continue;\n      if (!invoices[billNumber]) {\n        invoices[billNumber] = {\n          billNumber,\n          reference: customerOrderNumber,\n          issuer: 'Carters',\n          // issueDate: findDate(documentDate, 'DD/MM/YYYY'), missing from format...\n          issueDate: (0, _findDate.default)(deliveryDate, 'DD/MM/YYYY'),\n          source: 'web:carters-type-4',\n          items: []\n        };\n      }\n\n      // deal with the item\n      const productCode = invoice[indices['Product Code']];\n      const productDescription = invoice[indices['Product Description']];\n      const quantityDelivered = invoice[indices['Quantity Delivered']];\n      const unitPriceExcludingGST = invoice[indices['Unit Price excluding GST']];\n      invoices[billNumber].items.push({\n        description: productDescription,\n        productCode: productCode,\n        quantity: (0, _extractNumber.default)(quantityDelivered),\n        unitPrice: (0, _extractNumber.default)(unitPriceExcludingGST)\n      });\n    }\n    return {\n      invoices: Object.values(invoices)\n    };\n  }\n});","define(\"portal/utils/bill-parsers/carters\", [\"exports\", \"portal/utils/bill-parsers/carters-type-1\", \"portal/utils/bill-parsers/carters-type-2\", \"portal/utils/bill-parsers/carters-type-3\", \"portal/utils/bill-parsers/carters-type-4\"], function (_exports, _cartersType, _cartersType2, _cartersType3, _cartersType4) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = cartersInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/bill-parsers/carters-type-1\",0,\"portal/utils/bill-parsers/carters-type-2\",0,\"portal/utils/bill-parsers/carters-type-3\",0,\"portal/utils/bill-parsers/carters-type-4\"eaimeta@70e063a35619d71f\n  // An example invoice\n  // Document Date, Document Number, Type, Your Ref., Contract Number, Address, Status     , Total Value, Outstanding Value, Due Date\n  // 26/03/2018   , TG0744244      , IN  , FREIDLEIB, TG1254349E1    , Taken  , Outstanding, 285.41     , 285.41           , 31/03/2018\n\n  /**\n   * Turns the data from a carters invoice file into the portal domain invoice format.\n   * @param {Array} source - 2D array representing the source csv file.\n   * @returns {Object} - An object with an `invoices` member who's value is an array with one invoice in it.\n   */\n  function cartersInvoiceParser(source) {\n    const isType1 = _cartersType.REQUIRED_HEADERS.every(header => source[0].includes(header));\n    const isType2 = _cartersType2.REQUIRED_HEADERS.every(header => source[0].includes(header));\n    const isType3 = _cartersType3.REQUIRED_HEADERS.every(header => source[0].includes(header));\n    const isType4 = _cartersType4.REQUIRED_HEADERS.every(header => source[0].includes(header));\n    if (isType1) return (0, _cartersType.default)(source);else if (isType2) return (0, _cartersType2.default)(source);else if (isType3) return (0, _cartersType3.default)(source);else if (isType4) return (0, _cartersType4.default)(source);else return {\n      errors: ['Unrecognized format']\n    };\n  }\n});","define(\"portal/utils/bill-parsers/csv\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = csvParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  function csvParser(report) {\n    const invoices = [];\n    let index = 0;\n    do {\n      const {\n        errors,\n        invoice,\n        items,\n        i\n      } = parseInvoice(report, index);\n      if (errors.length) {\n        return {\n          errors\n        };\n      }\n      index = i;\n      invoice.items = items;\n      invoices.push(invoice);\n    } while (index);\n    return {\n      invoices\n    };\n  }\n  function parseInvoice(report, i = 0) {\n    const errors = [];\n    const items = [];\n    const invoice = {\n      source: 'web:generic-csv'\n    };\n\n    // Skip empty rows at top\n    while (i < report.length) {\n      if (rowIsEmpty(report[i])) {\n        i++;\n      } else {\n        break;\n      }\n    }\n\n    // Extract meta\n    if (report[i][0].trim() !== 'Invoice Number') {\n      errors.push(`Invalid file, expected 'Invoice Number' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.number = report[i][1];\n    i++;\n    if (report[i][0].trim() !== 'Invoice Name') {\n      errors.push(`Invalid file, expected 'Invoice Name' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.name = report[i][1];\n    i++;\n    if (report[i][0].trim() !== 'Issuer') {\n      errors.push(`Invalid file, expected 'Issuer' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.issuer = report[i][1];\n    i++;\n    if (report[i][0].trim() !== 'Issue Date') {\n      errors.push(`Invalid file, expected 'Issue Date' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.issueDate = (0, _moment.default)(report[i][1], 'DD-MM-YYYY').toDate();\n    i++;\n    if (report[i][0].trim() !== 'Due Date') {\n      errors.push(`Invalid file, expected 'Due Date' in cell 1 of row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    invoice.dueDate = (0, _moment.default)(report[i][1], 'DD-MM-YYYY').toDate();\n    i++;\n\n    // Check header row\n    if (!report[i] === ['Item Code', 'Item Name', 'Item Quantity', 'Item Unit Price']) {\n      errors.push(`Expected the headers 'Item Code, Item Name, Item Quantity, Item Unit Price' at row ${i + 1}`);\n      return {\n        errors\n      };\n    }\n    i++;\n    while (i < report.length) {\n      if (report[i][0] === 'Invoice Number' || rowIsEmpty(report[i])) {\n        return {\n          errors,\n          invoice,\n          items,\n          i\n        };\n      }\n      const newItem = {\n        productCode: report[i][0],\n        name: report[i][1],\n        quantity: Number(report[i][2]),\n        unitPrice: Number(report[i][3])\n      };\n      if (isNaN(newItem.quantity) || newItem.quantity == null) {\n        errors.push(`Item Quantity on row ${i + 1} could not be parsed`);\n        return {\n          errors\n        };\n      }\n      if (isNaN(newItem.unitPrice) || newItem.unitPrice == null) {\n        errors.push(`Item Unit Price on row ${i + 1} could not be parsed`);\n        return {\n          errors\n        };\n      }\n      items.push(newItem);\n      i++;\n    }\n    return {\n      errors,\n      invoice,\n      items\n    };\n  }\n  function rowIsEmpty(row) {\n    for (var i = 0; i < row.length; i++) {\n      if (row[i]) return false;\n    }\n    return true;\n  }\n});","define(\"portal/utils/bill-parsers/itm\", [\"exports\", \"lodash\"], function (_exports, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = itmInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"lodash\"eaimeta@70e063a35619d71f\n  const FOOTER_ROW_NAMES = ['Subtotal', 'GST', 'Total'];\n  const COLUMN_NAMES = ['Item Code', 'Description', 'Qty Ordered', 'Qty Backordred', 'Qty Supplied', 'Unit Price', 'Extended'];\n  function itmInvoiceParser(report) {\n    const items = [];\n    let invoice = {\n      source: 'web:itm'\n    };\n    const errors = [];\n    if (!report.length) {\n      errors.push('This file appears to be empty');\n      return {\n        items,\n        invoice,\n        errors\n      };\n    }\n    invoice = {\n      reference: report[0][0],\n      // issueDate: couldnt find this on the csv\n      total: report[report.length - 1][6]\n    };\n    if (!report[0] || !report[0].length) {\n      errors.push('Wrong format, no quote title found in cell 1,1');\n    }\n    if (!report[1] || !report[1].length) {\n      errors.push('Wrong format, no headers found on line 2');\n    }\n    const headerRow = report[1].map(cell => cell.trim());\n\n    // Check that all the headers are in the right place\n    if (!_lodash.default.isEqual(headerRow, COLUMN_NAMES)) {\n      errors.push('Wrong format, missing or incorrect coloum descriptions on line 2');\n    }\n\n    // Extract main body of report\n    // Native filter rather than Ember's reject: this module is reached without\n    // the application having booted, and the array prototype extensions are not\n    // installed until it has.\n    const trimmedReport = report.slice(2).filter(row => {\n      const hasFooterLabel = FOOTER_ROW_NAMES.includes(row[0]);\n      const hasNoContent = row.slice(1, 5).filter(cell => cell !== '').length === 0;\n      return !(hasFooterLabel && hasNoContent);\n    });\n    trimmedReport.forEach((row, i) => {\n      const thisRowsQuantity = parseInt(row[6], 10);\n\n      // Skip rows that do not have a quantity as they are likely to be NOTE rows\n      if (!thisRowsQuantity) return;\n      if (!row[0].trim()) {\n        errors.push(`Cell 1, line ${i + 3} must not be empty`);\n      }\n      if (!row[1].trim()) {\n        errors.push(`Cell 2, line ${i + 3} must not be empty`);\n      }\n      for (let index = 2; index < 6; index++) {\n        if (isNaN(row[index])) {\n          errors.push(`Cell ` + index + `, line ${i + 3} must be a number`);\n        }\n      }\n      const item = {\n        productCode: row[0],\n        description: row[1],\n        quantity: row[2],\n        unitPrice: row[5]\n      };\n      items.push(item);\n    });\n    return {\n      items,\n      invoice,\n      errors\n    };\n  }\n});","define(\"portal/utils/bill-parsers/mitre\", [\"exports\", \"moment\", \"lodash\", \"portal/utils/parse-currency-string\"], function (_exports, _moment, _lodash, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = mitreInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"lodash\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  const ITEM_HEADERS_OLD = ['Invoice number', 'Date', 'Type', 'Order reference', 'SKU', 'Product title', 'Quantity', 'Unit Rate', 'Sub total'];\n  const ITEM_HEADERS = ['Invoice Reference', 'Document Type', 'Created Date', 'Due Date', 'Order Number', 'Store Code', 'Store Name', 'Job', 'Docket Number', 'Customer Reference', 'SKU', 'Product Title', 'UOM', 'Quantity', 'Unit Rate', 'Sub Total', 'GST', 'Total'];\n\n  /**\n   * Checks that the number is valid, if so returns the number or zero\n   * @param {String} input - A string that is a plain number\n   * @returns {Number} - The string turned into a number or zero\n   */\n  const extractNumber = input => {\n    const parsedNumber = (0, _parseCurrencyString.default)(input);\n    return isNaN(parsedNumber) ? 0 : Number(parsedNumber);\n  };\n  /**\n   * Creates invoice item from csv line\n   * @param {Array} line - an array following Mitre 10 specification for invoice\n   * @returns {Object} - An object with fields required for an invoice item\n   */\n  const createItemFromOldFormat = line => {\n    const quantity = extractNumber(line[6]);\n    const subtotal = extractNumber(line[8]);\n    const unitPrice = subtotal / (quantity || Infinity);\n    return {\n      description: line[5],\n      productCode: line[4],\n      quantity,\n      unitPrice\n    };\n  };\n\n  /**\n   * Creates invoice from csv line\n   * @param {Array} line - an array following Mitre 10 specification for invoice\n   * @returns {Object} - An object with fields required for an invoice\n   */\n  const createInvoiceFromOldFormat = line => {\n    const yearLength = line[1].split('/')[2].length;\n    if (yearLength !== 2 && yearLength !== 4) {\n      throw new Error('Your invoice has an invalid date format. The format must either be DD/MM/YY or DD/MM/YYYY.');\n    }\n    const dateFormat = 'DD/MM/' + 'Y'.repeat(yearLength);\n    return {\n      reference: line[3],\n      billNumber: line[0],\n      issuer: 'Mitre 10',\n      issueDate: new Date(),\n      dueDate: (0, _moment.default)(line[1], dateFormat).toDate(),\n      items: [],\n      source: 'web:mitre'\n    };\n  };\n\n  /**\n   * Creates invoice item from csv line\n   * @param {Array} line - an array following Mitre 10 specification for invoice\n   * @returns {Object} - An object with fields required for an invoice item\n   */\n  const createItem = line => {\n    const quantity = extractNumber(line[13]);\n    const unitPrice = extractNumber(line[14]);\n    return {\n      description: line[11],\n      productCode: line[10],\n      quantity,\n      unitPrice\n    };\n  };\n\n  /**\n   * Creates invoice from csv line\n   * @param {Array} line - an array following Mitre 10 specification for invoice\n   * @returns {Object} - An object with fields required for an invoice\n   */\n  const createInvoice = line => {\n    const createdDateStr = line[2];\n    const dueDateStr = line[3];\n    return {\n      billNumber: line[0],\n      reference: line[9],\n      issuer: 'Mitre 10',\n      issueDate: createdDateStr ? (0, _moment.default)(createdDateStr, 'DD/MM/YYYY').toDate() : new Date(),\n      dueDate: (0, _moment.default)(dueDateStr, 'DD/MM/YYYY').toDate(),\n      items: [],\n      source: 'web:mitre'\n    };\n  };\n  function mitreInvoiceParser(source) {\n    try {\n      const headerLine = source[0] || [];\n      const newFormatHeaderColumns = ['Store Code', 'Document Type', 'Invoice Reference', 'Docket Number'];\n      const isNewFormat = headerLine.length === ITEM_HEADERS.length || headerLine.some(column => newFormatHeaderColumns.includes(column));\n      const HEADERS = isNewFormat ? ITEM_HEADERS : ITEM_HEADERS_OLD;\n      const linesWithErrors = [];\n      source.forEach((line, i) => {\n        if (line.length !== HEADERS.length) {\n          linesWithErrors.push(i + 1);\n        }\n      });\n      if (linesWithErrors.length) {\n        return {\n          errors: [`Incorrect format, expected line/s ${linesWithErrors} to have the following information: ${HEADERS.join(',')}`]\n        };\n      }\n\n      /*\n          The first interesting line is after the header\n          so we delete it if found.\n      */\n      const hasHeaderRow = _lodash.default.isEqual(source[0], HEADERS);\n      if (hasHeaderRow) source.shift();\n      const invoices = [];\n      source.forEach((row, i) => {\n        try {\n          const matchInvoice = invoice => invoice.billNumber === row[0];\n\n          // Find or create the invoice that the row belongs to\n          const invoiceExists = invoices.some(matchInvoice);\n          let invoice = invoices.find(matchInvoice);\n          if (!invoiceExists) {\n            invoice = isNewFormat ? createInvoice(row) : createInvoiceFromOldFormat(row);\n            invoices.push(invoice);\n          }\n          const item = isNewFormat ? createItem(row) : createItemFromOldFormat(row);\n          // Create an item and add it to the invoice\n          invoice.items.push(item);\n        } catch (error) {\n          throw new Error(`Error on line ${i + 1}: ${error.message}`);\n        }\n      });\n      return {\n        invoices\n      };\n    } catch (error) {\n      return {\n        errors: [error.message]\n      };\n    }\n  }\n});","define(\"portal/utils/bill-parsers/placemakers\", [\"exports\", \"moment\", \"portal/utils/bill-parsers/xero\"], function (_exports, _moment, _xero) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = placemakersInvoiceParser;\n  0; //eaimeta@70e063a35619d71f0,\"moment\",0,\"portal/utils/bill-parsers/xero\"eaimeta@70e063a35619d71f\n  const INVOICE_HEADERS = ['H',\n  // 0\n  'Branch',\n  // 1\n  'Branch Name',\n  // 2\n  'Parent Account',\n  // 3\n  'Account Code',\n  // 4\n  'Customer Name',\n  // 5\n  'Date',\n  // 6\n  'Customer Order Number',\n  // 7\n  'Transaction number',\n  // 8\n  'Transaction type (IN/CR)',\n  // 9\n  'Packing Slip Number',\n  // 10\n  'Freight Amount(excl GST)',\n  // 11\n  'Total including GST',\n  // 12\n  'GST Total' // 13\n  ];\n  const ITEM_HEADERS = ['D',\n  // 0\n  'Line number',\n  // 1\n  'Product Code (Suppliers)',\n  // 2\n  'Description',\n  // 3\n  'Qty Supplied',\n  // 4\n  'Unit',\n  // 5\n  'Unit Rate',\n  // 6\n  'Extended Line Total (excluding GST)',\n  // 7\n  'GST Rate %',\n  // 8\n  'GST Amount' // 9\n  ];\n  function placemakersInvoiceParser(source) {\n    let parser;\n    // Check we are dealing with the original expected format.\n    if (INVOICE_HEADERS.every((h, i) => h === source[0][i])) {\n      if (ITEM_HEADERS.some((h, i) => h !== source[1][i])) {\n        return {\n          errors: [`Incorrect headers, expected line 2 to be ${ITEM_HEADERS.join(',')}`]\n        };\n      }\n      parser = placemakersParser;\n\n      // We could also be dealing with a Xero Style format.\n    } else if (_xero.REQUIRED_HEADERS.every(h => source[0].includes(h))) {\n      parser = _xero.default;\n\n      // Throw an error if we cannot match a format.\n    } else {\n      return {\n        errors: [`Incorrect headers, expected line 1 to be ${INVOICE_HEADERS.join(',')}`]\n      };\n    }\n    const parsedInvoices = parser(source);\n\n    // if the parser was xero search the invoice items for a reference line\n    if (parser === _xero.default) parsedInvoices.invoices = parsePlacemakersXeroInvoiceItemsForReference(parsedInvoices.invoices);\n    return parsedInvoices;\n  }\n  function parsePlacemakersXeroInvoiceItemsForReference(invoices) {\n    return invoices.map(invoice => {\n      // if the invoice already has a reference, don't bother checking the items\n      if (invoice.reference) return invoice;\n      const referenceLineIndex = invoice.items.findIndex(item => item.description?.toLowerCase().includes('reference:'));\n      // if a reference line is found proceed in pulling the reference from it and setting it to the invoice\n      if (referenceLineIndex >= 0) {\n        const [referenceLine] = invoice.items.splice(referenceLineIndex, 1);\n        const reference = referenceLine.description.split(':').slice(1).join(':').trim();\n        invoice.reference = reference;\n      }\n      return invoice;\n    });\n  }\n  function placemakersParser(source) {\n    // The first interesting line is 2 so start the counter 1 earlier than that.\n    let lineNumber = 1;\n    let lineKey = source[lineNumber][0];\n    function updateLine() {\n      lineNumber++;\n      lineKey = source[lineNumber][0];\n    }\n    const newInvoices = [];\n    while (lineNumber < source.length - 1) {\n      // Update line number first so that when the while condition hits the last line,\n      // it can stop and the last line has already been read. Prevents array out of bounds.\n      updateLine();\n      if (lineKey === 'H') {\n        // Create new invoice and add to new invoices.\n        newInvoices.push(createInvoiceFromHeaderLine(source[lineNumber], lineNumber));\n      }\n      if (lineKey === 'D') {\n        // Create new item and add to last invoice.\n        newInvoices[newInvoices.length - 1].items.push(createItemFromLine(source[lineNumber], lineNumber));\n      }\n    }\n    return {\n      invoices: newInvoices\n    };\n  }\n  function extractNumber(input) {\n    return isNaN(input) ? 0 : Number(input);\n  }\n  function createItemFromLine(line) {\n    return {\n      description: line[3],\n      productCode: line[2],\n      quantity: extractNumber(line[4]),\n      unitPrice: extractNumber(line[6])\n    };\n  }\n  function createInvoiceFromHeaderLine(line) {\n    const yearLength = line[6].split('/')[2].length;\n    if (yearLength !== 2 && yearLength !== 4) {\n      throw new Error('Your invoice has an invalid date format. The format must either be DD/MM/YY or DD/MM/YYYY.');\n    }\n    const dateFormat = 'DD/MM/' + 'Y'.repeat(yearLength);\n    return {\n      reference: line[7],\n      billNumber: line[8],\n      issuer: `PlaceMakers ${line[2]}`,\n      issueDate: (0, _moment.default)(line[6], dateFormat).toDate(),\n      dueDate: (0, _moment.default)(line[14], dateFormat).toDate(),\n      items: [],\n      source: 'web:placemakers'\n    };\n  }\n});","define(\"portal/utils/bill-parsers/xero\", [\"exports\", \"portal/utils/find-date\"], function (_exports, _findDate) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.REQUIRED_HEADERS = void 0;\n  _exports.default = xeroInvoiceParser;\n  _exports.getUnitPriceWithDiscount = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/find-date\"eaimeta@70e063a35619d71f\n  const REQUIRED_HEADERS = _exports.REQUIRED_HEADERS = ['ContactName', 'InvoiceNumber', 'InvoiceDate', 'DueDate', 'Description', 'Quantity', 'UnitAmount'];\n  function xeroInvoiceParser(source) {\n    // Check we are dealing with the expected format.\n    const missingHeader = REQUIRED_HEADERS.find(h => !source[0].includes(h));\n    if (missingHeader) return {\n      errors: [`Incorrect headers, expected line 1 to contain '${missingHeader}'`]\n    };\n    const columnKeys = source[0].reduce((indices, h, index) => Object.assign({}, indices, {\n      [h]: index\n    }), {});\n\n    // The first interesting line is 2 so start the counter 1 earlier than that.\n    let lineNumber = 0;\n    let lineKey = source[lineNumber][columnKeys.InvoiceNumber];\n    function updateLine() {\n      lineNumber++;\n      lineKey = createIdentifier(source[lineNumber][columnKeys.InvoiceNumber], source[lineNumber][columnKeys.ContactName]);\n    }\n    function matchInvoice(invoice) {\n      return createIdentifier(invoice.billNumber, invoice.issuer) === lineKey;\n    }\n    function createIdentifier(billNumber, issuer) {\n      return billNumber + ':::' + issuer;\n    }\n    const newInvoices = [];\n    while (lineNumber < source.length - 1) {\n      // Update line number first so that when the while condition hits the last line,\n      // it can stop and the last line has already been read. Prevents array out of bounds.\n      updateLine();\n      const lineInvoice = newInvoices.find(matchInvoice);\n      if (lineInvoice) {\n        // Create new invoice and add to new invoices.\n        lineInvoice.items.push(createItemFromLine(source[lineNumber], columnKeys));\n      } else {\n        newInvoices.push(createInvoiceFromHeaderLine(source[lineNumber], columnKeys));\n        newInvoices.find(matchInvoice).items.push(createItemFromLine(source[lineNumber], columnKeys));\n      }\n    }\n    return {\n      invoices: newInvoices\n    };\n  }\n  function extractNumber(input) {\n    return isNaN(input) ? 0 : Number(input);\n  }\n  const getUnitPriceWithDiscount = (unitPrice, discount) => (100 - discount) / 100 * unitPrice;\n  _exports.getUnitPriceWithDiscount = getUnitPriceWithDiscount;\n  function createItemFromLine(line, columnKeys) {\n    const unitPrice = extractNumber(line[columnKeys.UnitAmount]);\n    const discount = extractNumber(line[columnKeys.Discount]);\n    const unitPriceWithDiscount = getUnitPriceWithDiscount(unitPrice, discount);\n    return {\n      description: line[columnKeys.Description],\n      productCode: line[columnKeys.InventoryItemCode] || null,\n      quantity: extractNumber(line[columnKeys.Quantity]),\n      unitPrice: unitPriceWithDiscount\n    };\n  }\n  function createInvoiceFromHeaderLine(line, columnKeys) {\n    return {\n      reference: line[columnKeys.Reference],\n      billNumber: line[columnKeys.InvoiceNumber],\n      issuer: line[columnKeys.ContactName],\n      issueDate: (0, _findDate.default)(line[columnKeys.InvoiceDate], 'DD/MM/YYYY'),\n      dueDate: (0, _findDate.default)(line[columnKeys.DueDate], 'DD/MM/YYYY'),\n      items: [],\n      source: 'web:xero'\n    };\n  }\n});","define(\"portal/utils/bunnings-bill-csv-normalizer\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.NORMALIZED_BUNNINGS_HEADERS = void 0;\n  _exports.default = normalizeBunningsBillCsv;\n  _exports.isBunningsBillCsv = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  const NORMALIZED_BUNNINGS_HEADERS = _exports.NORMALIZED_BUNNINGS_HEADERS = ['Invoice Number', 'Issue Date', 'Due Date', 'Customer Reference', 'Code', 'Description', 'Unit Price', 'Quantity'];\n  const isBunningsBillCsv = (csv = []) => {\n    const rowTypes = csv.map(row => String(row[0]));\n    return rowTypes[0] === '10' && rowTypes.includes('20') && rowTypes.includes('30');\n  };\n  _exports.isBunningsBillCsv = isBunningsBillCsv;\n  function normalizeBunningsBillCsv(csv = []) {\n    if (!isBunningsBillCsv(csv)) return csv;\n    const normalizedRows = [NORMALIZED_BUNNINGS_HEADERS];\n    let currentBill = null;\n    csv.forEach(row => {\n      // means this is header of invoice\n      if (String(row[0]) === '10') {\n        const issueDate = (0, _moment.default)(row[3], 'DD/MM/YYYY');\n        currentBill = {\n          invoiceNumber: row[4],\n          issueDate: row[3],\n          dueDate: issueDate.add(1, 'month').set('date', 20).format('DD/MM/YYYY'),\n          reference: [row[5], row[6], row[7]].filter(Boolean).join(' - ')\n        };\n        return;\n      }\n\n      // 20 means invoice item row, if it is not invoice item row skip it\n      if (String(row[0]) !== '20' || !currentBill) return;\n      normalizedRows.push([currentBill.invoiceNumber, currentBill.issueDate, currentBill.dueDate, currentBill.reference, row[1], row[2], row[7], row[4]]);\n    });\n    return normalizedRows;\n  }\n});","define(\"portal/utils/calc-map-balance\", [\"exports\", \"@ember/array\", \"@ember/utils\", \"@ember/object\"], function (_exports, _array, _utils, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = calcMapBalance;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\",0,\"@ember/utils\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function calcMapBalance(map, balances, account = (0, _object.get)(map, 'account')) {\n    const step = (0, _object.get)(map, 'step');\n    const drCrCorrection = (0, _object.get)(account, 'debitCredit') === 'DEBIT' ? 1 : -1;\n    const invertCorrection = (0, _object.get)(map, 'inverted') ? -1 : 1;\n    const periodic = (0, _object.get)(account, 'periodic') || step === 'profit-and-loss';\n    let balance;\n    if ((0, _array.isArray)(balances)) {\n      balance = balances.findBy('externalId', (0, _object.get)(map, 'externalId'));\n    } else {\n      balance = balances;\n    }\n    if ((0, _utils.isEmpty)(balance)) {\n      return null;\n    }\n    const {\n      period,\n      ytd,\n      periodDebit,\n      periodCredit,\n      ytdDebit,\n      ytdCredit\n    } = balance;\n\n    // Single value\n    if (periodic ? period != null : ytd != null) {\n      return invertCorrection * (periodic ? period : ytd);\n    }\n\n    // Period value\n    if (periodic ? periodDebit != null : ytdDebit != null) {\n      return invertCorrection * drCrCorrection * (periodic ? periodDebit : ytdDebit);\n    }\n\n    // Credit value\n    if (periodic ? periodCredit != null : ytdCredit != null) {\n      return invertCorrection * drCrCorrection * -(periodic ? periodCredit : ytdCredit);\n    }\n  }\n});","define(\"portal/utils/collection-to-array\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = collectionToArray;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function collectionToArray(collection) {\n    if (!collection) return [];\n    if (Array.isArray(collection)) return collection;\n    if (typeof collection.toArray === 'function') {\n      return collection.toArray();\n    }\n    if (collection.content) {\n      return collectionToArray(collection.content);\n    }\n    if (typeof collection.value === 'function') {\n      return collectionToArray(collection.value());\n    }\n    if (typeof collection[Symbol.iterator] === 'function') {\n      return Array.from(collection);\n    }\n    if (typeof collection.length === 'number') {\n      return Array.from(collection);\n    }\n    return [];\n  }\n});","define(\"portal/utils/computed\", [\"exports\", \"@ember/object\", \"portal/utils/sums\"], function (_exports, _object, _sums) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.dividedBy = dividedBy;\n  _exports.sum = sum;\n  _exports.sumBy = sumBy;\n  _exports.sumByProducts = sumByProducts;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/sums\"eaimeta@70e063a35619d71f\n  const {\n    sum: _sum,\n    sumBy: _sumBy,\n    sumByProducts: _sumByProducts\n  } = _sums.default;\n  function sum(...keys) {\n    return (0, _object.computed)(...keys, function () {\n      return _sum(this, ...keys);\n    });\n  }\n  function sumBy(arrayStr, keyStr) {\n    return (0, _object.computed)(`${arrayStr}.@each.${keyStr}`, function () {\n      return _sumBy((0, _object.get)(this, arrayStr), keyStr);\n    });\n  }\n  function sumByProducts(arrayStr, ...keys) {\n    return (0, _object.computed)(`${arrayStr}.@each.{${keys.join(',')}}`, function () {\n      return _sumByProducts((0, _object.get)(this, arrayStr), ...keys);\n    });\n  }\n  function dividedBy(numeratorKey, denominatorKey) {\n    return (0, _object.computed)(numeratorKey, denominatorKey, function () {\n      if (!(0, _object.get)(this, denominatorKey)) return 0;\n      return (0, _object.get)(this, numeratorKey) / (0, _object.get)(this, denominatorKey);\n    });\n  }\n});","define(\"portal/utils/crystal-csv-generator\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.generateCrystalCSV = generateCrystalCSV;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  // Headings used in this Crystal CSV format\n  const headings = ['Employee ID', 'Date', 'Action Type', 'Hours', 'Payrate'];\n\n  /**\n   * Takes worker details, payrate and totals over a period of days and returns a 2D array\n   * @param {Array} workers - An array of objects with worker names, totals and payrates\n   * @param {Array} days - An array of report days\n   * @returns {Array} - A 2D array representation of the Crystal CSV format\n   */\n  function generateCrystalCSV(workers = [], days = []) {\n    const formattedDays = days.map(d => (0, _moment.default)(d).format('DD/MM/YYYY'));\n    const table = [headings];\n    workers.forEach(({\n      fullName,\n      totals\n    }) => {\n      // Calculate the work done by the worker over the whole period.\n      // if no work has been done, we can exit early\n      if (!totals.some(totalObj => totalObj.totalHours > 0)) return;\n      totals.forEach((totalObj, i) => {\n        const total = totalObj.totalHours;\n\n        // only care about days where a total exists\n        // cannot use filter on array because we need the array index\n        if (total > 0) {\n          const date = formattedDays[i];\n          const row = [fullName, date, 'ord', total, 0 // Omit pay rate as it is ignored by Crystal anyway\n          ];\n          table.push(row);\n        }\n      });\n    });\n    return table;\n  }\n});","define(\"portal/utils/csv-builder\", [\"exports\", \"@ember/object\", \"portal/utils/sanitize-filename\"], function (_exports, _object, _sanitizeFilename) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = buildCSV;\n  _exports.downloadCSV = downloadCSV;\n  _exports.downloadCSVCrystal = downloadCSVCrystal;\n  _exports.downloadXlsx = downloadXlsx;\n  _exports.generateCSVBlob = generateCSVBlob;\n  _exports.generateDataRows = generateDataRows;\n  _exports.generateHeaderRows = generateHeaderRows;\n  _exports.generateMetaDataRows = generateMetaDataRows;\n  _exports.toCSV = toCSV;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/sanitize-filename\"eaimeta@70e063a35619d71f\n  function buildCSV(meta, orderedEntities, metricsSortedByEntity) {\n    const rows = [\n    // generates metadata about the report, when it was created and by whom\n    ...generateMetaDataRows(meta),\n    // generates all the table headers to the document.\n    ...generateHeaderRows(orderedEntities),\n    // adds in page data\n    ...generateDataRows(metricsSortedByEntity)];\n    return rows;\n  }\n\n  /**\n   * Transforms a 2d array into a CSV string. Values of\n   * @param {Array.[]} rows - Array to be used.\n   * @returns {String} A CSV string\n   */\n  function toCSV(rows, {\n    quoteValues = true\n  } = {}) {\n    const rowsAsStrings = rows.map(row => {\n      const joiner = quoteValues ? '\",\"' : ',';\n      const rowAsText = row.join(joiner);\n      const textWithoutNewLines = rowAsText.replaceAll(/\\r\\n|\\r|\\n|\\x0B|\\x0C|\\u0085|\\u2028|\\u2029/gm, ' '); // eslint-disable-line no-control-regex\n\n      return quoteValues ? `\"${textWithoutNewLines}\"` : textWithoutNewLines;\n    });\n    return rowsAsStrings.join('\\n');\n  }\n\n  /**\n   * Generates metadata for the report.\n   * @param {Object} meta - Metadata to be used in the report.\n   * @param {String} meta.entityName - The name of the entity that is the focus of the report.\n   * @param {String} meta.userEmail - The email of the user generating the report.\n   * @param {String} meta.category - The account category included.\n   * @return {Array} A 2d array that represents the metadata for the report.\n   */\n  function generateMetaDataRows(meta) {\n    return [['Report for:', (0, _object.get)(meta, 'entityName')], ['Report period:', (0, _object.get)(meta, 'period')], ['Created on:', Date()], ['Created by:', (0, _object.get)(meta, 'userEmail')], ['Accounts category:', (0, _object.get)(meta, 'category')],\n    // Excel will ignore the empty line unless it has at least one comma in it.\n    ['', '']];\n  }\n\n  /**\n   * Creates an array containing the headers for the report.\n   * @param {Object.[]} entities - Objects containing the names of the entities / groups to be included.\n   * @return {Array} rows - An array where each item in the array represents a row.\n   */\n  function generateHeaderRows(entities) {\n    return [\n    // Build a header row for entity / group names.\n    entities.reduce((total, entity) => [...total, (0, _object.get)(entity, 'name'), ''], ['Entity Name']),\n    // Build a subheader row for Month / YTD labels\n    entities.reduce(total => [...total, 'Month', 'YTD'], ['Account Name'])];\n  }\n\n  /**\n   * Converts an nested set of accounts into a 2d array for output to csv.\n   * @param  {Array} nestedReport - A tree where each node is an object that contains the\n   * name of the account and an array for the report values.\n   * @param {Number} depth - Keeps track of how deep the recursion goes. Does not need to be passed in.\n   * @return {Array} rows - A 2d array that represents the nested report data as a flat table.\n   */\n  function generateDataRows(nestedReport, depth = 0) {\n    let rows = [];\n    nestedReport.forEach(lineData => {\n      // Indent the account name by 4 spaces times its depth.\n      const name = `${'    '.repeat(depth)}${(0, _object.get)(lineData, 'name')}`;\n\n      // If the account has children, then rows for the children need to be created as well.\n      if ((0, _object.get)(lineData, 'children.length')) {\n        // Add a row that names the parent account but is otherwise empty\n        rows.push([name]);\n\n        // Recursively call this function to add rows for the child accounts.\n        rows = rows.concat(generateDataRows((0, _object.get)(lineData, 'children'), depth + 1));\n\n        // Add a total row for the parent account\n        rows.push([`${'    '.repeat(depth)}Total ${lineData.name}`, ...extractReportValues(lineData)]);\n      } else {\n        // Add a row for the account\n        rows.push([name, ...extractReportValues(lineData)]);\n      }\n    });\n    return rows;\n  }\n  function generateCSVBlob(csv, {\n    includeBOM = true\n  } = {}) {\n    // '\\uFEFF' fixes Excel opening csv with wrong encoding; https://github.com/eligrey/FileSaver.js/issues/28#issue-15333709\n    const parsedCsv = includeBOM ? '\\uFEFF' + toCSV(csv) : toCSV(csv);\n    const blob = new Blob([parsedCsv], {\n      type: 'text/csv;charset=UTF-8;'\n    });\n    return blob;\n  }\n\n  /**\n   * Creates downloadable csv\n   * @param   {Array}   csv      - csv array.\n   * @param   {String}  fileName - The desired file name.\n   * @param   {Object}  options  - Options are includeBOM, and quoteValues\n   * @returns {null}             - Returns nothing.\n   */\n  function downloadCSV(csv, _fileName, {\n    includeBOM = true,\n    quoteValues = true\n  } = {}) {\n    const fileName = (0, _sanitizeFilename.default)(_fileName);\n\n    // '\\uFEFF' fixes Excel opening csv with wrong encoding; https://github.com/eligrey/FileSaver.js/issues/28#issue-15333709\n    const parsedCsv = includeBOM ? '\\uFEFF' + toCSV(csv, {\n      quoteValues\n    }) : toCSV(csv, {\n      quoteValues\n    });\n    const blob = new Blob([parsedCsv], {\n      type: 'text/csv;charset=UTF-8;'\n    });\n    if (window.navigator.msSaveOrOpenBlob) {\n      // IE hack; see http://msdn.microsoft.com/en-us/library/ie/hh779016.aspx\n      window.navigator.msSaveBlob(blob, fileName);\n    } else {\n      const a = document.createElement('a');\n      a.href = window.URL.createObjectURL(blob);\n      a.download = fileName;\n\n      // Trigger a click event which will start the native download process.\n      document.body.appendChild(a);\n      a.click();\n      document.body.removeChild(a);\n    }\n  }\n  function downloadXlsx(blob, _fileName) {\n    const fileName = (0, _sanitizeFilename.default)(_fileName);\n    if (window.navigator.msSaveOrOpenBlob) {\n      // IE hack; see http://msdn.microsoft.com/en-us/library/ie/hh779016.aspx\n      window.navigator.msSaveBlob(blob, fileName);\n    } else {\n      const a = document.createElement('a');\n      a.href = window.URL.createObjectURL(blob);\n      a.download = fileName;\n\n      // Triger a click event which will start the native download process.\n      document.body.appendChild(a);\n      a.click();\n      document.body.removeChild(a);\n    }\n  }\n\n  /**\n   * This implements the same API as downloadCSV but uses UNICODE and windows style line endings as required by Crystal Payroll\n   * @param   {Array}  csv\n   * @param   {String} fileName\n   * @returns {null}\n   */\n  function downloadCSVCrystal(csv, _fileName) {\n    const fileName = (0, _sanitizeFilename.default)(_fileName);\n\n    // This CSV string has windows style line endings and no quotes around the values\n    const csvAsString = csv.map(row => `${row.join(',')}`).join('\\r\\n');\n    const blob = new Blob([csvAsString], {\n      type: 'text/csv;charset=UTF-8;'\n    });\n    if (window.navigator.msSaveOrOpenBlob) {\n      // IE hack; see http://msdn.microsoft.com/en-us/library/ie/hh779016.aspx\n      window.navigator.msSaveBlob(blob, fileName);\n    } else {\n      const a = document.createElement('a');\n      a.href = window.URL.createObjectURL(blob);\n      a.download = fileName;\n\n      // Triger a click event which will start the native download process.\n      document.body.appendChild(a);\n      a.click();\n      document.body.removeChild(a);\n    }\n  }\n\n  /**\n   * Ectracts values from a line in the nested report and turns it into a flat array.\n   * @param  {Array} reportLine - An object containing a data variable to be extracted.\n   * @return {Array} values - An array of data values.\n   */\n  function extractReportValues(reportLine) {\n    return (0, _object.get)(reportLine, 'data').reduce((total, data = {}) => {\n      const month = (0, _object.get)(data, 'month') || (0, _object.get)(data, 'periods.0.periodTypes.month.value');\n      const ytd = (0, _object.get)(data, 'ytd') || (0, _object.get)(data, 'periods.0.periodTypes.ytd.value');\n\n      // Only use the values if they are valid numbers.\n      // Call anything less than a 1,000,000th, zero.\n      return [...total, isNaN(month) || Math.abs(month) < 0.000001 ? 0 : month, isNaN(ytd) || Math.abs(ytd) < 0.000001 ? 0 : ytd];\n    }, []);\n  }\n});","define(\"portal/utils/deprecation-filter\", [\"exports\", \"@ember/debug\", \"portal/config/environment\"], function (_exports, _debug, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.deprecationTally = deprecationTally;\n  _exports.installDeprecationFilter = installDeprecationFilter;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  // Ember re-fires the same deprecation on every render and every request, and\n  // LOG_STACKTRACE_ON_DEPRECATION prints a full stack for each one — thousands of\n  // stack captures per page, which is enough to make dev noticeably slow. Log the\n  // first occurrence of each id and tally the rest silently: the signal is what\n  // fires, not how often, and one stack per id locates the source better than\n  // thousands of duplicates. Call `deprecationTally()` for the counts.\n  //\n  // Not in `test`, where every occurrence has to keep flowing down the handler\n  // chain — tests/smoke/deprecation-report.js tallies from there, and deduping\n  // here would flatten every count to 1.\n  const DEDUPE = _environment.default.environment !== 'test';\n  const SEEN = new Map();\n\n  // The app installs this from an initializer, which only runs once something\n  // boots the app — which unit and integration tests never do, so for most of the\n  // suite the filter was absent and every deprecation went to Ember's default\n  // handler. tests/test-helper.js installs it directly to cover them, so this\n  // guard keeps the app's own boot from registering a second copy.\n  let installed = false;\n  function deprecationTally() {\n    return [...SEEN.entries()].sort((a, b) => b[1] - a[1]);\n  }\n  function installDeprecationFilter() {\n    if (installed) return;\n    installed = true;\n    (0, _debug.registerDeprecationHandler)((message, options, next) => {\n      const untilMajor = Number.parseInt(options?.until, 10);\n\n      // Show deprecations that must be resolved before upgrading to Ember 6.\n      // Anything with `until: 7.0` or later stays silenced — Ember 7 is not on\n      // the roadmap yet, and those warnings would drown out the ones that are.\n      // WarpDrive's `until` is a package version (\"@warp-drive/core 6.0\"), which\n      // parses as NaN and is silenced with them.\n      if (!Number.isFinite(untilMajor) || untilMajor > 6) {\n        return;\n      }\n      const id = options?.id ?? 'unknown';\n      const count = (SEEN.get(id) ?? 0) + 1;\n      SEEN.set(id, count);\n      if (!DEDUPE || count === 1) {\n        next(message, options);\n      }\n    });\n  }\n});","define(\"portal/utils/download\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.download = download;\n  _exports.downloadUrl = downloadUrl;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  // eslint-disable-next-line complexity\n  function download(data, strFileName, strMimeType) {\n    const isReactNative = !!window.ReactNativeWebView;\n    if (isReactNative) {\n      // convert Blob to base64 if necessary\n      if (data instanceof Blob) {\n        const reader = new FileReader();\n        reader.onloadend = function () {\n          const base64data = reader.result; // \"data:application/zip;base64,....\"\n          window.ReactNativeWebView.postMessage(JSON.stringify({\n            type: 'DOWNLOAD_BLOB',\n            data: base64data,\n            name: `${strFileName}.zip` || 'download',\n            mimeType: data.type\n          }));\n        };\n        reader.readAsDataURL(data);\n        return;\n      }\n\n      // if already a base64/data URL\n      window.ReactNativeWebView.postMessage(JSON.stringify({\n        type: 'DOWNLOAD_BLOB',\n        data: data,\n        name: strFileName || 'download'\n      }));\n      return;\n    }\n    var self = window; // this script is only for browsers anyway...\n    var defaultMime = 'application/octet-stream'; // this default mime also triggers iframe downloads\n    var mimeType = strMimeType || defaultMime;\n    var payload = data;\n    var url = !strFileName && !strMimeType && payload;\n    var anchor = document.createElement('a');\n    var toString = function (a) {\n      return String(a);\n    };\n    var MyBlob = self.Blob || self.MozBlob || self.WebKitBlob || toString;\n    var fileName = strFileName || 'download';\n    var blob;\n    var reader;\n    MyBlob = MyBlob.call ? MyBlob.bind(self) : Blob;\n    if (String(this) === 'true') {\n      // reverse arguments, allowing download.bind(true, \"text/xml\", \"export.xml\") to act as a callback\n      payload = [payload, mimeType];\n      mimeType = payload[0];\n      payload = payload[1];\n    }\n    if (url && url.length < 2048) {\n      // if no filename and no mime, assume a url was passed as the only argument\n      fileName = url.split('/').pop().split('?')[0];\n      anchor.href = url; // assign href prop to temp anchor\n      if (anchor.href.indexOf(url) !== -1) {\n        // if the browser determines that it's a potentially valid url path:\n        var ajax = new XMLHttpRequest();\n        ajax.open('GET', url, true);\n        ajax.responseType = 'blob';\n        ajax.onload = function (e) {\n          download(e.target.response, fileName, defaultMime);\n        };\n        setTimeout(function () {\n          ajax.send();\n        }, 0); // allows setting custom ajax headers using the return:\n        return ajax;\n      } // end if valid url?\n    } // end if url?\n\n    // go ahead and download dataURLs right away\n    if (/^data:([\\w+-]+\\/[\\w+.-]+)?[,;]/.test(payload)) {\n      if (payload.length > 1024 * 1024 * 1.999 && MyBlob !== toString) {\n        payload = dataUrlToBlob(payload);\n        mimeType = payload.type || defaultMime;\n      } else {\n        return navigator.msSaveBlob // IE10 can't do a[download], only Blobs:\n        ? navigator.msSaveBlob(dataUrlToBlob(payload), fileName) : saver(payload); // everyone else can save dataURLs un-processed\n      }\n    } else if (/([\\x80-\\xff])/.test(payload)) {\n      // not data url, is it a string with special needs?\n      // if (/([\\x80-\\xff])/.test(payload)) {\n      var i = 0;\n      var tempUiArr = new Uint8Array(payload.length);\n      var mx = tempUiArr.length;\n      for (i; i < mx; ++i) tempUiArr[i] = payload.charCodeAt(i);\n      payload = new MyBlob([tempUiArr], {\n        type: mimeType\n      });\n      // }\n    }\n    blob = payload instanceof MyBlob ? payload : new MyBlob([payload], {\n      type: mimeType\n    });\n    function dataUrlToBlob(strUrl) {\n      var parts = strUrl.split(/[:;,]/);\n      var type = parts[1];\n      var indexDecoder = strUrl.indexOf('charset') > 0 ? 3 : 2;\n      var decoder = parts[indexDecoder] === 'base64' ? atob : decodeURIComponent;\n      var binData = decoder(parts.pop());\n      var mx = binData.length;\n      var i = 0;\n      var uiArr = new Uint8Array(mx);\n      for (i; i < mx; ++i) uiArr[i] = binData.charCodeAt(i);\n      return new MyBlob([uiArr], {\n        type: type\n      });\n    }\n    function saver(url, winMode) {\n      if ('download' in anchor) {\n        // html5 A[download]\n        anchor.href = url;\n        anchor.setAttribute('download', fileName);\n        anchor.className = 'download-js-link';\n        anchor.innerHTML = 'downloading...';\n        anchor.style.display = 'none';\n        anchor.addEventListener('click', function (e) {\n          e.stopPropagation();\n          // eslint-disable-next-line no-caller\n          this.removeEventListener('click', arguments.callee);\n        });\n        document.body.appendChild(anchor);\n        setTimeout(function () {\n          anchor.click();\n          document.body.removeChild(anchor);\n          if (winMode === true) {\n            setTimeout(function () {\n              self.URL.revokeObjectURL(anchor.href);\n            }, 250);\n          }\n        }, 66);\n        return true;\n      }\n\n      // handle non-a[download] safari as best we can:\n      if (/(Version)\\/(\\d+)\\.(\\d+)(?:\\.(\\d+))?.*Safari\\//.test(navigator.userAgent)) {\n        if (/^data:/.test(url)) url = 'data:' + url.replace(/^data:([\\w\\/\\-\\+]+)/, defaultMime);\n        if (!window.open(url)) {\n          // popup blocked, offer direct download:\n          // eslint-disable-next-line max-len,no-alert\n          if (confirm('Displaying New Document\\n\\nUse Save As... to download, then click back to return to this page.')) {\n            location.href = url;\n          }\n        }\n        return true;\n      }\n\n      // do iframe dataURL download (old ch+FF):\n      var f = document.createElement('iframe');\n      document.body.appendChild(f);\n      if (!winMode && /^data:/.test(url)) {\n        // force a mime that will download:\n        url = 'data:' + url.replace(/^data:([\\w\\/\\-\\+]+)/, defaultMime);\n      }\n      f.src = url;\n      setTimeout(function () {\n        document.body.removeChild(f);\n      }, 333);\n    } // end saver\n\n    if (navigator.msSaveBlob) {\n      // IE10+ : (has Blob, but not a[download] or URL)\n      return navigator.msSaveBlob(blob, fileName);\n    }\n    if (self.URL) {\n      // simple fast and modern way using Blob and URL:\n      saver(self.URL.createObjectURL(blob), true);\n    } else {\n      // handle non-Blob()+non-URL browsers:\n      if (typeof blob === 'string' || blob.constructor === toString) {\n        try {\n          return saver('data:' + mimeType + ';base64,' + self.btoa(blob));\n        } catch (y) {\n          return saver('data:' + mimeType + ',' + encodeURIComponent(blob));\n        }\n      }\n\n      // Blob but not URL support:\n      reader = new FileReader();\n      reader.onload = function () {\n        saver(this.result);\n      };\n      reader.readAsDataURL(blob);\n    }\n    return true;\n  }\n  function downloadUrl(file) {\n    const isReactNative = !!window.ReactNativeWebView;\n    if (isReactNative) {\n      window.ReactNativeWebView.postMessage(JSON.stringify({\n        type: 'DOWNLOAD_URL',\n        url: file.href,\n        name: file.name\n      }));\n    } else {\n      const a = document.createElement('a');\n      a.download = file.name;\n      a.rel = 'noopener noreferrer'; // tabnabbing\n      a.target = '_blank';\n      a.href = file.href;\n      a.style.display = 'none';\n      a.click();\n      a.remove();\n    }\n  }\n});","define(\"portal/utils/duration-input\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.formatDuration = formatDuration;\n  _exports.parseDuration = parseDuration;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function formatDuration([duration], options = {}) {\n    const {\n      abs,\n      emptyPlaceholder = ''\n    } = options;\n    const total = isNaN(duration) ? 0 : abs ? Math.abs(Number(duration)) : Number(duration);\n    let minutes = String(Math.abs(Math.round(total % 1 * 60)));\n    let hours = Math[total > 0 ? 'floor' : 'ceil'](total);\n    if (minutes.length < 2) {\n      minutes = '0' + minutes;\n    }\n\n    // Floating point errors\n    if (minutes.length > 2) {\n      minutes = minutes.substring(0, 2);\n    }\n    if (minutes === '60') {\n      hours = String(hours + 1);\n      minutes = '00';\n    }\n    return hours || parseInt(minutes, 10) ? `${Math.floor(hours)}:${minutes}` : emptyPlaceholder;\n  }\n  function parseDuration(duration) {\n    // Null input\n    if ([null, undefined, ''].includes(duration)) {\n      return null;\n    }\n    if (!isNaN(duration)) return Number(duration);\n    const parts = duration.replace('.', ':').replace(/[^0-9:-]+/g, '').split(':');\n\n    // Invalid input\n    if (!parts.find(p => p !== '') || parts.length === 0) {\n      return null;\n    }\n    const [hours, minutes = 0] = parts.map(str => Number(str));\n    return hours + (hours >= 0 ? 1 : -1) * minutes / 60;\n  }\n});","define(\"portal/utils/email-validator\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = emailValidator;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function emailValidator(email) {\n    // eslint-disable-line complexity\n    const [localPart, domain, extra] = email.split('@');\n\n    // Return false if the email doesn't have exactly 1 @\n    if (!localPart || !domain || extra) return false;\n\n    // Return false if the local part has any characters that aren't the allowed characters\n    if (/[^\\ \"\\d\\w\\.!#$%&'*/=?^_+-`{|}~]+/.test(localPart)) return false;\n\n    // Local part can be max 64 chars long\n    if (localPart.length > 64) return false;\n    // Local part may not have quotes unless they are the leading AND trailing char\n    if (localPart.slice(1, -1).includes('\"')) return false;\n\n    // If local part is not quoted, do not allow leading dots, trailing dots, double dots, or spaces\n    if (!(localPart.startsWith('\"') && localPart.endsWith('\"'))) {\n      if (/\\.\\./.test(localPart)) return false;\n      if (/^\\./.test(localPart)) return false;\n      if (/\\.$/.test(localPart)) return false;\n      if (localPart.includes(' ')) return false;\n      // If the leading AND trailing char are not quotes, then don't allow any quotes.\n      if (localPart.includes('\"')) return false;\n    }\n\n    // Validate the domain, if test fails, return false\n    const subdomains = domain.split('.');\n    if (subdomains.some(part => !part.length || /[^a-zA-Z0-9\\-]/.test(part))) return false;\n\n    // No reason to invalidate, return true\n    return true;\n  }\n});","define(\"portal/utils/extract-number\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = extractNumber;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * Checks that the number is valid and rounds to 2DP\n   * @param {String} input - A string that is a plain number\n   * @returns {Number} - The string turned into a number with 2DP accuracy\n   */\n  function extractNumber(input) {\n    return isNaN(input) ? 0 : Math.floor(Number(input) * 100) / 100;\n  }\n});","define(\"portal/utils/favicon-title\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.changeFavicon = changeFavicon;\n  _exports.changeTitle = changeTitle;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function changeFavicon(src) {\n    src = src + '?=' + Math.random(); // invalidate the cached icon\n    const link = document.createElement('link');\n    const oldLink = document.getElementById('dynamic-favicon');\n    link.id = 'dynamic-favicon';\n    link.rel = 'icon';\n    link.href = src;\n    if (oldLink) document.head.removeChild(oldLink);\n    document.head.appendChild(link);\n  }\n  function changeTitle(title) {\n    document.title = title;\n  }\n});","define(\"portal/utils/find-date\", [\"exports\", \"moment\"], function (_exports, _moment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"moment\"eaimeta@70e063a35619d71f\n  function _default(dateString, format) {\n    let date = (0, _moment.default)(dateString, format);\n    if (date.isValid()) return date.toDate();\n    date = (0, _moment.default)(dateString);\n    if (date.isValid()) return date.toDate();\n    return null;\n  }\n});","define(\"portal/utils/find-param\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = findParam;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function findParam(routeDescription, routeName, paramName) {\n    // If this is the correct route, look for the param\n    if (routeDescription.name === routeName) {\n      return routeDescription.params[paramName];\n    }\n\n    // If this is still a sub-route, look in the parent\n    if (routeDescription.name.startsWith(routeName)) {\n      return findParam(routeDescription.parent, routeName, paramName);\n    }\n\n    // Route could not be found so return null\n    return null;\n  }\n});","define(\"portal/utils/get-default-language\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getDefaultUserOrWorkerLanguage = getDefaultUserOrWorkerLanguage;\n  _exports.languages = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  const languages = _exports.languages = [{\n    value: 'zh-Hans',\n    label: 'Chinese (简体中文)'\n  }, {\n    value: 'en-AU',\n    label: 'English (Australia)'\n  }, {\n    value: 'en-NZ',\n    label: 'English (New Zealand)'\n  }, {\n    value: 'en-GB',\n    label: 'English (United Kingdom)'\n  }, {\n    value: 'en-US',\n    label: 'English (United States)'\n  }];\n  function getDefaultUserOrWorkerLanguage() {\n    const supportedTranslations = ['zh-Hans', 'en-AU', 'en-NZ', 'en-GB', 'en-US'];\n    if (supportedTranslations.includes(navigator.language)) return navigator.language;\n    return 'en-NZ';\n  }\n});","define(\"portal/utils/gl-import-parsers/banklink\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = banklinkReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function banklinkReportParser(report) {\n    const maps = [];\n    const balances = [];\n    if (report.length) {\n      // Remove header row\n      report.shift();\n\n      // Extract useful info\n      report.forEach(row => {\n        // Check line name starts with number (account code)\n        if (isNaN(parseInt(row[0].split(' ')[0], 10))) {\n          return;\n        }\n\n        // Check both data columns contain numbers\n        if (isNaN(parseInt(row[1], 10)) || isNaN(parseInt(row[2], 10))) {\n          return;\n        }\n        const period = (0, _parseCurrencyString.default)(row[1]);\n        const ytd = (0, _parseCurrencyString.default)(row[2]);\n        const map = {\n          externalId: row[0].split(' ')[0],\n          code: row[0].split(' ')[0],\n          name: row[0].split(' ').slice(1).join(' '),\n          system: 'banklink'\n        };\n        const balance = {\n          externalId: row[0].split(' ')[0],\n          period,\n          ytd\n        };\n        maps.push(map);\n        balances.push(balance);\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/empower\", [\"exports\", \"@ember/object\", \"portal/utils/parse-currency-string\"], function (_exports, _object, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = empowerReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function empowerReportParser(report) {\n    var maps = [];\n    var balances = [];\n    if (report.length) {\n      // Remove header row\n      for (let i = 0; i < report.length; i++) {\n        report.shift();\n        if (report[0][0] && report[0][0].trim() === 'Account') {\n          report.shift();\n          break;\n        }\n      }\n\n      // Extract useful info\n      report.forEach(row => {\n        if (!row[0] || !row[1]) {\n          return;\n        }\n        const map = {\n          externalId: row[0],\n          code: row[0],\n          name: row[1],\n          system: 'empower'\n        };\n        const balance = {\n          externalId: row[0],\n          periodDebit: null,\n          periodCredit: null,\n          ytdDebit: null,\n          ytdCredit: null\n        };\n        const value = (0, _parseCurrencyString.default)(row[2]);\n\n        // Credit values are negative\n        if (value > 0) {\n          (0, _object.set)(balance, 'periodCredit', -value);\n          (0, _object.set)(balance, 'ytdCredit', -value);\n        } else {\n          (0, _object.set)(balance, 'periodDebit', value);\n          (0, _object.set)(balance, 'ytdDebit', value);\n        }\n        maps.push(map);\n        balances.push(balance);\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/frameworks\", [\"exports\", \"@ember/utils\", \"portal/utils/parse-currency-string\", \"lodash\"], function (_exports, _utils, _parseCurrencyString, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"portal/utils/parse-currency-string\",0,\"lodash\"eaimeta@70e063a35619d71f\n  const fileError = noun => `The file you uploaded didn't have the ${noun} we were expecting. Please check it is a CSV report from Frameworks.`;\n  const contentError = (value, ordinal, lineNo) => `We expected to find ${value} in the ${ordinal} column on line ${lineNo}, but that cell was empty.`;\n  function _default(report) {\n    const maps = [];\n    const balances = [];\n    const errors = [];\n    if (!Array.isArray(report) || !Array.isArray(report[0]) || report.length < 2) {\n      errors.push(fileError('structure'));\n    } else if (!_lodash.default.isEqual(report[0].slice(0, -1), ['Type', 'Account', 'Account Name', 'Current Balance'])) {\n      errors.push(fileError('headers'));\n    } else if (report[report.length - 1][0] !== 'T1') {\n      errors.push(fileError('footer row'));\n    }\n    if (errors.length === 0 && report.length > 2) {\n      // Skip header and footer rows\n      report = report.slice(1, -1);\n\n      // Extract useful info\n      report.forEach((row, i) => {\n        // Check for account code\n        if ((0, _utils.isEmpty)(row[1])) {\n          errors.push(contentError('an account code', 'second', i + 2));\n          return;\n        }\n\n        // Check for account name\n        if ((0, _utils.isEmpty)(row[2])) {\n          errors.push(contentError('an account name', 'third', i + 2));\n          return;\n        }\n        maps.push({\n          externalId: row[1],\n          code: row[1],\n          name: row[2],\n          system: 'frameworks'\n        });\n        const value = (0, _parseCurrencyString.default)(row[4]);\n        if (value) {\n          balances.push({\n            externalId: row[1],\n            periodDebit: value,\n            ytdDebit: value\n          });\n        }\n      });\n    }\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/gj-gardner\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = gjGardnerReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function gjGardnerReportParser(report) {\n    const maps = [];\n    const balances = [];\n\n    // Shallow clone\n    report = [...report];\n    validateHeaders(report.shift());\n    if (report.length) {\n      let level = 1;\n      const headers = [];\n      report.forEach(row => {\n        // Extract row data\n        const accountNumber = typeof row[0] === 'string' && row[0].trim();\n        let accountName = typeof row[1] === 'string' && row[1].trim();\n        const accountLevel = typeof row[2] === 'string' && Number(row[2].trim());\n        const accountType = typeof row[3] === 'string' && row[3].trim();\n        const actual = typeof row[4] === 'string' && row[4].length > 0 && (0, _parseCurrencyString.default)(row[4]);\n\n        // If the account name ends with it's header name, remove it\n        const currentHeader = headers[headers.length - 1];\n        if (headers.length && accountName.endsWith(currentHeader)) {\n          accountName = accountName.replace(currentHeader, '').trim();\n        }\n\n        // End of section\n        if (accountLevel < level) {\n          headers.pop();\n          level -= 1;\n        }\n\n        // Track which section we're in\n        if (accountType === 'H') {\n          headers.push(accountName);\n          level += 1;\n        }\n\n        // Skip header and total rows\n        if (accountType !== 'D') {\n          return;\n        }\n\n        // Skip if this is an account row, but for some reason this doesn't have a value\n        if (Number.isNaN(actual)) {\n          return;\n        }\n\n        // If we've reach this point, this is an account with data we need to extract\n\n        maps.push({\n          externalId: accountNumber,\n          code: accountNumber,\n          name: buildAccountName(headers, accountName),\n          system: 'gj-gardner'\n        });\n        balances.push({\n          externalId: accountNumber,\n          period: actual,\n          ytd: actual\n        });\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n  function validateHeaders(headers) {\n    if (!headers) throw new Error('CSV file appears to be empty');\n    const check = (header, expected, index) => {\n      if (!Array.isArray(expected)) {\n        expected = [expected];\n      }\n      if (!expected.includes(header.trim())) {\n        throw new Error(`Expected column ${index} to be named '${expected}', but found '${header.trim()}'`);\n      }\n    };\n    check(headers[0], 'AccountNumber', 1);\n    check(headers[1], 'AccountName', 2);\n    check(headers[2], 'AccountLevel', 3);\n    check(headers[3], 'AccountType', 4);\n    check(headers[4], ['Actual', 'Amount'], 5);\n    if (headers.length > 6) {\n      throw new Error(`Expected 5 or 6 columns, but found ${headers.length}`);\n    }\n  }\n\n  /*\n   * e.g. ([ Income, Sales ], Timber) => 'Income / Sales / Timber'\n   */\n  function buildAccountName(headers, account) {\n    return headers.map(header => header + ' / ').join('') + account;\n  }\n});","define(\"portal/utils/gl-import-parsers/itm-manual\", [\"exports\", \"@ember/object\", \"portal/utils/parse-currency-string\"], function (_exports, _object, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = itmManualParser;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function itmManualParser(report) {\n    var maps = [];\n    var balances = [];\n    report.shift();\n    report.forEach(row => {\n      if (!row[0] || !row[1] || !row[2]) return;\n      maps.push({\n        externalId: row[0],\n        code: row[0],\n        name: row[1],\n        system: 'itm-manual'\n      });\n      const balance = {\n        externalId: row[0],\n        period: null\n      };\n      const value = (0, _parseCurrencyString.default)(row[2]);\n\n      // Since this is a manual format, no assumptions can really be made on whether,\n      // an account is supposed to be a period value or a YTD one. Nor, whether the source\n      // account is a credit or debit account.\n      (0, _object.set)(balance, 'period', value);\n      (0, _object.set)(balance, 'ytd', value);\n      balances.push(balance);\n    });\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/maxim\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = maximReportParser;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function maximReportParser(report) {\n    const maps = [];\n    const balances = [];\n    const errors = [];\n    if (report.length) {\n      // Remove header row\n      report.shift();\n\n      // Extract useful info\n      report.forEach((row, i) => {\n        const map = {\n          externalId: row[3],\n          code: row[3],\n          name: row[4],\n          system: 'maxim'\n        };\n        const balance = {\n          externalId: row[3],\n          periodDebit: null,\n          periodCredit: null,\n          ytdDebit: null,\n          ytdCredit: null\n        };\n        const periodValue = extractValue(row[5]);\n        if (periodValue < 0) {\n          balance.periodCredit = -periodValue;\n        } else {\n          balance.periodDebit = periodValue;\n        }\n        const ytdValue = extractValue(row[6]);\n        if (ytdValue < 0) {\n          balance.ytdCredit = -ytdValue;\n        } else {\n          balance.ytdDebit = ytdValue;\n        }\n        if (!map.externalId || !map.name || !map.code) {\n          errors.push(`Line ${i + 2} of the provided csv file did not contain valid data.`);\n        } else {\n          maps.push(map);\n          balances.push(balance);\n        }\n      });\n    }\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n  function extractValue(source) {\n    if (!source || !source.replace) {\n      return null;\n    }\n    source = source.replace(/,/g, '');\n    if (source.indexOf('(') > -1) {\n      source = source.replace('(', '-').replace(')', '');\n    }\n    return parseFloat(source);\n  }\n});","define(\"portal/utils/gl-import-parsers/myob-ao\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function _default(report) {\n    var maps = [];\n    var balances = [];\n    if (report.length) {\n      // Remove header row\n      for (let i = 0; i < report.length; i++) {\n        report.shift();\n        if (report[0][0] && report[0][0].trim() === 'No.') {\n          report.shift();\n          report.shift();\n          break;\n        }\n      }\n\n      // Extract useful info\n      report.forEach(function (row) {\n        const map = {\n          externalId: row[0],\n          code: row[0],\n          name: row[1],\n          system: 'myob-ao'\n        };\n        const value = (0, _parseCurrencyString.default)(row[2]);\n        const balance = {\n          externalId: row[0],\n          period: value,\n          ytd: value\n        };\n        maps.push(map);\n        balances.push(balance);\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/myob\", [\"exports\", \"@ember/object\", \"@ember/array\", \"portal/utils/parse-currency-string\", \"moment\", \"lodash\"], function (_exports, _object, _array, _parseCurrencyString, _moment, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = myobReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/array\",0,\"portal/utils/parse-currency-string\",0,\"moment\",0,\"lodash\"eaimeta@70e063a35619d71f\n  /**\n   * Format is as follows\n   * @example\n   * *Created:*,  businessName\n   * unused\n   * reportName\n   * unused\n   * period\n   *\n   * OR\n   *\n   * blank line\n   * businessName\n   * some lines\n   * `General Ledger [Summary]`\n   * reportName\n   * periodStart\n   *\n   * THEN\n   *\n   * some linescd\n   * Account No. OR Acct No.,   Account Name,   Net Activity,   Ending Balance\n   * some lines\n   * positiveDigit-positiveDigit\n   *\n   * @param {array} report - The lines of a csv file\n   * @returns {{meta: {}, maps: Array, balances: Array, errors: Array}} An object containing the import data.\n   */\n  function myobReportParser(report) {\n    const meta = {};\n    const maps = [];\n    const balances = [];\n    let errors = [];\n    if (!(0, _array.isArray)(report) || report.length <= 8 || !report.every(_array.isArray)) {\n      errors.push('Input could not be parsed');\n      return {\n        meta,\n        maps,\n        balances,\n        errors\n      };\n    }\n    if (report[0][0].indexOf('Created:') === 0) {\n      // Business name\n      (0, _object.set)(meta, 'businessName', report[0][1]);\n\n      // Report name\n      (0, _object.set)(meta, 'reportName', report[2][0]);\n\n      // Report period\n      (0, _object.set)(meta, 'periodStart', report[4][0]);\n      if ((0, _object.get)(meta, 'periodStart')) {\n        (0, _object.set)(meta, 'periodEnd', (0, _moment.default)((0, _object.get)(meta, 'periodStart').substr(13, 10), 'DD/MM/YYYY').toDate());\n        (0, _object.set)(meta, 'periodStart', (0, _moment.default)((0, _object.get)(meta, 'periodStart').substr(0, 10), 'DD/MM/YYYY').toDate());\n      }\n    } else {\n      (0, _object.set)(meta, 'businessName', report.shift()[0]);\n      while (report[0][0] !== 'General Ledger [Summary]') {\n        report.shift();\n      }\n      (0, _object.set)(meta, 'reportName', report.shift()[0]);\n      (0, _object.set)(meta, 'periodStart', report.shift()[0]);\n      if ((0, _object.get)(meta, 'periodStart')) {\n        (0, _object.set)(meta, 'periodEnd', (0, _moment.default)((0, _object.get)(meta, 'periodStart').substr(13, 10), 'DD/MM/YYYY').endOf('day').toDate());\n        (0, _object.set)(meta, 'periodStart', (0, _moment.default)((0, _object.get)(meta, 'periodStart').substr(0, 10), 'DD/MM/YYYY').startOf('day').toDate());\n      }\n    }\n\n    // Error checking\n\n    if (!(0, _object.get)(meta, 'businessName')) {\n      errors.push('Could not find business name.');\n    }\n    if (!(0, _object.get)(meta, 'reportName') || (0, _object.get)(meta, 'reportName') !== 'General Ledger [Summary]') {\n      errors.push('Could not find report name.');\n    }\n    if (!(0, _object.get)(meta, 'periodStart') || !(0, _object.get)(meta, 'periodEnd')) {\n      errors.push('Could not find report date.');\n    }\n    if (errors.length) {\n      return {\n        meta,\n        maps,\n        balances,\n        errors\n      };\n    }\n    while (!report[0][0].match(/Acc(?:oun)?t No\\./)) {\n      report.shift();\n    }\n\n    // Find which column holds which data\n    let code = null;\n    let name = null;\n    let period = null;\n    let ytd = null;\n    report.shift().forEach((header, index) => {\n      if (header.match(/^Acc(?:oun)?t No\\.$/)) {\n        code = index;\n      } else if (header === 'Account Name') {\n        name = index;\n      } else if (header === 'Net Activity') {\n        period = index;\n      } else if (header === 'Ending Balance') {\n        ytd = index;\n      }\n    });\n    if (code == null) errors.push('Could not find code column');\n    if (name == null) errors.push('Could not find name column');\n    if (period == null) errors.push('Could not find period column');\n    if (ytd == null) errors.push('Could not find YTD column');\n    while (!report[0][0].match(/\\d+-\\d+/)) {\n      report.shift();\n    }\n    if (!report.length) {\n      errors.push('Could not find report data');\n      return {\n        meta,\n        maps,\n        balances,\n        errors\n      };\n    }\n    report.forEach(row => {\n      if (!row[0].match(/^\\d+-\\d+$/)) {\n        return;\n      }\n      if (!row[code] || !row[name] || !row[period] || !row[ytd]) {\n        errors.push('Failed to parse at least one row.');\n      }\n      maps.push({\n        externalId: row[code].trim(),\n        code: row[code].trim(),\n        name: row[name].trim(),\n        system: 'myob'\n      });\n      var balance = {\n        externalId: row[code]\n      };\n      if (row[period].indexOf('cr') > -1 || row[period].indexOf('(') > -1) {\n        (0, _object.set)(balance, 'periodCredit', (0, _parseCurrencyString.default)(row[period]));\n      } else {\n        (0, _object.set)(balance, 'periodDebit', (0, _parseCurrencyString.default)(row[period]));\n      }\n      if (row[ytd].indexOf('cr') > -1 || row[ytd].indexOf('(') > -1) {\n        (0, _object.set)(balance, 'ytdCredit', (0, _parseCurrencyString.default)(row[ytd]));\n      } else {\n        (0, _object.set)(balance, 'ytdDebit', (0, _parseCurrencyString.default)(row[ytd]));\n      }\n      balances.push(balance);\n    });\n    errors = _lodash.default.uniq(errors);\n    return {\n      meta,\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/new-xero-parser\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  /* eslint-disable complexity */\n  /**\n   * extracts account code from a string\n   * @example\n   * Sales (200)\n   * @param {string} label produced by Xero\n   * @returns {string} An account code\n   */\n  const extractAccountCode = label => label.substring(label.lastIndexOf('(') + 1, label.lastIndexOf(')'));\n\n  /**\n   * extracts account name from a string\n   * @example\n   * Sales (200)\n   * @param {string} label produced by Xero\n   * @returns {string} An account name\n   */\n  const extractAccountName = label => label.slice(0, label.lastIndexOf('(')).trim();\n\n  /**\n   * Format is as follows\n   * @example\n   * some lines\n   * 'Account', *\n   * one blank line\n   * accountLabel, periodDebit, periodCredit, ytdDebit, ytdCredit\n   * repeat many times\n   * can have lines that don't match (they will be ignored)\n   * Total, *\n   * @param {Array} report - A parsed csv file\n   * @returns {{maps: Array, balances: Array, errors: Array}} A list of maps, balances, and errors\n   */\n  function _default(report) {\n    const maps = [];\n    const balances = [];\n    const errors = [];\n    let linesRemoved = 1;\n    if (!report.length) {\n      errors.push('Report must not be empty');\n      return {\n        maps,\n        balances,\n        errors\n      };\n    }\n\n    // Remove header rows\n    while (report.length && report[0][0].trim() !== 'Account') {\n      report.shift();\n      linesRemoved++;\n    }\n    if (!report.length) errors.push('Incorrect format. Could not find the Header \"Account\"');\n    report.shift(); // Column headers\n    linesRemoved++;\n    // Extract useful info\n    report.forEach(function (row, i) {\n      const [label, ...rest] = row;\n      const [debit, credit, ytdDebit, ytdCredit] = rest;\n      const rowHasNoInformation = rest.every(column => column === '');\n      if (rowHasNoInformation || row[0].trim() === 'Total') {\n        return;\n      }\n      const id = extractAccountCode(label);\n      const name = extractAccountName(label);\n      if (!id || !id.length) return errors.push(`Could not parse ID for line ${i + linesRemoved}`);\n      if (!name || !name.length) return errors.push(`Could not parse name for line ${i + linesRemoved}`);\n      const map = {\n        externalId: id,\n        code: id,\n        name,\n        system: 'xero-csv'\n      };\n      const isDebit = () => ytdDebit !== '';\n      const ytdValue = isDebit() ? ytdDebit : ytdCredit;\n      const balance = {\n        externalId: id,\n        periodDebit: debit.trim() !== '' ? (0, _parseCurrencyString.default)(debit) : null,\n        periodCredit: credit.trim() !== '' ? (0, _parseCurrencyString.default)(credit) : null,\n        ytd: ytdValue.trim() !== '' ? isDebit() ? -(0, _parseCurrencyString.default)(ytdValue) : (0, _parseCurrencyString.default)(ytdValue) : null\n      };\n      maps.push(map);\n      balances.push(balance);\n    });\n    if (!maps.length || !balances.length) errors.push('No imports were found');\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/old-xero-parser\", [\"exports\", \"portal/utils/parse-currency-string\"], function (_exports, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  /* eslint-disable complexity */\n  /**\n   * Format is as follows\n   * @example\n   * some lines\n   * 'Account Code', *\n   * one blank line\n   * accountCode, accountName, accountType, periodDebit, periodCredit, ytd,\n   * repeat many times\n   * can have lines that don't match (they will be ignored)\n   * Total, *\n   * @param {Array} report - A parsed csv file\n   * @returns {{maps: Array, balances: Array, errors: Array}} A list of maps, balances, and errors\n   */\n  function _default(report) {\n    const maps = [];\n    const balances = [];\n    const errors = [];\n    if (!report.length) {\n      errors.push('Report must not be empty');\n      return {\n        maps,\n        balances,\n        errors\n      };\n    }\n\n    // Remove header rows\n    while (report.length && report[0][0].trim() !== 'Account Code') {\n      report.shift();\n    }\n    if (!report.length) errors.push('Incorrect format. Could not find the Header \"Account Code\"');\n    report.shift(); // Column headers\n\n    // Extract useful info\n    report.forEach(function (row, i) {\n      if (!row[0] && !row[1] && !row[2] && !row[3] && !row[4] && !row[5] || row[0].trim() === 'Total') {\n        return;\n      }\n      const id = row[0];\n      const name = row[1];\n      if (!id || !id.length) return errors.push(`Could not parse ID for line ${i + 5}`);\n      if (!name || !name.length) return errors.push(`Could not parse name for line ${i + 5}`);\n      const map = {\n        externalId: id,\n        code: id,\n        name,\n        system: 'xero-csv'\n      };\n      const balance = {\n        externalId: id,\n        periodDebit: row[3].trim() !== '' ? (0, _parseCurrencyString.default)(row[3]) : null,\n        periodCredit: row[4].trim() !== '' ? (0, _parseCurrencyString.default)(row[4]) : null,\n        ytd: row[5].trim() !== '' ? (0, _parseCurrencyString.default)(row[5]) : null\n      };\n      maps.push(map);\n      balances.push(balance);\n    });\n    if (!maps.length || !balances.length) errors.push('No imports were found');\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/prostix\", [\"exports\", \"@ember/object\", \"portal/utils/parse-currency-string\"], function (_exports, _object, _parseCurrencyString) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = prostixReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"portal/utils/parse-currency-string\"eaimeta@70e063a35619d71f\n  function prostixReportParser(report) {\n    var maps = [];\n    var balances = [];\n    if (report.length) {\n      // Remove header row\n      report.shift();\n\n      // Extract useful info\n      report.forEach(row => {\n        const map = {\n          externalId: row[4],\n          code: row[4],\n          name: row[3],\n          system: 'prostix'\n        };\n        const balance = {\n          externalId: row[4],\n          periodDebit: null,\n          periodCredit: null,\n          ytdDebit: null,\n          ytdCredit: null\n        };\n        const value = (0, _parseCurrencyString.default)(row[5]);\n\n        // Credit values are positive\n        if (value > 0) {\n          (0, _object.set)(balance, 'periodCredit', value);\n          (0, _object.set)(balance, 'ytdCredit', value);\n        } else {\n          (0, _object.set)(balance, 'periodDebit', -value);\n          (0, _object.set)(balance, 'ytdDebit', -value);\n        }\n        maps.push(map);\n        balances.push(balance);\n      });\n    }\n    return {\n      maps,\n      balances\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/rees\", [\"exports\", \"lodash\"], function (_exports, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = reesReportParser;\n  0; //eaimeta@70e063a35619d71f0,\"lodash\"eaimeta@70e063a35619d71f\n  function reesReportParser(input) {\n    let report = input;\n    const maps = [];\n    const balances = [];\n    const errors = [];\n\n    // If is paged\n    if (report.indexOf('\\u000C') > 0) {\n      // Check for the report number\n      if (report.indexOf('7.11.6') === -1) {\n        errors.push('Could not verify report number');\n        return {\n          maps,\n          balances,\n          errors\n        };\n      }\n\n      // Split on page break character\n      const pages = report.split(/\\u000C/); // eslint-disable-line no-control-regex\n\n      // Remove headers\n      const pagesWithoutHeaders = pages.map(page => {\n        return page.replace(/^[\\s\\S^-]*(-){130}\\r\\n/, '');\n      });\n\n      // Flatten pages\n      report = pagesWithoutHeaders.join('\\r\\n');\n    }\n\n    // Split on line breaks\n    const lines = report.split('\\r\\n');\n\n    // Trim each line\n    const trimmedLines = lines.map(_lodash.default.trim);\n\n    // Split into cells\n    const cells = trimmedLines.map(line => {\n      // remove commas from the dollar figures\n      line = line.replace(/\\,/g, '');\n\n      // Extract the values. Must handle no-match case where match returns null.\n      const [periodValue, ytdValue] = line.match(/-{0,1}\\d*\\.\\d{2}/g) || [];\n\n      // If either values are missing (can be 0.00 but not missiing), just use the whole line.\n      if (!periodValue || !ytdValue) return [line];\n\n      // The code and name is just the rest of the line with the values removed.\n      const codeAndName = line.replace(periodValue, '').replace(ytdValue, '').trim();\n      return [periodValue, codeAndName, ytdValue];\n    });\n\n    // Keep only lines with three cells (removes headers and breaks).\n    // Native filter rather than Ember's reject: this module is imported and run\n    // without the application having booted, and the array prototype extensions\n    // are not installed until it has.\n    const accountsWithTotals = cells.filter(line => line.length === 3 && line[1].split(' ').length >= 2);\n    let accounts = accountsWithTotals.filter(account => {\n      const name = account[1].match(/^[\\d\\.-]+(.*)/)[1].toLowerCase().trim();\n      return !(name.match(/^total/) || name.indexOf('must equal zero') > -1);\n    });\n    if (!accounts.length) {\n      errors.push('No accounts were found.');\n      return {\n        maps,\n        balances,\n        errors\n      };\n    }\n    accounts = accounts.map(account => {\n      return {\n        code: account[1].match(/^[\\d\\.-]+/)[0],\n        name: account[1].match(/^[\\d\\.-]+(.*)/)[1].trim(),\n        period: parseFloat(account[0]),\n        ytd: parseFloat(account[2])\n      };\n    });\n\n    // Extract useful info\n    accounts.forEach(({\n      code,\n      name,\n      period,\n      ytd\n    }) => {\n      maps.push({\n        externalId: code,\n        code,\n        name,\n        system: 'rees'\n      });\n      balances.push({\n        externalId: code,\n        period,\n        ytd\n      });\n    });\n    return {\n      maps,\n      balances,\n      errors\n    };\n  }\n});","define(\"portal/utils/gl-import-parsers/xero-csv\", [\"exports\", \"portal/utils/gl-import-parsers/old-xero-parser\", \"portal/utils/gl-import-parsers/new-xero-parser\"], function (_exports, _oldXeroParser, _newXeroParser) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/gl-import-parsers/old-xero-parser\",0,\"portal/utils/gl-import-parsers/new-xero-parser\"eaimeta@70e063a35619d71f\n  const isOldXeroFormat = report => report[4][0] === 'Account Code';\n\n  /**\n   * detects which format the xero export is and chooses the correct parser\n   * @param {Array} report - A parsed csv file\n   * @returns {{maps: Array, balances: Array, errors: Array}} A list of maps, balances, and errors\n   */\n  var _default = report => {\n    if (!report.length) {\n      return {\n        errors: ['Report must not be empty']\n      };\n    }\n    return isOldXeroFormat(report) ? (0, _oldXeroParser.default)(report) : (0, _newXeroParser.default)(report);\n  };\n  _exports.default = _default;\n});","define(\"portal/utils/intl/missing-message\", [\"exports\", \"portal/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = missingMessage;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  // ember-intl calls this whenever `t` is given a key that has no translation.\n  // Static keys are caught at build time (see lib/missing-translations); this\n  // warns about dynamic ones outside production.\n  function missingMessage(key, locales) {\n    const message = `Missing translation: ${key} in ${locales}`;\n    if (_environment.default.environment !== 'production') {\n      // eslint-disable-next-line no-console\n      console.warn(message);\n    }\n    return message;\n  }\n});","define(\"portal/utils/labour-cost-calculator-fixtures\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.nzlLabourCostCalculatorItems = _exports.nzlLabourCostCalculator = _exports.defaultLabourCostCalculatorItems = _exports.defaultLabourCostCalculator = _exports.ausLabourCostCalculatorItems = _exports.ausLabourCostCalculator = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /* international */\n  const defaultLabourCostCalculator = _exports.defaultLabourCostCalculator = {\n    label: 'Default worker calculator',\n    workingHoursPerDay: 8,\n    workingDaysPerWeek: 5\n  };\n  const defaultLabourCostCalculatorItems = _exports.defaultLabourCostCalculatorItems = [{\n    label: 'Paid Lunch/Breaks',\n    enabled: true,\n    isSystem: true,\n    value: 30,\n    valueType: 'minutesPerDay'\n  }, {\n    label: 'Public Holiday',\n    enabled: true,\n    isSystem: true,\n    value: 12,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Annual Leave',\n    enabled: true,\n    isSystem: true,\n    value: 20,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Sick Leave',\n    enabled: true,\n    isSystem: true,\n    value: 5,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Other',\n    enabled: true,\n    isSystem: false,\n    value: 0,\n    valueType: 'percentOfPayRate'\n  }];\n\n  /* new zealand */\n  const nzlLabourCostCalculator = _exports.nzlLabourCostCalculator = {\n    label: 'Default worker calculator',\n    workingHoursPerDay: 8,\n    workingDaysPerWeek: 5\n  };\n  const nzlLabourCostCalculatorItems = _exports.nzlLabourCostCalculatorItems = [{\n    label: 'Paid Lunch/Breaks',\n    enabled: true,\n    isSystem: true,\n    value: 30,\n    valueType: 'minutesPerDay'\n  }, {\n    label: 'Public Holiday',\n    enabled: true,\n    isSystem: true,\n    value: 12,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Annual Leave',\n    enabled: true,\n    isSystem: true,\n    value: 20,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Sick Leave',\n    enabled: true,\n    isSystem: true,\n    value: 10,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'KiwiSaver',\n    enabled: true,\n    isSystem: true,\n    value: 0.035,\n    valueType: 'percentOfPayRate'\n  }, {\n    label: 'ACC Levy Rate',\n    enabled: true,\n    isSystem: true,\n    value: 0.022,\n    valueType: 'percentOfPayRate'\n  }, {\n    label: 'Other',\n    enabled: true,\n    isSystem: false,\n    value: 0,\n    valueType: 'percentOfPayRate'\n  }];\n\n  /* australia */\n  const ausLabourCostCalculator = _exports.ausLabourCostCalculator = {\n    label: 'Default worker calculator',\n    workingHoursPerDay: 8,\n    workingDaysPerWeek: 5\n  };\n  const ausLabourCostCalculatorItems = _exports.ausLabourCostCalculatorItems = [{\n    label: 'Paid Lunch/Breaks',\n    enabled: true,\n    isSystem: true,\n    value: 30,\n    valueType: 'minutesPerDay'\n  }, {\n    label: 'Public Holiday',\n    enabled: true,\n    isSystem: true,\n    value: 15,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Annual Leave',\n    enabled: true,\n    isSystem: true,\n    value: 20,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Sick Leave',\n    enabled: true,\n    isSystem: true,\n    value: 10,\n    valueType: 'daysPerYear'\n  }, {\n    label: 'Super',\n    enabled: true,\n    isSystem: true,\n    value: 0,\n    valueType: 'percentOfPayRate'\n  }, {\n    label: 'Other',\n    enabled: true,\n    isSystem: false,\n    value: 0,\n    valueType: 'percentOfPayRate'\n  }];\n});","define(\"portal/utils/loading-route-from\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = loadingRouteFrom;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function loadingRouteFrom(Route, path) {\n    return Route.extend({\n      templateName: path,\n      controllerName: path,\n      setupController(controller) {\n        this._super(...arguments);\n        (0, _object.set)(controller, 'isLoading', true);\n      },\n      deactivate() {\n        (0, _object.set)(this, 'controller.isLoading', false);\n      }\n    });\n  }\n});","define(\"portal/utils/make-temp-id\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = makeTempId;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function makeTempId() {\n    let id = Math.floor(Math.random() * Math.pow(10, 16)).toString();\n    while (id.length < 16) {\n      id = '0' + id;\n    }\n    return id;\n  }\n});","define(\"portal/utils/multi-selectable-tree-item\", [\"exports\", \"@glimmer/tracking\", \"@ember/array\"], function (_exports, _tracking, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2, _descriptor3;\n  0; //eaimeta@70e063a35619d71f0,\"@glimmer/tracking\",0,\"@ember/array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let MultiSelectableTreeItem = _exports.default = (_class = class MultiSelectableTreeItem {\n    get isSomeChildChecked() {\n      return function checkChildren(children = []) {\n        return children.some(child => {\n          if (child.checked) return true;\n          if (child.children?.length) return checkChildren(child.children);\n          return false;\n        });\n      }(this.children);\n    }\n    get isEveryChildChecked() {\n      return function checkChildren(children = []) {\n        return children.every(child => {\n          if (child.checked) return true;\n          if (child.children?.length) return checkChildren(child.children);\n          return false;\n        });\n      }(this.children);\n    }\n    get isChecked() {\n      return this._isChecked || this.isSomeChildChecked;\n    }\n    set isChecked(value) {\n      this._isChecked = value;\n    }\n    get checked() {\n      return this._isChecked && this.isEveryChildChecked;\n    }\n    get indeterminate() {\n      if (!this.children?.length) return false;\n      return this._isChecked && !this.isEveryChildChecked;\n    }\n    static constructItemTreeFromTasks(taskData, selectedTasks) {\n      const topTasks = taskData.toArray().filter(task => !task.belongsTo('parent').id() && ['ACTIVE', 'DRAFT_CREATED'].includes(task.status));\n      const taskItems = (0, _array.A)(topTasks).sortBy('path').map(task => new MultiSelectableTreeItem(task, selectedTasks));\n      return taskItems;\n    }\n    constructor(item, selectedTasks) {\n      _initializerDefineProperty(this, \"_isChecked\", _descriptor, this);\n      _initializerDefineProperty(this, \"item\", _descriptor2, this);\n      _initializerDefineProperty(this, \"children\", _descriptor3, this);\n      this.item = item;\n      if (selectedTasks.find(t => t.id === item.id)) {\n        this._isChecked = true;\n      } else {\n        this._isChecked = false;\n      }\n      if (item.children) {\n        const childrenArray = (0, _array.A)(item.hasMany('children').value()?.toArray());\n        this.children = childrenArray?.sortBy('path').filter(child => ['ACTIVE', 'DRAFT_CREATED'].includes(child.status)).map(child => new MultiSelectableTreeItem(child, selectedTasks)) || [];\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_isChecked\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return false;\n    }\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"item\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _class);\n});","define(\"portal/utils/nest\", [\"exports\", \"@ember/utils\", \"@ember/object\", \"lodash\"], function (_exports, _utils, _object, _lodash) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = nest;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/object\",0,\"lodash\"eaimeta@70e063a35619d71f\n  function nest(parents, accounts, idKey) {\n    if (idKey == null) {\n      idKey = 'id';\n    }\n    parents = parents.toArray().sortBy('sortIndex');\n    accounts = accounts.toArray();\n    parents.forEach(account => {\n      if ((0, _utils.isEmpty)(account)) {\n        return;\n      }\n      let children;\n      if (idKey !== false) {\n        children = accounts.filterBy('parent.' + idKey, (0, _object.get)(account, idKey));\n      } else {\n        children = accounts.filterBy('parent', (0, _object.get)(account, 'id'));\n      }\n      (0, _object.set)(account, 'children', []);\n      if (!(0, _utils.isEmpty)(children)) {\n        children.forEach(child => {\n          // Add to list of children\n          (0, _object.get)(account, 'children').pushObject(child);\n\n          // Remove from top level\n          parents.removeObject(child);\n        });\n\n        // Populate child's children\n        (0, _object.set)(account, 'children', nest((0, _object.get)(account, 'children'), accounts, idKey));\n      }\n    });\n    return _lodash.default.compact(parents);\n  }\n});","define(\"portal/utils/network-errors\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = networkErrors;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function networkErrors(err) {\n    if ((0, _object.get)(err, 'status') === 0) {\n      this.send('connectionError');\n      return true;\n    }\n    if ((0, _object.get)(err, 'status') >= 500) {\n      this.send('serverError');\n      return true;\n    }\n    return false;\n  }\n});","define(\"portal/utils/oidc-config\", [\"exports\", \"portal/config/environment\", \"oidc-client-ts\"], function (_exports, _environment, _oidcClientTs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.userManager = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\",0,\"oidc-client-ts\"eaimeta@70e063a35619d71f\n  const oidcConfig = _environment.default.oidc;\n  const userManager = _exports.userManager = new _oidcClientTs.UserManager({\n    authority: oidcConfig.authenticationURL,\n    client_id: oidcConfig.applicationName,\n    redirect_uri: `${window.location.origin}/login-redirect`,\n    response_type: oidcConfig.responseType,\n    scope: oidcConfig.requestedScopes,\n    automaticSilentRenew: false,\n    // we use a manual renew due to poor multi tab support in this library\n    silent_redirect_uri: `${window.location.origin}/renew-redirect.html`,\n    popup_redirect_uri: `${window.location.origin}/login-redirect`,\n    post_logout_redirect_uri: `${window.location.origin}/logout-redirect`,\n    // for cross tab support use local storage instead of the default session storage on the window\n    userStore: new _oidcClientTs.WebStorageStateStore({\n      store: localStorage\n    }),\n    stateStore: new _oidcClientTs.WebStorageStateStore({\n      store: localStorage\n    })\n  });\n});","define(\"portal/utils/parse-currency-string\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = parseMoneyString;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function parseMoneyString(string) {\n    if (string && string.length) {\n      return parseFloat(string.replace(/[^-0-9.]+/g, ''));\n    } else {\n      return 0;\n    }\n  }\n});","define(\"portal/utils/path-resolver\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = pathResolver;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  const cache = {};\n\n  /**\n   * what\n   * If the url given is not an absolute path, then it considered to be\n   * a relative one, following the same rules an anchor tag would on the\n   * page that is currently being viewed.\n   * @param {String} url\n   * @returns {String}\n   */\n  function pathResolver(url) {\n    if (cache[url]) return cache[url]; // Memoize as create element is slow\n\n    const link = document.createElement('a');\n    link.href = url;\n    // Remove any trailing slashes as a matter of convention.\n    const result = link.href.replace(/\\/$/, '');\n    cache[url] = result; // Memoize\n    return result;\n  }\n});","define(\"portal/utils/placemakers-bill-csv-normalizer\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.NORMALIZED_PLACEMAKERS_HEADERS = void 0;\n  _exports.default = normalizePlaceMakersBillCsv;\n  _exports.isPlaceMakersBillCsv = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  const PLACEMAKERS_BILL_HEADER = ['H', 'Branch', 'Branch Name', 'Parent Account', 'Account Code', 'Customer Name', 'Date', 'Customer Order Number', 'Transaction number', 'Transaction type (IN/CR)', 'Packing Slip Number', 'Freight Amount(excl GST)', 'Total including GST', 'GST Total'];\n  const PLACEMAKERS_ITEM_HEADER = ['D', 'Line number', 'Product Code (Suppliers)', 'Description', 'Qty Supplied', 'Unit', 'Unit Rate', 'Extended Line Total (excluding GST)', 'GST Rate %', 'GST Amount'];\n  const NORMALIZED_PLACEMAKERS_HEADERS = _exports.NORMALIZED_PLACEMAKERS_HEADERS = ['Invoice Number', 'Issue Date', 'Due Date', 'Customer Reference', 'Code', 'Description', 'Unit Price', 'Quantity'];\n  const rowStartsWith = (row = [], expectedHeaders = []) => expectedHeaders.every((header, index) => row[index] === header);\n  const isPlaceMakersBillCsv = (csv = []) => rowStartsWith(csv[0], PLACEMAKERS_BILL_HEADER) && rowStartsWith(csv[1], PLACEMAKERS_ITEM_HEADER);\n  _exports.isPlaceMakersBillCsv = isPlaceMakersBillCsv;\n  function normalizePlaceMakersBillCsv(csv = []) {\n    if (!isPlaceMakersBillCsv(csv)) return csv;\n    const normalizedRows = [NORMALIZED_PLACEMAKERS_HEADERS];\n    let currentBill = null;\n    csv.slice(2).forEach(row => {\n      if (row[0] === 'H') {\n        currentBill = row;\n        // PlaceMakers stores freight in the bill header, so adding it as a line item.\n        if (Number(currentBill[11])) {\n          normalizedRows.push([currentBill[8], currentBill[6], currentBill[14], currentBill[7], '', 'Freight', currentBill[11], '1']);\n        }\n        return;\n      }\n      if (row[0] !== 'D' || !currentBill) return;\n      normalizedRows.push([currentBill[8], currentBill[6], currentBill[14], currentBill[7], row[2], row[3], row[6], row[4]]);\n    });\n    return normalizedRows;\n  }\n});","define(\"portal/utils/platform\", [\"exports\", \"portal/config/environment\"], function (_exports, _environment) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.BRANDING = void 0;\n  _exports.getDefaultPlatform = getDefaultPlatform;\n  _exports.getPlatforms = getPlatforms;\n  0; //eaimeta@70e063a35619d71f0,\"portal/config/environment\"eaimeta@70e063a35619d71f\n  const BRANDING = _exports.BRANDING = {\n    MIRAGE: {\n      brand: 'Mirage',\n      logo: '/assets/images/logos/mirage-b22f30700af826c1fd3ff142a9e7be0f.png',\n      fullLogo: '/assets/images/logos/mirage-b22f30700af826c1fd3ff142a9e7be0f.png',\n      favicon: '/assets/images/logos/mirage-b22f30700af826c1fd3ff142a9e7be0f.png',\n      entityBrandEnum: undefined\n    },\n    OTBS: {\n      brand: 'OTBS',\n      logo: '/assets/images/logos/otbs-56a7571b3aaac8d0fffcb0a36304b743.png',\n      fullLogo: '/assets/images/logos/otbs-56a7571b3aaac8d0fffcb0a36304b743.png',\n      favicon: '/assets/images/logos/otbs-56a7571b3aaac8d0fffcb0a36304b743.png',\n      entityBrandEnum: undefined\n    },\n    STEP: {\n      brand: 'Step Accounts',\n      logo: '/assets/images/logos/step-6d552db468d48acf786adc029424651a.png',\n      fullLogo: '/assets/images/logos/step-6d552db468d48acf786adc029424651a.png',\n      favicon: '/assets/images/logos/step-6d552db468d48acf786adc029424651a.png',\n      entityBrandEnum: 'STEP'\n    },\n    TPB: {\n      brand: 'TPB',\n      logo: '/assets/images/logos/tpb-34e3e21517fc4699c5cb27b5e9b4f7ab.png',\n      fullLogo: '/assets/images/logos/tpb-34e3e21517fc4699c5cb27b5e9b4f7ab.png',\n      favicon: '/assets/images/logos/tpb-34e3e21517fc4699c5cb27b5e9b4f7ab.png',\n      entityBrandEnum: 'TPB'\n    },\n    APB: {\n      brand: 'APB',\n      logo: '/assets/images/logos/apb-74eaa7ce4230c00d67fed100d00b2d8e.svg',\n      fullLogo: '/assets/images/logos/apb-74eaa7ce4230c00d67fed100d00b2d8e.svg',\n      favicon: '/assets/images/logos/apb-74eaa7ce4230c00d67fed100d00b2d8e.svg',\n      entityBrandEnum: 'APB'\n    },\n    BUILDA_PRICE: {\n      brand: 'Builda Price',\n      logo: '/assets/images/logos/builda-price-7b6987b04f25f2261166dc83c687ea9b.svg',\n      fullLogo: '/assets/images/logos/builda-price-full-ff552901c19bf3fc4d14a1f9819274fa.svg',\n      favicon: '/assets/images/logos/builda-price-7b6987b04f25f2261166dc83c687ea9b.svg',\n      entityBrandEnum: 'BUILDA_PRICE'\n    },\n    ITM: {\n      brand: 'ITM',\n      logo: '/assets/images/logos/itm-9e1f4c3b59c9c650c0f52c6eabe2593b.svg',\n      fullLogo: '/assets/images/logos/itm-9e1f4c3b59c9c650c0f52c6eabe2593b.svg',\n      favicon: '/assets/images/logos/itm-9e1f4c3b59c9c650c0f52c6eabe2593b.svg',\n      entityBrandEnum: 'ITM'\n    },\n    ATTENTION_SAFETY: {\n      brand: 'Attention Safety',\n      logo: '/assets/images/logos/attention-safety-c455aba989887566a82c8ac4d53c4410.svg',\n      fullLogo: '/assets/images/logos/attention-safety-full-50259a0b942c7c43389c731ad3822e2f.svg',\n      favicon: '/assets/images/logos/attention-safety-c455aba989887566a82c8ac4d53c4410.svg',\n      entityBrandEnum: 'ATTENTION_SAFETY'\n    },\n    STEP_UP: {\n      brand: 'Step Up Projects',\n      logo: '/assets/images/logos/step-up-f8e09b12ca9d649063bbc554f7eb4bfa.svg',\n      fullLogo: '/assets/images/logos/step-up-full-041f1bee99cad4708c3ccfd93e5a9f17.svg',\n      favicon: '/assets/images/logos/step-up-f8e09b12ca9d649063bbc554f7eb4bfa.svg',\n      entityBrandEnum: 'STEP_UP'\n    }\n  };\n  function getPlatforms() {\n    const host = window.location.host;\n    const defaultPlatforms = {\n      MIRAGE: {\n        logo: BRANDING.MIRAGE.logo,\n        fullLogo: BRANDING.MIRAGE.logo,\n        name: 'Platform name',\n        favicon: BRANDING.MIRAGE.favicon,\n        entityBrandEnum: BRANDING.MIRAGE.entityBrandEnum\n      },\n      OTBS: {\n        logo: BRANDING.OTBS.logo,\n        fullLogo: BRANDING.OTBS.logo,\n        name: 'Platform name',\n        favicon: BRANDING.OTBS.favicon,\n        entityBrandEnum: BRANDING.OTBS.entityBrandEnum\n      },\n      STEP: {\n        logo: BRANDING.STEP.logo,\n        fullLogo: BRANDING.STEP.logo,\n        name: 'Step Accounts Portal',\n        favicon: BRANDING.STEP.favicon,\n        entityBrandEnum: BRANDING.STEP.entityBrandEnum\n      },\n      APB: {\n        logo: BRANDING.APB.logo,\n        fullLogo: BRANDING.APB.logo,\n        name: 'APB - Builda Price Portal',\n        favicon: BRANDING.APB.favicon,\n        entityBrandEnum: BRANDING.APB.entityBrandEnum\n      },\n      TPB: {\n        logo: BRANDING.TPB.logo,\n        fullLogo: BRANDING.TPB.logo,\n        name: 'TPB - Builda Price Portal',\n        favicon: BRANDING.TPB.favicon,\n        entityBrandEnum: BRANDING.TPB.entityBrandEnum\n      },\n      BUILDA_PRICE: {\n        logo: BRANDING.BUILDA_PRICE.logo,\n        fullLogo: BRANDING.BUILDA_PRICE.fullLogo,\n        name: 'Builda Price Portal',\n        favicon: BRANDING.BUILDA_PRICE.favicon,\n        entityBrandEnum: BRANDING.BUILDA_PRICE.entityBrandEnum\n      },\n      ITM: {\n        logo: BRANDING.ITM.logo,\n        fullLogo: BRANDING.ITM.logo,\n        name: 'Step Accounts Portal',\n        favicon: BRANDING.ITM.favicon,\n        entityBrandEnum: BRANDING.ITM.entityBrandEnum\n      },\n      ATTENTION_SAFETY: {\n        logo: BRANDING.ATTENTION_SAFETY.logo,\n        fullLogo: BRANDING.ATTENTION_SAFETY.fullLogo,\n        name: 'Attention Safety Portal',\n        favicon: BRANDING.ATTENTION_SAFETY.favicon,\n        entityBrandEnum: BRANDING.ATTENTION_SAFETY.entityBrandEnum\n      },\n      STEP_UP: {\n        logo: BRANDING.STEP_UP.logo,\n        fullLogo: BRANDING.STEP_UP.fullLogo,\n        name: 'Step Up Projects',\n        favicon: BRANDING.STEP_UP.favicon,\n        entityBrandEnum: BRANDING.STEP_UP.entityBrandEnum\n      }\n    };\n    let authenticationUrl = _environment.default.urls.authenticationUrl;\n    let apiUrl = _environment.default.urls.authenticationUrl;\n\n    // these only need overwriting on some domains\n    switch (host) {\n      case 'portal.step.nz':\n        authenticationUrl = 'https://auth.step.nz';\n        apiUrl = 'https://portal.step.nz';\n        break;\n      case 'my.buildaprice.app':\n        authenticationUrl = 'https://auth.buildaprice.app';\n        break;\n      case 'apb.buildaprice.app':\n        authenticationUrl = 'https://auth.buildaprice.app';\n        break;\n      case 'my.stepupprojects.com':\n        authenticationUrl = 'https://auth.step.nz';\n        apiUrl = 'https://my.stepupprojects.com';\n        break;\n    }\n    const outputPlatforms = {};\n    for (const [name, details] of Object.entries(defaultPlatforms)) outputPlatforms[name] = {\n      ...details,\n      authenticationUrl,\n      apiUrl\n    };\n    return outputPlatforms;\n  }\n  function getDefaultPlatform() {\n    const host = window.location.host;\n    const platforms = getPlatforms();\n    let platform = _environment.default.useMirage ? platforms.MIRAGE : platforms.OTBS;\n    switch (host) {\n      case 'portal.step.nz':\n      case 'staging.portal.step.nz':\n        platform = platforms.STEP;\n        break;\n      case 'my.buildaprice.app':\n      case 'staging.buildaprice.app':\n        platform = platforms.BUILDA_PRICE;\n        break;\n      case 'apb.buildaprice.app':\n        platform = platforms.APB;\n        break;\n      case 'my.stepupprojects.com':\n      case 'staging.stepupprojects.com':\n        platform = platforms.STEP_UP;\n        break;\n    }\n    return platform;\n  }\n});","define(\"portal/utils/profit-margin\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.calculatePercentage = calculatePercentage;\n  _exports.calculateValue = calculateValue;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function calculateValue(profitType, value, percentage) {\n    switch (profitType) {\n      case 'MARGIN':\n        // if margin check percentage is less that 1\n        if (percentage >= 1) return 0;\n        return Number((value / (1 - percentage)).toFixed(2));\n      case 'MARKUP':\n        return Number((value * percentage + value).toFixed(2));\n      default:\n        throw new Error(`Invalid profit type: ${profitType}`);\n    }\n  }\n  function calculatePercentage(profitType, Numerator, Denominator) {\n    if (Number(Denominator) === 0) return 0;\n    switch (profitType) {\n      case 'MARGIN':\n        return Number(1 - Numerator / (Denominator || Infinity));\n      case 'MARKUP':\n        return Number((Denominator - Numerator) / (Numerator || Infinity));\n      default:\n        throw new Error(`Invalid profit type: ${profitType}`);\n    }\n  }\n});","define(\"portal/utils/report-builder-attachments-bundle\", [\"exports\", \"portal/utils/download\", \"portal/config/environment\", \"jquery\"], function (_exports, _download, _environment, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = downloadAttachmentsBundle;\n  0; //eaimeta@70e063a35619d71f0,\"portal/utils/download\",0,\"portal/config/environment\",0,\"jquery\"eaimeta@70e063a35619d71f\n  async function downloadAttachmentsBundle(reportData) {\n    const materialHrefs = getAttachmentHrefs(reportData.materialInvoices);\n    const subcontractorHrefs = getAttachmentHrefs(reportData.subcontractorInvoices);\n    if (![...materialHrefs, ...subcontractorHrefs].length) return;\n    const archiveDescription = {\n      name: 'attachments',\n      contents: []\n    };\n    if (materialHrefs.length) archiveDescription.contents.push({\n      name: 'Materials',\n      contents: materialHrefs\n    });\n    if (subcontractorHrefs.length) archiveDescription.contents.push({\n      name: 'Subcontractors',\n      contents: subcontractorHrefs\n    });\n    const zipBlob = await getZipBlob(archiveDescription);\n    (0, _download.download)(zipBlob, 'attachments.zip', 'application/zip');\n  }\n  function getAttachmentHrefs(invoiceWrapper) {\n    return invoiceWrapper.reduce((hrefs, wrapper) => {\n      const attachments = wrapper.invoice.myAttachments || [];\n      return [...hrefs, ...attachments.map(attachment => attachment.href)];\n    }, []);\n  }\n  function getZipBlob(archiveDescription) {\n    return new Promise((resolve, reject) => _jquery.default.ajax({\n      url: _environment.default.urls.api + _environment.default.urls.apiV2Path + '/files/zip',\n      method: 'POST',\n      data: JSON.stringify(archiveDescription),\n      contentType: 'application/json',\n      xhr() {\n        // This seems to be the only way to set the response type to blob.\n        // This will allow js to leave the file as a bytestream rather than trying to parse it.\n        const xhr = new XMLHttpRequest();\n        xhr.responseType = 'blob';\n        return xhr;\n      }\n    }).then(resolve, reject));\n  }\n});","define(\"portal/utils/report-builder-mark-as-reported\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.clearSelectedResources = clearSelectedResources;\n  _exports.confirmMarkAsReported = confirmMarkAsReported;\n  _exports.markSelectedItemsAsReported = markSelectedItemsAsReported;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  async function markSelectedItemsAsReported(reportData, notifications) {\n    const reportedResourcesSummary = getReportedResourcesSummary(reportData);\n    if (reportedResourcesSummary.resourcesToTrack.length) {\n      await markItemsAsReported(reportedResourcesSummary.resourcesToTrack);\n      notifications.success(`${reportedResourcesSummary.resourcesToTrack.length} ${reportedResourcesSummary.resourcesToTrack.length > 1 ? 'items have' : 'item has'} been tracked.`); // eslint-disable-line\n    } else {\n      notifications.info('All items were already marked \"Reported\".');\n    }\n  }\n  function confirmMarkAsReported(reportData) {\n    const reportedResourcesSummary = getReportedResourcesSummary(reportData);\n\n    // If there are items in the report that have previously been exported ask the user if they wish to continue\n    if (reportedResourcesSummary.previouslyReportedResources.length) {\n      return confirm(`You are about to run a report with ${reportedResourcesSummary.previouslyReportedResources.length} previously reported ${reportedResourcesSummary.previouslyReportedResources.length > 1 ? 'items' : 'item'}. Do you wish to continue?`); // eslint-disable-line\n    }\n    return true;\n  }\n  function markItemsAsReported(resourcesToTrack) {\n    // Mark the selected resources as reported and save them\n    return Promise.all(resourcesToTrack.map(item => {\n      item.reported = true;\n      return item.save();\n    }));\n  }\n  function clearSelectedResources(reportData) {\n    const invoices = [...reportData.materialInvoices, ...reportData.labourInvoices, ...reportData.subcontractorInvoices];\n    invoices.forEach(invoice => invoice.items.forEach(item => (0, _object.set)(item, 'selected', false)));\n    reportData.workers.forEach(workerWrapper => workerWrapper.timesheets.forEach(timesheet => (0, _object.set)(timesheet, 'selected', false)));\n  }\n  function getReportedResourcesSummary(reportData) {\n    // Resources which need to be marked as reported and then saved.\n    const resourcesToTrack = [];\n    // Resources that were already marked as 'reported'.\n    const previouslyReportedResources = [];\n    // Takes a list of resources and sorts the selected ones by whether they had been previously reported or not\n    const sortReportedResources = resources => {\n      resources.filterBy('selected').forEach(resource => {\n        if (resource.reported) {\n          previouslyReportedResources.push(resource);\n        } else {\n          resourcesToTrack.push(resource);\n        }\n      });\n    };\n\n    // Sort all the selected invoice items and timesheets\n    [...reportData.materialInvoices, ...reportData.labourInvoices, ...reportData.subcontractorInvoices].forEach(invoice => sortReportedResources(invoice.items));\n    reportData.workers.filter(workerWrapper => workerWrapper.allSelected || workerWrapper.partSelected).forEach(worker => sortReportedResources(worker.timesheets));\n    return {\n      resourcesToTrack,\n      previouslyReportedResources\n    };\n  }\n});","define(\"portal/utils/report-builder\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.getTimesheetTotal = getTimesheetTotal;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function getTimesheetTotal(timesheet, useChargeOutRates, currentChargeOutRate) {\n    if ((0, _object.get)(timesheet, 'id')) {\n      if (useChargeOutRates && currentChargeOutRate != null) return currentChargeOutRate * (0, _object.get)(timesheet, 'hours');else if (useChargeOutRates) return (0, _object.get)(timesheet, 'totals.chargeOutTotal');else return (0, _object.get)(timesheet, 'totals.costTotal');\n    } else {\n      return (0, _object.get)(timesheet, 'currentChargeOutRate') * (0, _object.get)(timesheet, 'hours') || 0;\n    }\n  }\n});","define(\"portal/utils/sanitize-filename\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = sanitize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * Extracted from node-sanitize (https://github.com/parshap/node-sanitize-filename/blob/master/index.js)\n   *\n   * Replaces characters in strings that are illegal/unsafe for filenames.\n   * Unsafe characters are either removed or replaced by a substitute set\n   * in the optional `options` object.\n   *\n   * Illegal Characters on Various Operating Systems\n   * / ? < > \\ : * | \"\n   * https://kb.acronis.com/content/39790\n   *\n   * Unicode Control codes\n   * C0 0x00-0x1f & C1 (0x80-0x9f)\n   * http://en.wikipedia.org/wiki/C0_and_C1_control_codes\n   *\n   * Reserved filenames on Unix-based systems (\".\", \"..\")\n   * Reserved filenames in Windows (\"CON\", \"PRN\", \"AUX\", \"NUL\", \"COM1\",\n   * \"COM2\", \"COM3\", \"COM4\", \"COM5\", \"COM6\", \"COM7\", \"COM8\", \"COM9\",\n   * \"LPT1\", \"LPT2\", \"LPT3\", \"LPT4\", \"LPT5\", \"LPT6\", \"LPT7\", \"LPT8\", and\n   * \"LPT9\") case-insesitively and with or without filename extensions.\n   *\n   * Capped at 255 characters in length.\n   * http://unix.stackexchange.com/questions/32795/what-is-the-maximum-allowed-filename-and-folder-size-with-ecryptfs\n   *\n   * @param  {String} input      Original filename\n   * @param  {String} substitute Characters to replace illegals\n   * @return {String}            Sanitized filename\n   */\n\n  const illegal = /[\\/\\?<>\\\\:\\*\\|\":]/g;\n  const control = /[\\x00-\\x1f\\x80-\\x9f]/g; // eslint-disable-line no-control-regex\n  const reserved = /^\\.+$/;\n  const windowsReserved = /^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\\..*)?$/i;\n  const nonAsciiChars = /[^\\x00-\\x7F]/g;\n  function sanitize(input, replacement = '') {\n    const sanitized = input.replace(illegal, replacement).replace(control, replacement).replace(reserved, replacement).replace(windowsReserved, replacement).replace(nonAsciiChars, replacement).slice(-255);\n    return sanitized;\n  }\n});","define(\"portal/utils/search-filter\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = searchTermToFilter;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function searchTermToFilter(fields, term, opKey = 'op') {\n    const filter = {\n      and: []\n    };\n    const words = term.split(' ');\n    for (const word of words) {\n      const group = {\n        or: []\n      };\n      for (const field of fields) {\n        group.or.push({\n          field,\n          [opKey]: 'ILIKE',\n          value: word\n        });\n      }\n      filter.and.push(group);\n    }\n    return filter;\n  }\n});","define(\"portal/utils/search-term-escape\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.searchTermEscape = searchTermEscape;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  function searchTermEscape(value) {\n    return value.replace(/\\\\/g, '\\\\\\\\').replace(/%/g, '\\\\%').replace(/_/g, '\\\\_');\n  }\n});","define(\"portal/utils/smart-payroll-csv-generator\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.generateSmartPayrollCSV = generateSmartPayrollCSV;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * Takes worker details and returns a 2D array for Smartly\n   * @param {Array} workers - An array of objects with smartly employee ids and timesheet day totals\n   * @returns {Array} - A 2D array in the Smartly CSV format\n   */\n  function generateSmartPayrollCSV(workers) {\n    const table = workers.map(buildRow);\n    return table;\n  }\n  function buildRow(worker) {\n    const {\n      smartPayrollEmployeeCode,\n      dayTotals,\n      smartPayrollEmployeeDepartmentCode\n    } = worker;\n    const periodLength = dayTotals.length;\n    const totalHourForPeriod = dayTotals.reduce((t, {\n      totalHours\n    }) => t += totalHours, 0);\n    return ['#50',\n    // Line Style: Will always be \"#50\".\n    smartPayrollEmployeeCode,\n    // Employee ID: This is the Smartly employee ID, by default, it is the employees initials.\n    1,\n    // Pay Rate ID: Enum for type of hours worked. Will be \"1\" for regular hours.\n    totalHourForPeriod,\n    // Unit (hours): The total number of hours worked for the export.\n    smartPayrollEmployeeDepartmentCode,\n    // Dept Quick Ref\n    periodLength // Days Paid: The total number of days worked - can not be empty, must be \"0\".\n    ];\n  }\n});","define(\"portal/utils/sort-accounts\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = sortAccounts;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function sortAccounts(accounts = [], sortKey = 'sortIndex', categoryKey = 'category') {\n    const profitAndLoss = [];\n    const balanceSheet = [];\n    const other = [];\n    accounts.forEach(target => {\n      const category = (0, _object.get)(target, categoryKey);\n      switch (category) {\n        case 'profit-and-loss':\n          profitAndLoss.push(target);\n          break;\n        case 'balance-sheet':\n          balanceSheet.push(target);\n          break;\n        default:\n          other.push(target);\n      }\n    });\n    return [...profitAndLoss.sortBy(sortKey), ...balanceSheet.sortBy(sortKey), ...other.sortBy(sortKey)];\n  }\n});","define(\"portal/utils/sort-by-account-code\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = sortByAccountCode;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function sortByAccountCode(a, b) {\n    const aSystem = (0, _object.get)(a, 'system');\n    const aString = (0, _object.get)(a, 'code');\n    const bSystem = (0, _object.get)(b, 'system');\n    const bString = (0, _object.get)(b, 'code');\n    if (aSystem.indexOf('myob') > -1 && bSystem.indexOf('myob') > -1) {\n      const aCategory = parseInt(aString, 10);\n      const bCategory = parseInt(bString, 10);\n      const categoryComparison = compare(aCategory, bCategory);\n      if (categoryComparison) {\n        return categoryComparison;\n      }\n      const aCode = parseInt(aString.split(/[-\\/]/)[1], 10);\n      const bCode = parseInt(bString.split(/[-\\/]/)[1], 10);\n      return compare(aCode, bCode);\n    } else {\n      const aCode = Number(aString);\n      const bCode = Number(bString);\n      return compare(aCode, bCode);\n    }\n  }\n  function compare(a, b) {\n    return a < b ? -1 : b < a ? 1 : 0;\n  }\n});","define(\"portal/utils/string-similarity\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.compareTwoStrings = compareTwoStrings;\n  _exports.findBestMatch = findBestMatch;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  // https://www.npmjs.com/package/string-similarity\n  function compareTwoStrings(first, second) {\n    // eslint-disable-line complexity\n    first = first.replace(/\\s+/g, '');\n    second = second.replace(/\\s+/g, '');\n    if (!first.length && !second.length) return 1; // if both are empty strings\n    if (!first.length || !second.length) return 0; // if only one is empty string\n    if (first === second) return 1; // identical\n    if (first.length === 1 && second.length === 1) return 0; // both are 1-letter strings\n    if (first.length < 2 || second.length < 2) return 0; // if either is a 1-letter string\n\n    const firstBigrams = new Map();\n    for (let i = 0; i < first.length - 1; i++) {\n      const bigram = first.substring(i, i + 2);\n      const count = firstBigrams.has(bigram) ? firstBigrams.get(bigram) + 1 : 1;\n      firstBigrams.set(bigram, count);\n    }\n    let intersectionSize = 0;\n    for (let i = 0; i < second.length - 1; i++) {\n      const bigram = second.substring(i, i + 2);\n      const count = firstBigrams.has(bigram) ? firstBigrams.get(bigram) : 0;\n      if (count > 0) {\n        firstBigrams.set(bigram, count - 1);\n        intersectionSize++;\n      }\n    }\n    return 2.0 * intersectionSize / (first.length + second.length - 2);\n  }\n  function findBestMatch(mainString, targetStrings) {\n    if (!areArgsValid(mainString, targetStrings)) {\n      throw new Error('Bad arguments: First argument should be a string, second should be an array of strings');\n    }\n    const ratings = [];\n    let bestMatchIndex = 0;\n    for (let i = 0; i < targetStrings.length; i++) {\n      const currentTargetString = targetStrings[i];\n      const currentRating = compareTwoStrings(mainString, currentTargetString);\n      ratings.push({\n        target: currentTargetString,\n        rating: currentRating\n      });\n      if (currentRating > ratings[bestMatchIndex].rating) {\n        bestMatchIndex = i;\n      }\n    }\n    const bestMatch = ratings[bestMatchIndex];\n    return {\n      ratings: ratings,\n      bestMatch: bestMatch,\n      bestMatchIndex: bestMatchIndex\n    };\n  }\n  function areArgsValid(mainString, targetStrings) {\n    if (typeof mainString !== 'string') return false;\n    if (!Array.isArray(targetStrings)) return false;\n    if (!targetStrings.length) return false;\n    if (targetStrings.find(function (s) {\n      return typeof s !== 'string';\n    })) return false;\n    return true;\n  }\n});","define(\"portal/utils/sums\", [\"exports\", \"@ember/object\"], function (_exports, _object) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.sum = sum;\n  _exports.sumBy = sumBy;\n  _exports.sumByProducts = sumByProducts;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\"eaimeta@70e063a35619d71f\n  function sum(object, ...keys) {\n    return keys.reduce((total, key) => {\n      const number = Number((0, _object.get)(object, key));\n      return isNaN(number) ? total : total + number;\n    }, 0);\n  }\n  function sumBy(array, key) {\n    // map + get rather than Ember's mapBy: this module is reached without the\n    // application having booted, and the array prototype extensions are not\n    // installed until it has.\n    return array.map(item => (0, _object.get)(item, key)).reduce((total, value) => {\n      const number = Number(value);\n      return isNaN(number) ? total : total + number;\n    }, 0);\n  }\n  function sumByProducts(array, ...keys) {\n    return array.reduce((total, element) => {\n      const product = keys.reduce((prod, key) => prod * Number((0, _object.get)(element, key)), 1);\n      return isNaN(product) ? total : total + product;\n    }, 0);\n  }\n});","define(\"portal/utils/task-templates\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = [{\n    name: 'Comprehensive',\n    items: [{\n      name: 'Preliminaries',\n      items: [{\n        name: 'Preliminary & generals'\n      }, {\n        name: 'Home warranty insurance'\n      }, {\n        name: 'Builders risk insurance'\n      }, {\n        name: 'General liability insurance'\n      }, {\n        name: 'Site management'\n      }, {\n        name: 'Administration'\n      }, {\n        name: 'Hoarding'\n      }, {\n        name: 'Health & safety'\n      }, {\n        name: 'Design'\n      }, {\n        name: 'Tree / vine protection'\n      }, {\n        name: 'Scaffolding'\n      }, {\n        name: 'Soil test & report'\n      }, {\n        name: 'Engineering fees'\n      }, {\n        name: 'Energy report'\n      }, {\n        name: 'Survey'\n      }, {\n        name: 'Retaining wall works'\n      }, {\n        name: 'Utility service'\n      }, {\n        name: 'Termite protection'\n      }, {\n        name: 'Amenity / toilet hire'\n      }, {\n        name: 'Tool & equipment hire'\n      }, {\n        name: 'Miscellaneous expense'\n      }, {\n        name: 'Crane hire'\n      }, {\n        name: 'Waste removal',\n        items: [{\n          name: 'Skip hire'\n        }]\n      }, {\n        name: 'Project management'\n      }, {\n        name: 'Permits'\n      }, {\n        name: 'Site visits'\n      }, {\n        name: 'Delivery fees'\n      }, {\n        name: 'Temporary fencing'\n      }, {\n        name: 'Site security'\n      }, {\n        name: 'Overheads'\n      }]\n    }, {\n      name: 'Demolition'\n    }, {\n      name: 'Excavation & foundations',\n      items: [{\n        name: 'Excavation & earth works'\n      }, {\n        name: 'Soil removal'\n      }]\n    }, {\n      name: 'Concrete',\n      items: [{\n        name: 'Termite protection'\n      }]\n    }, {\n      name: 'Structural steel',\n      items: [{\n        name: 'Structural steel'\n      }]\n    }, {\n      name: 'Carpentry',\n      items: [{\n        name: 'Framing'\n      }, {\n        name: 'Lock up'\n      }, {\n        name: 'Fixing'\n      }, {\n        name: 'Fit-off'\n      }, {\n        name: 'Doors',\n        items: [{\n          name: 'Architraves'\n        }]\n      }, {\n        name: 'Skirting'\n      }, {\n        name: 'Project'\n      }, {\n        name: 'Stairs',\n        items: [{\n          name: 'Supply & install'\n        }, {\n          name: 'Labour to assist install'\n        }]\n      }]\n    }, {\n      name: 'External cladding',\n      items: [{\n        name: 'Rendering works'\n      }, {\n        name: 'External wall cladding'\n      }]\n    }, {\n      name: 'Masonry',\n      items: [{\n        name: 'Masonry supply'\n      }, {\n        name: 'Masonry'\n      }, {\n        name: 'Masonry sundries'\n      }, {\n        name: 'Bring cleaner'\n      }]\n    }, {\n      name: 'Joinery',\n      items: [{\n        name: 'Joinery'\n      }, {\n        name: 'Stone benchtops'\n      }]\n    }, {\n      name: 'Roofing',\n      items: [{\n        name: 'Roofing'\n      }]\n    }, {\n      name: 'Windows',\n      items: [{\n        name: 'Supply & install'\n      }]\n    }, {\n      name: 'Glazing',\n      items: [{\n        name: 'Shower screen & mirrors'\n      }, {\n        name: 'Balustrading'\n      }]\n    }, {\n      name: 'Plastering',\n      items: [{\n        name: 'Plastering'\n      }, {\n        name: 'Gib stopping'\n      }, {\n        name: 'Plaster & GIB'\n      }]\n    }, {\n      name: 'Insulation',\n      items: [{\n        name: 'Supply & install'\n      }]\n    }, {\n      name: 'Heating & cooling',\n      items: [{\n        name: 'Heat pump supply & install'\n      }]\n    }, {\n      name: 'Drainage & plumbing',\n      items: [{\n        name: 'Drainage'\n      }, {\n        name: 'Stormwater'\n      }, {\n        name: 'Plumbing fittings & fixtures'\n      }, {\n        name: 'Watertank'\n      }, {\n        name: 'Septictank'\n      }]\n    }, {\n      name: 'Appliances',\n      items: [{\n        name: 'Kitchen'\n      }, {\n        name: 'Laundry'\n      }]\n    }, {\n      name: 'Electrical',\n      items: [{\n        name: 'General electrical'\n      }, {\n        name: 'Lighting supply & switches'\n      }, {\n        name: 'Alarm / intercom / security system'\n      }, {\n        name: 'Sound system'\n      }]\n    }, {\n      name: 'Painting',\n      items: [{\n        name: 'Internal painting'\n      }, {\n        name: 'External painting'\n      }]\n    }, {\n      name: 'Tiling & waterproofing',\n      items: [{\n        name: 'Tiling bathroom'\n      }, {\n        name: 'Tiling kitchen'\n      }, {\n        name: 'Tiling laundry'\n      }, {\n        name: 'Waterproofing'\n      }]\n    }, {\n      name: 'Final fit off & finishing',\n      items: [{\n        name: 'Garage door'\n      }, {\n        name: 'Caulking'\n      }, {\n        name: 'Cleaning'\n      }, {\n        name: 'Upholstery'\n      }, {\n        name: 'Blinds'\n      }]\n    }, {\n      name: 'Floor finishes',\n      items: [{\n        name: 'Carpet'\n      }, {\n        name: 'Flooring timber (engineered / laminate / vinyl / actual)',\n        items: [{\n          name: 'Floor s&ing'\n        }]\n      }]\n    }, {\n      name: 'External works',\n      items: [{\n        name: 'Concrete paving works',\n        items: [{\n          name: 'Driveway'\n        }, {\n          name: 'Footpaths'\n        }]\n      }, {\n        name: 'Deck',\n        items: [{\n          name: 'Deck framing'\n        }, {\n          name: 'Decking'\n        }]\n      }, {\n        name: 'Landscaping',\n        items: [{\n          name: 'Front garden'\n        }, {\n          name: 'Rear garden'\n        }]\n      }, {\n        name: 'Swimming pool',\n        items: [{\n          name: 'Pool fencing'\n        }]\n      }]\n    }, {\n      name: 'Subcontractors'\n    }, {\n      name: 'Sums'\n    }, {\n      name: 'Variations'\n    }]\n  }, {\n    name: 'Simple contract',\n    items: [{\n      name: 'Establishment',\n      items: [{\n        name: 'Preliminary & generals',\n        items: [{\n          name: 'Health & safety'\n        }, {\n          name: 'Project management'\n        }, {\n          name: 'Insurances',\n          items: [{\n            name: 'Halo guarantee'\n          }, {\n            name: 'Public liability'\n          }, {\n            name: 'Workers risk insurance'\n          }]\n        }, {\n          name: 'Toilet hire'\n        }, {\n          name: 'Rubbish removal',\n          items: [{\n            name: 'Skip bin'\n          }]\n        }, {\n          name: 'Excavation'\n        }, {\n          name: 'Surveying'\n        }, {\n          name: 'Scaffolding'\n        }, {\n          name: 'Hoardings'\n        }, {\n          name: 'Temporary fencing'\n        }, {\n          name: 'Power supply'\n        }, {\n          name: 'Water supply'\n        }, {\n          name: 'Administration'\n        }, {\n          name: 'Overheads'\n        }]\n      }, {\n        name: 'Consent applications'\n      }, {\n        name: 'Special materials procurement'\n      }]\n    }, {\n      name: 'Floor down',\n      items: [{\n        name: 'Foundations'\n      }, {\n        name: 'Floor structure'\n      }]\n    }, {\n      name: 'Framing erected',\n      items: [{\n        name: 'Wall framing'\n      }, {\n        name: 'Roof framing'\n      }]\n    }, {\n      name: 'Roof on',\n      items: [{\n        name: 'Roof'\n      }, {\n        name: 'Fascia'\n      }, {\n        name: 'Guttering'\n      }]\n    }, {\n      name: 'Closed in',\n      items: [{\n        name: 'Doors'\n      }, {\n        name: 'Windows'\n      }, {\n        name: 'Building wrap / external ply'\n      }]\n    }, {\n      name: 'Exterior cladding',\n      items: [{\n        name: 'Cladding'\n      }]\n    }, {\n      name: 'Interior linings',\n      items: [{\n        name: 'Interior linings'\n      }, {\n        name: 'Skirtings'\n      }, {\n        name: 'Architraves'\n      }, {\n        name: 'Rooms',\n        items: [{\n          name: 'Master bedroom'\n        }, {\n          name: 'Bedroom'\n        }, {\n          name: 'Bathroom'\n        }, {\n          name: 'Ensuite'\n        }, {\n          name: 'Powder room'\n        }, {\n          name: 'Lounge'\n        }, {\n          name: 'Dining'\n        }]\n      }]\n    }, {\n      name: 'Painting & kitchen',\n      items: [{\n        name: 'Exterior painting',\n        items: [{\n          name: 'Walls'\n        }, {\n          name: 'Soffits'\n        }]\n      }, {\n        name: 'Interior painting',\n        items: [{\n          name: 'Walls'\n        }, {\n          name: 'Ceiling'\n        }, {\n          name: 'Doors'\n        }]\n      }, {\n        name: 'Kitchen cabinetry'\n      }]\n    }, {\n      name: 'Subcontractors',\n      items: [{\n        name: 'Plumbing'\n      }, {\n        name: 'Painting'\n      }, {\n        name: 'Electrical'\n      }, {\n        name: 'Flooring',\n        items: [{\n          name: 'Timber'\n        }, {\n          name: 'Carpet'\n        }]\n      }]\n    }, {\n      name: 'Sums'\n    }, {\n      name: 'Variations'\n    }]\n  }, {\n    name: 'Flat structure',\n    items: [{\n      name: 'Preliminaries & general'\n    }, {\n      name: 'Site works & establishment'\n    }, {\n      name: 'Foundations'\n    }, {\n      name: 'Timber floor system'\n    }, {\n      name: 'Concrete floor system'\n    }, {\n      name: 'Framing'\n    }, {\n      name: 'Structural steel'\n    }, {\n      name: 'Roof cladding'\n    }, {\n      name: 'Exterior wall cladding'\n    }, {\n      name: 'Exterior windows & doors'\n    }, {\n      name: 'Internal wall framing & ceiling battens'\n    }, {\n      name: 'Plumbing, electrical & insulation'\n    }, {\n      name: 'Internal ceiling & wall linings'\n    }, {\n      name: 'Interior doors & finishings'\n    }, {\n      name: 'Painting'\n    }, {\n      name: 'Tiling - bathrooms, laundry & exterior deck'\n    }, {\n      name: 'Kitchen & laundry cabinetry'\n    }, {\n      name: 'Internal fit-off'\n    }, {\n      name: 'Floor coverings & finishings'\n    }, {\n      name: 'Landscaping'\n    }, {\n      name: 'Exterior specialty finishings'\n    }, {\n      name: 'Final touches'\n    }, {\n      name: 'General'\n    }, {\n      name: 'Insurance'\n    }, {\n      name: 'Travel'\n    }, {\n      name: 'Labour'\n    }, {\n      name: 'Scaffolding'\n    }, {\n      name: 'Sums',\n      items: [{\n        name: 'Aluminium window units'\n      }, {\n        name: 'Fireplace'\n      }, {\n        name: 'Plumbing hardware & fittings'\n      }, {\n        name: 'Toilets'\n      }, {\n        name: 'Tapware, vanities etc.'\n      }, {\n        name: 'Supply of light fittings'\n      }, {\n        name: 'Wardrobes & interior cabinetry'\n      }, {\n        name: 'Internal doors'\n      }, {\n        name: 'Tiles for bathroom & utility'\n      }, {\n        name: 'Kitchen + laundry cabinets'\n      }, {\n        name: 'Kitchen appliances'\n      }, {\n        name: 'Curtains / blinds'\n      }, {\n        name: 'Shower doors'\n      }, {\n        name: 'Mirrors'\n      }, {\n        name: 'Smoke alarm'\n      }, {\n        name: 'Toilet roll holders, towel rails'\n      }, {\n        name: 'Carpet'\n      }, {\n        name: 'Garage carpet'\n      }, {\n        name: 'Driveway'\n      }, {\n        name: 'Side fences & blockwork'\n      }, {\n        name: 'Canal landscaping (excludes planting)'\n      }, {\n        name: 'Gate(s)'\n      }, {\n        name: 'T.V aerial - assume sky dish to be installed'\n      }, {\n        name: 'Clothesline'\n      }]\n    }]\n  }];\n});","define(\"portal/utils/titleize\", [\"exports\", \"ember-cli-string-helpers/utils/titleize\"], function (_exports, _titleize) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _titleize.default;\n    }\n  });\n  0; //eaimeta@70e063a35619d71f0,\"ember-cli-string-helpers/utils/titleize\"eaimeta@70e063a35619d71f\n});","define(\"portal/utils/tree-item\", [\"exports\", \"lodash\", \"@glimmer/tracking\", \"@ember/array\"], function (_exports, _lodash, _tracking, _array) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _class, _descriptor, _descriptor2;\n  0; //eaimeta@70e063a35619d71f0,\"lodash\",0,\"@glimmer/tracking\",0,\"@ember/array\"eaimeta@70e063a35619d71f\n  function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n  function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\n  function _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n  function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n  function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n  let TreeItem = _exports.default = (_class = class TreeItem {\n    static findItemInTree(tree, itemToFind) {\n      let match;\n      (function findItem(nodes) {\n        nodes.forEach(node => {\n          if (match) return;\n          if (node.item === itemToFind) {\n            match = node;\n          } else if (node.children) {\n            findItem(node.children);\n          }\n        });\n      })(tree);\n      return match;\n    }\n    static getPath(tree, targetBranch, labelKey = 'name') {\n      let resultPath = [];\n      function traverse(nodes, currentPath) {\n        for (const node of nodes) {\n          const label = node.item[labelKey];\n          const newPath = [...currentPath, label];\n          if (node === targetBranch || node.item === targetBranch.item) {\n            resultPath = newPath;\n            return true;\n          }\n          if (node.children && node.children.length > 0) {\n            if (traverse(node.children, newPath)) {\n              return true;\n            }\n          }\n        }\n        return false;\n      }\n      traverse(tree, []);\n      return resultPath;\n    }\n\n    // constructs a nested item tree from tasks and projects\n    static constructItemTreeFromProjectAndTasks(taskData, projectData) {\n      const projectGroupedTopLevelTasks = _lodash.default.groupBy(taskData.toArray(), task => {\n        return !task.belongsTo('parent').id() && task.belongsTo('project').id();\n      });\n      const projectItems = projectData.toArray().map(project => new TreeItem(project));\n      projectItems.forEach(container => {\n        const tasks = projectGroupedTopLevelTasks[container.item.id];\n        if (!tasks) return;\n        container.children = tasks.map(task => new TreeItem(task, 'children'));\n      });\n      return projectItems;\n    }\n\n    // constructs a nested item tree from tasks\n    static constructItemTreeFromTasks(taskData, hideInactiveTimesheetTasks, excludedTasks = []) {\n      const excludedTaskIds = new Set(excludedTasks.map(task => task.id));\n      const topTasks = taskData.toArray().filter(task => !task.belongsTo('parent').id() && !excludedTaskIds.has(task.id) && ['ACTIVE', 'DRAFT_CREATED'].includes(task.status));\n      const taskItems = (0, _array.A)(topTasks).sortBy('path').map(task => new TreeItem(task, 'children', hideInactiveTimesheetTasks, excludedTaskIds));\n      return taskItems;\n    }\n    constructor(item, childKey, hideInactiveTimesheetTasks, excludedItemIds = new Set()) {\n      _initializerDefineProperty(this, \"item\", _descriptor, this);\n      _initializerDefineProperty(this, \"children\", _descriptor2, this);\n      this.item = item;\n      if (childKey && item[childKey]) {\n        const childrenArray = (0, _array.A)(item.hasMany(childKey).value()?.toArray());\n        this.children = childrenArray.sortBy('path').filter(child => !excludedItemIds.has(child.id) && ['ACTIVE', 'DRAFT_CREATED'].includes(child.status) && (hideInactiveTimesheetTasks ? child.timesheetStatus === 'ACTIVE' : true)).map(child => new TreeItem(child, childKey, hideInactiveTimesheetTasks, excludedItemIds)) || [];\n      }\n    }\n  }, _descriptor = _applyDecoratedDescriptor(_class.prototype, \"item\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"children\", [_tracking.tracked], {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: function () {\n      return [];\n    }\n  }), _class);\n});","define(\"portal/validators/bill-item\", [\"exports\", \"ember-changeset-validations/validators\"], function (_exports, _validators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = buildBillItemValidations;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/validators\"eaimeta@70e063a35619d71f\n  function buildBillItemValidations(intl) {\n    const eitherDescriptionOrProductCode = (key, newValue, oldValue, changes, content) => {\n      const description = changes.description ?? content.description;\n      const productCode = changes.productCode ?? content.productCode;\n      if (!description && !productCode) {\n        if (key === 'description') {\n          return intl.t('validators.bill-item.Code or Description is required');\n        }\n        if (key === 'productCode') {\n          return '&nbsp;';\n        }\n      }\n      return true;\n    };\n    return {\n      description: [eitherDescriptionOrProductCode, (0, _validators.validateLength)({\n        max: 255\n      })],\n      productCode: [eitherDescriptionOrProductCode, (0, _validators.validateLength)({\n        max: 100\n      })],\n      quantity: [(0, _validators.validatePresence)(true)],\n      unitPrice: [(0, _validators.validatePresence)(true), (0, _validators.validateNumber)({\n        allowString: true,\n        gte: 0,\n        message: intl.t('validators.bill-item.Unit price cannot be negative')\n      })]\n    };\n  }\n});","define(\"portal/validators/bill\", [\"exports\", \"ember-changeset-validations/validators\"], function (_exports, _validators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.VALID_STATUSES = _exports.VALID_ALLOCATION_TYPES = _exports.UNAPPROVED_STATUSES = void 0;\n  _exports.default = buildBillValidations;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/validators\"eaimeta@70e063a35619d71f\n  const VALID_STATUSES = _exports.VALID_STATUSES = ['DRAFT', 'AWAITING_APPROVAL', 'ACCEPTED', 'ARCHIVED', 'HELD', 'PAID'];\n\n  // statuses a user without canApproveBills can move a bill between\n  const UNAPPROVED_STATUSES = _exports.UNAPPROVED_STATUSES = ['DRAFT', 'AWAITING_APPROVAL', 'HELD'];\n  const VALID_ALLOCATION_TYPES = _exports.VALID_ALLOCATION_TYPES = ['MATERIALS', 'LABOUR', 'SUBCONTRACTORS'];\n  function buildBillValidations(intl) {\n    const validateDueDate = (0, _validators.validatePresence)(true);\n    return {\n      billNumber: [(0, _validators.validatePresence)(true), (0, _validators.validateLength)({\n        max: 100\n      })],\n      issuer: [(0, _validators.validatePresence)(true)],\n      issuerContact: [(0, _validators.validatePresence)({\n        presence: true,\n        message: intl.t('validators.bill.pleaseSelectAnActualContactOrCreateOne')\n      })],\n      issueDate: [(0, _validators.validatePresence)(true)],\n      dueDate: [(key, value, oldValue, changes, content) => {\n        const billType = changes?.billType ?? content?.billType;\n        return billType === 'CREDIT_NOTE' ? true : validateDueDate(key, value, oldValue, changes, content);\n      }],\n      status: [(0, _validators.validatePresence)(true), (0, _validators.validateInclusion)({\n        list: VALID_STATUSES\n      })],\n      allocationType: [(0, _validators.validatePresence)(true), (0, _validators.validateInclusion)({\n        list: VALID_ALLOCATION_TYPES\n      })]\n    };\n  }\n});","define(\"portal/validators/ips-connection\", [\"exports\", \"ember-changeset-validations/validators\"], function (_exports, _validators) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = buildIpsConnectionValidations;\n  0; //eaimeta@70e063a35619d71f0,\"ember-changeset-validations/validators\"eaimeta@70e063a35619d71f\n  function buildIpsConnectionValidations(intl) {\n    return {\n      contactEmail: (0, _validators.validateFormat)({\n        type: 'email',\n        message: intl.t('validators.ips-connection.Please provide a valid email')\n      })\n    };\n  }\n});","define('portal/config/environment', [], function() {\n  var prefix = 'portal';\ntry {\n  var metaName = prefix + '/config/environment';\n  var rawConfig = document.querySelector('meta[name=\"' + metaName + '\"]').getAttribute('content');\n  var config = JSON.parse(decodeURIComponent(rawConfig));\n\n  var exports = { 'default': config };\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n  return exports;\n}\ncatch(err) {\n  throw new Error('Could not read config from meta tag with name \"' + metaName + '\".');\n}\n\n});\n","\n          if (!runningTests) {\n            require(\"portal/app\")[\"default\"].create({\"appVersion\":\"2.0.1\",\"name\":\"portal\",\"version\":\"2.0.0+08ea6be4\"});\n          }\n        \n"],"mappings":"AAAA;ACAAA,OAAA,gKAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GAOA,IAAAC,EAAAC,EAAAC;AAEA,SAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GAAAD,GAAAE,OAAAC,eAAAL,EAAAC,EAAA,CAAAK,WAAAJ,EAAAI,WAAAC,aAAAL,EAAAK,aAAAC,SAAAN,EAAAM,SAAAC,MAAAP,EAAAQ,YAAAR,EAAAQ,YAAAC,KAAAR,QAAA,IACA,SAAAS,EAAAZ,EAAAE,EAAAW,GAAA,OAAAX,EACA,SAAAW,GAAA,IAAAZ,EACA,SAAAY,EAAAX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AA,wBACAr0B,MAAA,OACA,CACAq0B,MAAA,2BACAr0B,MAAA,OACA,CACAq0B,MAAA,sBACAr0B,MAAA,OACA,CACAq0B,MAAA,sBACAr0B,MAAA,OACA,CACAq0B,MAAA,4BACAr0B,MAAA,OACA,CACAq0B,MAAA,qBACAr0B,MAAA,OACA,CACAq0B,MAAA,uBACAr0B,MAAA,OACA,CACAq0B,MAAA,oBACAr0B,MAAA,OACA,CACAq0B,MAAA,wBACAr0B,MAAA,OACA,CACAq0B,MAAA,2BACAr0B,MAAA,OACA,CACAq0B,MAAA,sBACAr0B,MAAA,OACA,CACAq0B,MAAA,sBACAr0B,MAAA,OACA,CACAq0B,MAAA,2BACAr0B,MAAA,OACA,CACAq0B,MAAA,4BACAr0B,MAAA,OACA,CACAq0B,MAAA,qBACAr0B,MAAA,OACA,CACAq0B,MAAA,qCACAr0B,MAAA,OACA,CACAq0B,MAAA,qBACAr0B,MAAA,OACA,CACAq0B,MAAA,uBACAr0B,MAAA,OACA,CACAq0B,MAAA,2BACAr0B,MAAA,OACA,CACAq0B,MAAA,2BACAr0B,MAAA,OACA,CACAq0B,MAAA,qCACAr0B,MAAA,OACA,CACAq0B,MAAA,4BACAr0B,MAAA,OACA,CACAq0B,MAAA,qBACAr0B,MAAA,OACA,CACAq0B,MAAA,sBACAr0B,MAAA,OACA,CACAq0B,MAAA,yBACAr0B,MAAA,OACA,CACAq0B,MAAA,wBACAr0B,MAAA,OACA,CACAq0B,MAAA,+BACAr0B,MAAA,OACA,CACAq0B,MAAA,sBACAr0B,MAAA,OACA,CACAq0B,MAAA,2BACAr0B,MAAA,OACA,CACAq0B,MAAA,sBACAr0B,MAAA,OACA,CACAq0B,MAAA,uBACAr0B,MAAA,OACA,CACAq0B,MAAA,+BACAr0B,MAAA,OACA,CACAq0B,MAAA,+BACAr0B,MAAA,OACA,CACAq0B,MAAA,6BACAr0B,MAAA,OACA,CACAq0B,MAAA,wBACAr0B,MAAA,OACA,CACAq0B,MAAA,wBACAr0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AAA,EACA5uL,KAAA,qBACAwmH,QAAA,+BACAskB,OAAA,kBACAjiF,aAAA,cACAnsD,OAAA,OACA5H,MAAA,MACAk6L,WAAA,KACA,CACAhvL,KAAA,0BACAwmH,QAAA,4BACAskB,OAAA,gCACAjiF,aAAA,cACAnsD,OAAA,OACA5H,MAAA,MACAk6L,WAAA,KACA,CACAhvL,KAAA,4BACAwmH,QAAA,6BACAskB,OAAA,wBACAjiF,aAAA,YACAnsD,OAAA,OACA5H,MAAA,MACAk6L,WAAA,KACA,CACAhvL,KAAA,uBACAwmH,QAAA,iCACAskB,OAAA,eACAjiF,aAAA,YACAnsD,OAAA,OACA5H,MAAA,KACAk6L,WAAA,KACA,CACAhvL,KAAA,sBACAwmH,QAAA,6BACAskB,OAAA,0BACAjiF,aAAA,cACAnsD,OAAA,OACA5H,MAAA,MACAk6L,WAAA,KACA,CACAhvL,KAAA,qBACAwmH,QAAA,0BACAskB,OAAA,sBACAjiF,aAAA,cACAnsD,OAAA,OACA5H,MAAA,MACAk6L,WAAA,KACA,CACAhvL,KAAA,gBACAwmH,QAAA,6BACAskB,OAAA,yBACAjiF,aAAA,cACAnsD,OAAA,OACA5H,MAAA,MACAk6L,WAAA,KACA,CACAhvL,KAAA,qBACAwmH,QAAA,0BACAskB,OAAA,kBACAjiF,aAAA,YACAnsD,OAAA,OACA5H,MAAA,MACAk6L,WAAA,KACA,CACAhvL,KAAA,wBACAwmH,QAAA,6BACAskB,OAAA,4BACAjiF,aAAA,cACAnsD,OAAA,OACA5H,MAAA,MACAk6L,WAAA,KACA,CACAhvL,KAAA,wBACAwmH,QAAA,+BACAskB,OAAA,4BACAjiF,aAAA,cACAnsD,OAAA,SACA5H,MAAA,MACAk6L,WAAA,GACA,CACAhvL,KAAA,6BACAwmH,QAAA,+BACAskB,OAAA,eACAjiF,aAAA,YACAnsD,OAAA,SACA5H,MAAA,MACAk6L,WAAA,GACA,CACAhvL,KAAA,sBACAwmH,QAAA,2BACAskB,OAAA,yBACAjiF,aAAA,cACAnsD,OAAA,OACA5H,MAAA,MACAk6L,WAAA,MAUAr7L,EAAA66L,YAAA,EACAxuL,KAAA,mBACAwvL,OAAA,IACAl6F,SAAA,OACA86F,IAAA,CACA18F,OAAA,IACAE,UAAA,IACAC,eAAA,KAEA,CACA7zF,KAAA,qBACAwvL,OAAA,GACAl6F,SAAA,gBACA86F,IAAA,CACA18F,OAAA,IACAE,UAAA,IACAC,eAAA,KAEA,CACA7zF,KAAA,UACAwvL,OAAA,IACAl6F,SAAA,OACA86F,IAAA,CACA18F,OAAA,IACAE,UAAA,GACAC,eAAA,MAEA,CACA7zF,KAAA,UACAwvL,OAAA,IACAl6F,SAAA,gBACA86F,IAAA,CACA18F,OAAA,IACAE,UAAA,IACAC,eAAA,KAEA,CACA7zF,KAAA,2BACAwvL,OAAA,IACAl6F,SAAA,OACA86F,IAAA,CACA18F,OAAA,GACAE,UAAA,GACAC,eAAA,IAEA,CACA7zF,KAAA,WACAwvL,OAAA,IACAl6F,SAAA,OACA86F,IAAA,CACA18F,OAAA,GACAE,UAAA,GACAC,eAAA,KAEA,CACA7zF,KAAA,sBACAwvL,OAAA,IACAl6F,SAAA,gBACA86F,IAAA,CACA18F,OAAA,EACAE,UAAA,GACAC,eAAA,KAEA,CACA7zF,KAAA,oBACAwvL,OAAA,IACAl6F,SAAA,gBACA86F,IAAA,CACA18F,OAAA,EACAE,UAAA,IACAC,eAAA,MAEA,CACA7zF,KAAA,aACAwvL,OAAA,IACAl6F,SAAA,OACA86F,IAAA,CACA18F,OAAA,GACAE,UAAA,GACAC,eAAA,IAEA,CACA7zF,KAAA,iBACAwvL,OAAA,IACAl6F,SAAA,gBACA86F,IAAA,CACA18F,OAAA,EACAE,UAAA,IACAC,eAAA,MAEA,CACA7zF,KAAA,mBACAwvL,OAAA,IACAl6F,SAAA,OACA86F,IAAA,CACA18F,OAAA,GACAE,UAAA,GACAC,eAAA,IAEA,CACA7zF,KAAA,uBACAwvL,OAAA,IACAl6F,SAAA,OACA86F,IAAA,CACA18F,OAAA,GACAE,UAAA,GACAC,eAAA,KAEA,CACA7zF,KAAA,kBACAwvL,OAAA,IACAl6F,SAAA,OACA86F,IAAA,CACA18F,OAAA,IACAE,UAAA,IACAC,eAAA,KAEA,CACA7zF,KAAA,WACAwvL,OAAA,IACAl6F,SAAA,gBACA86F,IAAA,CACA18F,OAAA,EACAE,UAAA,GACAC,eAAA,KAEA,CACA7zF,KAAA,WACAwvL,OAAA,IACAl6F,SAAA,gBACA86F,IAAA,CACA18F,OAAA,EACAE,UAAA,GACAC,eAAA,KAEA,CACA7zF,KAAA,cACAwvL,OAAA,IACAl6F,SAAA,gBACA86F,IAAA,CACA18F,OAAA,GACAE,UAAA,GACAC,eAAA,KAEA,CACA7zF,KAAA,yBACAwvL,OAAA,IACAl6F,SAAA,YACA86F,IAAA,CACA18F,OAAA,GACAE,UAAA,EACAC,eAAA,MAGAlgG,EAAAwiM,QAAA,EACA5nI,UAAA,OACAC,SAAA,YACAgzC,QAAA,GACA1c,cAAA,IACA,CACAv2B,UAAA,QACAC,SAAA,QACAgzC,QAAA,GACA1c,cAAA,IACA,CACAv2B,UAAA,MACAC,SAAA,aACAgzC,QAAA,GACA1c,cAAA,IACA,CACAv2B,UAAA,SACAC,SAAA,OACAgzC,QAAA,GACA1c,cAAA,IACA,CACAv2B,UAAA,QACAC,SAAA,QACAgzC,QAAA,GACA1c,cAAA,IACA,CACAv2B,UAAA,WACAC,SAAA,SACAgzC,QAAA,GACA1c,cAAA,IACA,CACAv2B,UAAA,OACAC,SAAA,SACAgzC,QAAA,GACA1c,cAAA,IACA,CACAv2B,UAAA,OACAC,SAAA,SACAgzC,QAAA,GACA1c,cAAA,IACA,CACAv2B,UAAA,OACAC,SAAA,SACAgzC,QAAA,GACA1c,cAAA,IACA,CACAv2B,UAAA,OACAC,SAAA,aACAgzC,QAAA,GACA1c,cAAA,KAOAnxF,EAAAomM,UAAA,EACA/5L,KAAA,wBACAwmH,QAAA,8CACA/wF,eA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AA,aACA,CACA4mB,YAAA,4BACA5mB,MAAA,aACA,CACA4mB,YAAA,oCACA5mB,MAAA,eAMAnB,EAAAmqM,iBAAA,CACAxiM,OAAA,SACA+lH,MAAA,OACA3zE,KAAA,OACAoyJ,GAAA,OACAC,MAAA,SACAC,KAAA,OACAC,IAAA,OACAC,KAAA,QAEAvsM,EAAA2mM,SAAA,EACA1qH,IAAA,SACAl0D,YAAA,yBACAse,KAAA,SACAje,UAAA,KACA,CACA6zD,IAAA,QACAl0D,YAAA,8BACAse,KAAA,QACAje,UAAA,MACA,CACA6zD,IAAA,UACAl0D,YAAA,uBACAse,KAAA,OACAje,UAAA,MACA,CACA6zD,IAAA,QACAl0D,YAAA,iBACAse,KAAA,KACAje,UAAA,KACA,CACA6zD,IAAA,SACAl0D,YAAA,4BACAse,KAAA,QACAje,UAAA,OACA,CACA6zD,IAAA,SACAl0D,YAAA,wBACAse,KAAA,OACAje,UAAA,MACA,CACA6zD,IAAA,OACAl0D,YAAA,kBACAse,KAAA,OACAje,UAAA,KACA,CACA6zD,IAAA,QACAl0D,YAAA,sBACAse,KAAA,QACAje,UAAA,MACA,CACA6zD,IAAA,SACAl0D,YAAA,0BACAse,KAAA,OACAje,UAAA,MACA,CACA6zD,IAAA,QACAl0D,YAAA,4BACAse,KAAA,MACAje,UAAA,QAEApoB,EAAA2lM,mBAAA,EACAt5L,KAAA,mBACA05L,aAAA,WACA,CACA15L,KAAA,aACA05L,aAAA,WACA,CACA15L,KAAA,mBACA05L,aAAA,UACA,CACA15L,KAAA,YACA05L,aAAA,UACA,CACA15L,KAAA,cACA05L,aAAA,WAEA/lM,EAAAspM,gBAAA,4Q,GC/hBAvpM,OAAA,wFAAAC,EAAA21L,EAAA6W,GAGA1rM,OAAAC,eAAAf,EAAA,cACAmB,OAAA,IAEAnB,EAAAuC,aAAA;AAEAvC,EAAAuC,QAAAozL,EAAA8W,QAAAp+L,OAAA,CACAm5C,OAAA,IACAglJ,EAAAE,MAAAC,MAAAC,SA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A49F,UAAA,eACA,CACAvpE,MAAA,eACA85E,SAAA,EACAC,UAAA,EACApuG,MAAA,GACA49F,UAAA,eACA,CACAvpE,MAAA,aACA85E,SAAA,EACAC,UAAA,EACApuG,MAAA,GACA49F,UAAA,eACA,CACAvpE,MAAA,YACA85E,SAAA,EACAC,UAAA,EACApuG,MAAA,KACA49F,UAAA,oBACA,CACAvpE,MAAA,gBACA85E,SAAA,EACAC,UAAA,EACApuG,MAAA,KACA49F,UAAA,oBACA,CACAvpE,MAAA,QACA85E,SAAA,EACAC,UAAA,EACApuG,MAAA,EACA49F,UAAA,qBAIA/+F,EAAAyuG,wBAAA,CACAj5E,MAAA,4BACA25E,mBAAA,EACAC,mBAAA,GAEApvG,EAAA0uG,6BAAA,EACAl5E,MAAA,oBACA85E,SAAA,EACAC,UAAA,EACApuG,MAAA,GACA49F,UAAA,iBACA,CACAvpE,MAAA,iBACA85E,SAAA,EACAC,UAAA,EACApuG,MAAA,GACA49F,UAAA,eACA,CACAvpE,MAAA,eACA85E,SAAA,EACAC,UAAA,EACApuG,MAAA,GACA49F,UAAA,eACA,CACAvpE,MAAA,aACA85E,SAAA,EACAC,UAAA,EACApuG,MAAA,GACA49F,UAAA,eACA,CACAvpE,MAAA,QACA85E,SAAA,EACAC,UAAA,EACApuG,MAAA,EACA49F,UAAA,oBACA,CACAvpE,MAAA,QACA85E,SAAA,EACAC,UAAA,EACApuG,MAAA,EACA49F,UAAA,oB,GCzIAh/F,OAAA,uEAAAC,EAAAwO,GAGA1N,OAAAC,eAAAf,EAAA,cACAmB,OAAA,IAEAnB,EAAAuC,QAEA,SAAAw6P,EAAA7mP,GACA,OAAA6mP,EAAA1uP,OAAA,CACAqhN,aAAAx5M,EACAu5M,eAAAv5M,EACA,eAAAw2M,CAAAC,GACA5pN,KAAAinC,UAAA7gC,YACA,EAAAqF,EAAA5I,KAAA+mN,EAAA,eACA,EACA,UAAA+D,IACA,EAAAliN,EAAA5I,KAAA7C,KAAA,0BACA,GAEA,C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A,iBAEA,CACAA,KAAA,YACA,CACAA,KAAA,WACA,CACAA,KAAA,SACA4K,MAAA,EACA5K,KAAA,oBACA,CACAA,KAAA,gCAGA,CACAA,KAAA,oBACA4K,MAAA,EACA5K,KAAA,mBACA,CACAA,KAAA,4BAEA,CACAA,KAAA,UACA4K,MAAA,EACA5K,KAAA,kBACA,CACAA,KAAA,WACA,CACAA,KAAA,oBACA,CACAA,KAAA,mBAEA,CACAA,KAAA,UACA4K,MAAA,EACA5K,KAAA,WACA,CACAA,KAAA,qBAEA,CACAA,KAAA,UACA4K,MAAA,EACA5K,KAAA,aAEA,CACAA,KAAA,UACA4K,MAAA,EACA5K,KAAA,sBAEA,CACAA,KAAA,UACA4K,MAAA,EACA5K,KAAA,2BACA,CACAA,KAAA,kBAEA,CACAA,KAAA,aACA4K,MAAA,EACA5K,KAAA,cACA,CACAA,KAAA,gBACA,CACAA,KAAA,mBAEA,CACAA,KAAA,aACA4K,MAAA,EACA5K,KAAA,sBAEA,CACAA,KAAA,oBACA4K,MAAA,EACA5K,KAAA,gCAEA,CACAA,KAAA,sBACA4K,MAAA,EACA5K,KAAA,YACA,CACAA,KAAA,cACA,CACAA,KAAA,gCACA,CACAA,KAAA,aACA,CACAA,KAAA,gBAEA,CACAA,KAAA,aACA4K,MAAA,EACA5K,KAAA,WACA,CACAA,KAAA,aAEA,CACAA,KAAA,aACA4K,MAAA,EACA5K,KAAA,sBACA,CACAA,KAAA,8BACA,CACAA,KAAA,sCACA,CACAA,KAAA,kBAEA,CACAA,KAAA,WACA4K,MAAA,EACA5K,KAAA,qBACA,CACAA,KAAA,uBAEA,CACAA,KAAA,yBACA4K,MAAA,EACA5K,KAAA,mBACA,CACAA,KAAA,kBACA,CACAA,KAAA,kBACA,CACAA,KAAA,mBAEA,CACAA,KAAA,4BACA4K,MAAA,EACA5K,KAAA,eACA,CACAA,KAAA,YACA,CACAA,KAAA,YACA,CACAA,KAAA,cACA,CACAA,KAAA,YAEA,CACAA,KAAA,iBACA4K,MAAA,EACA5K,KAAA,UACA,CACAA,KAAA,2DACA4K,MAAA,EACA5K,KAAA,mBAGA,CACAA,KAAA,iBACA4K,MAAA,EACA5K,KAAA,wBACA4K,MAAA,EACA5K,KAAA,YACA,CACAA,KAAA,eAEA,CACAA,KAAA,OACA4K,MAAA,EACA5K,KAAA,gBACA,CACAA,KAAA,aAEA,CACAA,KAAA,cACA4K,MAAA,EACA5K,KAAA,gBACA,CACAA,KAAA,iBAEA,CACAA,KAAA,gBACA4K,MAAA,EACA5K,KAAA,oBAGA,CACAA,KAAA,kBACA,CACAA,KAAA,QACA,CACAA,KAAA,gBAEA,CACAA,KAAA,kBACA4K,MAAA,EACA5K,KAAA,gBACA4K,MAAA,EACA5K,KAAA,yBACA4K,MAAA,EACA5K,KAAA,mBACA,CACAA,KAAA,sBACA,CACAA,KAAA,aACA4K,MAAA,EACA5K,KAAA,kBACA,CACAA,KAAA,oBACA,CACAA,KAAA,4BAEA,CACAA,KAAA,eACA,CACAA,KAAA,kBACA4K,MAAA,EACA5K,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,aACA4K,MAAA,EACA5K,KAAA,eACA,CACAA,KAAA,qBAEA,CACAA,KAAA,kBACA4K,MAAA,EACA5K,KAAA,gBACA,CACAA,KAAA,kBAEA,CACAA,KAAA,UACA4K,MAAA,EACA5K,KAAA,QACA,CACAA,KAAA,UACA,CACAA,KAAA,eAEA,CACAA,KAAA,YACA4K,MAAA,EACA5K,KAAA,SACA,CACAA,KAAA,WACA,CACAA,KAAA,kCAEA,CACAA,KAAA,oBACA4K,MAAA,EACA5K,KAAA,cAEA,CACAA,KAAA,mBACA4K,MAAA,EACA5K,KAAA,oBACA,CACAA,KAAA,aACA,CACAA,KAAA,eACA,CACAA,KAAA,QACA4K,MAAA,EACA5K,KAAA,kBACA,CACAA,KAAA,WACA,CACAA,KAAA,YACA,CACAA,KAAA,WACA,CACAA,KAAA,eACA,CACAA,KAAA,UACA,CACAA,KAAA,cAGA,CACAA,KAAA,qBACA4K,MAAA,EACA5K,KAAA,oBACA4K,MAAA,EACA5K,KAAA,SACA,CACAA,KAAA,aAEA,CACAA,KAAA,oBACA4K,MAAA,EACA5K,KAAA,SACA,CACAA,KAAA,WACA,CACAA,KAAA,WAEA,CACAA,KAAA,uBAEA,CACAA,KAAA,iBACA4K,MAAA,EACA5K,KAAA,YACA,CACAA,KAAA,YACA,CACAA,KAAA,cACA,CACAA,KAAA,WACA4K,MAAA,EACA5K,KAAA,UACA,CACAA,KAAA,cAGA,CACAA,KAAA,QACA,CACAA,KAAA,gBAEA,CACAA,KAAA,iBACA4K,MAAA,EACA5K,KAAA,2BACA,CACAA,KAAA,8BACA,CACAA,KAAA,eACA,CACAA,KAAA,uBACA,CACAA,KAAA,yBACA,CACAA,KAAA,WACA,CACAA,KAAA,oBACA,CACAA,KAAA,iBACA,CACAA,KAAA,0BACA,CACAA,KAAA,4BACA,CACAA,KAAA,2CACA,CACAA,KAAA,qCACA,CACAA,KAAA,mCACA,CACAA,KAAA,+BACA,CACAA,KAAA,YACA,CACAA,KAAA,+CACA,CACAA,KAAA,+BACA,CACAA,KAAA,oBACA,CACAA,KAAA,gCACA,CACAA,KAAA,eACA,CACAA,KAAA,iCACA,CACAA,KAAA,iBACA,CACAA,KAAA,WACA,CACAA,KAAA,aACA,CACAA,KAAA,UACA,CACAA,KAAA,UACA,CACAA,KAAA,eACA,CACAA,KAAA,OACA4K,MAAA,EACA5K,KAAA,0BACA,CACAA,KAAA,aACA,CACAA,KAAA,gCACA,CACAA,KAAA,WACA,CACAA,KAAA,0BACA,CACAA,KAAA,4BACA,CACAA,KAAA,kCACA,CACAA,KAAA,kBACA,CACAA,KAAA,gCACA,C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